aboutsummaryrefslogtreecommitdiff
path: root/test/Transforms/SimplifyCFG/BrUnwind.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/BrUnwind.ll
parente856685710706e580a3ece2c59ced2cdf0719f55 (diff)
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/BrUnwind.ll')
-rw-r--r--test/Transforms/SimplifyCFG/BrUnwind.ll23
1 files changed, 12 insertions, 11 deletions
diff --git a/test/Transforms/SimplifyCFG/BrUnwind.ll b/test/Transforms/SimplifyCFG/BrUnwind.ll
index 73bd9756c1..1acdecd578 100644
--- a/test/Transforms/SimplifyCFG/BrUnwind.ll
+++ b/test/Transforms/SimplifyCFG/BrUnwind.ll
@@ -1,14 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg | llvm-dis | \
+; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | \
; RUN: not grep {br label}
-void %test(bool %C) {
- br bool %C, label %A, label %B
-A:
- call void %test(bool %C)
- br label %X
-B:
- call void %test(bool %C)
- br label %X
-X:
- unwind
+define void @test(i1 %C) {
+ br i1 %C, label %A, label %B
+A: ; preds = %0
+ call void @test( i1 %C )
+ br label %X
+B: ; preds = %0
+ call void @test( i1 %C )
+ br label %X
+X: ; preds = %B, %A
+ unwind
}
+