mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
fce288fc91
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81293 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
420 B
LLVM
18 lines
420 B
LLVM
; RUN: llc < %s -march=c
|
|
|
|
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
|
|
}
|
|
|