diff options
| author | Dan Gohman <gohman@apple.com> | 2009-09-08 16:50:01 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-09-08 16:50:01 +0000 |
| commit | 9737a63ed8786e58e5aa261df1587673c9eba32d (patch) | |
| tree | 07b2098a85687c5bdc340fc6e4f67514d5c38336 /llvm/test/Transforms/ADCE | |
| parent | be4253a0caf6f011b2af12803db9cf980f48084e (diff) | |
| download | bcm5719-llvm-9737a63ed8786e58e5aa261df1587673c9eba32d.tar.gz bcm5719-llvm-9737a63ed8786e58e5aa261df1587673c9eba32d.zip | |
Change these tests to feed the assembly files to opt directly, instead
of using llvm-as, now that opt supports this.
llvm-svn: 81226
Diffstat (limited to 'llvm/test/Transforms/ADCE')
22 files changed, 22 insertions, 22 deletions
diff --git a/llvm/test/Transforms/ADCE/2002-05-22-PHITest.ll b/llvm/test/Transforms/ADCE/2002-05-22-PHITest.ll index 04f0051af8d..5a7b0bb8a51 100644 --- a/llvm/test/Transforms/ADCE/2002-05-22-PHITest.ll +++ b/llvm/test/Transforms/ADCE/2002-05-22-PHITest.ll @@ -1,6 +1,6 @@ ; It is illegal to remove BB1 because it will mess up the PHI node! ; -; RUN: llvm-as < %s | opt -adce | llvm-dis | grep BB1 +; RUN: opt %s -adce | llvm-dis | grep BB1 define i32 @test(i1 %C, i32 %A, i32 %B) { ; <label>:0 diff --git a/llvm/test/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll b/llvm/test/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll index 911f8e678b3..590bdeff818 100644 --- a/llvm/test/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll +++ b/llvm/test/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll @@ -4,7 +4,7 @@ ; removed even though there were uses still around. Now the uses are filled ; in with a dummy value before the PHI is deleted. ; -; RUN: llvm-as < %s | opt -adce +; RUN: opt %s -adce %node_t = type { double*, %node_t*, %node_t**, double**, double*, i32, i32 } diff --git a/llvm/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll b/llvm/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll index 5d25ff13525..17e9eeb0701 100644 --- a/llvm/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll +++ b/llvm/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll @@ -1,6 +1,6 @@ ; This testcase is a distilled form of: 2002-05-28-Crash.ll -; RUN: llvm-as < %s | opt -adce +; RUN: opt %s -adce define float @test(i32 %i) { %F = sitofp i32 %i to float ; <float> [#uses=1] diff --git a/llvm/test/Transforms/ADCE/2002-05-28-Crash.ll b/llvm/test/Transforms/ADCE/2002-05-28-Crash.ll index 27c7205203c..346ad74a0fe 100644 --- a/llvm/test/Transforms/ADCE/2002-05-28-Crash.ll +++ b/llvm/test/Transforms/ADCE/2002-05-28-Crash.ll @@ -11,7 +11,7 @@ ; return !s; ;} ; -; RUN: llvm-as < %s | opt -adce +; RUN: opt %s -adce define i32 @rx_bitset_empty(i32 %size, i32* %set) { bb1: diff --git a/llvm/test/Transforms/ADCE/2002-07-17-AssertionFailure.ll b/llvm/test/Transforms/ADCE/2002-07-17-AssertionFailure.ll index fb4fe4a8d27..ee406b67e3b 100644 --- a/llvm/test/Transforms/ADCE/2002-07-17-AssertionFailure.ll +++ b/llvm/test/Transforms/ADCE/2002-07-17-AssertionFailure.ll @@ -3,7 +3,7 @@ ; block in this function, it would work fine, but that would be the part we ; have to fix now, wouldn't it.... ; -; RUN: llvm-as < %s | opt -adce +; RUN: opt %s -adce define void @foo(i8* %reg5481) { %cast611 = bitcast i8* %reg5481 to i8** ; <i8**> [#uses=1] diff --git a/llvm/test/Transforms/ADCE/2002-07-17-PHIAssertion.ll b/llvm/test/Transforms/ADCE/2002-07-17-PHIAssertion.ll index 42a7e4dcde4..64219a2062b 100644 --- a/llvm/test/Transforms/ADCE/2002-07-17-PHIAssertion.ll +++ b/llvm/test/Transforms/ADCE/2002-07-17-PHIAssertion.ll @@ -1,6 +1,6 @@ ; This testcase was extracted from the gzip SPEC benchmark ; -; RUN: llvm-as < %s | opt -adce +; RUN: opt %s -adce @bk = external global i32 ; <i32*> [#uses=2] @hufts = external global i32 ; <i32*> [#uses=1] diff --git a/llvm/test/Transforms/ADCE/2003-01-22-PredecessorProblem.ll b/llvm/test/Transforms/ADCE/2003-01-22-PredecessorProblem.ll index 4ec90056070..9a3bc2a35cb 100644 --- a/llvm/test/Transforms/ADCE/2003-01-22-PredecessorProblem.ll +++ b/llvm/test/Transforms/ADCE/2003-01-22-PredecessorProblem.ll @@ -1,5 +1,5 @@ ; Testcase reduced from 197.parser by bugpoint -; RUN: llvm-as < %s | opt -adce +; RUN: opt %s -adce define void @conjunction_prune() { ; <label>:0 diff --git a/llvm/test/Transforms/ADCE/2003-04-25-PHIPostDominateProblem.ll b/llvm/test/Transforms/ADCE/2003-04-25-PHIPostDominateProblem.ll index 603b14b537d..8474e26a476 100644 --- a/llvm/test/Transforms/ADCE/2003-04-25-PHIPostDominateProblem.ll +++ b/llvm/test/Transforms/ADCE/2003-04-25-PHIPostDominateProblem.ll @@ -2,7 +2,7 @@ ; entries for it's postdominator. But I think this can only happen when the ; PHI node is dead, so we just avoid patching up dead PHI nodes. -; RUN: llvm-as < %s | opt -adce +; RUN: opt %s -adce target datalayout = "e-p:32:32" diff --git a/llvm/test/Transforms/ADCE/2003-06-11-InvalidCFG.ll b/llvm/test/Transforms/ADCE/2003-06-11-InvalidCFG.ll index a9657a7a37d..fe8799481a7 100644 --- a/llvm/test/Transforms/ADCE/2003-06-11-InvalidCFG.ll +++ b/llvm/test/Transforms/ADCE/2003-06-11-InvalidCFG.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -disable-output +; RUN: opt %s -adce -disable-output @G = external global i32* ; <i32**> [#uses=1] diff --git a/llvm/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll b/llvm/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll index e5dd0cc6d9a..40749f0d6aa 100644 --- a/llvm/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll +++ b/llvm/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -disable-output +; RUN: opt %s -adce -disable-output target datalayout = "e-p:32:32" %struct..CppObjTypeDesc = type { i32, i16, i16 } %struct..TypeToken = type { i32, i16, i16 } diff --git a/llvm/test/Transforms/ADCE/2003-06-24-BasicFunctionality.ll b/llvm/test/Transforms/ADCE/2003-06-24-BasicFunctionality.ll index 9c6764d5623..9cbf8c66405 100644 --- a/llvm/test/Transforms/ADCE/2003-06-24-BasicFunctionality.ll +++ b/llvm/test/Transforms/ADCE/2003-06-24-BasicFunctionality.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -simplifycfg | llvm-dis | not grep then: +; RUN: opt %s -adce -simplifycfg | llvm-dis | not grep then: define void @dead_test8(i32* %data.1, i32 %idx.1) { entry: diff --git a/llvm/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll b/llvm/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll index e6345c13eba..69760b56e7b 100644 --- a/llvm/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll +++ b/llvm/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -disable-output +; RUN: opt %s -adce -disable-output define void @test() { br i1 false, label %then, label %endif diff --git a/llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll b/llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll index 37e077f21cb..2319c499ea8 100644 --- a/llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll +++ b/llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -disable-output +; RUN: opt %s -adce -disable-output define i32 @main() { br label %loop diff --git a/llvm/test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll b/llvm/test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll index 6e9b17ed313..847cf2b0be2 100644 --- a/llvm/test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll +++ b/llvm/test/Transforms/ADCE/2003-11-16-MissingPostDominanceInfo.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -simplifycfg | llvm-dis | grep call +; RUN: opt %s -adce -simplifycfg | llvm-dis | grep call declare void @exit(i32) define i32 @main(i32 %argc) { diff --git a/llvm/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll b/llvm/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll index 87a1550e9d4..675670e1870 100644 --- a/llvm/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll +++ b/llvm/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -disable-output +; RUN: opt %s -adce -disable-output define void @test() { entry: diff --git a/llvm/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll b/llvm/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll index 8ddbbbe2c50..08708b380f6 100644 --- a/llvm/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll +++ b/llvm/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -disable-output +; RUN: opt %s -adce -disable-output declare void @strlen() diff --git a/llvm/test/Transforms/ADCE/basictest.ll b/llvm/test/Transforms/ADCE/basictest.ll index 22ff0f753be..814c2a85d10 100644 --- a/llvm/test/Transforms/ADCE/basictest.ll +++ b/llvm/test/Transforms/ADCE/basictest.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -simplifycfg | llvm-dis +; RUN: opt %s -adce -simplifycfg | llvm-dis define i32 @Test(i32 %A, i32 %B) { BB1: diff --git a/llvm/test/Transforms/ADCE/basictest1.ll b/llvm/test/Transforms/ADCE/basictest1.ll index 29f40deb9c7..922586acfc4 100644 --- a/llvm/test/Transforms/ADCE/basictest1.ll +++ b/llvm/test/Transforms/ADCE/basictest1.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -simplifycfg | llvm-dis +; RUN: opt %s -adce -simplifycfg | llvm-dis %FILE = type { i32, i8*, i8*, i8, i8, i32, i32, i32 } %spec_fd_t = type { i32, i32, i32, i8* } @__iob = external global [20 x %FILE] ; <[20 x %FILE]*> [#uses=1] diff --git a/llvm/test/Transforms/ADCE/basictest2.ll b/llvm/test/Transforms/ADCE/basictest2.ll index 120e23352dd..0193838d3fe 100644 --- a/llvm/test/Transforms/ADCE/basictest2.ll +++ b/llvm/test/Transforms/ADCE/basictest2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -simplifycfg | llvm-dis +; RUN: opt %s -adce -simplifycfg | llvm-dis %FILE = type { i32, i8*, i8*, i8, i8, i32, i32, i32 } %spec_fd_t = type { i32, i32, i32, i8* } @__iob = external global [20 x %FILE] ; <[20 x %FILE]*> [#uses=1] diff --git a/llvm/test/Transforms/ADCE/dce_pure_call.ll b/llvm/test/Transforms/ADCE/dce_pure_call.ll index 3935bf72b9c..b76ccc5e629 100644 --- a/llvm/test/Transforms/ADCE/dce_pure_call.ll +++ b/llvm/test/Transforms/ADCE/dce_pure_call.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep call +; RUN: opt %s -adce | llvm-dis | not grep call declare i32 @strlen(i8*) readonly nounwind diff --git a/llvm/test/Transforms/ADCE/dce_pure_invoke.ll b/llvm/test/Transforms/ADCE/dce_pure_invoke.ll index bd28df2b5e7..f8111456efd 100644 --- a/llvm/test/Transforms/ADCE/dce_pure_invoke.ll +++ b/llvm/test/Transforms/ADCE/dce_pure_invoke.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce | llvm-dis | grep null +; RUN: opt %s -adce | llvm-dis | grep null declare i32 @strlen(i8*) readnone diff --git a/llvm/test/Transforms/ADCE/unreachable-function.ll b/llvm/test/Transforms/ADCE/unreachable-function.ll index 86c55f59168..d806b7f3769 100644 --- a/llvm/test/Transforms/ADCE/unreachable-function.ll +++ b/llvm/test/Transforms/ADCE/unreachable-function.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -adce -disable-output +; RUN: opt %s -adce -disable-output define void @test() { unreachable |

