diff options
author | Dan Gohman <djg@cray.com> | 2007-08-15 13:36:28 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-08-15 13:36:28 +0000 |
commit | 8c89a50187561ea4fc6c62f3ea74bb6b8e63802a (patch) | |
tree | 3a500b846e77d285021ec12e3ef0bbe69c498b82 /test/CodeGen/PowerPC | |
parent | 2190f1727277e34ab4c30195bc4e4b8087315999 (diff) | |
download | external_llvm-8c89a50187561ea4fc6c62f3ea74bb6b8e63802a.zip external_llvm-8c89a50187561ea4fc6c62f3ea74bb6b8e63802a.tar.gz external_llvm-8c89a50187561ea4fc6c62f3ea74bb6b8e63802a.tar.bz2 |
Convert tests using "| wc -l | grep ..." to use the count script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/PowerPC')
28 files changed, 63 insertions, 63 deletions
diff --git a/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll b/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll index 7bb1317..4f78ce6 100644 --- a/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll +++ b/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll @@ -1,7 +1,7 @@ ; This function should have exactly one call to fixdfdi, no more! ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mattr=-64bit | \ -; RUN: grep {bl .*fixdfdi} | wc -l | grep 1 +; RUN: grep {bl .*fixdfdi} | count 1 double %test2(double %tmp.7705) { %mem_tmp.2.0.in = cast double %tmp.7705 to long ; <long> [#uses=1] diff --git a/test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll b/test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll index 1026072..8423bf2 100644 --- a/test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll +++ b/test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=powerpc64-apple-darwin | grep extsw | wc -l | grep 2 +; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=powerpc64-apple-darwin | grep extsw | count 2 %lens = external global ubyte* %vals = external global int* diff --git a/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll b/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll index 3a7d393..3eef9c5 100644 --- a/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll +++ b/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | llc | grep mflr | wc -l | grep 1 +; RUN: llvm-as < %s | llc | grep mflr | count 1 target datalayout = "e-p:32:32" target triple = "powerpc-apple-darwin8" diff --git a/test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll b/test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll index 0aebeb9..5a86418 100644 --- a/test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll +++ b/test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll @@ -1,7 +1,7 @@ -; RUN: llvm-as < %s | llc -march=ppc32 | grep bl.*baz | wc -l | grep 2 -; RUN: llvm-as < %s | llc -march=ppc32 | grep bl.*quux | wc -l | grep 2 -; RUN: llvm-as < %s | llc -march=ppc32 -enable-tail-merge | grep bl.*baz | wc -l | grep 1 -; RUN: llvm-as < %s | llc -march=ppc32 -enable-tail-merge=1 | grep bl.*quux | wc -l | grep 1 +; RUN: llvm-as < %s | llc -march=ppc32 | grep bl.*baz | count 2 +; RUN: llvm-as < %s | llc -march=ppc32 | grep bl.*quux | count 2 +; RUN: llvm-as < %s | llc -march=ppc32 -enable-tail-merge | grep bl.*baz | count 1 +; RUN: llvm-as < %s | llc -march=ppc32 -enable-tail-merge=1 | grep bl.*quux | count 1 ; Check that tail merging is not the default on ppc, and that -enable-tail-merge works. ; ModuleID = 'tail.c' diff --git a/test/CodeGen/PowerPC/addc.ll b/test/CodeGen/PowerPC/addc.ll index b268389..7bbd1eb 100644 --- a/test/CodeGen/PowerPC/addc.ll +++ b/test/CodeGen/PowerPC/addc.ll @@ -1,10 +1,10 @@ ; All of these should be codegen'd without loading immediates ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f -; RUN: grep addc %t | wc -l | grep 1 -; RUN: grep adde %t | wc -l | grep 1 -; RUN: grep addze %t | wc -l | grep 1 -; RUN: grep addme %t | wc -l | grep 1 -; RUN: grep addic %t | wc -l | grep 2 +; RUN: grep addc %t | count 1 +; RUN: grep adde %t | count 1 +; RUN: grep addze %t | count 1 +; RUN: grep addme %t | count 1 +; RUN: grep addic %t | count 2 implementation ; Functions: diff --git a/test/CodeGen/PowerPC/align.ll b/test/CodeGen/PowerPC/align.ll index caf4a5d..9a448f9 100644 --- a/test/CodeGen/PowerPC/align.ll +++ b/test/CodeGen/PowerPC/align.ll @@ -1,9 +1,9 @@ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep align.4 | wc -l | grep 1 +; RUN: grep align.4 | count 1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep align.2 | wc -l | grep 1 +; RUN: grep align.2 | count 1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep align.3 | wc -l | grep 1 +; RUN: grep align.3 | count 1 %A = global <4 x uint> < uint 10, uint 20, uint 30, uint 40 > diff --git a/test/CodeGen/PowerPC/branch-opt.ll b/test/CodeGen/PowerPC/branch-opt.ll index ab550a3..dfa80c6 100644 --- a/test/CodeGen/PowerPC/branch-opt.ll +++ b/test/CodeGen/PowerPC/branch-opt.ll @@ -1,5 +1,5 @@ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep {b LBB.*} | wc -l | grep 4 +; RUN: grep {b LBB.*} | count 4 target endian = big target pointersize = 32 diff --git a/test/CodeGen/PowerPC/bswap-load-store.ll b/test/CodeGen/PowerPC/bswap-load-store.ll index 0c4a117..272964a 100644 --- a/test/CodeGen/PowerPC/bswap-load-store.ll +++ b/test/CodeGen/PowerPC/bswap-load-store.ll @@ -1,9 +1,9 @@ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep {stwbrx\\|lwbrx\\|sthbrx\\|lhbrx} | wc -l | grep 4 +; RUN: grep {stwbrx\\|lwbrx\\|sthbrx\\|lhbrx} | count 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: grep {stwbrx\\|lwbrx\\|sthbrx\\|lhbrx} | count 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 diff --git a/test/CodeGen/PowerPC/buildvec_canonicalize.ll b/test/CodeGen/PowerPC/buildvec_canonicalize.ll index 54cbdae..e06090c 100644 --- a/test/CodeGen/PowerPC/buildvec_canonicalize.ll +++ b/test/CodeGen/PowerPC/buildvec_canonicalize.ll @@ -1,12 +1,12 @@ ; There should be exactly one vxor here. ; RUN: llvm-upgrade < %s | llvm-as | \ ; RUN: llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | \ -; RUN: grep vxor | wc -l | grep 1 +; RUN: grep vxor | count 1 ; There should be exactly one vsplti here. ; RUN: llvm-upgrade < %s | llvm-as | \ ; RUN: llc -march=ppc32 -mcpu=g5 --enable-unsafe-fp-math | \ -; RUN: grep vsplti | wc -l | grep 1 +; RUN: grep vsplti | count 1 void %VXOR(<4 x float>* %P1, <4 x int>* %P2, <4 x float>* %P3) { diff --git a/test/CodeGen/PowerPC/calls.ll b/test/CodeGen/PowerPC/calls.ll index f2a6003..3bd608a 100644 --- a/test/CodeGen/PowerPC/calls.ll +++ b/test/CodeGen/PowerPC/calls.ll @@ -1,11 +1,11 @@ ; Test various forms of calls. ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep {bl } | wc -l | grep 2 +; RUN: grep {bl } | count 2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep {bctrl} | wc -l | grep 1 +; RUN: grep {bctrl} | count 1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep {bla } | wc -l | grep 1 +; RUN: grep {bla } | count 1 declare void %foo() diff --git a/test/CodeGen/PowerPC/constants.ll b/test/CodeGen/PowerPC/constants.ll index 4689a62..0c0d4ed 100644 --- a/test/CodeGen/PowerPC/constants.ll +++ b/test/CodeGen/PowerPC/constants.ll @@ -1,10 +1,10 @@ ; All of these routines should be perform optimal load of constants. ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep lis | wc -l | grep 5 +; RUN: grep lis | count 5 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep ori | wc -l | grep 3 +; RUN: grep ori | count 3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep {li } | wc -l | grep 4 +; RUN: grep {li } | count 4 implementation ; Functions: diff --git a/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll b/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll index 359824c..30bd0b4 100644 --- a/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll +++ b/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll @@ -1,13 +1,13 @@ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep eqv | wc -l | grep 3 +; RUN: grep eqv | count 3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | \ -; RUN: grep andc | wc -l | grep 3 +; RUN: grep andc | count 3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep orc | wc -l | grep 2 +; RUN: grep orc | count 2 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | \ -; RUN: grep nor | wc -l | grep 3 +; RUN: grep nor | count 3 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: grep nand | wc -l | grep 1 +; RUN: grep nand | count 1 int %EQV1(int %X, int %Y) { %A = xor int %X, %Y diff --git a/test/CodeGen/PowerPC/extsh.ll b/test/CodeGen/PowerPC/extsh.ll index 0f4f512..6b5023f 100644 --- a/test/CodeGen/PowerPC/extsh.ll +++ b/test/CodeGen/PowerPC/extsh.ll @@ -1,5 +1,5 @@ ; This should turn into a single extsh -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep extsh | wc -l | grep 1 +; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep extsh | count 1 int %test(int %X) { %tmp.81 = shl int %X, ubyte 16 ; <int> [#uses=1] %tmp.82 = shr int %tmp.81, ubyte 16 ; <int> [#uses=1] diff --git a/test/CodeGen/PowerPC/fma.ll b/test/CodeGen/PowerPC/fma.ll index da2790b..da571f6 100644 --- a/test/CodeGen/PowerPC/fma.ll +++ b/test/CodeGen/PowerPC/fma.ll @@ -1,5 +1,5 @@ ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | \ -; RUN: egrep {fn?madd|fn?msub} | wc -l | grep 8 +; RUN: egrep {fn?madd|fn?msub} | count 8 double %test_FMADD1(double %A, double %B, double %C) { %D = mul double %A, %B diff --git a/test/CodeGen/PowerPC/fp-branch.ll b/test/CodeGen/PowerPC/fp-branch.ll index 1a371ed..804cbf6 100644 --- a/test/CodeGen/PowerPC/fp-branch.ll +++ b/test/CodeGen/PowerPC/fp-branch.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep fcmp | wc -l | grep 1 +; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep fcmp | count 1 declare bool %llvm.isunordered.f64(double, double) diff --git a/test/CodeGen/PowerPC/fp_to_uint.ll b/test/CodeGen/PowerPC/fp_to_uint.ll index 83468a4..4a76617 100644 --- a/test/CodeGen/PowerPC/fp_to_uint.ll +++ b/test/CodeGen/PowerPC/fp_to_uint.ll @@ -1,4 +1,4 @@ -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep fctiwz | wc -l | grep 1 +; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep fctiwz | count 1 implementation diff --git a/test/CodeGen/PowerPC/mulhs.ll b/test/CodeGen/PowerPC/mulhs.ll index 967905d..7661e9c 100644 --- a/test/CodeGen/PowerPC/mulhs.ll +++ b/test/CodeGen/PowerPC/mulhs.ll @@ -3,7 +3,7 @@ ; RUN: not grep mulhwu %t ; RUN: not grep srawi %t ; RUN: not grep add %t -; RUN: grep mulhw %t | wc -l | grep 1 +; RUN: grep mulhw %t | count 1 implementation ; Functions: diff --git a/test/CodeGen/PowerPC/rlwimi.ll b/test/CodeGen/PowerPC/rlwimi.ll index 92afcf9..25ac0e9 100644 --- a/test/CodeGen/PowerPC/rlwimi.ll +++ b/test/CodeGen/PowerPC/rlwimi.ll @@ -1,6 +1,6 @@ ; All of these ands and shifts should be folded into rlwimi's ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | not grep and -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep rlwimi | wc -l | grep 8 +; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 | grep rlwimi | count 8 implementation ; Functions: diff --git a/test/CodeGen/PowerPC/rlwimi2.ll b/test/CodeGen/PowerPC/rlwimi2.ll index c264d2e..501daf0 100644 --- a/test/CodeGen/PowerPC/rlwimi2.ll +++ b/test/CodeGen/PowerPC/rlwimi2.ll @@ -1,7 +1,7 @@ ; All of these ands and shifts should be folded into rlwimi's ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f -; RUN: grep rlwimi %t | wc -l | grep 3 -; RUN: grep srwi %t | wc -l | grep 1 +; RUN: grep rlwimi %t | count 3 +; RUN: grep srwi %t | count 1 ; RUN: not grep slwi %t implementation ; Functions: diff --git a/test/CodeGen/PowerPC/rlwinm.ll b/test/CodeGen/PowerPC/rlwinm.ll index 32e8f26..a80371b 100644 --- a/test/CodeGen/PowerPC/rlwinm.ll +++ b/test/CodeGen/PowerPC/rlwinm.ll @@ -4,7 +4,7 @@ ; RUN: not grep srawi %t ; RUN: not grep srwi %t ; RUN: not grep slwi %t -; RUN: grep rlwinm %t | wc -l | grep 8 +; RUN: grep rlwinm %t | count 8 implementation ; Functions: diff --git a/test/CodeGen/PowerPC/rlwinm2.ll b/test/CodeGen/PowerPC/rlwinm2.ll index 78127f1..06ceaa2 100644 --- a/test/CodeGen/PowerPC/rlwinm2.ll +++ b/test/CodeGen/PowerPC/rlwinm2.ll @@ -4,8 +4,8 @@ ; RUN: not grep srawi %t ; RUN: not grep srwi %t ; RUN: not grep slwi %t -; RUN: grep rlwnm %t | wc -l | grep 1 -; RUN: grep rlwinm %t | wc -l | grep 1 +; RUN: grep rlwnm %t | count 1 +; RUN: grep rlwinm %t | count 1 define i32 @test1(i32 %X, i32 %Y) { entry: diff --git a/test/CodeGen/PowerPC/rotl-2.ll b/test/CodeGen/PowerPC/rotl-2.ll index 523b5e4..1e6adb7 100644 --- a/test/CodeGen/PowerPC/rotl-2.ll +++ b/test/CodeGen/PowerPC/rotl-2.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | wc -l | grep 4 -; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | wc -l | grep 2 +; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | count 4 +; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | count 2 ; RUN: llvm-as < %s | llc -march=ppc32 | not grep or define i32 @rotl32(i32 %A, i8 %Amt) { diff --git a/test/CodeGen/PowerPC/rotl.ll b/test/CodeGen/PowerPC/rotl.ll index aa033cf..aab5c83 100644 --- a/test/CodeGen/PowerPC/rotl.ll +++ b/test/CodeGen/PowerPC/rotl.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | wc -l | grep 2 -; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | wc -l | grep 2 +; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwnm | count 2 +; RUN: llvm-as < %s | llc -march=ppc32 | grep rlwinm | count 2 define i32 @rotlw(i32 %x, i32 %sh) { entry: diff --git a/test/CodeGen/PowerPC/subc.ll b/test/CodeGen/PowerPC/subc.ll index 3624791..36eddb1 100644 --- a/test/CodeGen/PowerPC/subc.ll +++ b/test/CodeGen/PowerPC/subc.ll @@ -1,10 +1,10 @@ ; All of these should be codegen'd without loading immediates ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -o %t -f -; RUN: grep subfc %t | wc -l | grep 1 -; RUN: grep subfe %t | wc -l | grep 1 -; RUN: grep subfze %t | wc -l | grep 1 -; RUN: grep subfme %t | wc -l | grep 1 -; RUN: grep subfic %t | wc -l | grep 2 +; RUN: grep subfc %t | count 1 +; RUN: grep subfe %t | count 1 +; RUN: grep subfze %t | count 1 +; RUN: grep subfme %t | count 1 +; RUN: grep subfic %t | count 2 implementation ; Functions: long %sub_ll(long %a, long %b) { diff --git a/test/CodeGen/PowerPC/unsafe-math.ll b/test/CodeGen/PowerPC/unsafe-math.ll index 770dcb6..3d52d0c 100644 --- a/test/CodeGen/PowerPC/unsafe-math.ll +++ b/test/CodeGen/PowerPC/unsafe-math.ll @@ -1,6 +1,6 @@ -; RUN: llvm-as < %s | llc -march=ppc32 | grep fmul | wc -l | grep 2 +; RUN: llvm-as < %s | llc -march=ppc32 | grep fmul | count 2 ; RUN: llvm-as < %s | llc -march=ppc32 -enable-unsafe-fp-math | \ -; RUN: grep fmul | wc -l | grep 1 +; RUN: grep fmul | count 1 define double @foo(double %X) { %tmp1 = mul double %X, 1.23 diff --git a/test/CodeGen/PowerPC/vcmp-fold.ll b/test/CodeGen/PowerPC/vcmp-fold.ll index 6ae41a9..efb727c 100644 --- a/test/CodeGen/PowerPC/vcmp-fold.ll +++ b/test/CodeGen/PowerPC/vcmp-fold.ll @@ -1,6 +1,6 @@ ; This should fold the "vcmpbfp." and "vcmpbfp" instructions into a single ; "vcmpbfp.". -; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vcmpbfp | wc -l | grep 1 +; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 | grep vcmpbfp | count 1 void %test(<4 x float>* %x, <4 x float>* %y, int* %P) { entry: diff --git a/test/CodeGen/PowerPC/vec_shuffle.ll b/test/CodeGen/PowerPC/vec_shuffle.ll index ba856ee..e26f6c1 100644 --- a/test/CodeGen/PowerPC/vec_shuffle.ll +++ b/test/CodeGen/PowerPC/vec_shuffle.ll @@ -1,11 +1,11 @@ ; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | \ ; RUN: llc -march=ppc32 -mcpu=g5 | not grep vperm ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 > %t -; RUN: grep vsldoi %t | wc -l | grep 2 -; RUN: grep vmrgh %t | wc -l | grep 7 -; RUN: grep vmrgl %t | wc -l | grep 6 -; RUN: grep vpkuhum %t | wc -l | grep 1 -; RUN: grep vpkuwum %t | wc -l | grep 1 +; RUN: grep vsldoi %t | count 2 +; RUN: grep vmrgh %t | count 7 +; RUN: grep vmrgl %t | count 6 +; RUN: grep vpkuhum %t | count 1 +; RUN: grep vpkuwum %t | count 1 void %VSLDOI_xy(<8 x short>* %A, <8 x short>* %B) { entry: diff --git a/test/CodeGen/PowerPC/vec_spat.ll b/test/CodeGen/PowerPC/vec_spat.ll index 15e2950..a8acee0 100644 --- a/test/CodeGen/PowerPC/vec_spat.ll +++ b/test/CodeGen/PowerPC/vec_spat.ll @@ -1,10 +1,10 @@ ; Test that vectors are scalarized/lowered correctly. ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g3 | \ -; RUN: grep stfs | wc -l | grep 4 +; RUN: grep stfs | count 4 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=ppc32 -mcpu=g5 -o %t -f -; RUN: grep vspltw %t | wc -l | grep 2 -; RUN: grep vsplti %t | wc -l | grep 3 -; RUN: grep vsplth %t | wc -l | grep 1 +; RUN: grep vspltw %t | count 2 +; RUN: grep vsplti %t | count 3 +; RUN: grep vsplth %t | count 1 %f4 = type <4 x float> %i4 = type <4 x int> |