1 ; RUN: llc -march=mipsel < %s | FileCheck %s -check-prefixes=NO-MFHC1,ALL
2 ; RUN: llc -march=mips < %s | FileCheck %s -check-prefixes=NO-MFHC1,ALL
3 ; RUN: llc -march=mipsel -mcpu=mips32r2 < %s | FileCheck %s -check-prefixes=HAS-MFHC1,ALL
4 ; RUN: llc -march=mips -mcpu=mips32r2 < %s | FileCheck %s -check-prefixes=HAS-MFHC1,ALL
5 ; RUN: llc -march=mipsel -mcpu=mips32r2 -mattr=+fp64 < %s | FileCheck %s -check-prefixes=HAS-MFHC1,ALL
6 ; RUN: llc -march=mips -mcpu=mips32r2 -mattr=+fp64 < %s | FileCheck %s -check-prefixes=HAS-MFHC1,ALL
8 @a = external global i32
16 ; HAS-MFHC1-DAG: mthc1
18 define double @f(i32 %a1, double %d) nounwind {
20 store i32 %a1, ptr @a, align 4
21 %add = fadd double %d, 2.000000e+00
31 ; HAS-MFHC1-DAG: mfhc1
33 define void @f3(double %d, i32 %a1) nounwind {
35 tail call void @f2(i32 %a1, double %d) nounwind
39 declare void @f2(i32, double)