blob: ef9ddb789681617c7b8b92aecce42da84d72c3c9 [file] [log] [blame]
Bill Wendlingc7c00592009-01-21 21:02:27 +00001; ModuleID = '<stdin>'
Bill Wendling048eaa22009-01-20 06:23:59 +00002target triple = "i386-apple-darwin9.5"
3
4define float @f1(float %x) nounwind noinline {
5entry:
Bill Wendling048eaa22009-01-20 06:23:59 +00006 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
Bill Wendlingc7c00592009-01-21 21:02:27 +00007 %0 = call float @llvm.exp.f32(float %x) ; <float> [#uses=1]
8 ret float %0
Bill Wendling048eaa22009-01-20 06:23:59 +00009}
10
11declare float @llvm.exp.f32(float) nounwind readonly
12
13define float @f2(float %x) nounwind noinline {
14entry:
Bill Wendling048eaa22009-01-20 06:23:59 +000015 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
Bill Wendlingc7c00592009-01-21 21:02:27 +000016 %0 = call float @llvm.exp2.f32(float %x) ; <float> [#uses=1]
17 ret float %0
Bill Wendling048eaa22009-01-20 06:23:59 +000018}
19
20declare float @llvm.exp2.f32(float) nounwind readonly
21
22define float @f3(float %x) nounwind noinline {
23entry:
Bill Wendling048eaa22009-01-20 06:23:59 +000024 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
Bill Wendlingc7c00592009-01-21 21:02:27 +000025 %0 = call float @llvm.pow.f32(float 1.000000e+01, float %x) ; <float> [#uses=1]
26 ret float %0
Bill Wendling048eaa22009-01-20 06:23:59 +000027}
28
29declare float @llvm.pow.f32(float, float) nounwind readonly
30
31define float @f4(float %x) nounwind noinline {
32entry:
Bill Wendling048eaa22009-01-20 06:23:59 +000033 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
Bill Wendlingc7c00592009-01-21 21:02:27 +000034 %0 = call float @llvm.log.f32(float %x) ; <float> [#uses=1]
35 ret float %0
Bill Wendling048eaa22009-01-20 06:23:59 +000036}
37
38declare float @llvm.log.f32(float) nounwind readonly
39
40define float @f5(float %x) nounwind noinline {
41entry:
Bill Wendling048eaa22009-01-20 06:23:59 +000042 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
Bill Wendlingc7c00592009-01-21 21:02:27 +000043 %0 = call float @llvm.log2.f32(float %x) ; <float> [#uses=1]
44 ret float %0
Bill Wendling048eaa22009-01-20 06:23:59 +000045}
46
47declare float @llvm.log2.f32(float) nounwind readonly
48
49define float @f6(float %x) nounwind noinline {
50entry:
Bill Wendling048eaa22009-01-20 06:23:59 +000051 %"alloca point" = bitcast i32 0 to i32 ; <i32> [#uses=0]
Bill Wendlingc7c00592009-01-21 21:02:27 +000052 %0 = call float @llvm.log10.f32(float %x) ; <float> [#uses=1]
53 ret float %0
Bill Wendling048eaa22009-01-20 06:23:59 +000054}
55
56declare float @llvm.log10.f32(float) nounwind readonly