1 ; RUN: llc < %s -limit-float-precision=6 -mtriple=i686-- | \
2 ; RUN: not grep exp | not grep log | not grep pow
3 ; RUN: llc < %s -limit-float-precision=12 -mtriple=i686-- | \
4 ; RUN: not grep exp | not grep log | not grep pow
5 ; RUN: llc < %s -limit-float-precision=18 -mtriple=i686-- | \
6 ; RUN: not grep exp | not grep log | not grep pow
8 define float @f1(float %x) nounwind noinline {
10 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
11 %0 = call float @llvm.exp.f32(float %x) ; <float> [#uses=1]
15 declare float @llvm.exp.f32(float) nounwind readonly
17 define float @f2(float %x) nounwind noinline {
19 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
20 %0 = call float @llvm.exp2.f32(float %x) ; <float> [#uses=1]
24 declare float @llvm.exp2.f32(float) nounwind readonly
26 define float @f3(float %x) nounwind noinline {
28 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
29 %0 = call float @llvm.pow.f32(float 1.000000e+01, float %x) ; <float> [#uses=1]
33 declare float @llvm.pow.f32(float, float) nounwind readonly
35 define float @f4(float %x) nounwind noinline {
37 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
38 %0 = call float @llvm.log.f32(float %x) ; <float> [#uses=1]
42 declare float @llvm.log.f32(float) nounwind readonly
44 define float @f5(float %x) nounwind noinline {
46 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
47 %0 = call float @llvm.log2.f32(float %x) ; <float> [#uses=1]
51 declare float @llvm.log2.f32(float) nounwind readonly
53 define float @f6(float %x) nounwind noinline {
55 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
56 %0 = call float @llvm.log10.f32(float %x) ; <float> [#uses=1]
60 declare float @llvm.log10.f32(float) nounwind readonly