aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-08-15 13:36:28 +0000
committerDan Gohman <djg@cray.com>2007-08-15 13:36:28 +0000
commit8c89a50187561ea4fc6c62f3ea74bb6b8e63802a (patch)
tree3a500b846e77d285021ec12e3ef0bbe69c498b82 /test/CodeGen/Generic
parent2190f1727277e34ab4c30195bc4e4b8087315999 (diff)
downloadexternal_llvm-8c89a50187561ea4fc6c62f3ea74bb6b8e63802a.zip
external_llvm-8c89a50187561ea4fc6c62f3ea74bb6b8e63802a.tar.gz
external_llvm-8c89a50187561ea4fc6c62f3ea74bb6b8e63802a.tar.bz2
Convert tests using "| wc -l | grep ..." to use the count script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic')
-rw-r--r--test/CodeGen/Generic/SwitchLowering.ll2
-rw-r--r--test/CodeGen/Generic/phi-immediate-factoring.ll2
-rw-r--r--test/CodeGen/Generic/switch-crit-edge-constant.ll2
-rw-r--r--test/CodeGen/Generic/switch-lower-feature-2.ll18
-rw-r--r--test/CodeGen/Generic/switch-lower-feature.ll10
5 files changed, 17 insertions, 17 deletions
diff --git a/test/CodeGen/Generic/SwitchLowering.ll b/test/CodeGen/Generic/SwitchLowering.ll
index 37bfffa..a8c14f1 100644
--- a/test/CodeGen/Generic/SwitchLowering.ll
+++ b/test/CodeGen/Generic/SwitchLowering.ll
@@ -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) {
diff --git a/test/CodeGen/Generic/phi-immediate-factoring.ll b/test/CodeGen/Generic/phi-immediate-factoring.ll
index 70fa9e7..e0f6759 100644
--- a/test/CodeGen/Generic/phi-immediate-factoring.ll
+++ b/test/CodeGen/Generic/phi-immediate-factoring.ll
@@ -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"
diff --git a/test/CodeGen/Generic/switch-crit-edge-constant.ll b/test/CodeGen/Generic/switch-crit-edge-constant.ll
index ef986e0..c9d027b 100644
--- a/test/CodeGen/Generic/switch-crit-edge-constant.ll
+++ b/test/CodeGen/Generic/switch-crit-edge-constant.ll
@@ -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
diff --git a/test/CodeGen/Generic/switch-lower-feature-2.ll b/test/CodeGen/Generic/switch-lower-feature-2.ll
index 6552cb1..5e532a8 100644
--- a/test/CodeGen/Generic/switch-lower-feature-2.ll
+++ b/test/CodeGen/Generic/switch-lower-feature-2.ll
@@ -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"
diff --git a/test/CodeGen/Generic/switch-lower-feature.ll b/test/CodeGen/Generic/switch-lower-feature.ll
index 71dbc26..989693c 100644
--- a/test/CodeGen/Generic/switch-lower-feature.ll
+++ b/test/CodeGen/Generic/switch-lower-feature.ll
@@ -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: