From 888fa33cfbd55b8944f971886eeda1bbca406af4 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 10 Jun 2008 16:04:47 +0000 Subject: 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 --- test/Assembler/AutoUpgradeIntrinsics.ll | 2 +- test/Feature/packed_struct.ll | 2 +- test/Integer/packed_struct_bt.ll | 2 +- test/Linker/2003-10-21-ConflictingTypesTolerance.ll | 2 +- test/Linker/2004-12-03-DisagreeingType.ll | 2 +- test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll | 2 +- test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/Assembler/AutoUpgradeIntrinsics.ll b/test/Assembler/AutoUpgradeIntrinsics.ll index 15f638c..af4ec92 100644 --- a/test/Assembler/AutoUpgradeIntrinsics.ll +++ b/test/Assembler/AutoUpgradeIntrinsics.ll @@ -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) diff --git a/test/Feature/packed_struct.ll b/test/Feature/packed_struct.ll index 5bf609b..4d4ace9 100644 --- a/test/Feature/packed_struct.ll +++ b/test/Feature/packed_struct.ll @@ -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 }> diff --git a/test/Integer/packed_struct_bt.ll b/test/Integer/packed_struct_bt.ll index 3713917..a4d01e7 100644 --- a/test/Integer/packed_struct_bt.ll +++ b/test/Integer/packed_struct_bt.ll @@ -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 }> diff --git a/test/Linker/2003-10-21-ConflictingTypesTolerance.ll b/test/Linker/2003-10-21-ConflictingTypesTolerance.ll index b3e64da..f61d886 100644 --- a/test/Linker/2003-10-21-ConflictingTypesTolerance.ll +++ b/test/Linker/2003-10-21-ConflictingTypesTolerance.ll @@ -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 } diff --git a/test/Linker/2004-12-03-DisagreeingType.ll b/test/Linker/2004-12-03-DisagreeingType.ll index 63d851b1..7378fdd 100644 --- a/test/Linker/2004-12-03-DisagreeingType.ll +++ b/test/Linker/2004-12-03-DisagreeingType.ll @@ -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. diff --git a/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll b/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll index ef48cf8..dbac15c 100644 --- a/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll +++ b/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll @@ -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] diff --git a/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll b/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll index 47b7035..e366a65 100644 --- a/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll +++ b/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll @@ -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*) -- cgit v1.1