summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-16 15:15:52 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-16 15:15:52 +0000
commit4cda190ef512853b290db8b4054367fa2e3e094c (patch)
tree2cee5f23133d0d58fe9c24a836fc5694861ac22f /test
parent3401c99889184fee77307889914299f283e23def (diff)
downloadexternal_llvm-4cda190ef512853b290db8b4054367fa2e3e094c.zip
external_llvm-4cda190ef512853b290db8b4054367fa2e3e094c.tar.gz
external_llvm-4cda190ef512853b290db8b4054367fa2e3e094c.tar.bz2
For PR1319:
Fix test syntax per new rules. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36133 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Analysis/BasicAA/2003-11-04-SimpleCases.ll3
-rw-r--r--test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll3
-rw-r--r--test/Analysis/BasicAA/2006-03-03-BadArraySubscript.ll3
-rw-r--r--test/Analysis/BasicAA/modref.ll5
-rw-r--r--test/C++Frontend/2003-08-29-ArgPassingBug.cpp.tr2
-rw-r--r--test/CFrontend/2003-11-19-AddressOfRegister.c.tr2
-rw-r--r--test/CFrontend/2005-01-02-VAArgError-ICE.c2
-rw-r--r--test/CFrontend/2006-09-21-IncompleteElementType.c2
-rw-r--r--test/CFrontend/2006-09-25-DebugFilename.c5
-rw-r--r--test/CodeGen/ARM/2007-03-13-InstrSched.ll3
-rw-r--r--test/CodeGen/ARM/addrmode.ll3
-rw-r--r--test/CodeGen/ARM/iabs.ll6
-rw-r--r--test/CodeGen/ARM/lsr-code-insertion.ll8
-rw-r--r--test/CodeGen/PowerPC/iabs.ll3
-rw-r--r--test/CodeGen/PowerPC/rlwimi3.ll3
-rw-r--r--test/CodeGen/X86/2003-08-03-CallArgLiveRanges.llx2
-rw-r--r--test/CodeGen/X86/2006-03-02-InstrSchedBug.ll3
-rw-r--r--test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll3
-rw-r--r--test/CodeGen/X86/2006-05-02-InstrSched1.ll5
-rw-r--r--test/CodeGen/X86/2006-05-02-InstrSched2.ll3
-rw-r--r--test/CodeGen/X86/iabs.ll3
-rw-r--r--test/Transforms/LICM/scalar_promote.ll3
-rw-r--r--test/Transforms/TailCallElim/ackermann.ll3
23 files changed, 48 insertions, 30 deletions
diff --git a/test/Analysis/BasicAA/2003-11-04-SimpleCases.ll b/test/Analysis/BasicAA/2003-11-04-SimpleCases.ll
index fe6ed08..1d122fd 100644
--- a/test/Analysis/BasicAA/2003-11-04-SimpleCases.ll
+++ b/test/Analysis/BasicAA/2003-11-04-SimpleCases.ll
@@ -1,7 +1,8 @@
; This testcase consists of alias relations which should be completely
; resolvable by basicaa.
-; RUN: llvm-upgrade < %s | llvm-as | opt -aa-eval -print-may-aliases 2>&1 -disable-output | not grep May:
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: opt -aa-eval -print-may-aliases -disable-output |& not grep May:
%T = type { uint, [10 x ubyte] }
diff --git a/test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll b/test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll
index f74bdba..5f602b8 100644
--- a/test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll
+++ b/test/Analysis/BasicAA/2003-12-11-ConstExprGEP.ll
@@ -1,7 +1,8 @@
; This testcase consists of alias relations which should be completely
; resolvable by basicaa, but require analysis of getelementptr constant exprs.
-; RUN: llvm-upgrade < %s | llvm-as | opt -aa-eval -print-may-aliases 2>&1 -disable-output | not grep May:
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: opt -aa-eval -print-may-aliases -disable-output |& not grep May:
%T = type { uint, [10 x ubyte] }
diff --git a/test/Analysis/BasicAA/2006-03-03-BadArraySubscript.ll b/test/Analysis/BasicAA/2006-03-03-BadArraySubscript.ll
index 6c82217..d7ae66e 100644
--- a/test/Analysis/BasicAA/2006-03-03-BadArraySubscript.ll
+++ b/test/Analysis/BasicAA/2006-03-03-BadArraySubscript.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -aa-eval -disable-output 2>&1 | grep '2 no alias respon'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: opt -aa-eval -disable-output |& grep '2 no alias respon'
;; TEST that A[1][0] may alias A[0][i].
diff --git a/test/Analysis/BasicAA/modref.ll b/test/Analysis/BasicAA/modref.ll
index be2506c..27b9c40 100644
--- a/test/Analysis/BasicAA/modref.ll
+++ b/test/Analysis/BasicAA/modref.ll
@@ -1,6 +1,7 @@
; A very rudimentary test on AliasAnalysis::getModRefInfo.
-; RUN: llvm-upgrade < %s | llvm-as | opt -print-all-alias-modref-info -aa-eval -disable-output &&
-; RUN: llvm-upgrade < %s | llvm-as | opt -print-all-alias-modref-info -aa-eval -disable-output 2>&1 | not grep NoModRef
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: opt -print-all-alias-modref-info -aa-eval -disable-output |&
+; RUN: not grep NoModRef
int %callee() {
%X = alloca { int, int }
diff --git a/test/C++Frontend/2003-08-29-ArgPassingBug.cpp.tr b/test/C++Frontend/2003-08-29-ArgPassingBug.cpp.tr
index ddb0dce..d4cddff 100644
--- a/test/C++Frontend/2003-08-29-ArgPassingBug.cpp.tr
+++ b/test/C++Frontend/2003-08-29-ArgPassingBug.cpp.tr
@@ -1,5 +1,5 @@
-// RUN: %llvmgcc -xc++ -c -o /dev/null %s 2>&1 | not grep WARNING
+// RUN: %llvmgcc -xc++ -c -o /dev/null %s |& not grep WARNING
struct iterator {
iterator();
diff --git a/test/CFrontend/2003-11-19-AddressOfRegister.c.tr b/test/CFrontend/2003-11-19-AddressOfRegister.c.tr
index ae37cbd..30cac7b 100644
--- a/test/CFrontend/2003-11-19-AddressOfRegister.c.tr
+++ b/test/CFrontend/2003-11-19-AddressOfRegister.c.tr
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -xc %s -S -o /dev/null 2>&1 | not grep 'warning'
+// RUN: %llvmgcc -xc %s -S -o /dev/null |& not grep 'warning'
struct item {
short delta[4];
diff --git a/test/CFrontend/2005-01-02-VAArgError-ICE.c b/test/CFrontend/2005-01-02-VAArgError-ICE.c
index 26a2da0..db82558 100644
--- a/test/CFrontend/2005-01-02-VAArgError-ICE.c
+++ b/test/CFrontend/2005-01-02-VAArgError-ICE.c
@@ -1,6 +1,6 @@
// This file is erroneous, but should not cause the compiler to ICE.
// PR481
-// RUN: %llvmgcc %s -S -o /dev/null 2>&1 | not grep 'internal compiler error'
+// RUN: %llvmgcc %s -S -o /dev/null |& not grep {internal compiler error}
#include <stdarg.h>
int flags(int a, int b, ...) {
diff --git a/test/CFrontend/2006-09-21-IncompleteElementType.c b/test/CFrontend/2006-09-21-IncompleteElementType.c
index 1899f36..64f7501 100644
--- a/test/CFrontend/2006-09-21-IncompleteElementType.c
+++ b/test/CFrontend/2006-09-21-IncompleteElementType.c
@@ -1,3 +1,3 @@
-// RUN: %llvmgcc %s -S -o /dev/null 2>&1 | not grep 'internal compiler error'
+// RUN: %llvmgcc %s -S -o /dev/null |& not grep {internal compiler error}
struct A X[(927 - 37) / sizeof(struct A)];
diff --git a/test/CFrontend/2006-09-25-DebugFilename.c b/test/CFrontend/2006-09-25-DebugFilename.c
index c59e9ad..893a79e 100644
--- a/test/CFrontend/2006-09-25-DebugFilename.c
+++ b/test/CFrontend/2006-09-25-DebugFilename.c
@@ -1,5 +1,6 @@
-// RUN: %llvmgcc -xc %s -S -o /dev/null 2>&1 | grep fluffy | grep '2006-09-25-DebugFilename.c.tr'
+// RUN: %llvmgcc -xc %s -S -o /dev/null |& \
+// RUN: grep fluffy | grep 2006-09-25-DebugFilename.c.tr
#include "2006-09-25-DebugFilename.h"
int func1() { return hfunc1(); }
-int func2() { fluffy; return hfunc1(); }
+int func2() { int fluffy; return hfunc1(); }
diff --git a/test/CodeGen/ARM/2007-03-13-InstrSched.ll b/test/CodeGen/ARM/2007-03-13-InstrSched.ll
index 33df406..8fdff52 100644
--- a/test/CodeGen/ARM/2007-03-13-InstrSched.ll
+++ b/test/CodeGen/ARM/2007-03-13-InstrSched.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic -mattr=+v6 -stats 2>&1 | grep 'asm-printer' | grep 41
+; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -relocation-model=pic \
+; RUN: -mattr=+v6 -stats |& grep asm-printer | grep 41
define void @test(i32 %tmp56222, i32 %tmp36224, i32 %tmp46223, i32 %i.0196.0.ph, i32 %tmp8, i32* %tmp1011, i32** %tmp1, i32* %d2.1.out, i32* %d3.1.out, i32* %d0.1.out, i32* %d1.1.out) {
newFuncRoot:
diff --git a/test/CodeGen/ARM/addrmode.ll b/test/CodeGen/ARM/addrmode.ll
index 59b1421..a3832c0 100644
--- a/test/CodeGen/ARM/addrmode.ll
+++ b/test/CodeGen/ARM/addrmode.ll
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -march=arm &&
-; RUN: llvm-as < %s | llc -march=arm -stats 2>&1 | grep 'asm-printer' | grep 4
+; RUN: llvm-as < %s | llc -march=arm -stats |& grep asm-printer | grep 4
define i32 @t1(i32 %a) {
%b = mul i32 %a, 9
diff --git a/test/CodeGen/ARM/iabs.ll b/test/CodeGen/ARM/iabs.ll
index 26819de..f10591f 100644
--- a/test/CodeGen/ARM/iabs.ll
+++ b/test/CodeGen/ARM/iabs.ll
@@ -1,5 +1,7 @@
-; RUN: llvm-as < %s | llc -march=arm -stats 2>&1 | grep '3 .*Number of machine instrs printed' &&
-; RUN: llvm-as < %s | llc -march=thumb -stats 2>&1 | grep '4 .*Number of machine instrs printed'
+; RUN: llvm-as < %s | llc -march=arm -stats |& \
+; RUN: grep {3 .*Number of machine instrs printed}
+; RUN: llvm-as < %s | llc -march=thumb -stats |& \
+; RUN: grep {4 .*Number of machine instrs printed}
;; Integer absolute value, should produce something as good as: ARM:
;; add r3, r0, r0, asr #31
diff --git a/test/CodeGen/ARM/lsr-code-insertion.ll b/test/CodeGen/ARM/lsr-code-insertion.ll
index baa8cdd..04b856f 100644
--- a/test/CodeGen/ARM/lsr-code-insertion.ll
+++ b/test/CodeGen/ARM/lsr-code-insertion.ll
@@ -1,7 +1,7 @@
-; RUN: llvm-as < %s | llc -stats 2>&1 | grep '40.*Number of machine instrs printed'
-; This test really wants to check that the resultant "cond_true" block only has a single
-; store in it, and that cond_true55 only has code to materialize the constant and do
-; a store. We do *not* want something like this:
+; RUN: llvm-as < %s | llc -stats |& grep {40.*Number of machine instrs printed}
+; This test really wants to check that the resultant "cond_true" block only
+; has a single store in it, and that cond_true55 only has code to materialize
+; the constant and do a store. We do *not* want something like this:
;
;LBB1_3: @cond_true
; add r8, r0, r6
diff --git a/test/CodeGen/PowerPC/iabs.ll b/test/CodeGen/PowerPC/iabs.ll
index 1414c0e..677b41b 100644
--- a/test/CodeGen/PowerPC/iabs.ll
+++ b/test/CodeGen/PowerPC/iabs.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -march=ppc32 -stats 2>&1 | grep '4 .*Number of machine instrs printed'
+; RUN: llvm-as < %s | llc -march=ppc32 -stats |& \
+; RUN: grep {4 .*Number of machine instrs printed}
;; Integer absolute value, should produce something as good as:
;; srawi r2, r3, 31
diff --git a/test/CodeGen/PowerPC/rlwimi3.ll b/test/CodeGen/PowerPC/rlwimi3.ll
index 44bc034..b313ef9 100644
--- a/test/CodeGen/PowerPC/rlwimi3.ll
+++ b/test/CodeGen/PowerPC/rlwimi3.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -stats 2>&1 | grep 'Number of machine instrs printed' | grep 12
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -stats |& \
+; RUN: grep {Number of machine instrs printed} | grep 12
ushort %Trans16Bit(uint %srcA, uint %srcB, uint %alpha) {
%tmp1 = shl uint %srcA, ubyte 15 ; <uint> [#uses=1]
diff --git a/test/CodeGen/X86/2003-08-03-CallArgLiveRanges.llx b/test/CodeGen/X86/2003-08-03-CallArgLiveRanges.llx
index 77ac17b..9a4541b 100644
--- a/test/CodeGen/X86/2003-08-03-CallArgLiveRanges.llx
+++ b/test/CodeGen/X86/2003-08-03-CallArgLiveRanges.llx
@@ -3,7 +3,7 @@
; it makes a ton of annoying overlapping live ranges. This code should not
; cause spills!
;
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | not grep spilled
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& not grep spilled
target endian = little
target pointersize = 32
diff --git a/test/CodeGen/X86/2006-03-02-InstrSchedBug.ll b/test/CodeGen/X86/2006-03-02-InstrSchedBug.ll
index bf96708..da063df 100644
--- a/test/CodeGen/X86/2006-03-02-InstrSchedBug.ll
+++ b/test/CodeGen/X86/2006-03-02-InstrSchedBug.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | grep 'asm-printer' | grep 7
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& \
+; RUN: grep asm-printer | grep 7
int %g(int %a, int %b) {
%tmp.1 = shl int %b, ubyte 1
diff --git a/test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll b/test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll
index 71b9076..f89cfe0 100644
--- a/test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll
+++ b/test/CodeGen/X86/2006-05-01-SchedCausingSpills.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah -stats 2>&1 | not grep 'Number of register spills'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah -stats |& \
+; RUN: not grep {Number of register spills}
int %foo(<4 x float>* %a, <4 x float>* %b, <4 x float>* %c, <4 x float>* %d) {
%tmp44 = load <4 x float>* %a ; <<4 x float>> [#uses=9]
diff --git a/test/CodeGen/X86/2006-05-02-InstrSched1.ll b/test/CodeGen/X86/2006-05-02-InstrSched1.ll
index 631e416..59a15f4 100644
--- a/test/CodeGen/X86/2006-05-02-InstrSched1.ll
+++ b/test/CodeGen/X86/2006-05-02-InstrSched1.ll
@@ -1,4 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static -stats 2>&1 | grep "asm-printer" | grep 14
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=x86 -relocation-model=static -stats |& \
+; RUN: grep asm-printer | grep 14
+;
%size20 = external global uint ; <uint*> [#uses=1]
%in5 = external global ubyte* ; <ubyte**> [#uses=1]
diff --git a/test/CodeGen/X86/2006-05-02-InstrSched2.ll b/test/CodeGen/X86/2006-05-02-InstrSched2.ll
index 9b58de2..b7ef09f 100644
--- a/test/CodeGen/X86/2006-05-02-InstrSched2.ll
+++ b/test/CodeGen/X86/2006-05-02-InstrSched2.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats 2>&1 | grep "asm-printer" | grep 18
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& \
+; RUN: grep asm-printer | grep 18
void %_ZN9__gnu_cxx9hashtableISt4pairIKPKciES3_NS_4hashIS3_EESt10_Select1stIS5_E5eqstrSaIiEE14find_or_insertERKS5__cond_true456.i(sbyte* %tmp435.i, uint* %tmp449.i.out) {
newFuncRoot:
diff --git a/test/CodeGen/X86/iabs.ll b/test/CodeGen/X86/iabs.ll
index e1eab33..7c23645 100644
--- a/test/CodeGen/X86/iabs.ll
+++ b/test/CodeGen/X86/iabs.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -march=x86-64 -stats 2>&1 | grep '6 .*Number of machine instrs printed'
+; RUN: llvm-as < %s | llc -march=x86-64 -stats |& \
+; RUN: grep {6 .*Number of machine instrs printed}
;; Integer absolute value, should produce something at least as good as:
;; movl %edi, %eax
diff --git a/test/Transforms/LICM/scalar_promote.ll b/test/Transforms/LICM/scalar_promote.ll
index 219b16b..8720a6a 100644
--- a/test/Transforms/LICM/scalar_promote.ll
+++ b/test/Transforms/LICM/scalar_promote.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -licm -stats 2>&1 | grep "memory locations promoted to register"
+; RUN: llvm-upgrade < %s | llvm-as | opt -licm -stats |& \
+; RUN: grep {memory locations promoted to register}
%X = global int 7
diff --git a/test/Transforms/TailCallElim/ackermann.ll b/test/Transforms/TailCallElim/ackermann.ll
index eed684b..dd6e276 100644
--- a/test/Transforms/TailCallElim/ackermann.ll
+++ b/test/Transforms/TailCallElim/ackermann.ll
@@ -1,5 +1,6 @@
; This function contains two tail calls, which should be eliminated
-; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim -stats -disable-output 2>&1 | grep '2 tailcallelim'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: opt -tailcallelim -stats -disable-output |& grep {2 tailcallelim}
int %Ack(int %M.1, int %N.1) {
entry: