Merging r261039:
[oota-llvm.git] / test / CodeGen / X86 / multiple-return-values-cross-block.ll
1 ; RUN: llc < %s -march=x86
2
3 declare {x86_fp80, x86_fp80} @test()
4
5 define void @call2(x86_fp80 *%P1, x86_fp80 *%P2) {
6   %a = call {x86_fp80,x86_fp80} @test()
7   %b = extractvalue {x86_fp80,x86_fp80} %a, 1
8   store x86_fp80 %b, x86_fp80* %P1
9 br label %L
10
11 L:
12   %c = extractvalue {x86_fp80,x86_fp80} %a, 0
13   store x86_fp80 %c, x86_fp80* %P2
14   ret void
15 }