[llvm-commits] CVS: llvm/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll 2006-01-11-darwin-fp-argument.ll 2006-04-05-splat-ish.ll 2006-10-11-combiner-aa-regression.ll 2007-02-16-AlignPacked.ll Frames-align.ll Frames-alloca.ll Frames-large.ll Frames-leaf.ll Frames-small.ll LargeAbsoluteAddr.ll branch-opt.ll bswap-load-store.ll calls.ll compare-simm.ll constants.ll cttz.ll darwin-labels.ll dg.exp fma.ll fsqrt.ll i64_fp.ll long-compare.ll mem-rr-addr-mode.ll rlwimi-commute.ll seteq-0.ll
Reid Spencer
reid at x10sys.com
Sun Apr 15 14:16:06 PDT 2007
Changes in directory llvm/test/CodeGen/PowerPC:
2005-09-02-LegalizeDuplicatesCalls.ll updated: 1.3 -> 1.4
2006-01-11-darwin-fp-argument.ll updated: 1.2 -> 1.3
2006-04-05-splat-ish.ll updated: 1.3 -> 1.4
2006-10-11-combiner-aa-regression.ll updated: 1.3 -> 1.4
2007-02-16-AlignPacked.ll updated: 1.1 -> 1.2
Frames-align.ll updated: 1.4 -> 1.5
Frames-alloca.ll updated: 1.3 -> 1.4
Frames-large.ll updated: 1.4 -> 1.5
Frames-leaf.ll updated: 1.3 -> 1.4
Frames-small.ll updated: 1.4 -> 1.5
LargeAbsoluteAddr.ll updated: 1.3 -> 1.4
branch-opt.ll updated: 1.7 -> 1.8
bswap-load-store.ll updated: 1.4 -> 1.5
calls.ll updated: 1.5 -> 1.6
compare-simm.ll updated: 1.2 -> 1.3
constants.ll updated: 1.5 -> 1.6
cttz.ll updated: 1.3 -> 1.4
darwin-labels.ll updated: 1.4 -> 1.5
dg.exp updated: 1.4 -> 1.5
fma.ll updated: 1.6 -> 1.7
fsqrt.ll updated: 1.4 -> 1.5
i64_fp.ll updated: 1.2 -> 1.3
long-compare.ll updated: 1.1 -> 1.2
mem-rr-addr-mode.ll updated: 1.2 -> 1.3
rlwimi-commute.ll updated: 1.2 -> 1.3
seteq-0.ll updated: 1.3 -> 1.4
---
Log message:
For PR1319: http://llvm.org/PR1319 : Upgrade to new test harness.
---
Diffs of the changes: (+270 -127)
2005-09-02-LegalizeDuplicatesCalls.ll | 3 -
2006-01-11-darwin-fp-argument.ll | 3 -
2006-04-05-splat-ish.ll | 4 +
2006-10-11-combiner-aa-regression.ll | 3 -
2007-02-16-AlignPacked.ll | 3 -
Frames-align.ll | 13 +++-
Frames-alloca.ll | 63 ++++++++++++++++------
Frames-large.ll | 95 +++++++++++++++++++++++++---------
Frames-leaf.ll | 48 +++++++++++------
Frames-small.ll | 44 +++++++++------
LargeAbsoluteAddr.ll | 10 ++-
branch-opt.ll | 4 -
bswap-load-store.ll | 12 ++--
calls.ll | 9 ++-
compare-simm.ll | 3 -
constants.ll | 9 ++-
cttz.ll | 2
darwin-labels.ll | 2
dg.exp | 4 -
fma.ll | 3 -
fsqrt.ll | 16 ++++-
i64_fp.ll | 26 ++++++---
long-compare.ll | 8 +-
mem-rr-addr-mode.ll | 2
rlwimi-commute.ll | 4 -
seteq-0.ll | 4 +
26 files changed, 270 insertions(+), 127 deletions(-)
Index: llvm/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
diff -u llvm/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll:1.3 llvm/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll:1.4
--- llvm/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll:1.3 Fri Dec 1 22:23:08 2006
+++ llvm/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll Sun Apr 15 16:15:41 2007
@@ -1,6 +1,7 @@
; This function should have exactly one call to fixdfdi, no more!
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | grep 'bl .*fixdfdi' | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | \
+; RUN: grep {bl .*fixdfdi} | wc -l | grep 1
double %test2(double %tmp.7705) {
%mem_tmp.2.0.in = cast double %tmp.7705 to long ; <long> [#uses=1]
Index: llvm/test/CodeGen/PowerPC/2006-01-11-darwin-fp-argument.ll
diff -u llvm/test/CodeGen/PowerPC/2006-01-11-darwin-fp-argument.ll:1.2 llvm/test/CodeGen/PowerPC/2006-01-11-darwin-fp-argument.ll:1.3
--- llvm/test/CodeGen/PowerPC/2006-01-11-darwin-fp-argument.ll:1.2 Fri Dec 1 22:23:08 2006
+++ llvm/test/CodeGen/PowerPC/2006-01-11-darwin-fp-argument.ll Sun Apr 15 16:15:41 2007
@@ -1,5 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc &&
-; RUN: llvm-upgrade < %s | llvm-as | llc | not grep ', f1'
+; RUN: llvm-upgrade < %s | llvm-as | llc | not grep {, f1}
target endian = big
target pointersize = 32
Index: llvm/test/CodeGen/PowerPC/2006-04-05-splat-ish.ll
diff -u llvm/test/CodeGen/PowerPC/2006-04-05-splat-ish.ll:1.3 llvm/test/CodeGen/PowerPC/2006-04-05-splat-ish.ll:1.4
--- llvm/test/CodeGen/PowerPC/2006-04-05-splat-ish.ll:1.3 Wed Dec 20 18:01:42 2006
+++ llvm/test/CodeGen/PowerPC/2006-04-05-splat-ish.ll Sun Apr 15 16:15:41 2007
@@ -1,4 +1,6 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | grep 'vspltish v.*, 10'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
+; RUN: grep {vspltish v.*, 10}
void %test(<8 x short>* %P) {
%tmp = load <8 x short>* %P ; <<8 x short>> [#uses=1]
Index: llvm/test/CodeGen/PowerPC/2006-10-11-combiner-aa-regression.ll
diff -u llvm/test/CodeGen/PowerPC/2006-10-11-combiner-aa-regression.ll:1.3 llvm/test/CodeGen/PowerPC/2006-10-11-combiner-aa-regression.ll:1.4
--- llvm/test/CodeGen/PowerPC/2006-10-11-combiner-aa-regression.ll:1.3 Fri Dec 1 22:23:08 2006
+++ llvm/test/CodeGen/PowerPC/2006-10-11-combiner-aa-regression.ll Sun Apr 15 16:15:41 2007
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -combiner-alias-analysis | grep 'f5'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -combiner-alias-analysis | grep f5
target endian = big
target pointersize = 32
Index: llvm/test/CodeGen/PowerPC/2007-02-16-AlignPacked.ll
diff -u llvm/test/CodeGen/PowerPC/2007-02-16-AlignPacked.ll:1.1 llvm/test/CodeGen/PowerPC/2007-02-16-AlignPacked.ll:1.2
--- llvm/test/CodeGen/PowerPC/2007-02-16-AlignPacked.ll:1.1 Fri Feb 16 17:11:43 2007
+++ llvm/test/CodeGen/PowerPC/2007-02-16-AlignPacked.ll Sun Apr 15 16:15:41 2007
@@ -1,3 +1,4 @@
-; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | grep 'align.*3'
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8.8.0 | \
+; RUN: grep align.*3
@X = global <{i32, i32}> <{ i32 1, i32 123 }>
Index: llvm/test/CodeGen/PowerPC/Frames-align.ll
diff -u llvm/test/CodeGen/PowerPC/Frames-align.ll:1.4 llvm/test/CodeGen/PowerPC/Frames-align.ll:1.5
--- llvm/test/CodeGen/PowerPC/Frames-align.ll:1.4 Thu Jan 25 16:28:32 2007
+++ llvm/test/CodeGen/PowerPC/Frames-align.ll Sun Apr 15 16:15:41 2007
@@ -1,7 +1,12 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'rlwinm r0, r1, 0, 22, 31' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'subfic r0, r0, -16448' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'rldicl r0, r1, 0, 54'
-
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {rlwinm r0, r1, 0, 22, 31}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {subfic r0, r0, -16448}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {rldicl r0, r1, 0, 54}
implementation
Index: llvm/test/CodeGen/PowerPC/Frames-alloca.ll
diff -u llvm/test/CodeGen/PowerPC/Frames-alloca.ll:1.3 llvm/test/CodeGen/PowerPC/Frames-alloca.ll:1.4
--- llvm/test/CodeGen/PowerPC/Frames-alloca.ll:1.3 Wed Dec 20 18:01:42 2006
+++ llvm/test/CodeGen/PowerPC/Frames-alloca.ll Sun Apr 15 16:15:41 2007
@@ -1,19 +1,50 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'stw r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'stwu r1, -64(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'lwz r1, 0(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'lwz r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stw r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stwu r1, -64(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r1, 0(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'std r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'stdu r1, -112(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'ld r1, 0(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'ld r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'std r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stdu r1, -112(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r1, 0(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r31, 40(r1)'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {stw r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {stwu r1, -64(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep {lwz r1, 0(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {lwz r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {stw r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {stwu r1, -64(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {lwz r1, 0(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {lwz r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {std r31, 40(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {stdu r1, -112(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {ld r1, 0(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {ld r31, 40(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {std r31, 40(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {stdu r1, -112(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {ld r1, 0(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {ld r31, 40(r1)}
implementation
Index: llvm/test/CodeGen/PowerPC/Frames-large.ll
diff -u llvm/test/CodeGen/PowerPC/Frames-large.ll:1.4 llvm/test/CodeGen/PowerPC/Frames-large.ll:1.5
--- llvm/test/CodeGen/PowerPC/Frames-large.ll:1.4 Wed Dec 20 18:01:42 2006
+++ llvm/test/CodeGen/PowerPC/Frames-large.ll Sun Apr 15 16:15:41 2007
@@ -1,27 +1,74 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | not grep 'stw r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'lis r0, -1' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'ori r0, r0, 32704' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'stwux r1, r1, r0' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'lwz r1, 0(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | not grep 'lwz r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stw r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lis r0, -1' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ori r0, r0, 32704' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stwux r1, r1, r0' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r1, 0(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | not grep 'std r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'lis r0, -1' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'ori r0, r0, 32656' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'stdux r1, r1, r0' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'ld r1, 0(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | not grep 'ld r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'std r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lis r0, -1' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ori r0, r0, 32656' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stdux r1, r1, r0' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r1, 0(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r31, 40(r1)'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: not grep {stw r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep {lis r0, -1}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {ori r0, r0, 32704}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {stwux r1, r1, r0}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {lwz r1, 0(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: not grep {lwz r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {stw r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {lis r0, -1}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {ori r0, r0, 32704}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {stwux r1, r1, r0}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {lwz r1, 0(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {lwz r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: not grep {std r31, 40(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {lis r0, -1}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {ori r0, r0, 32656}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {stdux r1, r1, r0}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {ld r1, 0(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | \
+; RUN: not grep {ld r31, 40(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {std r31, 40(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {lis r0, -1}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {ori r0, r0, 32656}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {stdux r1, r1, r0}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {ld r1, 0(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | \
+; RUN: grep {ld r31, 40(r1)}
implementation
Index: llvm/test/CodeGen/PowerPC/Frames-leaf.ll
diff -u llvm/test/CodeGen/PowerPC/Frames-leaf.ll:1.3 llvm/test/CodeGen/PowerPC/Frames-leaf.ll:1.4
--- llvm/test/CodeGen/PowerPC/Frames-leaf.ll:1.3 Fri Dec 1 22:23:08 2006
+++ llvm/test/CodeGen/PowerPC/Frames-leaf.ll Sun Apr 15 16:15:41 2007
@@ -1,19 +1,35 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'stw r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'stwu r1, -.*(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'addi r1, r1, ' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'lwz r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | not grep 'stw r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | not grep 'stwu r1, -.*(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | not grep 'addi r1, r1, ' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | not grep 'lwz r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep 'std r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep 'stdu r1, -.*(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep 'addi r1, r1, ' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep 'ld r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | not grep 'stw r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | not grep 'stdu r1, -.*(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | not grep 'addi r1, r1, ' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | not grep 'ld r31, 40(r1)'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: not grep {stw r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: not grep {stwu r1, -.*(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: not grep {addi r1, r1, }
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: not grep {lwz r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | \
+; RUN: not grep {stw r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | \
+; RUN: not grep {stwu r1, -.*(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | \
+; RUN: not grep {addi r1, r1, }
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -disable-fp-elim | \
+; RUN: not grep {lwz r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
+; RUN: not grep {std r31, 40(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
+; RUN: not grep {stdu r1, -.*(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
+; RUN: not grep {addi r1, r1, }
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
+; RUN: not grep {ld r31, 40(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | \
+; RUN: not grep {stw r31, 40(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | \
+; RUN: not grep {stdu r1, -.*(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | \
+; RUN: not grep {addi r1, r1, }
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -disable-fp-elim | \
+; RUN: not grep {ld r31, 40(r1)}
implementation
Index: llvm/test/CodeGen/PowerPC/Frames-small.ll
diff -u llvm/test/CodeGen/PowerPC/Frames-small.ll:1.4 llvm/test/CodeGen/PowerPC/Frames-small.ll:1.5
--- llvm/test/CodeGen/PowerPC/Frames-small.ll:1.4 Wed Dec 20 18:01:42 2006
+++ llvm/test/CodeGen/PowerPC/Frames-small.ll Sun Apr 15 16:15:41 2007
@@ -1,20 +1,30 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | not grep 'stw r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'stwu r1, -16448(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'addi r1, r1, 16448' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | not grep 'lwz r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stw r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stwu r1, -16448(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'addi r1, r1, 16448' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'lwz r31, 20(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | not grep 'std r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'stdu r1, -16496(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | grep 'addi r1, r1, 16496' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 | not grep 'ld r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'std r31, 40(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'stdu r1, -16496(r1)' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'addi r1, r1, 16496' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim | grep 'ld r31, 40(r1)'
-
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -o %t1 -f
+; RUN not grep {stw r31, 20(r1)} %t1
+; RUN: grep {stwu r1, -16448(r1)} %t1
+; RUN: grep {addi r1, r1, 16448} %t1
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: not grep {lwz r31, 20(r1)}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
+; RUN: -o %t2 -f
+; RUN: grep {stw r31, 20(r1)} %t2
+; RUN: grep {stwu r1, -16448(r1)} %t2
+; RUN: grep {addi r1, r1, 16448} %t2
+; RUN: grep {lwz r31, 20(r1)} %t2
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -o %t3 -f
+; RUN: not grep {std r31, 40(r1)} %t3
+; RUN: grep {stdu r1, -16496(r1)} %t3
+; RUN: grep {addi r1, r1, 16496} %t3
+; RUN: not grep {ld r31, 40(r1)} %t3
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc64 -mtriple=powerpc-apple-darwin8 -disable-fp-elim \
+; RUN: -o %t4 -f
+; RUN: grep {std r31, 40(r1)} %t4
+; RUN: grep {stdu r1, -16496(r1)} %t4
+; RUN: grep {addi r1, r1, 16496} %t4
+; RUN: grep {ld r31, 40(r1)} %t4
implementation
Index: llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll
diff -u llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll:1.3 llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll:1.4
--- llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll:1.3 Mon Feb 19 15:47:02 2007
+++ llvm/test/CodeGen/PowerPC/LargeAbsoluteAddr.ll Sun Apr 15 16:15:41 2007
@@ -1,7 +1,9 @@
-; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin | grep 'stw r3, 32751' &&
-; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | grep 'stw r3, 32751' &&
-; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | grep 'std r2, 9024' &&
-; RUN: llvm-as < %s | llc
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin | \
+; RUN: grep {stw r3, 32751}
+; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | \
+; RUN: grep {stw r3, 32751}
+; RUN: llvm-as < %s | llc -march=ppc64 -mtriple=powerpc-apple-darwin | \
+; RUN: grep {std r2, 9024}
define void @test() {
store i32 0, i32* inttoptr (i64 48725999 to i32*)
Index: llvm/test/CodeGen/PowerPC/branch-opt.ll
diff -u llvm/test/CodeGen/PowerPC/branch-opt.ll:1.7 llvm/test/CodeGen/PowerPC/branch-opt.ll:1.8
--- llvm/test/CodeGen/PowerPC/branch-opt.ll:1.7 Mon Apr 2 00:08:54 2007
+++ llvm/test/CodeGen/PowerPC/branch-opt.ll Sun Apr 15 16:15:41 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'b LBB.*' | wc -l | grep 4
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: grep {b LBB.*} | wc -l | grep 4
target endian = big
target pointersize = 32
Index: llvm/test/CodeGen/PowerPC/bswap-load-store.ll
diff -u llvm/test/CodeGen/PowerPC/bswap-load-store.ll:1.4 llvm/test/CodeGen/PowerPC/bswap-load-store.ll:1.5
--- llvm/test/CodeGen/PowerPC/bswap-load-store.ll:1.4 Sun Apr 1 20:08:02 2007
+++ llvm/test/CodeGen/PowerPC/bswap-load-store.ll Sun Apr 15 16:15:41 2007
@@ -1,8 +1,10 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'stwbrx\|lwbrx\|sthbrx\|lhbrx' | wc -l | grep 4 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwinm &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwimi &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | grep 'stwbrx\|lwbrx\|sthbrx\|lhbrx' | wc -l | grep 4 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep rlwinm &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: grep {stwbrx\\|lwbrx\\|sthbrx\\|lhbrx} | wc -l | grep 4
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwinm
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep rlwimi
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | \
+; RUN: grep {stwbrx\\|lwbrx\\|sthbrx\\|lhbrx} | wc -l | grep 4
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep rlwinm
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc64 | not grep rlwimi
void %STWBRX(uint %i, sbyte* %ptr, int %off) {
Index: llvm/test/CodeGen/PowerPC/calls.ll
diff -u llvm/test/CodeGen/PowerPC/calls.ll:1.5 llvm/test/CodeGen/PowerPC/calls.ll:1.6
--- llvm/test/CodeGen/PowerPC/calls.ll:1.5 Tue Feb 27 14:46:44 2007
+++ llvm/test/CodeGen/PowerPC/calls.ll Sun Apr 15 16:15:41 2007
@@ -1,8 +1,11 @@
; Test various forms of calls.
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'bl ' | wc -l | grep 2 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'bctrl' | wc -l | grep 1 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'bla ' | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: grep {bl } | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: grep {bctrl} | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: grep {bla } | wc -l | grep 1
declare void %foo()
Index: llvm/test/CodeGen/PowerPC/compare-simm.ll
diff -u llvm/test/CodeGen/PowerPC/compare-simm.ll:1.2 llvm/test/CodeGen/PowerPC/compare-simm.ll:1.3
--- llvm/test/CodeGen/PowerPC/compare-simm.ll:1.2 Wed Apr 4 16:28:36 2007
+++ llvm/test/CodeGen/PowerPC/compare-simm.ll Sun Apr 15 16:15:41 2007
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'cmpwi cr0, r3, -1'
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {cmpwi cr0, r3, -1}
define i32 @test(i32 %x) {
%c = icmp eq i32 %x, -1
Index: llvm/test/CodeGen/PowerPC/constants.ll
diff -u llvm/test/CodeGen/PowerPC/constants.ll:1.5 llvm/test/CodeGen/PowerPC/constants.ll:1.6
--- llvm/test/CodeGen/PowerPC/constants.ll:1.5 Fri Dec 1 22:23:08 2006
+++ llvm/test/CodeGen/PowerPC/constants.ll Sun Apr 15 16:15:41 2007
@@ -1,7 +1,10 @@
; All of these routines should be perform optimal load of constants.
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep lis | wc -l | grep 5 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep ori | wc -l | grep 3 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep 'li ' | wc -l | grep 4
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: grep lis | wc -l | grep 5
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: grep ori | wc -l | grep 3
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: grep {li } | wc -l | grep 4
implementation ; Functions:
Index: llvm/test/CodeGen/PowerPC/cttz.ll
diff -u llvm/test/CodeGen/PowerPC/cttz.ll:1.3 llvm/test/CodeGen/PowerPC/cttz.ll:1.4
--- llvm/test/CodeGen/PowerPC/cttz.ll:1.3 Sat Dec 2 14:38:37 2006
+++ llvm/test/CodeGen/PowerPC/cttz.ll Sun Apr 15 16:15:41 2007
@@ -1,5 +1,5 @@
; Make sure this testcase does not use ctpop
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep -i 'cntlzw'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep -i cntlzw
declare uint %llvm.cttz.i32(uint)
Index: llvm/test/CodeGen/PowerPC/darwin-labels.ll
diff -u llvm/test/CodeGen/PowerPC/darwin-labels.ll:1.4 llvm/test/CodeGen/PowerPC/darwin-labels.ll:1.5
--- llvm/test/CodeGen/PowerPC/darwin-labels.ll:1.4 Fri Jan 5 12:33:16 2007
+++ llvm/test/CodeGen/PowerPC/darwin-labels.ll Sun Apr 15 16:15:41 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc | grep 'foo bar":'
+; RUN: llvm-upgrade < %s | llvm-as | llc | grep {foo bar":}
target endian = big
target pointersize = 32
Index: llvm/test/CodeGen/PowerPC/dg.exp
diff -u llvm/test/CodeGen/PowerPC/dg.exp:1.4 llvm/test/CodeGen/PowerPC/dg.exp:1.5
--- llvm/test/CodeGen/PowerPC/dg.exp:1.4 Wed Apr 11 14:56:57 2007
+++ llvm/test/CodeGen/PowerPC/dg.exp Sun Apr 15 16:15:41 2007
@@ -1,3 +1,3 @@
-load_lib llvm-dg.exp
+load_lib llvm.exp
-llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
Index: llvm/test/CodeGen/PowerPC/fma.ll
diff -u llvm/test/CodeGen/PowerPC/fma.ll:1.6 llvm/test/CodeGen/PowerPC/fma.ll:1.7
--- llvm/test/CodeGen/PowerPC/fma.ll:1.6 Fri Dec 1 22:23:08 2006
+++ llvm/test/CodeGen/PowerPC/fma.ll Sun Apr 15 16:15:41 2007
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | egrep 'fn?madd|fn?msub' | wc -l | grep 8
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \
+; RUN: egrep {fn?madd|fn?msub} | wc -l | grep 8
double %test_FMADD1(double %A, double %B, double %C) {
%D = mul double %A, %B
Index: llvm/test/CodeGen/PowerPC/fsqrt.ll
diff -u llvm/test/CodeGen/PowerPC/fsqrt.ll:1.4 llvm/test/CodeGen/PowerPC/fsqrt.ll:1.5
--- llvm/test/CodeGen/PowerPC/fsqrt.ll:1.4 Wed Dec 20 18:01:42 2006
+++ llvm/test/CodeGen/PowerPC/fsqrt.ll Sun Apr 15 16:15:41 2007
@@ -1,10 +1,18 @@
; fsqrt should be generated when the fsqrt feature is enabled, but not
; otherwise.
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | grep 'fsqrt f1, f1' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | grep 'fsqrt f1, f1' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | not grep 'fsqrt f1, f1' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g4 | not grep 'fsqrt f1, f1'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=+fsqrt | \
+; RUN: grep {fsqrt f1, f1}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g5 | \
+; RUN: grep {fsqrt f1, f1}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mattr=-fsqrt | \
+; RUN: not grep {fsqrt f1, f1}
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 -mcpu=g4 | \
+; RUN: not grep {fsqrt f1, f1}
declare double %llvm.sqrt.f64(double)
double %X(double %Y) {
Index: llvm/test/CodeGen/PowerPC/i64_fp.ll
diff -u llvm/test/CodeGen/PowerPC/i64_fp.ll:1.2 llvm/test/CodeGen/PowerPC/i64_fp.ll:1.3
--- llvm/test/CodeGen/PowerPC/i64_fp.ll:1.2 Fri Dec 1 22:23:08 2006
+++ llvm/test/CodeGen/PowerPC/i64_fp.ll Sun Apr 15 16:15:41 2007
@@ -1,14 +1,22 @@
-; fcfid and fctid should be generated when the 64bit feature is enabled, but not
+; fcfid and fctid should be generated when the 64bit feature is enabled, but not
; otherwise.
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=+64bit | grep 'fcfid' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=+64bit | grep 'fctidz' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep 'fcfid' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep 'fctidz' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | not grep 'fcfid' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | not grep 'fctidz' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g4 | not grep 'fcfid' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g4 | not grep 'fctidz'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=+64bit | \
+; RUN: grep fcfid
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=+64bit | \
+; RUN: grep fctidz
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | \
+; RUN: grep fcfid
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | \
+; RUN: grep fctidz
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | \
+; RUN: not grep fcfid
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | \
+; RUN: not grep fctidz
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g4 | \
+; RUN: not grep fcfid
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g4 | \
+; RUN: not grep fctidz
double %X(double %Y) {
%A = cast double %Y to long
Index: llvm/test/CodeGen/PowerPC/long-compare.ll
diff -u llvm/test/CodeGen/PowerPC/long-compare.ll:1.1 llvm/test/CodeGen/PowerPC/long-compare.ll:1.2
--- llvm/test/CodeGen/PowerPC/long-compare.ll:1.1 Thu Feb 8 22:49:46 2007
+++ llvm/test/CodeGen/PowerPC/long-compare.ll Sun Apr 15 16:15:41 2007
@@ -1,7 +1,7 @@
-; RUN: llvm-as < %s | llc -march=ppc32 | grep cntlzw &&
-; RUN: llvm-as < %s | llc -march=ppc32 | not grep xori &&
-; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'li ' &&
-; RUN: llvm-as < %s | llc -march=ppc32 | not grep 'mr '
+; RUN: llvm-as < %s | llc -march=ppc32 | grep cntlzw
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep xori
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep {li }
+; RUN: llvm-as < %s | llc -march=ppc32 | not grep {mr }
define i1 @test(i64 %x) {
%tmp = icmp ult i64 %x, 4294967296
Index: llvm/test/CodeGen/PowerPC/mem-rr-addr-mode.ll
diff -u llvm/test/CodeGen/PowerPC/mem-rr-addr-mode.ll:1.2 llvm/test/CodeGen/PowerPC/mem-rr-addr-mode.ll:1.3
--- llvm/test/CodeGen/PowerPC/mem-rr-addr-mode.ll:1.2 Fri Dec 1 22:23:08 2006
+++ llvm/test/CodeGen/PowerPC/mem-rr-addr-mode.ll Sun Apr 15 16:15:41 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep 'li.*16' &&
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep li.*16
; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | not grep addi
; Codegen lvx (R+16) as t = li 16, lvx t,R
Index: llvm/test/CodeGen/PowerPC/rlwimi-commute.ll
diff -u llvm/test/CodeGen/PowerPC/rlwimi-commute.ll:1.2 llvm/test/CodeGen/PowerPC/rlwimi-commute.ll:1.3
--- llvm/test/CodeGen/PowerPC/rlwimi-commute.ll:1.2 Fri Dec 1 22:23:08 2006
+++ llvm/test/CodeGen/PowerPC/rlwimi-commute.ll Sun Apr 15 16:15:41 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep rlwimi &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep 'or '
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep rlwimi
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep {or }
; Make sure there is no register-register copies here.
Index: llvm/test/CodeGen/PowerPC/seteq-0.ll
diff -u llvm/test/CodeGen/PowerPC/seteq-0.ll:1.3 llvm/test/CodeGen/PowerPC/seteq-0.ll:1.4
--- llvm/test/CodeGen/PowerPC/seteq-0.ll:1.3 Wed Dec 20 18:01:42 2006
+++ llvm/test/CodeGen/PowerPC/seteq-0.ll Sun Apr 15 16:15:41 2007
@@ -1,4 +1,6 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'srwi r., r., 5'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN: llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {srwi r., r., 5}
int %eq0(int %a) {
%tmp.1 = seteq int %a, 0 ; <bool> [#uses=1]
More information about the llvm-commits
mailing list