compiler.cfg.optimizer: fix irrelevant test

db4
U-SLAVA-DFB8FF805\Slava 2009-07-09 06:17:10 -05:00
parent e0d84eb3a2
commit 508b7272b5
1 changed files with 8 additions and 7 deletions

7
basis/compiler/cfg/optimizer/optimizer-tests.factor Normal file → Executable file
View File

@ -2,7 +2,7 @@ USING: accessors arrays compiler.cfg.checker
compiler.cfg.debugger compiler.cfg.def-use compiler.cfg.debugger compiler.cfg.def-use
compiler.cfg.instructions fry kernel kernel.private math compiler.cfg.instructions fry kernel kernel.private math
math.private sbufs sequences sequences.private sets math.private sbufs sequences sequences.private sets
slots.private strings tools.test vectors ; slots.private strings tools.test vectors layouts ;
IN: compiler.cfg.optimizer.tests IN: compiler.cfg.optimizer.tests
! Miscellaneous tests ! Miscellaneous tests
@ -35,10 +35,11 @@ IN: compiler.cfg.optimizer.tests
[ [ ] ] dip '[ _ test-mr first check-mr ] unit-test [ [ ] ] dip '[ _ test-mr first check-mr ] unit-test
] each ] each
cell 8 = [
[ t ] [ t ]
[ [
[ [
HEX: 7fff fixnum-bitand 13 fixnum-shift-fast 1 50 fixnum-shift-fast fixnum+fast
112 23 fixnum-shift-fast fixnum+fast
] test-mr first instructions>> [ ##add? ] any? ] test-mr first instructions>> [ ##add? ] any?
] unit-test ] unit-test
] when