1 ; RUN: llc -O3 < %s | FileCheck %s
2 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n32:64"
3 target triple = "arm64-apple-ios6.0.0"
8 define float @test1(float %a) #0 {
10 %call = tail call float @floorf(float %a) nounwind readnone
14 declare float @floorf(float) nounwind readnone
19 define double @test2(double %a) #0 {
21 %call = tail call double @floor(double %a) nounwind readnone
25 declare double @floor(double) nounwind readnone
29 define float @test3(float %a) #0 {
31 %call = tail call float @nearbyintf(float %a) nounwind readnone
35 declare float @nearbyintf(float) nounwind readnone
39 define double @test4(double %a) #0 {
41 %call = tail call double @nearbyint(double %a) nounwind readnone
45 declare double @nearbyint(double) nounwind readnone
50 define float @test5(float %a) #0 {
52 %call = tail call float @ceilf(float %a) nounwind readnone
56 declare float @ceilf(float) nounwind readnone
61 define double @test6(double %a) #0 {
63 %call = tail call double @ceil(double %a) nounwind readnone
67 declare double @ceil(double) nounwind readnone
71 define float @test7(float %a) #0 {
73 %call = tail call float @rintf(float %a) nounwind readnone
77 declare float @rintf(float) nounwind readnone
81 define double @test8(double %a) #0 {
83 %call = tail call double @rint(double %a) nounwind readnone
87 declare double @rint(double) nounwind readnone
92 define float @test9(float %a) #0 {
94 %call = tail call float @truncf(float %a) nounwind readnone
98 declare float @truncf(float) nounwind readnone
103 define double @test10(double %a) #0 {
105 %call = tail call double @trunc(double %a) nounwind readnone
109 declare double @trunc(double) nounwind readnone
114 define float @test11(float %a) #0 {
116 %call = tail call float @roundf(float %a) nounwind readnone
120 declare float @roundf(float %a) nounwind readnone
125 define double @test12(double %a) #0 {
127 %call = tail call double @round(double %a) nounwind readnone
131 declare double @round(double %a) nounwind readnone
136 define float @test13(float %a) #1 {
138 %call = tail call float @floorf(float %a) nounwind readnone
145 define double @test14(double %a) #1 {
147 %call = tail call double @floor(double %a) nounwind readnone
154 define float @test15(float %a) #1 {
156 %call = tail call float @ceilf(float %a) nounwind readnone
163 define double @test16(double %a) #1 {
165 %call = tail call double @ceil(double %a) nounwind readnone
172 define float @test17(float %a) #1 {
174 %call = tail call float @truncf(float %a) nounwind readnone
181 define double @test18(double %a) #1 {
183 %call = tail call double @trunc(double %a) nounwind readnone
190 define float @test19(float %a) #1 {
192 %call = tail call float @roundf(float %a) nounwind readnone
199 define double @test20(double %a) #1 {
201 %call = tail call double @round(double %a) nounwind readnone
207 attributes #0 = { nounwind }
208 attributes #1 = { nounwind "unsafe-fp-math"="true" }