brintos

brintos / llvm-project-archived public Read only

0
0
Text · 988 B · 914ef94 Raw
27 lines · plain
1; RUN: llc -mtriple=mipsel-linux-gnu -mattr=mips16 -relocation-model=static < %s | FileCheck %s2 3declare float     @llvm.powi.f32.i32(float  %Val, i32 %power)4declare double    @llvm.powi.f64.i32(double %Val, i32 %power)5 6define float @foo_pow_f32(float %y, i32 %p)  {7  %1 = tail call float @llvm.powi.f32.i32(float %y, i32 %p)8; CHECK-NOT: .ent	__call_stub_fp_llvm.powi.f329; CHECK-NOT: {{.*}} jal llvm.powi.f3210  ret float %111} 12 13define double @foo_pow_f64(double %y, i32 %p)  {14  %1 = tail call double @llvm.powi.f64.i32(double %y, i32 %p)15; CHECK-NOT: .ent	__call_stub_fp_llvm.powi.f6416; CHECK-NOT: {{.*}} jal llvm.powi.f64 17  ret double %118} 19 20attributes #0 = { nounwind optsize "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "use-soft-float"="true" }21attributes #1 = { nounwind readonly }22 23!0 = !{!"double", !1}24!1 = !{!"omnipotent char", !2}25!2 = !{!"Simple C/C++ TBAA"}26!3 = !{!"int", !1}27