llvm-6502/test/Transforms/SCCP/2008-03-10-sret.ll

13 lines
245 B
LLVM
Raw Normal View History

; 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
}