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/ConstProp | |
parent | f31657990191d5b2bb1eb3bd95020fc3375f0e3d (diff) |
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/ConstProp')
-rw-r--r-- | test/Transforms/ConstProp/2002-05-03-NotOperator.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/2006-11-30-vector-cast.ll | 4 | ||||
-rw-r--r-- | test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/2006-12-01-bool-casts.ll | 4 | ||||
-rw-r--r-- | test/Transforms/ConstProp/2007-02-05-BitCast.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/2007-11-23-cttz.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/basictest.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/bitcast2.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/bswap.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/calls.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/div-zero.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/float-to-ptr-cast.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/logicaltest.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/nottest.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/phi.ll | 2 | ||||
-rw-r--r-- | test/Transforms/ConstProp/remtest.ll | 2 |
18 files changed, 20 insertions, 20 deletions
diff --git a/test/Transforms/ConstProp/2002-05-03-NotOperator.ll b/test/Transforms/ConstProp/2002-05-03-NotOperator.ll index 0164252d75..295ef0c0bc 100644 --- a/test/Transforms/ConstProp/2002-05-03-NotOperator.ll +++ b/test/Transforms/ConstProp/2002-05-03-NotOperator.ll @@ -4,7 +4,7 @@ ; Fix #2: The unary not instruction now no longer exists. Change to xor. -; RUN: opt %s -constprop | llvm-dis | \ +; RUN: opt %s -constprop -S | \ ; RUN: not grep {i32 0} define i32 @test1() { diff --git a/test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll b/test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll index 6eadb0a77e..c3600673d5 100644 --- a/test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll +++ b/test/Transforms/ConstProp/2002-09-03-SetCC-Bools.ll @@ -1,6 +1,6 @@ ; SetCC on boolean values was not implemented! -; RUN: opt %s -constprop -die | llvm-dis | \ +; RUN: opt %s -constprop -die -S | \ ; RUN: not grep set define i1 @test1() { diff --git a/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll b/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll index c99c3b8529..6a7f794414 100644 --- a/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll +++ b/test/Transforms/ConstProp/2005-01-28-SetCCGEP.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -constprop | llvm-dis | \ +; RUN: opt %s -constprop -S | \ ; RUN: not grep {ret i1 false} @b = external global [2 x { }] ; <[2 x { }]*> [#uses=2] diff --git a/test/Transforms/ConstProp/2006-11-30-vector-cast.ll b/test/Transforms/ConstProp/2006-11-30-vector-cast.ll index c631352499..571e460573 100644 --- a/test/Transforms/ConstProp/2006-11-30-vector-cast.ll +++ b/test/Transforms/ConstProp/2006-11-30-vector-cast.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -constprop | llvm-dis | \ +; RUN: opt %s -constprop -S | \ ; RUN: grep {i32 -1} -; RUN: opt %s -constprop | llvm-dis | \ +; RUN: opt %s -constprop -S | \ ; RUN: not grep zeroinitializer define <4 x i32> @test() { diff --git a/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll b/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll index c7769616a9..07d6220ec7 100644 --- a/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll +++ b/test/Transforms/ConstProp/2006-12-01-TruncBoolBug.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis | \ +; RUN: opt %s -instcombine -S | \ ; RUN: grep {ret i1 false} define i1 @test() { %X = trunc i32 320 to i1 ; <i1> [#uses=1] diff --git a/test/Transforms/ConstProp/2006-12-01-bool-casts.ll b/test/Transforms/ConstProp/2006-12-01-bool-casts.ll index 29b4667b92..a32191c76f 100644 --- a/test/Transforms/ConstProp/2006-12-01-bool-casts.ll +++ b/test/Transforms/ConstProp/2006-12-01-bool-casts.ll @@ -1,6 +1,6 @@ -; RUN: opt %s -constprop | llvm-dis | \ +; RUN: opt %s -constprop -S | \ ; RUN: grep {ret i32 -1} -; RUN: opt %s -constprop | llvm-dis | \ +; RUN: opt %s -constprop -S | \ ; RUN: grep {ret i32 1} define i32 @test1() { diff --git a/test/Transforms/ConstProp/2007-02-05-BitCast.ll b/test/Transforms/ConstProp/2007-02-05-BitCast.ll index 9211aeb635..cb69564144 100644 --- a/test/Transforms/ConstProp/2007-02-05-BitCast.ll +++ b/test/Transforms/ConstProp/2007-02-05-BitCast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -constprop | llvm-dis | grep 1065353216 +; RUN: opt %s -constprop -S | grep 1065353216 define i32 @test() { %A = bitcast float 1.000000e+00 to i32 ; <i32> [#uses=1] diff --git a/test/Transforms/ConstProp/2007-11-23-cttz.ll b/test/Transforms/ConstProp/2007-11-23-cttz.ll index 93e3c4b904..0fba080882 100644 --- a/test/Transforms/ConstProp/2007-11-23-cttz.ll +++ b/test/Transforms/ConstProp/2007-11-23-cttz.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -constprop | llvm-dis | grep {ret i13 13} +; RUN: opt %s -constprop -S | grep {ret i13 13} ; PR1816 declare i13 @llvm.cttz.i13(i13) diff --git a/test/Transforms/ConstProp/basictest.ll b/test/Transforms/ConstProp/basictest.ll index 07516764da..900a9afeaa 100644 --- a/test/Transforms/ConstProp/basictest.ll +++ b/test/Transforms/ConstProp/basictest.ll @@ -1,7 +1,7 @@ ; This is a basic sanity check for constant propogation. The add instruction ; should be eliminated. -; RUN: opt %s -constprop -die | llvm-dis | not grep add +; RUN: opt %s -constprop -die -S | not grep add define i32 @test(i1 %B) { br i1 %B, label %BB1, label %BB2 diff --git a/test/Transforms/ConstProp/bitcast2.ll b/test/Transforms/ConstProp/bitcast2.ll index b2bc122f28..5c5eab1879 100644 --- a/test/Transforms/ConstProp/bitcast2.ll +++ b/test/Transforms/ConstProp/bitcast2.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis | not grep bitcast +; RUN: opt < %s -instcombine -S | not grep bitcast ; PR2165 define <1 x i64> @test() { diff --git a/test/Transforms/ConstProp/bswap.ll b/test/Transforms/ConstProp/bswap.ll index 0c4f0454d7..df1ee491e5 100644 --- a/test/Transforms/ConstProp/bswap.ll +++ b/test/Transforms/ConstProp/bswap.ll @@ -1,6 +1,6 @@ ; bswap should be constant folded when it is passed a constant argument -; RUN: opt %s -constprop | llvm-dis | not grep call +; RUN: opt %s -constprop -S | not grep call declare i16 @llvm.bswap.i16(i16) diff --git a/test/Transforms/ConstProp/calls.ll b/test/Transforms/ConstProp/calls.ll index 4337cca1bd..3c266fe62e 100644 --- a/test/Transforms/ConstProp/calls.ll +++ b/test/Transforms/ConstProp/calls.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -constprop | llvm-dis | not grep call +; RUN: opt < %s -constprop -S | not grep call declare double @cos(double) diff --git a/test/Transforms/ConstProp/div-zero.ll b/test/Transforms/ConstProp/div-zero.ll index 74c7449f02..e96061d3b6 100644 --- a/test/Transforms/ConstProp/div-zero.ll +++ b/test/Transforms/ConstProp/div-zero.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -instcombine | llvm-dis | grep {ret i32 0} +; RUN: opt %s -instcombine -S | grep {ret i32 0} ; PR4424 declare void @ext() diff --git a/test/Transforms/ConstProp/float-to-ptr-cast.ll b/test/Transforms/ConstProp/float-to-ptr-cast.ll index f65d51e41b..8ab76d997b 100644 --- a/test/Transforms/ConstProp/float-to-ptr-cast.ll +++ b/test/Transforms/ConstProp/float-to-ptr-cast.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -constprop | llvm-dis | \ +; RUN: opt %s -constprop -S | \ ; RUN: grep -F {ret i32* null} | count 2 define i32* @test1() { diff --git a/test/Transforms/ConstProp/logicaltest.ll b/test/Transforms/ConstProp/logicaltest.ll index 022e6ae11e..7a90a7199f 100644 --- a/test/Transforms/ConstProp/logicaltest.ll +++ b/test/Transforms/ConstProp/logicaltest.ll @@ -1,6 +1,6 @@ ; Ensure constant propogation of logical instructions is working correctly. -; RUN: opt %s -constprop -die | llvm-dis | \ +; RUN: opt < %s -constprop -die -S | \ ; RUN: not egrep {and|or|xor} define i32 @test1() { diff --git a/test/Transforms/ConstProp/nottest.ll b/test/Transforms/ConstProp/nottest.ll index d1fb83abd1..f7a18d45c3 100644 --- a/test/Transforms/ConstProp/nottest.ll +++ b/test/Transforms/ConstProp/nottest.ll @@ -1,6 +1,6 @@ ; Ensure constant propogation of 'not' instructions is working correctly. -; RUN: opt %s -constprop -die | llvm-dis | not grep xor +; RUN: opt %s -constprop -die -S | not grep xor define i32 @test1() { %R = xor i32 4, -1 ; <i32> [#uses=1] diff --git a/test/Transforms/ConstProp/phi.ll b/test/Transforms/ConstProp/phi.ll index 9ec87766bd..3d9e284457 100644 --- a/test/Transforms/ConstProp/phi.ll +++ b/test/Transforms/ConstProp/phi.ll @@ -1,7 +1,7 @@ ; This is a basic sanity check for constant propogation. The add instruction ; should be eliminated. -; RUN: opt %s -constprop -die | llvm-dis | not grep phi +; RUN: opt < %s -constprop -die -S | not grep phi define i32 @test(i1 %B) { BB0: diff --git a/test/Transforms/ConstProp/remtest.ll b/test/Transforms/ConstProp/remtest.ll index ac9509d5f4..efd2d48332 100644 --- a/test/Transforms/ConstProp/remtest.ll +++ b/test/Transforms/ConstProp/remtest.ll @@ -1,6 +1,6 @@ ; Ensure constant propagation of remainder instructions is working correctly. -; RUN: opt %s -constprop -die | llvm-dis | not grep rem +; RUN: opt < %s -constprop -die -S | not grep rem define i32 @test1() { %R = srem i32 4, 3 ; <i32> [#uses=1] |