diff options
author | Dan Gohman <gohman@apple.com> | 2007-08-15 13:49:33 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-08-15 13:49:33 +0000 |
commit | 43c3db37f633cbed14d5ead201cfab7e67104605 (patch) | |
tree | 1b89122ec72a464a3aaa95631ccc2e3dacff9537 /test/Transforms | |
parent | e5ab8c67653e54bd7eca65554fd393be075dc4b8 (diff) |
Convert tests using "grep -c ... | grep ..." to use the count script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
4 files changed, 4 insertions, 4 deletions
diff --git a/test/Transforms/PredicateSimplifier/2006-10-22-IntOr.ll b/test/Transforms/PredicateSimplifier/2006-10-22-IntOr.ll index 07bf0981b4..366d3d61db 100644 --- a/test/Transforms/PredicateSimplifier/2006-10-22-IntOr.ll +++ b/test/Transforms/PredicateSimplifier/2006-10-22-IntOr.ll @@ -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: diff --git a/test/Transforms/PredicateSimplifier/2006-10-25-AddSetCC.ll b/test/Transforms/PredicateSimplifier/2006-10-25-AddSetCC.ll index a9040123e3..0d9d2d4836 100644 --- a/test/Transforms/PredicateSimplifier/2006-10-25-AddSetCC.ll +++ b/test/Transforms/PredicateSimplifier/2006-10-25-AddSetCC.ll @@ -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: diff --git a/test/Transforms/PredicateSimplifier/predsimplify.ll b/test/Transforms/PredicateSimplifier/predsimplify.ll index b88122f57c..76546dc4c6 100644 --- a/test/Transforms/PredicateSimplifier/predsimplify.ll +++ b/test/Transforms/PredicateSimplifier/predsimplify.ll @@ -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: diff --git a/test/Transforms/SimplifyLibCalls/ExitInMain.ll b/test/Transforms/SimplifyLibCalls/ExitInMain.ll index 13f1a1166e..3fded2cc07 100644 --- a/test/Transforms/SimplifyLibCalls/ExitInMain.ll +++ b/test/Transforms/SimplifyLibCalls/ExitInMain.ll @@ -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) |