summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitbaa370b37aaad6c32d04319d4bcee4cf170f4efc (patch)
tree7c9ab0be27ad61d5db4d04e8a7253d2c683a13cc /llvm/test/Transforms/SimplifyCFG/BrUnwind.ll
parentc24a1e322335fa45d277722e589a2df24af43b77 (diff)
downloadbcm5719-llvm-baa370b37aaad6c32d04319d4bcee4cf170f4efc.tar.gz
bcm5719-llvm-baa370b37aaad6c32d04319d4bcee4cf170f4efc.zip
Upgrade tests to not use llvm-upgrade.
llvm-svn: 48483
Diffstat (limited to 'llvm/test/Transforms/SimplifyCFG/BrUnwind.ll')
-rw-r--r--llvm/test/Transforms/SimplifyCFG/BrUnwind.ll23
1 files changed, 12 insertions, 11 deletions
diff --git a/llvm/test/Transforms/SimplifyCFG/BrUnwind.ll b/llvm/test/Transforms/SimplifyCFG/BrUnwind.ll
index 73bd9756c1f..1acdecd5781 100644
--- a/llvm/test/Transforms/SimplifyCFG/BrUnwind.ll
+++ b/llvm/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
}
+
OpenPOWER on IntegriCloud