[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx

Chris Lattner lattner at cs.uiuc.edu
Tue Sep 28 10:50:15 PDT 2004



Changes in directory llvm/test/Regression/Transforms/InstCombine:

2004-09-28-BadShiftAndSetCC.llx added (r1.1)
---
Log message:

New testcase for a latent bug in instcombine that I have been chasing for
1.5 days :(


---
Diffs of the changes:  (+9 -0)

Index: llvm/test/Regression/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx:1.1
*** /dev/null	Tue Sep 28 12:50:15 2004
--- llvm/test/Regression/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.llx	Tue Sep 28 12:50:05 2004
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep -- -65536
+ 
+ bool %test(int %tmp.124) {
+         %tmp.125 = shl int %tmp.124, ubyte 8
+         %tmp.126.mask = and int %tmp.125, -16777216             ; <int> [#uses=1]
+         %tmp.128 = seteq int %tmp.126.mask, 167772160           ; <bool> [#uses=1]
+         ret bool %tmp.128
+ }
+ 






More information about the llvm-commits mailing list