aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Reassociate
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-08-15 13:36:28 +0000
committerDan Gohman <gohman@apple.com>2007-08-15 13:36:28 +0000
commit28beeeac4db2d582d4947db96d62e423e4b68d88 (patch)
tree3a500b846e77d285021ec12e3ef0bbe69c498b82 /test/Transforms/Reassociate
parent7375bb9c8c82115dd401d67f0baaf30d6c481bd0 (diff)
downloadexternal_llvm-28beeeac4db2d582d4947db96d62e423e4b68d88.zip
external_llvm-28beeeac4db2d582d4947db96d62e423e4b68d88.tar.gz
external_llvm-28beeeac4db2d582d4947db96d62e423e4b68d88.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/Transforms/Reassociate')
-rw-r--r--test/Transforms/Reassociate/basictest3.ll2
-rw-r--r--test/Transforms/Reassociate/mul-factor3.ll4
-rw-r--r--test/Transforms/Reassociate/mulfactor.ll2
-rw-r--r--test/Transforms/Reassociate/mulfactor2.ll4
-rw-r--r--test/Transforms/Reassociate/shift-factor.ll4
5 files changed, 8 insertions, 8 deletions
diff --git a/test/Transforms/Reassociate/basictest3.ll b/test/Transforms/Reassociate/basictest3.ll
index a3da5a0..4aa134a 100644
--- a/test/Transforms/Reassociate/basictest3.ll
+++ b/test/Transforms/Reassociate/basictest3.ll
@@ -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
diff --git a/test/Transforms/Reassociate/mul-factor3.ll b/test/Transforms/Reassociate/mul-factor3.ll
index 1272ff6..c6aeede 100644
--- a/test/Transforms/Reassociate/mul-factor3.ll
+++ b/test/Transforms/Reassociate/mul-factor3.ll
@@ -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
diff --git a/test/Transforms/Reassociate/mulfactor.ll b/test/Transforms/Reassociate/mulfactor.ll
index bb7efc3..91667a4 100644
--- a/test/Transforms/Reassociate/mulfactor.ll
+++ b/test/Transforms/Reassociate/mulfactor.ll
@@ -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.
diff --git a/test/Transforms/Reassociate/mulfactor2.ll b/test/Transforms/Reassociate/mulfactor2.ll
index dd1e8ae..61c9f04 100644
--- a/test/Transforms/Reassociate/mulfactor2.ll
+++ b/test/Transforms/Reassociate/mulfactor2.ll
@@ -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]
diff --git a/test/Transforms/Reassociate/shift-factor.ll b/test/Transforms/Reassociate/shift-factor.ll
index ed8ed39..b381d45 100644
--- a/test/Transforms/Reassociate/shift-factor.ll
+++ b/test/Transforms/Reassociate/shift-factor.ll
@@ -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]