1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=aarch64-- | FileCheck %s
4 ; PR38527 - https://bugs.llvm.org/show_bug.cgi?id=38527
6 ; Use fsin as the representative test for various data types.
8 declare <1 x float> @llvm.sin.v1f32(<1 x float>)
9 declare <2 x float> @llvm.sin.v2f32(<2 x float>)
10 declare <3 x float> @llvm.sin.v3f32(<3 x float>)
11 declare <4 x float> @llvm.sin.v4f32(<4 x float>)
12 declare <5 x float> @llvm.sin.v5f32(<5 x float>)
13 declare <6 x float> @llvm.sin.v6f32(<6 x float>)
14 declare <3 x double> @llvm.sin.v3f64(<3 x double>)
16 ; Verify that all of the potential libcall candidates are handled.
17 ; Some of these have custom lowering, so those cases won't have
20 declare <3 x float> @llvm.fabs.v3f32(<3 x float>)
21 declare <3 x float> @llvm.ceil.v3f32(<3 x float>)
22 declare <3 x float> @llvm.cos.v3f32(<3 x float>)
23 declare <3 x float> @llvm.exp.v3f32(<3 x float>)
24 declare <3 x float> @llvm.exp2.v3f32(<3 x float>)
25 declare <3 x float> @llvm.floor.v3f32(<3 x float>)
26 declare <3 x float> @llvm.log.v3f32(<3 x float>)
27 declare <3 x float> @llvm.log10.v3f32(<3 x float>)
28 declare <3 x float> @llvm.log2.v3f32(<3 x float>)
29 declare <3 x float> @llvm.nearbyint.v3f32(<3 x float>)
30 declare <3 x float> @llvm.rint.v3f32(<3 x float>)
31 declare <3 x float> @llvm.round.v3f32(<3 x float>)
32 declare <3 x float> @llvm.roundeven.v3f32(<3 x float>)
33 declare <3 x float> @llvm.sqrt.v3f32(<3 x float>)
34 declare <3 x float> @llvm.trunc.v3f32(<3 x float>)
36 define <1 x float> @sin_v1f32(<1 x float> %x) nounwind {
37 ; CHECK-LABEL: sin_v1f32:
39 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
40 ; CHECK-NEXT: // kill: def $d0 killed $d0 def $q0
41 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
43 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $d0
44 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
46 %r = call <1 x float> @llvm.sin.v1f32(<1 x float> %x)
50 define <2 x float> @sin_v2f32(<2 x float> %x) nounwind {
51 ; CHECK-LABEL: sin_v2f32:
53 ; CHECK-NEXT: sub sp, sp, #48
54 ; CHECK-NEXT: // kill: def $d0 killed $d0 def $q0
55 ; CHECK-NEXT: str q0, [sp] // 16-byte Folded Spill
56 ; CHECK-NEXT: mov s0, v0.s[1]
57 ; CHECK-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
59 ; CHECK-NEXT: str d0, [sp, #16] // 16-byte Folded Spill
60 ; CHECK-NEXT: ldr q0, [sp] // 16-byte Folded Reload
61 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
63 ; CHECK-NEXT: ldr q1, [sp, #16] // 16-byte Folded Reload
64 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
65 ; CHECK-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
66 ; CHECK-NEXT: mov v0.s[1], v1.s[0]
67 ; CHECK-NEXT: // kill: def $d0 killed $d0 killed $q0
68 ; CHECK-NEXT: add sp, sp, #48
70 %r = call <2 x float> @llvm.sin.v2f32(<2 x float> %x)
74 define <3 x float> @sin_v3f32(<3 x float> %x) nounwind {
75 ; CHECK-LABEL: sin_v3f32:
77 ; CHECK-NEXT: sub sp, sp, #48
78 ; CHECK-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
79 ; CHECK-NEXT: mov s0, v0.s[1]
80 ; CHECK-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
82 ; CHECK-NEXT: str d0, [sp] // 16-byte Folded Spill
83 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
84 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
86 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
87 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
88 ; CHECK-NEXT: mov v0.s[1], v1.s[0]
89 ; CHECK-NEXT: str q0, [sp] // 16-byte Folded Spill
90 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
91 ; CHECK-NEXT: mov s0, v0.s[2]
93 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
94 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
95 ; CHECK-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
96 ; CHECK-NEXT: mov v1.s[2], v0.s[0]
97 ; CHECK-NEXT: mov v0.16b, v1.16b
98 ; CHECK-NEXT: add sp, sp, #48
100 %r = call <3 x float> @llvm.sin.v3f32(<3 x float> %x)
104 define <4 x float> @sin_v4f32(<4 x float> %x) nounwind {
105 ; CHECK-LABEL: sin_v4f32:
107 ; CHECK-NEXT: sub sp, sp, #48
108 ; CHECK-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
109 ; CHECK-NEXT: mov s0, v0.s[1]
110 ; CHECK-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
111 ; CHECK-NEXT: bl sinf
112 ; CHECK-NEXT: str d0, [sp] // 16-byte Folded Spill
113 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
114 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
115 ; CHECK-NEXT: bl sinf
116 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
117 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
118 ; CHECK-NEXT: mov v0.s[1], v1.s[0]
119 ; CHECK-NEXT: str q0, [sp] // 16-byte Folded Spill
120 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
121 ; CHECK-NEXT: mov s0, v0.s[2]
122 ; CHECK-NEXT: bl sinf
123 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
124 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
125 ; CHECK-NEXT: mov v1.s[2], v0.s[0]
126 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
127 ; CHECK-NEXT: mov s0, v0.s[3]
128 ; CHECK-NEXT: str q1, [sp] // 16-byte Folded Spill
129 ; CHECK-NEXT: bl sinf
130 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
131 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
132 ; CHECK-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
133 ; CHECK-NEXT: mov v1.s[3], v0.s[0]
134 ; CHECK-NEXT: mov v0.16b, v1.16b
135 ; CHECK-NEXT: add sp, sp, #48
137 %r = call <4 x float> @llvm.sin.v4f32(<4 x float> %x)
141 define <5 x float> @sin_v5f32(<5 x float> %x) nounwind {
142 ; CHECK-LABEL: sin_v5f32:
144 ; CHECK-NEXT: str d12, [sp, #-48]! // 8-byte Folded Spill
145 ; CHECK-NEXT: stp d11, d10, [sp, #8] // 16-byte Folded Spill
146 ; CHECK-NEXT: fmov s10, s2
147 ; CHECK-NEXT: fmov s11, s1
148 ; CHECK-NEXT: stp d9, d8, [sp, #24] // 16-byte Folded Spill
149 ; CHECK-NEXT: fmov s8, s4
150 ; CHECK-NEXT: fmov s9, s3
151 ; CHECK-NEXT: str x30, [sp, #40] // 8-byte Folded Spill
152 ; CHECK-NEXT: bl sinf
153 ; CHECK-NEXT: fmov s12, s0
154 ; CHECK-NEXT: fmov s0, s11
155 ; CHECK-NEXT: bl sinf
156 ; CHECK-NEXT: fmov s11, s0
157 ; CHECK-NEXT: fmov s0, s10
158 ; CHECK-NEXT: bl sinf
159 ; CHECK-NEXT: fmov s10, s0
160 ; CHECK-NEXT: fmov s0, s9
161 ; CHECK-NEXT: bl sinf
162 ; CHECK-NEXT: fmov s9, s0
163 ; CHECK-NEXT: fmov s0, s8
164 ; CHECK-NEXT: bl sinf
165 ; CHECK-NEXT: fmov s1, s11
166 ; CHECK-NEXT: fmov s2, s10
167 ; CHECK-NEXT: ldr x30, [sp, #40] // 8-byte Folded Reload
168 ; CHECK-NEXT: fmov s3, s9
169 ; CHECK-NEXT: ldp d9, d8, [sp, #24] // 16-byte Folded Reload
170 ; CHECK-NEXT: ldp d11, d10, [sp, #8] // 16-byte Folded Reload
171 ; CHECK-NEXT: fmov s4, s0
172 ; CHECK-NEXT: fmov s0, s12
173 ; CHECK-NEXT: ldr d12, [sp], #48 // 8-byte Folded Reload
175 %r = call <5 x float> @llvm.sin.v5f32(<5 x float> %x)
179 define <6 x float> @sin_v6f32(<6 x float> %x) nounwind {
180 ; CHECK-LABEL: sin_v6f32:
182 ; CHECK-NEXT: stp d13, d12, [sp, #-64]! // 16-byte Folded Spill
183 ; CHECK-NEXT: stp d11, d10, [sp, #16] // 16-byte Folded Spill
184 ; CHECK-NEXT: fmov s10, s3
185 ; CHECK-NEXT: fmov s11, s2
186 ; CHECK-NEXT: stp d9, d8, [sp, #32] // 16-byte Folded Spill
187 ; CHECK-NEXT: fmov s8, s5
188 ; CHECK-NEXT: fmov s9, s4
189 ; CHECK-NEXT: str x30, [sp, #48] // 8-byte Folded Spill
190 ; CHECK-NEXT: fmov s12, s1
191 ; CHECK-NEXT: bl sinf
192 ; CHECK-NEXT: fmov s13, s0
193 ; CHECK-NEXT: fmov s0, s12
194 ; CHECK-NEXT: bl sinf
195 ; CHECK-NEXT: fmov s12, s0
196 ; CHECK-NEXT: fmov s0, s11
197 ; CHECK-NEXT: bl sinf
198 ; CHECK-NEXT: fmov s11, s0
199 ; CHECK-NEXT: fmov s0, s10
200 ; CHECK-NEXT: bl sinf
201 ; CHECK-NEXT: fmov s10, s0
202 ; CHECK-NEXT: fmov s0, s9
203 ; CHECK-NEXT: bl sinf
204 ; CHECK-NEXT: fmov s9, s0
205 ; CHECK-NEXT: fmov s0, s8
206 ; CHECK-NEXT: bl sinf
207 ; CHECK-NEXT: fmov s2, s11
208 ; CHECK-NEXT: fmov s3, s10
209 ; CHECK-NEXT: ldr x30, [sp, #48] // 8-byte Folded Reload
210 ; CHECK-NEXT: fmov s4, s9
211 ; CHECK-NEXT: ldp d9, d8, [sp, #32] // 16-byte Folded Reload
212 ; CHECK-NEXT: ldp d11, d10, [sp, #16] // 16-byte Folded Reload
213 ; CHECK-NEXT: fmov s5, s0
214 ; CHECK-NEXT: fmov s0, s13
215 ; CHECK-NEXT: fmov s1, s12
216 ; CHECK-NEXT: ldp d13, d12, [sp], #64 // 16-byte Folded Reload
218 %r = call <6 x float> @llvm.sin.v6f32(<6 x float> %x)
222 define <3 x double> @sin_v3f64(<3 x double> %x) nounwind {
223 ; CHECK-LABEL: sin_v3f64:
225 ; CHECK-NEXT: str d10, [sp, #-32]! // 8-byte Folded Spill
226 ; CHECK-NEXT: stp d9, d8, [sp, #8] // 16-byte Folded Spill
227 ; CHECK-NEXT: fmov d8, d2
228 ; CHECK-NEXT: fmov d9, d1
229 ; CHECK-NEXT: str x30, [sp, #24] // 8-byte Folded Spill
231 ; CHECK-NEXT: fmov d10, d0
232 ; CHECK-NEXT: fmov d0, d9
234 ; CHECK-NEXT: fmov d9, d0
235 ; CHECK-NEXT: fmov d0, d8
237 ; CHECK-NEXT: fmov d1, d9
238 ; CHECK-NEXT: ldp d9, d8, [sp, #8] // 16-byte Folded Reload
239 ; CHECK-NEXT: ldr x30, [sp, #24] // 8-byte Folded Reload
240 ; CHECK-NEXT: fmov d2, d0
241 ; CHECK-NEXT: fmov d0, d10
242 ; CHECK-NEXT: ldr d10, [sp], #32 // 8-byte Folded Reload
244 %r = call <3 x double> @llvm.sin.v3f64(<3 x double> %x)
248 define <3 x float> @fabs_v3f32(<3 x float> %x) nounwind {
249 ; CHECK-LABEL: fabs_v3f32:
251 ; CHECK-NEXT: fabs v0.4s, v0.4s
253 %r = call <3 x float> @llvm.fabs.v3f32(<3 x float> %x)
257 define <3 x float> @ceil_v3f32(<3 x float> %x) nounwind {
258 ; CHECK-LABEL: ceil_v3f32:
260 ; CHECK-NEXT: frintp v0.4s, v0.4s
262 %r = call <3 x float> @llvm.ceil.v3f32(<3 x float> %x)
266 define <3 x float> @cos_v3f32(<3 x float> %x) nounwind {
267 ; CHECK-LABEL: cos_v3f32:
269 ; CHECK-NEXT: sub sp, sp, #48
270 ; CHECK-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
271 ; CHECK-NEXT: mov s0, v0.s[1]
272 ; CHECK-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
273 ; CHECK-NEXT: bl cosf
274 ; CHECK-NEXT: str d0, [sp] // 16-byte Folded Spill
275 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
276 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
277 ; CHECK-NEXT: bl cosf
278 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
279 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
280 ; CHECK-NEXT: mov v0.s[1], v1.s[0]
281 ; CHECK-NEXT: str q0, [sp] // 16-byte Folded Spill
282 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
283 ; CHECK-NEXT: mov s0, v0.s[2]
284 ; CHECK-NEXT: bl cosf
285 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
286 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
287 ; CHECK-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
288 ; CHECK-NEXT: mov v1.s[2], v0.s[0]
289 ; CHECK-NEXT: mov v0.16b, v1.16b
290 ; CHECK-NEXT: add sp, sp, #48
292 %r = call <3 x float> @llvm.cos.v3f32(<3 x float> %x)
296 define <3 x float> @exp_v3f32(<3 x float> %x) nounwind {
297 ; CHECK-LABEL: exp_v3f32:
299 ; CHECK-NEXT: sub sp, sp, #48
300 ; CHECK-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
301 ; CHECK-NEXT: mov s0, v0.s[1]
302 ; CHECK-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
303 ; CHECK-NEXT: bl expf
304 ; CHECK-NEXT: str d0, [sp] // 16-byte Folded Spill
305 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
306 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
307 ; CHECK-NEXT: bl expf
308 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
309 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
310 ; CHECK-NEXT: mov v0.s[1], v1.s[0]
311 ; CHECK-NEXT: str q0, [sp] // 16-byte Folded Spill
312 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
313 ; CHECK-NEXT: mov s0, v0.s[2]
314 ; CHECK-NEXT: bl expf
315 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
316 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
317 ; CHECK-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
318 ; CHECK-NEXT: mov v1.s[2], v0.s[0]
319 ; CHECK-NEXT: mov v0.16b, v1.16b
320 ; CHECK-NEXT: add sp, sp, #48
322 %r = call <3 x float> @llvm.exp.v3f32(<3 x float> %x)
326 define <3 x float> @exp2_v3f32(<3 x float> %x) nounwind {
327 ; CHECK-LABEL: exp2_v3f32:
329 ; CHECK-NEXT: sub sp, sp, #48
330 ; CHECK-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
331 ; CHECK-NEXT: mov s0, v0.s[1]
332 ; CHECK-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
333 ; CHECK-NEXT: bl exp2f
334 ; CHECK-NEXT: str d0, [sp] // 16-byte Folded Spill
335 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
336 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
337 ; CHECK-NEXT: bl exp2f
338 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
339 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
340 ; CHECK-NEXT: mov v0.s[1], v1.s[0]
341 ; CHECK-NEXT: str q0, [sp] // 16-byte Folded Spill
342 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
343 ; CHECK-NEXT: mov s0, v0.s[2]
344 ; CHECK-NEXT: bl exp2f
345 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
346 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
347 ; CHECK-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
348 ; CHECK-NEXT: mov v1.s[2], v0.s[0]
349 ; CHECK-NEXT: mov v0.16b, v1.16b
350 ; CHECK-NEXT: add sp, sp, #48
352 %r = call <3 x float> @llvm.exp2.v3f32(<3 x float> %x)
356 define <3 x float> @floor_v3f32(<3 x float> %x) nounwind {
357 ; CHECK-LABEL: floor_v3f32:
359 ; CHECK-NEXT: frintm v0.4s, v0.4s
361 %r = call <3 x float> @llvm.floor.v3f32(<3 x float> %x)
365 define <3 x float> @log_v3f32(<3 x float> %x) nounwind {
366 ; CHECK-LABEL: log_v3f32:
368 ; CHECK-NEXT: sub sp, sp, #48
369 ; CHECK-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
370 ; CHECK-NEXT: mov s0, v0.s[1]
371 ; CHECK-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
372 ; CHECK-NEXT: bl logf
373 ; CHECK-NEXT: str d0, [sp] // 16-byte Folded Spill
374 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
375 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
376 ; CHECK-NEXT: bl logf
377 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
378 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
379 ; CHECK-NEXT: mov v0.s[1], v1.s[0]
380 ; CHECK-NEXT: str q0, [sp] // 16-byte Folded Spill
381 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
382 ; CHECK-NEXT: mov s0, v0.s[2]
383 ; CHECK-NEXT: bl logf
384 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
385 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
386 ; CHECK-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
387 ; CHECK-NEXT: mov v1.s[2], v0.s[0]
388 ; CHECK-NEXT: mov v0.16b, v1.16b
389 ; CHECK-NEXT: add sp, sp, #48
391 %r = call <3 x float> @llvm.log.v3f32(<3 x float> %x)
395 define <3 x float> @log10_v3f32(<3 x float> %x) nounwind {
396 ; CHECK-LABEL: log10_v3f32:
398 ; CHECK-NEXT: sub sp, sp, #48
399 ; CHECK-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
400 ; CHECK-NEXT: mov s0, v0.s[1]
401 ; CHECK-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
402 ; CHECK-NEXT: bl log10f
403 ; CHECK-NEXT: str d0, [sp] // 16-byte Folded Spill
404 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
405 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
406 ; CHECK-NEXT: bl log10f
407 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
408 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
409 ; CHECK-NEXT: mov v0.s[1], v1.s[0]
410 ; CHECK-NEXT: str q0, [sp] // 16-byte Folded Spill
411 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
412 ; CHECK-NEXT: mov s0, v0.s[2]
413 ; CHECK-NEXT: bl log10f
414 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
415 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
416 ; CHECK-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
417 ; CHECK-NEXT: mov v1.s[2], v0.s[0]
418 ; CHECK-NEXT: mov v0.16b, v1.16b
419 ; CHECK-NEXT: add sp, sp, #48
421 %r = call <3 x float> @llvm.log10.v3f32(<3 x float> %x)
425 define <3 x float> @log2_v3f32(<3 x float> %x) nounwind {
426 ; CHECK-LABEL: log2_v3f32:
428 ; CHECK-NEXT: sub sp, sp, #48
429 ; CHECK-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
430 ; CHECK-NEXT: mov s0, v0.s[1]
431 ; CHECK-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
432 ; CHECK-NEXT: bl log2f
433 ; CHECK-NEXT: str d0, [sp] // 16-byte Folded Spill
434 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
435 ; CHECK-NEXT: // kill: def $s0 killed $s0 killed $q0
436 ; CHECK-NEXT: bl log2f
437 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
438 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
439 ; CHECK-NEXT: mov v0.s[1], v1.s[0]
440 ; CHECK-NEXT: str q0, [sp] // 16-byte Folded Spill
441 ; CHECK-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
442 ; CHECK-NEXT: mov s0, v0.s[2]
443 ; CHECK-NEXT: bl log2f
444 ; CHECK-NEXT: ldr q1, [sp] // 16-byte Folded Reload
445 ; CHECK-NEXT: // kill: def $s0 killed $s0 def $q0
446 ; CHECK-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
447 ; CHECK-NEXT: mov v1.s[2], v0.s[0]
448 ; CHECK-NEXT: mov v0.16b, v1.16b
449 ; CHECK-NEXT: add sp, sp, #48
451 %r = call <3 x float> @llvm.log2.v3f32(<3 x float> %x)
455 define <3 x float> @nearbyint__v3f32(<3 x float> %x) nounwind {
456 ; CHECK-LABEL: nearbyint__v3f32:
458 ; CHECK-NEXT: frinti v0.4s, v0.4s
460 %r = call <3 x float> @llvm.nearbyint.v3f32(<3 x float> %x)
464 define <3 x float> @rint_v3f32(<3 x float> %x) nounwind {
465 ; CHECK-LABEL: rint_v3f32:
467 ; CHECK-NEXT: frintx v0.4s, v0.4s
469 %r = call <3 x float> @llvm.rint.v3f32(<3 x float> %x)
473 define <3 x float> @round_v3f32(<3 x float> %x) nounwind {
474 ; CHECK-LABEL: round_v3f32:
476 ; CHECK-NEXT: frinta v0.4s, v0.4s
478 %r = call <3 x float> @llvm.round.v3f32(<3 x float> %x)
482 define <3 x float> @roundeven_v3f32(<3 x float> %x) nounwind {
483 ; CHECK-LABEL: roundeven_v3f32:
485 ; CHECK-NEXT: frintn v0.4s, v0.4s
487 %r = call <3 x float> @llvm.roundeven.v3f32(<3 x float> %x)
491 define <3 x float> @sqrt_v3f32(<3 x float> %x) nounwind {
492 ; CHECK-LABEL: sqrt_v3f32:
494 ; CHECK-NEXT: fsqrt v0.4s, v0.4s
496 %r = call <3 x float> @llvm.sqrt.v3f32(<3 x float> %x)
500 define <3 x float> @trunc_v3f32(<3 x float> %x) nounwind {
501 ; CHECK-LABEL: trunc_v3f32:
503 ; CHECK-NEXT: frintz v0.4s, v0.4s
505 %r = call <3 x float> @llvm.trunc.v3f32(<3 x float> %x)