Re-implement the main strength-reduction portion of LoopStrengthReduction.
[oota-llvm.git] / test / CodeGen / X86 / multiple-return-values.ll
1 ; RUN: llc < %s -march=x86
2
3 define {i64, float} @bar(i64 %a, float %b) {
4         %y = add i64 %a, 7
5         %z = fadd 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 }