Add pass that expands pseudo instructions into target instructions after register...
[oota-llvm.git] / test / CodeGen / Mips / buildpairextractelementf64.ll
1 ; RUN: llc  < %s -march=mipsel | FileCheck %s -check-prefix=CHECK-EL
2 ; RUN: llc  < %s -march=mips   | FileCheck %s -check-prefix=CHECK-EB
3 @a = external global i32
4
5 define double @f(i32 %a1, double %d) nounwind {
6 entry:
7 ; CHECK-EL: mtc1 $6, $f12
8 ; CHECK-EL: mtc1 $7, $f13
9 ; CHECK-EB: mtc1 $7, $f12
10 ; CHECK-EB: mtc1 $6, $f13
11   store i32 %a1, i32* @a, align 4
12   %add = fadd double %d, 2.000000e+00
13   ret double %add
14 }
15
16 define void @f3(double %d, i32 %a1) nounwind {
17 entry:
18 ; CHECK-EL: mfc1 ${{[0-9]+}}, $f12
19 ; CHECK-EL: mfc1 $7, $f13
20 ; CHECK-EB: mfc1 ${{[0-9]+}}, $f13
21 ; CHECK-EB: mfc1 $7, $f12
22   tail call void @f2(i32 %a1, double %d) nounwind
23   ret void
24 }
25
26 declare void @f2(i32, double)
27