summaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/DeadSetCC.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-18 03:45:45 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-18 03:45:45 +0000
commitf04d8d1593d0eedf5b9deaab48462dd88fefab93 (patch)
tree0cbf561bbe8c905283770e5ae2317f5f7367512c /test/Transforms/SimplifyCFG/DeadSetCC.ll
parente856685710706e580a3ece2c59ced2cdf0719f55 (diff)
downloadexternal_llvm-f04d8d1593d0eedf5b9deaab48462dd88fefab93.zip
external_llvm-f04d8d1593d0eedf5b9deaab48462dd88fefab93.tar.gz
external_llvm-f04d8d1593d0eedf5b9deaab48462dd88fefab93.tar.bz2
Upgrade tests to not use llvm-upgrade.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/SimplifyCFG/DeadSetCC.ll')
-rw-r--r--test/Transforms/SimplifyCFG/DeadSetCC.ll37
1 files changed, 19 insertions, 18 deletions
diff --git a/test/Transforms/SimplifyCFG/DeadSetCC.ll b/test/Transforms/SimplifyCFG/DeadSetCC.ll
index ea215e3..a4c8366 100644
--- a/test/Transforms/SimplifyCFG/DeadSetCC.ll
+++ b/test/Transforms/SimplifyCFG/DeadSetCC.ll
@@ -1,27 +1,28 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | \
+; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | \
; RUN: not grep {icmp eq}
; Check that simplifycfg deletes a dead 'seteq' instruction when it
; folds a conditional branch into a switch instruction.
-declare void %foo()
-declare void %bar()
+declare void @foo()
-void %testcfg(uint %V) {
- %C = seteq uint %V, 18
- %D = seteq uint %V, 180
- %E = or bool %C, %D
- br bool %E, label %L1, label %Sw
-Sw:
- switch uint %V, label %L1 [
- uint 15, label %L2
- uint 16, label %L2
+declare void @bar()
+
+define void @testcfg(i32 %V) {
+ %C = icmp eq i32 %V, 18 ; <i1> [#uses=1]
+ %D = icmp eq i32 %V, 180 ; <i1> [#uses=1]
+ %E = or i1 %C, %D ; <i1> [#uses=1]
+ br i1 %E, label %L1, label %Sw
+Sw: ; preds = %0
+ switch i32 %V, label %L1 [
+ i32 15, label %L2
+ i32 16, label %L2
]
-L1:
- call void %foo()
- ret void
-L2:
- call void %bar()
- ret void
+L1: ; preds = %Sw, %0
+ call void @foo( )
+ ret void
+L2: ; preds = %Sw, %Sw
+ call void @bar( )
+ ret void
}