projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial multiple return values support.
[oota-llvm.git]
/
test
/
Transforms
/
SCCP
/
2008-03-10-sret.ll
1
; RUN: llvm-as < %s | opt -ipsccp -disable-output
2
3
define internal {i32, i32} @bar(i32 %A) {
4
%X = add i32 1, 2
5
ret i32 %A, i32 %A
6
}
7
8
define i32 @foo() {
9
%X = call {i32, i32} @bar(i32 17)
10
%Y = getresult {i32, i32} %X, 0
11
ret i32 %Y
12
}