Convert tests using "grep -c ... | grep ..." to use the count script.
authorDan Gohman <gohman@apple.com>
Wed, 15 Aug 2007 13:49:33 +0000 (13:49 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 15 Aug 2007 13:49:33 +0000 (13:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41100 91177308-0d34-0410-b5e6-96231b3b80d8

test/CFrontend/2007-06-15-AnnotateAttribute.c
test/CFrontend/2007-08-01-LoadStoreAlign.c
test/CodeGen/ARM/aliases.ll
test/CodeGen/ARM/unaligned_load_store.ll
test/CodeGen/Generic/2007-04-27-BitTestsBadMask.ll
test/CodeGen/X86/aliases.ll
test/Transforms/PredicateSimplifier/2006-10-22-IntOr.ll
test/Transforms/PredicateSimplifier/2006-10-25-AddSetCC.ll
test/Transforms/PredicateSimplifier/predsimplify.ll
test/Transforms/SimplifyLibCalls/ExitInMain.ll

index 6fe09c2e33e17e34b95dd9eddb3799d3886e79ea..56bdc6ae585381953fe307d5661eb17022e36ecc 100644 (file)
@@ -1,5 +1,5 @@
 // RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.global.annotations
-// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep -c llvm.var.annotation | grep 3 
+// RUN: %llvmgxx -c -emit-llvm %s -o - | llvm-dis | grep llvm.var.annotation | count 3 
 
 #include <stdio.h>
 
index 3d5b1fbe350340d53271d89abd18352f94c3e43c..ef890bf7cfc992570c5e19d83a3f2a7351563b9b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep -c {align 1} | grep 2
+// RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | grep {align 1} | count 2
 // RUN: %llvmgcc -O3 -S -o - -emit-llvm %s | llvm-as | llc
 
 struct p {
index bd7555a5310b1c569667b985194d32865220c47c..70b2c4d4195bf8dada82b09d8117b4aeef668c5a 100644 (file)
@@ -1,8 +1,8 @@
 ; RUN: llvm-as < %s | \
 ; RUN:   llc -mtriple=arm-linux-gnueabi -o %t -f
-; RUN: grep -c set %t   | grep 5
-; RUN: grep -c globl %t | grep 4
-; RUN: grep -c weak %t  | grep 1
+; RUN: grep set %t   | count 5
+; RUN: grep globl %t | count 4
+; RUN: grep weak %t  | count 1
 
 @bar = external global i32
 @foo1 = alias i32* @bar
index 211d748be34d729c7cd85f2a34cbac771b4ab2b8..dad1897463a68705d42535bef1f1ceda87a7d9fe 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llvm-as < %s | \
 ; RUN:   llc -march=arm -o %t -f
-; RUN: grep -c ldrb %t | grep 4
-; RUN: grep -c strb %t | grep 4
+; RUN: grep ldrb %t | count 4
+; RUN: grep strb %t | count 4
 
 
        %struct.p = type <{ i8, i32 }>
index f89159987c799de64610511ccb4a63498311582b..16d7a1654d9369c0c67463ff2c61b24a3918c388 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep -c je | grep 3
+; RUN: llvm-as < %s | llc -march=x86 | grep je | count 3
 ; RUN: llvm-as < %s | llc -march=x86-64 | grep 4297064449
 ; PR 1325+
 
index 9bd6140848e1a1e43912c392b1d700e5fee95894..4a69eaeda80fe363276f572e738b6b5555b4afe5 100644 (file)
@@ -1,8 +1,8 @@
 ; RUN: llvm-as < %s | \
 ; RUN:   llc -mtriple=i686-pc-linux-gnu -o %t -f
-; RUN: grep -c set %t   | grep 5
-; RUN: grep -c globl %t | grep 4
-; RUN: grep -c weak %t  | grep 1
+; RUN: grep set %t   | count 5
+; RUN: grep globl %t | count 4
+; RUN: grep weak %t  | count 1
 
 @bar = external global i32
 @foo1 = alias i32* @bar
index 07bf0981b4c08e8abaf295cdd63fb664cab467c8..366d3d61db8070b06cb0417770072c1a725e9c55 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llvm-upgrade < %s | llvm-as | \
 ; RUN:   opt -predsimplify -instcombine -simplifycfg  | llvm-dis > %t
 ; RUN: grep -v declare %t | not grep fail
-; RUN: grep -v declare %t | grep -c pass | grep 3
+; RUN: grep -v declare %t | grep pass | count 3
 
 int %test1(int %x, int %y) {
 entry:
index a9040123e309f6a411fddccab8637af4d6290667..0d9d2d483648d0482d53aeeade558c1719be5670 100644 (file)
@@ -1,6 +1,6 @@
 ; RUN: llvm-upgrade < %s | llvm-as | \
 ; RUN:   opt -predsimplify -instcombine -simplifycfg | llvm-dis | \
-; RUN:   grep -v declare | grep -c pass | grep 2
+; RUN:   grep -v declare | grep pass | count 2
 
 int %test(int %x, int %y) {
 entry:
index b88122f57c0cab95d55c3a6814f5ee66e8560eb2..76546dc4c64b87b00105617b9891d2acf929048a 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llvm-upgrade < %s | llvm-as | \
 ; RUN:   opt -predsimplify -instcombine -simplifycfg | llvm-dis > %t
 ; RUN: grep -v declare %t | not grep fail 
-; RUN: grep -v declare %t | grep -c pass | grep 4
+; RUN: grep -v declare %t | grep pass | count 4
 
 void %test1(int %x) {
 entry:
index 13f1a1166e68e3c20e32aa16a6bbc7285ce6045b..3fded2cc070e62dab1c9c9d0650e9bcf8ee6c569 100644 (file)
@@ -1,6 +1,6 @@
 ; Test that the ExitInMainOptimization pass works correctly
 ; RUN: llvm-upgrade < %s | llvm-as | opt -simplify-libcalls | llvm-dis | \
-; RUN:    grep -c {ret i32 3} | grep 1
+; RUN:    grep {ret i32 3} | count 1
 ; END.
 
 declare void %exit(int)