llvm-6502/test/Transforms/SCCP/2008-03-10-sret.ll
Devang Patel 7c490d4104 Initial multiple return values support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48210 91177308-0d34-0410-b5e6-96231b3b80d8
2008-03-11 05:46:42 +00:00

13 lines
245 B
LLVM

; RUN: llvm-as < %s | opt -ipsccp -disable-output
define internal {i32, i32} @bar(i32 %A) {
%X = add i32 1, 2
ret i32 %A, i32 %A
}
define i32 @foo() {
%X = call {i32, i32} @bar(i32 17)
%Y = getresult {i32, i32} %X, 0
ret i32 %Y
}