Fix InstCombine/2007-10-31-StringCrash.ll by removing an obvious
[oota-llvm.git] / test / Transforms / InstCombine / cast_ptr.ll
index 19d3ca6f8e8bc6dc43df84c6617a883f6a5b4ef5..c0679889150d9cdb0a2bec59856dac794986d406 100644 (file)
@@ -1,6 +1,5 @@
 ; Tests to make sure elimination of casts is working correctly
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine -disable-output &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep '\([sz]ext\)\|\(trunc\)'
+; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | notcast
 
 target pointersize = 32
 
@@ -13,3 +12,9 @@ sbyte* %test1(sbyte* %t) {
        ret sbyte* %tv
 }
 
+bool %test2(sbyte* %a, sbyte* %b) {
+%tmpa = cast sbyte* %a to uint
+%tmpb = cast sbyte* %b to uint
+%r = seteq uint %tmpa, %tmpb
+ret bool %r
+}