Add a roundToIntegral method to APFloat, which can be parameterized over various...
[oota-llvm.git] / test / CodeGen / ARM / floorf.ll
1 ; RUN: llc -march=arm < %s | FileCheck %s
2
3 ; CHECK: test1
4 define float @test1() nounwind uwtable readnone ssp {
5 ; CHECK-NOT: floorf
6   %foo = call float @floorf(float 0x4000CCCCC0000000) nounwind readnone
7   ret float %foo
8 }
9
10 ; CHECK: test2
11 define float @test2() nounwind uwtable readnone ssp {
12 ; CHECK-NOT: ceilf
13   %foo = call float @ceilf(float 0x4000CCCCC0000000) nounwind readnone
14   ret float %foo
15 }
16
17 ; CHECK: test3
18 define float @test3() nounwind uwtable readnone ssp {
19 ; CHECK-NOT: truncf
20   %foo = call float @truncf(float 0x4000CCCCC0000000) nounwind readnone
21   ret float %foo
22 }
23
24 declare float @floorf(float) nounwind readnone
25 declare float @ceilf(float) nounwind readnone
26 declare float @truncf(float) nounwind readnone
27
28
29