diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-08 22:34:10 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-08 22:34:10 +0000 |
commit | 3e054fe9efc64596534bbae0d1634ed15181d642 (patch) | |
tree | 8da773058a2492290d4648d8f5dba5c3b8382142 /test/Transforms/ScalarRepl | |
parent | f31657990191d5b2bb1eb3bd95020fc3375f0e3d (diff) | |
download | llvm-3e054fe9efc64596534bbae0d1634ed15181d642.tar.gz llvm-3e054fe9efc64596534bbae0d1634ed15181d642.tar.bz2 llvm-3e054fe9efc64596534bbae0d1634ed15181d642.tar.xz |
Use opt -S instead of piping bitcode output through llvm-dis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81257 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ScalarRepl')
38 files changed, 48 insertions, 48 deletions
diff --git a/test/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll b/test/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll index 6171ae3075..51f1f3d756 100644 --- a/test/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll +++ b/test/Transforms/ScalarRepl/2003-05-29-ArrayFail.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl -instcombine | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -instcombine -S | not grep alloca ; Test that an array is not incorrectly deconstructed. diff --git a/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll b/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll index 54dc693e4a..7b921b7029 100644 --- a/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll +++ b/test/Transforms/ScalarRepl/2003-09-12-IncorrectPromote.ll @@ -1,6 +1,6 @@ ; Scalar replacement was incorrectly promoting this alloca!! ; -; RUN: opt %s -scalarrepl | llvm-dis | \ +; RUN: opt %s -scalarrepl -S | \ ; RUN: sed {s/;.*//g} | grep {\\\[} define i8* @test() { diff --git a/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll b/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll index ae65933f01..2acf2afd45 100644 --- a/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll +++ b/test/Transforms/ScalarRepl/2003-10-29-ArrayProblem.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | grep {alloca %T} +; RUN: opt %s -scalarrepl -S | grep {alloca %T} %T = type { [80 x i8], i32, i32 } declare i32 @.callback_1(i8*) diff --git a/test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll b/test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll index ab9a15b64b..2288c6d512 100644 --- a/test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll +++ b/test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -S | not grep alloca define i32 @func(<4 x float> %v0, <4 x float> %v1) nounwind { %vsiidx = alloca [2 x <4 x i32>], align 16 ; <[2 x <4 x i32>]*> [#uses=3] diff --git a/test/Transforms/ScalarRepl/2007-05-24-LargeAggregate.ll b/test/Transforms/ScalarRepl/2007-05-24-LargeAggregate.ll index 7a8532ca0c..b0844852bb 100644 --- a/test/Transforms/ScalarRepl/2007-05-24-LargeAggregate.ll +++ b/test/Transforms/ScalarRepl/2007-05-24-LargeAggregate.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | grep {alloca.*client_t} +; RUN: opt %s -scalarrepl -S | grep {alloca.*client_t} ; PR1446 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64" target triple = "i686-pc-linux-gnu" diff --git a/test/Transforms/ScalarRepl/2007-05-29-MemcpyPreserve.ll b/test/Transforms/ScalarRepl/2007-05-29-MemcpyPreserve.ll index 2d443717c6..fcf6dbb090 100644 --- a/test/Transforms/ScalarRepl/2007-05-29-MemcpyPreserve.ll +++ b/test/Transforms/ScalarRepl/2007-05-29-MemcpyPreserve.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | grep memcpy +; RUN: opt %s -scalarrepl -S | grep memcpy ; PR1421 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/test/Transforms/ScalarRepl/2007-11-03-bigendian_apint.ll b/test/Transforms/ScalarRepl/2007-11-03-bigendian_apint.ll index d66181adc9..55d6cf7cc8 100644 --- a/test/Transforms/ScalarRepl/2007-11-03-bigendian_apint.ll +++ b/test/Transforms/ScalarRepl/2007-11-03-bigendian_apint.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | not grep shr +; RUN: opt %s -scalarrepl -S | not grep shr %struct.S = type { i16 } diff --git a/test/Transforms/ScalarRepl/2008-01-29-PromoteBug.ll b/test/Transforms/ScalarRepl/2008-01-29-PromoteBug.ll index ac58f9c073..5fcf4a1f4f 100644 --- a/test/Transforms/ScalarRepl/2008-01-29-PromoteBug.ll +++ b/test/Transforms/ScalarRepl/2008-01-29-PromoteBug.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl -instcombine | llvm-dis | grep {ret i8 17} +; RUN: opt %s -scalarrepl -instcombine -S | grep {ret i8 17} ; rdar://5707076 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.1.0" diff --git a/test/Transforms/ScalarRepl/2008-02-28-SubElementExtractCrash.ll b/test/Transforms/ScalarRepl/2008-02-28-SubElementExtractCrash.ll index 86b91309f3..62d791550e 100644 --- a/test/Transforms/ScalarRepl/2008-02-28-SubElementExtractCrash.ll +++ b/test/Transforms/ScalarRepl/2008-02-28-SubElementExtractCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -S | not grep alloca 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" %struct..0anon = type { <1 x i64> } diff --git a/test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll b/test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll index 780447bc2c..323236d750 100644 --- a/test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll +++ b/test/Transforms/ScalarRepl/2008-06-05-loadstore-agg.ll @@ -3,7 +3,7 @@ ; instruction, which was not possible before aggregrates were first class ; values. This checks of scalarrepl splits up the struct and array properly. -; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -S | not grep alloca define i32 @foo() { %target = alloca { i32, i32 } ; <{ i32, i32 }*> [#uses=1] diff --git a/test/Transforms/ScalarRepl/2008-06-22-LargeArray.ll b/test/Transforms/ScalarRepl/2008-06-22-LargeArray.ll index f6bf52e4f8..813ff9c511 100644 --- a/test/Transforms/ScalarRepl/2008-06-22-LargeArray.ll +++ b/test/Transforms/ScalarRepl/2008-06-22-LargeArray.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | grep {call.*mem} +; RUN: opt %s -scalarrepl -S | grep {call.*mem} ; PR2369 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/test/Transforms/ScalarRepl/2008-08-22-out-of-range-array-promote.ll b/test/Transforms/ScalarRepl/2008-08-22-out-of-range-array-promote.ll index 4122f2536c..414bf2d972 100644 --- a/test/Transforms/ScalarRepl/2008-08-22-out-of-range-array-promote.ll +++ b/test/Transforms/ScalarRepl/2008-08-22-out-of-range-array-promote.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | grep {s = alloca .struct.x} +; RUN: opt %s -scalarrepl -S | grep {s = alloca .struct.x} ; PR2423 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/test/Transforms/ScalarRepl/2008-09-22-vector-gep.ll b/test/Transforms/ScalarRepl/2008-09-22-vector-gep.ll index 0215e5bba8..80a86b117e 100644 --- a/test/Transforms/ScalarRepl/2008-09-22-vector-gep.ll +++ b/test/Transforms/ScalarRepl/2008-09-22-vector-gep.ll @@ -3,7 +3,7 @@ ; this would not work when there was a vector involved in the struct, preventing ; scalarrepl from removing the alloca below. -; RUN: opt %s -scalarrepl | llvm-dis > %t +; RUN: opt %s -scalarrepl -S > %t ; RUN: cat %t | not grep alloca %struct.two = type <{ < 2 x i8 >, i16 }> diff --git a/test/Transforms/ScalarRepl/2009-02-02-ScalarPromoteOutOfRange.ll b/test/Transforms/ScalarRepl/2009-02-02-ScalarPromoteOutOfRange.ll index 37bb85c0f6..3b57856f6a 100644 --- a/test/Transforms/ScalarRepl/2009-02-02-ScalarPromoteOutOfRange.ll +++ b/test/Transforms/ScalarRepl/2009-02-02-ScalarPromoteOutOfRange.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl -instcombine | llvm-dis | grep {ret i32 %x} +; RUN: opt %s -scalarrepl -instcombine -S | grep {ret i32 %x} 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/test/Transforms/ScalarRepl/2009-02-05-LoadFCA.ll b/test/Transforms/ScalarRepl/2009-02-05-LoadFCA.ll index 833bbbdf02..fa49c4f860 100644 --- a/test/Transforms/ScalarRepl/2009-02-05-LoadFCA.ll +++ b/test/Transforms/ScalarRepl/2009-02-05-LoadFCA.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl -instcombine -inline -instcombine | llvm-dis | grep {ret i32 42} +; RUN: opt %s -scalarrepl -instcombine -inline -instcombine -S | grep {ret i32 42} ; PR3489 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" target triple = "x86_64-apple-darwin10.0" diff --git a/test/Transforms/ScalarRepl/2009-03-04-MemCpyAlign.ll b/test/Transforms/ScalarRepl/2009-03-04-MemCpyAlign.ll index b0848ab598..4879973551 100644 --- a/test/Transforms/ScalarRepl/2009-03-04-MemCpyAlign.ll +++ b/test/Transforms/ScalarRepl/2009-03-04-MemCpyAlign.ll @@ -1,6 +1,6 @@ ; The store into %p should end up with a known alignment of 1, since the memcpy ; is only known to access it with 1-byte alignment. -; RUN: opt %s -scalarrepl | llvm-dis | grep {store i16 1, .*, align 1} +; RUN: opt %s -scalarrepl -S | grep {store i16 1, .*, align 1} ; PR3720 %struct.st = type { i16 } diff --git a/test/Transforms/ScalarRepl/2009-03-17-CleanUp.ll b/test/Transforms/ScalarRepl/2009-03-17-CleanUp.ll index 55ba33afbc..fed26ad532 100644 --- a/test/Transforms/ScalarRepl/2009-03-17-CleanUp.ll +++ b/test/Transforms/ScalarRepl/2009-03-17-CleanUp.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | grep store | not grep undef +; RUN: opt %s -scalarrepl -S | grep store | not grep undef ; ModuleID = '<stdin>' 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/test/Transforms/ScalarRepl/AggregatePromote.ll b/test/Transforms/ScalarRepl/AggregatePromote.ll index 6b8a50bee5..581421ef87 100644 --- a/test/Transforms/ScalarRepl/AggregatePromote.ll +++ b/test/Transforms/ScalarRepl/AggregatePromote.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | \ +; RUN: opt %s -scalarrepl -S | \ ; RUN: not grep alloca target datalayout = "E-p:32:32" diff --git a/test/Transforms/ScalarRepl/DifferingTypes.ll b/test/Transforms/ScalarRepl/DifferingTypes.ll index 0bcd38d5ef..adc4113241 100644 --- a/test/Transforms/ScalarRepl/DifferingTypes.ll +++ b/test/Transforms/ScalarRepl/DifferingTypes.ll @@ -1,7 +1,7 @@ ; This is a feature test. Hopefully one day this will be implemented. The ; generated code should perform the appropriate masking operations required ; depending on the endianness of the target... -; RUN: opt %s -scalarrepl | llvm-dis | \ +; RUN: opt %s -scalarrepl -S | \ ; RUN: not grep alloca define i32 @testfunc(i32 %i, i8 %j) { diff --git a/test/Transforms/ScalarRepl/arraytest.ll b/test/Transforms/ScalarRepl/arraytest.ll index 4499f67bc4..849b4d59bd 100644 --- a/test/Transforms/ScalarRepl/arraytest.ll +++ b/test/Transforms/ScalarRepl/arraytest.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl -mem2reg | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -mem2reg -S | not grep alloca define i32 @test() { %X = alloca [4 x i32] ; <[4 x i32]*> [#uses=1] diff --git a/test/Transforms/ScalarRepl/badarray.ll b/test/Transforms/ScalarRepl/badarray.ll index 686c13714f..92191d45e6 100644 --- a/test/Transforms/ScalarRepl/badarray.ll +++ b/test/Transforms/ScalarRepl/badarray.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl -instcombine | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -instcombine -S | not grep alloca ; PR3466 define i32 @test() { diff --git a/test/Transforms/ScalarRepl/basictest.ll b/test/Transforms/ScalarRepl/basictest.ll index 7e5998b052..84baf07d25 100644 --- a/test/Transforms/ScalarRepl/basictest.ll +++ b/test/Transforms/ScalarRepl/basictest.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl -mem2reg | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -mem2reg -S | not grep alloca define i32 @test() { %X = alloca { i32, float } ; <{ i32, float }*> [#uses=1] diff --git a/test/Transforms/ScalarRepl/bitfield-sroa.ll b/test/Transforms/ScalarRepl/bitfield-sroa.ll index 54fe08e486..2d9e5696ea 100644 --- a/test/Transforms/ScalarRepl/bitfield-sroa.ll +++ b/test/Transforms/ScalarRepl/bitfield-sroa.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -S | not grep alloca ; rdar://6532315 %t = type { { i32, i16, i8, i8 } } diff --git a/test/Transforms/ScalarRepl/copy-aggregate.ll b/test/Transforms/ScalarRepl/copy-aggregate.ll index c98e03d768..17534cf937 100644 --- a/test/Transforms/ScalarRepl/copy-aggregate.ll +++ b/test/Transforms/ScalarRepl/copy-aggregate.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -S | not grep alloca ; PR3290 ;; Store of integer to whole alloca struct. diff --git a/test/Transforms/ScalarRepl/debuginfo.ll b/test/Transforms/ScalarRepl/debuginfo.ll index 8484a34e78..6c6a396644 100644 --- a/test/Transforms/ScalarRepl/debuginfo.ll +++ b/test/Transforms/ScalarRepl/debuginfo.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca +; RUN: opt %s -scalarrepl -S | not grep alloca %llvm.dbg.anchor.type = type { i32, i32 } %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 } %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8* } diff --git a/test/Transforms/ScalarRepl/load-store-aggregate.ll b/test/Transforms/ScalarRepl/load-store-aggregate.ll index f6f9cbf022..7990b3158d 100644 --- a/test/Transforms/ScalarRepl/load-store-aggregate.ll +++ b/test/Transforms/ScalarRepl/load-store-aggregate.ll @@ -2,7 +2,7 @@ ; are directly loaded from or stored to (using the first class aggregates ; feature). -; RUN: opt %s -scalarrepl | llvm-dis > %t +; RUN: opt %s -scalarrepl -S > %t ; RUN: cat %t | not grep alloca %struct.foo = type { i32, i32 } diff --git a/test/Transforms/ScalarRepl/memcpy-from-global.ll b/test/Transforms/ScalarRepl/memcpy-from-global.ll index 111b2933f0..e5bf52289a 100644 --- a/test/Transforms/ScalarRepl/memcpy-from-global.ll +++ b/test/Transforms/ScalarRepl/memcpy-from-global.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis | not grep {call.*memcpy} +; RUN: opt %s -scalarrepl -S | not grep {call.*memcpy} @C.0.1248 = internal constant [128 x float] [ float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float -1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float -1.000000e+00, float 1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float -1.000000e+00, float 0.000000e+00, float 1.000000e+00, float 1.000000e+00, float 1.000000e+00 ], align 32 ; <[128 x float]*> [#uses=1] define float @grad4(i32 %hash, float %x, float %y, float %z, float %w) { diff --git a/test/Transforms/ScalarRepl/memset-aggregate-byte-leader.ll b/test/Transforms/ScalarRepl/memset-aggregate-byte-leader.ll index 1ec67c5138..44f094c7c0 100644 --- a/test/Transforms/ScalarRepl/memset-aggregate-byte-leader.ll +++ b/test/Transforms/ScalarRepl/memset-aggregate-byte-leader.ll @@ -1,7 +1,7 @@ ; PR1226 -; RUN: opt %s -scalarrepl | llvm-dis | \ +; RUN: opt %s -scalarrepl -S | \ ; RUN: not grep {call void @llvm.memcpy.i32} -; RUN: opt %s -scalarrepl | llvm-dis | grep getelementptr +; RUN: opt %s -scalarrepl -S | grep getelementptr ; END. target datalayout = "E-p:32:32" diff --git a/test/Transforms/ScalarRepl/memset-aggregate.ll b/test/Transforms/ScalarRepl/memset-aggregate.ll index 0e1f025d92..c4685bd226 100644 --- a/test/Transforms/ScalarRepl/memset-aggregate.ll +++ b/test/Transforms/ScalarRepl/memset-aggregate.ll @@ -1,7 +1,7 @@ ; PR1226 -; RUN: opt %s -scalarrepl | llvm-dis | grep {ret i32 16843009} -; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca -; RUN: opt %s -scalarrepl -instcombine | llvm-dis | grep {ret i16 514} +; RUN: opt %s -scalarrepl -S | grep {ret i32 16843009} +; RUN: opt %s -scalarrepl -S | not grep alloca +; RUN: opt %s -scalarrepl -instcombine -S | grep {ret i16 514} target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64" target triple = "i686-apple-darwin8" diff --git a/test/Transforms/ScalarRepl/not-a-vector.ll b/test/Transforms/ScalarRepl/not-a-vector.ll index f89ac613e6..e64d7d901c 100644 --- a/test/Transforms/ScalarRepl/not-a-vector.ll +++ b/test/Transforms/ScalarRepl/not-a-vector.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca -; RUN: opt %s -scalarrepl | llvm-dis | not grep {7 x double} -; RUN: opt %s -scalarrepl -instcombine | llvm-dis | grep {ret double %B} +; RUN: opt %s -scalarrepl -S | not grep alloca +; RUN: opt %s -scalarrepl -S | not grep {7 x double} +; RUN: opt %s -scalarrepl -instcombine -S | grep {ret double %B} define double @test(double %A, double %B) { %ARR = alloca [7 x i64] diff --git a/test/Transforms/ScalarRepl/phinodepromote.ll b/test/Transforms/ScalarRepl/phinodepromote.ll index c8ec35f30b..c6f2525857 100644 --- a/test/Transforms/ScalarRepl/phinodepromote.ll +++ b/test/Transforms/ScalarRepl/phinodepromote.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -simplifycfg -instcombine -mem2reg | llvm-dis | not grep alloca +; RUN: opt %s -simplifycfg -instcombine -mem2reg -S | not grep alloca ; ; This tests to see if mem2reg can promote alloca instructions whose addresses ; are used by PHI nodes that are immediately loaded. The LLVM C++ front-end diff --git a/test/Transforms/ScalarRepl/select_promote.ll b/test/Transforms/ScalarRepl/select_promote.ll index 5cbeea7b91..bcf8409484 100644 --- a/test/Transforms/ScalarRepl/select_promote.ll +++ b/test/Transforms/ScalarRepl/select_promote.ll @@ -1,7 +1,7 @@ ; Test promotion of loads that use the result of a select instruction. This ; should be simplified by the instcombine pass. -; RUN: opt %s -instcombine -mem2reg | llvm-dis | not grep alloca +; RUN: opt %s -instcombine -mem2reg -S | not grep alloca define i32 @main() { %mem_tmp.0 = alloca i32 ; <i32*> [#uses=3] diff --git a/test/Transforms/ScalarRepl/union-fp-int.ll b/test/Transforms/ScalarRepl/union-fp-int.ll index 7c3821c3a1..e77c3ac12c 100644 --- a/test/Transforms/ScalarRepl/union-fp-int.ll +++ b/test/Transforms/ScalarRepl/union-fp-int.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -scalarrepl | llvm-dis | \ +; RUN: opt %s -scalarrepl -S | \ ; RUN: not grep alloca -; RUN: opt %s -scalarrepl | llvm-dis | \ +; RUN: opt %s -scalarrepl -S | \ ; RUN: grep {bitcast.*float.*i32} define i32 @test(float %X) { diff --git a/test/Transforms/ScalarRepl/union-packed.ll b/test/Transforms/ScalarRepl/union-packed.ll index df68951d90..7ba619f9f0 100644 --- a/test/Transforms/ScalarRepl/union-packed.ll +++ b/test/Transforms/ScalarRepl/union-packed.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -scalarrepl | llvm-dis | \ +; RUN: opt %s -scalarrepl -S | \ ; RUN: not grep alloca -; RUN: opt %s -scalarrepl | llvm-dis | \ +; RUN: opt %s -scalarrepl -S | \ ; RUN: grep bitcast define <4 x i32> @test(<4 x float> %X) { diff --git a/test/Transforms/ScalarRepl/union-pointer.ll b/test/Transforms/ScalarRepl/union-pointer.ll index f6b9eb89e6..33075f5aad 100644 --- a/test/Transforms/ScalarRepl/union-pointer.ll +++ b/test/Transforms/ScalarRepl/union-pointer.ll @@ -1,7 +1,7 @@ ; PR892 -; RUN: opt %s -scalarrepl | llvm-dis | \ +; RUN: opt %s -scalarrepl -S | \ ; RUN: not grep alloca -; RUN: opt %s -scalarrepl | llvm-dis | grep {ret i8} +; RUN: opt %s -scalarrepl -S | grep {ret i8} target datalayout = "e-p:32:32" target triple = "i686-apple-darwin8.7.2" diff --git a/test/Transforms/ScalarRepl/vector_memcpy.ll b/test/Transforms/ScalarRepl/vector_memcpy.ll index 6032dd376e..8df27ffbcb 100644 --- a/test/Transforms/ScalarRepl/vector_memcpy.ll +++ b/test/Transforms/ScalarRepl/vector_memcpy.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -scalarrepl | llvm-dis > %t +; RUN: opt %s -scalarrepl -S > %t ; RUN: grep {ret <16 x float> %A} %t ; RUN: grep {ret <16 x float> zeroinitializer} %t diff --git a/test/Transforms/ScalarRepl/vector_promote.ll b/test/Transforms/ScalarRepl/vector_promote.ll index a8f326e221..597400d1cc 100644 --- a/test/Transforms/ScalarRepl/vector_promote.ll +++ b/test/Transforms/ScalarRepl/vector_promote.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -scalarrepl | llvm-dis | not grep alloca -; RUN: opt %s -scalarrepl | llvm-dis | grep {load <4 x float>} +; RUN: opt %s -scalarrepl -S | not grep alloca +; RUN: opt %s -scalarrepl -S | grep {load <4 x float>} define void @test(<4 x float>* %F, float %f) { entry: diff --git a/test/Transforms/ScalarRepl/volatile.ll b/test/Transforms/ScalarRepl/volatile.ll index 4542761387..3cbcaf30ed 100644 --- a/test/Transforms/ScalarRepl/volatile.ll +++ b/test/Transforms/ScalarRepl/volatile.ll @@ -1,5 +1,5 @@ -; RUN: opt %s -scalarrepl | llvm-dis | grep {volatile load} -; RUN: opt %s -scalarrepl | llvm-dis | grep {volatile store} +; RUN: opt %s -scalarrepl -S | grep {volatile load} +; RUN: opt %s -scalarrepl -S | grep {volatile store} define i32 @voltest(i32 %T) { %A = alloca {i32, i32} |