1 ; RUN: llc < %s -mtriple=armv8-linux-gnueabihf -mattr=+fp-armv8 | FileCheck %s
5 define float @test1(float %a) {
7 %call = call float @floorf(float %a) nounwind readnone
13 define double @test2(double %a) {
15 %call = call double @floor(double %a) nounwind readnone
21 define float @test3(float %a) {
23 %call = call float @ceilf(float %a) nounwind readnone
29 define double @test4(double %a) {
31 %call = call double @ceil(double %a) nounwind readnone
37 define float @test5(float %a) {
39 %call = call float @roundf(float %a) nounwind readnone
45 define double @test6(double %a) {
47 %call = call double @round(double %a) nounwind readnone
53 define float @test7(float %a) {
55 %call = call float @truncf(float %a) nounwind readnone
61 define double @test8(double %a) {
63 %call = call double @trunc(double %a) nounwind readnone
69 define float @test9(float %a) {
71 %call = call float @nearbyintf(float %a) nounwind readnone
77 define double @test10(double %a) {
79 %call = call double @nearbyint(double %a) nounwind readnone
85 define float @test11(float %a) {
87 %call = call float @rintf(float %a) nounwind readnone
93 define double @test12(double %a) {
95 %call = call double @rint(double %a) nounwind readnone
99 declare float @floorf(float) nounwind readnone
100 declare double @floor(double) nounwind readnone
101 declare float @ceilf(float) nounwind readnone
102 declare double @ceil(double) nounwind readnone
103 declare float @roundf(float) nounwind readnone
104 declare double @round(double) nounwind readnone
105 declare float @truncf(float) nounwind readnone
106 declare double @trunc(double) nounwind readnone
107 declare float @nearbyintf(float) nounwind readnone
108 declare double @nearbyint(double) nounwind readnone
109 declare float @rintf(float) nounwind readnone
110 declare double @rint(double) nounwind readnone