]> birchwood-abbey.net Git - mit-scheme.git/commit
compiler/x86-64: Limit detag-subtract-compare rules to ZERO-FIXNUM?.
authorTaylor R Campbell <campbell+mit-scheme@mumble.net>
Thu, 22 Dec 2022 14:44:51 +0000 (14:44 +0000)
committerTaylor R Campbell <campbell+mit-scheme@mumble.net>
Thu, 22 Dec 2022 16:01:57 +0000 (16:01 +0000)
commita2de4f1e299cf85fc0d7e26ae6ded2a35c2dd34f
tree37416ee93d63314e1953b637fd223acbd84abd5e
parent354a6bca8c85a10c8bc665d5e24ee423141795f8
compiler/x86-64: Limit detag-subtract-compare rules to ZERO-FIXNUM?.

The shortcut without detagging doesn't work for ordered comparisons.

Add automatic tests for (fix:</=/> 0 (fix:- x y)).

Savannah bug #63534

(If we ever switched to separate positive and negative fixnum tags,
we could fruitfully revive the </> rules.)
src/compiler/machines/x86-64/rulfix.scm
tests/compiler/test-fixnum.scm