1 ; RUN: llc < %s -mtriple=armv8-linux-gnueabihf -mattr=+fp-armv8 | FileCheck --check-prefix=CHECK --check-prefix=DP %s
2 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabihf -mattr=+fp-armv8,-d32,-fp64 | FileCheck --check-prefix=SP %s
3 ; RUN: llc < %s -mtriple=thumbv7em-linux-gnueabihf -mattr=+fp-armv8,-d32 | FileCheck --check-prefix=DP %s
7 define float @test1(float %a) {
9 %call = call float @floorf(float %a) nounwind readnone
16 define double @test2(double %a) {
18 %call = call double @floor(double %a) nounwind readnone
24 define float @test3(float %a) {
26 %call = call float @ceilf(float %a) nounwind readnone
33 define double @test4(double %a) {
35 %call = call double @ceil(double %a) nounwind readnone
41 define float @test5(float %a) {
43 %call = call float @roundf(float %a) nounwind readnone
50 define double @test6(double %a) {
52 %call = call double @round(double %a) nounwind readnone
58 define float @test7(float %a) {
60 %call = call float @truncf(float %a) nounwind readnone
67 define double @test8(double %a) {
69 %call = call double @trunc(double %a) nounwind readnone
75 define float @test9(float %a) {
77 %call = call float @nearbyintf(float %a) nounwind readnone
84 define double @test10(double %a) {
86 %call = call double @nearbyint(double %a) nounwind readnone
92 define float @test11(float %a) {
94 %call = call float @rintf(float %a) nounwind readnone
101 define double @test12(double %a) {
103 %call = call double @rint(double %a) nounwind readnone
107 declare float @floorf(float) nounwind readnone
108 declare double @floor(double) nounwind readnone
109 declare float @ceilf(float) nounwind readnone
110 declare double @ceil(double) nounwind readnone
111 declare float @roundf(float) nounwind readnone
112 declare double @round(double) nounwind readnone
113 declare float @truncf(float) nounwind readnone
114 declare double @trunc(double) nounwind readnone
115 declare float @nearbyintf(float) nounwind readnone
116 declare double @nearbyint(double) nounwind readnone
117 declare float @rintf(float) nounwind readnone
118 declare double @rint(double) nounwind readnone