xref: /aosp_15_r20/external/llvm/test/CodeGen/ARM/floorf.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -mtriple=arm-unknown-unknown < %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker
3*9880d681SAndroid Build Coastguard Worker; CHECK: test1
4*9880d681SAndroid Build Coastguard Workerdefine float @test1() nounwind uwtable readnone ssp {
5*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: floorf
6*9880d681SAndroid Build Coastguard Worker  %foo = call float @floorf(float 0x4000CCCCC0000000) nounwind readnone
7*9880d681SAndroid Build Coastguard Worker  ret float %foo
8*9880d681SAndroid Build Coastguard Worker}
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker; CHECK: test2
11*9880d681SAndroid Build Coastguard Workerdefine float @test2() nounwind uwtable readnone ssp {
12*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: ceilf
13*9880d681SAndroid Build Coastguard Worker  %foo = call float @ceilf(float 0x4000CCCCC0000000) nounwind readnone
14*9880d681SAndroid Build Coastguard Worker  ret float %foo
15*9880d681SAndroid Build Coastguard Worker}
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker; CHECK: test3
18*9880d681SAndroid Build Coastguard Workerdefine float @test3() nounwind uwtable readnone ssp {
19*9880d681SAndroid Build Coastguard Worker; CHECK-NOT: truncf
20*9880d681SAndroid Build Coastguard Worker  %foo = call float @truncf(float 0x4000CCCCC0000000) nounwind readnone
21*9880d681SAndroid Build Coastguard Worker  ret float %foo
22*9880d681SAndroid Build Coastguard Worker}
23*9880d681SAndroid Build Coastguard Worker
24*9880d681SAndroid Build Coastguard Workerdeclare float @floorf(float) nounwind readnone
25*9880d681SAndroid Build Coastguard Workerdeclare float @ceilf(float) nounwind readnone
26*9880d681SAndroid Build Coastguard Workerdeclare float @truncf(float) nounwind readnone
27*9880d681SAndroid Build Coastguard Worker
28*9880d681SAndroid Build Coastguard Worker
29*9880d681SAndroid Build Coastguard Worker
30