Fix InstCombine/2007-10-31-StringCrash.ll by removing an obvious
[oota-llvm.git] / test / Transforms / InstCombine / set.ll
index a9ef2bf5512ee49baff858784628da9ea95d426b..51cffbeba9745bdb1d2015b4ed947f4cd861db36 100644 (file)
@@ -1,7 +1,7 @@
 ; This test makes sure that these instructions are properly eliminated.
 ;
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep set
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep icmp
+; END.
 
 %X = uninitialized global int
 
@@ -145,3 +145,8 @@ int %test24(uint %a) {
         ret int %tmp.3
 }
 
+bool %test25(uint %A) {
+       %B = and uint %A, 2
+       %C = setgt uint %B, 2
+       ret bool %C
+}