]> gitweb.factorcode.org Git - factor.git/commitdiff
compiler.cfg.builder: add test to ensure that fast union predicates do not contain...
authorSlava Pestov <slava@factorcode.org>
Sun, 30 Oct 2011 00:10:51 +0000 (17:10 -0700)
committerSlava Pestov <slava@factorcode.org>
Sun, 30 Oct 2011 00:11:04 +0000 (17:11 -0700)
basis/compiler/cfg/builder/builder-tests.factor

index 9677dc30caed950dc66fe50a597f812945fb0855..73d1204c37b73d0d1deea0a6b4a53a16814a5f04 100644 (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