Fix some escaping and quoting in RUN lines, mainly involving { and <. In two
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 10 Jun 2008 16:04:47 +0000 (16:04 +0000)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 10 Jun 2008 16:04:47 +0000 (16:04 +0000)
cases quoting of <{ didn't work out, so I changed the grep to check for }>
instead.

This fixes 7 testcases that were not properly running before.

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

test/Assembler/AutoUpgradeIntrinsics.ll
test/Feature/packed_struct.ll
test/Integer/packed_struct_bt.ll
test/Linker/2003-10-21-ConflictingTypesTolerance.ll
test/Linker/2004-12-03-DisagreeingType.ll
test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll
test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll

index 15f638ce06fd5b873cf914884fd92797a65d6d04..af4ec92e09914d188e13993e61e202229eb710da 100644 (file)
@@ -7,7 +7,7 @@
 ; RUN: llvm-as < %s | llvm-dis | \
 ; RUN:   not grep {llvm\\.bswap\\.i\[0-9\]*\\.i\[0-9\]*}
 ; RUN: llvm-as < %s | llvm-dis | \
-; RUN:   grep {llvm\\.x86\\.mmx\\.ps} | grep {2 x i32> | count 6
+; RUN:   grep {llvm\\.x86\\.mmx\\.ps} | grep {\\\<2 x i32\\\>} | count 6
 
 declare i32 @llvm.ctpop.i28(i28 %val)
 declare i32 @llvm.cttz.i29(i29 %val)
index 5bf609b7772b7a538c5a77488f5343a26442f40c..4d4ace9534d6bd303cd74c3983c23e0133a10218 100644 (file)
@@ -2,7 +2,7 @@
 ; 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
+; RUN: grep {\\}>} %t2.ll
 ; END.
 
 %struct.anon = type <{ i8, i32, i32, i32 }>
index 3713917ac972ea144c2cecf333249c11674756a5..a4d01e7d84b5c58cc31748f8533d0c130c6fc666 100644 (file)
@@ -2,7 +2,7 @@
 ; 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
+; RUN: grep {\\}>} %t2.ll
 ; END.
 
 %struct.anon = type <{ i8, i35, i35, i35 }>
index b3e64da35b34baeb785ddce34bd9e432640a2b4c..f61d8861049c579d41eb4ea7ef0f63bb36e4bee6 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llvm-as < %s > %t.out1.bc
 ; RUN: echo { %S = type \[8 x i32\] external global %S } | llvm-as > %t.out2.bc
-; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | grep %S | grep \{
+; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | grep %S | grep {\\{}
 
 %S = type { i32 }
 
index 63d851b1673b95f5580a16f44437e9f29fbd26dd..7378fdd357951b5747d0f4c01c2dc9d7530bf8c2 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: echo {@G = weak global \{\{\{\{double\}\}\}\} zeroinitializer } | \
 ; RUN:   llvm-as > %t.out2.bc
 ; RUN: llvm-as < %s > %t.out1.bc
-; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | not grep {\}}
+; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | not grep {\\}}
 
 ; When linked, the global above should be eliminated, being merged with the 
 ; global below.
index ef48cf8d2138f4cf9d62ca8626d221d946bb6dc1..dbac15c3a5211fd046e37f4dca37a63aab47a8ae 100644 (file)
@@ -1,7 +1,7 @@
 ; Scalar replacement was incorrectly promoting this alloca!!
 ;
 ; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | \
-; RUN:   sed {s/;.*//g} | grep \[
+; RUN:   sed {s/;.*//g} | grep {\\\[}
 
 define i8* @test() {
        %A = alloca [30 x i8]           ; <[30 x i8]*> [#uses=1]
index 47b70351e9716c476888269579d2b6dddcd6e7f7..e366a655940d8ad7077f5c450bc807a871bf6546 100644 (file)
@@ -1,5 +1,5 @@
 ; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | \
-; RUN:   grep alloca | grep \{
+; RUN:   grep alloca | grep {\\{}
 
 declare i32 @.callback_1(i8*)