diff options
| author | Dan Gohman <gohman@apple.com> | 2007-08-15 13:36:28 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-08-15 13:36:28 +0000 |
| commit | 28beeeac4db2d582d4947db96d62e423e4b68d88 (patch) | |
| tree | 3a500b846e77d285021ec12e3ef0bbe69c498b82 /test/Transforms/Reassociate | |
| parent | 7375bb9c8c82115dd401d67f0baaf30d6c481bd0 (diff) | |
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.ll | 2 | ||||
| -rw-r--r-- | test/Transforms/Reassociate/mul-factor3.ll | 4 | ||||
| -rw-r--r-- | test/Transforms/Reassociate/mulfactor.ll | 2 | ||||
| -rw-r--r-- | test/Transforms/Reassociate/mulfactor2.ll | 4 | ||||
| -rw-r--r-- | test/Transforms/Reassociate/shift-factor.ll | 4 |
5 files changed, 8 insertions, 8 deletions
diff --git a/test/Transforms/Reassociate/basictest3.ll b/test/Transforms/Reassociate/basictest3.ll index a3da5a0400..4aa134ae7f 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 1272ff62dd..c6aeedefcf 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 bb7efc3f7a..91667a4c54 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 dd1e8ae8a3..61c9f0444a 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 ed8ed392c5..b381d45f79 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] |
