projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix fast-isel to not emit invalid assembly when presented with a
[oota-llvm.git]
/
test
/
CodeGen
/
X86
/
multiple-return-values.ll
1
; RUN: llvm-as < %s | llc -march=x86
2
3
define {i64, float} @bar(i64 %a, float %b) {
4
%y = add i64 %a, 7
5
%z = add float %b, 7.0
6
ret i64 %y, float %z
7
}
8
9
define i64 @foo() {
10
%M = call {i64, float} @bar(i64 21, float 21.0)
11
%N = getresult {i64, float} %M, 0
12
%O = getresult {i64, float} %M, 1
13
%P = fptosi float %O to i64
14
%Q = add i64 %P, %N
15
ret i64 %Q
16
}