1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll

18 lines
420 B
LLVM
Raw Normal View History

; RUN: llc < %s -march=c
2004-11-06 22:40:51 +01:00
declare i32 @callee(i32, i32)
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
Threw: ; preds = %0
br label %Ok
}