mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-26 07:29:55 +00:00
invoke results (see the testcases). Tighten up the checking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72586 91177308-0d34-0410-b5e6-96231b3b80d8
20 lines
303 B
LLVM
20 lines
303 B
LLVM
; RUN: not llvm-as < %s >& /dev/null
|
|
|
|
declare i32 @v()
|
|
|
|
define i32 @h() {
|
|
e:
|
|
%s = invoke i32 @v()
|
|
to label %c unwind label %u ; <i32> [#uses=2]
|
|
|
|
c: ; preds = %e
|
|
br label %d
|
|
|
|
d: ; preds = %u, %c
|
|
%p = phi i32 [ %s, %c ], [ %s, %u ] ; <i32> [#uses=1]
|
|
ret i32 %p
|
|
|
|
u: ; preds = %e
|
|
br label %d
|
|
}
|