llvm.org GIT mirror llvm / 888fa33
Fix some escaping and quoting in RUN lines, mainly involving { and <. In two 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 Matthijs Kooijman 11 years ago
7 changed file(s) with 7 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
66 ; RUN: llvm-as < %s | llvm-dis | \
77 ; RUN: not grep {llvm\\.bswap\\.i\[0-9\]*\\.i\[0-9\]*}
88 ; RUN: llvm-as < %s | llvm-dis | \
9 ; RUN: grep {llvm\\.x86\\.mmx\\.ps} | grep {2 x i32> | count 6
9 ; RUN: grep {llvm\\.x86\\.mmx\\.ps} | grep {\\\<2 x i32\\\>} | count 6
1010
1111 declare i32 @llvm.ctpop.i28(i28 %val)
1212 declare i32 @llvm.cttz.i29(i29 %val)
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33 ; RUN: not grep cast %t2.ll
4 ; RUN: grep {\<\{} %t2.ll
4 ; RUN: grep {\\}>} %t2.ll
55 ; END.
66
77 %struct.anon = type <{ i8, i32, i32, i32 }>
11 ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll
22 ; RUN: diff %t1.ll %t2.ll
33 ; RUN: not grep cast %t2.ll
4 ; RUN: grep {\<\{} %t2.ll
4 ; RUN: grep {\\}>} %t2.ll
55 ; END.
66
77 %struct.anon = type <{ i8, i35, i35, i35 }>
0 ; RUN: llvm-as < %s > %t.out1.bc
11 ; RUN: echo { %S = type \[8 x i32\] external global %S } | llvm-as > %t.out2.bc
2 ; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | grep %S | grep \{
2 ; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | grep %S | grep {\\{}
33
44 %S = type { i32 }
55
0 ; RUN: echo {@G = weak global \{\{\{\{double\}\}\}\} zeroinitializer } | \
11 ; RUN: llvm-as > %t.out2.bc
22 ; RUN: llvm-as < %s > %t.out1.bc
3 ; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | not grep {\}}
3 ; RUN: llvm-link %t.out1.bc %t.out2.bc | llvm-dis | not grep {\\}}
44
55 ; When linked, the global above should be eliminated, being merged with the
66 ; global below.
0 ; Scalar replacement was incorrectly promoting this alloca!!
11 ;
22 ; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | \
3 ; RUN: sed {s/;.*//g} | grep \[
3 ; RUN: sed {s/;.*//g} | grep {\\\[}
44
55 define i8* @test() {
66 %A = alloca [30 x i8] ; <[30 x i8]*> [#uses=1]
0 ; RUN: llvm-as < %s | opt -scalarrepl | llvm-dis | \
1 ; RUN: grep alloca | grep \{
1 ; RUN: grep alloca | grep {\\{}
22
33 declare i32 @.callback_1(i8*)
44