compiler.cfg.builder: add test to ensure that fast union predicates do not contain a conditional

db4
Slava Pestov 2011-10-29 17:10:51 -07:00
parent 5a46b45312
commit 70056d756b
1 changed files with 6 additions and 0 deletions

View File

@ -224,3 +224,9 @@ IN: compiler.cfg.builder.tests
! Regression. Make sure branch splitting works.
[ 2 ] [ [ 1 2 ? ] [ ##return? ] count-insns ] unit-test
! Make sure fast union predicates don't have conditionals.
[ f ] [
[ tag 1 swap fixnum-shift-fast ]
[ ##compare-integer-imm-branch? ] contains-insn?
] unit-test