diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 15:31:49 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-16 15:31:49 +0000 |
| commit | 4dcf8bff4ba9047bf6bfe0a5f5d3c15d4bd228ee (patch) | |
| tree | c5877337e572d787c31ec10c2f02518baa1ab940 /llvm/test/CodeGen | |
| parent | 86f337eeda121a491e68462eb76004db3abda039 (diff) | |
| download | bcm5719-llvm-4dcf8bff4ba9047bf6bfe0a5f5d3c15d4bd228ee.tar.gz bcm5719-llvm-4dcf8bff4ba9047bf6bfe0a5f5d3c15d4bd228ee.zip | |
For PR1319:
Fix syntax of tests to ensure grep pattern is properly quoted.
llvm-svn: 36134
Diffstat (limited to 'llvm/test/CodeGen')
| -rw-r--r-- | llvm/test/CodeGen/Alpha/ctpop.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/CBackend/2004-12-03-ExternStatics.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/Generic/2007-04-14-BitTestsBadMask.ll | 4 | ||||
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/and-imm.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/PowerPC/small-arguments.ll | 3 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2005-01-17-CycleInDAG.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2005-12-03-IndirectTailCall.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2006-05-08-InstrSched.ll | 3 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll | 4 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/2007-02-04-OrAddrMode.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/overlap-add.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/setuge.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/shift-one.ll | 2 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/trunc-to-bool.ll | 3 | ||||
| -rw-r--r-- | llvm/test/CodeGen/X86/vec_shuffle-10.ll | 10 |
17 files changed, 25 insertions, 24 deletions
diff --git a/llvm/test/CodeGen/Alpha/ctpop.ll b/llvm/test/CodeGen/Alpha/ctpop.ll index fa84cb706b9..6405224117b 100644 --- a/llvm/test/CodeGen/Alpha/ctpop.ll +++ b/llvm/test/CodeGen/Alpha/ctpop.ll @@ -7,7 +7,7 @@ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev56 | \ ; RUN: not grep -i ctpop ; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=-CIX | \ -; RUN: not grep -i 'ctpop' +; RUN: not grep -i ctpop ; XFAIL: * declare long %llvm.ctpop.i64(long) diff --git a/llvm/test/CodeGen/CBackend/2004-12-03-ExternStatics.ll b/llvm/test/CodeGen/CBackend/2004-12-03-ExternStatics.ll index 6a55db8617c..a285daeab22 100644 --- a/llvm/test/CodeGen/CBackend/2004-12-03-ExternStatics.ll +++ b/llvm/test/CodeGen/CBackend/2004-12-03-ExternStatics.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | not grep 'extern.*msg' +; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | not grep extern.*msg ; This is PR472 diff --git a/llvm/test/CodeGen/Generic/2007-04-14-BitTestsBadMask.ll b/llvm/test/CodeGen/Generic/2007-04-14-BitTestsBadMask.ll index 2bb4233bb95..0f5688db372 100644 --- a/llvm/test/CodeGen/Generic/2007-04-14-BitTestsBadMask.ll +++ b/llvm/test/CodeGen/Generic/2007-04-14-BitTestsBadMask.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86 | grep '8388635' && -; RUN: llvm-as < %s | llc -march=x86-64 | grep '4294981120' +; RUN: llvm-as < %s | llc -march=x86 | grep 8388635 && +; RUN: llvm-as < %s | llc -march=x86-64 | grep 4294981120 ; PR 1325 ; FIXME: this is xfailed until we figure out ppc bootstrap diff --git a/llvm/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll b/llvm/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll index 839e88c51ef..87f6005a364 100644 --- a/llvm/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll +++ b/llvm/test/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll @@ -1,3 +1,3 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep '.comm.*X,0' +; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep .comm.*X,0 %X = linkonce global {} {} diff --git a/llvm/test/CodeGen/PowerPC/and-imm.ll b/llvm/test/CodeGen/PowerPC/and-imm.ll index e81f7768a60..b1d9fcbba16 100644 --- a/llvm/test/CodeGen/PowerPC/and-imm.ll +++ b/llvm/test/CodeGen/PowerPC/and-imm.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'ori\|lis' +; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep {ori\\|lis} int %test(int %X) { %Y = and int %X, 32769 ; andi. r3, r3, 32769 diff --git a/llvm/test/CodeGen/PowerPC/small-arguments.ll b/llvm/test/CodeGen/PowerPC/small-arguments.ll index 3ab92d1187b..e5120473a2f 100644 --- a/llvm/test/CodeGen/PowerPC/small-arguments.ll +++ b/llvm/test/CodeGen/PowerPC/small-arguments.ll @@ -1,5 +1,4 @@ -; RUN: llvm-as < %s | llc -march=ppc32 && -; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'extsh\|rlwinm' +; RUN: llvm-as < %s | llc -march=ppc32 | not grep {extsh\\|rlwinm} declare i16 @foo() sext diff --git a/llvm/test/CodeGen/X86/2005-01-17-CycleInDAG.ll b/llvm/test/CodeGen/X86/2005-01-17-CycleInDAG.ll index 8dbff537f59..74233ebda05 100644 --- a/llvm/test/CodeGen/X86/2005-01-17-CycleInDAG.ll +++ b/llvm/test/CodeGen/X86/2005-01-17-CycleInDAG.ll @@ -3,7 +3,7 @@ ; is invalid code (there is no correct way to order the instruction). Check ; that we do not fold the load into the sub. -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep 'sub.*GLOBAL' +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep sub.*GLOBAL %GLOBAL = external global int diff --git a/llvm/test/CodeGen/X86/2005-12-03-IndirectTailCall.ll b/llvm/test/CodeGen/X86/2005-12-03-IndirectTailCall.ll index e87221decf5..f5d5ec2e615 100644 --- a/llvm/test/CodeGen/X86/2005-12-03-IndirectTailCall.ll +++ b/llvm/test/CodeGen/X86/2005-12-03-IndirectTailCall.ll @@ -1,5 +1,5 @@ ; XFAIL: * -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 'jmp \*ecx' +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep {jmp \\*ecx} declare int %putchar(int) int %main(){ diff --git a/llvm/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll b/llvm/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll index c9e4b0675e1..b7f08cfc9ce 100644 --- a/llvm/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll +++ b/llvm/test/CodeGen/X86/2006-03-01-InstrSchedBug.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep 'subl.*%esp' +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep {subl.*%esp} int %f(int %a, int %b) { %tmp.2 = mul int %a, %a diff --git a/llvm/test/CodeGen/X86/2006-05-08-InstrSched.ll b/llvm/test/CodeGen/X86/2006-05-08-InstrSched.ll index 8897692be21..fd35f9f5cce 100644 --- a/llvm/test/CodeGen/X86/2006-05-08-InstrSched.ll +++ b/llvm/test/CodeGen/X86/2006-05-08-InstrSched.ll @@ -1,4 +1,5 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static | not grep 'subl.*%esp' +; RUN: llvm-upgrade < %s | llvm-as | \ +; RUN: llc -march=x86 -relocation-model=static | not grep {subl.*%esp} %A = external global ushort* %B = external global uint diff --git a/llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll b/llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll index 43d685188ec..bdef507f93c 100644 --- a/llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll +++ b/llvm/test/CodeGen/X86/2007-01-13-StackPtrIndex.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86-64 -sched=none | grep leaq && -; RUN: llvm-as < %s | llc -march=x86-64 -sched=none | not grep ',%rsp)' +; RUN: llvm-as < %s | llc -march=x86-64 -sched=none | grep leaq +; RUN: llvm-as < %s | llc -march=x86-64 -sched=none | not grep {,%rsp)} ; PR1103 target datalayout = "e-p:64:64" diff --git a/llvm/test/CodeGen/X86/2007-02-04-OrAddrMode.ll b/llvm/test/CodeGen/X86/2007-02-04-OrAddrMode.ll index 05114d1bff6..cadba5b0437 100644 --- a/llvm/test/CodeGen/X86/2007-02-04-OrAddrMode.ll +++ b/llvm/test/CodeGen/X86/2007-02-04-OrAddrMode.ll @@ -1,5 +1,5 @@ ; RUN: llvm-as < %s | llc -march=x86 | grep {orl \$1, %eax} -; RUN: llvm-as < %s | llc -march=x86 | grep {leal 3(,%eax,8)' +; RUN: llvm-as < %s | llc -march=x86 | grep {leal 3(,%eax,8)} ;; This example can't fold the or into an LEA. define i32 @test(float ** %tmp2, i32 %tmp12) { diff --git a/llvm/test/CodeGen/X86/overlap-add.ll b/llvm/test/CodeGen/X86/overlap-add.ll index 354dcc6fe6f..4eef68d3d54 100644 --- a/llvm/test/CodeGen/X86/overlap-add.ll +++ b/llvm/test/CodeGen/X86/overlap-add.ll @@ -7,7 +7,7 @@ ; Check that the shift gets turned into an LEA. ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \ -; RUN: not grep 'mov E.X, E.X' +; RUN: not grep {mov E.X, E.X} ; FIXME: We need live variable information about flags to do this xform safely. :( ; XFAIL: * diff --git a/llvm/test/CodeGen/X86/setuge.ll b/llvm/test/CodeGen/X86/setuge.ll index 0cdade2710d..2960c6b4d1e 100644 --- a/llvm/test/CodeGen/X86/setuge.ll +++ b/llvm/test/CodeGen/X86/setuge.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep 'set' +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep set declare bool %llvm.isunordered.f32(float, float) diff --git a/llvm/test/CodeGen/X86/shift-one.ll b/llvm/test/CodeGen/X86/shift-one.ll index a91cbbc5030..3108fba0f4d 100644 --- a/llvm/test/CodeGen/X86/shift-one.ll +++ b/llvm/test/CodeGen/X86/shift-one.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep 'leal' +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep leal %x = external global int diff --git a/llvm/test/CodeGen/X86/trunc-to-bool.ll b/llvm/test/CodeGen/X86/trunc-to-bool.ll index 667fc2f3d3c..bf5382510c2 100644 --- a/llvm/test/CodeGen/X86/trunc-to-bool.ll +++ b/llvm/test/CodeGen/X86/trunc-to-bool.ll @@ -1,8 +1,7 @@ ; An integer truncation to i1 should be done with an and instruction to make ; sure only the LSBit survives. Test that this is the case both for a returned ; value and as the operand of a branch. -; RUN: llvm-as < %s | llc -march=x86 && -; RUN: llvm-as < %s | llc -march=x86 | grep '\(and\)\|\(test.*\$1\)' | \ +; RUN: llvm-as < %s | llc -march=x86 | grep {\\(and\\)\\|\\(test.*\\\$1\\)} | \ ; RUN: wc -l | grep 6 define i1 @test1(i32 %X) zext { diff --git a/llvm/test/CodeGen/X86/vec_shuffle-10.ll b/llvm/test/CodeGen/X86/vec_shuffle-10.ll index ccd19114174..34a97c4ffde 100644 --- a/llvm/test/CodeGen/X86/vec_shuffle-10.ll +++ b/llvm/test/CodeGen/X86/vec_shuffle-10.ll @@ -1,7 +1,9 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 && -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep unpcklps | wc -l | grep 1 && -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep unpckhps | wc -l | grep 1 && -; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | not grep 'sub.*esp' +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | \ +; RUN: grep unpcklps | wc -l | grep 1 +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | \ +; RUN: grep unpckhps | wc -l | grep 1 +; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | \ +; RUN: not grep {sub.*esp} void %test(<4 x float>* %res, <4 x float>* %A, <4 x float>* %B) { %tmp = load <4 x float>* %B ; <<4 x float>> [#uses=2] |

