mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-01 00:12:50 +01:00
142428ce64
llvm-svn: 81293
20 lines
436 B
LLVM
20 lines
436 B
LLVM
; RUN: llc < %s -march=c
|
|
|
|
declare {i32, i32} @foo()
|
|
|
|
define i32 @test() {
|
|
%A = call {i32, i32} @foo()
|
|
%B = getresult {i32, i32} %A, 0
|
|
%C = getresult {i32, i32} %A, 1
|
|
%D = add i32 %B, %C
|
|
ret i32 %D
|
|
}
|
|
|
|
define i32 @test2() {
|
|
%A = call {i32, i32} asm sideeffect "...", "={cx},={di},~{dirflag},~{fpsr},~{flags},~{memory}"()
|
|
%B = getresult {i32, i32} %A, 0
|
|
%C = getresult {i32, i32} %A, 1
|
|
%D = add i32 %B, %C
|
|
ret i32 %D
|
|
}
|