diff options
Diffstat (limited to 'test/Transforms/InstCombine')
33 files changed, 33 insertions, 33 deletions
diff --git a/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll b/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll index 86dacf7..3bf8648 100644 --- a/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll +++ b/test/Transforms/InstCombine/2002-03-11-InstCombineHang.ll @@ -1,6 +1,6 @@ ; This testcase causes instcombine to hang. ; -; RUN: as < %s | opt -instcombine +; RUN: llvm-as < %s | opt -instcombine implementation diff --git a/test/Transforms/InstCombine/2002-05-14-SubFailure.ll b/test/Transforms/InstCombine/2002-05-14-SubFailure.ll index 101351e..6f832f2 100644 --- a/test/Transforms/InstCombine/2002-05-14-SubFailure.ll +++ b/test/Transforms/InstCombine/2002-05-14-SubFailure.ll @@ -1,7 +1,7 @@ ; Instcombine was missing a test that caused it to make illegal transformations ; sometimes. In this case, it transforms the sub into an add: ; RUN: echo foo -; RUN: as < %s | opt -instcombine | dis | not grep add +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep add ; diff --git a/test/Transforms/InstCombine/2002-05-14-TouchDeletedInst.ll b/test/Transforms/InstCombine/2002-05-14-TouchDeletedInst.ll index 62b1229..1ebe6c8 100644 --- a/test/Transforms/InstCombine/2002-05-14-TouchDeletedInst.ll +++ b/test/Transforms/InstCombine/2002-05-14-TouchDeletedInst.ll @@ -4,7 +4,7 @@ ; stayed on the worklist, as soon as it came back up to be processed, bad things ; happened, and opt asserted. ; -; RUN: as < %s | opt -instcombine +; RUN: llvm-as < %s | opt -instcombine ; %.LC0 = internal global [21 x sbyte] c"hbMakeCodeLengths(1)\00" ; <[21 x sbyte]*> [#uses=1] diff --git a/test/Transforms/InstCombine/2002-08-02-CastTest.ll b/test/Transforms/InstCombine/2002-08-02-CastTest.ll index 2e76283..4dce242 100644 --- a/test/Transforms/InstCombine/2002-08-02-CastTest.ll +++ b/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: as < %s | opt -instcombine -die | dis | grep '%c' +; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep '%c' ; ulong %test3(ulong %A) { %c1 = cast ulong %A to ubyte diff --git a/test/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll b/test/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll index 18496f2..c632ac1 100644 --- a/test/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll +++ b/test/Transforms/InstCombine/2002-09-17-GetElementPtrCrash.ll @@ -1,4 +1,4 @@ -; RUN: as < %s | opt -instcombine +; RUN: llvm-as < %s | opt -instcombine %bob = type { int } diff --git a/test/Transforms/InstCombine/2002-12-05-MissedConstProp.ll b/test/Transforms/InstCombine/2002-12-05-MissedConstProp.ll index 6fa77b6..ec29e6b 100644 --- a/test/Transforms/InstCombine/2002-12-05-MissedConstProp.ll +++ b/test/Transforms/InstCombine/2002-12-05-MissedConstProp.ll @@ -1,4 +1,4 @@ -; RUN: as < %s | opt -instcombine | dis | not grep add +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep add int %test(int %A) { %A.neg = sub int 0, %A diff --git a/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll b/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll index e285120..218a536 100644 --- a/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll +++ b/test/Transforms/InstCombine/2003-05-26-CastMiscompile.ll @@ -1,4 +1,4 @@ -; RUN: as < %s | opt -instcombine | dis | grep 4294967295 +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 4294967295 ulong %test(ulong %Val) { %tmp.3 = cast ulong %Val to uint ; <uint> [#uses=1] diff --git a/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll b/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll index 353a036..309191c 100644 --- a/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll +++ b/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll @@ -1,4 +1,4 @@ -; RUN: as < %s | opt -instcombine -disable-output +; RUN: llvm-as < %s | opt -instcombine -disable-output %X = global int 5 long %test() { diff --git a/test/Transforms/InstCombine/2003-06-05-BranchInvertInfLoop.ll b/test/Transforms/InstCombine/2003-06-05-BranchInvertInfLoop.ll index a297230..3d26024 100644 --- a/test/Transforms/InstCombine/2003-06-05-BranchInvertInfLoop.ll +++ b/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: as < %s | opt -instcombine -disable-output +; RUN: llvm-as < %s | opt -instcombine -disable-output ubyte %test19(bool %c) { br bool true, label %True, label %False diff --git a/test/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll b/test/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll index 9539fa8..917c86c 100644 --- a/test/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll +++ b/test/Transforms/InstCombine/2003-06-22-ConstantExprCrash.ll @@ -1,7 +1,7 @@ ; This is a bug in the VMcode library, not instcombine, it's just convenient ; to expose it here. -; RUN: as < %s | opt -instcombine -disable-output +; RUN: llvm-as < %s | opt -instcombine -disable-output %A = global int 1 %B = global int 2 diff --git a/test/Transforms/InstCombine/2003-07-21-ExternalConstant.ll b/test/Transforms/InstCombine/2003-07-21-ExternalConstant.ll index a98a68e..2fc1b20 100644 --- a/test/Transforms/InstCombine/2003-07-21-ExternalConstant.ll +++ b/test/Transforms/InstCombine/2003-07-21-ExternalConstant.ll @@ -10,7 +10,7 @@ ; should pass through the optimizer without failure. ; ; Extra code: -; RUN: as < %s | opt -instcombine +; RUN: llvm-as < %s | opt -instcombine ; target endian = little diff --git a/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll b/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll index 335b884..e2b2afd 100644 --- a/test/Transforms/InstCombine/2003-08-12-AllocaNonNull.ll +++ b/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: as < %s | opt -instcombine -simplifycfg | dis | not grep 'br ' +; RUN: llvm-as < %s | opt -instcombine -simplifycfg | llvm-dis | not grep 'br ' implementation ; Functions: diff --git a/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll b/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll index 890d61e..355087a 100644 --- a/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll +++ b/test/Transforms/InstCombine/2003-09-09-VolatileLoadElim.ll @@ -1,4 +1,4 @@ -; RUN: as < %s | opt -instcombine | dis | grep load +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep load void %test(int* %P) { %X = volatile load int* %P ; Dead but not deletable! ret void diff --git a/test/Transforms/InstCombine/add.ll b/test/Transforms/InstCombine/add.ll index a70d490..afcef78 100644 --- a/test/Transforms/InstCombine/add.ll +++ b/test/Transforms/InstCombine/add.ll @@ -1,6 +1,6 @@ ; This test makes sure that add instructions are properly eliminated. -; RUN: as < %s | opt -instcombine -die | dis | grep -v OK | not grep add +; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep -v OK | not grep add implementation diff --git a/test/Transforms/InstCombine/and.ll b/test/Transforms/InstCombine/and.ll index 59fb823..5030a66 100644 --- a/test/Transforms/InstCombine/and.ll +++ b/test/Transforms/InstCombine/and.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine | dis | not grep and +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep and implementation diff --git a/test/Transforms/InstCombine/call.ll b/test/Transforms/InstCombine/call.ll index cf06244..a1da2c6 100644 --- a/test/Transforms/InstCombine/call.ll +++ b/test/Transforms/InstCombine/call.ll @@ -1,4 +1,4 @@ -; RUN: as < %s | opt -instcombine -die | dis | grep call | not grep cast +; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep call | not grep cast implementation diff --git a/test/Transforms/InstCombine/cast-set.ll b/test/Transforms/InstCombine/cast-set.ll index 9cc3225..721faef 100644 --- a/test/Transforms/InstCombine/cast-set.ll +++ b/test/Transforms/InstCombine/cast-set.ll @@ -3,7 +3,7 @@ ; slow. Might it be better to make there be an instcombine prepass before ; level raise that takes care of the obvious stuff? -; RUN: as < %s | opt -instcombine | dis | not grep cast +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep cast bool %test1(int %X) { %A = cast int %X to uint diff --git a/test/Transforms/InstCombine/cast.ll b/test/Transforms/InstCombine/cast.ll index d16ed4f..b6a47b8 100644 --- a/test/Transforms/InstCombine/cast.ll +++ b/test/Transforms/InstCombine/cast.ll @@ -1,6 +1,6 @@ ; Tests to make sure elimination of casts is working correctly -; RUN: as < %s | opt -instcombine -die | dis | grep '%c' | not grep cast +; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep '%c' | not grep cast implementation diff --git a/test/Transforms/InstCombine/div.ll b/test/Transforms/InstCombine/div.ll index 543bd21..01fcf7f 100644 --- a/test/Transforms/InstCombine/div.ll +++ b/test/Transforms/InstCombine/div.ll @@ -1,7 +1,7 @@ ; This test makes sure that div instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine | dis | not grep div +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep div implementation diff --git a/test/Transforms/InstCombine/getelementptr.ll b/test/Transforms/InstCombine/getelementptr.ll index 09642cd..4c8bbd2 100644 --- a/test/Transforms/InstCombine/getelementptr.ll +++ b/test/Transforms/InstCombine/getelementptr.ll @@ -1,6 +1,6 @@ ; The %A getelementptr instruction should be eliminated here -; RUN: as < %s | opt -instcombine -die | dis | grep getelementptr | not grep '%A ' +; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep getelementptr | not grep '%A ' %Global = constant [10 x sbyte] c"helloworld" diff --git a/test/Transforms/InstCombine/load.ll b/test/Transforms/InstCombine/load.ll index f085346..fa40284 100644 --- a/test/Transforms/InstCombine/load.ll +++ b/test/Transforms/InstCombine/load.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine | dis | not grep load +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep load %X = constant int 42 %Y = constant [2 x { int, float }] [ { int, float } { int 12, float 1.0 }, diff --git a/test/Transforms/InstCombine/malloc.ll b/test/Transforms/InstCombine/malloc.ll index 3545f30..3231acf 100644 --- a/test/Transforms/InstCombine/malloc.ll +++ b/test/Transforms/InstCombine/malloc.ll @@ -1,5 +1,5 @@ ; test that malloc's with a constant argument are promoted to array allocations -; RUN: as < %s | opt -instcombine -die | dis | grep getelementptr +; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep getelementptr int* %test() { %X = malloc int, uint 4 diff --git a/test/Transforms/InstCombine/mul.ll b/test/Transforms/InstCombine/mul.ll index d7ad546..2cafce0 100644 --- a/test/Transforms/InstCombine/mul.ll +++ b/test/Transforms/InstCombine/mul.ll @@ -1,7 +1,7 @@ ; This test makes sure that mul instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine | dis | not grep mul +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep mul implementation diff --git a/test/Transforms/InstCombine/not.ll b/test/Transforms/InstCombine/not.ll index 92ddffd..f87e4be 100644 --- a/test/Transforms/InstCombine/not.ll +++ b/test/Transforms/InstCombine/not.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine -die | dis | not grep xor +; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | not grep xor implementation diff --git a/test/Transforms/InstCombine/or.ll b/test/Transforms/InstCombine/or.ll index 4165c52..e4d5bb7 100644 --- a/test/Transforms/InstCombine/or.ll +++ b/test/Transforms/InstCombine/or.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine | dis | grep -v xor | not grep 'or ' +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep -v xor | not grep 'or ' implementation diff --git a/test/Transforms/InstCombine/phi.ll b/test/Transforms/InstCombine/phi.ll index 2c16f72..e8eea8f 100644 --- a/test/Transforms/InstCombine/phi.ll +++ b/test/Transforms/InstCombine/phi.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine -die | dis | not grep phi +; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | not grep phi implementation diff --git a/test/Transforms/InstCombine/pow.ll b/test/Transforms/InstCombine/pow.ll index ee84ac6..308bf5a 100644 --- a/test/Transforms/InstCombine/pow.ll +++ b/test/Transforms/InstCombine/pow.ll @@ -2,7 +2,7 @@ ; ; Equivalent to: http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01786.html -; RUN: as < %s | opt -instcombine | dis | not grep 'call double %pow' +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'call double %pow' declare double %pow(double, double) diff --git a/test/Transforms/InstCombine/rem.ll b/test/Transforms/InstCombine/rem.ll index 3c94145..b7a9a0a 100644 --- a/test/Transforms/InstCombine/rem.ll +++ b/test/Transforms/InstCombine/rem.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine | dis | not grep rem +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep rem implementation diff --git a/test/Transforms/InstCombine/set.ll b/test/Transforms/InstCombine/set.ll index 12e73e9..762ca6c 100644 --- a/test/Transforms/InstCombine/set.ll +++ b/test/Transforms/InstCombine/set.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine | dis | not grep set +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep set %X = uninitialized global int diff --git a/test/Transforms/InstCombine/setcc-strength-reduce.ll b/test/Transforms/InstCombine/setcc-strength-reduce.ll index 36114ca..0c6683c 100644 --- a/test/Transforms/InstCombine/setcc-strength-reduce.ll +++ b/test/Transforms/InstCombine/setcc-strength-reduce.ll @@ -3,7 +3,7 @@ ; into equivalent setne,eq instructions. ; -; RUN: as < %s | opt -instcombine | dis | grep -v seteq | grep -v setne | not grep set +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep -v seteq | grep -v setne | not grep set bool %test1(uint %A) { %B = setge uint %A, 1 ; setne %A, 0 diff --git a/test/Transforms/InstCombine/shift.ll b/test/Transforms/InstCombine/shift.ll index b11d6dc..016d00f 100644 --- a/test/Transforms/InstCombine/shift.ll +++ b/test/Transforms/InstCombine/shift.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine | dis | not grep sh +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep sh implementation diff --git a/test/Transforms/InstCombine/sub.ll b/test/Transforms/InstCombine/sub.ll index b17e97d..4f2a1c9 100644 --- a/test/Transforms/InstCombine/sub.ll +++ b/test/Transforms/InstCombine/sub.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine -die | dis | grep sub | not grep -v 'sub int %Cok, %Bok' +; RUN: llvm-as < %s | opt -instcombine -die | llvm-dis | grep sub | not grep -v 'sub int %Cok, %Bok' implementation diff --git a/test/Transforms/InstCombine/xor.ll b/test/Transforms/InstCombine/xor.ll index 0a33a12..6082e0c 100644 --- a/test/Transforms/InstCombine/xor.ll +++ b/test/Transforms/InstCombine/xor.ll @@ -1,7 +1,7 @@ ; This test makes sure that these instructions are properly eliminated. ; -; RUN: as < %s | opt -instcombine | dis | not grep 'xor ' +; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep 'xor ' implementation |