[llvm-commits] [llvm] r41097 - in /llvm/trunk/test: Analysis/LoadVN/ Assembler/ C++Frontend/ CFrontend/ CodeGen/ARM/ CodeGen/Alpha/ CodeGen/CBackend/ CodeGen/Generic/ CodeGen/PowerPC/ CodeGen/SPARC/ CodeGen/X86/ Other/ TableGen/ Transforms/ConstProp/ Transforms/GVN/ Transforms/IndVarsSimplify/ Transforms/InstCombine/ Transforms/LoopSimplify/ Transforms/LoopStrengthReduce/ Transforms/LoopUnswitch/ Transforms/LowerSwitch/ Transforms/Reassociate/ Transforms/SimplifyCFG/
Dan Gohman
djg at cray.com
Wed Aug 15 06:36:30 PDT 2007
Author: djg
Date: Wed Aug 15 08:36:28 2007
New Revision: 41097
URL: http://llvm.org/viewvc/llvm-project?rev=41097&view=rev
Log:
Convert tests using "| wc -l | grep ..." to use the count script.
Modified:
llvm/trunk/test/Analysis/LoadVN/casts.ll
llvm/trunk/test/Assembler/2007-01-12-Varargs-Upgrade.ll
llvm/trunk/test/Assembler/2007-01-27-UpgradePointers.ll
llvm/trunk/test/C++Frontend/2007-04-11-InlineStorageClassC++.cpp
llvm/trunk/test/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr
llvm/trunk/test/CFrontend/2004-02-13-Memset.c
llvm/trunk/test/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c
llvm/trunk/test/CFrontend/2006-01-23-FileScopeAsm.c
llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC89.c
llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC99.c
llvm/trunk/test/CFrontend/2007-07-29-RestrictPtrArg.c
llvm/trunk/test/CFrontend/sret.c
llvm/trunk/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll
llvm/trunk/test/CodeGen/ARM/2007-05-09-tailmerge-2.ll
llvm/trunk/test/CodeGen/ARM/2007-05-22-tailmerge-3.ll
llvm/trunk/test/CodeGen/ARM/arguments.ll
llvm/trunk/test/CodeGen/ARM/bits.ll
llvm/trunk/test/CodeGen/ARM/constants.ll
llvm/trunk/test/CodeGen/ARM/fcopysign.ll
llvm/trunk/test/CodeGen/ARM/fp.ll
llvm/trunk/test/CodeGen/ARM/fpcmp.ll
llvm/trunk/test/CodeGen/ARM/fpmem.ll
llvm/trunk/test/CodeGen/ARM/fptoint.ll
llvm/trunk/test/CodeGen/ARM/hello.ll
llvm/trunk/test/CodeGen/ARM/ifcvt1.ll
llvm/trunk/test/CodeGen/ARM/ifcvt2.ll
llvm/trunk/test/CodeGen/ARM/ifcvt3.ll
llvm/trunk/test/CodeGen/ARM/ifcvt4.ll
llvm/trunk/test/CodeGen/ARM/ifcvt5.ll
llvm/trunk/test/CodeGen/ARM/ifcvt6.ll
llvm/trunk/test/CodeGen/ARM/ifcvt7.ll
llvm/trunk/test/CodeGen/ARM/ifcvt8.ll
llvm/trunk/test/CodeGen/ARM/insn-sched1.ll
llvm/trunk/test/CodeGen/ARM/large-stack.ll
llvm/trunk/test/CodeGen/ARM/ldm.ll
llvm/trunk/test/CodeGen/ARM/ldr.ll
llvm/trunk/test/CodeGen/ARM/ldr_ext.ll
llvm/trunk/test/CodeGen/ARM/ldr_frame.ll
llvm/trunk/test/CodeGen/ARM/ldr_post.ll
llvm/trunk/test/CodeGen/ARM/ldr_pre.ll
llvm/trunk/test/CodeGen/ARM/load-global.ll
llvm/trunk/test/CodeGen/ARM/long-setcc.ll
llvm/trunk/test/CodeGen/ARM/long.ll
llvm/trunk/test/CodeGen/ARM/long_shift.ll
llvm/trunk/test/CodeGen/ARM/mul.ll
llvm/trunk/test/CodeGen/ARM/mulhi.ll
llvm/trunk/test/CodeGen/ARM/mvn.ll
llvm/trunk/test/CodeGen/ARM/pack.ll
llvm/trunk/test/CodeGen/ARM/select.ll
llvm/trunk/test/CodeGen/ARM/select_xform.ll
llvm/trunk/test/CodeGen/ARM/smul.ll
llvm/trunk/test/CodeGen/ARM/stack-frame.ll
llvm/trunk/test/CodeGen/ARM/str_post.ll
llvm/trunk/test/CodeGen/ARM/str_pre.ll
llvm/trunk/test/CodeGen/ARM/str_trunc.ll
llvm/trunk/test/CodeGen/ARM/sxt_rot.ll
llvm/trunk/test/CodeGen/ARM/trunc_ldr.ll
llvm/trunk/test/CodeGen/ARM/unord.ll
llvm/trunk/test/CodeGen/ARM/uxt_rot.ll
llvm/trunk/test/CodeGen/ARM/uxtb.ll
llvm/trunk/test/CodeGen/ARM/vargs2.ll
llvm/trunk/test/CodeGen/ARM/vargs_align.ll
llvm/trunk/test/CodeGen/ARM/vfp.ll
llvm/trunk/test/CodeGen/Alpha/2005-07-12-TwoMallocCalls.ll
llvm/trunk/test/CodeGen/Alpha/add.ll
llvm/trunk/test/CodeGen/Alpha/cmpbge.ll
llvm/trunk/test/CodeGen/CBackend/2006-12-11-Float-Bitcast.ll
llvm/trunk/test/CodeGen/Generic/SwitchLowering.ll
llvm/trunk/test/CodeGen/Generic/phi-immediate-factoring.ll
llvm/trunk/test/CodeGen/Generic/switch-crit-edge-constant.ll
llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll
llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll
llvm/trunk/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
llvm/trunk/test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll
llvm/trunk/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll
llvm/trunk/test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll
llvm/trunk/test/CodeGen/PowerPC/addc.ll
llvm/trunk/test/CodeGen/PowerPC/align.ll
llvm/trunk/test/CodeGen/PowerPC/branch-opt.ll
llvm/trunk/test/CodeGen/PowerPC/bswap-load-store.ll
llvm/trunk/test/CodeGen/PowerPC/buildvec_canonicalize.ll
llvm/trunk/test/CodeGen/PowerPC/calls.ll
llvm/trunk/test/CodeGen/PowerPC/constants.ll
llvm/trunk/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll
llvm/trunk/test/CodeGen/PowerPC/extsh.ll
llvm/trunk/test/CodeGen/PowerPC/fma.ll
llvm/trunk/test/CodeGen/PowerPC/fp-branch.ll
llvm/trunk/test/CodeGen/PowerPC/fp_to_uint.ll
llvm/trunk/test/CodeGen/PowerPC/mulhs.ll
llvm/trunk/test/CodeGen/PowerPC/rlwimi.ll
llvm/trunk/test/CodeGen/PowerPC/rlwimi2.ll
llvm/trunk/test/CodeGen/PowerPC/rlwinm.ll
llvm/trunk/test/CodeGen/PowerPC/rlwinm2.ll
llvm/trunk/test/CodeGen/PowerPC/rotl-2.ll
llvm/trunk/test/CodeGen/PowerPC/rotl.ll
llvm/trunk/test/CodeGen/PowerPC/subc.ll
llvm/trunk/test/CodeGen/PowerPC/unsafe-math.ll
llvm/trunk/test/CodeGen/PowerPC/vcmp-fold.ll
llvm/trunk/test/CodeGen/PowerPC/vec_shuffle.ll
llvm/trunk/test/CodeGen/PowerPC/vec_spat.ll
llvm/trunk/test/CodeGen/SPARC/xnor.ll
llvm/trunk/test/CodeGen/X86/2006-01-19-ISelFoldingBug.ll
llvm/trunk/test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll
llvm/trunk/test/CodeGen/X86/2006-11-28-Memcpy.ll
llvm/trunk/test/CodeGen/X86/2007-01-08-InstrSched.ll
llvm/trunk/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll
llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll
llvm/trunk/test/CodeGen/X86/2007-06-14-branchfold.ll
llvm/trunk/test/CodeGen/X86/2007-08-10-LEA16Use32.ll
llvm/trunk/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll
llvm/trunk/test/CodeGen/X86/2007-08-13-SpillerReuse.ll
llvm/trunk/test/CodeGen/X86/and-or-fold.ll
llvm/trunk/test/CodeGen/X86/bitcast2.ll
llvm/trunk/test/CodeGen/X86/bswap.ll
llvm/trunk/test/CodeGen/X86/call-push.ll
llvm/trunk/test/CodeGen/X86/cmp-test.ll
llvm/trunk/test/CodeGen/X86/commute-two-addr.ll
llvm/trunk/test/CodeGen/X86/compare_folding.llx
llvm/trunk/test/CodeGen/X86/dollar-name.ll
llvm/trunk/test/CodeGen/X86/extend.ll
llvm/trunk/test/CodeGen/X86/extern_weak.ll
llvm/trunk/test/CodeGen/X86/fabs.ll
llvm/trunk/test/CodeGen/X86/fildll.ll
llvm/trunk/test/CodeGen/X86/fp-stack-ret.ll
llvm/trunk/test/CodeGen/X86/fsxor-alignment.ll
llvm/trunk/test/CodeGen/X86/lea-recursion.ll
llvm/trunk/test/CodeGen/X86/long-setcc.ll
llvm/trunk/test/CodeGen/X86/loop-strength-reduce.ll
llvm/trunk/test/CodeGen/X86/mingw-alloca.ll
llvm/trunk/test/CodeGen/X86/mmx-insert-element.ll
llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll
llvm/trunk/test/CodeGen/X86/peep-vector-extract-insert.ll
llvm/trunk/test/CodeGen/X86/pr1489.ll
llvm/trunk/test/CodeGen/X86/pr1505b.ll
llvm/trunk/test/CodeGen/X86/rotate.ll
llvm/trunk/test/CodeGen/X86/scalar-min-max-fill-operand.ll
llvm/trunk/test/CodeGen/X86/scalar_sse_minmax.ll
llvm/trunk/test/CodeGen/X86/shift-codegen.ll
llvm/trunk/test/CodeGen/X86/shift-double.llx
llvm/trunk/test/CodeGen/X86/shift-folding.ll
llvm/trunk/test/CodeGen/X86/sse-align-1.ll
llvm/trunk/test/CodeGen/X86/sse-align-10.ll
llvm/trunk/test/CodeGen/X86/sse-align-12.ll
llvm/trunk/test/CodeGen/X86/sse-align-2.ll
llvm/trunk/test/CodeGen/X86/sse-align-3.ll
llvm/trunk/test/CodeGen/X86/sse-align-4.ll
llvm/trunk/test/CodeGen/X86/sse-align-5.ll
llvm/trunk/test/CodeGen/X86/sse-align-6.ll
llvm/trunk/test/CodeGen/X86/sse-align-7.ll
llvm/trunk/test/CodeGen/X86/sse-align-8.ll
llvm/trunk/test/CodeGen/X86/sse-align-9.ll
llvm/trunk/test/CodeGen/X86/store-global-address.ll
llvm/trunk/test/CodeGen/X86/store_op_load_fold2.ll
llvm/trunk/test/CodeGen/X86/test-hidden.ll
llvm/trunk/test/CodeGen/X86/test-pic-1.ll
llvm/trunk/test/CodeGen/X86/test-pic-2.ll
llvm/trunk/test/CodeGen/X86/test-pic-3.ll
llvm/trunk/test/CodeGen/X86/test-pic-4.ll
llvm/trunk/test/CodeGen/X86/test-pic-5.ll
llvm/trunk/test/CodeGen/X86/test-pic-6.ll
llvm/trunk/test/CodeGen/X86/test-pic-cpool.ll
llvm/trunk/test/CodeGen/X86/test-pic-jtbl.ll
llvm/trunk/test/CodeGen/X86/vec_extract.ll
llvm/trunk/test/CodeGen/X86/vec_insert.ll
llvm/trunk/test/CodeGen/X86/vec_logical.ll
llvm/trunk/test/CodeGen/X86/vec_set-2.ll
llvm/trunk/test/CodeGen/X86/vec_set-3.ll
llvm/trunk/test/CodeGen/X86/vec_set-4.ll
llvm/trunk/test/CodeGen/X86/vec_set-5.ll
llvm/trunk/test/CodeGen/X86/vec_set-6.ll
llvm/trunk/test/CodeGen/X86/vec_set-7.ll
llvm/trunk/test/CodeGen/X86/vec_set.ll
llvm/trunk/test/CodeGen/X86/vec_shuffle-10.ll
llvm/trunk/test/CodeGen/X86/vec_shuffle-2.ll
llvm/trunk/test/CodeGen/X86/vec_shuffle-3.ll
llvm/trunk/test/CodeGen/X86/vec_shuffle-4.ll
llvm/trunk/test/CodeGen/X86/vec_shuffle-5.ll
llvm/trunk/test/CodeGen/X86/vec_shuffle-6.ll
llvm/trunk/test/CodeGen/X86/vec_shuffle-7.ll
llvm/trunk/test/CodeGen/X86/vec_shuffle-9.ll
llvm/trunk/test/CodeGen/X86/vec_shuffle.ll
llvm/trunk/test/CodeGen/X86/vec_splat-2.ll
llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll
llvm/trunk/test/CodeGen/X86/vec_zero.ll
llvm/trunk/test/CodeGen/X86/x86-64-mem.ll
llvm/trunk/test/Other/2004-08-16-LowerPacked.ll
llvm/trunk/test/Other/2004-08-16-PackedGlobalConstant.ll
llvm/trunk/test/Other/2004-08-16-PackedSelect.ll
llvm/trunk/test/Other/2004-08-16-PackedSimple.ll
llvm/trunk/test/TableGen/MultiClass.td
llvm/trunk/test/Transforms/ConstProp/float-to-ptr-cast.ll
llvm/trunk/test/Transforms/GVN/basic.ll
llvm/trunk/test/Transforms/GVN/dominated.ll
llvm/trunk/test/Transforms/GVN/mixed.ll
llvm/trunk/test/Transforms/GVN/nonlocal.ll
llvm/trunk/test/Transforms/GVN/semidominated.ll
llvm/trunk/test/Transforms/IndVarsSimplify/complex-scev.ll
llvm/trunk/test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll
llvm/trunk/test/Transforms/InstCombine/2006-12-15-Range-Test.ll
llvm/trunk/test/Transforms/InstCombine/and-compare.ll
llvm/trunk/test/Transforms/InstCombine/and-or-not.ll
llvm/trunk/test/Transforms/InstCombine/and-xor-merge.ll
llvm/trunk/test/Transforms/InstCombine/apint-and-compare.ll
llvm/trunk/test/Transforms/InstCombine/apint-and-xor-merge.ll
llvm/trunk/test/Transforms/InstCombine/apint-shift-simplify.ll
llvm/trunk/test/Transforms/InstCombine/bswap-fold.ll
llvm/trunk/test/Transforms/InstCombine/bswap.ll
llvm/trunk/test/Transforms/InstCombine/loadstore-alignment.ll
llvm/trunk/test/Transforms/InstCombine/shift-simplify.ll
llvm/trunk/test/Transforms/InstCombine/shift-sra.ll
llvm/trunk/test/Transforms/InstCombine/store-merge.ll
llvm/trunk/test/Transforms/InstCombine/udiv_select_to_select_shift.ll
llvm/trunk/test/Transforms/InstCombine/vec_insert_to_shuffle.ll
llvm/trunk/test/Transforms/InstCombine/zext-fold.ll
llvm/trunk/test/Transforms/LoopSimplify/phi-node-simplify.ll
llvm/trunk/test/Transforms/LoopStrengthReduce/dont_insert_redundant_ops.ll
llvm/trunk/test/Transforms/LoopStrengthReduce/related_indvars.ll
llvm/trunk/test/Transforms/LoopStrengthReduce/share_code_in_preheader.ll
llvm/trunk/test/Transforms/LoopStrengthReduce/share_ivs.ll
llvm/trunk/test/Transforms/LoopUnswitch/2007-07-18-DomInfo.ll
llvm/trunk/test/Transforms/LowerSwitch/feature.ll
llvm/trunk/test/Transforms/Reassociate/basictest3.ll
llvm/trunk/test/Transforms/Reassociate/mul-factor3.ll
llvm/trunk/test/Transforms/Reassociate/mulfactor.ll
llvm/trunk/test/Transforms/Reassociate/mulfactor2.ll
llvm/trunk/test/Transforms/Reassociate/shift-factor.ll
llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll
llvm/trunk/test/Transforms/SimplifyCFG/switch_switch_fold.ll
Modified: llvm/trunk/test/Analysis/LoadVN/casts.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Analysis/LoadVN/casts.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Analysis/LoadVN/casts.ll (original)
+++ llvm/trunk/test/Analysis/LoadVN/casts.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; Check to make sure that Value Numbering doesn't merge casts of different
; flavors.
; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse | llvm-dis | \
-; RUN: grep {\[sz\]ext} | wc -l | grep 2
+; RUN: grep {\[sz\]ext} | count 2
declare void %external(int)
Modified: llvm/trunk/test/Assembler/2007-01-12-Varargs-Upgrade.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/2007-01-12-Varargs-Upgrade.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/2007-01-12-Varargs-Upgrade.ll (original)
+++ llvm/trunk/test/Assembler/2007-01-12-Varargs-Upgrade.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; For PR1093: This test checks that llvm-upgrade correctly translates
; the llvm.va_* intrinsics to their cannonical argument form (i8*).
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | \
-; RUN: grep { bitcast} | wc -l | grep 5
+; RUN: grep { bitcast} | count 5
%str = internal constant [7 x ubyte] c"%d %d\0A\00" ; <[7 x ubyte]*> [#uses=1]
Modified: llvm/trunk/test/Assembler/2007-01-27-UpgradePointers.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Assembler/2007-01-27-UpgradePointers.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Assembler/2007-01-27-UpgradePointers.ll (original)
+++ llvm/trunk/test/Assembler/2007-01-27-UpgradePointers.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; PR1137
; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
-; RUN: llvm-upgrade < %s | grep {tmp = alloca} | wc -l | grep 1
+; RUN: llvm-upgrade < %s | grep {tmp = alloca} | count 1
;
target datalayout = "e-p:32:32"
target endian = little
Modified: llvm/trunk/test/C++Frontend/2007-04-11-InlineStorageClassC++.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/C%2B%2BFrontend/2007-04-11-InlineStorageClassC%2B%2B.cpp?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/C++Frontend/2007-04-11-InlineStorageClassC++.cpp (original)
+++ llvm/trunk/test/C++Frontend/2007-04-11-InlineStorageClassC++.cpp Wed Aug 15 08:36:28 2007
@@ -1,17 +1,17 @@
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xglobWeak | grep linkonce | wc -l | grep 1
+// RUN: grep xglobWeak | grep linkonce | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xextWeak | grep linkonce | wc -l | grep 1
+// RUN: grep xextWeak | grep linkonce | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xWeaknoinline | grep weak | wc -l | grep 1
+// RUN: grep xWeaknoinline | grep weak | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xWeakextnoinline | grep weak | wc -l | grep 1
+// RUN: grep xWeakextnoinline | grep weak | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xglobnoWeak | grep linkonce | wc -l | grep 1
+// RUN: grep xglobnoWeak | grep linkonce | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xstatnoWeak | grep internal | wc -l | grep 1
+// RUN: grep xstatnoWeak | grep internal | count 1
// RUN: %llvmgxx %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xextnoWeak | grep linkonce | wc -l | grep 1
+// RUN: grep xextnoWeak | grep linkonce | count 1
inline int xglobWeak(int) __attribute__((weak));
inline int xglobWeak (int i) {
return i*2;
Modified: llvm/trunk/test/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2004-02-13-BuiltinFrameReturnAddress.c.tr?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
Binary files - no diff available.
Modified: llvm/trunk/test/CFrontend/2004-02-13-Memset.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2004-02-13-Memset.c?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CFrontend/2004-02-13-Memset.c (original)
+++ llvm/trunk/test/CFrontend/2004-02-13-Memset.c Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | wc -l | grep 3
+// RUN: %llvmgcc -xc %s -c -o - | llvm-dis | grep llvm.memset | count 3
void test(int* X, char *Y) {
memset(X, 4, 1000);
Modified: llvm/trunk/test/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c (original)
+++ llvm/trunk/test/CFrontend/2006-01-16-BitCountIntrinsicsUnsigned.c Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-// RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32( i32} | wc -l | grep 2
-// RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | wc -l | grep 1
+// RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32( i32} | count 2
+// RUN: %llvmgcc -S %s -o - | grep {llvm.ctlz.i32(i32} | count 1
unsigned t2(unsigned X) {
return __builtin_clz(X);
Modified: llvm/trunk/test/CFrontend/2006-01-23-FileScopeAsm.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2006-01-23-FileScopeAsm.c?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CFrontend/2006-01-23-FileScopeAsm.c (original)
+++ llvm/trunk/test/CFrontend/2006-01-23-FileScopeAsm.c Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
// RUN: %llvmgcc %s -S -o - | llvm-as | opt -std-compile-opts | \
-// RUN: llvm-dis | grep {foo\[12345\]} | wc -l | grep 5
+// RUN: llvm-dis | grep {foo\[12345\]} | count 5
__asm__ ("foo1");
__asm__ ("foo2");
Modified: llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC89.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC89.c?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC89.c (original)
+++ llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC89.c Wed Aug 15 08:36:28 2007
@@ -1,19 +1,19 @@
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xglobWeak | \
-// RUN: grep weak | wc -l | grep 1
+// RUN: grep weak | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | grep xextWeak | \
-// RUN: grep weak | wc -l | grep 1
+// RUN: grep weak | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xWeaknoinline | grep weak | wc -l | grep 1
+// RUN: grep xWeaknoinline | grep weak | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xWeakextnoinline | grep weak | wc -l | grep 1
+// RUN: grep xWeakextnoinline | grep weak | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: grep xglobnoWeak | grep -v internal | grep -v weak | \
-// RUN: grep -v linkonce | wc -l | grep 1
+// RUN: grep -v linkonce | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xstatnoWeak | grep internal | wc -l | grep 1
+// RUN: grep xstatnoWeak | grep internal | count 1
// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep declare | \
// RUN: grep xextnoWeak | grep -v internal | grep -v weak | \
-// RUN: grep -v linkonce | wc -l | grep 1
+// RUN: grep -v linkonce | count 1
inline int xglobWeak(int) __attribute__((weak));
inline int xglobWeak (int i) {
return i*2;
Modified: llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC99.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC99.c?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC99.c (original)
+++ llvm/trunk/test/CFrontend/2007-04-11-InlineStorageClassC99.c Wed Aug 15 08:36:28 2007
@@ -1,19 +1,19 @@
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep declare | \
-// RUN: grep xglobWeak | grep extern_weak | wc -l | grep 1
+// RUN: grep xglobWeak | grep extern_weak | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xextWeak | grep weak | wc -l | grep 1
+// RUN: grep xextWeak | grep weak | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xWeaknoinline | grep weak | wc -l | grep 1
+// RUN: grep xWeaknoinline | grep weak | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xWeakextnoinline | grep weak | wc -l | grep 1
+// RUN: grep xWeakextnoinline | grep weak | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep declare | \
// RUN: grep xglobnoWeak | grep -v internal | grep -v weak | \
-// RUN: grep -v linkonce | wc -l | grep 1
+// RUN: grep -v linkonce | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
-// RUN: grep xstatnoWeak | grep internal | wc -l | grep 1
+// RUN: grep xstatnoWeak | grep internal | count 1
// RUN: %llvmgcc -std=c99 %s -S -emit-llvm -O0 -o - | grep define | \
// RUN: grep xextnoWeak | grep -v internal | grep -v weak | \
-// RUN: grep -v linkonce | wc -l | grep 1
+// RUN: grep -v linkonce | count 1
inline int xglobWeak(int) __attribute__((weak));
inline int xglobWeak (int i) {
return i*2;
Modified: llvm/trunk/test/CFrontend/2007-07-29-RestrictPtrArg.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/2007-07-29-RestrictPtrArg.c?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CFrontend/2007-07-29-RestrictPtrArg.c (original)
+++ llvm/trunk/test/CFrontend/2007-07-29-RestrictPtrArg.c Wed Aug 15 08:36:28 2007
@@ -3,4 +3,4 @@
void foo(int * __restrict myptr1, int * myptr2) {
myptr1[0] = 0;
myptr2[0] = 0;
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/CFrontend/sret.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CFrontend/sret.c?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CFrontend/sret.c (original)
+++ llvm/trunk/test/CFrontend/sret.c Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | wc -l | grep 5
+// RUN: %llvmgcc %s -S -emit-llvm -O0 -o - | grep sret | count 5
struct abc {
int a;
Modified: llvm/trunk/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/2007-05-07-tailmerge-1.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*baz | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*quux | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*baz | count 1
+; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*quux | count 1
; Check that calls to baz and quux are tail-merged.
; ModuleID = 'tail.c'
Modified: llvm/trunk/test/CodeGen/ARM/2007-05-09-tailmerge-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/2007-05-09-tailmerge-2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/2007-05-09-tailmerge-2.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/2007-05-09-tailmerge-2.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*baz | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*quux | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*baz | count 1
+; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge | grep bl.*quux | count 1
; Check that calls to baz and quux are tail-merged.
; ModuleID = 'tail.c'
Modified: llvm/trunk/test/CodeGen/ARM/2007-05-22-tailmerge-3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/2007-05-22-tailmerge-3.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/2007-05-22-tailmerge-3.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/2007-05-22-tailmerge-3.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
-; RUN: llvm-as < %s | llc -march=arm | grep bl.*baz | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep bl.*quux | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge=0 | grep bl.*baz | wc -l | grep 2
-; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge=0 | grep bl.*quux | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=arm | grep bl.*baz | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep bl.*quux | count 1
+; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge=0 | grep bl.*baz | count 2
+; RUN: llvm-as < %s | llc -march=arm -enable-tail-merge=0 | grep bl.*quux | count 2
; Check that tail merging is the default on ARM, and that -enable-tail-merge=0 works.
; ModuleID = 'tail.c'
Modified: llvm/trunk/test/CodeGen/ARM/arguments.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/arguments.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/arguments.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/arguments.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | \
-; RUN: grep {mov r0, r2} | wc -l | grep 1
+; RUN: grep {mov r0, r2} | count 1
; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | \
-; RUN: grep {mov r0, r1} | wc -l | grep 1
+; RUN: grep {mov r0, r1} | count 1
define i32 @f(i32 %a, i64 %b) {
%tmp = call i32 @g(i64 %b)
Modified: llvm/trunk/test/CodeGen/ARM/bits.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/bits.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/bits.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/bits.ll Wed Aug 15 08:36:28 2007
@@ -1,9 +1,9 @@
; RUN: llvm-as < %s | llc -march=arm > %t
-; RUN: grep and %t | wc -l | grep 1
-; RUN: grep orr %t | wc -l | grep 1
-; RUN: grep eor %t | wc -l | grep 1
-; RUN: grep mov.*lsl %t | wc -l | grep 1
-; RUN: grep mov.*asr %t | wc -l | grep 1
+; RUN: grep and %t | count 1
+; RUN: grep orr %t | count 1
+; RUN: grep eor %t | count 1
+; RUN: grep mov.*lsl %t | count 1
+; RUN: grep mov.*asr %t | count 1
define i32 @f1(i32 %a, i32 %b) {
entry:
Modified: llvm/trunk/test/CodeGen/ARM/constants.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/constants.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/constants.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/constants.ll Wed Aug 15 08:36:28 2007
@@ -1,17 +1,17 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {mov r0, #0} | wc -l | grep 1
+; RUN: grep {mov r0, #0} | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {mov r0, #255$} | wc -l | grep 1
+; RUN: grep {mov r0, #255$} | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {mov r0.*256} | wc -l | grep 1
+; RUN: grep {mov r0.*256} | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {orr.*256} | wc -l | grep 1
+; RUN: grep {orr.*256} | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {mov r0, .*-1073741761} | wc -l | grep 1
+; RUN: grep {mov r0, .*-1073741761} | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {mov r0, .*1008} | wc -l | grep 1
+; RUN: grep {mov r0, .*1008} | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {cmp r0, #1, 16} | wc -l | grep 1
+; RUN: grep {cmp r0, #1, 16} | count 1
uint %f1() {
ret uint 0
Modified: llvm/trunk/test/CodeGen/ARM/fcopysign.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/fcopysign.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/fcopysign.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/fcopysign.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | llc -march=arm | grep bic | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=arm | grep bic | count 2
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | \
-; RUN: grep fneg | wc -l | grep 2
+; RUN: grep fneg | count 2
define float @test1(float %x, double %y) {
%tmp = fpext float %x to double
Modified: llvm/trunk/test/CodeGen/ARM/fp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/fp.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/fp.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/fp.ll Wed Aug 15 08:36:28 2007
@@ -1,10 +1,10 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 > %t
-; RUN: grep fmsr %t | wc -l | grep 4
+; RUN: grep fmsr %t | count 4
; RUN: grep fsitos %t
-; RUN: grep fmrs %t | wc -l | grep 2
+; RUN: grep fmrs %t | count 2
; RUN: grep fsitod %t
-; RUN: grep fmrrd %t | wc -l | grep 5
-; RUN: grep fmdrr %t | wc -l | grep 2
+; RUN: grep fmrrd %t | count 5
+; RUN: grep fmdrr %t | count 2
; RUN: grep fldd %t
; RUN: grep fuitod %t
; RUN: grep fuitos %t
Modified: llvm/trunk/test/CodeGen/ARM/fpcmp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/fpcmp.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/fpcmp.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/fpcmp.ll Wed Aug 15 08:36:28 2007
@@ -4,8 +4,8 @@
; RUN: grep movgt %t
; RUN: grep movge %t
; RUN: grep movne %t
-; RUN: grep fcmped %t | wc -l | grep 1
-; RUN: grep fcmpes %t | wc -l | grep 6
+; RUN: grep fcmped %t | count 1
+; RUN: grep fcmpes %t | count 6
int %f1(float %a) {
entry:
Modified: llvm/trunk/test/CodeGen/ARM/fpmem.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/fpmem.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/fpmem.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/fpmem.ll Wed Aug 15 08:36:28 2007
@@ -1,9 +1,9 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {mov r0, #0} | wc -l | grep 1
+; RUN: grep {mov r0, #0} | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep {flds.*\\\[} | wc -l | grep 1
+; RUN: grep {flds.*\\\[} | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep {fsts.*\\\[} | wc -l | grep 1
+; RUN: grep {fsts.*\\\[} | count 1
float %f1(float %a) {
ret float 0.000000e+00
Modified: llvm/trunk/test/CodeGen/ARM/fptoint.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/fptoint.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/fptoint.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/fptoint.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | grep fmrs | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | grep fmrs | count 1
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6,+vfp2 | not grep fmrrd
@i = weak global i32 0 ; <i32*> [#uses=2]
Modified: llvm/trunk/test/CodeGen/ARM/hello.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/hello.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/hello.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/hello.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; RUN: llvm-as < %s | llc -march=arm
-; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | grep mov | wc -l | grep 1
+; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnueabi | grep mov | count 1
; RUN: llvm-as < %s | llc -mtriple=arm-linux-gnu --disable-fp-elim | \
-; RUN: grep mov | wc -l | grep 3
-; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep mov | wc -l | grep 2
+; RUN: grep mov | count 3
+; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin | grep mov | count 2
@str = internal constant [12 x i8] c"Hello World\00"
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt1.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt1.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt1.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bx | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bx | count 1
define i32 @t1(i32 %a, i32 %b) {
%tmp2 = icmp eq i32 %a, 0
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt2.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt2.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bxlt | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bxgt | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bxge | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bxlt | count 1
+; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bxgt | count 1
+; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bxge | count 1
define i32 @t1(i32 %a, i32 %b, i32 %c, i32 %d) {
%tmp2 = icmp sgt i32 %c, 10
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt3.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt3.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt3.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep cmpne | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bx | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep cmpne | count 1
+; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep bx | count 2
define i32 @t1(i32 %a, i32 %b, i32 %c, i32 %d) {
switch i32 %c, label %cond_next [
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt4.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt4.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt4.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt4.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep subgt | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep suble | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep subgt | count 1
+; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep suble | count 1
; FIXME: Check for # of unconditional branch after adding branch folding post ifcvt.
define i32 @t(i32 %a, i32 %b) {
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt5.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt5.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt5.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt5.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion
-; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep blge | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm -enable-arm-if-conversion | grep blge | count 1
@x = external global i32* ; <i32**> [#uses=1]
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt6.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt6.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt6.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt6.ll Wed Aug 15 08:36:28 2007
@@ -2,10 +2,10 @@
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
; RUN: llvm-as < %s | \
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
-; RUN: grep cmpne | wc -l | grep 1
+; RUN: grep cmpne | count 1
; RUN: llvm-as < %s | \
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
-; RUN: grep ldmhi | wc -l | grep 1
+; RUN: grep ldmhi | count 1
define void @foo(i32 %X, i32 %Y) {
entry:
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt7.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt7.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt7.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt7.ll Wed Aug 15 08:36:28 2007
@@ -2,13 +2,13 @@
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
; RUN: llvm-as < %s | \
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
-; RUN: grep cmpeq | wc -l | grep 1
+; RUN: grep cmpeq | count 1
; RUN: llvm-as < %s | \
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
-; RUN: grep moveq | wc -l | grep 1
+; RUN: grep moveq | count 1
; RUN: llvm-as < %s | \
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
-; RUN: grep ldmeq | wc -l | grep 1
+; RUN: grep ldmeq | count 1
; FIXME: Need post-ifcvt branch folding to get rid of the extra br at end of BB1.
%struct.quad_struct = type { i32, i32, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct*, %struct.quad_struct* }
Modified: llvm/trunk/test/CodeGen/ARM/ifcvt8.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ifcvt8.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ifcvt8.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ifcvt8.ll Wed Aug 15 08:36:28 2007
@@ -2,7 +2,7 @@
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion
; RUN: llvm-as < %s | \
; RUN: llc -march=arm -mtriple=arm-apple-darwin -enable-arm-if-conversion | \
-; RUN: grep ldmne | wc -l | grep 1
+; RUN: grep ldmne | count 1
%struct.SString = type { i8*, i32, i32 }
Modified: llvm/trunk/test/CodeGen/ARM/insn-sched1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/insn-sched1.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/insn-sched1.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/insn-sched1.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin -mattr=+v6 |\
-; RUN: grep mov | wc -l | grep 3
+; RUN: grep mov | count 3
int %test(int %x) {
%tmp = cast int %x to short
Modified: llvm/trunk/test/CodeGen/ARM/large-stack.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/large-stack.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/large-stack.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/large-stack.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=arm
-; RUN: llvm-as < %s | llc -march=thumb | grep {ldr.*LCP} | wc -l | grep 5
+; RUN: llvm-as < %s | llc -march=thumb | grep {ldr.*LCP} | count 5
define void @test1() {
%tmp = alloca [ 64 x i32 ] , align 4
Modified: llvm/trunk/test/CodeGen/ARM/ldm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ldm.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ldm.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ldm.ll Wed Aug 15 08:36:28 2007
@@ -1,9 +1,9 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep ldmia | wc -l | grep 2
+; RUN: grep ldmia | count 2
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep ldmib | wc -l | grep 1
+; RUN: grep ldmib | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=arm-apple-darwin | \
-; RUN: grep {ldmfd sp\!} | wc -l | grep 3
+; RUN: grep {ldmfd sp\!} | count 3
%X = external global [0 x int]
Modified: llvm/trunk/test/CodeGen/ARM/ldr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ldr.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ldr.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ldr.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {ldr r0} | wc -l | grep 3
+; RUN: grep {ldr r0} | count 3
int %f1(int* %v) {
entry:
Modified: llvm/trunk/test/CodeGen/ARM/ldr_ext.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ldr_ext.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ldr_ext.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ldr_ext.ll Wed Aug 15 08:36:28 2007
@@ -1,11 +1,11 @@
-; RUN: llvm-as < %s | llc -march=arm | grep ldrb | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep ldrh | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep ldrsb | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep ldrsh | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep ldrb | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep ldrh | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep ldrsb | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep ldrsh | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm | grep ldrb | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep ldrh | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep ldrsb | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep ldrsh | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep ldrb | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep ldrh | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep ldrsb | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep ldrsh | count 1
define i32 @test1(i8* %v.pntr.s0.u1) {
%tmp.u = load i8* %v.pntr.s0.u1
Modified: llvm/trunk/test/CodeGen/ARM/ldr_frame.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ldr_frame.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ldr_frame.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ldr_frame.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=arm | not grep mov
-; RUN: llvm-as < %s | llc -march=thumb | grep cpy | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=thumb | grep cpy | count 2
define i32 @f1() {
%buf = alloca [32 x i32], align 4
Modified: llvm/trunk/test/CodeGen/ARM/ldr_post.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ldr_post.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ldr_post.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ldr_post.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {ldr.*\\\[.*\],} | wc -l | grep 1
+; RUN: grep {ldr.*\\\[.*\],} | count 1
int %test(int %a, int %b, int %c) {
%tmp1 = mul int %a, %b
Modified: llvm/trunk/test/CodeGen/ARM/ldr_pre.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/ldr_pre.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/ldr_pre.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/ldr_pre.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {ldr.*\\!} | wc -l | grep 2
+; RUN: grep {ldr.*\\!} | count 2
int *%test1(int *%X, int *%dest) {
%Y = getelementptr int* %X, int 4
Modified: llvm/trunk/test/CodeGen/ARM/load-global.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/load-global.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/load-global.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/load-global.ll Wed Aug 15 08:36:28 2007
@@ -3,13 +3,13 @@
; RUN: not grep {L_G\$non_lazy_ptr}
; RUN: llvm-as < %s | \
; RUN: llc -mtriple=arm-apple-darwin -relocation-model=dynamic-no-pic | \
-; RUN: grep {L_G\$non_lazy_ptr} | wc -l | grep 2
+; RUN: grep {L_G\$non_lazy_ptr} | count 2
; RUN: llvm-as < %s | \
; RUN: llc -mtriple=arm-apple-darwin -relocation-model=pic | \
-; RUN: grep {ldr.*pc} | wc -l | grep 1
+; RUN: grep {ldr.*pc} | count 1
; RUN: llvm-as < %s | \
; RUN: llc -mtriple=arm-linux-gnueabi -relocation-model=pic | \
-; RUN: grep {GOT} | wc -l | grep 1
+; RUN: grep {GOT} | count 1
@G = external global i32
Modified: llvm/trunk/test/CodeGen/ARM/long-setcc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/long-setcc.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/long-setcc.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/long-setcc.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=arm | grep cmp | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep cmp | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm | grep cmp | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep cmp | count 1
define i1 @t1(i64 %x) {
Modified: llvm/trunk/test/CodeGen/ARM/long.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/long.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/long.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/long.ll Wed Aug 15 08:36:28 2007
@@ -1,20 +1,20 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep -- {-2147483648} | wc -l | grep 3
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 3
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep adds | wc -l | grep 1
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep adc | wc -l | grep 1
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep {subs } | wc -l | grep 1
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep sbc | wc -l | grep 1
+; RUN: grep -- {-2147483648} | count 3
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | count 3
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep adds | count 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep adc | count 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep {subs } | count 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep sbc | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep smull | wc -l | grep 1
+; RUN: grep smull | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep umull | wc -l | grep 1
+; RUN: grep umull | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
-; RUN: grep mvn | wc -l | grep 1
+; RUN: grep mvn | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
-; RUN: grep adc | wc -l | grep 1
+; RUN: grep adc | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
-; RUN: grep sbc | wc -l | grep 1
+; RUN: grep sbc | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep __muldi3
; END.
Modified: llvm/trunk/test/CodeGen/ARM/long_shift.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/long_shift.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/long_shift.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/long_shift.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-as < %s | llc -march=thumb
; RUN: llvm-as < %s | llc -march=arm > %t
-; RUN: grep rrx %t | wc -l | grep 1
+; RUN: grep rrx %t | count 1
; RUN: grep __ashldi3 %t
; RUN: grep __ashrdi3 %t
; RUN: grep __lshrdi3 %t
Modified: llvm/trunk/test/CodeGen/ARM/mul.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/mul.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/mul.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/mul.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
-; RUN: llvm-as < %s | llc -march=arm | grep mul | wc -l | grep 2
-; RUN: llvm-as < %s | llc -march=arm | grep lsl | wc -l | grep 2
-; RUN: llvm-as < %s | llc -march=thumb | grep mul | wc -l | grep 3
-; RUN: llvm-as < %s | llc -march=thumb | grep lsl | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm | grep mul | count 2
+; RUN: llvm-as < %s | llc -march=arm | grep lsl | count 2
+; RUN: llvm-as < %s | llc -march=thumb | grep mul | count 3
+; RUN: llvm-as < %s | llc -march=thumb | grep lsl | count 1
define i32 @f1(i32 %u) {
%tmp = mul i32 %u, %u
Modified: llvm/trunk/test/CodeGen/ARM/mulhi.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/mulhi.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/mulhi.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/mulhi.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
-; RUN: grep smmul | wc -l | grep 1
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep umull | wc -l | grep 1
+; RUN: grep smmul | count 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep umull | count 1
int %smulhi(int %x, int %y) {
%tmp = cast int %x to ulong ; <ulong> [#uses=1]
Modified: llvm/trunk/test/CodeGen/ARM/mvn.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/mvn.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/mvn.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/mvn.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | wc -l | grep 8
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | grep mvn | count 8
; END.
int %f1() {
Modified: llvm/trunk/test/CodeGen/ARM/pack.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/pack.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/pack.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/pack.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
-; RUN: grep pkhbt | wc -l | grep 5
+; RUN: grep pkhbt | count 5
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
-; RUN: grep pkhtb | wc -l | grep 4
+; RUN: grep pkhtb | count 4
; END.
implementation ; Functions:
Modified: llvm/trunk/test/CodeGen/ARM/select.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/select.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/select.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/select.ll Wed Aug 15 08:36:28 2007
@@ -1,17 +1,17 @@
-; RUN: llvm-as < %s | llc -march=arm | grep moveq | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep movgt | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep movlt | wc -l | grep 3
-; RUN: llvm-as < %s | llc -march=arm | grep movle | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep movls | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep movhi | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm | grep moveq | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep movgt | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep movlt | count 3
+; RUN: llvm-as < %s | llc -march=arm | grep movle | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep movls | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep movhi | count 1
; RUN: llvm-as < %s | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep fcpydmi | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep beq | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep bgt | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep blt | wc -l | grep 3
-; RUN: llvm-as < %s | llc -march=thumb | grep ble | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep bls | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep bhi | wc -l | grep 1
+; RUN: grep fcpydmi | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep beq | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep bgt | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep blt | count 3
+; RUN: llvm-as < %s | llc -march=thumb | grep ble | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep bls | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep bhi | count 1
; RUN: llvm-as < %s | llc -march=thumb | grep __ltdf2
define i32 @f1(i32 %a.s) {
Modified: llvm/trunk/test/CodeGen/ARM/select_xform.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/select_xform.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/select_xform.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/select_xform.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=arm
-; RUN: llvm-as < %s | llc -march=arm | grep mov | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=arm | grep mov | count 2
define i32 @t1(i32 %a, i32 %b, i32 %c) {
%tmp1 = icmp sgt i32 %c, 10
Modified: llvm/trunk/test/CodeGen/ARM/smul.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/smul.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/smul.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/smul.ll Wed Aug 15 08:36:28 2007
@@ -1,11 +1,11 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE | \
-; RUN: grep smulbt | wc -l | grep 1
+; RUN: grep smulbt | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE | \
-; RUN: grep smultt | wc -l | grep 1
+; RUN: grep smultt | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v5TE | \
-; RUN: grep smlabt | wc -l | grep 1
+; RUN: grep smlabt | count 1
%x = weak global short 0
%y = weak global short 0
Modified: llvm/trunk/test/CodeGen/ARM/stack-frame.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/stack-frame.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/stack-frame.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/stack-frame.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=arm
-; RUN: llvm-as < %s | llc -march=arm | grep add | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm | grep add | count 1
; RUN: llvm-as < %s | llc -march=thumb
-; RUN: llvm-as < %s | llc -march=thumb | grep add | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=thumb | grep add | count 1
define void @f1() {
%c = alloca i8, align 1
Modified: llvm/trunk/test/CodeGen/ARM/str_post.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/str_post.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/str_post.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/str_post.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {strh .*\\\[.*\], #-4} | wc -l | grep 1
+; RUN: grep {strh .*\\\[.*\], #-4} | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {str .*\\\[.*\],} | wc -l | grep 1
+; RUN: grep {str .*\\\[.*\],} | count 1
short %test1(int *%X, short *%A) {
%Y = load int* %X
Modified: llvm/trunk/test/CodeGen/ARM/str_pre.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/str_pre.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/str_pre.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/str_pre.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep {str.*\\!} | wc -l | grep 2
+; RUN: grep {str.*\\!} | count 2
void %test1(int *%X, int *%A, int **%dest) {
%B = load int* %A
Modified: llvm/trunk/test/CodeGen/ARM/str_trunc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/str_trunc.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/str_trunc.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/str_trunc.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep strb | wc -l | grep 1
+; RUN: grep strb | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm | \
-; RUN: grep strh | wc -l | grep 1
+; RUN: grep strh | count 1
void %test1(int %v, short* %ptr) {
%tmp = cast int %v to short
Modified: llvm/trunk/test/CodeGen/ARM/sxt_rot.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/sxt_rot.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/sxt_rot.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/sxt_rot.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | \
-; RUN: grep sxtb | wc -l | grep 1
+; RUN: grep sxtb | count 1
; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | \
-; RUN: grep sxtab | wc -l | grep 1
+; RUN: grep sxtab | count 1
define i8 @test1(i32 %A) signext {
%B = lshr i32 %A, 8
Modified: llvm/trunk/test/CodeGen/ARM/trunc_ldr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/trunc_ldr.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/trunc_ldr.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/trunc_ldr.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=arm | grep ldrb.*7 | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep ldrsb.*7 | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm | grep ldrb.*7 | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep ldrsb.*7 | count 1
%struct.A = type { i8, i8, i8, i8, i16, i8, i8, %struct.B** }
%struct.B = type { float, float, i32, i32, i32, [0 x i8] }
Modified: llvm/trunk/test/CodeGen/ARM/unord.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/unord.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/unord.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/unord.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
-; RUN: llvm-as < %s | llc -march=arm | grep movne | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm | grep moveq | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep bne | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=thumb | grep beq | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm | grep movne | count 1
+; RUN: llvm-as < %s | llc -march=arm | grep moveq | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep bne | count 1
+; RUN: llvm-as < %s | llc -march=thumb | grep beq | count 1
define i32 @f1(float %X, float %Y) {
%tmp = fcmp uno float %X, %Y
Modified: llvm/trunk/test/CodeGen/ARM/uxt_rot.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/uxt_rot.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/uxt_rot.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/uxt_rot.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep uxtb | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep uxtab | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep uxth | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep uxtb | count 1
+; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep uxtab | count 1
+; RUN: llvm-as < %s | llc -march=arm -mattr=+v6 | grep uxth | count 1
define i8 @test1(i32 %A.u) zeroext {
%B.u = trunc i32 %A.u to i8
Modified: llvm/trunk/test/CodeGen/ARM/uxtb.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/uxtb.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/uxtb.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/uxtb.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+v6 | \
-; RUN: grep uxt | wc -l | grep 10
+; RUN: grep uxt | count 10
; END.
uint %test1(uint %x) {
Modified: llvm/trunk/test/CodeGen/ARM/vargs2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/vargs2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/vargs2.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/vargs2.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
-; RUN: grep pop | wc -l | grep 2
+; RUN: grep pop | count 2
%str = internal constant [4 x sbyte] c"%d\0A\00" ; <[4 x sbyte]*> [#uses=1]
Modified: llvm/trunk/test/CodeGen/ARM/vargs_align.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/vargs_align.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/vargs_align.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/vargs_align.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnueabi | \
-; RUN: grep {add sp, sp, #16} | wc -l | grep 1
+; RUN: grep {add sp, sp, #16} | count 1
; RUN: llvm-as < %s | llc -march=arm -mtriple=arm-linux-gnu | \
-; RUN: grep {add sp, sp, #12} | wc -l | grep 2
+; RUN: grep {add sp, sp, #12} | count 2
define i32 @f(i32 %a, ...) {
entry:
Modified: llvm/trunk/test/CodeGen/ARM/vfp.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/ARM/vfp.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/ARM/vfp.ll (original)
+++ llvm/trunk/test/CodeGen/ARM/vfp.ll Wed Aug 15 08:36:28 2007
@@ -1,19 +1,19 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep fabs | wc -l | grep 2
+; RUN: grep fabs | count 2
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep fmscs | wc -l | grep 1
+; RUN: grep fmscs | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep fcvt | wc -l | grep 2
+; RUN: grep fcvt | count 2
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep fuito | wc -l | grep 2
+; RUN: grep fuito | count 2
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep fto.i | wc -l | grep 4
+; RUN: grep fto.i | count 4
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep bmi | wc -l | grep 1
+; RUN: grep bmi | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep bgt | wc -l | grep 1
+; RUN: grep bgt | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=arm -mattr=+vfp2 | \
-; RUN: grep fcmpezs | wc -l | grep 1
+; RUN: grep fcmpezs | count 1
void %test(float *%P, double* %D) {
%A = load float* %P
Modified: llvm/trunk/test/CodeGen/Alpha/2005-07-12-TwoMallocCalls.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Alpha/2005-07-12-TwoMallocCalls.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Alpha/2005-07-12-TwoMallocCalls.ll (original)
+++ llvm/trunk/test/CodeGen/Alpha/2005-07-12-TwoMallocCalls.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; There should be exactly two calls here (memset and malloc), no more.
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep jsr | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep jsr | count 2
%typedef.bc_struct = type opaque
Modified: llvm/trunk/test/CodeGen/Alpha/add.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Alpha/add.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Alpha/add.ll (original)
+++ llvm/trunk/test/CodeGen/Alpha/add.ll Wed Aug 15 08:36:28 2007
@@ -1,21 +1,21 @@
;test all the shifted and signextending adds and subs with and without consts
;
; RUN: llvm-as < %s | llc -march=alpha -o %t.s -f
-; RUN: grep { addl} %t.s | wc -l | grep 2
-; RUN: grep { addq} %t.s | wc -l | grep 2
-; RUN: grep { subl} %t.s | wc -l | grep 2
-; RUN: grep { subq} %t.s | wc -l | grep 1
+; RUN: grep { addl} %t.s | count 2
+; RUN: grep { addq} %t.s | count 2
+; RUN: grep { subl} %t.s | count 2
+; RUN: grep { subq} %t.s | count 1
;
-; RUN: grep {lda \$0,-100(\$16)} %t.s | wc -l | grep 1
-; RUN: grep {s4addl} %t.s | wc -l | grep 2
-; RUN: grep {s8addl} %t.s | wc -l | grep 2
-; RUN: grep {s4addq} %t.s | wc -l | grep 2
-; RUN: grep {s8addq} %t.s | wc -l | grep 2
+; RUN: grep {lda \$0,-100(\$16)} %t.s | count 1
+; RUN: grep {s4addl} %t.s | count 2
+; RUN: grep {s8addl} %t.s | count 2
+; RUN: grep {s4addq} %t.s | count 2
+; RUN: grep {s8addq} %t.s | count 2
;
-; RUN: grep {s4subl} %t.s | wc -l | grep 2
-; RUN: grep {s8subl} %t.s | wc -l | grep 2
-; RUN: grep {s4subq} %t.s | wc -l | grep 2
-; RUN: grep {s8subq} %t.s | wc -l | grep 2
+; RUN: grep {s4subl} %t.s | count 2
+; RUN: grep {s8subl} %t.s | count 2
+; RUN: grep {s4subq} %t.s | count 2
+; RUN: grep {s8subq} %t.s | count 2
define i32 @al(i32 signext %x.s, i32 signext %y.s) signext {
Modified: llvm/trunk/test/CodeGen/Alpha/cmpbge.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Alpha/cmpbge.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Alpha/cmpbge.ll (original)
+++ llvm/trunk/test/CodeGen/Alpha/cmpbge.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep cmpbge | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep cmpbge | count 2
bool %test1(ulong %A, ulong %B) {
%C = and ulong %A, 255
Modified: llvm/trunk/test/CodeGen/CBackend/2006-12-11-Float-Bitcast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/CBackend/2006-12-11-Float-Bitcast.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/CBackend/2006-12-11-Float-Bitcast.ll (original)
+++ llvm/trunk/test/CodeGen/CBackend/2006-12-11-Float-Bitcast.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=c | \
-; RUN: grep __BITCAST | wc -l | grep 14
+; RUN: grep __BITCAST | count 14
int %test1(float %F) {
%X = bitcast float %F to int
Modified: llvm/trunk/test/CodeGen/Generic/SwitchLowering.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/SwitchLowering.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/SwitchLowering.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/SwitchLowering.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep cmp | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep cmp | count 1
; PR964
sbyte* %FindChar(sbyte* %CurPtr) {
Modified: llvm/trunk/test/CodeGen/Generic/phi-immediate-factoring.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/phi-immediate-factoring.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/phi-immediate-factoring.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/phi-immediate-factoring.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; PR1296
-; RUN: llvm-as < %s | llc -march=x86 | grep {movl \$1} | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86 | grep {movl \$1} | count 1
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
target triple = "i686-apple-darwin8"
Modified: llvm/trunk/test/CodeGen/Generic/switch-crit-edge-constant.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/switch-crit-edge-constant.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/switch-crit-edge-constant.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/switch-crit-edge-constant.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; PR925
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
-; RUN: grep mov.*str1 | wc -l | grep 1
+; RUN: grep mov.*str1 | count 1
target endian = little
target pointersize = 32
Modified: llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/switch-lower-feature-2.ll Wed Aug 15 08:36:28 2007
@@ -1,13 +1,13 @@
; RUN: llvm-as < %s | llc -march=x86 -o %t -f
-; RUN: grep jb %t | wc -l | grep 1
-; RUN: grep \\\$6 %t | wc -l | grep 2
-; RUN: grep 1024 %t | wc -l | grep 1
-; RUN: grep 1023 %t | wc -l | grep 1
-; RUN: grep 119 %t | wc -l | grep 1
-; RUN: grep JTI %t | wc -l | grep 2
-; RUN: grep jg %t | wc -l | grep 1
-; RUN: grep ja %t | wc -l | grep 1
-; RUN: grep js %t | wc -l | grep 1
+; RUN: grep jb %t | count 1
+; RUN: grep \\\$6 %t | count 2
+; RUN: grep 1024 %t | count 1
+; RUN: grep 1023 %t | count 1
+; RUN: grep 119 %t | count 1
+; RUN: grep JTI %t | count 2
+; RUN: grep jg %t | count 1
+; RUN: grep ja %t | count 1
+; RUN: grep js %t | count 1
target triple = "i686-pc-linux-gnu"
Modified: llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll (original)
+++ llvm/trunk/test/CodeGen/Generic/switch-lower-feature.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
-; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$7 | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$6 | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=x86 -o - | grep 1024 | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=x86 -o - | grep jb | wc -l | grep 2
-; RUN: llvm-as < %s | llc -march=x86 -o - | grep je | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$7 | count 1
+; RUN: llvm-as < %s | llc -march=x86 -o - | grep \$6 | count 1
+; RUN: llvm-as < %s | llc -march=x86 -o - | grep 1024 | count 1
+; RUN: llvm-as < %s | llc -march=x86 -o - | grep jb | count 2
+; RUN: llvm-as < %s | llc -march=x86 -o - | grep je | count 1
define i32 @main(i32 %tmp158) {
entry:
Modified: llvm/trunk/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/2005-09-02-LegalizeDuplicatesCalls.ll Wed Aug 15 08:36:28 2007
@@ -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]
Modified: llvm/trunk/test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/2006-07-07-ComputeMaskedBits.ll Wed Aug 15 08:36:28 2007
@@ -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*
Modified: llvm/trunk/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/2007-02-23-lr-saved-twice.ll Wed Aug 15 08:36:28 2007
@@ -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"
Modified: llvm/trunk/test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/2007-05-22-tailmerge-3.ll Wed Aug 15 08:36:28 2007
@@ -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'
Modified: llvm/trunk/test/CodeGen/PowerPC/addc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/addc.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/addc.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/addc.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/align.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/align.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/align.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/align.ll Wed Aug 15 08:36:28 2007
@@ -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 >
Modified: llvm/trunk/test/CodeGen/PowerPC/branch-opt.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/branch-opt.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/branch-opt.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/branch-opt.ll Wed Aug 15 08:36:28 2007
@@ -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
Modified: llvm/trunk/test/CodeGen/PowerPC/bswap-load-store.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/bswap-load-store.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/bswap-load-store.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/bswap-load-store.ll Wed Aug 15 08:36:28 2007
@@ -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
Modified: llvm/trunk/test/CodeGen/PowerPC/buildvec_canonicalize.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/buildvec_canonicalize.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/buildvec_canonicalize.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/buildvec_canonicalize.ll Wed Aug 15 08:36:28 2007
@@ -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) {
Modified: llvm/trunk/test/CodeGen/PowerPC/calls.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/calls.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/calls.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/calls.ll Wed Aug 15 08:36:28 2007
@@ -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()
Modified: llvm/trunk/test/CodeGen/PowerPC/constants.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/constants.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/constants.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/constants.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/eqv-andc-orc-nor.ll Wed Aug 15 08:36:28 2007
@@ -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
Modified: llvm/trunk/test/CodeGen/PowerPC/extsh.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/extsh.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/extsh.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/extsh.ll Wed Aug 15 08:36:28 2007
@@ -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]
Modified: llvm/trunk/test/CodeGen/PowerPC/fma.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/fma.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/fma.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/fma.ll Wed Aug 15 08:36:28 2007
@@ -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
Modified: llvm/trunk/test/CodeGen/PowerPC/fp-branch.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/fp-branch.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/fp-branch.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/fp-branch.ll Wed Aug 15 08:36:28 2007
@@ -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)
Modified: llvm/trunk/test/CodeGen/PowerPC/fp_to_uint.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/fp_to_uint.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/fp_to_uint.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/fp_to_uint.ll Wed Aug 15 08:36:28 2007
@@ -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
Modified: llvm/trunk/test/CodeGen/PowerPC/mulhs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/mulhs.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/mulhs.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/mulhs.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/rlwimi.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/rlwimi.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/rlwimi.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/rlwimi.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/rlwimi2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/rlwimi2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/rlwimi2.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/rlwimi2.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/rlwinm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/rlwinm.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/rlwinm.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/rlwinm.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/rlwinm2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/rlwinm2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/rlwinm2.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/rlwinm2.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/rotl-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/rotl-2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/rotl-2.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/rotl-2.ll Wed Aug 15 08:36:28 2007
@@ -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) {
Modified: llvm/trunk/test/CodeGen/PowerPC/rotl.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/rotl.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/rotl.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/rotl.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/subc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/subc.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/subc.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/subc.ll Wed Aug 15 08:36:28 2007
@@ -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) {
Modified: llvm/trunk/test/CodeGen/PowerPC/unsafe-math.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/unsafe-math.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/unsafe-math.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/unsafe-math.ll Wed Aug 15 08:36:28 2007
@@ -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
Modified: llvm/trunk/test/CodeGen/PowerPC/vcmp-fold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/vcmp-fold.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/vcmp-fold.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/vcmp-fold.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/vec_shuffle.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/vec_shuffle.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/vec_shuffle.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/vec_shuffle.ll Wed Aug 15 08:36:28 2007
@@ -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:
Modified: llvm/trunk/test/CodeGen/PowerPC/vec_spat.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/PowerPC/vec_spat.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/PowerPC/vec_spat.ll (original)
+++ llvm/trunk/test/CodeGen/PowerPC/vec_spat.ll Wed Aug 15 08:36:28 2007
@@ -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>
Modified: llvm/trunk/test/CodeGen/SPARC/xnor.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/xnor.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/xnor.ll (original)
+++ llvm/trunk/test/CodeGen/SPARC/xnor.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=sparc | \
-; RUN: grep xnor | wc -l | grep 2
+; RUN: grep xnor | count 2
int %test1(int %X, int %Y) {
%A = xor int %X, %Y
Modified: llvm/trunk/test/CodeGen/X86/2006-01-19-ISelFoldingBug.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2006-01-19-ISelFoldingBug.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2006-01-19-ISelFoldingBug.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2006-01-19-ISelFoldingBug.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
-; RUN: grep shld | wc -l | grep 1
+; RUN: grep shld | count 1
;
; Check that the isel does not fold the shld, which already folds a load
; and has two uses, into a store.
Modified: llvm/trunk/test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll Wed Aug 15 08:36:28 2007
@@ -1,9 +1,9 @@
; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | \
-; RUN: grep {movl _last} | wc -l | grep 1
+; RUN: grep {movl _last} | count 1
; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | \
-; RUN: grep {cmpl.*_last} | wc -l | grep 1
+; RUN: grep {cmpl.*_last} | count 1
%block = external global ubyte* ; <ubyte**> [#uses=1]
%last = external global int ; <int*> [#uses=3]
Modified: llvm/trunk/test/CodeGen/X86/2006-11-28-Memcpy.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2006-11-28-Memcpy.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2006-11-28-Memcpy.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2006-11-28-Memcpy.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; PR1022, PR1023
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
-; RUN: grep 3721182122 | wc -l | grep 2
+; RUN: grep 3721182122 | count 2
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
-; RUN: grep -E {movl _?bytes2} | wc -l | grep 1
+; RUN: grep -E {movl _?bytes2} | count 1
%fmt = constant [4 x sbyte] c"%x\0A\00"
%bytes = constant [4 x sbyte] c"\AA\BB\CC\DD"
Modified: llvm/trunk/test/CodeGen/X86/2007-01-08-InstrSched.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-01-08-InstrSched.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-01-08-InstrSched.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2007-01-08-InstrSched.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; PR1075
; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | \
-; RUN: %prcontext {mulss LCPI1_3} 1 | grep mulss | wc -l | grep 1
+; RUN: %prcontext {mulss LCPI1_3} 1 | grep mulss | count 1
define float @foo(float %x) {
%tmp1 = mul float %x, 3.000000e+00
Modified: llvm/trunk/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-darwin | \
-; RUN: grep push | wc -l | grep 3
+; RUN: grep push | count 3
define void @foo(i8** %buf, i32 %size, i32 %col, i8* %p) {
entry:
Modified: llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2007-04-25-MMX-PADDQ.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -o - -march=x86 -mattr=+mmx | grep paddq | wc -l | grep 2
-; RUN: llvm-as < %s | llc -o - -march=x86 -mattr=+mmx | grep movq | wc -l | grep 3
+; RUN: llvm-as < %s | llc -o - -march=x86 -mattr=+mmx | grep paddq | count 2
+; RUN: llvm-as < %s | llc -o - -march=x86 -mattr=+mmx | grep movq | count 3
define <1 x i64> @unsigned_add3(<1 x i64>* %a, <1 x i64>* %b, i32 %count) {
entry:
Modified: llvm/trunk/test/CodeGen/X86/2007-06-14-branchfold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-06-14-branchfold.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-06-14-branchfold.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2007-06-14-branchfold.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -mcpu=i686 | grep jmp | wc -l | grep 1
+; RUN: llvm-as < %s | llc -mcpu=i686 | grep jmp | count 1
; check that branch folding understands FP_REG_KILL is not a branch
; the remaining jmp can be removed if we take advantage of knowing
; abort does not return
Modified: llvm/trunk/test/CodeGen/X86/2007-08-10-LEA16Use32.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-08-10-LEA16Use32.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-08-10-LEA16Use32.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2007-08-10-LEA16Use32.ll Wed Aug 15 08:36:28 2007
@@ -20,4 +20,4 @@
return: ; preds = %bb, %entry
ret void
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2007-08-10-SignExtSubreg.ll Wed Aug 15 08:36:28 2007
@@ -7,4 +7,4 @@
store i32 %x, i32* @X, align 4
%retval67 = trunc i32 %x to i8 ; <i8> [#uses=1]
ret i8 %retval67
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/CodeGen/X86/2007-08-13-SpillerReuse.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/2007-08-13-SpillerReuse.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/2007-08-13-SpillerReuse.ll (original)
+++ llvm/trunk/test/CodeGen/X86/2007-08-13-SpillerReuse.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin | grep "48(%esp)" | wc -l | grep 5
+; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin | grep "48(%esp)" | count 5
%struct..0anon = type { i32 }
%struct.rtvec_def = type { i32, [1 x %struct..0anon] }
Modified: llvm/trunk/test/CodeGen/X86/and-or-fold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/and-or-fold.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/and-or-fold.ll (original)
+++ llvm/trunk/test/CodeGen/X86/and-or-fold.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep and | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep and | count 1
; The dag combiner should fold together (x&127)|(y&16711680) -> (x|y)&c1
; in this case.
Modified: llvm/trunk/test/CodeGen/X86/bitcast2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/bitcast2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/bitcast2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/bitcast2.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movd | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movd | count 2
; RUN: llvm-as < %s | llc -march=x86-64 | not grep rsp
define i64 @test1(double %A) {
Modified: llvm/trunk/test/CodeGen/X86/bswap.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/bswap.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/bswap.ll (original)
+++ llvm/trunk/test/CodeGen/X86/bswap.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; bswap should be constant folded when it is passed a constant argument
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
-; RUN: grep bswapl | wc -l | grep 3
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep rolw | wc -l | grep 1
+; RUN: grep bswapl | count 3
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep rolw | count 1
declare ushort %llvm.bswap.i16(ushort)
declare uint %llvm.bswap.i32(uint)
Modified: llvm/trunk/test/CodeGen/X86/call-push.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/call-push.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/call-push.ll (original)
+++ llvm/trunk/test/CodeGen/X86/call-push.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -disable-fp-elim | grep subl | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86 -disable-fp-elim | grep subl | count 1
%struct.decode_t = type { i8, i8, i8, i8, i16, i8, i8, %struct.range_t** }
%struct.range_t = type { float, float, i32, i32, i32, [0 x i8] }
Modified: llvm/trunk/test/CodeGen/X86/cmp-test.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/cmp-test.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/cmp-test.ll (original)
+++ llvm/trunk/test/CodeGen/X86/cmp-test.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep cmp | wc -l | grep 1
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep test | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep cmp | count 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep test | count 1
int %f1(int %X, int* %y) {
%tmp = load int* %y
Modified: llvm/trunk/test/CodeGen/X86/commute-two-addr.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/commute-two-addr.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/commute-two-addr.ll (original)
+++ llvm/trunk/test/CodeGen/X86/commute-two-addr.ll Wed Aug 15 08:36:28 2007
@@ -3,7 +3,7 @@
; Make sure there are only 3 mov's for each testcase
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
-; RUN: grep {\\\<mov\\\>} | wc -l | grep 6
+; RUN: grep {\\\<mov\\\>} | count 6
target triple = "i686-pc-linux-gnu"
Modified: llvm/trunk/test/CodeGen/X86/compare_folding.llx
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/compare_folding.llx?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/compare_folding.llx (original)
+++ llvm/trunk/test/CodeGen/X86/compare_folding.llx Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah | \
-; RUN: grep movsd | wc -l | grep 1
+; RUN: grep movsd | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=yonah | \
; RUN: grep ucomisd
declare bool %llvm.isunordered.f64(double,double)
Modified: llvm/trunk/test/CodeGen/X86/dollar-name.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/dollar-name.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/dollar-name.ll (original)
+++ llvm/trunk/test/CodeGen/X86/dollar-name.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep (\$bar) | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep (\$qux) | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep (\$hen) | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep (\$bar) | count 1
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep (\$qux) | count 1
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep (\$hen) | count 1
; PR1339
@"$bar" = global i32 zeroinitializer
Modified: llvm/trunk/test/CodeGen/X86/extend.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/extend.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/extend.ll (original)
+++ llvm/trunk/test/CodeGen/X86/extend.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep movzx | wc -l | grep 1
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep movsx | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep movzx | count 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep movsx | count 1
%G1 = internal global ubyte 0 ; <ubyte*> [#uses=1]
%G2 = internal global sbyte 0 ; <sbyte*> [#uses=1]
Modified: llvm/trunk/test/CodeGen/X86/extern_weak.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/extern_weak.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/extern_weak.ll (original)
+++ llvm/trunk/test/CodeGen/X86/extern_weak.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=i686-apple-darwin | grep weak_reference | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=i686-apple-darwin | grep weak_reference | count 2
%Y = global int (sbyte*)* %X
declare extern_weak int %X(sbyte*)
Modified: llvm/trunk/test/CodeGen/X86/fabs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fabs.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fabs.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fabs.ll Wed Aug 15 08:36:28 2007
@@ -1,9 +1,9 @@
; Make sure this testcase codegens to the fabs instruction, not a call to fabsf
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=-sse2,-sse3 | \
-; RUN: grep fabs\$ | wc -l | grep 1
+; RUN: grep fabs\$ | count 1
; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: llc -march=x86 -mattr=-sse2,-sse3 -enable-unsafe-fp-math | \
-; RUN: grep fabs\$ | wc -l | grep 2
+; RUN: grep fabs\$ | count 2
target endian = little
target pointersize = 32
Modified: llvm/trunk/test/CodeGen/X86/fildll.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fildll.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fildll.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fildll.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=att -mattr=-sse2 | grep fildll | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=att -mattr=-sse2 | grep fildll | count 2
fastcc double %sint64_to_fp(long %X) {
%R = cast long %X to double
Modified: llvm/trunk/test/CodeGen/X86/fp-stack-ret.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fp-stack-ret.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fp-stack-ret.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fp-stack-ret.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; RUN: llvm-as < %s | \
; RUN: llc -mtriple=i686-apple-darwin8 -mcpu=yonah -march=x86 > %t
-; RUN: grep fldl %t | wc -l | grep 1
+; RUN: grep fldl %t | count 1
; RUN: not grep xmm %t
-; RUN: grep {sub.*esp} %t | wc -l | grep 1
+; RUN: grep {sub.*esp} %t | count 1
; These testcases shouldn't require loading into an XMM register then storing
; to memory, then reloading into an FPStack reg.
Modified: llvm/trunk/test/CodeGen/X86/fsxor-alignment.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/fsxor-alignment.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/fsxor-alignment.ll (original)
+++ llvm/trunk/test/CodeGen/X86/fsxor-alignment.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -enable-unsafe-fp-math | \
-; RUN: grep -v sp | grep xorps | wc -l | grep 2
+; RUN: grep -v sp | grep xorps | count 2
; Don't fold the incoming stack arguments into the xorps instructions used
; to do floating-point negations, because the arguments aren't vectors
Modified: llvm/trunk/test/CodeGen/X86/lea-recursion.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/lea-recursion.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/lea-recursion.ll (original)
+++ llvm/trunk/test/CodeGen/X86/lea-recursion.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep lea | wc -l | grep 12
+; RUN: llvm-as < %s | llc -march=x86-64 | grep lea | count 12
; This testcase was written to demonstrate an instruction-selection problem,
; however it also happens to expose a limitation in the DAGCombiner's
Modified: llvm/trunk/test/CodeGen/X86/long-setcc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/long-setcc.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/long-setcc.ll (original)
+++ llvm/trunk/test/CodeGen/X86/long-setcc.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep cmp | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=x86 | grep shr | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=x86 | grep xor | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86 | grep cmp | count 1
+; RUN: llvm-as < %s | llc -march=x86 | grep shr | count 1
+; RUN: llvm-as < %s | llc -march=x86 | grep xor | count 1
define i1 @t1(i64 %x) {
%B = icmp slt i64 %x, 0
Modified: llvm/trunk/test/CodeGen/X86/loop-strength-reduce.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/loop-strength-reduce.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/loop-strength-reduce.ll (original)
+++ llvm/trunk/test/CodeGen/X86/loop-strength-reduce.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
-; RUN: grep {A(} | wc -l | grep 1
+; RUN: grep {A(} | count 1
;
; Make sure the common loop invariant _A(reg) is hoisted up to preheader.
Modified: llvm/trunk/test/CodeGen/X86/mingw-alloca.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/mingw-alloca.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/mingw-alloca.ll (original)
+++ llvm/trunk/test/CodeGen/X86/mingw-alloca.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; RUN: llvm-as < %s | llc -o %t -f
-; RUN: grep __alloca %t | wc -l | grep 2
+; RUN: grep __alloca %t | count 2
; RUN: grep 8028 %t
; RUN: grep {pushl %eax} %t
-; RUN: grep 8024 %t | wc -l | grep 2
+; RUN: grep 8024 %t | count 2
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
target triple = "i386-mingw32"
Modified: llvm/trunk/test/CodeGen/X86/mmx-insert-element.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/mmx-insert-element.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/mmx-insert-element.ll (original)
+++ llvm/trunk/test/CodeGen/X86/mmx-insert-element.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep movq | wc -l | grep 3
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep movq | count 3
; FIXME: This code outputs:
;
Modified: llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll (original)
+++ llvm/trunk/test/CodeGen/X86/mmx-punpckhdq.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep punpckhdq | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+mmx | grep punpckhdq | count 1
define void @bork(<1 x i64>* %x) {
entry:
Modified: llvm/trunk/test/CodeGen/X86/peep-vector-extract-insert.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/peep-vector-extract-insert.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/peep-vector-extract-insert.ll (original)
+++ llvm/trunk/test/CodeGen/X86/peep-vector-extract-insert.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep {pxor %xmm0, %xmm0} | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep {pxor %xmm0, %xmm0} | count 2
define float @foo(<4 x float> %a) {
%b = insertelement <4 x float> %a, float 0.0, i32 3
Modified: llvm/trunk/test/CodeGen/X86/pr1489.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr1489.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr1489.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr1489.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -disable-fp-elim -fast -mcpu=i486 | grep 1082126238 | wc -l | grep 3
-; RUN: llvm-as < %s | llc -disable-fp-elim -fast -mcpu=i486 | grep 3058016715 | wc -l | grep 1
+; RUN: llvm-as < %s | llc -disable-fp-elim -fast -mcpu=i486 | grep 1082126238 | count 3
+; RUN: llvm-as < %s | llc -disable-fp-elim -fast -mcpu=i486 | grep 3058016715 | count 1
;; magic constants are 3.999f and half of 3.999
; ModuleID = '1489.c'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
Modified: llvm/trunk/test/CodeGen/X86/pr1505b.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/pr1505b.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/pr1505b.ll (original)
+++ llvm/trunk/test/CodeGen/X86/pr1505b.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -mcpu=i486 | grep fstpl | wc -l | grep 4
-; RUN: llvm-as < %s | llc -mcpu=i486 | grep fstps | wc -l | grep 3
+; RUN: llvm-as < %s | llc -mcpu=i486 | grep fstpl | count 4
+; RUN: llvm-as < %s | llc -mcpu=i486 | grep fstps | count 3
; ModuleID = '<stdin>'
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
Modified: llvm/trunk/test/CodeGen/X86/rotate.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/rotate.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/rotate.ll (original)
+++ llvm/trunk/test/CodeGen/X86/rotate.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
-; RUN: grep {ro\[rl\]} | wc -l | grep 12
+; RUN: grep {ro\[rl\]} | count 12
uint %rotl32(uint %A, ubyte %Amt) {
%B = shl uint %A, ubyte %Amt
Modified: llvm/trunk/test/CodeGen/X86/scalar-min-max-fill-operand.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/scalar-min-max-fill-operand.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/scalar-min-max-fill-operand.ll (original)
+++ llvm/trunk/test/CodeGen/X86/scalar-min-max-fill-operand.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep min | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=x86-64 | grep max | wc -l | grep 1
-; RUN: llvm-as < %s | llc -march=x86-64 | grep mov | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep min | count 1
+; RUN: llvm-as < %s | llc -march=x86-64 | grep max | count 1
+; RUN: llvm-as < %s | llc -march=x86-64 | grep mov | count 2
declare float @bar()
Modified: llvm/trunk/test/CodeGen/X86/scalar_sse_minmax.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/scalar_sse_minmax.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/scalar_sse_minmax.ll (original)
+++ llvm/trunk/test/CodeGen/X86/scalar_sse_minmax.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse1,+sse2 | \
-; RUN: grep mins | wc -l | grep 3
+; RUN: grep mins | count 3
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse1,+sse2 | \
-; RUN: grep maxs | wc -l | grep 2
+; RUN: grep maxs | count 2
declare bool %llvm.isunordered.f64( double %x, double %y )
declare bool %llvm.isunordered.f32( float %x, float %y )
Modified: llvm/trunk/test/CodeGen/X86/shift-codegen.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/shift-codegen.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/shift-codegen.ll (original)
+++ llvm/trunk/test/CodeGen/X86/shift-codegen.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | llc -relocation-model=static -march=x86 | \
-; RUN: grep {shll \$3} | wc -l | grep 2
+; RUN: grep {shll \$3} | count 2
; This should produce two shll instructions, not any lea's.
Modified: llvm/trunk/test/CodeGen/X86/shift-double.llx
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/shift-double.llx?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/shift-double.llx (original)
+++ llvm/trunk/test/CodeGen/X86/shift-double.llx Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
-; RUN: grep {sh\[lr\]d} | wc -l | grep 5
+; RUN: grep {sh\[lr\]d} | count 5
long %test1(long %X, ubyte %C) {
%Y = shl long %X, ubyte %C
Modified: llvm/trunk/test/CodeGen/X86/shift-folding.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/shift-folding.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/shift-folding.ll (original)
+++ llvm/trunk/test/CodeGen/X86/shift-folding.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
-; RUN: grep {s\[ah\]\[rl\]l} | wc -l | grep 1
+; RUN: grep {s\[ah\]\[rl\]l} | count 1
int* %test1(int *%P, uint %X) {
%Y = shr uint %X, ubyte 2
Modified: llvm/trunk/test/CodeGen/X86/sse-align-1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-1.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-1.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-1.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movap | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movap | count 2
define <4 x float> @foo(<4 x float>* %p)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-10.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-10.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-10.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-10.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movups | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movups | count 1
define <2 x i64> @bar(<2 x i64>* %p)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-12.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-12.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-12.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-12.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep unpck | wc -l | grep 2
-; RUN: llvm-as < %s | llc -march=x86-64 | grep shuf | wc -l | grep 2
-; RUN: llvm-as < %s | llc -march=x86-64 | grep ps | wc -l | grep 4
-; RUN: llvm-as < %s | llc -march=x86-64 | grep pd | wc -l | grep 4
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movup | wc -l | grep 4
+; RUN: llvm-as < %s | llc -march=x86-64 | grep unpck | count 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep shuf | count 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep ps | count 4
+; RUN: llvm-as < %s | llc -march=x86-64 | grep pd | count 4
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movup | count 4
define <4 x float> @a(<4 x float>* %y)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-2.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movup | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movup | count 2
define <4 x float> @foo(<4 x float>* %p, <4 x float> %x)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-3.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-3.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-3.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movap | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movap | count 2
define void @foo(<4 x float>* %p, <4 x float> %x)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-4.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-4.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-4.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-4.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movup | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movup | count 2
define void @foo(<4 x float>* %p, <4 x float> %x)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-5.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-5.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-5.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-5.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movaps | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movaps | count 1
define <2 x i64> @bar(<2 x i64>* %p)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-6.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-6.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-6.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-6.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movups | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movups | count 1
define <2 x i64> @bar(<2 x i64>* %p, <2 x i64> %x)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-7.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-7.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-7.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-7.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movaps | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movaps | count 1
define void @bar(<2 x i64>* %p, <2 x i64> %x)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-8.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-8.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-8.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-8.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movups | wc -l | grep 1
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movups | count 1
define void @bar(<2 x i64>* %p, <2 x i64> %x)
{
Modified: llvm/trunk/test/CodeGen/X86/sse-align-9.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/sse-align-9.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/sse-align-9.ll (original)
+++ llvm/trunk/test/CodeGen/X86/sse-align-9.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep movup | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86-64 | grep movup | count 2
define <4 x float> @foo(<4 x float>* %p)
{
Modified: llvm/trunk/test/CodeGen/X86/store-global-address.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/store-global-address.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/store-global-address.ll (original)
+++ llvm/trunk/test/CodeGen/X86/store-global-address.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep movl | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep movl | count 1
%dst = global int 0
%ptr = global int* null
Modified: llvm/trunk/test/CodeGen/X86/store_op_load_fold2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/store_op_load_fold2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/store_op_load_fold2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/store_op_load_fold2.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
-; RUN: grep {and DWORD PTR} | wc -l | grep 2
+; RUN: grep {and DWORD PTR} | count 2
target endian = little
target pointersize = 32
Modified: llvm/trunk/test/CodeGen/X86/test-hidden.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/test-hidden.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/test-hidden.ll (original)
+++ llvm/trunk/test/CodeGen/X86/test-hidden.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu | \
-; RUN: grep .hidden | wc -l | grep 2
+; RUN: grep .hidden | count 2
; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin8.8.0 | \
-; RUN: grep .private_extern | wc -l | grep 2
+; RUN: grep .private_extern | count 2
%struct.Person = type { i32 }
@a = hidden global i32 0
Modified: llvm/trunk/test/CodeGen/X86/test-pic-1.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/test-pic-1.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/test-pic-1.ll (original)
+++ llvm/trunk/test/CodeGen/X86/test-pic-1.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; RUN: llvm-as < %s | \
; RUN: llc -mtriple=i686-pc-linux-gnu -relocation-model=pic -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
-; RUN: grep piclabel %t | wc -l | grep 3
-; RUN: grep GOT %t | wc -l | grep 3
+; RUN: grep piclabel %t | count 3
+; RUN: grep GOT %t | count 3
; RUN: not grep GOTOFF %t | wc -l
@ptr = external global i32*
Modified: llvm/trunk/test/CodeGen/X86/test-pic-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/test-pic-2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/test-pic-2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/test-pic-2.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
; RUN: -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
-; RUN: grep piclabel %t | wc -l | grep 3
-; RUN: grep GOTOFF %t | wc -l | grep 4
+; RUN: grep piclabel %t | count 3
+; RUN: grep GOTOFF %t | count 4
@ptr = internal global i32* null
@dst = internal global i32 0
Modified: llvm/trunk/test/CodeGen/X86/test-pic-3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/test-pic-3.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/test-pic-3.ll (original)
+++ llvm/trunk/test/CodeGen/X86/test-pic-3.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
; RUN: -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
-; RUN: grep piclabel %t | wc -l | grep 3
-; RUN: grep PLT %t | wc -l | grep 1
+; RUN: grep piclabel %t | count 3
+; RUN: grep PLT %t | count 1
define void @bar() {
entry:
Modified: llvm/trunk/test/CodeGen/X86/test-pic-4.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/test-pic-4.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/test-pic-4.ll (original)
+++ llvm/trunk/test/CodeGen/X86/test-pic-4.ll Wed Aug 15 08:36:28 2007
@@ -1,9 +1,9 @@
; RUN: llvm-as < %s | \
; RUN: llc -mtriple=i686-pc-linux-gnu -relocation-model=pic -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
-; RUN: grep piclabel %t | wc -l | grep 3
-; RUN: grep PLT %t | wc -l | grep 1
-; RUN: grep GOT %t | wc -l | grep 1
+; RUN: grep piclabel %t | count 3
+; RUN: grep PLT %t | count 1
+; RUN: grep GOT %t | count 1
; RUN: not grep GOTOFF %t
@pfoo = external global void(...)*
Modified: llvm/trunk/test/CodeGen/X86/test-pic-5.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/test-pic-5.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/test-pic-5.ll (original)
+++ llvm/trunk/test/CodeGen/X86/test-pic-5.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
; RUN: -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
-; RUN: grep piclabel %t | wc -l | grep 3
-; RUN: grep PLT %t | wc -l | grep 1
+; RUN: grep piclabel %t | count 3
+; RUN: grep PLT %t | count 1
@ptr = external global i32*
Modified: llvm/trunk/test/CodeGen/X86/test-pic-6.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/test-pic-6.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/test-pic-6.ll (original)
+++ llvm/trunk/test/CodeGen/X86/test-pic-6.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
; RUN: -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
-; RUN: grep piclabel %t | wc -l | grep 3
-; RUN: grep GOT %t | wc -l | grep 3
+; RUN: grep piclabel %t | count 3
+; RUN: grep GOT %t | count 3
@ptr = global i32* null
@dst = global i32 0
Modified: llvm/trunk/test/CodeGen/X86/test-pic-cpool.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/test-pic-cpool.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/test-pic-cpool.ll (original)
+++ llvm/trunk/test/CodeGen/X86/test-pic-cpool.ll Wed Aug 15 08:36:28 2007
@@ -1,9 +1,9 @@
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
; RUN: -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
-; RUN: grep piclabel %t | wc -l | grep 3
-; RUN: grep GOTOFF %t | wc -l | grep 2
-; RUN: grep CPI %t | wc -l | grep 4
+; RUN: grep piclabel %t | count 3
+; RUN: grep GOTOFF %t | count 2
+; RUN: grep CPI %t | count 4
define double @foo(i32 %a.u) {
entry:
Modified: llvm/trunk/test/CodeGen/X86/test-pic-jtbl.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/test-pic-jtbl.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/test-pic-jtbl.ll (original)
+++ llvm/trunk/test/CodeGen/X86/test-pic-jtbl.ll Wed Aug 15 08:36:28 2007
@@ -1,10 +1,10 @@
; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic \
; RUN: -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
-; RUN: grep piclabel %t | wc -l | grep 3
-; RUN: grep PLT %t | wc -l | grep 6
-; RUN: grep GOTOFF %t | wc -l | grep 2
-; RUN: grep JTI %t | wc -l | grep 9
+; RUN: grep piclabel %t | count 3
+; RUN: grep PLT %t | count 6
+; RUN: grep GOTOFF %t | count 2
+; RUN: grep JTI %t | count 9
define void @bar(i32 %n.u) {
entry:
Modified: llvm/trunk/test/CodeGen/X86/vec_extract.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_extract.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_extract.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_extract.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep movss %t | wc -l | grep 3
-; RUN: grep movhlps %t | wc -l | grep 1
-; RUN: grep pshufd %t | wc -l | grep 1
-; RUN: grep unpckhpd %t | wc -l | grep 1
+; RUN: grep movss %t | count 3
+; RUN: grep movhlps %t | count 1
+; RUN: grep pshufd %t | count 1
+; RUN: grep unpckhpd %t | count 1
void %test1(<4 x float>* %F, float* %f) {
%tmp = load <4 x float>* %F
Modified: llvm/trunk/test/CodeGen/X86/vec_insert.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_insert.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_insert.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_insert.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep movss %t | wc -l | grep 1
-; RUN: grep pinsrw %t | wc -l | grep 2
+; RUN: grep movss %t | count 1
+; RUN: grep pinsrw %t | count 2
void %test(<4 x float>* %F, int %I) {
%tmp = load <4 x float>* %F
Modified: llvm/trunk/test/CodeGen/X86/vec_logical.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_logical.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_logical.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_logical.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xorps | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep xorps | count 2
; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep andnps
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movaps | wc -l | grep 2
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | grep movaps | count 2
define void @t(<4 x float> %A) {
%tmp1277 = sub <4 x float> < float -0.000000e+00, float -0.000000e+00, float -0.000000e+00, float -0.000000e+00 >, %A
Modified: llvm/trunk/test/CodeGen/X86/vec_set-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_set-2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_set-2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_set-2.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movss | wc -l | grep 1
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movd | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movss | count 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movd | count 1
<4 x float> %test1(float %a) {
%tmp = insertelement <4 x float> zeroinitializer, float %a, uint 0
Modified: llvm/trunk/test/CodeGen/X86/vec_set-3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_set-3.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_set-3.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_set-3.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep shufps %t | wc -l | grep 1
-; RUN: grep pshufd %t | wc -l | grep 1
+; RUN: grep shufps %t | count 1
+; RUN: grep pshufd %t | count 1
<4 x float> %test(float %a) {
%tmp = insertelement <4 x float> zeroinitializer, float %a, uint 1
Modified: llvm/trunk/test/CodeGen/X86/vec_set-4.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_set-4.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_set-4.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_set-4.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep pinsrw | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep pinsrw | count 2
<2 x long> %test(short %a) {
entry:
Modified: llvm/trunk/test/CodeGen/X86/vec_set-5.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_set-5.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_set-5.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_set-5.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep movlhps %t | wc -l | grep 2
-; RUN: grep unpcklps %t | wc -l | grep 1
-; RUN: grep punpckldq %t | wc -l | grep 1
+; RUN: grep movlhps %t | count 2
+; RUN: grep unpcklps %t | count 1
+; RUN: grep punpckldq %t | count 1
<4 x float> %test1(float %a, float %b) {
%tmp = insertelement <4 x float> zeroinitializer, float %a, uint 0
Modified: llvm/trunk/test/CodeGen/X86/vec_set-6.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_set-6.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_set-6.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_set-6.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep unpcklps %t | wc -l | grep 1
-; RUN: grep shufps %t | wc -l | grep 1
+; RUN: grep unpcklps %t | count 1
+; RUN: grep shufps %t | count 1
<4 x float> %test(float %a, float %b, float %c) {
%tmp = insertelement <4 x float> zeroinitializer, float %a, uint 1
Modified: llvm/trunk/test/CodeGen/X86/vec_set-7.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_set-7.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_set-7.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_set-7.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movq | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep movq | count 1
<2 x long> %test(<2 x long>* %p) {
%tmp = cast <2 x long>* %p to double*
Modified: llvm/trunk/test/CodeGen/X86/vec_set.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_set.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_set.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_set.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep punpckl | wc -l | grep 7
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep punpckl | count 7
void %test(<8 x short>* %b, short %a0, short %a1, short %a2, short %a3, short %a4, short %a5, short %a6, short %a7) {
%tmp = insertelement <8 x short> zeroinitializer, short %a0, uint 0
Modified: llvm/trunk/test/CodeGen/X86/vec_shuffle-10.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_shuffle-10.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_shuffle-10.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_shuffle-10.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | \
-; RUN: grep unpcklps | wc -l | grep 1
+; RUN: grep unpcklps | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | \
-; RUN: grep unpckhps | wc -l | grep 1
+; RUN: grep unpckhps | count 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | \
; RUN: not grep {sub.*esp}
Modified: llvm/trunk/test/CodeGen/X86/vec_shuffle-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_shuffle-2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_shuffle-2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_shuffle-2.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep pshufhw %t | wc -l | grep 1
-; RUN: grep pshuflw %t | wc -l | grep 1
-; RUN: grep movhps %t | wc -l | grep 1
+; RUN: grep pshufhw %t | count 1
+; RUN: grep pshuflw %t | count 1
+; RUN: grep movhps %t | count 1
void %test1(<2 x long>* %res, <2 x long>* %A) {
%tmp = load <2 x long>* %A
Modified: llvm/trunk/test/CodeGen/X86/vec_shuffle-3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_shuffle-3.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_shuffle-3.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_shuffle-3.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep movlhps %t | wc -l | grep 1
-; RUN: grep movhlps %t | wc -l | grep 1
+; RUN: grep movlhps %t | count 1
+; RUN: grep movhlps %t | count 1
<4 x float> %test1(<4 x float>* %x, <4 x float>* %y) {
%tmp = load <4 x float>* %y
Modified: llvm/trunk/test/CodeGen/X86/vec_shuffle-4.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_shuffle-4.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_shuffle-4.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_shuffle-4.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 > %t
-; RUN: grep shuf %t | wc -l | grep 2
+; RUN: grep shuf %t | count 2
; RUN: not grep unpck %t
void %test(<4 x float>* %res, <4 x float>* %A, <4 x float>* %B, <4 x float>* %C) {
%tmp3 = load <4 x float>* %B
Modified: llvm/trunk/test/CodeGen/X86/vec_shuffle-5.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_shuffle-5.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_shuffle-5.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_shuffle-5.ll Wed Aug 15 08:36:28 2007
@@ -1,6 +1,6 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep movhlps %t | wc -l | grep 1
-; RUN: grep shufps %t | wc -l | grep 1
+; RUN: grep movhlps %t | count 1
+; RUN: grep shufps %t | count 1
void %test() {
%tmp1 = load <4 x float>* null
Modified: llvm/trunk/test/CodeGen/X86/vec_shuffle-6.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_shuffle-6.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_shuffle-6.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_shuffle-6.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep movapd %t | wc -l | grep 1
-; RUN: grep movaps %t | wc -l | grep 1
-; RUN: grep movups %t | wc -l | grep 2
+; RUN: grep movapd %t | count 1
+; RUN: grep movaps %t | count 1
+; RUN: grep movups %t | count 2
target triple = "i686-apple-darwin"
Modified: llvm/trunk/test/CodeGen/X86/vec_shuffle-7.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_shuffle-7.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_shuffle-7.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_shuffle-7.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep xorps %t | wc -l | grep 1
+; RUN: grep xorps %t | count 1
; RUN: not grep shufps %t
void %test() {
Modified: llvm/trunk/test/CodeGen/X86/vec_shuffle-9.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_shuffle-9.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_shuffle-9.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_shuffle-9.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep punpck %t | wc -l | grep 2
+; RUN: grep punpck %t | count 2
; RUN: not grep pextrw %t
<4 x int> %test(sbyte** %ptr) {
Modified: llvm/trunk/test/CodeGen/X86/vec_shuffle.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_shuffle.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_shuffle.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_shuffle.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 -o %t -f
-; RUN: grep shufp %t | wc -l | grep 1
-; RUN: grep movupd %t | wc -l | grep 1
-; RUN: grep pshufhw %t | wc -l | grep 1
+; RUN: grep shufp %t | count 1
+; RUN: grep movupd %t | count 1
+; RUN: grep pshufhw %t | count 1
void %test_v4sf(<4 x float>* %P, float %X, float %Y) {
%tmp = insertelement <4 x float> zeroinitializer, float %X, uint 0
Modified: llvm/trunk/test/CodeGen/X86/vec_splat-2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_splat-2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_splat-2.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_splat-2.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep pshufd | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep pshufd | count 1
void %test(<2 x long>* %P, sbyte %x) {
%tmp = insertelement <16 x sbyte> zeroinitializer, sbyte %x, uint 0 ; <<16 x sbyte>> [#uses=1]
Modified: llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_ss_load_fold.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse,+sse2 -o %t -f
-; RUN: grep minss %t | grep CPI | wc -l | grep 2
+; RUN: grep minss %t | grep CPI | count 2
; RUN: grep CPI %t | not grep movss
target endian = little
Modified: llvm/trunk/test/CodeGen/X86/vec_zero.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/vec_zero.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/vec_zero.ll (original)
+++ llvm/trunk/test/CodeGen/X86/vec_zero.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep xorps | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep xorps | count 2
void %foo(<4 x float> *%P) {
%T = load <4 x float> * %P
Modified: llvm/trunk/test/CodeGen/X86/x86-64-mem.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/X86/x86-64-mem.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/X86/x86-64-mem.ll (original)
+++ llvm/trunk/test/CodeGen/X86/x86-64-mem.ll Wed Aug 15 08:36:28 2007
@@ -1,13 +1,13 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -mtriple=x86_64-apple-darwin -o %t1 -f
-; RUN: grep GOTPCREL %t1 | wc -l | grep 4
-; RUN: grep rip %t1 | wc -l | grep 6
-; RUN: grep movq %t1 | wc -l | grep 6
-; RUN: grep leaq %t1 | wc -l | grep 1
+; RUN: grep GOTPCREL %t1 | count 4
+; RUN: grep rip %t1 | count 6
+; RUN: grep movq %t1 | count 6
+; RUN: grep leaq %t1 | count 1
; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: llc -mtriple=x86_64-pc-linux -relocation-model=static -o %t2 -f
-; RUN: grep rip %t2 | wc -l | grep 4
-; RUN: grep movl %t2 | wc -l | grep 2
-; RUN: grep movq %t2 | wc -l | grep 2
+; RUN: grep rip %t2 | count 4
+; RUN: grep movl %t2 | count 2
+; RUN: grep movq %t2 | count 2
%ptr = external global int*
%src = external global [0 x int]
Modified: llvm/trunk/test/Other/2004-08-16-LowerPacked.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/2004-08-16-LowerPacked.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Other/2004-08-16-LowerPacked.ll (original)
+++ llvm/trunk/test/Other/2004-08-16-LowerPacked.ll Wed Aug 15 08:36:28 2007
@@ -17,4 +17,4 @@
%c2 = select bool true, <2 x int> <int 1, int 1>, <2 x int> %t0
store <2 x int> <int 4, int 4>, <2 x int>* %foo
ret void
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/Other/2004-08-16-PackedGlobalConstant.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/2004-08-16-PackedGlobalConstant.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Other/2004-08-16-PackedGlobalConstant.ll (original)
+++ llvm/trunk/test/Other/2004-08-16-PackedGlobalConstant.ll Wed Aug 15 08:36:28 2007
@@ -10,4 +10,4 @@
%t0 = load <2 x int>* %foo;
store <2 x int> %t0, <2 x int>* %bar
ret void
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/Other/2004-08-16-PackedSelect.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/2004-08-16-PackedSelect.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Other/2004-08-16-PackedSelect.ll (original)
+++ llvm/trunk/test/Other/2004-08-16-PackedSelect.ll Wed Aug 15 08:36:28 2007
@@ -12,4 +12,4 @@
%t2 = select bool true, <4 x float> %t0, <4 x float> %t1
store <4 x float> %t2, <4 x float>* %bar
ret void
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/Other/2004-08-16-PackedSimple.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/2004-08-16-PackedSimple.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Other/2004-08-16-PackedSimple.ll (original)
+++ llvm/trunk/test/Other/2004-08-16-PackedSimple.ll Wed Aug 15 08:36:28 2007
@@ -12,4 +12,4 @@
%t3 = select bool false, <4 x float> %t0, <4 x float> %t2
store <4 x float> %t3, <4 x float>* %bar
ret void
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/TableGen/MultiClass.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/TableGen/MultiClass.td?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/TableGen/MultiClass.td (original)
+++ llvm/trunk/test/TableGen/MultiClass.td Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-// RUN: tblgen %s | grep {zing = 4} | wc -l | grep 2
+// RUN: tblgen %s | grep {zing = 4} | count 2
class C1<int A, string B> {
int bar = A;
Modified: llvm/trunk/test/Transforms/ConstProp/float-to-ptr-cast.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/ConstProp/float-to-ptr-cast.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/ConstProp/float-to-ptr-cast.ll (original)
+++ llvm/trunk/test/Transforms/ConstProp/float-to-ptr-cast.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -constprop | llvm-dis | \
-; RUN: grep -F {ret i32* null} | wc -l | grep 2
+; RUN: grep -F {ret i32* null} | count 2
int* %test1() {
%X = cast float 0.0 to int*
Modified: llvm/trunk/test/Transforms/GVN/basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/basic.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/basic.ll (original)
+++ llvm/trunk/test/Transforms/GVN/basic.ll Wed Aug 15 08:36:28 2007
@@ -7,4 +7,4 @@
block2:
%z2 = bitcast i32 0 to i32
ret i32 %z2
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/Transforms/GVN/dominated.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/dominated.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/dominated.ll (original)
+++ llvm/trunk/test/Transforms/GVN/dominated.ll Wed Aug 15 08:36:28 2007
@@ -17,4 +17,4 @@
%DEAD = load i32** %p
%c = load i32* %DEAD
ret i32 %c
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/Transforms/GVN/mixed.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/mixed.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/mixed.ll (original)
+++ llvm/trunk/test/Transforms/GVN/mixed.ll Wed Aug 15 08:36:28 2007
@@ -10,4 +10,4 @@
%DEADGEP = getelementptr i32* %DEADLOAD, i32 0
%DEADLOAD2 = load i32* %DEADGEP
ret i32 %DEADLOAD2
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/Transforms/GVN/nonlocal.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/nonlocal.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/nonlocal.ll (original)
+++ llvm/trunk/test/Transforms/GVN/nonlocal.ll Wed Aug 15 08:36:28 2007
@@ -16,4 +16,4 @@
%DEAD = load i32** %p
%c = load i32* %DEAD
ret i32 %c
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/Transforms/GVN/semidominated.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GVN/semidominated.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GVN/semidominated.ll (original)
+++ llvm/trunk/test/Transforms/GVN/semidominated.ll Wed Aug 15 08:36:28 2007
@@ -16,4 +16,4 @@
block4:
%DEAD = load i32* %p
ret i32 %DEAD
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/Transforms/IndVarsSimplify/complex-scev.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/IndVarsSimplify/complex-scev.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/IndVarsSimplify/complex-scev.ll (original)
+++ llvm/trunk/test/Transforms/IndVarsSimplify/complex-scev.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; The i induction variable looks like a wrap-around, but it really is just
; a simple affine IV. Make sure that indvars eliminates it.
-; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep phi | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep phi | count 1
void %foo() {
entry:
Modified: llvm/trunk/test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
-; RUN: grep mul | wc -l | grep 2
+; RUN: grep mul | count 2
<4 x float> %test(<4 x float> %V) {
Modified: llvm/trunk/test/Transforms/InstCombine/2006-12-15-Range-Test.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/2006-12-15-Range-Test.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/2006-12-15-Range-Test.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/2006-12-15-Range-Test.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
-; RUN: grep icmp | wc -l | grep 1
+; RUN: grep icmp | count 1
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
-; RUN: grep {icmp ugt} | wc -l | grep 1
+; RUN: grep {icmp ugt} | count 1
; END.
; ModuleID = 'bugpoint-tooptimize.bc'
Modified: llvm/trunk/test/Transforms/InstCombine/and-compare.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/and-compare.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/and-compare.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/and-compare.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
-; RUN: grep and | wc -l | grep 1
+; RUN: grep and | count 1
; Should be optimized to one and.
bool %test1(uint %a, uint %b) {
Modified: llvm/trunk/test/Transforms/InstCombine/and-or-not.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/and-or-not.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/and-or-not.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/and-or-not.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep xor | wc -l | grep 4
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep xor | count 4
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep and
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep { or}
Modified: llvm/trunk/test/Transforms/InstCombine/and-xor-merge.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/and-xor-merge.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/and-xor-merge.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/and-xor-merge.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and | wc -l | grep 1
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep xor | wc -l | grep 2
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and | count 1
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep xor | count 2
; (x&z) ^ (y&z) -> (x^y)&z
define i32 @test1(i32 %x, i32 %y, i32 %z) {
Modified: llvm/trunk/test/Transforms/InstCombine/apint-and-compare.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/apint-and-compare.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/apint-and-compare.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/apint-and-compare.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and | wc -l | grep 2
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and | count 2
; Should be optimized to one and.
define i1 @test1(i33 %a, i33 %b) {
Modified: llvm/trunk/test/Transforms/InstCombine/apint-and-xor-merge.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/apint-and-xor-merge.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/apint-and-xor-merge.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/apint-and-xor-merge.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; This test case checks that the merge of and/xor can work on arbitrary
; precision integers.
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and | wc -l | grep 1
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep xor | wc -l | grep 2
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep and | count 1
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep xor | count 2
; (x &z ) ^ (y & z) -> (x ^ y) & z
define i57 @test1(i57 %x, i57 %y, i57 %z) {
Modified: llvm/trunk/test/Transforms/InstCombine/apint-shift-simplify.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/apint-shift-simplify.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/apint-shift-simplify.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/apint-shift-simplify.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
-; RUN: egrep {shl|lshr|ashr} | wc -l | grep 3
+; RUN: egrep {shl|lshr|ashr} | count 3
define i41 @test0(i41 %A, i41 %B, i41 %C) {
%X = shl i41 %A, %C
Modified: llvm/trunk/test/Transforms/InstCombine/bswap-fold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/bswap-fold.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/bswap-fold.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/bswap-fold.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
-; RUN: grep ret | wc -l | grep 3
+; RUN: grep ret | count 3
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
; RUN: not grep call.*bswap
Modified: llvm/trunk/test/Transforms/InstCombine/bswap.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/bswap.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/bswap.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/bswap.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
-; RUN: grep {call.*llvm.bswap} | wc -l | grep 5
+; RUN: grep {call.*llvm.bswap} | count 5
; END.
uint %test1(uint %i) {
Modified: llvm/trunk/test/Transforms/InstCombine/loadstore-alignment.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/loadstore-alignment.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/loadstore-alignment.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/loadstore-alignment.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {, align 16} | wc -l | grep 12
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {, align 16} | count 12
@x = external global <2 x i64>, align 16
@xx = external global [13 x <2 x i64>], align 16
Modified: llvm/trunk/test/Transforms/InstCombine/shift-simplify.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/shift-simplify.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/shift-simplify.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/shift-simplify.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
-; RUN: egrep {shl|lshr|ashr} | wc -l | grep 3
+; RUN: egrep {shl|lshr|ashr} | count 3
define i32 @test0(i32 %A, i32 %B, i32 %C) {
%X = shl i32 %A, %C
Modified: llvm/trunk/test/Transforms/InstCombine/shift-sra.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/shift-sra.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/shift-sra.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/shift-sra.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
-; RUN: grep {lshr i32} | wc -l | grep 2
+; RUN: grep {lshr i32} | count 2
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | not grep ashr
int %test1(int %X, ubyte %A) {
Modified: llvm/trunk/test/Transforms/InstCombine/store-merge.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/store-merge.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/store-merge.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/store-merge.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | \
-; RUN: grep {ret i32 %.toremerge} | wc -l | grep 2
+; RUN: grep {ret i32 %.toremerge} | count 2
;; Simple sinking tests
; "if then else"
Modified: llvm/trunk/test/Transforms/InstCombine/udiv_select_to_select_shift.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/udiv_select_to_select_shift.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/udiv_select_to_select_shift.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/udiv_select_to_select_shift.ll Wed Aug 15 08:36:28 2007
@@ -2,9 +2,9 @@
; udiv X, (Select Cond, C1, C2) --> Select Cond, (shr X, C1), (shr X, C2)
;
; RUN: llvm-as < %s | opt -instcombine | llvm-dis -f -o %t
-; RUN: grep select %t | wc -l | grep 1
-; RUN: grep lshr %t | wc -l | grep 2
-; RUN: ignore grep udiv %t | wc -l | grep 0
+; RUN: grep select %t | count 1
+; RUN: grep lshr %t | count 2
+; RUN: ignore grep udiv %t | count 0
define i64 @test(i64 %X, i1 %Cond ) {
entry:
Modified: llvm/trunk/test/Transforms/InstCombine/vec_insert_to_shuffle.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/vec_insert_to_shuffle.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/vec_insert_to_shuffle.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/vec_insert_to_shuffle.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
-; RUN: grep shufflevec | wc -l | grep 1
+; RUN: grep shufflevec | count 1
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
; RUN: not grep insertelement
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine | llvm-dis | \
Modified: llvm/trunk/test/Transforms/InstCombine/zext-fold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/zext-fold.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/zext-fold.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/zext-fold.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {zext } | wc -l | grep 1
+; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep {zext } | count 1
; PR1570
; XFAIL: *
Modified: llvm/trunk/test/Transforms/LoopSimplify/phi-node-simplify.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopSimplify/phi-node-simplify.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopSimplify/phi-node-simplify.ll (original)
+++ llvm/trunk/test/Transforms/LoopSimplify/phi-node-simplify.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; Loop Simplify should turn phi nodes like X = phi [X, Y] into just Y, eliminating them.
-; RUN: llvm-upgrade < %s | llvm-as | opt -loopsimplify | llvm-dis | grep phi | wc -l | grep 6
+; RUN: llvm-upgrade < %s | llvm-as | opt -loopsimplify | llvm-dis | grep phi | count 6
%A = weak global [3000000 x int] zeroinitializer ; <[3000000 x int]*> [#uses=1]
%B = weak global [20000 x int] zeroinitializer ; <[20000 x int]*> [#uses=1]
Modified: llvm/trunk/test/Transforms/LoopStrengthReduce/dont_insert_redundant_ops.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopStrengthReduce/dont_insert_redundant_ops.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopStrengthReduce/dont_insert_redundant_ops.ll (original)
+++ llvm/trunk/test/Transforms/LoopStrengthReduce/dont_insert_redundant_ops.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; Check that this test makes INDVAR and related stuff dead.
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep phi | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep phi | count 2
declare bool %pred()
Modified: llvm/trunk/test/Transforms/LoopStrengthReduce/related_indvars.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopStrengthReduce/related_indvars.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopStrengthReduce/related_indvars.ll (original)
+++ llvm/trunk/test/Transforms/LoopStrengthReduce/related_indvars.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep phi | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep phi | count 1
; This should only result in one PHI node!
Modified: llvm/trunk/test/Transforms/LoopStrengthReduce/share_code_in_preheader.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopStrengthReduce/share_code_in_preheader.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopStrengthReduce/share_code_in_preheader.ll (original)
+++ llvm/trunk/test/Transforms/LoopStrengthReduce/share_code_in_preheader.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep mul | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep mul | count 1
; LSR should not make two copies of the Q*L expression in the preheader!
sbyte %test(sbyte* %A, sbyte* %B, int %L, int %Q, int %N.s) {
Modified: llvm/trunk/test/Transforms/LoopStrengthReduce/share_ivs.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopStrengthReduce/share_ivs.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopStrengthReduce/share_ivs.ll (original)
+++ llvm/trunk/test/Transforms/LoopStrengthReduce/share_ivs.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep phi | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep phi | count 1
; This testcase should have ONE stride 18 indvar, the other use should have a
; loop invariant value (B) added to it inside of the loop, instead of having
Modified: llvm/trunk/test/Transforms/LoopUnswitch/2007-07-18-DomInfo.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopUnswitch/2007-07-18-DomInfo.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LoopUnswitch/2007-07-18-DomInfo.ll (original)
+++ llvm/trunk/test/Transforms/LoopUnswitch/2007-07-18-DomInfo.ll Wed Aug 15 08:36:28 2007
@@ -63,4 +63,4 @@
normal_char: ; preds = %bb147
ret i32 0
-}
\ No newline at end of file
+}
Modified: llvm/trunk/test/Transforms/LowerSwitch/feature.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LowerSwitch/feature.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/LowerSwitch/feature.ll (original)
+++ llvm/trunk/test/Transforms/LowerSwitch/feature.ll Wed Aug 15 08:36:28 2007
@@ -1,7 +1,7 @@
; RUN: llvm-as %s -o - | opt -lowerswitch | llvm-dis > %t
-; RUN: grep slt %t | wc -l | grep 10
-; RUN: grep ule %t | wc -l | grep 3
-; RUN: grep eq %t | wc -l | grep 9
+; RUN: grep slt %t | count 10
+; RUN: grep ule %t | count 3
+; RUN: grep eq %t | count 9
define i32 @main(i32 %tmp158) {
entry:
Modified: llvm/trunk/test/Transforms/Reassociate/basictest3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Reassociate/basictest3.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Reassociate/basictest3.ll (original)
+++ llvm/trunk/test/Transforms/Reassociate/basictest3.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -gcse | llvm-dis | grep add | wc -l | grep 6
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -gcse | llvm-dis | grep add | count 6
; Each of these functions should turn into two adds each.
%e = external global int
Modified: llvm/trunk/test/Transforms/Reassociate/mul-factor3.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Reassociate/mul-factor3.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Reassociate/mul-factor3.ll (original)
+++ llvm/trunk/test/Transforms/Reassociate/mul-factor3.ll Wed Aug 15 08:36:28 2007
@@ -2,8 +2,8 @@
; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: opt -reassociate -instcombine | llvm-dis > %t
-; RUN: grep mul %t | wc -l | grep 2
-; RUN: grep add %t | wc -l | grep 1
+; RUN: grep mul %t | count 2
+; RUN: grep add %t | count 1
int %test(int %A, int %B, int %C) {
%aa = mul int %A, %A
Modified: llvm/trunk/test/Transforms/Reassociate/mulfactor.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Reassociate/mulfactor.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Reassociate/mulfactor.ll (original)
+++ llvm/trunk/test/Transforms/Reassociate/mulfactor.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep mul | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | opt -reassociate -instcombine | llvm-dis | grep mul | count 2
; This should have exactly 2 multiplies when we're done.
Modified: llvm/trunk/test/Transforms/Reassociate/mulfactor2.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Reassociate/mulfactor2.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Reassociate/mulfactor2.ll (original)
+++ llvm/trunk/test/Transforms/Reassociate/mulfactor2.ll Wed Aug 15 08:36:28 2007
@@ -2,8 +2,8 @@
; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: opt -instcombine -reassociate -instcombine | llvm-dis -o %t
-; RUN: grep mul %t | wc -l | grep 1
-; RUN: grep add %t | wc -l | grep 1
+; RUN: grep mul %t | count 1
+; RUN: grep add %t | count 1
int %main(int %t) {
%tmp.3 = mul int %t, 12 ; <int> [#uses=1]
Modified: llvm/trunk/test/Transforms/Reassociate/shift-factor.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Reassociate/shift-factor.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Reassociate/shift-factor.ll (original)
+++ llvm/trunk/test/Transforms/Reassociate/shift-factor.ll Wed Aug 15 08:36:28 2007
@@ -1,8 +1,8 @@
; There should be exactly one shift and one add left.
; RUN: llvm-upgrade < %s | llvm-as | \
; RUN: opt -reassociate -instcombine | llvm-dis > %t
-; RUN: grep shl %t | wc -l | grep 1
-; RUN: grep add %t | wc -l | grep 1
+; RUN: grep shl %t | count 1
+; RUN: grep add %t | count 1
int %test(int %X, int %Y) {
%tmp.2 = shl int %X, ubyte 1 ; <int> [#uses=1]
Modified: llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/branch-fold.ll Wed Aug 15 08:36:28 2007
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | grep {br i1} | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | grep {br i1} | count 1
void %test(int* %P, int* %Q, bool %A, bool %B) {
br bool %A, label %a, label %b ;; fold the two branches into one
Modified: llvm/trunk/test/Transforms/SimplifyCFG/switch_switch_fold.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/switch_switch_fold.ll?rev=41097&r1=41096&r2=41097&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/switch_switch_fold.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/switch_switch_fold.ll Wed Aug 15 08:36:28 2007
@@ -1,5 +1,5 @@
; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | \
-; RUN: grep switch | wc -l | grep 1
+; RUN: grep switch | count 1
; Test that a switch going to a switch on the same value can be merged. All
; three switches in this example can be merged into one big one.
More information about the llvm-commits
mailing list