diff options
Diffstat (limited to 'llvm/test/Transforms/InstCombine')
297 files changed, 325 insertions, 325 deletions
diff --git a/llvm/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll b/llvm/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll index 27056d4cb2b..5d027a74492 100644 --- a/llvm/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll +++ b/llvm/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll @@ -1,6 +1,6 @@ ; This testcase causes instcombine to hang. ; -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine define void @test(i32 %X) { %reg117 = add i32 %X, 0 ; <i32> [#uses=0] diff --git a/llvm/test/Transforms/InstCombine/2002-05-14-SubFailure.ll b/llvm/test/Transforms/InstCombine/2002-05-14-SubFailure.ll index 95dcbf9034e..d2b2b0027a5 100644 --- a/llvm/test/Transforms/InstCombine/2002-05-14-SubFailure.ll +++ b/llvm/test/Transforms/InstCombine/2002-05-14-SubFailure.ll @@ -1,6 +1,6 @@ ; Instcombine was missing a test that caused it to make illegal transformations ; sometimes. In this case, it transforms the sub into an add: -; RUN: opt %s -instcombine -S | grep sub +; RUN: opt < %s -instcombine -S | grep sub ; define i32 @test(i32 %i, i32 %j) { %A = mul i32 %i, %j diff --git a/llvm/test/Transforms/InstCombine/2002-08-02-CastTest.ll b/llvm/test/Transforms/InstCombine/2002-08-02-CastTest.ll index 5835d473da3..363cb21e395 100644 --- a/llvm/test/Transforms/InstCombine/2002-08-02-CastTest.ll +++ b/llvm/test/Transforms/InstCombine/2002-08-02-CastTest.ll @@ -1,7 +1,7 @@ ; This testcase is incorrectly getting completely eliminated. There should be ; SOME instruction named %c here, even if it's a bitwise and. ; -; RUN: opt %s -instcombine -S | grep %c +; RUN: opt < %s -instcombine -S | grep %c ; define i64 @test3(i64 %A) { %c1 = trunc i64 %A to i8 ; <i8> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2002-12-05-MissedConstProp.ll b/llvm/test/Transforms/InstCombine/2002-12-05-MissedConstProp.ll index b06aaf93af0..22574f77f1d 100644 --- a/llvm/test/Transforms/InstCombine/2002-12-05-MissedConstProp.ll +++ b/llvm/test/Transforms/InstCombine/2002-12-05-MissedConstProp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep add +; RUN: opt < %s -instcombine -S | not grep add define i32 @test(i32 %A) { %A.neg = sub i32 0, %A ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll b/llvm/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll index 21a7a8ef0a3..19010d22d72 100644 --- a/llvm/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll +++ b/llvm/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep 4294967295 +; RUN: opt < %s -instcombine -S | grep 4294967295 define i64 @test(i64 %Val) { %tmp.3 = trunc i64 %Val to i32 ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll b/llvm/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll index dee2be03b4f..8645249b7ca 100644 --- a/llvm/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll +++ b/llvm/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output @X = global i32 5 ; <i32*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2003-06-05-BranchInvertInfLoop.ll b/llvm/test/Transforms/InstCombine/2003-06-05-BranchInvertInfLoop.ll index 5d130a885f0..154f3ba65e9 100644 --- a/llvm/test/Transforms/InstCombine/2003-06-05-BranchInvertInfLoop.ll +++ b/llvm/test/Transforms/InstCombine/2003-06-05-BranchInvertInfLoop.ll @@ -2,7 +2,7 @@ ; because it things that the constant value is a not expression... and ; constantly inverts the branch back and forth. ; -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define i8 @test19(i1 %c) { br i1 true, label %True, label %False diff --git a/llvm/test/Transforms/InstCombine/2003-07-21-ExternalConstant.ll b/llvm/test/Transforms/InstCombine/2003-07-21-ExternalConstant.ll index e0f58a8682b..f550c8349f8 100644 --- a/llvm/test/Transforms/InstCombine/2003-07-21-ExternalConstant.ll +++ b/llvm/test/Transforms/InstCombine/2003-07-21-ExternalConstant.ll @@ -10,7 +10,7 @@ ; should pass through the optimizer without failure. ; ; Extra code: -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine ; END. target datalayout = "e-p:32:32" diff --git a/llvm/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll b/llvm/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll index 66dc49560b0..6d227547c8d 100644 --- a/llvm/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll +++ b/llvm/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll @@ -1,6 +1,6 @@ ; This testcase can be simplified by "realizing" that alloca can never return ; null. -; RUN: opt %s -instcombine -simplifycfg | \ +; RUN: opt < %s -instcombine -simplifycfg | \ ; RUN: llvm-dis | not grep br declare i32 @bitmap_clear(...) diff --git a/llvm/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll b/llvm/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll index 6f63837e133..32979191f85 100644 --- a/llvm/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll +++ b/llvm/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep load +; RUN: opt < %s -instcombine -S | grep load define void @test(i32* %P) { ; Dead but not deletable! diff --git a/llvm/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll b/llvm/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll index a55d268ee22..cfe5df6d30a 100644 --- a/llvm/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll +++ b/llvm/test/Transforms/InstCombine/2003-10-29-CallSiteResolve.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output declare i32* @bar() diff --git a/llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll b/llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll index ce608f9d244..c1692f77abb 100644 --- a/llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll +++ b/llvm/test/Transforms/InstCombine/2003-11-03-VarargsCallBug.ll @@ -1,5 +1,5 @@ ; The cast in this testcase is not eliminable on a 32-bit target! -; RUN: opt %s -instcombine -S | grep inttoptr +; RUN: opt < %s -instcombine -S | grep inttoptr target datalayout = "e-p:32:32" diff --git a/llvm/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll b/llvm/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll index f529b247189..8fc0f3471df 100644 --- a/llvm/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll +++ b/llvm/test/Transforms/InstCombine/2003-11-13-ConstExprCastCall.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep call | notcast +; RUN: opt < %s -instcombine -S | grep call | notcast declare void @free(i8*) diff --git a/llvm/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll b/llvm/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll index 1edad826821..bec0b9e0c57 100644 --- a/llvm/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll +++ b/llvm/test/Transforms/InstCombine/2004-01-13-InstCombineInvokePHI.ll @@ -5,7 +5,7 @@ ; invoke instruction, we really cannot perform this transformation at all at ; least without splitting the critical edge. ; -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output declare i8* @test() diff --git a/llvm/test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll b/llvm/test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll index b0a4d89561a..a08e3a884ce 100644 --- a/llvm/test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll +++ b/llvm/test/Transforms/InstCombine/2004-02-23-ShiftShiftOverflow.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep 34 +; RUN: opt < %s -instcombine -S | not grep 34 define i32 @test(i32 %X) { ; Do not fold into shr X, 34, as this uses undefined behavior! diff --git a/llvm/test/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll b/llvm/test/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll index 8ca82325546..ff20d7db948 100644 --- a/llvm/test/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll +++ b/llvm/test/Transforms/InstCombine/2004-03-13-InstCombineInfLoop.ll @@ -1,7 +1,7 @@ ; This testcase caused the combiner to go into an infinite loop, moving the ; cast back and forth, changing the seteq to operate on int vs uint and back. -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define i1 @test(i32 %A, i32 %B) { %C = sub i32 0, %A ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll b/llvm/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll index 8ad15a7b9c8..84f9bad69d8 100644 --- a/llvm/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll +++ b/llvm/test/Transforms/InstCombine/2004-04-04-InstCombineReplaceAllUsesWith.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define i32 @test() { ret i32 0 diff --git a/llvm/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll b/llvm/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll index 955ac148c5b..8b549374a70 100644 --- a/llvm/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll +++ b/llvm/test/Transforms/InstCombine/2004-05-07-UnsizedCastLoad.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output %Ty = type opaque diff --git a/llvm/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll b/llvm/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll index bc5ad97f117..819260b60b1 100644 --- a/llvm/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll +++ b/llvm/test/Transforms/InstCombine/2004-07-27-ConstantExprMul.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output @p = weak global i32 0 ; <i32*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll b/llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll index 3c4e8178cb1..f3e5d77c0c8 100644 --- a/llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll +++ b/llvm/test/Transforms/InstCombine/2004-08-09-RemInfLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine ; This testcase should not send the instcombiner into an infinite loop! diff --git a/llvm/test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll b/llvm/test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll index 759096a9851..1154bb481d3 100644 --- a/llvm/test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll +++ b/llvm/test/Transforms/InstCombine/2004-08-10-BoolSetCC.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {ret i1 false} define i1 @test(i1 %V) { diff --git a/llvm/test/Transforms/InstCombine/2004-09-20-BadLoadCombine.ll b/llvm/test/Transforms/InstCombine/2004-09-20-BadLoadCombine.ll index 48a440f994c..8169d2127f7 100644 --- a/llvm/test/Transforms/InstCombine/2004-09-20-BadLoadCombine.ll +++ b/llvm/test/Transforms/InstCombine/2004-09-20-BadLoadCombine.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -mem2reg -S | \ +; RUN: opt < %s -instcombine -mem2reg -S | \ ; RUN: not grep {i32 1} ; When propagating the load through the select, make sure that the load is diff --git a/llvm/test/Transforms/InstCombine/2004-09-20-BadLoadCombine2.ll b/llvm/test/Transforms/InstCombine/2004-09-20-BadLoadCombine2.ll index d5783fd94e3..e646edf0296 100644 --- a/llvm/test/Transforms/InstCombine/2004-09-20-BadLoadCombine2.ll +++ b/llvm/test/Transforms/InstCombine/2004-09-20-BadLoadCombine2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -mem2reg -simplifycfg | \ +; RUN: opt < %s -instcombine -mem2reg -simplifycfg | \ ; RUN: llvm-dis | grep -v store | not grep {i32 1} ; Test to make sure that instcombine does not accidentally propagate the load diff --git a/llvm/test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.ll b/llvm/test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.ll index 86b29d6219f..27c823b9e63 100644 --- a/llvm/test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.ll +++ b/llvm/test/Transforms/InstCombine/2004-09-28-BadShiftAndSetCC.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep -- -65536 +; RUN: opt < %s -instcombine -S | not grep -- -65536 define i1 @test(i32 %tmp.124) { %tmp.125 = shl i32 %tmp.124, 8 ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll b/llvm/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll index f64171677cb..008afa8a787 100644 --- a/llvm/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll +++ b/llvm/test/Transforms/InstCombine/2004-12-08-RemInfiniteLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine define i32 @test(i32 %X) { %Y = srem i32 %X, undef ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll b/llvm/test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll index ad3c5521ad2..38553d79881 100644 --- a/llvm/test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll +++ b/llvm/test/Transforms/InstCombine/2005-03-04-ShiftOverflow.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {ret i1 false} define i1 @test(i64 %tmp.169) { diff --git a/llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll b/llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll index bed4c9e457d..1ec118006de 100644 --- a/llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll +++ b/llvm/test/Transforms/InstCombine/2005-04-07-UDivSelectCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define i32 @test(i1 %C, i32 %tmp.15) { %tmp.16 = select i1 %C, i32 8, i32 1 ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll b/llvm/test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll index 59b31ad5fef..9846ee72dd4 100644 --- a/llvm/test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll +++ b/llvm/test/Transforms/InstCombine/2005-06-15-DivSelectCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define i32 @_Z13func_31585107li(i32 %l_39521025, i32 %l_59244666) { %shortcirc_val = select i1 false, i32 1, i32 0 ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2005-06-15-ShiftSetCCCrash.ll b/llvm/test/Transforms/InstCombine/2005-06-15-ShiftSetCCCrash.ll index ea7c945a76c..e2d0618a41e 100644 --- a/llvm/test/Transforms/InstCombine/2005-06-15-ShiftSetCCCrash.ll +++ b/llvm/test/Transforms/InstCombine/2005-06-15-ShiftSetCCCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR577 define i1 @test() { diff --git a/llvm/test/Transforms/InstCombine/2005-06-16-RangeCrash.ll b/llvm/test/Transforms/InstCombine/2005-06-16-RangeCrash.ll index 6529b5bc024..f0e60aca59f 100644 --- a/llvm/test/Transforms/InstCombine/2005-06-16-RangeCrash.ll +++ b/llvm/test/Transforms/InstCombine/2005-06-16-RangeCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR585 define i1 @test() { diff --git a/llvm/test/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll b/llvm/test/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll index 79ce58b38b7..3d887ddad02 100644 --- a/llvm/test/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll +++ b/llvm/test/Transforms/InstCombine/2005-06-16-SetCCOrSetCCMiscompile.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {ret i1 true} ; PR586 diff --git a/llvm/test/Transforms/InstCombine/2005-07-07-DeadPHILoop.ll b/llvm/test/Transforms/InstCombine/2005-07-07-DeadPHILoop.ll index 4657c61f620..caee951b704 100644 --- a/llvm/test/Transforms/InstCombine/2005-07-07-DeadPHILoop.ll +++ b/llvm/test/Transforms/InstCombine/2005-07-07-DeadPHILoop.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; This example caused instcombine to spin into an infinite loop. diff --git a/llvm/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll b/llvm/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll index ca4aa57dcfd..10541ef7032 100644 --- a/llvm/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll +++ b/llvm/test/Transforms/InstCombine/2006-02-13-DemandedMiscompile.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep undef define i32 @test(i8 %A) { diff --git a/llvm/test/Transforms/InstCombine/2006-02-28-Crash.ll b/llvm/test/Transforms/InstCombine/2006-02-28-Crash.ll index b496af8185a..9bea14c027e 100644 --- a/llvm/test/Transforms/InstCombine/2006-02-28-Crash.ll +++ b/llvm/test/Transforms/InstCombine/2006-02-28-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define i32 @test() { %tmp203 = icmp eq i32 1, 2 ; <i1> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll b/llvm/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll index 1b74ff25962..aa7d58786b4 100644 --- a/llvm/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll +++ b/llvm/test/Transforms/InstCombine/2006-03-30-ExtractElement.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define float @test(<4 x float> %V) { %V2 = insertelement <4 x float> %V, float 1.000000e+00, i32 3 ; <<4 x float>> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll b/llvm/test/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll index 6d829ed34ff..23ebe92e500 100644 --- a/llvm/test/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll +++ b/llvm/test/Transforms/InstCombine/2006-04-28-ShiftShiftLongLong.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep shl -; RUN: opt %s -instcombine -S | notcast +; RUN: opt < %s -instcombine -S | grep shl +; RUN: opt < %s -instcombine -S | notcast ; This cannot be turned into a sign extending cast! diff --git a/llvm/test/Transforms/InstCombine/2006-05-04-DemandedBitCrash.ll b/llvm/test/Transforms/InstCombine/2006-05-04-DemandedBitCrash.ll index 818b67b5530..e22395fb877 100644 --- a/llvm/test/Transforms/InstCombine/2006-05-04-DemandedBitCrash.ll +++ b/llvm/test/Transforms/InstCombine/2006-05-04-DemandedBitCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; END. define void @test() { diff --git a/llvm/test/Transforms/InstCombine/2006-09-15-CastToBool.ll b/llvm/test/Transforms/InstCombine/2006-09-15-CastToBool.ll index 71d173920c0..ee261ced586 100644 --- a/llvm/test/Transforms/InstCombine/2006-09-15-CastToBool.ll +++ b/llvm/test/Transforms/InstCombine/2006-09-15-CastToBool.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep and +; RUN: opt < %s -instcombine -S | grep and ; PR913 define i32 @test(i32* %tmp1) { diff --git a/llvm/test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll b/llvm/test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll index ba0248c58be..d3ba1e2287a 100644 --- a/llvm/test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll +++ b/llvm/test/Transforms/InstCombine/2006-10-26-VectorReassoc.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep mul | count 2 define <4 x float> @test(<4 x float> %V) { diff --git a/llvm/test/Transforms/InstCombine/2006-11-03-Memmove64.ll b/llvm/test/Transforms/InstCombine/2006-11-03-Memmove64.ll index 10a08ddc0f7..35bb45e2b91 100644 --- a/llvm/test/Transforms/InstCombine/2006-11-03-Memmove64.ll +++ b/llvm/test/Transforms/InstCombine/2006-11-03-Memmove64.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep memmove.i32 ; Instcombine was trying to turn this into a memmove.i32 diff --git a/llvm/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll b/llvm/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll index 9bf19ba662e..7799423f04f 100644 --- a/llvm/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll +++ b/llvm/test/Transforms/InstCombine/2006-11-10-ashr-miscompile.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep lshr +; RUN: opt < %s -instcombine -S | grep lshr ; Verify this is not turned into -1. define i32 @test(i8 %amt) { diff --git a/llvm/test/Transforms/InstCombine/2006-11-27-XorBug.ll b/llvm/test/Transforms/InstCombine/2006-11-27-XorBug.ll index ba33186efa1..1f8b478a50f 100644 --- a/llvm/test/Transforms/InstCombine/2006-11-27-XorBug.ll +++ b/llvm/test/Transforms/InstCombine/2006-11-27-XorBug.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep and.*32 -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | grep and.*32 +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep or.*153 ; PR1014 diff --git a/llvm/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll b/llvm/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll index 8d38f93acbc..7adeb9fd960 100644 --- a/llvm/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll +++ b/llvm/test/Transforms/InstCombine/2006-12-01-BadFPVectorXform.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep sub -; RUN: opt %s -instcombine -S | grep add +; RUN: opt < %s -instcombine -S | grep sub +; RUN: opt < %s -instcombine -S | grep add define <4 x float> @test(<4 x float> %tmp26, <4 x float> %tmp53) { ; (X+Y)-Y != X for fp vectors. diff --git a/llvm/test/Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll b/llvm/test/Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll index 08399bf0cc2..74483c1d9c7 100644 --- a/llvm/test/Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll +++ b/llvm/test/Transforms/InstCombine/2006-12-05-fp-to-int-ext.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep zext +; RUN: opt < %s -instcombine -S | grep zext ; Never merge these two conversions, even though it's possible: this is ; significantly more expensive than the two conversions on some targets diff --git a/llvm/test/Transforms/InstCombine/2006-12-08-ICmp-Combining.ll b/llvm/test/Transforms/InstCombine/2006-12-08-ICmp-Combining.ll index ad861997154..80ee3e2a293 100644 --- a/llvm/test/Transforms/InstCombine/2006-12-08-ICmp-Combining.ll +++ b/llvm/test/Transforms/InstCombine/2006-12-08-ICmp-Combining.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {%bothcond =} define i1 @Doit_bb(i32 %i.0) { diff --git a/llvm/test/Transforms/InstCombine/2006-12-08-Phi-ICmp-Op-Fold.ll b/llvm/test/Transforms/InstCombine/2006-12-08-Phi-ICmp-Op-Fold.ll index c71d7b6b599..5a74bd2ab7d 100644 --- a/llvm/test/Transforms/InstCombine/2006-12-08-Phi-ICmp-Op-Fold.ll +++ b/llvm/test/Transforms/InstCombine/2006-12-08-Phi-ICmp-Op-Fold.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {icmp sgt} ; END. target datalayout = "e-p:32:32" diff --git a/llvm/test/Transforms/InstCombine/2006-12-08-Select-ICmp.ll b/llvm/test/Transforms/InstCombine/2006-12-08-Select-ICmp.ll index ab97e08f235..2665791fe08 100644 --- a/llvm/test/Transforms/InstCombine/2006-12-08-Select-ICmp.ll +++ b/llvm/test/Transforms/InstCombine/2006-12-08-Select-ICmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep select +; RUN: opt < %s -instcombine -S | grep select ; END. target datalayout = "e-p:32:32" diff --git a/llvm/test/Transforms/InstCombine/2006-12-15-Range-Test.ll b/llvm/test/Transforms/InstCombine/2006-12-15-Range-Test.ll index 0233d96b7a9..c3700a00c42 100644 --- a/llvm/test/Transforms/InstCombine/2006-12-15-Range-Test.ll +++ b/llvm/test/Transforms/InstCombine/2006-12-15-Range-Test.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep icmp | count 1 -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {icmp ugt} | count 1 ; END. diff --git a/llvm/test/Transforms/InstCombine/2006-12-23-Select-Cmp-Cmp.ll b/llvm/test/Transforms/InstCombine/2006-12-23-Select-Cmp-Cmp.ll index ec84c736bdc..eba1ac1298c 100644 --- a/llvm/test/Transforms/InstCombine/2006-12-23-Select-Cmp-Cmp.ll +++ b/llvm/test/Transforms/InstCombine/2006-12-23-Select-Cmp-Cmp.ll @@ -1,6 +1,6 @@ ; For PR1065. This causes an assertion in instcombine if a select with two cmp ; operands is encountered. -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; END. target datalayout = "e-p:32:32" diff --git a/llvm/test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll b/llvm/test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll index 01c630163ff..e5238a577d2 100644 --- a/llvm/test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll +++ b/llvm/test/Transforms/InstCombine/2007-01-13-ExtCompareMiscompile.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {icmp ugt} +; RUN: opt < %s -instcombine -S | grep {icmp ugt} ; PR1107 ; PR1940 diff --git a/llvm/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll b/llvm/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll index e807766c414..d2d215fa86d 100644 --- a/llvm/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll +++ b/llvm/test/Transforms/InstCombine/2007-01-14-FcmpSelf.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {fcmp uno.*0.0} +; RUN: opt < %s -instcombine -S | grep {fcmp uno.*0.0} ; PR1111 define i1 @test(double %X) { %tmp = fcmp une double %X, %X diff --git a/llvm/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll b/llvm/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll index 3cbf401e3d2..fed2255c0e2 100644 --- a/llvm/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll +++ b/llvm/test/Transforms/InstCombine/2007-01-18-VectorInfLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define <4 x i32> @test(<4 x i32> %A) { %B = xor <4 x i32> %A, < i32 -1, i32 -1, i32 -1, i32 -1 > diff --git a/llvm/test/Transforms/InstCombine/2007-01-27-AndICmp.ll b/llvm/test/Transforms/InstCombine/2007-01-27-AndICmp.ll index 8aa096da0fa..bd15dce11ac 100644 --- a/llvm/test/Transforms/InstCombine/2007-01-27-AndICmp.ll +++ b/llvm/test/Transforms/InstCombine/2007-01-27-AndICmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ugt.*, 1} +; RUN: opt < %s -instcombine -S | grep {ugt.*, 1} define i1 @test(i32 %tmp1030) { %tmp1037 = icmp ne i32 %tmp1030, 40 ; <i1> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2007-02-01-LoadSinkAlloca.ll b/llvm/test/Transforms/InstCombine/2007-02-01-LoadSinkAlloca.ll index 78c5e3d364f..05891a203ab 100644 --- a/llvm/test/Transforms/InstCombine/2007-02-01-LoadSinkAlloca.ll +++ b/llvm/test/Transforms/InstCombine/2007-02-01-LoadSinkAlloca.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -mem2reg -S | grep {%A = alloca} -; RUN: opt %s -instcombine -mem2reg -S | \ +; RUN: opt < %s -instcombine -mem2reg -S | grep {%A = alloca} +; RUN: opt < %s -instcombine -mem2reg -S | \ ; RUN: not grep {%B = alloca} ; END. diff --git a/llvm/test/Transforms/InstCombine/2007-02-07-PointerCast.ll b/llvm/test/Transforms/InstCombine/2007-02-07-PointerCast.ll index da312041197..bf60991f7dd 100644 --- a/llvm/test/Transforms/InstCombine/2007-02-07-PointerCast.ll +++ b/llvm/test/Transforms/InstCombine/2007-02-07-PointerCast.ll @@ -1,4 +1,4 @@ -;RUN: opt %s -instcombine -S | grep zext +;RUN: opt < %s -instcombine -S | grep zext ; Make sure the uint isn't removed. Instcombine in llvm 1.9 was dropping the ; uint cast which was causing a sign extend. This only affected code with diff --git a/llvm/test/Transforms/InstCombine/2007-02-23-PhiFoldInfLoop.ll b/llvm/test/Transforms/InstCombine/2007-02-23-PhiFoldInfLoop.ll index c16d54cd6be..f31c280661d 100644 --- a/llvm/test/Transforms/InstCombine/2007-02-23-PhiFoldInfLoop.ll +++ b/llvm/test/Transforms/InstCombine/2007-02-23-PhiFoldInfLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep ret +; RUN: opt < %s -instcombine -S | grep ret ; PR1217 target datalayout = "e-p:32:32" diff --git a/llvm/test/Transforms/InstCombine/2007-03-13-CompareMerge.ll b/llvm/test/Transforms/InstCombine/2007-03-13-CompareMerge.ll index 2e4e5c45694..109e4a217fb 100644 --- a/llvm/test/Transforms/InstCombine/2007-03-13-CompareMerge.ll +++ b/llvm/test/Transforms/InstCombine/2007-03-13-CompareMerge.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {icmp sle} +; RUN: opt < %s -instcombine -S | grep {icmp sle} ; PR1244 define i1 @test(i32 %c.3.i, i32 %d.292.2.i) { diff --git a/llvm/test/Transforms/InstCombine/2007-03-25-BadShiftMask.ll b/llvm/test/Transforms/InstCombine/2007-03-25-BadShiftMask.ll index 90e22a4c198..c79400413ff 100644 --- a/llvm/test/Transforms/InstCombine/2007-03-25-BadShiftMask.ll +++ b/llvm/test/Transforms/InstCombine/2007-03-25-BadShiftMask.ll @@ -1,5 +1,5 @@ ; PR1271 -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {icmp eq i32 .tmp.*, 2146435072} %struct..0anon = type { i32, i32 } %struct..1anon = type { double } diff --git a/llvm/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll b/llvm/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll index fec93314b30..0d4aac25c28 100644 --- a/llvm/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll +++ b/llvm/test/Transforms/InstCombine/2007-03-25-DoubleShift.ll @@ -1,5 +1,5 @@ ; PR1271 -; RUN: opt %s -instcombine -S | grep and +; RUN: opt < %s -instcombine -S | grep and define i1 @test(i32 %tmp13) { entry: %tmp14 = shl i32 %tmp13, 12 ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2007-03-26-BadShiftMask.ll b/llvm/test/Transforms/InstCombine/2007-03-26-BadShiftMask.ll index 8489102c2ca..5bcb5430606 100644 --- a/llvm/test/Transforms/InstCombine/2007-03-26-BadShiftMask.ll +++ b/llvm/test/Transforms/InstCombine/2007-03-26-BadShiftMask.ll @@ -1,5 +1,5 @@ ; PR1271 -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {ashr i32 %.mp137, 2} ; END. diff --git a/llvm/test/Transforms/InstCombine/2007-03-27-PR1280.ll b/llvm/test/Transforms/InstCombine/2007-03-27-PR1280.ll index a5ac78e4d92..7700c7dd8a6 100644 --- a/llvm/test/Transforms/InstCombine/2007-03-27-PR1280.ll +++ b/llvm/test/Transforms/InstCombine/2007-03-27-PR1280.ll @@ -4,7 +4,7 @@ ; is not done. It should be removed when code gen supports "funny" ; bit widths. -; RUN: opt %s -instcombine -S | grep {add i49.*-8388608} +; RUN: opt < %s -instcombine -S | grep {add i49.*-8388608} define i49 @test5(i49 %x) { ;; If we have ADD(XOR(AND(X, 0xFF), 0x80), 0xF..F80), it's a sext. diff --git a/llvm/test/Transforms/InstCombine/2007-04-04-BadFoldBitcastIntoMalloc.ll b/llvm/test/Transforms/InstCombine/2007-04-04-BadFoldBitcastIntoMalloc.ll index cfaff182f3d..b59d3c80335 100644 --- a/llvm/test/Transforms/InstCombine/2007-04-04-BadFoldBitcastIntoMalloc.ll +++ b/llvm/test/Transforms/InstCombine/2007-04-04-BadFoldBitcastIntoMalloc.ll @@ -2,7 +2,7 @@ ; a malloc messes up the element count, causing an extra 4GB to be allocated on ; 64-bit targets. ; -; RUN: opt %s -instcombine -S | not grep {= add } +; RUN: opt < %s -instcombine -S | not grep {= add } target datalayout = "e-p:64:64:64-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 = "x86_64-unknown-freebsd6.2" diff --git a/llvm/test/Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll b/llvm/test/Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll index ee21ab816ba..22eb2c23c34 100644 --- a/llvm/test/Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll +++ b/llvm/test/Transforms/InstCombine/2007-04-08-SingleEltVectorCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR1304 define i64 @bork(<1 x i64> %vec) { diff --git a/llvm/test/Transforms/InstCombine/2007-05-04-Crash.ll b/llvm/test/Transforms/InstCombine/2007-05-04-Crash.ll index b205ca888a4..9f50d8ac9b0 100644 --- a/llvm/test/Transforms/InstCombine/2007-05-04-Crash.ll +++ b/llvm/test/Transforms/InstCombine/2007-05-04-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR1384 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/InstCombine/2007-05-10-icmp-or.ll b/llvm/test/Transforms/InstCombine/2007-05-10-icmp-or.ll index e2df4fd3c1e..4af5dfeef5d 100644 --- a/llvm/test/Transforms/InstCombine/2007-05-10-icmp-or.ll +++ b/llvm/test/Transforms/InstCombine/2007-05-10-icmp-or.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define i1 @test(i32 %tmp9) { %tmp20 = icmp ugt i32 %tmp9, 255 ; <i1> [#uses=1] %tmp11.not = icmp sgt i32 %tmp9, 255 ; <i1> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2007-05-14-Crash.ll b/llvm/test/Transforms/InstCombine/2007-05-14-Crash.ll index c887b76ed8c..a3c010d2c42 100644 --- a/llvm/test/Transforms/InstCombine/2007-05-14-Crash.ll +++ b/llvm/test/Transforms/InstCombine/2007-05-14-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output 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 = "powerpc-apple-darwin8.8.0" diff --git a/llvm/test/Transforms/InstCombine/2007-05-18-CastFoldBug.ll b/llvm/test/Transforms/InstCombine/2007-05-18-CastFoldBug.ll index a73a0738b6d..40818d40c29 100644 --- a/llvm/test/Transforms/InstCombine/2007-05-18-CastFoldBug.ll +++ b/llvm/test/Transforms/InstCombine/2007-05-18-CastFoldBug.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {call.*sret} +; RUN: opt < %s -instcombine -S | grep {call.*sret} ; Make sure instcombine doesn't drop the sret attribute. define void @blah(i16* %tmp10) { diff --git a/llvm/test/Transforms/InstCombine/2007-06-06-AshrSignBit.ll b/llvm/test/Transforms/InstCombine/2007-06-06-AshrSignBit.ll index b214900839b..62b93513b76 100644 --- a/llvm/test/Transforms/InstCombine/2007-06-06-AshrSignBit.ll +++ b/llvm/test/Transforms/InstCombine/2007-06-06-AshrSignBit.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ashr} +; RUN: opt < %s -instcombine -S | grep {ashr} ; PR1499 define void @av_cmp_q_cond_true(i32* %retval, i32* %tmp9, i64* %tmp10) { diff --git a/llvm/test/Transforms/InstCombine/2007-06-21-DivCompareMiscomp.ll b/llvm/test/Transforms/InstCombine/2007-06-21-DivCompareMiscomp.ll index fa79790a314..af539c12a33 100644 --- a/llvm/test/Transforms/InstCombine/2007-06-21-DivCompareMiscomp.ll +++ b/llvm/test/Transforms/InstCombine/2007-06-21-DivCompareMiscomp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i1 true} +; RUN: opt < %s -instcombine -S | grep {ret i1 true} ; rdar://5278853 define i1 @test(i32 %tmp468) { diff --git a/llvm/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll b/llvm/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll index 56d7ad6ae51..3f76187b780 100644 --- a/llvm/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll +++ b/llvm/test/Transforms/InstCombine/2007-08-02-InfiniteLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR1594 define i64 @test(i16 %tmp510, i16 %tmp512) { diff --git a/llvm/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll b/llvm/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll index bcd5a2870a8..c27fe0ab6a6 100644 --- a/llvm/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll +++ b/llvm/test/Transforms/InstCombine/2007-09-10-AliasConstFold.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep icmp +; RUN: opt < %s -instcombine -S | grep icmp ; PR1646 @__gthrw_pthread_cancel = alias weak i32 (i32)* @pthread_cancel ; <i32 (i32)*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2007-09-11-Trampoline.ll b/llvm/test/Transforms/InstCombine/2007-09-11-Trampoline.ll index 16d523b29dd..d8f3d97017b 100644 --- a/llvm/test/Transforms/InstCombine/2007-09-11-Trampoline.ll +++ b/llvm/test/Transforms/InstCombine/2007-09-11-Trampoline.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {call i32 @f} +; RUN: opt < %s -instcombine -S | grep {call i32 @f} %struct.FRAME.nest = type { i32, i32 (i32)* } %struct.__builtin_trampoline = type { [10 x i8] } diff --git a/llvm/test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll b/llvm/test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll index 7fa691f6750..23ee12ba754 100644 --- a/llvm/test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll +++ b/llvm/test/Transforms/InstCombine/2007-09-17-AliasConstFold2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep icmp +; RUN: opt < %s -instcombine -S | grep icmp ; PR1678 @A = alias weak void ()* @B ; <void ()*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll b/llvm/test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll index c64cb220a7e..3862de455d5 100644 --- a/llvm/test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll +++ b/llvm/test/Transforms/InstCombine/2007-10-10-EliminateMemCpy.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | not grep call -; RUN: opt %s -std-compile-opts -S | not grep xyz +; RUN: opt < %s -instcombine -S | not grep call +; RUN: opt < %s -std-compile-opts -S | not grep xyz @.str = internal constant [4 x i8] c"xyz\00" ; <[4 x i8]*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2007-10-12-Crash.ll b/llvm/test/Transforms/InstCombine/2007-10-12-Crash.ll index 15194944e2f..b3d9f02b68a 100644 --- a/llvm/test/Transforms/InstCombine/2007-10-12-Crash.ll +++ b/llvm/test/Transforms/InstCombine/2007-10-12-Crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output %struct.Ray = type { %struct.Vec, %struct.Vec } %struct.Scene = type { i32 (...)** } diff --git a/llvm/test/Transforms/InstCombine/2007-10-28-stacksave.ll b/llvm/test/Transforms/InstCombine/2007-10-28-stacksave.ll index 6790a2e6594..76bceb6879b 100644 --- a/llvm/test/Transforms/InstCombine/2007-10-28-stacksave.ll +++ b/llvm/test/Transforms/InstCombine/2007-10-28-stacksave.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {call.*stacksave} +; RUN: opt < %s -instcombine -S | grep {call.*stacksave} ; PR1745 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" target triple = "i686-apple-darwin8" diff --git a/llvm/test/Transforms/InstCombine/2007-10-31-RangeCrash.ll b/llvm/test/Transforms/InstCombine/2007-10-31-RangeCrash.ll index a197e288fdf..8105b4ba557 100644 --- a/llvm/test/Transforms/InstCombine/2007-10-31-RangeCrash.ll +++ b/llvm/test/Transforms/InstCombine/2007-10-31-RangeCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output 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-f128:64:128" target triple = "powerpc-apple-darwin8" diff --git a/llvm/test/Transforms/InstCombine/2007-10-31-StringCrash.ll b/llvm/test/Transforms/InstCombine/2007-10-31-StringCrash.ll index 392f884f264..220f3e22b99 100644 --- a/llvm/test/Transforms/InstCombine/2007-10-31-StringCrash.ll +++ b/llvm/test/Transforms/InstCombine/2007-10-31-StringCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output 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" target triple = "i686-apple-darwin8" diff --git a/llvm/test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll b/llvm/test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll index c374262d7b4..e1549a0fe54 100644 --- a/llvm/test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll +++ b/llvm/test/Transforms/InstCombine/2007-11-07-OpaqueAlignCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR1780 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/InstCombine/2007-11-15-CompareMiscomp.ll b/llvm/test/Transforms/InstCombine/2007-11-15-CompareMiscomp.ll index 051b5f480ca..5282739d5c7 100644 --- a/llvm/test/Transforms/InstCombine/2007-11-15-CompareMiscomp.ll +++ b/llvm/test/Transforms/InstCombine/2007-11-15-CompareMiscomp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {icmp eq i32 %In, 1} +; RUN: opt < %s -instcombine -S | grep {icmp eq i32 %In, 1} ; PR1800 define i1 @test(i32 %In) { diff --git a/llvm/test/Transforms/InstCombine/2007-11-22-IcmpCrash.ll b/llvm/test/Transforms/InstCombine/2007-11-22-IcmpCrash.ll index 65273cdbe34..f71b99ce1a4 100644 --- a/llvm/test/Transforms/InstCombine/2007-11-22-IcmpCrash.ll +++ b/llvm/test/Transforms/InstCombine/2007-11-22-IcmpCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR1817 define i1 @test1(i32 %X) { diff --git a/llvm/test/Transforms/InstCombine/2007-11-25-CompatibleAttributes.ll b/llvm/test/Transforms/InstCombine/2007-11-25-CompatibleAttributes.ll index c904d009c5b..24394c63e4d 100644 --- a/llvm/test/Transforms/InstCombine/2007-11-25-CompatibleAttributes.ll +++ b/llvm/test/Transforms/InstCombine/2007-11-25-CompatibleAttributes.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep bitcast +; RUN: opt < %s -instcombine -S | not grep bitcast ; PR1716 @.str = internal constant [4 x i8] c"%d\0A\00" ; <[4 x i8]*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2007-12-10-ConstFoldCompare.ll b/llvm/test/Transforms/InstCombine/2007-12-10-ConstFoldCompare.ll index 29a82f3dfad..6420537b9de 100644 --- a/llvm/test/Transforms/InstCombine/2007-12-10-ConstFoldCompare.ll +++ b/llvm/test/Transforms/InstCombine/2007-12-10-ConstFoldCompare.ll @@ -1,6 +1,6 @@ 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 = "i686-pc-linux-gnu" -; RUN: opt %s -instcombine -S | not grep {ret i1 0} +; RUN: opt < %s -instcombine -S | not grep {ret i1 0} ; PR1850 define i1 @test() { diff --git a/llvm/test/Transforms/InstCombine/2007-12-12-GEPScale.ll b/llvm/test/Transforms/InstCombine/2007-12-12-GEPScale.ll index dae18aee619..cea87f2a466 100644 --- a/llvm/test/Transforms/InstCombine/2007-12-12-GEPScale.ll +++ b/llvm/test/Transforms/InstCombine/2007-12-12-GEPScale.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep 1431655764 +; RUN: opt < %s -instcombine -S | not grep 1431655764 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/InstCombine/2007-12-16-AsmNoUnwind.ll b/llvm/test/Transforms/InstCombine/2007-12-16-AsmNoUnwind.ll index f4229251f23..85cf9b6904c 100644 --- a/llvm/test/Transforms/InstCombine/2007-12-16-AsmNoUnwind.ll +++ b/llvm/test/Transforms/InstCombine/2007-12-16-AsmNoUnwind.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep nounwind +; RUN: opt < %s -instcombine -S | grep nounwind define void @bar() { entry: diff --git a/llvm/test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll b/llvm/test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll index 7e1f3dc66ee..cc89f6dd205 100644 --- a/llvm/test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll +++ b/llvm/test/Transforms/InstCombine/2007-12-18-AddSelCmpSub.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {add} | count 1 +; RUN: opt < %s -instcombine -S | grep {add} | count 1 define i32 @foo(i32 %a) { entry: diff --git a/llvm/test/Transforms/InstCombine/2007-12-28-IcmpSub2.ll b/llvm/test/Transforms/InstCombine/2007-12-28-IcmpSub2.ll index 0fa3c66cabe..b59548fd8e6 100644 --- a/llvm/test/Transforms/InstCombine/2007-12-28-IcmpSub2.ll +++ b/llvm/test/Transforms/InstCombine/2007-12-28-IcmpSub2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -mem2reg -instcombine -S | grep "ret i32 1" | count 8 +; RUN: opt < %s -mem2reg -instcombine -S | grep "ret i32 1" | count 8 define i32 @test1() { entry: diff --git a/llvm/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll b/llvm/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll index d01c404e03f..5f4fa478dab 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-06-BitCastAttributes.ll @@ -1,5 +1,5 @@ ; Ignore stderr, we expect warnings there -; RUN: opt %s -instcombine 2> /dev/null -S | not grep bitcast +; RUN: opt < %s -instcombine 2> /dev/null -S | not grep bitcast define void @a() { ret void diff --git a/llvm/test/Transforms/InstCombine/2008-01-06-CastCrash.ll b/llvm/test/Transforms/InstCombine/2008-01-06-CastCrash.ll index 02fb399f913..097a0ce849d 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-06-CastCrash.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-06-CastCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define <2 x i32> @f() { ret <2 x i32> undef diff --git a/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll b/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll index d31d4ac6f77..407ff4ddc29 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-06-VoidCast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep bitcast +; RUN: opt < %s -instcombine -S | not grep bitcast define void @f(i16 %y) { ret void diff --git a/llvm/test/Transforms/InstCombine/2008-01-13-AndCmpCmp.ll b/llvm/test/Transforms/InstCombine/2008-01-13-AndCmpCmp.ll index a823210fcac..fbc8ba972a0 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-13-AndCmpCmp.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-13-AndCmpCmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep and +; RUN: opt < %s -instcombine -S | grep and ; PR1907 define i1 @test(i32 %c84.17) { diff --git a/llvm/test/Transforms/InstCombine/2008-01-13-NoBitCastAttributes.ll b/llvm/test/Transforms/InstCombine/2008-01-13-NoBitCastAttributes.ll index b573f8a173f..7b3281ff4ea 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-13-NoBitCastAttributes.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-13-NoBitCastAttributes.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep bitcast | count 2 +; RUN: opt < %s -instcombine -S | grep bitcast | count 2 define i32 @b(i32* inreg %x) signext { ret i32 0 diff --git a/llvm/test/Transforms/InstCombine/2008-01-14-DoubleNest.ll b/llvm/test/Transforms/InstCombine/2008-01-14-DoubleNest.ll index ecd635eef0b..6401dfd0c11 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-14-DoubleNest.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-14-DoubleNest.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output %struct.FRAME.nest = type { i32, i32 (i32*)* } %struct.__builtin_trampoline = type { [10 x i8] } diff --git a/llvm/test/Transforms/InstCombine/2008-01-14-VarArgTrampoline.ll b/llvm/test/Transforms/InstCombine/2008-01-14-VarArgTrampoline.ll index dabd2e6300c..9bb94089393 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-14-VarArgTrampoline.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-14-VarArgTrampoline.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep zeroext +; RUN: opt < %s -instcombine -S | grep zeroext %struct.FRAME.nest = type { i32, i32 (...)* } %struct.__builtin_trampoline = type { [10 x i8] } diff --git a/llvm/test/Transforms/InstCombine/2008-01-21-MismatchedCastAndCompare.ll b/llvm/test/Transforms/InstCombine/2008-01-21-MismatchedCastAndCompare.ll index a49853dc0f7..be19bcc07a5 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-21-MismatchedCastAndCompare.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-21-MismatchedCastAndCompare.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | notcast -; RUN: opt %s -instcombine -S | not grep {icmp s} +; RUN: opt < %s -instcombine -S | notcast +; RUN: opt < %s -instcombine -S | not grep {icmp s} ; PR1940 define i1 @test1(i8 %A, i8 %B) { diff --git a/llvm/test/Transforms/InstCombine/2008-01-21-MulTrunc.ll b/llvm/test/Transforms/InstCombine/2008-01-21-MulTrunc.ll index 5defb654282..13f3d9f9037 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-21-MulTrunc.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-21-MulTrunc.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | notcast +; RUN: opt < %s -instcombine -S | notcast define i16 @test1(i16 %a) { %tmp = zext i16 %a to i32 ; <i32> [#uses=2] diff --git a/llvm/test/Transforms/InstCombine/2008-01-27-FloatSelect.ll b/llvm/test/Transforms/InstCombine/2008-01-27-FloatSelect.ll index 0684d209d37..c161bcc9045 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-27-FloatSelect.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-27-FloatSelect.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep select +; RUN: opt < %s -instcombine -S | grep select define double @fold(i1 %a, double %b) { %s = select i1 %a, double 0., double 1. diff --git a/llvm/test/Transforms/InstCombine/2008-01-29-AddICmp.ll b/llvm/test/Transforms/InstCombine/2008-01-29-AddICmp.ll index 0c984356c9b..28a94ce07ad 100644 --- a/llvm/test/Transforms/InstCombine/2008-01-29-AddICmp.ll +++ b/llvm/test/Transforms/InstCombine/2008-01-29-AddICmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep {a.off} +; RUN: opt < %s -instcombine -S | not grep {a.off} ; PR1949 define i1 @test1(i32 %a) { diff --git a/llvm/test/Transforms/InstCombine/2008-02-13-MulURem.ll b/llvm/test/Transforms/InstCombine/2008-02-13-MulURem.ll index c10128e33f2..a88c5109724 100644 --- a/llvm/test/Transforms/InstCombine/2008-02-13-MulURem.ll +++ b/llvm/test/Transforms/InstCombine/2008-02-13-MulURem.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep rem +; RUN: opt < %s -instcombine -S | grep rem ; PR1933 define i32 @fold(i32 %a) { diff --git a/llvm/test/Transforms/InstCombine/2008-02-16-SDivOverflow.ll b/llvm/test/Transforms/InstCombine/2008-02-16-SDivOverflow.ll index f6ba64d938e..af61c150a7f 100644 --- a/llvm/test/Transforms/InstCombine/2008-02-16-SDivOverflow.ll +++ b/llvm/test/Transforms/InstCombine/2008-02-16-SDivOverflow.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i.* 0} | count 2 +; RUN: opt < %s -instcombine -S | grep {ret i.* 0} | count 2 ; PR2048 define i32 @i(i32 %a) { diff --git a/llvm/test/Transforms/InstCombine/2008-02-16-SDivOverflow2.ll b/llvm/test/Transforms/InstCombine/2008-02-16-SDivOverflow2.ll index 706a82a86d1..d26dec11e25 100644 --- a/llvm/test/Transforms/InstCombine/2008-02-16-SDivOverflow2.ll +++ b/llvm/test/Transforms/InstCombine/2008-02-16-SDivOverflow2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {sdiv i8 \%a, 9} +; RUN: opt < %s -instcombine -S | grep {sdiv i8 \%a, 9} ; PR2048 define i8 @i(i8 %a) { diff --git a/llvm/test/Transforms/InstCombine/2008-02-23-MulSub.ll b/llvm/test/Transforms/InstCombine/2008-02-23-MulSub.ll index a89e83b7e34..bb21c4b0341 100644 --- a/llvm/test/Transforms/InstCombine/2008-02-23-MulSub.ll +++ b/llvm/test/Transforms/InstCombine/2008-02-23-MulSub.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep mul +; RUN: opt < %s -instcombine -S | not grep mul define i26 @test(i26 %a) nounwind { entry: diff --git a/llvm/test/Transforms/InstCombine/2008-02-28-OrFCmpCrash.ll b/llvm/test/Transforms/InstCombine/2008-02-28-OrFCmpCrash.ll index 9c3f477937f..7f8bd4fb8a9 100644 --- a/llvm/test/Transforms/InstCombine/2008-02-28-OrFCmpCrash.ll +++ b/llvm/test/Transforms/InstCombine/2008-02-28-OrFCmpCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis +; RUN: opt < %s -instcombine | llvm-dis ; rdar://5771353 define float @test(float %x, x86_fp80 %y) nounwind readonly { diff --git a/llvm/test/Transforms/InstCombine/2008-03-13-IntToPtr.ll b/llvm/test/Transforms/InstCombine/2008-03-13-IntToPtr.ll index 8bdfac7345f..da7e49ee847 100644 --- a/llvm/test/Transforms/InstCombine/2008-03-13-IntToPtr.ll +++ b/llvm/test/Transforms/InstCombine/2008-03-13-IntToPtr.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {16} | count 1 +; RUN: opt < %s -instcombine -S | grep {16} | count 1 define i8* @bork(i8** %qux) { %tmp275 = load i8** %qux, align 1 diff --git a/llvm/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll b/llvm/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll index 47b9d50ef96..aa38065a714 100644 --- a/llvm/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll +++ b/llvm/test/Transforms/InstCombine/2008-04-22-ByValBitcast.ll @@ -1,6 +1,6 @@ ;; The bitcast cannot be eliminated because byval arguments need ;; the correct type, or at least a type of the correct size. -; RUN: opt %s -instcombine -S | grep bitcast +; RUN: opt < %s -instcombine -S | grep bitcast 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" target triple = "i386-apple-darwin9" %struct.NSRect = type { [4 x float] } diff --git a/llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll b/llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll index e7d2d931a0d..626564da936 100644 --- a/llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll +++ b/llvm/test/Transforms/InstCombine/2008-04-28-VolatileStore.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {volatile store} +; RUN: opt < %s -instcombine -S | grep {volatile store} define void @test() { %votf = alloca <4 x float> ; <<4 x float>*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/2008-04-29-VolatileLoadDontMerge.ll b/llvm/test/Transforms/InstCombine/2008-04-29-VolatileLoadDontMerge.ll index 469492b6548..f2cc7254a32 100644 --- a/llvm/test/Transforms/InstCombine/2008-04-29-VolatileLoadDontMerge.ll +++ b/llvm/test/Transforms/InstCombine/2008-04-29-VolatileLoadDontMerge.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {volatile load} | count 2 +; RUN: opt < %s -instcombine -S | grep {volatile load} | count 2 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" target triple = "i386-apple-darwin8" @g_1 = internal global i32 0 ; <i32*> [#uses=3] diff --git a/llvm/test/Transforms/InstCombine/2008-04-29-VolatileLoadMerge.ll b/llvm/test/Transforms/InstCombine/2008-04-29-VolatileLoadMerge.ll index 7ca62ba2d56..176162d3863 100644 --- a/llvm/test/Transforms/InstCombine/2008-04-29-VolatileLoadMerge.ll +++ b/llvm/test/Transforms/InstCombine/2008-04-29-VolatileLoadMerge.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {volatile load} | count 2 +; RUN: opt < %s -instcombine -S | grep {volatile load} | count 2 ; PR2262 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" target triple = "i386-apple-darwin8" diff --git a/llvm/test/Transforms/InstCombine/2008-05-08-LiveStoreDelete.ll b/llvm/test/Transforms/InstCombine/2008-05-08-LiveStoreDelete.ll index 2b2e2aae114..bbd004213d0 100644 --- a/llvm/test/Transforms/InstCombine/2008-05-08-LiveStoreDelete.ll +++ b/llvm/test/Transforms/InstCombine/2008-05-08-LiveStoreDelete.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {store i8} | count 3 +; RUN: opt < %s -instcombine -S | grep {store i8} | count 3 ; PR2297 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" target triple = "i386-apple-darwin8" diff --git a/llvm/test/Transforms/InstCombine/2008-05-09-SinkOfInvoke.ll b/llvm/test/Transforms/InstCombine/2008-05-09-SinkOfInvoke.ll index 4fe7746503e..d56a1a0b786 100644 --- a/llvm/test/Transforms/InstCombine/2008-05-09-SinkOfInvoke.ll +++ b/llvm/test/Transforms/InstCombine/2008-05-09-SinkOfInvoke.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR2303 %"struct.std::ctype<char>" = type { %"struct.std::locale::facet", i32*, i8, i32*, i32*, i16*, i8, [256 x i8], [256 x i8], i8 } %"struct.std::locale::facet" = type { i32 (...)**, i32 } diff --git a/llvm/test/Transforms/InstCombine/2008-05-17-InfLoop.ll b/llvm/test/Transforms/InstCombine/2008-05-17-InfLoop.ll index 366d48360dd..2939a482165 100644 --- a/llvm/test/Transforms/InstCombine/2008-05-17-InfLoop.ll +++ b/llvm/test/Transforms/InstCombine/2008-05-17-InfLoop.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR2339 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-s0:0:64-f80:32:32" target triple = "i686-pc-linux-gnu" diff --git a/llvm/test/Transforms/InstCombine/2008-05-18-FoldIntToPtr.ll b/llvm/test/Transforms/InstCombine/2008-05-18-FoldIntToPtr.ll index 8e508d01ce2..b34fc1e991d 100644 --- a/llvm/test/Transforms/InstCombine/2008-05-18-FoldIntToPtr.ll +++ b/llvm/test/Transforms/InstCombine/2008-05-18-FoldIntToPtr.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i1 false} | count 2 +; RUN: opt < %s -instcombine -S | grep {ret i1 false} | count 2 ; PR2329 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/InstCombine/2008-05-22-IDivVector.ll b/llvm/test/Transforms/InstCombine/2008-05-22-IDivVector.ll index f627a348937..f7ba99c6b44 100644 --- a/llvm/test/Transforms/InstCombine/2008-05-22-IDivVector.ll +++ b/llvm/test/Transforms/InstCombine/2008-05-22-IDivVector.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output define <3 x i8> @f(<3 x i8> %i) { %A = sdiv <3 x i8> %i, %i diff --git a/llvm/test/Transforms/InstCombine/2008-05-22-NegValVector.ll b/llvm/test/Transforms/InstCombine/2008-05-22-NegValVector.ll index 94e63c86495..bf92faf2fec 100644 --- a/llvm/test/Transforms/InstCombine/2008-05-22-NegValVector.ll +++ b/llvm/test/Transforms/InstCombine/2008-05-22-NegValVector.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep sub +; RUN: opt < %s -instcombine -S | not grep sub define <3 x i8> @f(<3 x i8> %a) { %A = sub <3 x i8> zeroinitializer, %a diff --git a/llvm/test/Transforms/InstCombine/2008-05-23-CompareFold.ll b/llvm/test/Transforms/InstCombine/2008-05-23-CompareFold.ll index f61fb255332..2de5af73573 100644 --- a/llvm/test/Transforms/InstCombine/2008-05-23-CompareFold.ll +++ b/llvm/test/Transforms/InstCombine/2008-05-23-CompareFold.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i1 false} +; RUN: opt < %s -instcombine -S | grep {ret i1 false} ; PR2359 define i1 @f(i8* %x) { entry: diff --git a/llvm/test/Transforms/InstCombine/2008-05-31-AddBool.ll b/llvm/test/Transforms/InstCombine/2008-05-31-AddBool.ll index 9cbf0504e2a..541669365bd 100644 --- a/llvm/test/Transforms/InstCombine/2008-05-31-AddBool.ll +++ b/llvm/test/Transforms/InstCombine/2008-05-31-AddBool.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {xor} +; RUN: opt < %s -instcombine -S | grep {xor} ; PR2389 define i1 @test(i1 %a, i1 %b) { diff --git a/llvm/test/Transforms/InstCombine/2008-05-31-Bools.ll b/llvm/test/Transforms/InstCombine/2008-05-31-Bools.ll index b87136a690d..a0fe47a6257 100644 --- a/llvm/test/Transforms/InstCombine/2008-05-31-Bools.ll +++ b/llvm/test/Transforms/InstCombine/2008-05-31-Bools.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S > %t +; RUN: opt < %s -instcombine -S > %t ; RUN: grep {xor} %t ; RUN: grep {and} %t ; RUN: not grep {div} %t diff --git a/llvm/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll b/llvm/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll index e40b0f5ce97..5e4a9d0e5b3 100644 --- a/llvm/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll +++ b/llvm/test/Transforms/InstCombine/2008-06-05-ashr-crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine define i65 @foo(i65 %x) nounwind { entry: diff --git a/llvm/test/Transforms/InstCombine/2008-06-08-ICmpPHI.ll b/llvm/test/Transforms/InstCombine/2008-06-08-ICmpPHI.ll index e6214ab505c..917d3ae1f84 100644 --- a/llvm/test/Transforms/InstCombine/2008-06-08-ICmpPHI.ll +++ b/llvm/test/Transforms/InstCombine/2008-06-08-ICmpPHI.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {phi i32} | count 2 +; RUN: opt < %s -instcombine -S | grep {phi i32} | count 2 define void @test() nounwind { entry: diff --git a/llvm/test/Transforms/InstCombine/2008-06-13-InfiniteLoopStore.ll b/llvm/test/Transforms/InstCombine/2008-06-13-InfiniteLoopStore.ll index 5440c36d623..08959c9c7c0 100644 --- a/llvm/test/Transforms/InstCombine/2008-06-13-InfiniteLoopStore.ll +++ b/llvm/test/Transforms/InstCombine/2008-06-13-InfiniteLoopStore.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {store i32} | count 2 +; RUN: opt < %s -instcombine -S | grep {store i32} | count 2 @g_139 = global i32 0 ; <i32*> [#uses=2] diff --git a/llvm/test/Transforms/InstCombine/2008-06-13-ReadOnlyCallStore.ll b/llvm/test/Transforms/InstCombine/2008-06-13-ReadOnlyCallStore.ll index 9b32b00e299..aed1b14ce31 100644 --- a/llvm/test/Transforms/InstCombine/2008-06-13-ReadOnlyCallStore.ll +++ b/llvm/test/Transforms/InstCombine/2008-06-13-ReadOnlyCallStore.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {store i8} | count 2 +; RUN: opt < %s -instcombine -S | grep {store i8} | count 2 define i32 @a(i8* %s) nounwind { entry: diff --git a/llvm/test/Transforms/InstCombine/2008-06-19-UncondLoad.ll b/llvm/test/Transforms/InstCombine/2008-06-19-UncondLoad.ll index 4307baa5b51..05f1c520008 100644 --- a/llvm/test/Transforms/InstCombine/2008-06-19-UncondLoad.ll +++ b/llvm/test/Transforms/InstCombine/2008-06-19-UncondLoad.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep load | count 3 +; RUN: opt < %s -instcombine -S | grep load | count 3 ; PR2471 declare i32 @x(i32*) diff --git a/llvm/test/Transforms/InstCombine/2008-06-21-CompareMiscomp.ll b/llvm/test/Transforms/InstCombine/2008-06-21-CompareMiscomp.ll index d88ff16090b..c3371c6ae73 100644 --- a/llvm/test/Transforms/InstCombine/2008-06-21-CompareMiscomp.ll +++ b/llvm/test/Transforms/InstCombine/2008-06-21-CompareMiscomp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {icmp eq i32 %In, 15} +; RUN: opt < %s -instcombine -S | grep {icmp eq i32 %In, 15} ; PR2479 ; (See also PR1800.) diff --git a/llvm/test/Transforms/InstCombine/2008-06-24-StackRestore.ll b/llvm/test/Transforms/InstCombine/2008-06-24-StackRestore.ll index fa91cf124b6..83078345518 100644 --- a/llvm/test/Transforms/InstCombine/2008-06-24-StackRestore.ll +++ b/llvm/test/Transforms/InstCombine/2008-06-24-StackRestore.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {call.*llvm.stackrestore} +; RUN: opt < %s -instcombine -S | grep {call.*llvm.stackrestore} ; PR2488 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-pc-linux-gnu" diff --git a/llvm/test/Transforms/InstCombine/2008-07-08-AndICmp.ll b/llvm/test/Transforms/InstCombine/2008-07-08-AndICmp.ll index 4244b4ba2f0..a12f4bdf108 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-08-AndICmp.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-08-AndICmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep icmp | count 1 +; RUN: opt < %s -instcombine -S | grep icmp | count 1 ; PR2330 define i1 @foo(i32 %a, i32 %b) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2008-07-08-ShiftOneAndOne.ll b/llvm/test/Transforms/InstCombine/2008-07-08-ShiftOneAndOne.ll index 2bb22ee03ce..8245b4d017b 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-08-ShiftOneAndOne.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-08-ShiftOneAndOne.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {icmp ne i32 \%a} +; RUN: opt < %s -instcombine -S | grep {icmp ne i32 \%a} ; PR2330 define i1 @foo(i32 %a) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2008-07-08-SubAnd.ll b/llvm/test/Transforms/InstCombine/2008-07-08-SubAnd.ll index 299891fb2c8..009115966f5 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-08-SubAnd.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-08-SubAnd.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep -v {i32 8} +; RUN: opt < %s -instcombine -S | grep -v {i32 8} ; PR2330 define i32 @a(i32 %a) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2008-07-08-VolatileLoadMerge.ll b/llvm/test/Transforms/InstCombine/2008-07-08-VolatileLoadMerge.ll index 93613718daa..ccfb1182769 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-08-VolatileLoadMerge.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-08-VolatileLoadMerge.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {volatile load} | count 2 +; RUN: opt < %s -instcombine -S | grep {volatile load} | count 2 ; PR2496 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" target triple = "i386-apple-darwin8" diff --git a/llvm/test/Transforms/InstCombine/2008-07-09-SubAndError.ll b/llvm/test/Transforms/InstCombine/2008-07-09-SubAndError.ll index b60d190fb74..47a7590076c 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-09-SubAndError.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-09-SubAndError.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep {sub i32 0} +; RUN: opt < %s -instcombine -S | not grep {sub i32 0} ; PR2330 define i32 @foo(i32 %a) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2008-07-10-CastSextBool.ll b/llvm/test/Transforms/InstCombine/2008-07-10-CastSextBool.ll index 2c18a533dc6..e9115320251 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-10-CastSextBool.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-10-CastSextBool.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep {%C = xor i1 %A, true} -; RUN: opt %s -instcombine -S | grep {ret i1 false} +; RUN: opt < %s -instcombine -S | grep {%C = xor i1 %A, true} +; RUN: opt < %s -instcombine -S | grep {ret i1 false} ; PR2539 define i1 @test1(i1 %A) { diff --git a/llvm/test/Transforms/InstCombine/2008-07-10-ICmpBinOp.ll b/llvm/test/Transforms/InstCombine/2008-07-10-ICmpBinOp.ll index 20c7760e5b3..76e30399a66 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-10-ICmpBinOp.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-10-ICmpBinOp.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | not grep add -; RUN: opt %s -instcombine -S | not grep mul +; RUN: opt < %s -instcombine -S | not grep add +; RUN: opt < %s -instcombine -S | not grep mul ; PR2330 define i1 @f(i32 %x, i32 %y) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2008-07-11-RemAnd.ll b/llvm/test/Transforms/InstCombine/2008-07-11-RemAnd.ll index 34b604e49a4..bf53451d66c 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-11-RemAnd.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-11-RemAnd.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep rem +; RUN: opt < %s -instcombine -S | not grep rem ; PR2330 define i32 @a(i32 %b) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2008-07-13-DivZero.ll b/llvm/test/Transforms/InstCombine/2008-07-13-DivZero.ll index 77ca9c62eb8..be1f8c29437 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-13-DivZero.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-13-DivZero.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep {lshr.*3} -; RUN: opt %s -instcombine -S | grep {call .*%cond} +; RUN: opt < %s -instcombine -S | grep {lshr.*3} +; RUN: opt < %s -instcombine -S | grep {call .*%cond} ; PR2506 ; We can simplify the operand of udiv to '8', but not the operand to the diff --git a/llvm/test/Transforms/InstCombine/2008-07-16-fsub.ll b/llvm/test/Transforms/InstCombine/2008-07-16-fsub.ll index fad21f11bdd..672b4e95526 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-16-fsub.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-16-fsub.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep sub +; RUN: opt < %s -instcombine -S | grep sub ; PR2553 define double @test(double %X) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll b/llvm/test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll index 8922635bc50..501d8a66c3e 100644 --- a/llvm/test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll +++ b/llvm/test/Transforms/InstCombine/2008-07-16-sse2_storel_dq.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep {store } +; RUN: opt < %s -instcombine -S | not grep {store } ; PR2296 @G = common global double 0.000000e+00, align 16 diff --git a/llvm/test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.ll b/llvm/test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.ll index 4359c0ad475..e9081f0fa94 100644 --- a/llvm/test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.ll +++ b/llvm/test/Transforms/InstCombine/2008-08-17-ICmpXorSignbit.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep xor +; RUN: opt < %s -instcombine -S | not grep xor define i1 @test1(i8 %x, i8 %y) { %X = xor i8 %x, 128 diff --git a/llvm/test/Transforms/InstCombine/2008-09-02-VectorCrash.ll b/llvm/test/Transforms/InstCombine/2008-09-02-VectorCrash.ll index ef3a901b776..7c50141421d 100644 --- a/llvm/test/Transforms/InstCombine/2008-09-02-VectorCrash.ll +++ b/llvm/test/Transforms/InstCombine/2008-09-02-VectorCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine define void @entry(i32 %m_task_id, i32 %start_x, i32 %end_x, i32 %start_y, i32 %end_y) { br label %1 diff --git a/llvm/test/Transforms/InstCombine/2008-09-29-FoldingOr.ll b/llvm/test/Transforms/InstCombine/2008-09-29-FoldingOr.ll index 44429ae7a88..31ea94a5d83 100644 --- a/llvm/test/Transforms/InstCombine/2008-09-29-FoldingOr.ll +++ b/llvm/test/Transforms/InstCombine/2008-09-29-FoldingOr.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {or i1} +; RUN: opt < %s -instcombine -S | grep {or i1} ; PR2844 define i32 @test(i32 %p_74) { diff --git a/llvm/test/Transforms/InstCombine/2008-10-11-DivCompareFold.ll b/llvm/test/Transforms/InstCombine/2008-10-11-DivCompareFold.ll index 59622527d66..fd36d86a948 100644 --- a/llvm/test/Transforms/InstCombine/2008-10-11-DivCompareFold.ll +++ b/llvm/test/Transforms/InstCombine/2008-10-11-DivCompareFold.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i1 false} +; RUN: opt < %s -instcombine -S | grep {ret i1 false} ; PR2697 define i1 @x(i32 %x) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2008-10-23-ConstFoldWithoutMask.ll b/llvm/test/Transforms/InstCombine/2008-10-23-ConstFoldWithoutMask.ll index 3c07babe61e..d70d05293e8 100644 --- a/llvm/test/Transforms/InstCombine/2008-10-23-ConstFoldWithoutMask.ll +++ b/llvm/test/Transforms/InstCombine/2008-10-23-ConstFoldWithoutMask.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine ; PR2940 define i32 @tstid() { diff --git a/llvm/test/Transforms/InstCombine/2008-11-01-SRemDemandedBits.ll b/llvm/test/Transforms/InstCombine/2008-11-01-SRemDemandedBits.ll index 81258349870..aa077e2ac3b 100644 --- a/llvm/test/Transforms/InstCombine/2008-11-01-SRemDemandedBits.ll +++ b/llvm/test/Transforms/InstCombine/2008-11-01-SRemDemandedBits.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i1 true} +; RUN: opt < %s -instcombine -S | grep {ret i1 true} ; PR2993 define i1 @foo(i32 %x) { diff --git a/llvm/test/Transforms/InstCombine/2008-11-08-FCmp.ll b/llvm/test/Transforms/InstCombine/2008-11-08-FCmp.ll index 517d30f3fd2..c747e9c77c6 100644 --- a/llvm/test/Transforms/InstCombine/2008-11-08-FCmp.ll +++ b/llvm/test/Transforms/InstCombine/2008-11-08-FCmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S > %t +; RUN: opt < %s -instcombine -S > %t ; RUN: grep {icmp eq} %t ; RUN: grep {ret i1 false} %t | count 2 ; RUN: grep {ret i1 true} %t | count 2 diff --git a/llvm/test/Transforms/InstCombine/2008-11-20-DivMulRem.ll b/llvm/test/Transforms/InstCombine/2008-11-20-DivMulRem.ll index 94859cc039e..b2774d6522d 100644 --- a/llvm/test/Transforms/InstCombine/2008-11-20-DivMulRem.ll +++ b/llvm/test/Transforms/InstCombine/2008-11-20-DivMulRem.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S > %t +; RUN: opt < %s -instcombine -S > %t ; RUN: grep urem %t | count 3 ; RUN: grep srem %t | count 1 ; RUN: grep sub %t | count 2 diff --git a/llvm/test/Transforms/InstCombine/2008-11-27-IDivVector.ll b/llvm/test/Transforms/InstCombine/2008-11-27-IDivVector.ll index 12855b8a47f..318a80cbc2a 100644 --- a/llvm/test/Transforms/InstCombine/2008-11-27-IDivVector.ll +++ b/llvm/test/Transforms/InstCombine/2008-11-27-IDivVector.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep div +; RUN: opt < %s -instcombine -S | not grep div define <2 x i8> @f(<2 x i8> %x) { %A = udiv <2 x i8> %x, <i8 1, i8 1> diff --git a/llvm/test/Transforms/InstCombine/2008-11-27-MultiplyIntVec.ll b/llvm/test/Transforms/InstCombine/2008-11-27-MultiplyIntVec.ll index a2578a8bf8b..d8c53fac49e 100644 --- a/llvm/test/Transforms/InstCombine/2008-11-27-MultiplyIntVec.ll +++ b/llvm/test/Transforms/InstCombine/2008-11-27-MultiplyIntVec.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep mul +; RUN: opt < %s -instcombine -S | not grep mul define <2 x i8> @f(<2 x i8> %x) { %A = mul <2 x i8> %x, <i8 1, i8 1> diff --git a/llvm/test/Transforms/InstCombine/2008-11-27-UDivNegative.ll b/llvm/test/Transforms/InstCombine/2008-11-27-UDivNegative.ll index a50e1e87a47..fc90bba7708 100644 --- a/llvm/test/Transforms/InstCombine/2008-11-27-UDivNegative.ll +++ b/llvm/test/Transforms/InstCombine/2008-11-27-UDivNegative.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep div +; RUN: opt < %s -instcombine -S | not grep div define i8 @test(i8 %x) readnone nounwind { %A = udiv i8 %x, 250 diff --git a/llvm/test/Transforms/InstCombine/2008-12-17-SRemNegConstVec.ll b/llvm/test/Transforms/InstCombine/2008-12-17-SRemNegConstVec.ll index 46c9ff2c692..e4c7ebcefc7 100644 --- a/llvm/test/Transforms/InstCombine/2008-12-17-SRemNegConstVec.ll +++ b/llvm/test/Transforms/InstCombine/2008-12-17-SRemNegConstVec.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {i8 2, i8 2} +; RUN: opt < %s -instcombine -S | grep {i8 2, i8 2} ; PR2756 define <2 x i8> @foo(<2 x i8> %x) { diff --git a/llvm/test/Transforms/InstCombine/2009-01-05-i128-crash.ll b/llvm/test/Transforms/InstCombine/2009-01-05-i128-crash.ll index 1676eb6d0f0..d355e0aff8a 100644 --- a/llvm/test/Transforms/InstCombine/2009-01-05-i128-crash.ll +++ b/llvm/test/Transforms/InstCombine/2009-01-05-i128-crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis +; RUN: opt < %s -instcombine | llvm-dis ; PR3235 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-unknown-linux-gnu" diff --git a/llvm/test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll b/llvm/test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll index ab8c7a556bc..a61a94ecbf3 100644 --- a/llvm/test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll +++ b/llvm/test/Transforms/InstCombine/2009-01-08-AlignAlloca.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S > %t +; RUN: opt < %s -instcombine -S > %t ; RUN: grep {, align 4} %t | count 3 ; RUN: grep {, align 8} %t | count 3 ; rdar://6480438 diff --git a/llvm/test/Transforms/InstCombine/2009-01-16-PointerAddrSpace.ll b/llvm/test/Transforms/InstCombine/2009-01-16-PointerAddrSpace.ll index 75bdb1e3f88..ce62f35c103 100644 --- a/llvm/test/Transforms/InstCombine/2009-01-16-PointerAddrSpace.ll +++ b/llvm/test/Transforms/InstCombine/2009-01-16-PointerAddrSpace.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {store.*addrspace(1)} +; RUN: opt < %s -instcombine -S | grep {store.*addrspace(1)} ; PR3335 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" target triple = "i386-apple-darwin9.6" diff --git a/llvm/test/Transforms/InstCombine/2009-01-19-fmod-constant-float-specials.ll b/llvm/test/Transforms/InstCombine/2009-01-19-fmod-constant-float-specials.ll index 7ab0e3e2d0c..79a2f1fd8eb 100644 --- a/llvm/test/Transforms/InstCombine/2009-01-19-fmod-constant-float-specials.ll +++ b/llvm/test/Transforms/InstCombine/2009-01-19-fmod-constant-float-specials.ll @@ -1,7 +1,7 @@ -; RUN: opt %s -simplifycfg -instcombine -S | grep 0x7FF8000000000000 | count 7 -; RUN: opt %s -simplifycfg -instcombine -S | grep 0x7FF00000FFFFFFFF | count 5 -; RUN: opt %s -simplifycfg -instcombine -S | grep {0\\.0} | count 3 -; RUN: opt %s -simplifycfg -instcombine -S | grep {3\\.5} | count 1 +; RUN: opt < %s -simplifycfg -instcombine -S | grep 0x7FF8000000000000 | count 7 +; RUN: opt < %s -simplifycfg -instcombine -S | grep 0x7FF00000FFFFFFFF | count 5 +; RUN: opt < %s -simplifycfg -instcombine -S | grep {0\\.0} | count 3 +; RUN: opt < %s -simplifycfg -instcombine -S | grep {3\\.5} | count 1 ; ; ModuleID = 'apf.c' diff --git a/llvm/test/Transforms/InstCombine/2009-01-19-fmod-constant-float.ll b/llvm/test/Transforms/InstCombine/2009-01-19-fmod-constant-float.ll index 1f4b2d272bc..6bc7ce34d1c 100644 --- a/llvm/test/Transforms/InstCombine/2009-01-19-fmod-constant-float.ll +++ b/llvm/test/Transforms/InstCombine/2009-01-19-fmod-constant-float.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -simplifycfg -instcombine -S | grep 0x3FB99999A0000000 | count 2 -; RUN: opt %s -simplifycfg -instcombine -S | grep 0xBFB99999A0000000 | count 2 +; RUN: opt < %s -simplifycfg -instcombine -S | grep 0x3FB99999A0000000 | count 2 +; RUN: opt < %s -simplifycfg -instcombine -S | grep 0xBFB99999A0000000 | count 2 ; check constant folding for 'frem'. PR 3316. ; ModuleID = 'tt.c' diff --git a/llvm/test/Transforms/InstCombine/2009-01-24-EmptyStruct.ll b/llvm/test/Transforms/InstCombine/2009-01-24-EmptyStruct.ll index 85d7c44b457..4b64b487291 100644 --- a/llvm/test/Transforms/InstCombine/2009-01-24-EmptyStruct.ll +++ b/llvm/test/Transforms/InstCombine/2009-01-24-EmptyStruct.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine ; PR3381 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-unknown-linux-gnu" diff --git a/llvm/test/Transforms/InstCombine/2009-01-31-InfIterate.ll b/llvm/test/Transforms/InstCombine/2009-01-31-InfIterate.ll index 1aecad1800e..815c1a91936 100644 --- a/llvm/test/Transforms/InstCombine/2009-01-31-InfIterate.ll +++ b/llvm/test/Transforms/InstCombine/2009-01-31-InfIterate.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis +; RUN: opt < %s -instcombine | llvm-dis ; PR3452 define i128 @test(i64 %A, i64 %B, i1 %C, i128 %Z, i128 %Y, i64* %P, i64* %Q) { entry: diff --git a/llvm/test/Transforms/InstCombine/2009-01-31-Pressure.ll b/llvm/test/Transforms/InstCombine/2009-01-31-Pressure.ll index 36bfb412641..c3ee9a35ba3 100644 --- a/llvm/test/Transforms/InstCombine/2009-01-31-Pressure.ll +++ b/llvm/test/Transforms/InstCombine/2009-01-31-Pressure.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {%B = add i8 %b, %x} +; RUN: opt < %s -instcombine -S | grep {%B = add i8 %b, %x} ; PR2698 declare void @use1(i1) diff --git a/llvm/test/Transforms/InstCombine/2009-02-04-FPBitcast.ll b/llvm/test/Transforms/InstCombine/2009-02-04-FPBitcast.ll index 9385f45ede1..bc6a2045fa0 100644 --- a/llvm/test/Transforms/InstCombine/2009-02-04-FPBitcast.ll +++ b/llvm/test/Transforms/InstCombine/2009-02-04-FPBitcast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine ; PR3468 define x86_fp80 @cast() { diff --git a/llvm/test/Transforms/InstCombine/2009-02-20-InstCombine-SROA.ll b/llvm/test/Transforms/InstCombine/2009-02-20-InstCombine-SROA.ll index d4c98b5d32d..b29d8d23bc0 100644 --- a/llvm/test/Transforms/InstCombine/2009-02-20-InstCombine-SROA.ll +++ b/llvm/test/Transforms/InstCombine/2009-02-20-InstCombine-SROA.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -scalarrepl -S | not grep { = alloca} +; RUN: opt < %s -instcombine -scalarrepl -S | not grep { = alloca} ; rdar://6417724 ; Instcombine shouldn't do anything to this function that prevents promoting the allocas inside it. diff --git a/llvm/test/Transforms/InstCombine/2009-02-21-LoadCST.ll b/llvm/test/Transforms/InstCombine/2009-02-21-LoadCST.ll index 9c77a69eba9..f56fc388eb5 100644 --- a/llvm/test/Transforms/InstCombine/2009-02-21-LoadCST.ll +++ b/llvm/test/Transforms/InstCombine/2009-02-21-LoadCST.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i32 3679669} +; RUN: opt < %s -instcombine -S | grep {ret i32 3679669} ; PR3595 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/InstCombine/2009-02-25-CrashZeroSizeArray.ll b/llvm/test/Transforms/InstCombine/2009-02-25-CrashZeroSizeArray.ll index fd86042d2ad..a8349f042e4 100644 --- a/llvm/test/Transforms/InstCombine/2009-02-25-CrashZeroSizeArray.ll +++ b/llvm/test/Transforms/InstCombine/2009-02-25-CrashZeroSizeArray.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis +; RUN: opt < %s -instcombine | llvm-dis ; PR3667 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-pc-linux-gnu" diff --git a/llvm/test/Transforms/InstCombine/2009-03-18-vector-ashr-crash.ll b/llvm/test/Transforms/InstCombine/2009-03-18-vector-ashr-crash.ll index 493b8d0f587..c617ca4fcad 100644 --- a/llvm/test/Transforms/InstCombine/2009-03-18-vector-ashr-crash.ll +++ b/llvm/test/Transforms/InstCombine/2009-03-18-vector-ashr-crash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis +; RUN: opt < %s -instcombine | llvm-dis ; PR3826 define void @0(<4 x i16>*, <4 x i16>*) { diff --git a/llvm/test/Transforms/InstCombine/2009-03-20-AShrOverShift.ll b/llvm/test/Transforms/InstCombine/2009-03-20-AShrOverShift.ll index 6b21296ea56..0a07bf34bac 100644 --- a/llvm/test/Transforms/InstCombine/2009-03-20-AShrOverShift.ll +++ b/llvm/test/Transforms/InstCombine/2009-03-20-AShrOverShift.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ashr i32 %val, 31} +; RUN: opt < %s -instcombine -S | grep {ashr i32 %val, 31} ; PR3851 define i32 @foo2(i32 %val) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2009-03-24-InfLoop.ll b/llvm/test/Transforms/InstCombine/2009-03-24-InfLoop.ll index 9ee4014e4cb..4ce04a1eb54 100644 --- a/llvm/test/Transforms/InstCombine/2009-03-24-InfLoop.ll +++ b/llvm/test/Transforms/InstCombine/2009-03-24-InfLoop.ll @@ -1,5 +1,5 @@ ; PR3874 -; RUN: opt %s -instcombine | llvm-dis +; RUN: opt < %s -instcombine | llvm-dis define i1 @test(i32 %x) { %A = lshr i32 3968, %x %B = and i32 %A, 1 diff --git a/llvm/test/Transforms/InstCombine/2009-04-07-MulPromoteToI96.ll b/llvm/test/Transforms/InstCombine/2009-04-07-MulPromoteToI96.ll index 417cc4ef92f..244b22a14de 100644 --- a/llvm/test/Transforms/InstCombine/2009-04-07-MulPromoteToI96.ll +++ b/llvm/test/Transforms/InstCombine/2009-04-07-MulPromoteToI96.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {mul i64} +; RUN: opt < %s -instcombine -S | grep {mul i64} ; rdar://6762288 ; Instcombine should not promote the mul to i96 because it is definitely diff --git a/llvm/test/Transforms/InstCombine/2009-05-23-FCmpToICmp.ll b/llvm/test/Transforms/InstCombine/2009-05-23-FCmpToICmp.ll index dcbf5cc5345..dd14c6beec4 100644 --- a/llvm/test/Transforms/InstCombine/2009-05-23-FCmpToICmp.ll +++ b/llvm/test/Transforms/InstCombine/2009-05-23-FCmpToICmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep cmp +; RUN: opt < %s -instcombine -S | not grep cmp ; rdar://6903175 define i1 @f0(i32 *%a) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll b/llvm/test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll index cce14e985eb..e5355b8d3c5 100644 --- a/llvm/test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll +++ b/llvm/test/Transforms/InstCombine/2009-06-11-StoreAddrSpace.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {store i32 0,} +; RUN: opt < %s -instcombine -S | grep {store i32 0,} ; PR4366 define void @a() { diff --git a/llvm/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll b/llvm/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll index 5b959d75cb1..6beedf83cd6 100644 --- a/llvm/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll +++ b/llvm/test/Transforms/InstCombine/2009-06-16-SRemDemandedBits.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep srem +; RUN: opt < %s -instcombine -S | grep srem ; PR3439 define i32 @a(i32 %x) nounwind { diff --git a/llvm/test/Transforms/InstCombine/2009-07-02-MaskedIntVector.ll b/llvm/test/Transforms/InstCombine/2009-07-02-MaskedIntVector.ll index 2b0967c969f..41940fe885e 100644 --- a/llvm/test/Transforms/InstCombine/2009-07-02-MaskedIntVector.ll +++ b/llvm/test/Transforms/InstCombine/2009-07-02-MaskedIntVector.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis +; RUN: opt < %s -instcombine | llvm-dis ; PR4495 define i32 @test(i64 %test) { diff --git a/llvm/test/Transforms/InstCombine/CPP_min_max.ll b/llvm/test/Transforms/InstCombine/CPP_min_max.ll index d1e39b81c3e..531ce2b07b3 100644 --- a/llvm/test/Transforms/InstCombine/CPP_min_max.ll +++ b/llvm/test/Transforms/InstCombine/CPP_min_max.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep select | not grep {i32\\*} ; This testcase corresponds to PR362, which notices that this horrible code diff --git a/llvm/test/Transforms/InstCombine/IntPtrCast.ll b/llvm/test/Transforms/InstCombine/IntPtrCast.ll index 5a997e01540..448c58d5620 100644 --- a/llvm/test/Transforms/InstCombine/IntPtrCast.ll +++ b/llvm/test/Transforms/InstCombine/IntPtrCast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | notcast +; RUN: opt < %s -instcombine -S | notcast target datalayout = "e-p:32:32" define i32* @test(i32* %P) { diff --git a/llvm/test/Transforms/InstCombine/JavaCompare.ll b/llvm/test/Transforms/InstCombine/JavaCompare.ll index bb38ad49edc..7d0edb84d1e 100644 --- a/llvm/test/Transforms/InstCombine/JavaCompare.ll +++ b/llvm/test/Transforms/InstCombine/JavaCompare.ll @@ -1,7 +1,7 @@ ; This is the sequence of stuff that the Java front-end expands for a single ; <= comparison. Check to make sure we turn it into a <= (only) -; RUN: opt %s -instcombine -S | grep {%c3 = icmp sle i32 %A, %B} +; RUN: opt < %s -instcombine -S | grep {%c3 = icmp sle i32 %A, %B} define i1 @le(i32 %A, i32 %B) { %c1 = icmp sgt i32 %A, %B ; <i1> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/add-shrink.ll b/llvm/test/Transforms/InstCombine/add-shrink.ll index b0ad522fb7d..52b8e327dba 100644 --- a/llvm/test/Transforms/InstCombine/add-shrink.ll +++ b/llvm/test/Transforms/InstCombine/add-shrink.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep {add i32} -; RUN: opt %s -instcombine -S | grep sext | count 1 +; RUN: opt < %s -instcombine -S | grep {add i32} +; RUN: opt < %s -instcombine -S | grep sext | count 1 ; Should only have one sext and the add should be i32 instead of i64. diff --git a/llvm/test/Transforms/InstCombine/add-sitofp.ll b/llvm/test/Transforms/InstCombine/add-sitofp.ll index b2befdd0842..24319df0b76 100644 --- a/llvm/test/Transforms/InstCombine/add-sitofp.ll +++ b/llvm/test/Transforms/InstCombine/add-sitofp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {add i32} +; RUN: opt < %s -instcombine -S | grep {add i32} define double @x(i32 %a, i32 %b) nounwind { %m = lshr i32 %a, 24 diff --git a/llvm/test/Transforms/InstCombine/add3.ll b/llvm/test/Transforms/InstCombine/add3.ll index d95ab5dc6d0..cde3e24215f 100644 --- a/llvm/test/Transforms/InstCombine/add3.ll +++ b/llvm/test/Transforms/InstCombine/add3.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep inttoptr | count 2 +; RUN: opt < %s -instcombine -S | grep inttoptr | count 2 ;; Target triple for gep raising case below. 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/InstCombine/addnegneg.ll b/llvm/test/Transforms/InstCombine/addnegneg.ll index 0f39d712945..a3a09f27ed9 100644 --- a/llvm/test/Transforms/InstCombine/addnegneg.ll +++ b/llvm/test/Transforms/InstCombine/addnegneg.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep { sub } | count 1 +; RUN: opt < %s -instcombine -S | grep { sub } | count 1 ; PR2047 define i32 @l(i32 %a, i32 %b, i32 %c, i32 %d) { diff --git a/llvm/test/Transforms/InstCombine/adjust-for-sminmax.ll b/llvm/test/Transforms/InstCombine/adjust-for-sminmax.ll index afe2f8fc88c..b9b6f702eb6 100644 --- a/llvm/test/Transforms/InstCombine/adjust-for-sminmax.ll +++ b/llvm/test/Transforms/InstCombine/adjust-for-sminmax.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {icmp s\[lg\]t i32 %n, 0} | count 16 +; RUN: opt < %s -instcombine -S | grep {icmp s\[lg\]t i32 %n, 0} | count 16 ; Instcombine should recognize that this code can be adjusted ; to fit the canonical smax/smin pattern. diff --git a/llvm/test/Transforms/InstCombine/align-2d-gep.ll b/llvm/test/Transforms/InstCombine/align-2d-gep.ll index b5d25d3aa78..80aacbce130 100644 --- a/llvm/test/Transforms/InstCombine/align-2d-gep.ll +++ b/llvm/test/Transforms/InstCombine/align-2d-gep.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {align 16} | count 1 +; RUN: opt < %s -instcombine -S | grep {align 16} | count 1 ; A multi-dimensional array in a nested loop doing vector stores that ; aren't yet aligned. Instcombine can understand the addressing in the diff --git a/llvm/test/Transforms/InstCombine/align-addr.ll b/llvm/test/Transforms/InstCombine/align-addr.ll index da2faabc18f..42539371162 100644 --- a/llvm/test/Transforms/InstCombine/align-addr.ll +++ b/llvm/test/Transforms/InstCombine/align-addr.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {align 16} | count 1 +; RUN: opt < %s -instcombine -S | grep {align 16} | count 1 ; Instcombine should be able to prove vector alignment in the ; presence of a few mild address computation tricks. diff --git a/llvm/test/Transforms/InstCombine/align-external.ll b/llvm/test/Transforms/InstCombine/align-external.ll index 025d54e7e82..6e8ad87f19e 100644 --- a/llvm/test/Transforms/InstCombine/align-external.ll +++ b/llvm/test/Transforms/InstCombine/align-external.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | FileCheck %s +; RUN: opt < %s -instcombine -S | FileCheck %s ; Don't assume that external global variables have their preferred ; alignment. They may only have the ABI minimum alignment. diff --git a/llvm/test/Transforms/InstCombine/align-inc.ll b/llvm/test/Transforms/InstCombine/align-inc.ll index 545da15a205..0260ca2c65f 100644 --- a/llvm/test/Transforms/InstCombine/align-inc.ll +++ b/llvm/test/Transforms/InstCombine/align-inc.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep {GLOBAL.*align 16} -; RUN: opt %s -instcombine -S | grep {tmp = load} +; RUN: opt < %s -instcombine -S | grep {GLOBAL.*align 16} +; RUN: opt < %s -instcombine -S | grep {tmp = load} @GLOBAL = internal global [4 x i32] zeroinitializer diff --git a/llvm/test/Transforms/InstCombine/and-or-and.ll b/llvm/test/Transforms/InstCombine/and-or-and.ll index 8f2a1301687..216cd46775a 100644 --- a/llvm/test/Transforms/InstCombine/and-or-and.ll +++ b/llvm/test/Transforms/InstCombine/and-or-and.ll @@ -9,7 +9,7 @@ ; ; Which corresponds to test1. -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {or } define i32 @test1(i32 %X, i32 %Y) { diff --git a/llvm/test/Transforms/InstCombine/and-or.ll b/llvm/test/Transforms/InstCombine/and-or.ll index fe770f78fd6..b4224b38b1c 100644 --- a/llvm/test/Transforms/InstCombine/and-or.ll +++ b/llvm/test/Transforms/InstCombine/and-or.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep {and i32 %a, 1} | count 4 -; RUN: opt %s -instcombine -S | grep {or i32 %0, %b} | count 4 +; RUN: opt < %s -instcombine -S | grep {and i32 %a, 1} | count 4 +; RUN: opt < %s -instcombine -S | grep {or i32 %0, %b} | count 4 define i32 @func1(i32 %a, i32 %b) nounwind readnone { diff --git a/llvm/test/Transforms/InstCombine/apint-and-or-and.ll b/llvm/test/Transforms/InstCombine/apint-and-or-and.ll index 6aad6f0693d..17d29b601e6 100644 --- a/llvm/test/Transforms/InstCombine/apint-and-or-and.ll +++ b/llvm/test/Transforms/InstCombine/apint-and-or-and.ll @@ -11,7 +11,7 @@ ; ; This tests arbitrary precision integers. -; RUN: opt %s -instcombine -S | not grep {or } +; RUN: opt < %s -instcombine -S | not grep {or } ; END. define i17 @test1(i17 %X, i17 %Y) { diff --git a/llvm/test/Transforms/InstCombine/apint-and1.ll b/llvm/test/Transforms/InstCombine/apint-and1.ll index 9fcdee54661..cd4cbb9cf45 100644 --- a/llvm/test/Transforms/InstCombine/apint-and1.ll +++ b/llvm/test/Transforms/InstCombine/apint-and1.ll @@ -1,7 +1,7 @@ ; This test makes sure that and instructions are properly eliminated. ; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0. -; RUN: opt %s -instcombine -S | not grep {and } +; RUN: opt < %s -instcombine -S | not grep {and } ; END. define i39 @test0(i39 %A) { diff --git a/llvm/test/Transforms/InstCombine/apint-and2.ll b/llvm/test/Transforms/InstCombine/apint-and2.ll index 16afb7bab43..ae74472b3d0 100644 --- a/llvm/test/Transforms/InstCombine/apint-and2.ll +++ b/llvm/test/Transforms/InstCombine/apint-and2.ll @@ -1,7 +1,7 @@ ; This test makes sure that and instructions are properly eliminated. ; This test is for Integer BitWidth > 64 && BitWidth <= 1024. -; RUN: opt %s -instcombine -S | not grep {and } +; RUN: opt < %s -instcombine -S | not grep {and } ; END. diff --git a/llvm/test/Transforms/InstCombine/apint-call-cast-target.ll b/llvm/test/Transforms/InstCombine/apint-call-cast-target.ll index ca2440cb8b5..fe336de7524 100644 --- a/llvm/test/Transforms/InstCombine/apint-call-cast-target.ll +++ b/llvm/test/Transforms/InstCombine/apint-call-cast-target.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep call | not grep bitcast +; RUN: opt < %s -instcombine -S | grep call | not grep bitcast target datalayout = "e-p:32:32" target triple = "i686-pc-linux-gnu" diff --git a/llvm/test/Transforms/InstCombine/apint-cast-and-cast.ll b/llvm/test/Transforms/InstCombine/apint-cast-and-cast.ll index 6dc73098df3..251d78f59be 100644 --- a/llvm/test/Transforms/InstCombine/apint-cast-and-cast.ll +++ b/llvm/test/Transforms/InstCombine/apint-cast-and-cast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep bitcast +; RUN: opt < %s -instcombine -S | not grep bitcast define i19 @test1(i43 %val) { %t1 = bitcast i43 %val to i43 diff --git a/llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll b/llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll index ccd030689fe..b2069a93ac4 100644 --- a/llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll +++ b/llvm/test/Transforms/InstCombine/apint-cast-cast-to-and.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep i41 +; RUN: opt < %s -instcombine -S | not grep i41 define i61 @test1(i61 %X) { %Y = trunc i61 %X to i41 ;; Turn i61o an AND diff --git a/llvm/test/Transforms/InstCombine/apint-elim-logicalops.ll b/llvm/test/Transforms/InstCombine/apint-elim-logicalops.ll index c507375fb70..ec60e45d549 100644 --- a/llvm/test/Transforms/InstCombine/apint-elim-logicalops.ll +++ b/llvm/test/Transforms/InstCombine/apint-elim-logicalops.ll @@ -1,6 +1,6 @@ ; Test that elimination of logical operators works with ; arbitrary precision integers. -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {(and\|xor\|add\|shl\|shr)} ; END. diff --git a/llvm/test/Transforms/InstCombine/apint-not.ll b/llvm/test/Transforms/InstCombine/apint-not.ll index 49af162202a..488b7f2c98e 100644 --- a/llvm/test/Transforms/InstCombine/apint-not.ll +++ b/llvm/test/Transforms/InstCombine/apint-not.ll @@ -1,7 +1,7 @@ ; This test makes sure that the xor instructions are properly eliminated ; when arbitrary precision integers are used. -; RUN: opt %s -instcombine -S | not grep xor +; RUN: opt < %s -instcombine -S | not grep xor define i33 @test1(i33 %A) { %B = xor i33 %A, -1 diff --git a/llvm/test/Transforms/InstCombine/apint-shl-trunc.ll b/llvm/test/Transforms/InstCombine/apint-shl-trunc.ll index be9720d04e1..8163e6d527d 100644 --- a/llvm/test/Transforms/InstCombine/apint-shl-trunc.ll +++ b/llvm/test/Transforms/InstCombine/apint-shl-trunc.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep shl +; RUN: opt < %s -instcombine -S | grep shl ; END. define i1 @test0(i39 %X, i39 %A) { diff --git a/llvm/test/Transforms/InstCombine/apint-xor1.ll b/llvm/test/Transforms/InstCombine/apint-xor1.ll index c7007e96849..849c6598332 100644 --- a/llvm/test/Transforms/InstCombine/apint-xor1.ll +++ b/llvm/test/Transforms/InstCombine/apint-xor1.ll @@ -1,7 +1,7 @@ ; This test makes sure that xor instructions are properly eliminated. ; This test is for Integer BitWidth <= 64 && BitWidth % 8 != 0. -; RUN: opt %s -instcombine -S | not grep {xor } +; RUN: opt < %s -instcombine -S | not grep {xor } define i47 @test1(i47 %A, i47 %B) { diff --git a/llvm/test/Transforms/InstCombine/apint-xor2.ll b/llvm/test/Transforms/InstCombine/apint-xor2.ll index b6227470424..cacc17958eb 100644 --- a/llvm/test/Transforms/InstCombine/apint-xor2.ll +++ b/llvm/test/Transforms/InstCombine/apint-xor2.ll @@ -1,7 +1,7 @@ ; This test makes sure that xor instructions are properly eliminated. ; This test is for Integer BitWidth > 64 && BitWidth <= 1024. -; RUN: opt %s -instcombine -S | not grep {xor } +; RUN: opt < %s -instcombine -S | not grep {xor } ; END. diff --git a/llvm/test/Transforms/InstCombine/apint-zext1.ll b/llvm/test/Transforms/InstCombine/apint-zext1.ll index 529a33b6b7c..2b596936409 100644 --- a/llvm/test/Transforms/InstCombine/apint-zext1.ll +++ b/llvm/test/Transforms/InstCombine/apint-zext1.ll @@ -1,6 +1,6 @@ ; Tests to make sure elimination of casts is working correctly ; This test is for Integer BitWidth <= 64 && BitWidth % 2 != 0. -; RUN: opt %s -instcombine -S | notcast {} {%c1.*} +; RUN: opt < %s -instcombine -S | notcast {} {%c1.*} define i47 @test_sext_zext(i11 %A) { %c1 = zext i11 %A to i39 diff --git a/llvm/test/Transforms/InstCombine/apint-zext2.ll b/llvm/test/Transforms/InstCombine/apint-zext2.ll index ebc427f1c9b..264b4b2e36e 100644 --- a/llvm/test/Transforms/InstCombine/apint-zext2.ll +++ b/llvm/test/Transforms/InstCombine/apint-zext2.ll @@ -1,6 +1,6 @@ ; Tests to make sure elimination of casts is working correctly ; This test is for Integer BitWidth > 64 && BitWidth <= 1024. -; RUN: opt %s -instcombine -S | notcast {} {%c1.*} +; RUN: opt < %s -instcombine -S | notcast {} {%c1.*} define i1024 @test_sext_zext(i77 %A) { %c1 = zext i77 %A to i533 diff --git a/llvm/test/Transforms/InstCombine/bit-tracking.ll b/llvm/test/Transforms/InstCombine/bit-tracking.ll index d375bdfd6c3..51bbc088883 100644 --- a/llvm/test/Transforms/InstCombine/bit-tracking.ll +++ b/llvm/test/Transforms/InstCombine/bit-tracking.ll @@ -1,6 +1,6 @@ ; This file contains various testcases that require tracking whether bits are ; set or cleared by various instructions. -; RUN: opt %s -instcombine -instcombine -S |\ +; RUN: opt < %s -instcombine -instcombine -S |\ ; RUN: not grep %ELIM ; Reduce down to a single XOR diff --git a/llvm/test/Transforms/InstCombine/bitcast-scalar-to-vector.ll b/llvm/test/Transforms/InstCombine/bitcast-scalar-to-vector.ll index 1448fc6f483..4e9dfbb53b4 100644 --- a/llvm/test/Transforms/InstCombine/bitcast-scalar-to-vector.ll +++ b/llvm/test/Transforms/InstCombine/bitcast-scalar-to-vector.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i32 0} +; RUN: opt < %s -instcombine -S | grep {ret i32 0} ; PR4487 ; Bitcasts between vectors and scalars are valid, despite being ill-advised. diff --git a/llvm/test/Transforms/InstCombine/bitcast-vec-canon.ll b/llvm/test/Transforms/InstCombine/bitcast-vec-canon.ll index 194fdea52b2..d27765e8942 100644 --- a/llvm/test/Transforms/InstCombine/bitcast-vec-canon.ll +++ b/llvm/test/Transforms/InstCombine/bitcast-vec-canon.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep element | count 4 +; RUN: opt < %s -instcombine -S | grep element | count 4 define double @a(<1 x i64> %y) { %c = bitcast <1 x i64> %y to double diff --git a/llvm/test/Transforms/InstCombine/bitcount.ll b/llvm/test/Transforms/InstCombine/bitcount.ll index 3c10120393e..f75ca2df69d 100644 --- a/llvm/test/Transforms/InstCombine/bitcount.ll +++ b/llvm/test/Transforms/InstCombine/bitcount.ll @@ -1,6 +1,6 @@ ; Tests to make sure bit counts of constants are folded -; RUN: opt %s -instcombine -S | grep {ret i32 19} -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | grep {ret i32 19} +; RUN: opt < %s -instcombine -S | \ ; RUN: grep -v declare | not grep llvm.ct declare i31 @llvm.ctpop.i31(i31 %val) diff --git a/llvm/test/Transforms/InstCombine/bittest.ll b/llvm/test/Transforms/InstCombine/bittest.ll index c4819f8127a..92863d59470 100644 --- a/llvm/test/Transforms/InstCombine/bittest.ll +++ b/llvm/test/Transforms/InstCombine/bittest.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -simplifycfg -S |\ +; RUN: opt < %s -instcombine -simplifycfg -S |\ ; RUN: not grep {call void @abort} @b_rec.0 = external global i32 ; <i32*> [#uses=2] diff --git a/llvm/test/Transforms/InstCombine/bswap-fold.ll b/llvm/test/Transforms/InstCombine/bswap-fold.ll index 35b23e84557..3e56951c607 100644 --- a/llvm/test/Transforms/InstCombine/bswap-fold.ll +++ b/llvm/test/Transforms/InstCombine/bswap-fold.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep ret | count 6 -; RUN: opt %s -instcombine -S | not grep call.*bswap +; RUN: opt < %s -instcombine -S | grep ret | count 6 +; RUN: opt < %s -instcombine -S | not grep call.*bswap define i1 @test1(i16 %tmp2) { %tmp10 = call i16 @llvm.bswap.i16( i16 %tmp2 ) ; <i16> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/bswap.ll b/llvm/test/Transforms/InstCombine/bswap.ll index 8428e6b342a..c5aa8bede17 100644 --- a/llvm/test/Transforms/InstCombine/bswap.ll +++ b/llvm/test/Transforms/InstCombine/bswap.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {call.*llvm.bswap} | count 6 define i32 @test1(i32 %i) { diff --git a/llvm/test/Transforms/InstCombine/call-cast-target.ll b/llvm/test/Transforms/InstCombine/call-cast-target.ll index 9610ea9215c..7addc8abc84 100644 --- a/llvm/test/Transforms/InstCombine/call-cast-target.ll +++ b/llvm/test/Transforms/InstCombine/call-cast-target.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep call | not grep bitcast target datalayout = "e-p:32:32" diff --git a/llvm/test/Transforms/InstCombine/call-intrinsics.ll b/llvm/test/Transforms/InstCombine/call-intrinsics.ll index 24d0ad3d526..f9d10805806 100644 --- a/llvm/test/Transforms/InstCombine/call-intrinsics.ll +++ b/llvm/test/Transforms/InstCombine/call-intrinsics.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis +; RUN: opt < %s -instcombine | llvm-dis @X = global i8 0 ; <i8*> [#uses=3] @Y = global i8 12 ; <i8*> [#uses=2] diff --git a/llvm/test/Transforms/InstCombine/call.ll b/llvm/test/Transforms/InstCombine/call.ll index 03d9a6a9087..393a567e2e5 100644 --- a/llvm/test/Transforms/InstCombine/call.ll +++ b/llvm/test/Transforms/InstCombine/call.ll @@ -1,5 +1,5 @@ ; Ignore stderr, we expect warnings there -; RUN: opt %s -instcombine 2> /dev/null -S | \ +; RUN: opt < %s -instcombine 2> /dev/null -S | \ ; RUN: grep call | notcast ; END. diff --git a/llvm/test/Transforms/InstCombine/call2.ll b/llvm/test/Transforms/InstCombine/call2.ll index e2bcbd8a19c..3a6bd67ce56 100644 --- a/llvm/test/Transforms/InstCombine/call2.ll +++ b/llvm/test/Transforms/InstCombine/call2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis +; RUN: opt < %s -instcombine | llvm-dis ; This used to crash trying to do a double-to-pointer conversion define i32 @bar() { diff --git a/llvm/test/Transforms/InstCombine/canonicalize_branch.ll b/llvm/test/Transforms/InstCombine/canonicalize_branch.ll index 1a9e966edb1..52aff3dcd47 100644 --- a/llvm/test/Transforms/InstCombine/canonicalize_branch.ll +++ b/llvm/test/Transforms/InstCombine/canonicalize_branch.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {icmp ne\|icmp ule\|icmp uge} define i32 @test1(i32 %X, i32 %Y) { diff --git a/llvm/test/Transforms/InstCombine/cast-and-cast.ll b/llvm/test/Transforms/InstCombine/cast-and-cast.ll index 8ac649fb628..eda9d998be9 100644 --- a/llvm/test/Transforms/InstCombine/cast-and-cast.ll +++ b/llvm/test/Transforms/InstCombine/cast-and-cast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep bitcast define i1 @test1(i32 %val) { diff --git a/llvm/test/Transforms/InstCombine/cast-cast-to-and.ll b/llvm/test/Transforms/InstCombine/cast-cast-to-and.ll index 521e9b462d3..1e591ccf493 100644 --- a/llvm/test/Transforms/InstCombine/cast-cast-to-and.ll +++ b/llvm/test/Transforms/InstCombine/cast-cast-to-and.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep i8 define i32 @test1(i32 %X) { diff --git a/llvm/test/Transforms/InstCombine/cast-load-gep.ll b/llvm/test/Transforms/InstCombine/cast-load-gep.ll index 0f90bd55c43..57f021cc8de 100644 --- a/llvm/test/Transforms/InstCombine/cast-load-gep.ll +++ b/llvm/test/Transforms/InstCombine/cast-load-gep.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -globaldce -S | \ +; RUN: opt < %s -instcombine -globaldce -S | \ ; RUN: not grep Array ; Pulling the cast out of the load allows us to eliminate the load, and then diff --git a/llvm/test/Transforms/InstCombine/cast-malloc.ll b/llvm/test/Transforms/InstCombine/cast-malloc.ll index 8e1c6b9297a..3754032cc2f 100644 --- a/llvm/test/Transforms/InstCombine/cast-malloc.ll +++ b/llvm/test/Transforms/InstCombine/cast-malloc.ll @@ -1,5 +1,5 @@ ; test that casted mallocs get converted to malloc of the right type -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep bitcast ; The target datalayout is important for this test case. We have to tell diff --git a/llvm/test/Transforms/InstCombine/cast-propagate.ll b/llvm/test/Transforms/InstCombine/cast-propagate.ll index 87acb45cd8b..95c040b140d 100644 --- a/llvm/test/Transforms/InstCombine/cast-propagate.ll +++ b/llvm/test/Transforms/InstCombine/cast-propagate.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -mem2reg -S | \ +; RUN: opt < %s -instcombine -mem2reg -S | \ ; RUN: not grep load define i32 @test1(i32* %P) { diff --git a/llvm/test/Transforms/InstCombine/cast-sext-zext.ll b/llvm/test/Transforms/InstCombine/cast-sext-zext.ll index 79bd5aa655d..0fecc1ce127 100644 --- a/llvm/test/Transforms/InstCombine/cast-sext-zext.ll +++ b/llvm/test/Transforms/InstCombine/cast-sext-zext.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep sext +; RUN: opt < %s -instcombine -S | not grep sext ; XFAIL: * define zeroext i16 @t(i8 zeroext %on_off, i16* nocapture %puls) nounwind readonly { diff --git a/llvm/test/Transforms/InstCombine/cast.ll b/llvm/test/Transforms/InstCombine/cast.ll index 048106d0ccd..59d7cd051d3 100644 --- a/llvm/test/Transforms/InstCombine/cast.ll +++ b/llvm/test/Transforms/InstCombine/cast.ll @@ -1,5 +1,5 @@ ; Tests to make sure elimination of casts is working correctly -; RUN: opt %s -instcombine -S | grep %c | notcast +; RUN: opt < %s -instcombine -S | grep %c | notcast @inbuf = external global [32832 x i8] ; <[32832 x i8]*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/cast3.ll b/llvm/test/Transforms/InstCombine/cast3.ll index c9119480b4d..bc60f55c48c 100644 --- a/llvm/test/Transforms/InstCombine/cast3.ll +++ b/llvm/test/Transforms/InstCombine/cast3.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep getelementptr +; RUN: opt < %s -instcombine -S | not grep getelementptr ; PR2831 ; Don't raise arbitrary inttoptr+arithmetic+ptrtoint to getelementptr. diff --git a/llvm/test/Transforms/InstCombine/cast_ld_addr_space.ll b/llvm/test/Transforms/InstCombine/cast_ld_addr_space.ll index 3ae2580f461..e94dce7e906 100644 --- a/llvm/test/Transforms/InstCombine/cast_ld_addr_space.ll +++ b/llvm/test/Transforms/InstCombine/cast_ld_addr_space.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep bitcast | count 1 +; RUN: opt < %s -instcombine -S | grep bitcast | count 1 ; InstCombine can not 'load (cast P)' -> cast (load P)' if the cast changes ; the address space. diff --git a/llvm/test/Transforms/InstCombine/cast_ptr.ll b/llvm/test/Transforms/InstCombine/cast_ptr.ll index c1bf81cacc7..6544e7d735a 100644 --- a/llvm/test/Transforms/InstCombine/cast_ptr.ll +++ b/llvm/test/Transforms/InstCombine/cast_ptr.ll @@ -1,5 +1,5 @@ ; Tests to make sure elimination of casts is working correctly -; RUN: opt %s -instcombine -S | FileCheck %s +; RUN: opt < %s -instcombine -S | FileCheck %s target datalayout = "p:32:32" diff --git a/llvm/test/Transforms/InstCombine/constant-fold-gep.ll b/llvm/test/Transforms/InstCombine/constant-fold-gep.ll index 281d3b35919..5a7aef3d397 100644 --- a/llvm/test/Transforms/InstCombine/constant-fold-gep.ll +++ b/llvm/test/Transforms/InstCombine/constant-fold-gep.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | FileCheck %s +; RUN: opt < %s -instcombine -S | FileCheck %s ; Constant folding should fix notionally out-of-bounds indices ; and add inbounds keywords. diff --git a/llvm/test/Transforms/InstCombine/constant-fold-ptr-casts.ll b/llvm/test/Transforms/InstCombine/constant-fold-ptr-casts.ll index 8550d656378..9b6c6c3f58f 100644 --- a/llvm/test/Transforms/InstCombine/constant-fold-ptr-casts.ll +++ b/llvm/test/Transforms/InstCombine/constant-fold-ptr-casts.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i32 2143034560} +; RUN: opt < %s -instcombine -S | grep {ret i32 2143034560} ; Instcombine should be able to completely fold this code. diff --git a/llvm/test/Transforms/InstCombine/dce-iterate.ll b/llvm/test/Transforms/InstCombine/dce-iterate.ll index f1c136b968e..1d2cc53210f 100644 --- a/llvm/test/Transforms/InstCombine/dce-iterate.ll +++ b/llvm/test/Transforms/InstCombine/dce-iterate.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret double .sy} +; RUN: opt < %s -instcombine -S | grep {ret double .sy} define internal double @ScaleObjectAdd(double %sx, double %sy, double %sz) nounwind { entry: diff --git a/llvm/test/Transforms/InstCombine/deadcode.ll b/llvm/test/Transforms/InstCombine/deadcode.ll index 8f1158b7fe0..52af0ef4e8d 100644 --- a/llvm/test/Transforms/InstCombine/deadcode.ll +++ b/llvm/test/Transforms/InstCombine/deadcode.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep {ret i32 %A} -; RUN: opt %s -die -S | not grep call.*llvm.stacksave +; RUN: opt < %s -instcombine -S | grep {ret i32 %A} +; RUN: opt < %s -die -S | not grep call.*llvm.stacksave define i32 @test(i32 %A) { %X = or i1 false, false diff --git a/llvm/test/Transforms/InstCombine/div-cmp-overflow.ll b/llvm/test/Transforms/InstCombine/div-cmp-overflow.ll index 8b91e24e10b..6f63adcd2e1 100644 --- a/llvm/test/Transforms/InstCombine/div-cmp-overflow.ll +++ b/llvm/test/Transforms/InstCombine/div-cmp-overflow.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep sdiv +; RUN: opt < %s -instcombine -S | not grep sdiv ; PR2740 define i1 @func_75(i32 %i2) nounwind { diff --git a/llvm/test/Transforms/InstCombine/enforce-known-alignment.ll b/llvm/test/Transforms/InstCombine/enforce-known-alignment.ll index 89b01f5ac6c..9e9be7f5657 100644 --- a/llvm/test/Transforms/InstCombine/enforce-known-alignment.ll +++ b/llvm/test/Transforms/InstCombine/enforce-known-alignment.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep alloca | grep {align 16} +; RUN: opt < %s -instcombine -S | grep alloca | grep {align 16} 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" target triple = "i386-apple-darwin9.6" diff --git a/llvm/test/Transforms/InstCombine/exact-sdiv.ll b/llvm/test/Transforms/InstCombine/exact-sdiv.ll index 698e658240e..e5677541e95 100644 --- a/llvm/test/Transforms/InstCombine/exact-sdiv.ll +++ b/llvm/test/Transforms/InstCombine/exact-sdiv.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | FileCheck %s +; RUN: opt < %s -instcombine -S | FileCheck %s ; CHECK: define i32 @foo ; CHECK: sdiv i32 %x, 8 diff --git a/llvm/test/Transforms/InstCombine/fold-bin-operand.ll b/llvm/test/Transforms/InstCombine/fold-bin-operand.ll index 263088eee4b..b837985a263 100644 --- a/llvm/test/Transforms/InstCombine/fold-bin-operand.ll +++ b/llvm/test/Transforms/InstCombine/fold-bin-operand.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep icmp +; RUN: opt < %s -instcombine -S | not grep icmp define i1 @f(i1 %x) { %b = and i1 %x, icmp eq (i8* inttoptr (i32 1 to i8*), i8* inttoptr (i32 2 to i8*)) diff --git a/llvm/test/Transforms/InstCombine/fold-vector-zero.ll b/llvm/test/Transforms/InstCombine/fold-vector-zero.ll index dc25156880e..e1d86b6cd07 100644 --- a/llvm/test/Transforms/InstCombine/fold-vector-zero.ll +++ b/llvm/test/Transforms/InstCombine/fold-vector-zero.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep zeroinitializer +; RUN: opt < %s -instcombine -S | not grep zeroinitializer define void @foo(i64 %A, i64 %B) { bb8: diff --git a/llvm/test/Transforms/InstCombine/fp-ret-bitcast.ll b/llvm/test/Transforms/InstCombine/fp-ret-bitcast.ll index 8669082957b..169340abf36 100644 --- a/llvm/test/Transforms/InstCombine/fp-ret-bitcast.ll +++ b/llvm/test/Transforms/InstCombine/fp-ret-bitcast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {call float bitcast} | count 1 %struct.NSObject = type { %struct.objc_class* } %struct.NSArray = type { %struct.NSObject } diff --git a/llvm/test/Transforms/InstCombine/getelementptr.ll b/llvm/test/Transforms/InstCombine/getelementptr.ll index 037190da3f5..ffaa6afa85e 100644 --- a/llvm/test/Transforms/InstCombine/getelementptr.ll +++ b/llvm/test/Transforms/InstCombine/getelementptr.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | FileCheck %s +; RUN: opt < %s -instcombine -S | FileCheck %s target datalayout = "e-p:64:64" %intstruct = type { i32 } diff --git a/llvm/test/Transforms/InstCombine/hoist_instr.ll b/llvm/test/Transforms/InstCombine/hoist_instr.ll index d60363e6665..fa451bcc727 100644 --- a/llvm/test/Transforms/InstCombine/hoist_instr.ll +++ b/llvm/test/Transforms/InstCombine/hoist_instr.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | FileCheck %s +; RUN: opt < %s -instcombine -S | FileCheck %s ;; This tests that the div is hoisted into the then block. define i32 @foo(i1 %C, i32 %A, i32 %B) { diff --git a/llvm/test/Transforms/InstCombine/known_align.ll b/llvm/test/Transforms/InstCombine/known_align.ll index 91fcc0c0869..5382abf8212 100644 --- a/llvm/test/Transforms/InstCombine/known_align.ll +++ b/llvm/test/Transforms/InstCombine/known_align.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {align 1} +; RUN: opt < %s -instcombine -S | grep {align 1} ; END. %struct.p = type <{ i8, i32 }> diff --git a/llvm/test/Transforms/InstCombine/loadstore-alignment.ll b/llvm/test/Transforms/InstCombine/loadstore-alignment.ll index 368b300452a..ff3401727b9 100644 --- a/llvm/test/Transforms/InstCombine/loadstore-alignment.ll +++ b/llvm/test/Transforms/InstCombine/loadstore-alignment.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {, align 16} | count 14 +; RUN: opt < %s -instcombine -S | grep {, align 16} | count 14 @x = external global <2 x i64>, align 16 @xx = external global [13 x <2 x i64>], align 16 diff --git a/llvm/test/Transforms/InstCombine/malloc.ll b/llvm/test/Transforms/InstCombine/malloc.ll index 88a003a1daa..b6ebbeaf575 100644 --- a/llvm/test/Transforms/InstCombine/malloc.ll +++ b/llvm/test/Transforms/InstCombine/malloc.ll @@ -1,5 +1,5 @@ ; test that malloc's with a constant argument are promoted to array allocations -; RUN: opt %s -instcombine -S | grep getelementptr +; RUN: opt < %s -instcombine -S | grep getelementptr define i32* @test() { %X = malloc i32, i32 4 diff --git a/llvm/test/Transforms/InstCombine/malloc3.ll b/llvm/test/Transforms/InstCombine/malloc3.ll index d95ed83f217..cd407ffb02f 100644 --- a/llvm/test/Transforms/InstCombine/malloc3.ll +++ b/llvm/test/Transforms/InstCombine/malloc3.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {malloc.*struct.foo} | count 2 +; RUN: opt < %s -instcombine -S | grep {malloc.*struct.foo} | count 2 ; PR1728 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/InstCombine/memcpy-to-load.ll b/llvm/test/Transforms/InstCombine/memcpy-to-load.ll index 4817a25e13c..ebb8711af9f 100644 --- a/llvm/test/Transforms/InstCombine/memcpy-to-load.ll +++ b/llvm/test/Transforms/InstCombine/memcpy-to-load.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {load double} +; RUN: opt < %s -instcombine -S | grep {load double} 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" target triple = "i686-apple-darwin8" diff --git a/llvm/test/Transforms/InstCombine/memmove.ll b/llvm/test/Transforms/InstCombine/memmove.ll index e8939fa16ca..1806cfcb54f 100644 --- a/llvm/test/Transforms/InstCombine/memmove.ll +++ b/llvm/test/Transforms/InstCombine/memmove.ll @@ -1,6 +1,6 @@ ; This test makes sure that memmove instructions are properly eliminated. ; -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {call void @llvm.memmove} @S = internal constant [33 x i8] c"panic: restorelist inconsistency\00" ; <[33 x i8]*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/memset.ll b/llvm/test/Transforms/InstCombine/memset.ll index 99f6c493b2b..8e85694d9ad 100644 --- a/llvm/test/Transforms/InstCombine/memset.ll +++ b/llvm/test/Transforms/InstCombine/memset.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep {call.*llvm.memset} +; RUN: opt < %s -instcombine -S | not grep {call.*llvm.memset} declare void @llvm.memset.i32(i8*, i8, i32, i32) diff --git a/llvm/test/Transforms/InstCombine/mul-masked-bits.ll b/llvm/test/Transforms/InstCombine/mul-masked-bits.ll index d8bcfaf7c35..a43d5f20bea 100644 --- a/llvm/test/Transforms/InstCombine/mul-masked-bits.ll +++ b/llvm/test/Transforms/InstCombine/mul-masked-bits.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep ashr +; RUN: opt < %s -instcombine -S | grep ashr define i32 @foo(i32 %x, i32 %y) { %a = and i32 %x, 7 diff --git a/llvm/test/Transforms/InstCombine/multi-use-or.ll b/llvm/test/Transforms/InstCombine/multi-use-or.ll index 6357e466d01..9bbef2383bb 100644 --- a/llvm/test/Transforms/InstCombine/multi-use-or.ll +++ b/llvm/test/Transforms/InstCombine/multi-use-or.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {add double .sx, .sy} +; RUN: opt < %s -instcombine -S | grep {add double .sx, .sy} ; The 'or' has multiple uses, make sure that this doesn't prevent instcombine ; from propagating the extends to the truncs. diff --git a/llvm/test/Transforms/InstCombine/narrow.ll b/llvm/test/Transforms/InstCombine/narrow.ll index ebe20db1ea6..1b96a06eeb7 100644 --- a/llvm/test/Transforms/InstCombine/narrow.ll +++ b/llvm/test/Transforms/InstCombine/narrow.ll @@ -1,6 +1,6 @@ ; This file contains various testcases that check to see that instcombine ; is narrowing computations when possible. -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {ret i1 false} ; test1 - Eliminating the casts in this testcase (by narrowing the AND diff --git a/llvm/test/Transforms/InstCombine/not-fcmp.ll b/llvm/test/Transforms/InstCombine/not-fcmp.ll index 57440f67af4..ad01a6bdf1b 100644 --- a/llvm/test/Transforms/InstCombine/not-fcmp.ll +++ b/llvm/test/Transforms/InstCombine/not-fcmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep "fcmp uge" +; RUN: opt < %s -instcombine -S | grep "fcmp uge" ; PR1570 define i1 @f(float %X, float %Y) { diff --git a/llvm/test/Transforms/InstCombine/not.ll b/llvm/test/Transforms/InstCombine/not.ll index 0442ebb8f43..c58ce11b438 100644 --- a/llvm/test/Transforms/InstCombine/not.ll +++ b/llvm/test/Transforms/InstCombine/not.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: opt %s -instcombine -S | not grep xor +; RUN: opt < %s -instcombine -S | not grep xor define i32 @test1(i32 %A) { %B = xor i32 %A, -1 ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/nothrow.ll b/llvm/test/Transforms/InstCombine/nothrow.ll index e2a35e44394..08d90bfbd7d 100644 --- a/llvm/test/Transforms/InstCombine/nothrow.ll +++ b/llvm/test/Transforms/InstCombine/nothrow.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep call +; RUN: opt < %s -instcombine -S | not grep call ; rdar://6880732 declare double @t1(i32) readonly diff --git a/llvm/test/Transforms/InstCombine/nsw.ll b/llvm/test/Transforms/InstCombine/nsw.ll index 3662df0fbc7..821cebed30b 100644 --- a/llvm/test/Transforms/InstCombine/nsw.ll +++ b/llvm/test/Transforms/InstCombine/nsw.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | FileCheck %s +; RUN: opt < %s -instcombine -S | FileCheck %s ; CHECK: define i32 @foo ; %y = sub i32 0, %x diff --git a/llvm/test/Transforms/InstCombine/odr-linkage.ll b/llvm/test/Transforms/InstCombine/odr-linkage.ll index e72576bcb90..a64ef289a4b 100644 --- a/llvm/test/Transforms/InstCombine/odr-linkage.ll +++ b/llvm/test/Transforms/InstCombine/odr-linkage.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i32 10} +; RUN: opt < %s -instcombine -S | grep {ret i32 10} @g1 = available_externally constant i32 1 @g2 = linkonce_odr constant i32 2 diff --git a/llvm/test/Transforms/InstCombine/or.ll b/llvm/test/Transforms/InstCombine/or.ll index 1911234561f..37f934bd967 100644 --- a/llvm/test/Transforms/InstCombine/or.ll +++ b/llvm/test/Transforms/InstCombine/or.ll @@ -1,6 +1,6 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep -v xor | not grep {or } ; END. diff --git a/llvm/test/Transforms/InstCombine/or2.ll b/llvm/test/Transforms/InstCombine/or2.ll index 0a5666f333f..c01229a78a0 100644 --- a/llvm/test/Transforms/InstCombine/or2.ll +++ b/llvm/test/Transforms/InstCombine/or2.ll @@ -1,6 +1,6 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: opt %s -instcombine -S | grep -v xor | not grep {or } +; RUN: opt < %s -instcombine -S | grep -v xor | not grep {or } ; PR1738 define i1 @test1(double %X, double %Y) { diff --git a/llvm/test/Transforms/InstCombine/phi-merge.ll b/llvm/test/Transforms/InstCombine/phi-merge.ll index 490ecde98e5..c41f50325d6 100644 --- a/llvm/test/Transforms/InstCombine/phi-merge.ll +++ b/llvm/test/Transforms/InstCombine/phi-merge.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep {phi i32} +; RUN: opt < %s -instcombine -S | not grep {phi i32} ; PR1777 declare i1 @rrr() diff --git a/llvm/test/Transforms/InstCombine/pr2645-0.ll b/llvm/test/Transforms/InstCombine/pr2645-0.ll index 56adb839092..9bcaa43a80b 100644 --- a/llvm/test/Transforms/InstCombine/pr2645-0.ll +++ b/llvm/test/Transforms/InstCombine/pr2645-0.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {insertelement <4 x float> undef} +; RUN: opt < %s -instcombine -S | grep {insertelement <4 x float> undef} ; Instcombine should be able to prove that none of the ; insertelement's first operand's elements are needed. diff --git a/llvm/test/Transforms/InstCombine/pr2645-1.ll b/llvm/test/Transforms/InstCombine/pr2645-1.ll index 2972f6040cf..d320dafcd25 100644 --- a/llvm/test/Transforms/InstCombine/pr2645-1.ll +++ b/llvm/test/Transforms/InstCombine/pr2645-1.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep shufflevector +; RUN: opt < %s -instcombine -S | grep shufflevector ; PR2645 ; instcombine shouldn't delete the shufflevector. diff --git a/llvm/test/Transforms/InstCombine/pr2996.ll b/llvm/test/Transforms/InstCombine/pr2996.ll index f49835c4f59..ff3245d8668 100644 --- a/llvm/test/Transforms/InstCombine/pr2996.ll +++ b/llvm/test/Transforms/InstCombine/pr2996.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine ; PR2996 define void @func_53(i16 signext %p_56) nounwind { diff --git a/llvm/test/Transforms/InstCombine/preserve-sminmax.ll b/llvm/test/Transforms/InstCombine/preserve-sminmax.ll index df4ed8dbabf..dbfd56acc58 100644 --- a/llvm/test/Transforms/InstCombine/preserve-sminmax.ll +++ b/llvm/test/Transforms/InstCombine/preserve-sminmax.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep { i32 \[%\]sd, \[\[:alnum:\]\]* \\?1\\>} | count 4 +; RUN: opt < %s -instcombine -S | grep { i32 \[%\]sd, \[\[:alnum:\]\]* \\?1\\>} | count 4 ; Instcombine normally would fold the sdiv into the comparison, ; making "icmp slt i32 %h, 2", but in this case the sdiv has diff --git a/llvm/test/Transforms/InstCombine/ptr-int-cast.ll b/llvm/test/Transforms/InstCombine/ptr-int-cast.ll index 781b2ffacd9..2f64d8ba0e1 100644 --- a/llvm/test/Transforms/InstCombine/ptr-int-cast.ll +++ b/llvm/test/Transforms/InstCombine/ptr-int-cast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S > %t +; RUN: opt < %s -instcombine -S > %t define i1 @test1(i32 *%x) nounwind { entry: diff --git a/llvm/test/Transforms/InstCombine/sdiv-1.ll b/llvm/test/Transforms/InstCombine/sdiv-1.ll index b62dff27ca3..c46b5eaef4a 100644 --- a/llvm/test/Transforms/InstCombine/sdiv-1.ll +++ b/llvm/test/Transforms/InstCombine/sdiv-1.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -inline -S | not grep '-715827882' +; RUN: opt < %s -instcombine -inline -S | not grep '-715827882' ; PR3142 define i32 @a(i32 %X) nounwind readnone { diff --git a/llvm/test/Transforms/InstCombine/sdiv-2.ll b/llvm/test/Transforms/InstCombine/sdiv-2.ll index 40c5350dbe9..0e4c0080201 100644 --- a/llvm/test/Transforms/InstCombine/sdiv-2.ll +++ b/llvm/test/Transforms/InstCombine/sdiv-2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; PR3144 define fastcc i32 @func(i32 %length) nounwind { diff --git a/llvm/test/Transforms/InstCombine/select-load-call.ll b/llvm/test/Transforms/InstCombine/select-load-call.ll index c134030e618..bef0cf841bf 100644 --- a/llvm/test/Transforms/InstCombine/select-load-call.ll +++ b/llvm/test/Transforms/InstCombine/select-load-call.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i32 1} +; RUN: opt < %s -instcombine -S | grep {ret i32 1} declare void @test2() diff --git a/llvm/test/Transforms/InstCombine/set.ll b/llvm/test/Transforms/InstCombine/set.ll index 39cb00a98e9..daa9148f6ad 100644 --- a/llvm/test/Transforms/InstCombine/set.ll +++ b/llvm/test/Transforms/InstCombine/set.ll @@ -1,6 +1,6 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: opt %s -instcombine -S | not grep icmp +; RUN: opt < %s -instcombine -S | not grep icmp ; END. @X = external global i32 ; <i32*> [#uses=2] diff --git a/llvm/test/Transforms/InstCombine/setcc-cast-cast.ll b/llvm/test/Transforms/InstCombine/setcc-cast-cast.ll index 9e24ecafecf..b2681ea2986 100644 --- a/llvm/test/Transforms/InstCombine/setcc-cast-cast.ll +++ b/llvm/test/Transforms/InstCombine/setcc-cast-cast.ll @@ -1,7 +1,7 @@ ; This test case was reduced from MultiSource/Applications/hbd. It makes sure ; that folding doesn't happen in case a zext is applied where a sext should have ; been when a setcc is used with two casts. -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {br i1 false} ; END. diff --git a/llvm/test/Transforms/InstCombine/setcc-strength-reduce.ll b/llvm/test/Transforms/InstCombine/setcc-strength-reduce.ll index fde8b2e4411..62ab116367f 100644 --- a/llvm/test/Transforms/InstCombine/setcc-strength-reduce.ll +++ b/llvm/test/Transforms/InstCombine/setcc-strength-reduce.ll @@ -2,7 +2,7 @@ ; working. Basically this boils down to converting setlt,gt,le,ge instructions ; into equivalent setne,eq instructions. ; -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep -v {icmp eq} | grep -v {icmp ne} | not grep icmp ; END. diff --git a/llvm/test/Transforms/InstCombine/shift-sra.ll b/llvm/test/Transforms/InstCombine/shift-sra.ll index f4c73a01797..449278544d1 100644 --- a/llvm/test/Transforms/InstCombine/shift-sra.ll +++ b/llvm/test/Transforms/InstCombine/shift-sra.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {lshr i32} | count 2 -; RUN: opt %s -instcombine -S | not grep ashr +; RUN: opt < %s -instcombine -S | not grep ashr define i32 @test1(i32 %X, i8 %A) { diff --git a/llvm/test/Transforms/InstCombine/shift-trunc-shift.ll b/llvm/test/Transforms/InstCombine/shift-trunc-shift.ll index f4f4ce9becf..7133d299a2b 100644 --- a/llvm/test/Transforms/InstCombine/shift-trunc-shift.ll +++ b/llvm/test/Transforms/InstCombine/shift-trunc-shift.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep lshr.*63 +; RUN: opt < %s -instcombine -S | grep lshr.*63 define i32 @t1(i64 %d18) { entry: diff --git a/llvm/test/Transforms/InstCombine/shl-icmp.ll b/llvm/test/Transforms/InstCombine/shl-icmp.ll index a517e655cd9..787fab52bc7 100644 --- a/llvm/test/Transforms/InstCombine/shl-icmp.ll +++ b/llvm/test/Transforms/InstCombine/shl-icmp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -stats -disable-output |& \ +; RUN: opt < %s -instcombine -stats -disable-output |& \ ; RUN: grep {Number of insts combined} | grep 5 define i8 @t1(i8 zeroext %x, i8 zeroext %y) zeroext nounwind { diff --git a/llvm/test/Transforms/InstCombine/shl-trunc.ll b/llvm/test/Transforms/InstCombine/shl-trunc.ll index 08569d37179..84af2e33610 100644 --- a/llvm/test/Transforms/InstCombine/shl-trunc.ll +++ b/llvm/test/Transforms/InstCombine/shl-trunc.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep shl +; RUN: opt < %s -instcombine -S | grep shl define i1 @test(i32 %X, i8 %A) { %shift.upgrd.1 = zext i8 %A to i32 ; <i32> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/shufflemask-undef.ll b/llvm/test/Transforms/InstCombine/shufflemask-undef.ll index d7a6bc6d8ff..cf87aef7df4 100644 --- a/llvm/test/Transforms/InstCombine/shufflemask-undef.ll +++ b/llvm/test/Transforms/InstCombine/shufflemask-undef.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep {shufflevector.\*i32 8} +; RUN: opt < %s -instcombine -S | not grep {shufflevector.\*i32 8} 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" target triple = "i386-apple-darwin9" diff --git a/llvm/test/Transforms/InstCombine/shufflevec-constant.ll b/llvm/test/Transforms/InstCombine/shufflevec-constant.ll index b37be5946c2..2c667903b1e 100644 --- a/llvm/test/Transforms/InstCombine/shufflevec-constant.ll +++ b/llvm/test/Transforms/InstCombine/shufflevec-constant.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep "2 x float" +; RUN: opt < %s -instcombine -S | grep "2 x float" 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" target triple = "i386-apple-darwin9" diff --git a/llvm/test/Transforms/InstCombine/signed-comparison.ll b/llvm/test/Transforms/InstCombine/signed-comparison.ll index 8a16b7e89c0..9a08c6446c5 100644 --- a/llvm/test/Transforms/InstCombine/signed-comparison.ll +++ b/llvm/test/Transforms/InstCombine/signed-comparison.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S > %t +; RUN: opt < %s -instcombine -S > %t ; RUN: not grep zext %t ; RUN: not grep slt %t ; RUN: grep {icmp ult} %t diff --git a/llvm/test/Transforms/InstCombine/signext.ll b/llvm/test/Transforms/InstCombine/signext.ll index d67a04a6488..008662e04e9 100644 --- a/llvm/test/Transforms/InstCombine/signext.ll +++ b/llvm/test/Transforms/InstCombine/signext.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {(and\|xor\|add\|shl\|shr)} ; END. diff --git a/llvm/test/Transforms/InstCombine/simplify-demanded-bits-pointer.ll b/llvm/test/Transforms/InstCombine/simplify-demanded-bits-pointer.ll index fdd8dc391bc..6d2193fe448 100644 --- a/llvm/test/Transforms/InstCombine/simplify-demanded-bits-pointer.ll +++ b/llvm/test/Transforms/InstCombine/simplify-demanded-bits-pointer.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -disable-output +; RUN: opt < %s -instcombine -disable-output ; SimplifyDemandedBits should cope with pointer types. diff --git a/llvm/test/Transforms/InstCombine/srem-simplify-bug.ll b/llvm/test/Transforms/InstCombine/srem-simplify-bug.ll index 3afbbe26c71..af824a445df 100644 --- a/llvm/test/Transforms/InstCombine/srem-simplify-bug.ll +++ b/llvm/test/Transforms/InstCombine/srem-simplify-bug.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i1 false} +; RUN: opt < %s -instcombine -S | grep {ret i1 false} ; PR2276 define i1 @f(i32 %x) { diff --git a/llvm/test/Transforms/InstCombine/srem.ll b/llvm/test/Transforms/InstCombine/srem.ll index 32aa9575f5d..beefe4fb8d3 100644 --- a/llvm/test/Transforms/InstCombine/srem.ll +++ b/llvm/test/Transforms/InstCombine/srem.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep srem +; RUN: opt < %s -instcombine -S | grep srem define i64 @foo(i64 %x1, i64 %y2) { %r = sdiv i64 %x1, %y2 diff --git a/llvm/test/Transforms/InstCombine/srem1.ll b/llvm/test/Transforms/InstCombine/srem1.ll index 2f74cf504cf..f18690c3fff 100644 --- a/llvm/test/Transforms/InstCombine/srem1.ll +++ b/llvm/test/Transforms/InstCombine/srem1.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine +; RUN: opt < %s -instcombine ; PR2670 @g_127 = external global i32 ; <i32*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/stack-overalign.ll b/llvm/test/Transforms/InstCombine/stack-overalign.ll index f221544b44e..88b4114d588 100644 --- a/llvm/test/Transforms/InstCombine/stack-overalign.ll +++ b/llvm/test/Transforms/InstCombine/stack-overalign.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {align 32} | count 1 +; RUN: opt < %s -instcombine -S | grep {align 32} | count 1 ; It's tempting to have an instcombine in which the src pointer of a ; memcpy is aligned up to the alignment of the destination, however diff --git a/llvm/test/Transforms/InstCombine/stacksaverestore.ll b/llvm/test/Transforms/InstCombine/stacksaverestore.ll index c86f884ee48..0fcaefac622 100644 --- a/llvm/test/Transforms/InstCombine/stacksaverestore.ll +++ b/llvm/test/Transforms/InstCombine/stacksaverestore.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {call.*stackrestore} | count 1 +; RUN: opt < %s -instcombine -S | grep {call.*stackrestore} | count 1 declare i8* @llvm.stacksave() declare void @llvm.stackrestore(i8*) diff --git a/llvm/test/Transforms/InstCombine/store-merge.ll b/llvm/test/Transforms/InstCombine/store-merge.ll index e334c90c9be..06d497d10db 100644 --- a/llvm/test/Transforms/InstCombine/store-merge.ll +++ b/llvm/test/Transforms/InstCombine/store-merge.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {ret i32 %.toremerge} | count 2 ;; Simple sinking tests diff --git a/llvm/test/Transforms/InstCombine/trunc-mask-ext.ll b/llvm/test/Transforms/InstCombine/trunc-mask-ext.ll index 666ce369378..93e3753cf50 100644 --- a/llvm/test/Transforms/InstCombine/trunc-mask-ext.ll +++ b/llvm/test/Transforms/InstCombine/trunc-mask-ext.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S > %t +; RUN: opt < %s -instcombine -S > %t ; RUN: not grep zext %t ; RUN: not grep sext %t diff --git a/llvm/test/Transforms/InstCombine/udiv-simplify-bug-0.ll b/llvm/test/Transforms/InstCombine/udiv-simplify-bug-0.ll index c649955bc92..bfdd98cddfa 100644 --- a/llvm/test/Transforms/InstCombine/udiv-simplify-bug-0.ll +++ b/llvm/test/Transforms/InstCombine/udiv-simplify-bug-0.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret i64 0} | count 2 +; RUN: opt < %s -instcombine -S | grep {ret i64 0} | count 2 define i64 @foo(i32 %x) nounwind { %y = lshr i32 %x, 1 diff --git a/llvm/test/Transforms/InstCombine/udivrem-change-width.ll b/llvm/test/Transforms/InstCombine/udivrem-change-width.ll index 475a19a4447..56877e30f9c 100644 --- a/llvm/test/Transforms/InstCombine/udivrem-change-width.ll +++ b/llvm/test/Transforms/InstCombine/udivrem-change-width.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep zext +; RUN: opt < %s -instcombine -S | not grep zext ; PR4548 define i8 @udiv_i8(i8 %a, i8 %b) nounwind { diff --git a/llvm/test/Transforms/InstCombine/urem-simplify-bug.ll b/llvm/test/Transforms/InstCombine/urem-simplify-bug.ll index f6c9df26508..7c2b4b01ca6 100644 --- a/llvm/test/Transforms/InstCombine/urem-simplify-bug.ll +++ b/llvm/test/Transforms/InstCombine/urem-simplify-bug.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {= or i32 %x, -5 } +; RUN: opt < %s -instcombine -S | grep {= or i32 %x, -5 } @.str = internal constant [5 x i8] c"foo\0A\00" ; <[5 x i8]*> [#uses=1] @.str1 = internal constant [5 x i8] c"bar\0A\00" ; <[5 x i8]*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/urem.ll b/llvm/test/Transforms/InstCombine/urem.ll index 6ecbbc68b17..51084224a73 100644 --- a/llvm/test/Transforms/InstCombine/urem.ll +++ b/llvm/test/Transforms/InstCombine/urem.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep urem +; RUN: opt < %s -instcombine -S | grep urem define i64 @rem_unsigned(i64 %x1, i64 %y2) { %r = udiv i64 %x1, %y2 diff --git a/llvm/test/Transforms/InstCombine/vec_demanded_elts-2.ll b/llvm/test/Transforms/InstCombine/vec_demanded_elts-2.ll index 978c162212b..41593612e55 100644 --- a/llvm/test/Transforms/InstCombine/vec_demanded_elts-2.ll +++ b/llvm/test/Transforms/InstCombine/vec_demanded_elts-2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep extractelement +; RUN: opt < %s -instcombine -S | not grep extractelement define void @get_image() nounwind { entry: diff --git a/llvm/test/Transforms/InstCombine/vec_demanded_elts-3.ll b/llvm/test/Transforms/InstCombine/vec_demanded_elts-3.ll index 4e42e6654e5..62e43701d24 100644 --- a/llvm/test/Transforms/InstCombine/vec_demanded_elts-3.ll +++ b/llvm/test/Transforms/InstCombine/vec_demanded_elts-3.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep load +; RUN: opt < %s -instcombine -S | not grep load ; PR4340 define void @vac(<4 x float>* nocapture %a) nounwind { diff --git a/llvm/test/Transforms/InstCombine/vec_demanded_elts.ll b/llvm/test/Transforms/InstCombine/vec_demanded_elts.ll index 62ea02a04ad..2009a776b15 100644 --- a/llvm/test/Transforms/InstCombine/vec_demanded_elts.ll +++ b/llvm/test/Transforms/InstCombine/vec_demanded_elts.ll @@ -1,12 +1,12 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {fadd float} -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {fmul float} -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {insertelement.*0.00} -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {call.*llvm.x86.sse.mul} -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {call.*llvm.x86.sse.sub} ; END. diff --git a/llvm/test/Transforms/InstCombine/vec_extract_elt.ll b/llvm/test/Transforms/InstCombine/vec_extract_elt.ll index 5a078f1acf5..63e4ee2112d 100644 --- a/llvm/test/Transforms/InstCombine/vec_extract_elt.ll +++ b/llvm/test/Transforms/InstCombine/vec_extract_elt.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep extractelement +; RUN: opt < %s -instcombine -S | not grep extractelement define i32 @test(float %f) { %tmp7 = insertelement <4 x float> undef, float %f, i32 0 ; <<4 x float>> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/vec_insert_to_shuffle.ll b/llvm/test/Transforms/InstCombine/vec_insert_to_shuffle.ll index 34c89d82d6c..ba5a734dec7 100644 --- a/llvm/test/Transforms/InstCombine/vec_insert_to_shuffle.ll +++ b/llvm/test/Transforms/InstCombine/vec_insert_to_shuffle.ll @@ -1,8 +1,8 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep shufflevec | count 1 -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep insertelement -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep extractelement ; END. diff --git a/llvm/test/Transforms/InstCombine/vec_insertelt.ll b/llvm/test/Transforms/InstCombine/vec_insertelt.ll index 2ebf3ff3a72..eedf882518b 100644 --- a/llvm/test/Transforms/InstCombine/vec_insertelt.ll +++ b/llvm/test/Transforms/InstCombine/vec_insertelt.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {ret <4 x i32> %A} +; RUN: opt < %s -instcombine -S | grep {ret <4 x i32> %A} ; PR1286 define <4 x i32> @test1(<4 x i32> %A) { diff --git a/llvm/test/Transforms/InstCombine/vec_narrow.ll b/llvm/test/Transforms/InstCombine/vec_narrow.ll index fcb64c77c19..daf7bcf297c 100644 --- a/llvm/test/Transforms/InstCombine/vec_narrow.ll +++ b/llvm/test/Transforms/InstCombine/vec_narrow.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {add float} %V = type <4 x float> diff --git a/llvm/test/Transforms/InstCombine/vec_shuffle.ll b/llvm/test/Transforms/InstCombine/vec_shuffle.ll index 24930c35a8a..0a096d49c0d 100644 --- a/llvm/test/Transforms/InstCombine/vec_shuffle.ll +++ b/llvm/test/Transforms/InstCombine/vec_shuffle.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep vector_shuffle +; RUN: opt < %s -instcombine -S | not grep vector_shuffle ; END. %T = type <4 x float> diff --git a/llvm/test/Transforms/InstCombine/vec_shuffle2.ll b/llvm/test/Transforms/InstCombine/vec_shuffle2.ll index 2e53665ec49..5f437b30f5b 100644 --- a/llvm/test/Transforms/InstCombine/vec_shuffle2.ll +++ b/llvm/test/Transforms/InstCombine/vec_shuffle2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep undef | count 1 +; RUN: opt < %s -instcombine -S | grep undef | count 1 ; END. ; Test fold of two shuffles where the first shuffle vectors inputs are a diff --git a/llvm/test/Transforms/InstCombine/vector-casts.ll b/llvm/test/Transforms/InstCombine/vector-casts.ll index 8baa9345e8e..470d4854753 100644 --- a/llvm/test/Transforms/InstCombine/vector-casts.ll +++ b/llvm/test/Transforms/InstCombine/vector-casts.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | FileCheck %s +; RUN: opt < %s -instcombine -S | FileCheck %s ; This turns into a&1 != 0 define <2 x i1> @test1(<2 x i64> %a) { diff --git a/llvm/test/Transforms/InstCombine/vector-srem.ll b/llvm/test/Transforms/InstCombine/vector-srem.ll index 0a7c677cc83..acb11c52adb 100644 --- a/llvm/test/Transforms/InstCombine/vector-srem.ll +++ b/llvm/test/Transforms/InstCombine/vector-srem.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {srem <4 x i32>} +; RUN: opt < %s -instcombine -S | grep {srem <4 x i32>} define <4 x i32> @foo(<4 x i32> %t, <4 x i32> %u) { diff --git a/llvm/test/Transforms/InstCombine/volatile_store.ll b/llvm/test/Transforms/InstCombine/volatile_store.ll index c9f3c53405e..5316bd772e1 100644 --- a/llvm/test/Transforms/InstCombine/volatile_store.ll +++ b/llvm/test/Transforms/InstCombine/volatile_store.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -instcombine -S | grep {volatile store} -; RUN: opt %s -instcombine -S | grep {volatile load} +; RUN: opt < %s -instcombine -S | grep {volatile store} +; RUN: opt < %s -instcombine -S | grep {volatile load} @x = weak global i32 0 ; <i32*> [#uses=2] diff --git a/llvm/test/Transforms/InstCombine/xor-demorgans.ll b/llvm/test/Transforms/InstCombine/xor-demorgans.ll index 6b5b2a2f307..3383845fb36 100644 --- a/llvm/test/Transforms/InstCombine/xor-demorgans.ll +++ b/llvm/test/Transforms/InstCombine/xor-demorgans.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | not grep {= or} +; RUN: opt < %s -instcombine -S | not grep {= or} ; PR3266 ; XFAIL: * diff --git a/llvm/test/Transforms/InstCombine/xor-undef.ll b/llvm/test/Transforms/InstCombine/xor-undef.ll index 8616a421c9d..cf72955b66b 100644 --- a/llvm/test/Transforms/InstCombine/xor-undef.ll +++ b/llvm/test/Transforms/InstCombine/xor-undef.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep zeroinitializer +; RUN: opt < %s -instcombine -S | grep zeroinitializer define <2 x i64> @f() { %tmp = xor <2 x i64> undef, undef diff --git a/llvm/test/Transforms/InstCombine/xor.ll b/llvm/test/Transforms/InstCombine/xor.ll index e5dfa5bff28..a7bcdac08bd 100644 --- a/llvm/test/Transforms/InstCombine/xor.ll +++ b/llvm/test/Transforms/InstCombine/xor.ll @@ -1,6 +1,6 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: not grep {xor } ; END. @G1 = global i32 0 ; <i32*> [#uses=1] diff --git a/llvm/test/Transforms/InstCombine/xor2.ll b/llvm/test/Transforms/InstCombine/xor2.ll index 424d1b157fd..0f17ca96cb5 100644 --- a/llvm/test/Transforms/InstCombine/xor2.ll +++ b/llvm/test/Transforms/InstCombine/xor2.ll @@ -1,6 +1,6 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: opt %s -instcombine -S | not grep {xor } +; RUN: opt < %s -instcombine -S | not grep {xor } ; PR1253 define i1 @test0(i32 %A) { diff --git a/llvm/test/Transforms/InstCombine/zero-point-zero-add.ll b/llvm/test/Transforms/InstCombine/zero-point-zero-add.ll index b01a7134db9..d07a9f4b9de 100644 --- a/llvm/test/Transforms/InstCombine/zero-point-zero-add.ll +++ b/llvm/test/Transforms/InstCombine/zero-point-zero-add.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep 0.0 | count 1 +; RUN: opt < %s -instcombine -S | grep 0.0 | count 1 declare double @abs(double) diff --git a/llvm/test/Transforms/InstCombine/zeroext-and-reduce.ll b/llvm/test/Transforms/InstCombine/zeroext-and-reduce.ll index cdbb7b1a053..592b8a172f8 100644 --- a/llvm/test/Transforms/InstCombine/zeroext-and-reduce.ll +++ b/llvm/test/Transforms/InstCombine/zeroext-and-reduce.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: grep {and i32 %Y, 8} define i32 @test1(i8 %X) { diff --git a/llvm/test/Transforms/InstCombine/zext-fold.ll b/llvm/test/Transforms/InstCombine/zext-fold.ll index 008c5d0bb41..9521101e736 100644 --- a/llvm/test/Transforms/InstCombine/zext-fold.ll +++ b/llvm/test/Transforms/InstCombine/zext-fold.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine -S | grep {zext } | count 1 +; RUN: opt < %s -instcombine -S | grep {zext } | count 1 ; PR1570 define i32 @test2(float %X, float %Y) { diff --git a/llvm/test/Transforms/InstCombine/zext.ll b/llvm/test/Transforms/InstCombine/zext.ll index c926a650653..9aacd3a281e 100644 --- a/llvm/test/Transforms/InstCombine/zext.ll +++ b/llvm/test/Transforms/InstCombine/zext.ll @@ -1,5 +1,5 @@ ; Tests to make sure elimination of casts is working correctly -; RUN: opt %s -instcombine -S | \ +; RUN: opt < %s -instcombine -S | \ ; RUN: notcast {} {%c1.*} define i64 @test_sext_zext(i16 %A) { |

