mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 07:34:06 +00:00
16 lines
285 B
LLVM
16 lines
285 B
LLVM
|
; RUN: llvm-as < %s | opt -deadargelim | llvm-dis
|
||
|
; PR3807
|
||
|
|
||
|
define internal { i32, i32 } @foo() {
|
||
|
ret {i32,i32} {i32 42, i32 4}
|
||
|
}
|
||
|
|
||
|
define i32 @bar() {
|
||
|
%x = invoke {i32,i32} @foo() to label %T unwind label %T2
|
||
|
T:
|
||
|
%y = extractvalue {i32,i32} %x, 1
|
||
|
ret i32 %y
|
||
|
T2:
|
||
|
unreachable
|
||
|
}
|