repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Handle logical shift right (at least I hope so :) )
[llvm/msp430.git]
/
test
/
CodeGen
/
X86
/
multiple-return-values.ll
blob
2e754a8febc2bc775e6163dfbe46daa83364b3c1
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
}