aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/Reassociate
diff options
context:
space:
mode:
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]