For PR950:
authorReid Spencer <rspencer@reidspencer.com>
Mon, 13 Nov 2006 18:00:52 +0000 (18:00 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 13 Nov 2006 18:00:52 +0000 (18:00 +0000)
Changes for new cast instructions that are backwards compatible.

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

test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll
test/Transforms/InstCombine/2004-11-27-SetCCForCastLargerAndConstant.ll
test/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll
test/Transforms/InstCombine/IntPtrCast.ll
test/Transforms/InstCombine/call.ll
test/Transforms/InstCombine/cast-set.ll

index aa5b79b3a9b95e7158f291142f9002a4182d78f2..04bbab8b5786cf626d1a45ad3d948b19d9021995 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | not grep cast
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | notcast
 
 declare void %free(sbyte*)
 
index 75e1ac663fa140b4a6f1044158144f592e7bff44..759c619e6db2ca6db65ccbb49ddc19b9d3363adb 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.*int'
+; RUN: llvm-as %s -o - | opt -instcombine | llvm-dis | notcast '.*int'
 
 implementation   ; Functions:
 
index 7a164ddf4dc8da09fcfcc49af30e63e411b2c962..5c38342c84f1bea445e81cf9fb87b56e2618c513 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep shl &&
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast
 
 ; This cannot be turned into a sign extending cast!
 
index c30498279deac4ff61b99aee891c10c701726e79..c3cc96728de336df96d0c8a1600655cd11968e8c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast
 target pointersize = 32
 
 int *%test(int *%P) {
index 51ae351629a33099be5db3510feb184d489525cc..f721f3569fa6e00f3c34c4be7fe181c6f962ac07 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | not grep cast
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep call | notcast
 
 implementation
 
index b1c8123144243bea4d32b797d52467cf13de9585..a1ac29bc3fba4aeaa733a51d01460b2d7aacc866 100644 (file)
@@ -1,7 +1,7 @@
 ; This tests for various complex cast elimination cases instcombine should
 ; handle.
 
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | notcast
 
 bool %test1(int %X) {
        %A = cast int %X to uint