Convert tests to FileCheck
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 28 Jun 2013 01:29:35 +0000 (01:29 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 28 Jun 2013 01:29:35 +0000 (01:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185124 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll
test/Transforms/InstCombine/2008-01-06-VoidCast.ll
test/Transforms/InstCombine/apint-call-cast-target.ll
test/Transforms/InstCombine/call-cast-target.ll

index 23b606779e66c4939eafa05ea11beae457bcab58..6588a918baeef563d373e87817f317001daa9c0e 100644 (file)
@@ -1,5 +1,7 @@
 ; Ignore stderr, we expect warnings there
-; RUN: opt < %s -instcombine 2> /dev/null -S | not grep bitcast
+; RUN: opt < %s -instcombine 2> /dev/null -S | FileCheck %s
+
+; CHECK-NOT: bitcast
 
 define void @a() {
        ret void
index 407ff4ddc29afdfb981fcfcd8132d128fc66bee8..ebd5c4229d41e03ee6034d427bbbef441a06f4e0 100644 (file)
@@ -1,9 +1,9 @@
-; RUN: opt < %s -instcombine -S | not grep bitcast
+; RUN: opt < %s -instcombine -S | FileCheck %s
 
 define void @f(i16 %y) {
        ret void
 }
-
+; CHECK-NOT: bitcast
 define i32 @g(i32 %y) {
        %x = call i32 bitcast (void (i16)* @f to i32 (i32)*)( i32 %y )          ; <i32> [#uses=1]
        ret i32 %x
index fe336de7524240fc254e4d651436efbaebe2c322..7d7c8fa503f17cc4c41f09294e4bb4685e0e99f7 100644 (file)
@@ -1,9 +1,11 @@
-; RUN: opt < %s -instcombine -S | grep call | not grep bitcast
+; RUN: opt < %s -instcombine -S | FileCheck %s
 
 target datalayout = "e-p:32:32"
 target triple = "i686-pc-linux-gnu"
 
-
+; CHECK-NOT: bitcast
+; CHECK: call
+; CHECK-NOT: bitcast
 define i32 @main() {
 entry:
        %tmp = call i32 bitcast (i7* (i999*)* @ctime to i32 (i99*)*)( i99* null )
index 7addc8abc84f2f6bc5652646aeaba9ae58deba18..19074212d3ea020fd6c04a09f600d77636a1bd5f 100644 (file)
@@ -1,9 +1,12 @@
-; RUN: opt < %s -instcombine -S | \
-; RUN:   grep call | not grep bitcast
+; RUN: opt < %s -instcombine -S | FileCheck %s
 
 target datalayout = "e-p:32:32"
 target triple = "i686-pc-linux-gnu"
 
+; CHECK-NOT: bitcast
+; CHECK: call
+; CHECK-NOT: bitcast
+
 define i32 @main() {
 entry:
         %tmp = call i32 bitcast (i8* (i32*)* @ctime to i32 (i32*)*)( i32* null )          ; <i32> [#uses=1]