Update the test to match the optimization. The optimization can let some
authorReid Spencer <rspencer@reidspencer.com>
Sun, 28 Nov 2004 21:36:52 +0000 (21:36 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 28 Nov 2004 21:36:52 +0000 (21:36 +0000)
casts through, but they will only be sbyte -> ubyte in this test case so
make sure we don't let any other kinds through.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18313 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2004-11-27-SetCCForCastLargerAndConstant.ll

index e2ccd67c1451a92f0e4a2e13037a5971c5e5da07..02cbd5186ba4e00b85de7b4ef6a306523e9377a9 100644 (file)
@@ -9,7 +9,7 @@
 ; be eliminated. In many cases the setCC is also eliminated based on the
 ; constant value and the range of the casted value.
 ;
-; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | not grep cast
+; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | not grep 'cast.*int'
 
 implementation   ; Functions: