aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll')
-rw-r--r--test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll21
1 files changed, 12 insertions, 9 deletions
diff --git a/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll b/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll
index f69c7dc..9fe98e2 100644
--- a/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll
+++ b/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll
@@ -1,14 +1,17 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=c
+; RUN: llvm-as < %s | llc -march=c
+declare i32 @callee(i32, i32)
-declare int %callee(int, int)
+define i32 @test(i32 %X) {
+; <label>:0
+ %A = invoke i32 @callee( i32 %X, i32 5 )
+ to label %Ok unwind label %Threw ; <i32> [#uses=1]
+Ok: ; preds = %Threw, %0
+ %B = phi i32 [ %A, %0 ], [ -1, %Threw ] ; <i32> [#uses=1]
+ ret i32 %B
-int %test(int %X) {
- %A = invoke int %callee(int %X, int 5) to label %Ok except label %Threw
-Ok:
- %B = phi int [%A, %0], [-1, %Threw]
- ret int %B
-Threw:
- br label %Ok
+Threw: ; preds = %0
+ br label %Ok
}
+