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/IndVarSimplify | |
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/IndVarSimplify')
82 files changed, 85 insertions, 85 deletions
diff --git a/llvm/test/Transforms/IndVarSimplify/2002-09-09-PointerIndVar.ll b/llvm/test/Transforms/IndVarSimplify/2002-09-09-PointerIndVar.ll index 228772eb82c..c5481c684bd 100644 --- a/llvm/test/Transforms/IndVarSimplify/2002-09-09-PointerIndVar.ll +++ b/llvm/test/Transforms/IndVarSimplify/2002-09-09-PointerIndVar.ll @@ -1,7 +1,7 @@ ; Induction variable pass is doing bad things with pointer induction vars, ; trying to do arithmetic on them directly. ; -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars ; define void @test(i32 %A, i32 %S, i8* %S.upgrd.1) { ; <label>:0 diff --git a/llvm/test/Transforms/IndVarSimplify/2003-04-16-ExprAnalysis.ll b/llvm/test/Transforms/IndVarSimplify/2003-04-16-ExprAnalysis.ll index 2487ea95e27..d12709a84fb 100644 --- a/llvm/test/Transforms/IndVarSimplify/2003-04-16-ExprAnalysis.ll +++ b/llvm/test/Transforms/IndVarSimplify/2003-04-16-ExprAnalysis.ll @@ -1,7 +1,7 @@ ; This is a test case for the expression analysis code, not really indvars. ; It was assuming any constant of int type was a ConstantInteger. ; -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars @X = global i32 7 ; <i32*> [#uses=1] diff --git a/llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll b/llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll index 96190991f73..8ac714ce603 100644 --- a/llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll +++ b/llvm/test/Transforms/IndVarSimplify/2003-09-12-MultiplePred.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar +; RUN: opt %s -indvars | llvm-dis | grep indvar define i32 @test() { ; <label>:0 diff --git a/llvm/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll b/llvm/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll index bd9d1ef5cb9..6f0b9942d5c 100644 --- a/llvm/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll +++ b/llvm/test/Transforms/IndVarSimplify/2003-12-10-IndVarDeadCode.ll @@ -1,7 +1,7 @@ ; The induction variable canonicalization pass shouldn't leave dead ; instructions laying around! ; -; RUN: llvm-as < %s | opt -indvars | llvm-dis | \ +; RUN: opt %s -indvars | llvm-dis | \ ; RUN: not grep {#uses=0} define i32 @mul(i32 %x, i32 %y) { diff --git a/llvm/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll b/llvm/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll index 11af997e83b..bc2d088d3af 100644 --- a/llvm/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2003-12-10-RemoveInstrCrash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output define void @test() { entry: diff --git a/llvm/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll b/llvm/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll index b964d78d695..dfbef05d2f3 100644 --- a/llvm/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2003-12-15-Crash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output define void @_ZN17CoinFactorization7cleanupEv() { entry: br i1 false, label %loopexit.14, label %cond_continue.3 diff --git a/llvm/test/Transforms/IndVarSimplify/2003-12-21-IndVarSize.ll b/llvm/test/Transforms/IndVarSimplify/2003-12-21-IndVarSize.ll index cf8c80472df..bed49a8de2d 100644 --- a/llvm/test/Transforms/IndVarSimplify/2003-12-21-IndVarSize.ll +++ b/llvm/test/Transforms/IndVarSimplify/2003-12-21-IndVarSize.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar | not grep i32 +; RUN: opt %s -indvars | llvm-dis | grep indvar | not grep i32 @G = global i64 0 ; <i64*> [#uses=1] diff --git a/llvm/test/Transforms/IndVarSimplify/2004-03-10-PHIInsertionBug.ll b/llvm/test/Transforms/IndVarSimplify/2004-03-10-PHIInsertionBug.ll index 248b29b32d2..9111f616e6c 100644 --- a/llvm/test/Transforms/IndVarSimplify/2004-03-10-PHIInsertionBug.ll +++ b/llvm/test/Transforms/IndVarSimplify/2004-03-10-PHIInsertionBug.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output define void @test() { br label %endif.0.i diff --git a/llvm/test/Transforms/IndVarSimplify/2004-04-05-InvokeCastCrash.ll b/llvm/test/Transforms/IndVarSimplify/2004-04-05-InvokeCastCrash.ll index 54d85472a89..1bb55be1992 100644 --- a/llvm/test/Transforms/IndVarSimplify/2004-04-05-InvokeCastCrash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2004-04-05-InvokeCastCrash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output ; ModuleID = '2004-04-05-InvokeCastCrash.ll' %struct.__false_type = type { i8 } %"struct.__gnu_cxx::_Hashtable_node<const llvm::Constant*>" = type { %"struct.__gnu_cxx::_Hashtable_node<const llvm::Constant*>"*, %"struct.llvm::Constant"* } diff --git a/llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll b/llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll index b4eb3db1909..3589450baa2 100644 --- a/llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2004-04-07-ScalarEvolutionCrash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output define void @.outPlank_21() { entry: diff --git a/llvm/test/Transforms/IndVarSimplify/2005-02-11-InvokeCrash.ll b/llvm/test/Transforms/IndVarSimplify/2005-02-11-InvokeCrash.ll index afee7e18918..6849f13945b 100644 --- a/llvm/test/Transforms/IndVarSimplify/2005-02-11-InvokeCrash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2005-02-11-InvokeCrash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output define void @_ZN5ArrayISt7complexIdEEC2ERK10dim_vector() { entry: diff --git a/llvm/test/Transforms/IndVarSimplify/2005-02-17-TruncateExprCrash.ll b/llvm/test/Transforms/IndVarSimplify/2005-02-17-TruncateExprCrash.ll index a1beec64689..cf5f31d34e9 100644 --- a/llvm/test/Transforms/IndVarSimplify/2005-02-17-TruncateExprCrash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2005-02-17-TruncateExprCrash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output declare void @q_atomic_increment() diff --git a/llvm/test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll b/llvm/test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll index 853d5ad5014..f99dbce28b9 100644 --- a/llvm/test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll +++ b/llvm/test/Transforms/IndVarSimplify/2005-02-26-ExitValueCompute.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | \ +; RUN: opt %s -indvars | llvm-dis | \ ; RUN: grep {ret i32 152} define i32 @main() { diff --git a/llvm/test/Transforms/IndVarSimplify/2005-06-15-InstMoveCrash.ll b/llvm/test/Transforms/IndVarSimplify/2005-06-15-InstMoveCrash.ll index ba4db9f9599..e6fca7ba74a 100644 --- a/llvm/test/Transforms/IndVarSimplify/2005-06-15-InstMoveCrash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2005-06-15-InstMoveCrash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output define void @main() { entry: diff --git a/llvm/test/Transforms/IndVarSimplify/2005-11-18-Crash.ll b/llvm/test/Transforms/IndVarSimplify/2005-11-18-Crash.ll index 5ee8cea74a3..310e450ad7e 100644 --- a/llvm/test/Transforms/IndVarSimplify/2005-11-18-Crash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2005-11-18-Crash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output @fixtab = external global [29 x [29 x [2 x i32]]] ; <[29 x [29 x [2 x i32]]]*> [#uses=1] diff --git a/llvm/test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll b/llvm/test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll index 32abee9d1cc..f6570395e3e 100644 --- a/llvm/test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll +++ b/llvm/test/Transforms/IndVarSimplify/2006-03-31-NegativeStride.ll @@ -1,5 +1,5 @@ ; PR726 -; RUN: llvm-as < %s | opt -indvars | llvm-dis | \ +; RUN: opt %s -indvars | llvm-dis | \ ; RUN: grep {ret i32 27} ; Make sure to compute the right exit value based on negative strides. diff --git a/llvm/test/Transforms/IndVarSimplify/2006-06-16-Indvar-LCSSA-Crash.ll b/llvm/test/Transforms/IndVarSimplify/2006-06-16-Indvar-LCSSA-Crash.ll index 986831b9a6e..7a84008c34d 100644 --- a/llvm/test/Transforms/IndVarSimplify/2006-06-16-Indvar-LCSSA-Crash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2006-06-16-Indvar-LCSSA-Crash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output define void @get_block() { endif.0: diff --git a/llvm/test/Transforms/IndVarSimplify/2006-09-20-LFTR-Crash.ll b/llvm/test/Transforms/IndVarSimplify/2006-09-20-LFTR-Crash.ll index 6a478ab5f5f..5d45f38e7db 100644 --- a/llvm/test/Transforms/IndVarSimplify/2006-09-20-LFTR-Crash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2006-09-20-LFTR-Crash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output ; ModuleID = '2006-09-20-LFTR-Crash.ll' %struct.p7prior_s = type { i32, i32, [200 x float], [200 x [7 x float]], i32, [200 x float], [200 x [20 x float]], i32, [200 x float], [200 x [20 x float]] } diff --git a/llvm/test/Transforms/IndVarSimplify/2006-12-10-BitCast.ll b/llvm/test/Transforms/IndVarSimplify/2006-12-10-BitCast.ll index b2f8258000f..fbd1bdb558a 100644 --- a/llvm/test/Transforms/IndVarSimplify/2006-12-10-BitCast.ll +++ b/llvm/test/Transforms/IndVarSimplify/2006-12-10-BitCast.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output target datalayout = "e-p:32:32" target triple = "i686-apple-darwin8" %struct.vorbis_dsp_state = type { i32, %struct.vorbis_info*, float**, float**, i32, i32, i32, i32, i32, i32, i32, i32, i32, i64, i64, i64, i64, i64, i64, i8* } diff --git a/llvm/test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll b/llvm/test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll index dd151e84d00..02791a1342c 100644 --- a/llvm/test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll +++ b/llvm/test/Transforms/IndVarSimplify/2007-01-06-TripCount.ll @@ -1,5 +1,5 @@ ; PR1015 -; RUN: llvm-as < %s | opt -indvars | llvm-dis | not grep {ret i32 0} +; RUN: opt %s -indvars | llvm-dis | not grep {ret i32 0} target datalayout = "e-p:32:32" target triple = "i686-apple-darwin8" diff --git a/llvm/test/Transforms/IndVarSimplify/2007-01-08-X86-64-Pointer.ll b/llvm/test/Transforms/IndVarSimplify/2007-01-08-X86-64-Pointer.ll index 7078494a929..de226a140ad 100644 --- a/llvm/test/Transforms/IndVarSimplify/2007-01-08-X86-64-Pointer.ll +++ b/llvm/test/Transforms/IndVarSimplify/2007-01-08-X86-64-Pointer.ll @@ -1,5 +1,5 @@ -; RUN: llvm-as < %s | llc -march=x86-64 | grep {(%rdi,%rax,8)} -; RUN: llvm-as < %s | llc -march=x86-64 | not grep {addq.*8} +; RUN: llc %s -o - -march=x86-64 | grep {(%rdi,%rax,8)} +; RUN: llc %s -o - -march=x86-64 | not grep {addq.*8} define void @foo(double* %y) nounwind { entry: diff --git a/llvm/test/Transforms/IndVarSimplify/2007-06-06-DeleteDanglesPtr.ll b/llvm/test/Transforms/IndVarSimplify/2007-06-06-DeleteDanglesPtr.ll index 363c98c493b..74c7095afaf 100644 --- a/llvm/test/Transforms/IndVarSimplify/2007-06-06-DeleteDanglesPtr.ll +++ b/llvm/test/Transforms/IndVarSimplify/2007-06-06-DeleteDanglesPtr.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output ; PR1487 %struct.AVClass = type { i8*, i8* (i8*)*, %struct.AVOption* } diff --git a/llvm/test/Transforms/IndVarSimplify/2007-11-23-BitcastCrash.ll b/llvm/test/Transforms/IndVarSimplify/2007-11-23-BitcastCrash.ll index 555cadda6de..b6cf6e7b95a 100644 --- a/llvm/test/Transforms/IndVarSimplify/2007-11-23-BitcastCrash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2007-11-23-BitcastCrash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output ; PR1814 target datalayout = "e-p:32:32-f64:32:64-i64:32:64-f80:32:32" diff --git a/llvm/test/Transforms/IndVarSimplify/2008-06-15-SCEVExpanderBug.ll b/llvm/test/Transforms/IndVarSimplify/2008-06-15-SCEVExpanderBug.ll index aac8d978946..cfeb4d25881 100644 --- a/llvm/test/Transforms/IndVarSimplify/2008-06-15-SCEVExpanderBug.ll +++ b/llvm/test/Transforms/IndVarSimplify/2008-06-15-SCEVExpanderBug.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output ; PR2434 define fastcc void @regcppop() nounwind { diff --git a/llvm/test/Transforms/IndVarSimplify/2008-09-02-IVType.ll b/llvm/test/Transforms/IndVarSimplify/2008-09-02-IVType.ll index 8111cbe3a48..75c559c48a9 100644 --- a/llvm/test/Transforms/IndVarSimplify/2008-09-02-IVType.ll +++ b/llvm/test/Transforms/IndVarSimplify/2008-09-02-IVType.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep sext | count 1 +; RUN: opt %s -indvars | llvm-dis | grep sext | count 1 ; ModuleID = '<stdin>' %struct.App1Marker = type <{ i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }> diff --git a/llvm/test/Transforms/IndVarSimplify/2008-10-03-CouldNotCompute.ll b/llvm/test/Transforms/IndVarSimplify/2008-10-03-CouldNotCompute.ll index c78188d4d22..d83997f180c 100644 --- a/llvm/test/Transforms/IndVarSimplify/2008-10-03-CouldNotCompute.ll +++ b/llvm/test/Transforms/IndVarSimplify/2008-10-03-CouldNotCompute.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars ; PR2857 @foo = external global i32 ; <i32*> [#uses=1] diff --git a/llvm/test/Transforms/IndVarSimplify/2008-11-03-Floating.ll b/llvm/test/Transforms/IndVarSimplify/2008-11-03-Floating.ll index be8b36fac6a..4eba4cb5e0a 100644 --- a/llvm/test/Transforms/IndVarSimplify/2008-11-03-Floating.ll +++ b/llvm/test/Transforms/IndVarSimplify/2008-11-03-Floating.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep icmp | count 4 +; RUN: opt %s -indvars | llvm-dis | grep icmp | count 4 define void @bar() nounwind { entry: br label %bb diff --git a/llvm/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll b/llvm/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll index c947d3bc333..00d9feaf70f 100644 --- a/llvm/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll +++ b/llvm/test/Transforms/IndVarSimplify/2008-11-17-Floating.ll @@ -1,6 +1,6 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep icmp | count 2 -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep sitofp | count 1 -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep uitofp | count 1 +; RUN: opt %s -indvars | llvm-dis | grep icmp | count 2 +; RUN: opt %s -indvars | llvm-dis | grep sitofp | count 1 +; RUN: opt %s -indvars | llvm-dis | grep uitofp | count 1 define void @bar() nounwind { entry: diff --git a/llvm/test/Transforms/IndVarSimplify/2008-11-25-APFloatAssert.ll b/llvm/test/Transforms/IndVarSimplify/2008-11-25-APFloatAssert.ll index e611b1fd834..1ea7eaa2522 100644 --- a/llvm/test/Transforms/IndVarSimplify/2008-11-25-APFloatAssert.ll +++ b/llvm/test/Transforms/IndVarSimplify/2008-11-25-APFloatAssert.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars define void @t() nounwind { entry: diff --git a/llvm/test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll b/llvm/test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll index 134c9c74d3a..bf5edf094c8 100644 --- a/llvm/test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll +++ b/llvm/test/Transforms/IndVarSimplify/2009-04-14-shorten_iv_vars.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | not grep {sext} +; RUN: opt %s -indvars | llvm-dis | not grep {sext} ; ModuleID = '<stdin>' target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" target triple = "x86_64-apple-darwin9.6" diff --git a/llvm/test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll b/llvm/test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll index 4d26803b437..4a94939838f 100644 --- a/llvm/test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll +++ b/llvm/test/Transforms/IndVarSimplify/2009-04-15-shorten-iv-vars-2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -instcombine | llvm-dis | not grep {\[sz\]ext} +; RUN: opt %s -indvars -instcombine | llvm-dis | not grep {\[sz\]ext} ; ModuleID = '<stdin>' ;extern int *a, *b, *c, *d, *e, *f; /* 64 bit */ ;extern int K[256]; diff --git a/llvm/test/Transforms/IndVarSimplify/2009-04-22-IndvarCrash.ll b/llvm/test/Transforms/IndVarSimplify/2009-04-22-IndvarCrash.ll index f39458f1796..f81232e6614 100644 --- a/llvm/test/Transforms/IndVarSimplify/2009-04-22-IndvarCrash.ll +++ b/llvm/test/Transforms/IndVarSimplify/2009-04-22-IndvarCrash.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars ; rdar://6817574 define i32 @t1() nounwind ssp { diff --git a/llvm/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll b/llvm/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll index e70d577e0a9..23a46e77446 100644 --- a/llvm/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll +++ b/llvm/test/Transforms/IndVarSimplify/2009-04-27-Floating.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep icmp | grep next +; RUN: opt %s -indvars | llvm-dis | grep icmp | grep next ; PR4086 declare void @foo() diff --git a/llvm/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll b/llvm/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll index ecbb23192e9..ebcd9985581 100644 --- a/llvm/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll +++ b/llvm/test/Transforms/IndVarSimplify/2009-05-24-useafterfree.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars ; PR4258 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" target triple = "i386-linux-gnu" diff --git a/llvm/test/Transforms/IndVarSimplify/ada-loops.ll b/llvm/test/Transforms/IndVarSimplify/ada-loops.ll index 56325b36cbb..85077b7ab43 100644 --- a/llvm/test/Transforms/IndVarSimplify/ada-loops.ll +++ b/llvm/test/Transforms/IndVarSimplify/ada-loops.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: grep phi %t | count 4 ; RUN: grep {= phi i32} %t | count 4 ; RUN: not grep {sext i} %t diff --git a/llvm/test/Transforms/IndVarSimplify/addrec-gep.ll b/llvm/test/Transforms/IndVarSimplify/addrec-gep.ll index 132d4f8a871..37f24532cff 100644 --- a/llvm/test/Transforms/IndVarSimplify/addrec-gep.ll +++ b/llvm/test/Transforms/IndVarSimplify/addrec-gep.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: grep getelementptr %t | count 1 ; RUN: grep {mul .*, 37} %t | count 1 ; RUN: grep {add .*, 5203} %t | count 1 diff --git a/llvm/test/Transforms/IndVarSimplify/ashr-tripcount.ll b/llvm/test/Transforms/IndVarSimplify/ashr-tripcount.ll index 7b2cad28bf0..c1a4058cac0 100644 --- a/llvm/test/Transforms/IndVarSimplify/ashr-tripcount.ll +++ b/llvm/test/Transforms/IndVarSimplify/ashr-tripcount.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: grep sext %t | count 1 ; Indvars should be able to eliminate all of the sign extensions diff --git a/llvm/test/Transforms/IndVarSimplify/avoid-i0.ll b/llvm/test/Transforms/IndVarSimplify/avoid-i0.ll index 3456bd3d6c9..186f4bc1cec 100644 --- a/llvm/test/Transforms/IndVarSimplify/avoid-i0.ll +++ b/llvm/test/Transforms/IndVarSimplify/avoid-i0.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars ; PR4052 ; PR4054 diff --git a/llvm/test/Transforms/IndVarSimplify/casted-argument.ll b/llvm/test/Transforms/IndVarSimplify/casted-argument.ll index 6d7aaa9161a..cd6ffd8bdf1 100644 --- a/llvm/test/Transforms/IndVarSimplify/casted-argument.ll +++ b/llvm/test/Transforms/IndVarSimplify/casted-argument.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output ; PR4009 ; PR4038 diff --git a/llvm/test/Transforms/IndVarSimplify/complex-scev.ll b/llvm/test/Transforms/IndVarSimplify/complex-scev.ll index 4bfc4e981af..eca76886e09 100644 --- a/llvm/test/Transforms/IndVarSimplify/complex-scev.ll +++ b/llvm/test/Transforms/IndVarSimplify/complex-scev.ll @@ -1,7 +1,7 @@ ; The i induction variable looks like a wrap-around, but it really is just ; a simple affine IV. Make sure that indvars eliminates it. -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep phi | count 1 +; RUN: opt %s -indvars | llvm-dis | grep phi | count 1 define void @foo() { entry: diff --git a/llvm/test/Transforms/IndVarSimplify/divide-pointer.ll b/llvm/test/Transforms/IndVarSimplify/divide-pointer.ll index 747d47eb869..599164874d9 100644 --- a/llvm/test/Transforms/IndVarSimplify/divide-pointer.ll +++ b/llvm/test/Transforms/IndVarSimplify/divide-pointer.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars ; PR4271 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" diff --git a/llvm/test/Transforms/IndVarSimplify/exit_value_tests.ll b/llvm/test/Transforms/IndVarSimplify/exit_value_tests.ll index b39f40f4866..ed86ba5c4e0 100644 --- a/llvm/test/Transforms/IndVarSimplify/exit_value_tests.ll +++ b/llvm/test/Transforms/IndVarSimplify/exit_value_tests.ll @@ -2,7 +2,7 @@ ; these loops all have predictable exit values we can replace the use outside ; of the loop with a closed-form computation, making the loop dead. ; -; RUN: llvm-as < %s | opt -indvars -loop-deletion -simplifycfg | \ +; RUN: opt %s -indvars -loop-deletion -simplifycfg | \ ; RUN: llvm-dis | not grep br define i32 @polynomial_constant() { diff --git a/llvm/test/Transforms/IndVarSimplify/gep-with-mul-base.ll b/llvm/test/Transforms/IndVarSimplify/gep-with-mul-base.ll index e63c88c65e6..b1399b82ddd 100644 --- a/llvm/test/Transforms/IndVarSimplify/gep-with-mul-base.ll +++ b/llvm/test/Transforms/IndVarSimplify/gep-with-mul-base.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: grep add %t | count 8 ; RUN: grep mul %t | count 7 diff --git a/llvm/test/Transforms/IndVarSimplify/interesting-invoke-use.ll b/llvm/test/Transforms/IndVarSimplify/interesting-invoke-use.ll index b90d1e0ecf3..255ef079aa2 100644 --- a/llvm/test/Transforms/IndVarSimplify/interesting-invoke-use.ll +++ b/llvm/test/Transforms/IndVarSimplify/interesting-invoke-use.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars ; An invoke has a result value which is used in an "Interesting" ; expression inside the loop. IndVars should be able to rewrite diff --git a/llvm/test/Transforms/IndVarSimplify/iterationCount_zext_or_trunc.ll b/llvm/test/Transforms/IndVarSimplify/iterationCount_zext_or_trunc.ll index 747c781e993..97adfbb1c33 100644 --- a/llvm/test/Transforms/IndVarSimplify/iterationCount_zext_or_trunc.ll +++ b/llvm/test/Transforms/IndVarSimplify/iterationCount_zext_or_trunc.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output ; ModuleID = 'testcase.bc' target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64" diff --git a/llvm/test/Transforms/IndVarSimplify/iv-sext.ll b/llvm/test/Transforms/IndVarSimplify/iv-sext.ll index 120acb23c83..eaa9eecaf83 100644 --- a/llvm/test/Transforms/IndVarSimplify/iv-sext.ll +++ b/llvm/test/Transforms/IndVarSimplify/iv-sext.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: grep {= sext} %t | count 4 ; RUN: grep {phi i64} %t | count 2 diff --git a/llvm/test/Transforms/IndVarSimplify/iv-zext.ll b/llvm/test/Transforms/IndVarSimplify/iv-zext.ll index d7eb7bd47dc..b7628154d72 100644 --- a/llvm/test/Transforms/IndVarSimplify/iv-zext.ll +++ b/llvm/test/Transforms/IndVarSimplify/iv-zext.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: not grep and %t ; RUN: not grep zext %t diff --git a/llvm/test/Transforms/IndVarSimplify/lftr-other-uses.ll b/llvm/test/Transforms/IndVarSimplify/lftr-other-uses.ll index c8f1e959834..aa025b70dbd 100644 --- a/llvm/test/Transforms/IndVarSimplify/lftr-other-uses.ll +++ b/llvm/test/Transforms/IndVarSimplify/lftr-other-uses.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -disable-output +; RUN: opt %s -indvars -disable-output ; Don't RAUW the loop's original comparison instruction if it has ; other uses which aren't dominated by the new comparison instruction. diff --git a/llvm/test/Transforms/IndVarSimplify/lftr-promote.ll b/llvm/test/Transforms/IndVarSimplify/lftr-promote.ll index b2cb770dd61..b9bf3d2de2d 100644 --- a/llvm/test/Transforms/IndVarSimplify/lftr-promote.ll +++ b/llvm/test/Transforms/IndVarSimplify/lftr-promote.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep add | count 1 +; RUN: opt %s -indvars | llvm-dis | grep add | count 1 ; Indvars should be able to compute the exit value of this loop ; without any additional arithmetic. The only add needed should diff --git a/llvm/test/Transforms/IndVarSimplify/lftr_simple.ll b/llvm/test/Transforms/IndVarSimplify/lftr_simple.ll index 3f7c289a488..686185d797b 100644 --- a/llvm/test/Transforms/IndVarSimplify/lftr_simple.ll +++ b/llvm/test/Transforms/IndVarSimplify/lftr_simple.ll @@ -1,6 +1,6 @@ ; LFTR should eliminate the need for the computation of i*i completely. It ; is only used to compute the exit value. -; RUN: llvm-as < %s | opt -indvars -dce | llvm-dis | not grep mul +; RUN: opt %s -indvars -dce | llvm-dis | not grep mul @A = external global i32 ; <i32*> [#uses=1] diff --git a/llvm/test/Transforms/IndVarSimplify/loop-invariant-step.ll b/llvm/test/Transforms/IndVarSimplify/loop-invariant-step.ll index 40156eaab59..9fd1ca81912 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop-invariant-step.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop-invariant-step.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -loop-index-split -instcombine -indvars -disable-output +; RUN: opt %s -loop-index-split -instcombine -indvars -disable-output ; PR4455 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate10.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate10.ll index 37663339e43..61ea7ad85c6 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate10.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate10.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis \ +; RUN: opt %s -indvars | llvm-dis \ ; RUN: | grep {%b.1 = phi i32 \\\[ 2, %bb \\\], \\\[ 1, %bb2 \\\]} ; This loop has multiple exits, and the value of %b1 depends on which diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate11.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate11.ll index 71bd5a7cc68..80e99e1b3b6 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate11.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate11.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -domfrontier -indvars -loop-deletion +; RUN: opt %s -domfrontier -indvars -loop-deletion target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate7.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate7.ll index 6e31c55d526..09c8df79a7c 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate7.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate7.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars ; PR4436 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:32:32" diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate8.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate8.ll index fa2f9e57f07..969de427c0e 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate8.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate8.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | not grep select +; RUN: opt %s -indvars | llvm-dis | not grep select ; This loop has backedge-taken-count zero. Indvars shouldn't expand any ; instructions to compute a trip count. diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate9.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate9.ll index 8310038a948..7f13841807f 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate9.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate9.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: grep {\[%\]tmp7 = icmp eq i8 -28, -28} %t ; RUN: grep {\[%\]tmp8 = icmp eq i8 63, 63} %t ; PR4477 diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_1.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_1.ll index dfb42e4feae..cd75c436910 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_1.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_1.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -loop-deletion -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -indvars -loop-deletion -simplifycfg | llvm-dis | not grep br ; ; Testcase distilled from 256.bzip2 diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_2.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_2.ll index efcf20a9344..3b34eecc541 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_2.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_2.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -loop-deletion -simplifycfg | opt \ +; RUN: opt %s -indvars -loop-deletion -simplifycfg | opt \ ; RUN: -analyze -loops | not grep "^Loop Containing" ; PR1179 diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_3.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_3.ll index 2a2f69dd486..cff09ba4cc5 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_3.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_3.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep {ret i32 600000} +; RUN: opt %s -indvars | llvm-dis | grep {ret i32 600000} ; PR1179 define i32 @foo() { diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_4.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_4.ll index 6c6a362f48e..6d2b004a2ae 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_4.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_4.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep {ret i32 9900} +; RUN: opt %s -indvars | llvm-dis | grep {ret i32 9900} ; PR1179 define i32 @test4() { diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_5.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_5.ll index c6ce4a2122d..7851a70afbb 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_5.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_5.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep {120, %bb2.bb3_crit_edge} +; RUN: opt %s -indvars | llvm-dis | grep {120, %bb2.bb3_crit_edge} target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64" target triple = "i686-pc-linux-gnu" diff --git a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_6.ll b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_6.ll index 0d17a801a9c..d434e7909ac 100644 --- a/llvm/test/Transforms/IndVarSimplify/loop_evaluate_6.ll +++ b/llvm/test/Transforms/IndVarSimplify/loop_evaluate_6.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -loop-deletion | llvm-dis | grep phi | count 1 +; RUN: opt %s -indvars -loop-deletion | llvm-dis | grep phi | count 1 ; XFAIL: * ; Indvars can't evaluate this loop, because ScalarEvolution can't compute diff --git a/llvm/test/Transforms/IndVarSimplify/masked-iv.ll b/llvm/test/Transforms/IndVarSimplify/masked-iv.ll index f77b9357d75..94829c4a70e 100644 --- a/llvm/test/Transforms/IndVarSimplify/masked-iv.ll +++ b/llvm/test/Transforms/IndVarSimplify/masked-iv.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: not grep trunc %t ; RUN: grep and %t | count 1 diff --git a/llvm/test/Transforms/IndVarSimplify/max-pointer.ll b/llvm/test/Transforms/IndVarSimplify/max-pointer.ll index 2ee08dbc38b..dce6d70cce5 100644 --- a/llvm/test/Transforms/IndVarSimplify/max-pointer.ll +++ b/llvm/test/Transforms/IndVarSimplify/max-pointer.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: grep {icmp ugt i8\\\*} %t | count 1 ; RUN: grep {icmp sgt i8\\\*} %t | count 1 diff --git a/llvm/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll b/llvm/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll index 7119cbbc05c..1f2df907796 100644 --- a/llvm/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll +++ b/llvm/test/Transforms/IndVarSimplify/phi-uses-value-multiple-times.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128" @ue = external global i64 diff --git a/llvm/test/Transforms/IndVarSimplify/pointer-indvars.ll b/llvm/test/Transforms/IndVarSimplify/pointer-indvars.ll index c9da1579e98..896a3d7e20f 100644 --- a/llvm/test/Transforms/IndVarSimplify/pointer-indvars.ll +++ b/llvm/test/Transforms/IndVarSimplify/pointer-indvars.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar +; RUN: opt %s -indvars | llvm-dis | grep indvar @G = global i32* null ; <i32**> [#uses=1] @Array = external global [40 x i32] ; <[40 x i32]*> [#uses=1] diff --git a/llvm/test/Transforms/IndVarSimplify/pointer.ll b/llvm/test/Transforms/IndVarSimplify/pointer.ll index 7ad11619192..0a105800183 100644 --- a/llvm/test/Transforms/IndVarSimplify/pointer.ll +++ b/llvm/test/Transforms/IndVarSimplify/pointer.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: grep {%exitcond = icmp eq i64 %indvar.next, %n} %t ; RUN: grep {getelementptr i8\\* %A, i64 %indvar} %t ; RUN: grep getelementptr %t | count 1 diff --git a/llvm/test/Transforms/IndVarSimplify/preserve-gep-nested.ll b/llvm/test/Transforms/IndVarSimplify/preserve-gep-nested.ll index 6959064d6ab..602deddefd9 100644 --- a/llvm/test/Transforms/IndVarSimplify/preserve-gep-nested.ll +++ b/llvm/test/Transforms/IndVarSimplify/preserve-gep-nested.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; Exactly one getelementptr for each load+store. ; RUN: grep getelementptr %t | count 6 ; Each getelementptr using %struct.Q* %s as a base and not i8*. diff --git a/llvm/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll b/llvm/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll index 95726ea0818..1a7a41262fe 100644 --- a/llvm/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll +++ b/llvm/test/Transforms/IndVarSimplify/preserve-gep-remainder.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis \ +; RUN: opt %s -indvars | llvm-dis \ ; RUN: | grep {\[%\]p.2.ip.1 = getelementptr \\\[3 x \\\[3 x double\\\]\\\]\\* \[%\]p, i64 2, i64 \[%\]tmp, i64 1} ; Indvars shouldn't expand this to diff --git a/llvm/test/Transforms/IndVarSimplify/preserve-gep.ll b/llvm/test/Transforms/IndVarSimplify/preserve-gep.ll index 2c8c224fb90..0bb338a8c31 100644 --- a/llvm/test/Transforms/IndVarSimplify/preserve-gep.ll +++ b/llvm/test/Transforms/IndVarSimplify/preserve-gep.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: not grep ptrtoint %t ; RUN: not grep inttoptr %t ; RUN: grep getelementptr %t | count 1 diff --git a/llvm/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll b/llvm/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll index 0a91ec88064..c649fbe1449 100644 --- a/llvm/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll +++ b/llvm/test/Transforms/IndVarSimplify/preserve-signed-wrap.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: grep sext %t | count 1 ; RUN: grep phi %t | count 1 ; RUN: grep {phi i64} %t diff --git a/llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll b/llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll index 48c060c48d2..6b88a1e198b 100644 --- a/llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll +++ b/llvm/test/Transforms/IndVarSimplify/promote-iv-to-eliminate-casts.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: not grep sext %t define i64 @test(i64* nocapture %first, i32 %count) nounwind readonly { diff --git a/llvm/test/Transforms/IndVarSimplify/shrunk-constant.ll b/llvm/test/Transforms/IndVarSimplify/shrunk-constant.ll index 0b2ecaf38d7..0214ce3680b 100644 --- a/llvm/test/Transforms/IndVarSimplify/shrunk-constant.ll +++ b/llvm/test/Transforms/IndVarSimplify/shrunk-constant.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -scalar-evolution -analyze -disable-output \ +; RUN: opt %s -scalar-evolution -analyze -disable-output \ ; RUN: | grep {\\--> (zext i4 {-7,+,-8}<loop> to i32)} define fastcc void @foo() nounwind { diff --git a/llvm/test/Transforms/IndVarSimplify/signed-trip-count.ll b/llvm/test/Transforms/IndVarSimplify/signed-trip-count.ll index cd61d11394e..40ff26b017f 100644 --- a/llvm/test/Transforms/IndVarSimplify/signed-trip-count.ll +++ b/llvm/test/Transforms/IndVarSimplify/signed-trip-count.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis > %t +; RUN: opt %s -indvars | llvm-dis > %t ; RUN: not grep sext %t ; RUN: grep phi %t | count 1 diff --git a/llvm/test/Transforms/IndVarSimplify/single-element-range.ll b/llvm/test/Transforms/IndVarSimplify/single-element-range.ll index e905912719c..5500861873d 100644 --- a/llvm/test/Transforms/IndVarSimplify/single-element-range.ll +++ b/llvm/test/Transforms/IndVarSimplify/single-element-range.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:32-f32:32:32-f64:32:32-v64:64:64-v128:128:128-a0:0:64" target triple = "armv6-apple-darwin10" diff --git a/llvm/test/Transforms/IndVarSimplify/sink-alloca.ll b/llvm/test/Transforms/IndVarSimplify/sink-alloca.ll index f5378ccea0b..a3a3ceac74d 100644 --- a/llvm/test/Transforms/IndVarSimplify/sink-alloca.ll +++ b/llvm/test/Transforms/IndVarSimplify/sink-alloca.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | FileCheck %s +; RUN: opt %s -indvars | llvm-dis | FileCheck %s ; PR4775 ; Indvars shouldn't sink the alloca out of the entry block, even though diff --git a/llvm/test/Transforms/IndVarSimplify/sink-trapping.ll b/llvm/test/Transforms/IndVarSimplify/sink-trapping.ll index 5382c92e44a..9e5477bb624 100644 --- a/llvm/test/Transforms/IndVarSimplify/sink-trapping.ll +++ b/llvm/test/Transforms/IndVarSimplify/sink-trapping.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | FileCheck %s --check-prefix=CHECK +; RUN: opt %s -indvars | llvm-dis | FileCheck %s --check-prefix=CHECK declare i1 @b() diff --git a/llvm/test/Transforms/IndVarSimplify/subtract.ll b/llvm/test/Transforms/IndVarSimplify/subtract.ll index 51065cc1a8a..abbe518f06a 100644 --- a/llvm/test/Transforms/IndVarSimplify/subtract.ll +++ b/llvm/test/Transforms/IndVarSimplify/subtract.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep indvar +; RUN: opt %s -indvars | llvm-dis | grep indvar @G = global i64 0 ; <i64*> [#uses=1] diff --git a/llvm/test/Transforms/IndVarSimplify/tripcount_compute.ll b/llvm/test/Transforms/IndVarSimplify/tripcount_compute.ll index 9ffce813023..c7b9bafcaa0 100644 --- a/llvm/test/Transforms/IndVarSimplify/tripcount_compute.ll +++ b/llvm/test/Transforms/IndVarSimplify/tripcount_compute.ll @@ -3,7 +3,7 @@ ; the exit value of the loop will be for some value, allowing us to substitute ; it directly into users outside of the loop, making the loop dead. ; -; RUN: llvm-as < %s | opt -indvars -loop-deletion -simplifycfg | llvm-dis | not grep br +; RUN: opt %s -indvars -loop-deletion -simplifycfg | llvm-dis | not grep br define i32 @linear_setne() { entry: diff --git a/llvm/test/Transforms/IndVarSimplify/tripcount_infinite.ll b/llvm/test/Transforms/IndVarSimplify/tripcount_infinite.ll index d5965f4ed6f..7df4fcbfa3e 100644 --- a/llvm/test/Transforms/IndVarSimplify/tripcount_infinite.ll +++ b/llvm/test/Transforms/IndVarSimplify/tripcount_infinite.ll @@ -1,7 +1,7 @@ ; These tests have an infinite trip count. We obviously shouldn't remove the ; loops! :) ; -; RUN: llvm-as < %s | opt -indvars -adce -simplifycfg | llvm-dis | grep icmp | wc -l > %t2 +; RUN: opt %s -indvars -adce -simplifycfg | llvm-dis | grep icmp | wc -l > %t2 ; RUN: llvm-as < %s | llvm-dis | grep icmp | wc -l > %t1 ; RUN: diff %t1 %t2 diff --git a/llvm/test/Transforms/IndVarSimplify/variable-stride-ivs-0.ll b/llvm/test/Transforms/IndVarSimplify/variable-stride-ivs-0.ll index 759ba8e177b..fb0323c4bd7 100644 --- a/llvm/test/Transforms/IndVarSimplify/variable-stride-ivs-0.ll +++ b/llvm/test/Transforms/IndVarSimplify/variable-stride-ivs-0.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars -instcombine | llvm-dis | \ +; RUN: opt %s -indvars -instcombine | llvm-dis | \ ; RUN: grep {store i32 0} ; Test that -indvars can reduce variable stride IVs. If it can reduce variable ; stride iv's, it will make %iv. and %m.0.0 isomorphic to each other without diff --git a/llvm/test/Transforms/IndVarSimplify/variable-stride-ivs-1.ll b/llvm/test/Transforms/IndVarSimplify/variable-stride-ivs-1.ll index 075e899cd96..17bdf0be1d9 100644 --- a/llvm/test/Transforms/IndVarSimplify/variable-stride-ivs-1.ll +++ b/llvm/test/Transforms/IndVarSimplify/variable-stride-ivs-1.ll @@ -1,4 +1,4 @@ -; RUN: llvm-as < %s | opt -indvars +; RUN: opt %s -indvars ; PR4315 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" |