summaryrefslogtreecommitdiffstats
path: root/llvm/test/Integer
diff options
context:
space:
mode:
authorEli Bendersky <eliben@google.com>2013-04-08 20:18:15 +0000
committerEli Bendersky <eliben@google.com>2013-04-08 20:18:15 +0000
commit19654c01c1da5fef5e1aae9c688f1fade59c7e73 (patch)
treee9654be09f5fde234f138347dcff4577a32935b9 /llvm/test/Integer
parentfd374bb3dd7c3f9b11973df235d7ed66f49f1326 (diff)
downloadbcm5719-llvm-19654c01c1da5fef5e1aae9c688f1fade59c7e73.tar.gz
bcm5719-llvm-19654c01c1da5fef5e1aae9c688f1fade59c7e73.zip
Rewrite test/Integer tests to use FileCheck instead of grep
llvm-svn: 179047
Diffstat (limited to 'llvm/test/Integer')
-rw-r--r--llvm/test/Integer/2007-01-19-TruncSext.ll3
-rw-r--r--llvm/test/Integer/fold-fpcast_bt.ll3
-rw-r--r--llvm/test/Integer/packed_struct_bt.ll6
3 files changed, 7 insertions, 5 deletions
diff --git a/llvm/test/Integer/2007-01-19-TruncSext.ll b/llvm/test/Integer/2007-01-19-TruncSext.ll
index 3fee6bc8b6e..e6d89ddaf33 100644
--- a/llvm/test/Integer/2007-01-19-TruncSext.ll
+++ b/llvm/test/Integer/2007-01-19-TruncSext.ll
@@ -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"
diff --git a/llvm/test/Integer/fold-fpcast_bt.ll b/llvm/test/Integer/fold-fpcast_bt.ll
index 8e5f8386d77..0ce776dbf85 100644
--- a/llvm/test/Integer/fold-fpcast_bt.ll
+++ b/llvm/test/Integer/fold-fpcast_bt.ll
@@ -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)
diff --git a/llvm/test/Integer/packed_struct_bt.ll b/llvm/test/Integer/packed_struct_bt.ll
index 257c1c66eba..b8301bab545 100644
--- a/llvm/test/Integer/packed_struct_bt.ll
+++ b/llvm/test/Integer/packed_struct_bt.ll
@@ -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
OpenPOWER on IntegriCloud