55; CHECK-NOT: frintx
66define float @test1 (float %a ) #0 {
77entry:
8- %call = tail call float @floorf (float %a ) nounwind readnone
8+ %call = tail call float @llvm.floor.f32 (float %a ) nounwind readnone
99 ret float %call
1010}
1111
12- declare float @floorf (float ) nounwind readnone
13-
1412; CHECK-LABEL: test2:
1513; CHECK: frintm
1614; CHECK-NOT: frintx
1715define double @test2 (double %a ) #0 {
1816entry:
19- %call = tail call double @floor (double %a ) nounwind readnone
17+ %call = tail call double @llvm. floor.f64 (double %a ) nounwind readnone
2018 ret double %call
2119}
2220
23- declare double @floor (double ) nounwind readnone
24-
2521; CHECK-LABEL: test3:
2622; CHECK: frinti
2723define float @test3 (float %a ) #0 {
@@ -43,93 +39,77 @@ entry:
4339; CHECK-NOT: frintx
4440define float @test5 (float %a ) #0 {
4541entry:
46- %call = tail call float @ceilf (float %a ) nounwind readnone
42+ %call = tail call float @llvm.ceil.f32 (float %a ) nounwind readnone
4743 ret float %call
4844}
4945
50- declare float @ceilf (float ) nounwind readnone
51-
5246; CHECK-LABEL: test6:
5347; CHECK: frintp
5448; CHECK-NOT: frintx
5549define double @test6 (double %a ) #0 {
5650entry:
57- %call = tail call double @ceil (double %a ) nounwind readnone
51+ %call = tail call double @llvm. ceil.f64 (double %a ) nounwind readnone
5852 ret double %call
5953}
6054
61- declare double @ceil (double ) nounwind readnone
62-
6355; CHECK-LABEL: test7:
6456; CHECK: frintx
6557define float @test7 (float %a ) #0 {
6658entry:
67- %call = tail call float @rintf (float %a ) nounwind readnone
59+ %call = tail call float @llvm.rint.f32 (float %a ) nounwind readnone
6860 ret float %call
6961}
7062
71- declare float @rintf (float ) nounwind readnone
72-
7363; CHECK-LABEL: test8:
7464; CHECK: frintx
7565define double @test8 (double %a ) #0 {
7666entry:
77- %call = tail call double @rint (double %a ) nounwind readnone
67+ %call = tail call double @llvm. rint.f64 (double %a ) nounwind readnone
7868 ret double %call
7969}
8070
81- declare double @rint (double ) nounwind readnone
82-
8371; CHECK-LABEL: test9:
8472; CHECK: frintz
8573; CHECK-NOT: frintx
8674define float @test9 (float %a ) #0 {
8775entry:
88- %call = tail call float @truncf (float %a ) nounwind readnone
76+ %call = tail call float @llvm.trunc.f32 (float %a ) nounwind readnone
8977 ret float %call
9078}
9179
92- declare float @truncf (float ) nounwind readnone
93-
9480; CHECK-LABEL: test10:
9581; CHECK: frintz
9682; CHECK-NOT: frintx
9783define double @test10 (double %a ) #0 {
9884entry:
99- %call = tail call double @trunc (double %a ) nounwind readnone
85+ %call = tail call double @llvm. trunc.f64 (double %a ) nounwind readnone
10086 ret double %call
10187}
10288
103- declare double @trunc (double ) nounwind readnone
104-
10589; CHECK-LABEL: test11:
10690; CHECK: frinta
10791; CHECK-NOT: frintx
10892define float @test11 (float %a ) #0 {
10993entry:
110- %call = tail call float @roundf (float %a ) nounwind readnone
94+ %call = tail call float @llvm.round.f32 (float %a ) nounwind readnone
11195 ret float %call
11296}
11397
114- declare float @roundf (float %a ) nounwind readnone
115-
11698; CHECK-LABEL: test12:
11799; CHECK: frinta
118100; CHECK-NOT: frintx
119101define double @test12 (double %a ) #0 {
120102entry:
121- %call = tail call double @round (double %a ) nounwind readnone
103+ %call = tail call double @llvm. round.f64 (double %a ) nounwind readnone
122104 ret double %call
123105}
124106
125- declare double @round (double %a ) nounwind readnone
126-
127107; CHECK-LABEL: test13:
128108; CHECK-NOT: frintx
129109; CHECK: frintm
130110define float @test13 (float %a ) #1 {
131111entry:
132- %call = tail call float @floorf (float %a ) nounwind readnone
112+ %call = tail call float @llvm.floor.f32 (float %a ) nounwind readnone
133113 ret float %call
134114}
135115
@@ -138,7 +118,7 @@ entry:
138118; CHECK: frintm
139119define double @test14 (double %a ) #1 {
140120entry:
141- %call = tail call double @floor (double %a ) nounwind readnone
121+ %call = tail call double @llvm. floor.f64 (double %a ) nounwind readnone
142122 ret double %call
143123}
144124
@@ -147,7 +127,7 @@ entry:
147127; CHECK: frintp
148128define float @test15 (float %a ) #1 {
149129entry:
150- %call = tail call float @ceilf (float %a ) nounwind readnone
130+ %call = tail call float @llvm.ceil.f32 (float %a ) nounwind readnone
151131 ret float %call
152132}
153133
@@ -156,7 +136,7 @@ entry:
156136; CHECK: frintp
157137define double @test16 (double %a ) #1 {
158138entry:
159- %call = tail call double @ceil (double %a ) nounwind readnone
139+ %call = tail call double @llvm. ceil.f64 (double %a ) nounwind readnone
160140 ret double %call
161141}
162142
@@ -165,7 +145,7 @@ entry:
165145; CHECK: frintz
166146define float @test17 (float %a ) #1 {
167147entry:
168- %call = tail call float @truncf (float %a ) nounwind readnone
148+ %call = tail call float @llvm.trunc.f32 (float %a ) nounwind readnone
169149 ret float %call
170150}
171151
@@ -174,7 +154,7 @@ entry:
174154; CHECK: frintz
175155define double @test18 (double %a ) #1 {
176156entry:
177- %call = tail call double @trunc (double %a ) nounwind readnone
157+ %call = tail call double @llvm. trunc.f64 (double %a ) nounwind readnone
178158 ret double %call
179159}
180160
@@ -183,7 +163,7 @@ entry:
183163; CHECK: frinta
184164define float @test19 (float %a ) #1 {
185165entry:
186- %call = tail call float @roundf (float %a ) nounwind readnone
166+ %call = tail call float @llvm.round.f32 (float %a ) nounwind readnone
187167 ret float %call
188168}
189169
@@ -192,7 +172,7 @@ entry:
192172; CHECK: frinta
193173define double @test20 (double %a ) #1 {
194174entry:
195- %call = tail call double @round (double %a ) nounwind readnone
175+ %call = tail call double @llvm. round.f64 (double %a ) nounwind readnone
196176 ret double %call
197177}
198178
0 commit comments