1 ; RUN: llc -mtriple i686-windows-itanium -filetype asm -o - %s | FileCheck %s
3 declare float @llvm.ceil.f32(float)
4 declare float @llvm.cos.f32(float)
5 declare float @llvm.exp.f32(float)
6 declare float @llvm.floor.f32(float)
7 declare float @llvm.log.f32(float)
8 declare float @llvm.log10.f32(float)
9 declare float @llvm.pow.f32(float, float)
10 declare float @llvm.sin.f32(float)
12 define float @f(float %f) {
13 %r = call float @llvm.ceil.f32(float %f)
18 ; CHECK-NOT: calll _ceilf
19 ; CHECK: calll _ceil{{$}}
21 define float @g(float %f) {
22 %r = call float @llvm.cos.f32(float %f)
27 ; CHECK-NOT: calll _cosf
28 ; CHECK: calll _cos{{$}}
30 define float @h(float %f) {
31 %r = call float @llvm.exp.f32(float %f)
36 ; CHECK-NOT: calll _expf
37 ; CHECK: calll _exp{{$}}
39 define float @i(float %f) {
40 %r = call float @llvm.floor.f32(float %f)
45 ; CHECK-NOT: calll _floorf
46 ; CHECK: calll _floor{{$}}
48 define float @j(float %f, float %g) {
49 %r = frem float %f, %g
54 ; CHECK-NOT: calll _fmodf
55 ; CHECK: calll _fmod{{$}}
57 define float @k(float %f) {
58 %r = call float @llvm.log.f32(float %f)
63 ; CHECK-NOT: calll _logf
64 ; CHECK: calll _log{{$}}
66 define float @l(float %f) {
67 %r = call float @llvm.log10.f32(float %f)
72 ; CHECK-NOT: calll _log10f
73 ; CHECK: calll _log10{{$}}
75 define float @m(float %f, float %g) {
76 %r = call float @llvm.pow.f32(float %f, float %g)
81 ; CHECK-NOT: calll _powf
82 ; CHECK: calll _pow{{$}}
84 define float @n(float %f) {
85 %r = call float @llvm.sin.f32(float %f)
90 ; CHECK-NOT: calll _sinf
91 ; CHECK: calll _sin{{$}}