Rewrite test/Integer tests to use FileCheck instead of grep
authorEli Bendersky <eliben@google.com>
Mon, 8 Apr 2013 20:18:15 +0000 (20:18 +0000)
committerEli Bendersky <eliben@google.com>
Mon, 8 Apr 2013 20:18:15 +0000 (20:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179047 91177308-0d34-0410-b5e6-96231b3b80d8

test/Integer/2007-01-19-TruncSext.ll
test/Integer/fold-fpcast_bt.ll
test/Integer/packed_struct_bt.ll

index 3fee6bc8b6e386c703295f9f1276f7b199507a3b..e6d89ddaf33e3549268e7906300eb2bb51b2af5f 100644 (file)
@@ -1,7 +1,8 @@
 ; RUN: llvm-as %s -o - | llvm-dis > %t1.ll
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
-; RUN: llvm-as < %s | lli --force-interpreter=true | grep -- -255
+; RUN: llvm-as < %s | lli --force-interpreter=true | FileCheck %s
+; CHECK: -255
 
 @ARRAY   = global [ 20 x i17 ] zeroinitializer
 @FORMAT  = constant [ 4 x i8 ] c"%d\0A\00"
index 8e5f8386d77539e22bbb826866ac0994968d6266..0ce776dbf85117cfc5f2da79e6052af7bfc80cc5 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llvm-dis | not grep bitcast
+; RUN: llvm-as < %s | llvm-dis | FileCheck %s
+; CHECK-NOT: bitcast
 
 define i60 @test1() {
    ret i60 fptoui(float 0x400D9999A0000000 to i60)
index 257c1c66ebace9bec371c30e9cc9729e23e8fbf0..b8301bab545cc91421083e50cb25987e7346f5ad 100644 (file)
@@ -1,9 +1,9 @@
 ; RUN: llvm-as < %s | llvm-dis > %t1.ll
 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
 ; RUN: diff %t1.ll %t2.ll
-; RUN: not grep cast %t2.ll
-; RUN: grep "}>" %t2.ll
-; END.
+; RUN: FileCheck %s --input-file=%t2.ll
+; CHECK-NOT: cast
+; CHECK: }>
 
 %struct.anon = type <{ i8, i35, i35, i35 }>
 @foos = external global %struct.anon