Start to add the LLVM builtins to the mips16 exclusion lists for fp.
[oota-llvm.git] / test / CodeGen / Mips / powif64_16.ll
1 ; RUN: llc -mtriple=mipsel-linux-gnu -march=mipsel -mcpu=mips16 -mips16-hard-float -soft-float -relocation-model=static < %s | FileCheck %s 
2
3 @x = global double 4.500000e+00, align 8
4 @i = global i32 4, align 4
5 @y = common global double 0.000000e+00, align 8
6
7 ; Function Attrs: nounwind optsize
8 define i32 @main() #0 {
9 entry:
10   %0 = load double* @x, align 8, !tbaa !0
11   %1 = load i32* @i, align 4, !tbaa !3
12   %2 = tail call double @llvm.powi.f64(double %0, i32 %1)
13 ; CHECK-NOT: .ent       __call_stub_fp_llvm.powi.f64
14 ; CHECK-NOT: {{.*}} jal llvm.powi.f64 
15   store double %2, double* @y, align 8, !tbaa !0
16   ret i32 0
17 }
18
19 ; Function Attrs: nounwind readonly
20 declare double @llvm.powi.f64(double, i32) #1
21
22 attributes #0 = { nounwind optsize "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf"="true" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="true" }
23 attributes #1 = { nounwind readonly }
24
25 !0 = metadata !{metadata !"double", metadata !1}
26 !1 = metadata !{metadata !"omnipotent char", metadata !2}
27 !2 = metadata !{metadata !"Simple C/C++ TBAA"}
28 !3 = metadata !{metadata !"int", metadata !1}