1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
2 ; RUN: llc -mtriple=aarch64-none-eabi -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-SD
3 ; RUN: llc -mtriple=aarch64-none-eabi -global-isel -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK,CHECK-GI
5 define double @pow_f64(double %a, double %b) {
6 ; CHECK-LABEL: pow_f64:
7 ; CHECK: // %bb.0: // %entry
10 %c = call double @llvm.pow.f64(double %a, double %b)
14 define float @pow_f32(float %a, float %b) {
15 ; CHECK-LABEL: pow_f32:
16 ; CHECK: // %bb.0: // %entry
19 %c = call float @llvm.pow.f32(float %a, float %b)
23 define half @pow_f16(half %a, half %b) {
24 ; CHECK-LABEL: pow_f16:
25 ; CHECK: // %bb.0: // %entry
26 ; CHECK-NEXT: str x30, [sp, #-16]! // 8-byte Folded Spill
27 ; CHECK-NEXT: .cfi_def_cfa_offset 16
28 ; CHECK-NEXT: .cfi_offset w30, -16
29 ; CHECK-NEXT: fcvt s0, h0
30 ; CHECK-NEXT: fcvt s1, h1
32 ; CHECK-NEXT: fcvt h0, s0
33 ; CHECK-NEXT: ldr x30, [sp], #16 // 8-byte Folded Reload
36 %c = call half @llvm.pow.f16(half %a, half %b)
40 define <2 x double> @pow_v2f64(<2 x double> %a, <2 x double> %b) {
41 ; CHECK-SD-LABEL: pow_v2f64:
42 ; CHECK-SD: // %bb.0: // %entry
43 ; CHECK-SD-NEXT: sub sp, sp, #64
44 ; CHECK-SD-NEXT: str x30, [sp, #48] // 8-byte Folded Spill
45 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 64
46 ; CHECK-SD-NEXT: .cfi_offset w30, -16
47 ; CHECK-SD-NEXT: stp q0, q1, [sp] // 32-byte Folded Spill
48 ; CHECK-SD-NEXT: mov d0, v0.d[1]
49 ; CHECK-SD-NEXT: mov d1, v1.d[1]
50 ; CHECK-SD-NEXT: bl pow
51 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 def $q0
52 ; CHECK-SD-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
53 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
54 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 killed $q0
55 ; CHECK-SD-NEXT: // kill: def $d1 killed $d1 killed $q1
56 ; CHECK-SD-NEXT: bl pow
57 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
58 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 def $q0
59 ; CHECK-SD-NEXT: ldr x30, [sp, #48] // 8-byte Folded Reload
60 ; CHECK-SD-NEXT: mov v0.d[1], v1.d[0]
61 ; CHECK-SD-NEXT: add sp, sp, #64
64 ; CHECK-GI-LABEL: pow_v2f64:
65 ; CHECK-GI: // %bb.0: // %entry
66 ; CHECK-GI-NEXT: sub sp, sp, #48
67 ; CHECK-GI-NEXT: stp d9, d8, [sp, #16] // 16-byte Folded Spill
68 ; CHECK-GI-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
69 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 48
70 ; CHECK-GI-NEXT: .cfi_offset w30, -16
71 ; CHECK-GI-NEXT: .cfi_offset b8, -24
72 ; CHECK-GI-NEXT: .cfi_offset b9, -32
73 ; CHECK-GI-NEXT: mov d8, v0.d[1]
74 ; CHECK-GI-NEXT: mov d9, v1.d[1]
75 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 killed $q0
76 ; CHECK-GI-NEXT: // kill: def $d1 killed $d1 killed $q1
77 ; CHECK-GI-NEXT: bl pow
78 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 def $q0
79 ; CHECK-GI-NEXT: str q0, [sp] // 16-byte Folded Spill
80 ; CHECK-GI-NEXT: fmov d1, d9
81 ; CHECK-GI-NEXT: fmov d0, d8
82 ; CHECK-GI-NEXT: bl pow
83 ; CHECK-GI-NEXT: ldr q1, [sp] // 16-byte Folded Reload
84 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 def $q0
85 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #16] // 16-byte Folded Reload
86 ; CHECK-GI-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
87 ; CHECK-GI-NEXT: mov v1.d[1], v0.d[0]
88 ; CHECK-GI-NEXT: mov v0.16b, v1.16b
89 ; CHECK-GI-NEXT: add sp, sp, #48
92 %c = call <2 x double> @llvm.pow.v2f64(<2 x double> %a, <2 x double> %b)
96 define <3 x double> @pow_v3f64(<3 x double> %a, <3 x double> %b) {
97 ; CHECK-SD-LABEL: pow_v3f64:
98 ; CHECK-SD: // %bb.0: // %entry
99 ; CHECK-SD-NEXT: str d12, [sp, #-48]! // 8-byte Folded Spill
100 ; CHECK-SD-NEXT: stp d11, d10, [sp, #8] // 16-byte Folded Spill
101 ; CHECK-SD-NEXT: stp d9, d8, [sp, #24] // 16-byte Folded Spill
102 ; CHECK-SD-NEXT: str x30, [sp, #40] // 8-byte Folded Spill
103 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 48
104 ; CHECK-SD-NEXT: .cfi_offset w30, -8
105 ; CHECK-SD-NEXT: .cfi_offset b8, -16
106 ; CHECK-SD-NEXT: .cfi_offset b9, -24
107 ; CHECK-SD-NEXT: .cfi_offset b10, -32
108 ; CHECK-SD-NEXT: .cfi_offset b11, -40
109 ; CHECK-SD-NEXT: .cfi_offset b12, -48
110 ; CHECK-SD-NEXT: fmov d11, d1
111 ; CHECK-SD-NEXT: fmov d1, d3
112 ; CHECK-SD-NEXT: fmov d8, d5
113 ; CHECK-SD-NEXT: fmov d9, d4
114 ; CHECK-SD-NEXT: fmov d10, d2
115 ; CHECK-SD-NEXT: bl pow
116 ; CHECK-SD-NEXT: fmov d12, d0
117 ; CHECK-SD-NEXT: fmov d0, d11
118 ; CHECK-SD-NEXT: fmov d1, d9
119 ; CHECK-SD-NEXT: bl pow
120 ; CHECK-SD-NEXT: fmov d9, d0
121 ; CHECK-SD-NEXT: fmov d0, d10
122 ; CHECK-SD-NEXT: fmov d1, d8
123 ; CHECK-SD-NEXT: bl pow
124 ; CHECK-SD-NEXT: fmov d1, d9
125 ; CHECK-SD-NEXT: ldp d9, d8, [sp, #24] // 16-byte Folded Reload
126 ; CHECK-SD-NEXT: ldp d11, d10, [sp, #8] // 16-byte Folded Reload
127 ; CHECK-SD-NEXT: fmov d2, d0
128 ; CHECK-SD-NEXT: ldr x30, [sp, #40] // 8-byte Folded Reload
129 ; CHECK-SD-NEXT: fmov d0, d12
130 ; CHECK-SD-NEXT: ldr d12, [sp], #48 // 8-byte Folded Reload
133 ; CHECK-GI-LABEL: pow_v3f64:
134 ; CHECK-GI: // %bb.0: // %entry
135 ; CHECK-GI-NEXT: str d12, [sp, #-48]! // 8-byte Folded Spill
136 ; CHECK-GI-NEXT: stp d11, d10, [sp, #8] // 16-byte Folded Spill
137 ; CHECK-GI-NEXT: stp d9, d8, [sp, #24] // 16-byte Folded Spill
138 ; CHECK-GI-NEXT: str x30, [sp, #40] // 8-byte Folded Spill
139 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 48
140 ; CHECK-GI-NEXT: .cfi_offset w30, -8
141 ; CHECK-GI-NEXT: .cfi_offset b8, -16
142 ; CHECK-GI-NEXT: .cfi_offset b9, -24
143 ; CHECK-GI-NEXT: .cfi_offset b10, -32
144 ; CHECK-GI-NEXT: .cfi_offset b11, -40
145 ; CHECK-GI-NEXT: .cfi_offset b12, -48
146 ; CHECK-GI-NEXT: fmov d8, d1
147 ; CHECK-GI-NEXT: fmov d1, d3
148 ; CHECK-GI-NEXT: fmov d9, d2
149 ; CHECK-GI-NEXT: fmov d10, d4
150 ; CHECK-GI-NEXT: fmov d11, d5
151 ; CHECK-GI-NEXT: bl pow
152 ; CHECK-GI-NEXT: fmov d12, d0
153 ; CHECK-GI-NEXT: fmov d0, d8
154 ; CHECK-GI-NEXT: fmov d1, d10
155 ; CHECK-GI-NEXT: bl pow
156 ; CHECK-GI-NEXT: fmov d8, d0
157 ; CHECK-GI-NEXT: fmov d0, d9
158 ; CHECK-GI-NEXT: fmov d1, d11
159 ; CHECK-GI-NEXT: bl pow
160 ; CHECK-GI-NEXT: fmov d1, d8
161 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #24] // 16-byte Folded Reload
162 ; CHECK-GI-NEXT: ldp d11, d10, [sp, #8] // 16-byte Folded Reload
163 ; CHECK-GI-NEXT: fmov d2, d0
164 ; CHECK-GI-NEXT: ldr x30, [sp, #40] // 8-byte Folded Reload
165 ; CHECK-GI-NEXT: fmov d0, d12
166 ; CHECK-GI-NEXT: ldr d12, [sp], #48 // 8-byte Folded Reload
169 %c = call <3 x double> @llvm.pow.v3f64(<3 x double> %a, <3 x double> %b)
173 define <4 x double> @pow_v4f64(<4 x double> %a, <4 x double> %b) {
174 ; CHECK-SD-LABEL: pow_v4f64:
175 ; CHECK-SD: // %bb.0: // %entry
176 ; CHECK-SD-NEXT: sub sp, sp, #96
177 ; CHECK-SD-NEXT: str x30, [sp, #80] // 8-byte Folded Spill
178 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 96
179 ; CHECK-SD-NEXT: .cfi_offset w30, -16
180 ; CHECK-SD-NEXT: stp q0, q2, [sp] // 32-byte Folded Spill
181 ; CHECK-SD-NEXT: mov d0, v0.d[1]
182 ; CHECK-SD-NEXT: stp q1, q3, [sp, #48] // 32-byte Folded Spill
183 ; CHECK-SD-NEXT: mov d1, v2.d[1]
184 ; CHECK-SD-NEXT: bl pow
185 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 def $q0
186 ; CHECK-SD-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
187 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
188 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 killed $q0
189 ; CHECK-SD-NEXT: // kill: def $d1 killed $d1 killed $q1
190 ; CHECK-SD-NEXT: bl pow
191 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
192 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 def $q0
193 ; CHECK-SD-NEXT: mov v0.d[1], v1.d[0]
194 ; CHECK-SD-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
195 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #48] // 32-byte Folded Reload
196 ; CHECK-SD-NEXT: mov d0, v0.d[1]
197 ; CHECK-SD-NEXT: mov d1, v1.d[1]
198 ; CHECK-SD-NEXT: bl pow
199 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 def $q0
200 ; CHECK-SD-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
201 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #48] // 32-byte Folded Reload
202 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 killed $q0
203 ; CHECK-SD-NEXT: // kill: def $d1 killed $d1 killed $q1
204 ; CHECK-SD-NEXT: bl pow
205 ; CHECK-SD-NEXT: fmov d1, d0
206 ; CHECK-SD-NEXT: ldp q2, q0, [sp, #16] // 32-byte Folded Reload
207 ; CHECK-SD-NEXT: ldr x30, [sp, #80] // 8-byte Folded Reload
208 ; CHECK-SD-NEXT: mov v1.d[1], v2.d[0]
209 ; CHECK-SD-NEXT: add sp, sp, #96
212 ; CHECK-GI-LABEL: pow_v4f64:
213 ; CHECK-GI: // %bb.0: // %entry
214 ; CHECK-GI-NEXT: sub sp, sp, #112
215 ; CHECK-GI-NEXT: stp d11, d10, [sp, #64] // 16-byte Folded Spill
216 ; CHECK-GI-NEXT: stp d9, d8, [sp, #80] // 16-byte Folded Spill
217 ; CHECK-GI-NEXT: str x30, [sp, #96] // 8-byte Folded Spill
218 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 112
219 ; CHECK-GI-NEXT: .cfi_offset w30, -16
220 ; CHECK-GI-NEXT: .cfi_offset b8, -24
221 ; CHECK-GI-NEXT: .cfi_offset b9, -32
222 ; CHECK-GI-NEXT: .cfi_offset b10, -40
223 ; CHECK-GI-NEXT: .cfi_offset b11, -48
224 ; CHECK-GI-NEXT: mov v4.16b, v1.16b
225 ; CHECK-GI-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
226 ; CHECK-GI-NEXT: mov v1.16b, v2.16b
227 ; CHECK-GI-NEXT: str q3, [sp] // 16-byte Folded Spill
228 ; CHECK-GI-NEXT: mov d8, v0.d[1]
229 ; CHECK-GI-NEXT: mov d10, v2.d[1]
230 ; CHECK-GI-NEXT: mov d11, v3.d[1]
231 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 killed $q0
232 ; CHECK-GI-NEXT: // kill: def $d1 killed $d1 killed $q1
233 ; CHECK-GI-NEXT: mov d9, v4.d[1]
234 ; CHECK-GI-NEXT: bl pow
235 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 def $q0
236 ; CHECK-GI-NEXT: str q0, [sp, #48] // 16-byte Folded Spill
237 ; CHECK-GI-NEXT: fmov d1, d10
238 ; CHECK-GI-NEXT: fmov d0, d8
239 ; CHECK-GI-NEXT: bl pow
240 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 def $q0
241 ; CHECK-GI-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
242 ; CHECK-GI-NEXT: ldr q1, [sp] // 16-byte Folded Reload
243 ; CHECK-GI-NEXT: ldr q0, [sp, #32] // 16-byte Folded Reload
244 ; CHECK-GI-NEXT: // kill: def $d1 killed $d1 killed $q1
245 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 killed $q0
246 ; CHECK-GI-NEXT: bl pow
247 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 def $q0
248 ; CHECK-GI-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
249 ; CHECK-GI-NEXT: fmov d1, d11
250 ; CHECK-GI-NEXT: fmov d0, d9
251 ; CHECK-GI-NEXT: bl pow
252 ; CHECK-GI-NEXT: ldp q3, q1, [sp, #16] // 32-byte Folded Reload
253 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 def $q0
254 ; CHECK-GI-NEXT: ldr q2, [sp, #48] // 16-byte Folded Reload
255 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #80] // 16-byte Folded Reload
256 ; CHECK-GI-NEXT: ldr x30, [sp, #96] // 8-byte Folded Reload
257 ; CHECK-GI-NEXT: ldp d11, d10, [sp, #64] // 16-byte Folded Reload
258 ; CHECK-GI-NEXT: mov v2.d[1], v3.d[0]
259 ; CHECK-GI-NEXT: mov v1.d[1], v0.d[0]
260 ; CHECK-GI-NEXT: mov v0.16b, v2.16b
261 ; CHECK-GI-NEXT: add sp, sp, #112
264 %c = call <4 x double> @llvm.pow.v4f64(<4 x double> %a, <4 x double> %b)
268 define <2 x float> @pow_v2f32(<2 x float> %a, <2 x float> %b) {
269 ; CHECK-SD-LABEL: pow_v2f32:
270 ; CHECK-SD: // %bb.0: // %entry
271 ; CHECK-SD-NEXT: sub sp, sp, #64
272 ; CHECK-SD-NEXT: str x30, [sp, #48] // 8-byte Folded Spill
273 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 64
274 ; CHECK-SD-NEXT: .cfi_offset w30, -16
275 ; CHECK-SD-NEXT: // kill: def $d1 killed $d1 def $q1
276 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 def $q0
277 ; CHECK-SD-NEXT: stp q0, q1, [sp] // 32-byte Folded Spill
278 ; CHECK-SD-NEXT: mov s0, v0.s[1]
279 ; CHECK-SD-NEXT: mov s1, v1.s[1]
280 ; CHECK-SD-NEXT: bl powf
281 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
282 ; CHECK-SD-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
283 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
284 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 killed $q0
285 ; CHECK-SD-NEXT: // kill: def $s1 killed $s1 killed $q1
286 ; CHECK-SD-NEXT: bl powf
287 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
288 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
289 ; CHECK-SD-NEXT: ldr x30, [sp, #48] // 8-byte Folded Reload
290 ; CHECK-SD-NEXT: mov v0.s[1], v1.s[0]
291 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 killed $q0
292 ; CHECK-SD-NEXT: add sp, sp, #64
295 ; CHECK-GI-LABEL: pow_v2f32:
296 ; CHECK-GI: // %bb.0: // %entry
297 ; CHECK-GI-NEXT: sub sp, sp, #48
298 ; CHECK-GI-NEXT: stp d9, d8, [sp, #16] // 16-byte Folded Spill
299 ; CHECK-GI-NEXT: str x30, [sp, #32] // 8-byte Folded Spill
300 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 48
301 ; CHECK-GI-NEXT: .cfi_offset w30, -16
302 ; CHECK-GI-NEXT: .cfi_offset b8, -24
303 ; CHECK-GI-NEXT: .cfi_offset b9, -32
304 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 def $q0
305 ; CHECK-GI-NEXT: // kill: def $d1 killed $d1 def $q1
306 ; CHECK-GI-NEXT: mov s8, v0.s[1]
307 ; CHECK-GI-NEXT: mov s9, v1.s[1]
308 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 killed $q0
309 ; CHECK-GI-NEXT: // kill: def $s1 killed $s1 killed $q1
310 ; CHECK-GI-NEXT: bl powf
311 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
312 ; CHECK-GI-NEXT: str q0, [sp] // 16-byte Folded Spill
313 ; CHECK-GI-NEXT: fmov s1, s9
314 ; CHECK-GI-NEXT: fmov s0, s8
315 ; CHECK-GI-NEXT: bl powf
316 ; CHECK-GI-NEXT: ldr q1, [sp] // 16-byte Folded Reload
317 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
318 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #16] // 16-byte Folded Reload
319 ; CHECK-GI-NEXT: ldr x30, [sp, #32] // 8-byte Folded Reload
320 ; CHECK-GI-NEXT: mov v1.s[1], v0.s[0]
321 ; CHECK-GI-NEXT: fmov d0, d1
322 ; CHECK-GI-NEXT: add sp, sp, #48
325 %c = call <2 x float> @llvm.pow.v2f32(<2 x float> %a, <2 x float> %b)
329 define <3 x float> @pow_v3f32(<3 x float> %a, <3 x float> %b) {
330 ; CHECK-SD-LABEL: pow_v3f32:
331 ; CHECK-SD: // %bb.0: // %entry
332 ; CHECK-SD-NEXT: sub sp, sp, #64
333 ; CHECK-SD-NEXT: str x30, [sp, #48] // 8-byte Folded Spill
334 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 64
335 ; CHECK-SD-NEXT: .cfi_offset w30, -16
336 ; CHECK-SD-NEXT: stp q0, q1, [sp, #16] // 32-byte Folded Spill
337 ; CHECK-SD-NEXT: mov s0, v0.s[1]
338 ; CHECK-SD-NEXT: mov s1, v1.s[1]
339 ; CHECK-SD-NEXT: bl powf
340 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
341 ; CHECK-SD-NEXT: str q0, [sp] // 16-byte Folded Spill
342 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
343 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 killed $q0
344 ; CHECK-SD-NEXT: // kill: def $s1 killed $s1 killed $q1
345 ; CHECK-SD-NEXT: bl powf
346 ; CHECK-SD-NEXT: ldr q1, [sp] // 16-byte Folded Reload
347 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
348 ; CHECK-SD-NEXT: mov v0.s[1], v1.s[0]
349 ; CHECK-SD-NEXT: str q0, [sp] // 16-byte Folded Spill
350 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
351 ; CHECK-SD-NEXT: mov s0, v0.s[2]
352 ; CHECK-SD-NEXT: mov s1, v1.s[2]
353 ; CHECK-SD-NEXT: bl powf
354 ; CHECK-SD-NEXT: ldr q1, [sp] // 16-byte Folded Reload
355 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
356 ; CHECK-SD-NEXT: ldr x30, [sp, #48] // 8-byte Folded Reload
357 ; CHECK-SD-NEXT: mov v1.s[2], v0.s[0]
358 ; CHECK-SD-NEXT: mov v0.16b, v1.16b
359 ; CHECK-SD-NEXT: add sp, sp, #64
362 ; CHECK-GI-LABEL: pow_v3f32:
363 ; CHECK-GI: // %bb.0: // %entry
364 ; CHECK-GI-NEXT: sub sp, sp, #80
365 ; CHECK-GI-NEXT: stp d11, d10, [sp, #32] // 16-byte Folded Spill
366 ; CHECK-GI-NEXT: stp d9, d8, [sp, #48] // 16-byte Folded Spill
367 ; CHECK-GI-NEXT: str x30, [sp, #64] // 8-byte Folded Spill
368 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 80
369 ; CHECK-GI-NEXT: .cfi_offset w30, -16
370 ; CHECK-GI-NEXT: .cfi_offset b8, -24
371 ; CHECK-GI-NEXT: .cfi_offset b9, -32
372 ; CHECK-GI-NEXT: .cfi_offset b10, -40
373 ; CHECK-GI-NEXT: .cfi_offset b11, -48
374 ; CHECK-GI-NEXT: mov s8, v0.s[1]
375 ; CHECK-GI-NEXT: mov s9, v0.s[2]
376 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 killed $q0
377 ; CHECK-GI-NEXT: mov s10, v1.s[1]
378 ; CHECK-GI-NEXT: mov s11, v1.s[2]
379 ; CHECK-GI-NEXT: // kill: def $s1 killed $s1 killed $q1
380 ; CHECK-GI-NEXT: bl powf
381 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
382 ; CHECK-GI-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
383 ; CHECK-GI-NEXT: fmov s1, s10
384 ; CHECK-GI-NEXT: fmov s0, s8
385 ; CHECK-GI-NEXT: bl powf
386 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
387 ; CHECK-GI-NEXT: str q0, [sp] // 16-byte Folded Spill
388 ; CHECK-GI-NEXT: fmov s1, s11
389 ; CHECK-GI-NEXT: fmov s0, s9
390 ; CHECK-GI-NEXT: bl powf
391 ; CHECK-GI-NEXT: ldp q2, q1, [sp] // 32-byte Folded Reload
392 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
393 ; CHECK-GI-NEXT: ldr x30, [sp, #64] // 8-byte Folded Reload
394 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #48] // 16-byte Folded Reload
395 ; CHECK-GI-NEXT: ldp d11, d10, [sp, #32] // 16-byte Folded Reload
396 ; CHECK-GI-NEXT: mov v1.s[1], v2.s[0]
397 ; CHECK-GI-NEXT: mov v1.s[2], v0.s[0]
398 ; CHECK-GI-NEXT: mov v1.s[3], v0.s[0]
399 ; CHECK-GI-NEXT: mov v0.16b, v1.16b
400 ; CHECK-GI-NEXT: add sp, sp, #80
403 %c = call <3 x float> @llvm.pow.v3f32(<3 x float> %a, <3 x float> %b)
407 define <4 x float> @pow_v4f32(<4 x float> %a, <4 x float> %b) {
408 ; CHECK-SD-LABEL: pow_v4f32:
409 ; CHECK-SD: // %bb.0: // %entry
410 ; CHECK-SD-NEXT: sub sp, sp, #64
411 ; CHECK-SD-NEXT: str x30, [sp, #48] // 8-byte Folded Spill
412 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 64
413 ; CHECK-SD-NEXT: .cfi_offset w30, -16
414 ; CHECK-SD-NEXT: stp q0, q1, [sp, #16] // 32-byte Folded Spill
415 ; CHECK-SD-NEXT: mov s0, v0.s[1]
416 ; CHECK-SD-NEXT: mov s1, v1.s[1]
417 ; CHECK-SD-NEXT: bl powf
418 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
419 ; CHECK-SD-NEXT: str q0, [sp] // 16-byte Folded Spill
420 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
421 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 killed $q0
422 ; CHECK-SD-NEXT: // kill: def $s1 killed $s1 killed $q1
423 ; CHECK-SD-NEXT: bl powf
424 ; CHECK-SD-NEXT: ldr q1, [sp] // 16-byte Folded Reload
425 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
426 ; CHECK-SD-NEXT: mov v0.s[1], v1.s[0]
427 ; CHECK-SD-NEXT: str q0, [sp] // 16-byte Folded Spill
428 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
429 ; CHECK-SD-NEXT: mov s0, v0.s[2]
430 ; CHECK-SD-NEXT: mov s1, v1.s[2]
431 ; CHECK-SD-NEXT: bl powf
432 ; CHECK-SD-NEXT: ldr q1, [sp] // 16-byte Folded Reload
433 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
434 ; CHECK-SD-NEXT: mov v1.s[2], v0.s[0]
435 ; CHECK-SD-NEXT: str q1, [sp] // 16-byte Folded Spill
436 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
437 ; CHECK-SD-NEXT: mov s0, v0.s[3]
438 ; CHECK-SD-NEXT: mov s1, v1.s[3]
439 ; CHECK-SD-NEXT: bl powf
440 ; CHECK-SD-NEXT: ldr q1, [sp] // 16-byte Folded Reload
441 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
442 ; CHECK-SD-NEXT: ldr x30, [sp, #48] // 8-byte Folded Reload
443 ; CHECK-SD-NEXT: mov v1.s[3], v0.s[0]
444 ; CHECK-SD-NEXT: mov v0.16b, v1.16b
445 ; CHECK-SD-NEXT: add sp, sp, #64
448 ; CHECK-GI-LABEL: pow_v4f32:
449 ; CHECK-GI: // %bb.0: // %entry
450 ; CHECK-GI-NEXT: sub sp, sp, #112
451 ; CHECK-GI-NEXT: stp d13, d12, [sp, #48] // 16-byte Folded Spill
452 ; CHECK-GI-NEXT: stp d11, d10, [sp, #64] // 16-byte Folded Spill
453 ; CHECK-GI-NEXT: stp d9, d8, [sp, #80] // 16-byte Folded Spill
454 ; CHECK-GI-NEXT: str x30, [sp, #96] // 8-byte Folded Spill
455 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 112
456 ; CHECK-GI-NEXT: .cfi_offset w30, -16
457 ; CHECK-GI-NEXT: .cfi_offset b8, -24
458 ; CHECK-GI-NEXT: .cfi_offset b9, -32
459 ; CHECK-GI-NEXT: .cfi_offset b10, -40
460 ; CHECK-GI-NEXT: .cfi_offset b11, -48
461 ; CHECK-GI-NEXT: .cfi_offset b12, -56
462 ; CHECK-GI-NEXT: .cfi_offset b13, -64
463 ; CHECK-GI-NEXT: mov s8, v0.s[1]
464 ; CHECK-GI-NEXT: mov s9, v0.s[2]
465 ; CHECK-GI-NEXT: mov s10, v0.s[3]
466 ; CHECK-GI-NEXT: mov s11, v1.s[1]
467 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 killed $q0
468 ; CHECK-GI-NEXT: mov s12, v1.s[2]
469 ; CHECK-GI-NEXT: mov s13, v1.s[3]
470 ; CHECK-GI-NEXT: // kill: def $s1 killed $s1 killed $q1
471 ; CHECK-GI-NEXT: bl powf
472 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
473 ; CHECK-GI-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
474 ; CHECK-GI-NEXT: fmov s1, s11
475 ; CHECK-GI-NEXT: fmov s0, s8
476 ; CHECK-GI-NEXT: bl powf
477 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
478 ; CHECK-GI-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
479 ; CHECK-GI-NEXT: fmov s1, s12
480 ; CHECK-GI-NEXT: fmov s0, s9
481 ; CHECK-GI-NEXT: bl powf
482 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
483 ; CHECK-GI-NEXT: str q0, [sp] // 16-byte Folded Spill
484 ; CHECK-GI-NEXT: fmov s1, s13
485 ; CHECK-GI-NEXT: fmov s0, s10
486 ; CHECK-GI-NEXT: bl powf
487 ; CHECK-GI-NEXT: ldp q2, q1, [sp, #16] // 32-byte Folded Reload
488 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
489 ; CHECK-GI-NEXT: ldr x30, [sp, #96] // 8-byte Folded Reload
490 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #80] // 16-byte Folded Reload
491 ; CHECK-GI-NEXT: ldp d11, d10, [sp, #64] // 16-byte Folded Reload
492 ; CHECK-GI-NEXT: mov v1.s[1], v2.s[0]
493 ; CHECK-GI-NEXT: ldr q2, [sp] // 16-byte Folded Reload
494 ; CHECK-GI-NEXT: ldp d13, d12, [sp, #48] // 16-byte Folded Reload
495 ; CHECK-GI-NEXT: mov v1.s[2], v2.s[0]
496 ; CHECK-GI-NEXT: mov v1.s[3], v0.s[0]
497 ; CHECK-GI-NEXT: mov v0.16b, v1.16b
498 ; CHECK-GI-NEXT: add sp, sp, #112
501 %c = call <4 x float> @llvm.pow.v4f32(<4 x float> %a, <4 x float> %b)
505 define <8 x float> @pow_v8f32(<8 x float> %a, <8 x float> %b) {
506 ; CHECK-SD-LABEL: pow_v8f32:
507 ; CHECK-SD: // %bb.0: // %entry
508 ; CHECK-SD-NEXT: sub sp, sp, #96
509 ; CHECK-SD-NEXT: str x30, [sp, #80] // 8-byte Folded Spill
510 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 96
511 ; CHECK-SD-NEXT: .cfi_offset w30, -16
512 ; CHECK-SD-NEXT: stp q0, q2, [sp] // 32-byte Folded Spill
513 ; CHECK-SD-NEXT: mov s0, v0.s[1]
514 ; CHECK-SD-NEXT: stp q1, q3, [sp, #32] // 32-byte Folded Spill
515 ; CHECK-SD-NEXT: mov s1, v2.s[1]
516 ; CHECK-SD-NEXT: bl powf
517 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
518 ; CHECK-SD-NEXT: str q0, [sp, #64] // 16-byte Folded Spill
519 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
520 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 killed $q0
521 ; CHECK-SD-NEXT: // kill: def $s1 killed $s1 killed $q1
522 ; CHECK-SD-NEXT: bl powf
523 ; CHECK-SD-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
524 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
525 ; CHECK-SD-NEXT: mov v0.s[1], v1.s[0]
526 ; CHECK-SD-NEXT: str q0, [sp, #64] // 16-byte Folded Spill
527 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
528 ; CHECK-SD-NEXT: mov s0, v0.s[2]
529 ; CHECK-SD-NEXT: mov s1, v1.s[2]
530 ; CHECK-SD-NEXT: bl powf
531 ; CHECK-SD-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
532 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
533 ; CHECK-SD-NEXT: mov v1.s[2], v0.s[0]
534 ; CHECK-SD-NEXT: str q1, [sp, #64] // 16-byte Folded Spill
535 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
536 ; CHECK-SD-NEXT: mov s0, v0.s[3]
537 ; CHECK-SD-NEXT: mov s1, v1.s[3]
538 ; CHECK-SD-NEXT: bl powf
539 ; CHECK-SD-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
540 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
541 ; CHECK-SD-NEXT: mov v1.s[3], v0.s[0]
542 ; CHECK-SD-NEXT: str q1, [sp, #64] // 16-byte Folded Spill
543 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #32] // 32-byte Folded Reload
544 ; CHECK-SD-NEXT: mov s0, v0.s[1]
545 ; CHECK-SD-NEXT: mov s1, v1.s[1]
546 ; CHECK-SD-NEXT: bl powf
547 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
548 ; CHECK-SD-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
549 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #32] // 32-byte Folded Reload
550 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 killed $q0
551 ; CHECK-SD-NEXT: // kill: def $s1 killed $s1 killed $q1
552 ; CHECK-SD-NEXT: bl powf
553 ; CHECK-SD-NEXT: ldr q1, [sp, #16] // 16-byte Folded Reload
554 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
555 ; CHECK-SD-NEXT: mov v0.s[1], v1.s[0]
556 ; CHECK-SD-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
557 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #32] // 32-byte Folded Reload
558 ; CHECK-SD-NEXT: mov s0, v0.s[2]
559 ; CHECK-SD-NEXT: mov s1, v1.s[2]
560 ; CHECK-SD-NEXT: bl powf
561 ; CHECK-SD-NEXT: ldr q1, [sp, #16] // 16-byte Folded Reload
562 ; CHECK-SD-NEXT: // kill: def $s0 killed $s0 def $q0
563 ; CHECK-SD-NEXT: mov v1.s[2], v0.s[0]
564 ; CHECK-SD-NEXT: str q1, [sp, #16] // 16-byte Folded Spill
565 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #32] // 32-byte Folded Reload
566 ; CHECK-SD-NEXT: mov s0, v0.s[3]
567 ; CHECK-SD-NEXT: mov s1, v1.s[3]
568 ; CHECK-SD-NEXT: bl powf
569 ; CHECK-SD-NEXT: fmov s2, s0
570 ; CHECK-SD-NEXT: ldr q1, [sp, #16] // 16-byte Folded Reload
571 ; CHECK-SD-NEXT: ldr q0, [sp, #64] // 16-byte Folded Reload
572 ; CHECK-SD-NEXT: ldr x30, [sp, #80] // 8-byte Folded Reload
573 ; CHECK-SD-NEXT: mov v1.s[3], v2.s[0]
574 ; CHECK-SD-NEXT: add sp, sp, #96
577 ; CHECK-GI-LABEL: pow_v8f32:
578 ; CHECK-GI: // %bb.0: // %entry
579 ; CHECK-GI-NEXT: sub sp, sp, #208
580 ; CHECK-GI-NEXT: stp d15, d14, [sp, #128] // 16-byte Folded Spill
581 ; CHECK-GI-NEXT: stp d13, d12, [sp, #144] // 16-byte Folded Spill
582 ; CHECK-GI-NEXT: stp d11, d10, [sp, #160] // 16-byte Folded Spill
583 ; CHECK-GI-NEXT: stp d9, d8, [sp, #176] // 16-byte Folded Spill
584 ; CHECK-GI-NEXT: str x30, [sp, #192] // 8-byte Folded Spill
585 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 208
586 ; CHECK-GI-NEXT: .cfi_offset w30, -16
587 ; CHECK-GI-NEXT: .cfi_offset b8, -24
588 ; CHECK-GI-NEXT: .cfi_offset b9, -32
589 ; CHECK-GI-NEXT: .cfi_offset b10, -40
590 ; CHECK-GI-NEXT: .cfi_offset b11, -48
591 ; CHECK-GI-NEXT: .cfi_offset b12, -56
592 ; CHECK-GI-NEXT: .cfi_offset b13, -64
593 ; CHECK-GI-NEXT: .cfi_offset b14, -72
594 ; CHECK-GI-NEXT: .cfi_offset b15, -80
595 ; CHECK-GI-NEXT: mov v4.16b, v1.16b
596 ; CHECK-GI-NEXT: mov v1.16b, v2.16b
597 ; CHECK-GI-NEXT: mov s8, v0.s[1]
598 ; CHECK-GI-NEXT: mov s9, v0.s[2]
599 ; CHECK-GI-NEXT: mov s10, v0.s[3]
600 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 killed $q0
601 ; CHECK-GI-NEXT: mov s12, v3.s[1]
602 ; CHECK-GI-NEXT: mov s11, v3.s[2]
603 ; CHECK-GI-NEXT: mov s2, v4.s[1]
604 ; CHECK-GI-NEXT: stp q3, q4, [sp] // 32-byte Folded Spill
605 ; CHECK-GI-NEXT: mov s5, v4.s[3]
606 ; CHECK-GI-NEXT: mov s14, v1.s[1]
607 ; CHECK-GI-NEXT: mov s15, v1.s[2]
608 ; CHECK-GI-NEXT: mov s13, v1.s[3]
609 ; CHECK-GI-NEXT: // kill: def $s1 killed $s1 killed $q1
610 ; CHECK-GI-NEXT: str s2, [sp, #48] // 4-byte Folded Spill
611 ; CHECK-GI-NEXT: mov s2, v4.s[2]
612 ; CHECK-GI-NEXT: str s2, [sp, #112] // 4-byte Folded Spill
613 ; CHECK-GI-NEXT: mov s2, v3.s[3]
614 ; CHECK-GI-NEXT: stp s2, s5, [sp, #200] // 8-byte Folded Spill
615 ; CHECK-GI-NEXT: bl powf
616 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
617 ; CHECK-GI-NEXT: str q0, [sp, #96] // 16-byte Folded Spill
618 ; CHECK-GI-NEXT: fmov s1, s14
619 ; CHECK-GI-NEXT: fmov s0, s8
620 ; CHECK-GI-NEXT: bl powf
621 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
622 ; CHECK-GI-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
623 ; CHECK-GI-NEXT: fmov s1, s15
624 ; CHECK-GI-NEXT: fmov s0, s9
625 ; CHECK-GI-NEXT: bl powf
626 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
627 ; CHECK-GI-NEXT: str q0, [sp, #80] // 16-byte Folded Spill
628 ; CHECK-GI-NEXT: fmov s1, s13
629 ; CHECK-GI-NEXT: fmov s0, s10
630 ; CHECK-GI-NEXT: bl powf
631 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
632 ; CHECK-GI-NEXT: str q0, [sp, #64] // 16-byte Folded Spill
633 ; CHECK-GI-NEXT: ldp q1, q0, [sp] // 32-byte Folded Reload
634 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 killed $q0
635 ; CHECK-GI-NEXT: // kill: def $s1 killed $s1 killed $q1
636 ; CHECK-GI-NEXT: bl powf
637 ; CHECK-GI-NEXT: fmov s1, s12
638 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
639 ; CHECK-GI-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
640 ; CHECK-GI-NEXT: ldr s0, [sp, #48] // 4-byte Folded Reload
641 ; CHECK-GI-NEXT: bl powf
642 ; CHECK-GI-NEXT: fmov s1, s11
643 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
644 ; CHECK-GI-NEXT: str q0, [sp, #48] // 16-byte Folded Spill
645 ; CHECK-GI-NEXT: ldr s0, [sp, #112] // 4-byte Folded Reload
646 ; CHECK-GI-NEXT: bl powf
647 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
648 ; CHECK-GI-NEXT: str q0, [sp, #112] // 16-byte Folded Spill
649 ; CHECK-GI-NEXT: ldp s1, s0, [sp, #200] // 8-byte Folded Reload
650 ; CHECK-GI-NEXT: bl powf
651 ; CHECK-GI-NEXT: ldp q3, q2, [sp, #16] // 32-byte Folded Reload
652 ; CHECK-GI-NEXT: // kill: def $s0 killed $s0 def $q0
653 ; CHECK-GI-NEXT: ldr q1, [sp, #96] // 16-byte Folded Reload
654 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #176] // 16-byte Folded Reload
655 ; CHECK-GI-NEXT: ldr x30, [sp, #192] // 8-byte Folded Reload
656 ; CHECK-GI-NEXT: ldp d11, d10, [sp, #160] // 16-byte Folded Reload
657 ; CHECK-GI-NEXT: mov v1.s[1], v2.s[0]
658 ; CHECK-GI-NEXT: ldr q2, [sp, #48] // 16-byte Folded Reload
659 ; CHECK-GI-NEXT: ldp d13, d12, [sp, #144] // 16-byte Folded Reload
660 ; CHECK-GI-NEXT: mov v3.s[1], v2.s[0]
661 ; CHECK-GI-NEXT: ldr q2, [sp, #80] // 16-byte Folded Reload
662 ; CHECK-GI-NEXT: ldp d15, d14, [sp, #128] // 16-byte Folded Reload
663 ; CHECK-GI-NEXT: mov v1.s[2], v2.s[0]
664 ; CHECK-GI-NEXT: ldr q2, [sp, #112] // 16-byte Folded Reload
665 ; CHECK-GI-NEXT: mov v3.s[2], v2.s[0]
666 ; CHECK-GI-NEXT: ldr q2, [sp, #64] // 16-byte Folded Reload
667 ; CHECK-GI-NEXT: mov v1.s[3], v2.s[0]
668 ; CHECK-GI-NEXT: mov v3.s[3], v0.s[0]
669 ; CHECK-GI-NEXT: mov v2.16b, v1.16b
670 ; CHECK-GI-NEXT: mov v1.16b, v3.16b
671 ; CHECK-GI-NEXT: mov v0.16b, v2.16b
672 ; CHECK-GI-NEXT: add sp, sp, #208
675 %c = call <8 x float> @llvm.pow.v8f32(<8 x float> %a, <8 x float> %b)
679 define <7 x half> @pow_v7f16(<7 x half> %a, <7 x half> %b) {
680 ; CHECK-SD-LABEL: pow_v7f16:
681 ; CHECK-SD: // %bb.0: // %entry
682 ; CHECK-SD-NEXT: sub sp, sp, #64
683 ; CHECK-SD-NEXT: str x30, [sp, #48] // 8-byte Folded Spill
684 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 64
685 ; CHECK-SD-NEXT: .cfi_offset w30, -16
686 ; CHECK-SD-NEXT: mov h3, v0.h[1]
687 ; CHECK-SD-NEXT: mov h2, v1.h[1]
688 ; CHECK-SD-NEXT: stp q0, q1, [sp] // 32-byte Folded Spill
689 ; CHECK-SD-NEXT: fcvt s0, h3
690 ; CHECK-SD-NEXT: fcvt s1, h2
691 ; CHECK-SD-NEXT: bl powf
692 ; CHECK-SD-NEXT: fcvt h0, s0
693 ; CHECK-SD-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
694 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
695 ; CHECK-SD-NEXT: fcvt s0, h0
696 ; CHECK-SD-NEXT: fcvt s1, h1
697 ; CHECK-SD-NEXT: bl powf
698 ; CHECK-SD-NEXT: fcvt h0, s0
699 ; CHECK-SD-NEXT: ldp q1, q2, [sp, #16] // 32-byte Folded Reload
700 ; CHECK-SD-NEXT: mov h1, v1.h[2]
701 ; CHECK-SD-NEXT: mov v0.h[1], v2.h[0]
702 ; CHECK-SD-NEXT: fcvt s1, h1
703 ; CHECK-SD-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
704 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
705 ; CHECK-SD-NEXT: mov h0, v0.h[2]
706 ; CHECK-SD-NEXT: fcvt s0, h0
707 ; CHECK-SD-NEXT: bl powf
708 ; CHECK-SD-NEXT: fcvt h0, s0
709 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
710 ; CHECK-SD-NEXT: mov v1.h[2], v0.h[0]
711 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
712 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
713 ; CHECK-SD-NEXT: mov h0, v0.h[3]
714 ; CHECK-SD-NEXT: mov h1, v1.h[3]
715 ; CHECK-SD-NEXT: fcvt s0, h0
716 ; CHECK-SD-NEXT: fcvt s1, h1
717 ; CHECK-SD-NEXT: bl powf
718 ; CHECK-SD-NEXT: fcvt h0, s0
719 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
720 ; CHECK-SD-NEXT: mov v1.h[3], v0.h[0]
721 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
722 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
723 ; CHECK-SD-NEXT: mov h0, v0.h[4]
724 ; CHECK-SD-NEXT: mov h1, v1.h[4]
725 ; CHECK-SD-NEXT: fcvt s0, h0
726 ; CHECK-SD-NEXT: fcvt s1, h1
727 ; CHECK-SD-NEXT: bl powf
728 ; CHECK-SD-NEXT: fcvt h0, s0
729 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
730 ; CHECK-SD-NEXT: mov v1.h[4], v0.h[0]
731 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
732 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
733 ; CHECK-SD-NEXT: mov h0, v0.h[5]
734 ; CHECK-SD-NEXT: mov h1, v1.h[5]
735 ; CHECK-SD-NEXT: fcvt s0, h0
736 ; CHECK-SD-NEXT: fcvt s1, h1
737 ; CHECK-SD-NEXT: bl powf
738 ; CHECK-SD-NEXT: fcvt h0, s0
739 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
740 ; CHECK-SD-NEXT: mov v1.h[5], v0.h[0]
741 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
742 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
743 ; CHECK-SD-NEXT: mov h0, v0.h[6]
744 ; CHECK-SD-NEXT: mov h1, v1.h[6]
745 ; CHECK-SD-NEXT: fcvt s0, h0
746 ; CHECK-SD-NEXT: fcvt s1, h1
747 ; CHECK-SD-NEXT: bl powf
748 ; CHECK-SD-NEXT: fcvt h0, s0
749 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
750 ; CHECK-SD-NEXT: mov v1.h[6], v0.h[0]
751 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
752 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
753 ; CHECK-SD-NEXT: mov h0, v0.h[7]
754 ; CHECK-SD-NEXT: mov h1, v1.h[7]
755 ; CHECK-SD-NEXT: fcvt s0, h0
756 ; CHECK-SD-NEXT: fcvt s1, h1
757 ; CHECK-SD-NEXT: bl powf
758 ; CHECK-SD-NEXT: fcvt h1, s0
759 ; CHECK-SD-NEXT: ldr q0, [sp, #32] // 16-byte Folded Reload
760 ; CHECK-SD-NEXT: ldr x30, [sp, #48] // 8-byte Folded Reload
761 ; CHECK-SD-NEXT: mov v0.h[7], v1.h[0]
762 ; CHECK-SD-NEXT: add sp, sp, #64
765 ; CHECK-GI-LABEL: pow_v7f16:
766 ; CHECK-GI: // %bb.0: // %entry
767 ; CHECK-GI-NEXT: sub sp, sp, #176
768 ; CHECK-GI-NEXT: stp d15, d14, [sp, #96] // 16-byte Folded Spill
769 ; CHECK-GI-NEXT: stp d13, d12, [sp, #112] // 16-byte Folded Spill
770 ; CHECK-GI-NEXT: stp d11, d10, [sp, #128] // 16-byte Folded Spill
771 ; CHECK-GI-NEXT: stp d9, d8, [sp, #144] // 16-byte Folded Spill
772 ; CHECK-GI-NEXT: str x30, [sp, #160] // 8-byte Folded Spill
773 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 176
774 ; CHECK-GI-NEXT: .cfi_offset w30, -16
775 ; CHECK-GI-NEXT: .cfi_offset b8, -24
776 ; CHECK-GI-NEXT: .cfi_offset b9, -32
777 ; CHECK-GI-NEXT: .cfi_offset b10, -40
778 ; CHECK-GI-NEXT: .cfi_offset b11, -48
779 ; CHECK-GI-NEXT: .cfi_offset b12, -56
780 ; CHECK-GI-NEXT: .cfi_offset b13, -64
781 ; CHECK-GI-NEXT: .cfi_offset b14, -72
782 ; CHECK-GI-NEXT: .cfi_offset b15, -80
783 ; CHECK-GI-NEXT: mov h2, v0.h[5]
784 ; CHECK-GI-NEXT: mov h9, v0.h[1]
785 ; CHECK-GI-NEXT: mov h10, v0.h[2]
786 ; CHECK-GI-NEXT: mov h11, v0.h[3]
787 ; CHECK-GI-NEXT: mov h12, v0.h[4]
788 ; CHECK-GI-NEXT: mov h14, v1.h[1]
789 ; CHECK-GI-NEXT: mov h15, v1.h[2]
790 ; CHECK-GI-NEXT: mov h8, v1.h[3]
791 ; CHECK-GI-NEXT: mov h13, v1.h[4]
792 ; CHECK-GI-NEXT: str h2, [sp, #48] // 2-byte Folded Spill
793 ; CHECK-GI-NEXT: mov h2, v0.h[6]
794 ; CHECK-GI-NEXT: fcvt s0, h0
795 ; CHECK-GI-NEXT: str h2, [sp, #80] // 2-byte Folded Spill
796 ; CHECK-GI-NEXT: mov h2, v1.h[5]
797 ; CHECK-GI-NEXT: str h2, [sp, #172] // 2-byte Folded Spill
798 ; CHECK-GI-NEXT: mov h2, v1.h[6]
799 ; CHECK-GI-NEXT: fcvt s1, h1
800 ; CHECK-GI-NEXT: str h2, [sp, #174] // 2-byte Folded Spill
801 ; CHECK-GI-NEXT: bl powf
802 ; CHECK-GI-NEXT: fcvt s2, h9
803 ; CHECK-GI-NEXT: fcvt h0, s0
804 ; CHECK-GI-NEXT: fcvt s1, h14
805 ; CHECK-GI-NEXT: str q0, [sp, #64] // 16-byte Folded Spill
806 ; CHECK-GI-NEXT: fmov s0, s2
807 ; CHECK-GI-NEXT: bl powf
808 ; CHECK-GI-NEXT: fcvt s2, h10
809 ; CHECK-GI-NEXT: fcvt h0, s0
810 ; CHECK-GI-NEXT: fcvt s1, h15
811 ; CHECK-GI-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
812 ; CHECK-GI-NEXT: fmov s0, s2
813 ; CHECK-GI-NEXT: bl powf
814 ; CHECK-GI-NEXT: fcvt s2, h11
815 ; CHECK-GI-NEXT: fcvt h0, s0
816 ; CHECK-GI-NEXT: fcvt s1, h8
817 ; CHECK-GI-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
818 ; CHECK-GI-NEXT: fmov s0, s2
819 ; CHECK-GI-NEXT: bl powf
820 ; CHECK-GI-NEXT: fcvt s2, h12
821 ; CHECK-GI-NEXT: fcvt h0, s0
822 ; CHECK-GI-NEXT: fcvt s1, h13
823 ; CHECK-GI-NEXT: str q0, [sp] // 16-byte Folded Spill
824 ; CHECK-GI-NEXT: fmov s0, s2
825 ; CHECK-GI-NEXT: bl powf
826 ; CHECK-GI-NEXT: ldr h1, [sp, #48] // 2-byte Folded Reload
827 ; CHECK-GI-NEXT: fcvt h0, s0
828 ; CHECK-GI-NEXT: fcvt s2, h1
829 ; CHECK-GI-NEXT: str q0, [sp, #48] // 16-byte Folded Spill
830 ; CHECK-GI-NEXT: ldr h0, [sp, #172] // 2-byte Folded Reload
831 ; CHECK-GI-NEXT: fcvt s1, h0
832 ; CHECK-GI-NEXT: fmov s0, s2
833 ; CHECK-GI-NEXT: bl powf
834 ; CHECK-GI-NEXT: ldr h1, [sp, #80] // 2-byte Folded Reload
835 ; CHECK-GI-NEXT: fcvt h0, s0
836 ; CHECK-GI-NEXT: fcvt s2, h1
837 ; CHECK-GI-NEXT: str q0, [sp, #80] // 16-byte Folded Spill
838 ; CHECK-GI-NEXT: ldr h0, [sp, #174] // 2-byte Folded Reload
839 ; CHECK-GI-NEXT: fcvt s1, h0
840 ; CHECK-GI-NEXT: fmov s0, s2
841 ; CHECK-GI-NEXT: bl powf
842 ; CHECK-GI-NEXT: ldp q2, q3, [sp, #16] // 32-byte Folded Reload
843 ; CHECK-GI-NEXT: fcvt h0, s0
844 ; CHECK-GI-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
845 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #144] // 16-byte Folded Reload
846 ; CHECK-GI-NEXT: ldp d11, d10, [sp, #128] // 16-byte Folded Reload
847 ; CHECK-GI-NEXT: ldr x30, [sp, #160] // 8-byte Folded Reload
848 ; CHECK-GI-NEXT: mov v1.h[1], v3.h[0]
849 ; CHECK-GI-NEXT: ldp d13, d12, [sp, #112] // 16-byte Folded Reload
850 ; CHECK-GI-NEXT: ldp d15, d14, [sp, #96] // 16-byte Folded Reload
851 ; CHECK-GI-NEXT: mov v1.h[2], v2.h[0]
852 ; CHECK-GI-NEXT: ldr q2, [sp] // 16-byte Folded Reload
853 ; CHECK-GI-NEXT: mov v1.h[3], v2.h[0]
854 ; CHECK-GI-NEXT: ldr q2, [sp, #48] // 16-byte Folded Reload
855 ; CHECK-GI-NEXT: mov v1.h[4], v2.h[0]
856 ; CHECK-GI-NEXT: ldr q2, [sp, #80] // 16-byte Folded Reload
857 ; CHECK-GI-NEXT: mov v1.h[5], v2.h[0]
858 ; CHECK-GI-NEXT: mov v1.h[6], v0.h[0]
859 ; CHECK-GI-NEXT: mov v1.h[7], v0.h[0]
860 ; CHECK-GI-NEXT: mov v0.16b, v1.16b
861 ; CHECK-GI-NEXT: add sp, sp, #176
864 %c = call <7 x half> @llvm.pow.v7f16(<7 x half> %a, <7 x half> %b)
868 define <4 x half> @pow_v4f16(<4 x half> %a, <4 x half> %b) {
869 ; CHECK-SD-LABEL: pow_v4f16:
870 ; CHECK-SD: // %bb.0: // %entry
871 ; CHECK-SD-NEXT: sub sp, sp, #64
872 ; CHECK-SD-NEXT: str x30, [sp, #48] // 8-byte Folded Spill
873 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 64
874 ; CHECK-SD-NEXT: .cfi_offset w30, -16
875 ; CHECK-SD-NEXT: // kill: def $d1 killed $d1 def $q1
876 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 def $q0
877 ; CHECK-SD-NEXT: mov h3, v0.h[1]
878 ; CHECK-SD-NEXT: mov h2, v1.h[1]
879 ; CHECK-SD-NEXT: stp q0, q1, [sp, #16] // 32-byte Folded Spill
880 ; CHECK-SD-NEXT: fcvt s0, h3
881 ; CHECK-SD-NEXT: fcvt s1, h2
882 ; CHECK-SD-NEXT: bl powf
883 ; CHECK-SD-NEXT: ldr q1, [sp, #16] // 16-byte Folded Reload
884 ; CHECK-SD-NEXT: fcvt h0, s0
885 ; CHECK-SD-NEXT: fcvt s2, h1
886 ; CHECK-SD-NEXT: str q0, [sp] // 16-byte Folded Spill
887 ; CHECK-SD-NEXT: ldr q0, [sp, #32] // 16-byte Folded Reload
888 ; CHECK-SD-NEXT: fcvt s1, h0
889 ; CHECK-SD-NEXT: fmov s0, s2
890 ; CHECK-SD-NEXT: bl powf
891 ; CHECK-SD-NEXT: ldr q1, [sp, #16] // 16-byte Folded Reload
892 ; CHECK-SD-NEXT: fcvt h3, s0
893 ; CHECK-SD-NEXT: ldr q0, [sp, #32] // 16-byte Folded Reload
894 ; CHECK-SD-NEXT: mov h1, v1.h[2]
895 ; CHECK-SD-NEXT: mov h2, v0.h[2]
896 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
897 ; CHECK-SD-NEXT: mov v3.h[1], v0.h[0]
898 ; CHECK-SD-NEXT: fcvt s0, h1
899 ; CHECK-SD-NEXT: fcvt s1, h2
900 ; CHECK-SD-NEXT: str q3, [sp] // 16-byte Folded Spill
901 ; CHECK-SD-NEXT: bl powf
902 ; CHECK-SD-NEXT: ldp q1, q2, [sp, #16] // 32-byte Folded Reload
903 ; CHECK-SD-NEXT: fcvt h0, s0
904 ; CHECK-SD-NEXT: ldr q3, [sp] // 16-byte Folded Reload
905 ; CHECK-SD-NEXT: mov h1, v1.h[3]
906 ; CHECK-SD-NEXT: mov h2, v2.h[3]
907 ; CHECK-SD-NEXT: mov v3.h[2], v0.h[0]
908 ; CHECK-SD-NEXT: fcvt s0, h1
909 ; CHECK-SD-NEXT: fcvt s1, h2
910 ; CHECK-SD-NEXT: str q3, [sp] // 16-byte Folded Spill
911 ; CHECK-SD-NEXT: bl powf
912 ; CHECK-SD-NEXT: fcvt h1, s0
913 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
914 ; CHECK-SD-NEXT: ldr x30, [sp, #48] // 8-byte Folded Reload
915 ; CHECK-SD-NEXT: mov v0.h[3], v1.h[0]
916 ; CHECK-SD-NEXT: // kill: def $d0 killed $d0 killed $q0
917 ; CHECK-SD-NEXT: add sp, sp, #64
920 ; CHECK-GI-LABEL: pow_v4f16:
921 ; CHECK-GI: // %bb.0: // %entry
922 ; CHECK-GI-NEXT: sub sp, sp, #112
923 ; CHECK-GI-NEXT: stp d13, d12, [sp, #48] // 16-byte Folded Spill
924 ; CHECK-GI-NEXT: stp d11, d10, [sp, #64] // 16-byte Folded Spill
925 ; CHECK-GI-NEXT: stp d9, d8, [sp, #80] // 16-byte Folded Spill
926 ; CHECK-GI-NEXT: str x30, [sp, #96] // 8-byte Folded Spill
927 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 112
928 ; CHECK-GI-NEXT: .cfi_offset w30, -16
929 ; CHECK-GI-NEXT: .cfi_offset b8, -24
930 ; CHECK-GI-NEXT: .cfi_offset b9, -32
931 ; CHECK-GI-NEXT: .cfi_offset b10, -40
932 ; CHECK-GI-NEXT: .cfi_offset b11, -48
933 ; CHECK-GI-NEXT: .cfi_offset b12, -56
934 ; CHECK-GI-NEXT: .cfi_offset b13, -64
935 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 def $q0
936 ; CHECK-GI-NEXT: // kill: def $d1 killed $d1 def $q1
937 ; CHECK-GI-NEXT: mov h8, v0.h[1]
938 ; CHECK-GI-NEXT: mov h9, v0.h[2]
939 ; CHECK-GI-NEXT: mov h10, v0.h[3]
940 ; CHECK-GI-NEXT: mov h11, v1.h[1]
941 ; CHECK-GI-NEXT: mov h12, v1.h[2]
942 ; CHECK-GI-NEXT: mov h13, v1.h[3]
943 ; CHECK-GI-NEXT: fcvt s0, h0
944 ; CHECK-GI-NEXT: fcvt s1, h1
945 ; CHECK-GI-NEXT: bl powf
946 ; CHECK-GI-NEXT: fcvt s2, h8
947 ; CHECK-GI-NEXT: fcvt h0, s0
948 ; CHECK-GI-NEXT: fcvt s1, h11
949 ; CHECK-GI-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
950 ; CHECK-GI-NEXT: fmov s0, s2
951 ; CHECK-GI-NEXT: bl powf
952 ; CHECK-GI-NEXT: fcvt s2, h9
953 ; CHECK-GI-NEXT: fcvt h0, s0
954 ; CHECK-GI-NEXT: fcvt s1, h12
955 ; CHECK-GI-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
956 ; CHECK-GI-NEXT: fmov s0, s2
957 ; CHECK-GI-NEXT: bl powf
958 ; CHECK-GI-NEXT: fcvt s2, h10
959 ; CHECK-GI-NEXT: fcvt h0, s0
960 ; CHECK-GI-NEXT: fcvt s1, h13
961 ; CHECK-GI-NEXT: str q0, [sp] // 16-byte Folded Spill
962 ; CHECK-GI-NEXT: fmov s0, s2
963 ; CHECK-GI-NEXT: bl powf
964 ; CHECK-GI-NEXT: ldp q2, q1, [sp, #16] // 32-byte Folded Reload
965 ; CHECK-GI-NEXT: fcvt h0, s0
966 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #80] // 16-byte Folded Reload
967 ; CHECK-GI-NEXT: ldr x30, [sp, #96] // 8-byte Folded Reload
968 ; CHECK-GI-NEXT: ldp d11, d10, [sp, #64] // 16-byte Folded Reload
969 ; CHECK-GI-NEXT: mov v1.h[1], v2.h[0]
970 ; CHECK-GI-NEXT: ldr q2, [sp] // 16-byte Folded Reload
971 ; CHECK-GI-NEXT: ldp d13, d12, [sp, #48] // 16-byte Folded Reload
972 ; CHECK-GI-NEXT: mov v1.h[2], v2.h[0]
973 ; CHECK-GI-NEXT: mov v1.h[3], v0.h[0]
974 ; CHECK-GI-NEXT: mov v0.16b, v1.16b
975 ; CHECK-GI-NEXT: // kill: def $d0 killed $d0 killed $q0
976 ; CHECK-GI-NEXT: add sp, sp, #112
979 %c = call <4 x half> @llvm.pow.v4f16(<4 x half> %a, <4 x half> %b)
983 define <8 x half> @pow_v8f16(<8 x half> %a, <8 x half> %b) {
984 ; CHECK-SD-LABEL: pow_v8f16:
985 ; CHECK-SD: // %bb.0: // %entry
986 ; CHECK-SD-NEXT: sub sp, sp, #64
987 ; CHECK-SD-NEXT: str x30, [sp, #48] // 8-byte Folded Spill
988 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 64
989 ; CHECK-SD-NEXT: .cfi_offset w30, -16
990 ; CHECK-SD-NEXT: mov h3, v0.h[1]
991 ; CHECK-SD-NEXT: mov h2, v1.h[1]
992 ; CHECK-SD-NEXT: stp q0, q1, [sp] // 32-byte Folded Spill
993 ; CHECK-SD-NEXT: fcvt s0, h3
994 ; CHECK-SD-NEXT: fcvt s1, h2
995 ; CHECK-SD-NEXT: bl powf
996 ; CHECK-SD-NEXT: fcvt h0, s0
997 ; CHECK-SD-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
998 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
999 ; CHECK-SD-NEXT: fcvt s0, h0
1000 ; CHECK-SD-NEXT: fcvt s1, h1
1001 ; CHECK-SD-NEXT: bl powf
1002 ; CHECK-SD-NEXT: fcvt h0, s0
1003 ; CHECK-SD-NEXT: ldp q1, q2, [sp, #16] // 32-byte Folded Reload
1004 ; CHECK-SD-NEXT: mov h1, v1.h[2]
1005 ; CHECK-SD-NEXT: mov v0.h[1], v2.h[0]
1006 ; CHECK-SD-NEXT: fcvt s1, h1
1007 ; CHECK-SD-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
1008 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
1009 ; CHECK-SD-NEXT: mov h0, v0.h[2]
1010 ; CHECK-SD-NEXT: fcvt s0, h0
1011 ; CHECK-SD-NEXT: bl powf
1012 ; CHECK-SD-NEXT: fcvt h0, s0
1013 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
1014 ; CHECK-SD-NEXT: mov v1.h[2], v0.h[0]
1015 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
1016 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
1017 ; CHECK-SD-NEXT: mov h0, v0.h[3]
1018 ; CHECK-SD-NEXT: mov h1, v1.h[3]
1019 ; CHECK-SD-NEXT: fcvt s0, h0
1020 ; CHECK-SD-NEXT: fcvt s1, h1
1021 ; CHECK-SD-NEXT: bl powf
1022 ; CHECK-SD-NEXT: fcvt h0, s0
1023 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
1024 ; CHECK-SD-NEXT: mov v1.h[3], v0.h[0]
1025 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
1026 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
1027 ; CHECK-SD-NEXT: mov h0, v0.h[4]
1028 ; CHECK-SD-NEXT: mov h1, v1.h[4]
1029 ; CHECK-SD-NEXT: fcvt s0, h0
1030 ; CHECK-SD-NEXT: fcvt s1, h1
1031 ; CHECK-SD-NEXT: bl powf
1032 ; CHECK-SD-NEXT: fcvt h0, s0
1033 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
1034 ; CHECK-SD-NEXT: mov v1.h[4], v0.h[0]
1035 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
1036 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
1037 ; CHECK-SD-NEXT: mov h0, v0.h[5]
1038 ; CHECK-SD-NEXT: mov h1, v1.h[5]
1039 ; CHECK-SD-NEXT: fcvt s0, h0
1040 ; CHECK-SD-NEXT: fcvt s1, h1
1041 ; CHECK-SD-NEXT: bl powf
1042 ; CHECK-SD-NEXT: fcvt h0, s0
1043 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
1044 ; CHECK-SD-NEXT: mov v1.h[5], v0.h[0]
1045 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
1046 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
1047 ; CHECK-SD-NEXT: mov h0, v0.h[6]
1048 ; CHECK-SD-NEXT: mov h1, v1.h[6]
1049 ; CHECK-SD-NEXT: fcvt s0, h0
1050 ; CHECK-SD-NEXT: fcvt s1, h1
1051 ; CHECK-SD-NEXT: bl powf
1052 ; CHECK-SD-NEXT: fcvt h0, s0
1053 ; CHECK-SD-NEXT: ldr q1, [sp, #32] // 16-byte Folded Reload
1054 ; CHECK-SD-NEXT: mov v1.h[6], v0.h[0]
1055 ; CHECK-SD-NEXT: str q1, [sp, #32] // 16-byte Folded Spill
1056 ; CHECK-SD-NEXT: ldp q0, q1, [sp] // 32-byte Folded Reload
1057 ; CHECK-SD-NEXT: mov h0, v0.h[7]
1058 ; CHECK-SD-NEXT: mov h1, v1.h[7]
1059 ; CHECK-SD-NEXT: fcvt s0, h0
1060 ; CHECK-SD-NEXT: fcvt s1, h1
1061 ; CHECK-SD-NEXT: bl powf
1062 ; CHECK-SD-NEXT: fcvt h1, s0
1063 ; CHECK-SD-NEXT: ldr q0, [sp, #32] // 16-byte Folded Reload
1064 ; CHECK-SD-NEXT: ldr x30, [sp, #48] // 8-byte Folded Reload
1065 ; CHECK-SD-NEXT: mov v0.h[7], v1.h[0]
1066 ; CHECK-SD-NEXT: add sp, sp, #64
1067 ; CHECK-SD-NEXT: ret
1069 ; CHECK-GI-LABEL: pow_v8f16:
1070 ; CHECK-GI: // %bb.0: // %entry
1071 ; CHECK-GI-NEXT: sub sp, sp, #192
1072 ; CHECK-GI-NEXT: stp d15, d14, [sp, #112] // 16-byte Folded Spill
1073 ; CHECK-GI-NEXT: stp d13, d12, [sp, #128] // 16-byte Folded Spill
1074 ; CHECK-GI-NEXT: stp d11, d10, [sp, #144] // 16-byte Folded Spill
1075 ; CHECK-GI-NEXT: stp d9, d8, [sp, #160] // 16-byte Folded Spill
1076 ; CHECK-GI-NEXT: str x30, [sp, #176] // 8-byte Folded Spill
1077 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 192
1078 ; CHECK-GI-NEXT: .cfi_offset w30, -16
1079 ; CHECK-GI-NEXT: .cfi_offset b8, -24
1080 ; CHECK-GI-NEXT: .cfi_offset b9, -32
1081 ; CHECK-GI-NEXT: .cfi_offset b10, -40
1082 ; CHECK-GI-NEXT: .cfi_offset b11, -48
1083 ; CHECK-GI-NEXT: .cfi_offset b12, -56
1084 ; CHECK-GI-NEXT: .cfi_offset b13, -64
1085 ; CHECK-GI-NEXT: .cfi_offset b14, -72
1086 ; CHECK-GI-NEXT: .cfi_offset b15, -80
1087 ; CHECK-GI-NEXT: mov h2, v0.h[5]
1088 ; CHECK-GI-NEXT: mov h11, v0.h[1]
1089 ; CHECK-GI-NEXT: mov h12, v0.h[2]
1090 ; CHECK-GI-NEXT: mov h13, v0.h[3]
1091 ; CHECK-GI-NEXT: mov h14, v0.h[4]
1092 ; CHECK-GI-NEXT: mov h8, v1.h[1]
1093 ; CHECK-GI-NEXT: mov h9, v1.h[2]
1094 ; CHECK-GI-NEXT: mov h10, v1.h[3]
1095 ; CHECK-GI-NEXT: mov h15, v1.h[4]
1096 ; CHECK-GI-NEXT: str h2, [sp, #48] // 2-byte Folded Spill
1097 ; CHECK-GI-NEXT: mov h2, v0.h[6]
1098 ; CHECK-GI-NEXT: str h2, [sp, #64] // 2-byte Folded Spill
1099 ; CHECK-GI-NEXT: mov h2, v0.h[7]
1100 ; CHECK-GI-NEXT: fcvt s0, h0
1101 ; CHECK-GI-NEXT: str h2, [sp, #96] // 2-byte Folded Spill
1102 ; CHECK-GI-NEXT: mov h2, v1.h[5]
1103 ; CHECK-GI-NEXT: str h2, [sp, #186] // 2-byte Folded Spill
1104 ; CHECK-GI-NEXT: mov h2, v1.h[6]
1105 ; CHECK-GI-NEXT: str h2, [sp, #188] // 2-byte Folded Spill
1106 ; CHECK-GI-NEXT: mov h2, v1.h[7]
1107 ; CHECK-GI-NEXT: fcvt s1, h1
1108 ; CHECK-GI-NEXT: str h2, [sp, #190] // 2-byte Folded Spill
1109 ; CHECK-GI-NEXT: bl powf
1110 ; CHECK-GI-NEXT: fcvt s2, h11
1111 ; CHECK-GI-NEXT: fcvt h0, s0
1112 ; CHECK-GI-NEXT: fcvt s1, h8
1113 ; CHECK-GI-NEXT: str q0, [sp, #80] // 16-byte Folded Spill
1114 ; CHECK-GI-NEXT: fmov s0, s2
1115 ; CHECK-GI-NEXT: bl powf
1116 ; CHECK-GI-NEXT: fcvt s2, h12
1117 ; CHECK-GI-NEXT: fcvt h0, s0
1118 ; CHECK-GI-NEXT: fcvt s1, h9
1119 ; CHECK-GI-NEXT: str q0, [sp, #32] // 16-byte Folded Spill
1120 ; CHECK-GI-NEXT: fmov s0, s2
1121 ; CHECK-GI-NEXT: bl powf
1122 ; CHECK-GI-NEXT: fcvt s2, h13
1123 ; CHECK-GI-NEXT: fcvt h0, s0
1124 ; CHECK-GI-NEXT: fcvt s1, h10
1125 ; CHECK-GI-NEXT: str q0, [sp, #16] // 16-byte Folded Spill
1126 ; CHECK-GI-NEXT: fmov s0, s2
1127 ; CHECK-GI-NEXT: bl powf
1128 ; CHECK-GI-NEXT: fcvt s2, h14
1129 ; CHECK-GI-NEXT: fcvt h0, s0
1130 ; CHECK-GI-NEXT: fcvt s1, h15
1131 ; CHECK-GI-NEXT: str q0, [sp] // 16-byte Folded Spill
1132 ; CHECK-GI-NEXT: fmov s0, s2
1133 ; CHECK-GI-NEXT: bl powf
1134 ; CHECK-GI-NEXT: ldr h1, [sp, #48] // 2-byte Folded Reload
1135 ; CHECK-GI-NEXT: fcvt h0, s0
1136 ; CHECK-GI-NEXT: fcvt s2, h1
1137 ; CHECK-GI-NEXT: str q0, [sp, #48] // 16-byte Folded Spill
1138 ; CHECK-GI-NEXT: ldr h0, [sp, #186] // 2-byte Folded Reload
1139 ; CHECK-GI-NEXT: fcvt s1, h0
1140 ; CHECK-GI-NEXT: fmov s0, s2
1141 ; CHECK-GI-NEXT: bl powf
1142 ; CHECK-GI-NEXT: ldr h1, [sp, #64] // 2-byte Folded Reload
1143 ; CHECK-GI-NEXT: fcvt h0, s0
1144 ; CHECK-GI-NEXT: fcvt s2, h1
1145 ; CHECK-GI-NEXT: str q0, [sp, #64] // 16-byte Folded Spill
1146 ; CHECK-GI-NEXT: ldr h0, [sp, #188] // 2-byte Folded Reload
1147 ; CHECK-GI-NEXT: fcvt s1, h0
1148 ; CHECK-GI-NEXT: fmov s0, s2
1149 ; CHECK-GI-NEXT: bl powf
1150 ; CHECK-GI-NEXT: ldr h1, [sp, #96] // 2-byte Folded Reload
1151 ; CHECK-GI-NEXT: fcvt h0, s0
1152 ; CHECK-GI-NEXT: fcvt s2, h1
1153 ; CHECK-GI-NEXT: str q0, [sp, #96] // 16-byte Folded Spill
1154 ; CHECK-GI-NEXT: ldr h0, [sp, #190] // 2-byte Folded Reload
1155 ; CHECK-GI-NEXT: fcvt s1, h0
1156 ; CHECK-GI-NEXT: fmov s0, s2
1157 ; CHECK-GI-NEXT: bl powf
1158 ; CHECK-GI-NEXT: ldp q2, q3, [sp, #16] // 32-byte Folded Reload
1159 ; CHECK-GI-NEXT: fcvt h0, s0
1160 ; CHECK-GI-NEXT: ldr q1, [sp, #80] // 16-byte Folded Reload
1161 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #160] // 16-byte Folded Reload
1162 ; CHECK-GI-NEXT: ldp d11, d10, [sp, #144] // 16-byte Folded Reload
1163 ; CHECK-GI-NEXT: ldr x30, [sp, #176] // 8-byte Folded Reload
1164 ; CHECK-GI-NEXT: mov v1.h[1], v3.h[0]
1165 ; CHECK-GI-NEXT: ldp d13, d12, [sp, #128] // 16-byte Folded Reload
1166 ; CHECK-GI-NEXT: ldp d15, d14, [sp, #112] // 16-byte Folded Reload
1167 ; CHECK-GI-NEXT: mov v1.h[2], v2.h[0]
1168 ; CHECK-GI-NEXT: ldr q2, [sp] // 16-byte Folded Reload
1169 ; CHECK-GI-NEXT: mov v1.h[3], v2.h[0]
1170 ; CHECK-GI-NEXT: ldp q3, q2, [sp, #48] // 32-byte Folded Reload
1171 ; CHECK-GI-NEXT: mov v1.h[4], v3.h[0]
1172 ; CHECK-GI-NEXT: mov v1.h[5], v2.h[0]
1173 ; CHECK-GI-NEXT: ldr q2, [sp, #96] // 16-byte Folded Reload
1174 ; CHECK-GI-NEXT: mov v1.h[6], v2.h[0]
1175 ; CHECK-GI-NEXT: mov v1.h[7], v0.h[0]
1176 ; CHECK-GI-NEXT: mov v0.16b, v1.16b
1177 ; CHECK-GI-NEXT: add sp, sp, #192
1178 ; CHECK-GI-NEXT: ret
1180 %c = call <8 x half> @llvm.pow.v8f16(<8 x half> %a, <8 x half> %b)
1184 define <16 x half> @pow_v16f16(<16 x half> %a, <16 x half> %b) {
1185 ; CHECK-SD-LABEL: pow_v16f16:
1186 ; CHECK-SD: // %bb.0: // %entry
1187 ; CHECK-SD-NEXT: sub sp, sp, #96
1188 ; CHECK-SD-NEXT: str x30, [sp, #80] // 8-byte Folded Spill
1189 ; CHECK-SD-NEXT: .cfi_def_cfa_offset 96
1190 ; CHECK-SD-NEXT: .cfi_offset w30, -16
1191 ; CHECK-SD-NEXT: stp q0, q1, [sp] // 32-byte Folded Spill
1192 ; CHECK-SD-NEXT: mov h1, v2.h[1]
1193 ; CHECK-SD-NEXT: stp q3, q2, [sp, #32] // 32-byte Folded Spill
1194 ; CHECK-SD-NEXT: mov h3, v0.h[1]
1195 ; CHECK-SD-NEXT: fcvt s1, h1
1196 ; CHECK-SD-NEXT: fcvt s0, h3
1197 ; CHECK-SD-NEXT: bl powf
1198 ; CHECK-SD-NEXT: fcvt h0, s0
1199 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1200 ; CHECK-SD-NEXT: fcvt s1, h1
1201 ; CHECK-SD-NEXT: str q0, [sp, #64] // 16-byte Folded Spill
1202 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
1203 ; CHECK-SD-NEXT: fcvt s0, h0
1204 ; CHECK-SD-NEXT: bl powf
1205 ; CHECK-SD-NEXT: fcvt h0, s0
1206 ; CHECK-SD-NEXT: ldp q1, q2, [sp, #48] // 32-byte Folded Reload
1207 ; CHECK-SD-NEXT: mov h1, v1.h[2]
1208 ; CHECK-SD-NEXT: mov v0.h[1], v2.h[0]
1209 ; CHECK-SD-NEXT: fcvt s1, h1
1210 ; CHECK-SD-NEXT: str q0, [sp, #64] // 16-byte Folded Spill
1211 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
1212 ; CHECK-SD-NEXT: mov h0, v0.h[2]
1213 ; CHECK-SD-NEXT: fcvt s0, h0
1214 ; CHECK-SD-NEXT: bl powf
1215 ; CHECK-SD-NEXT: fcvt h0, s0
1216 ; CHECK-SD-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
1217 ; CHECK-SD-NEXT: mov v1.h[2], v0.h[0]
1218 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
1219 ; CHECK-SD-NEXT: mov h0, v0.h[3]
1220 ; CHECK-SD-NEXT: str q1, [sp, #64] // 16-byte Folded Spill
1221 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1222 ; CHECK-SD-NEXT: mov h1, v1.h[3]
1223 ; CHECK-SD-NEXT: fcvt s0, h0
1224 ; CHECK-SD-NEXT: fcvt s1, h1
1225 ; CHECK-SD-NEXT: bl powf
1226 ; CHECK-SD-NEXT: fcvt h0, s0
1227 ; CHECK-SD-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
1228 ; CHECK-SD-NEXT: mov v1.h[3], v0.h[0]
1229 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
1230 ; CHECK-SD-NEXT: mov h0, v0.h[4]
1231 ; CHECK-SD-NEXT: str q1, [sp, #64] // 16-byte Folded Spill
1232 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1233 ; CHECK-SD-NEXT: mov h1, v1.h[4]
1234 ; CHECK-SD-NEXT: fcvt s0, h0
1235 ; CHECK-SD-NEXT: fcvt s1, h1
1236 ; CHECK-SD-NEXT: bl powf
1237 ; CHECK-SD-NEXT: fcvt h0, s0
1238 ; CHECK-SD-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
1239 ; CHECK-SD-NEXT: mov v1.h[4], v0.h[0]
1240 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
1241 ; CHECK-SD-NEXT: mov h0, v0.h[5]
1242 ; CHECK-SD-NEXT: str q1, [sp, #64] // 16-byte Folded Spill
1243 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1244 ; CHECK-SD-NEXT: mov h1, v1.h[5]
1245 ; CHECK-SD-NEXT: fcvt s0, h0
1246 ; CHECK-SD-NEXT: fcvt s1, h1
1247 ; CHECK-SD-NEXT: bl powf
1248 ; CHECK-SD-NEXT: fcvt h0, s0
1249 ; CHECK-SD-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
1250 ; CHECK-SD-NEXT: mov v1.h[5], v0.h[0]
1251 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
1252 ; CHECK-SD-NEXT: mov h0, v0.h[6]
1253 ; CHECK-SD-NEXT: str q1, [sp, #64] // 16-byte Folded Spill
1254 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1255 ; CHECK-SD-NEXT: mov h1, v1.h[6]
1256 ; CHECK-SD-NEXT: fcvt s0, h0
1257 ; CHECK-SD-NEXT: fcvt s1, h1
1258 ; CHECK-SD-NEXT: bl powf
1259 ; CHECK-SD-NEXT: fcvt h0, s0
1260 ; CHECK-SD-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
1261 ; CHECK-SD-NEXT: mov v1.h[6], v0.h[0]
1262 ; CHECK-SD-NEXT: ldr q0, [sp] // 16-byte Folded Reload
1263 ; CHECK-SD-NEXT: mov h0, v0.h[7]
1264 ; CHECK-SD-NEXT: str q1, [sp, #64] // 16-byte Folded Spill
1265 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1266 ; CHECK-SD-NEXT: mov h1, v1.h[7]
1267 ; CHECK-SD-NEXT: fcvt s0, h0
1268 ; CHECK-SD-NEXT: fcvt s1, h1
1269 ; CHECK-SD-NEXT: bl powf
1270 ; CHECK-SD-NEXT: fcvt h0, s0
1271 ; CHECK-SD-NEXT: ldr q1, [sp, #64] // 16-byte Folded Reload
1272 ; CHECK-SD-NEXT: mov v1.h[7], v0.h[0]
1273 ; CHECK-SD-NEXT: str q1, [sp, #64] // 16-byte Folded Spill
1274 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
1275 ; CHECK-SD-NEXT: mov h0, v0.h[1]
1276 ; CHECK-SD-NEXT: mov h1, v1.h[1]
1277 ; CHECK-SD-NEXT: fcvt s0, h0
1278 ; CHECK-SD-NEXT: fcvt s1, h1
1279 ; CHECK-SD-NEXT: bl powf
1280 ; CHECK-SD-NEXT: fcvt h0, s0
1281 ; CHECK-SD-NEXT: str q0, [sp, #48] // 16-byte Folded Spill
1282 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
1283 ; CHECK-SD-NEXT: fcvt s0, h0
1284 ; CHECK-SD-NEXT: fcvt s1, h1
1285 ; CHECK-SD-NEXT: bl powf
1286 ; CHECK-SD-NEXT: fcvt h0, s0
1287 ; CHECK-SD-NEXT: ldp q1, q2, [sp, #32] // 32-byte Folded Reload
1288 ; CHECK-SD-NEXT: mov h1, v1.h[2]
1289 ; CHECK-SD-NEXT: mov v0.h[1], v2.h[0]
1290 ; CHECK-SD-NEXT: fcvt s1, h1
1291 ; CHECK-SD-NEXT: str q0, [sp, #48] // 16-byte Folded Spill
1292 ; CHECK-SD-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
1293 ; CHECK-SD-NEXT: mov h0, v0.h[2]
1294 ; CHECK-SD-NEXT: fcvt s0, h0
1295 ; CHECK-SD-NEXT: bl powf
1296 ; CHECK-SD-NEXT: fcvt h0, s0
1297 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1298 ; CHECK-SD-NEXT: mov v1.h[2], v0.h[0]
1299 ; CHECK-SD-NEXT: str q1, [sp, #48] // 16-byte Folded Spill
1300 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
1301 ; CHECK-SD-NEXT: mov h0, v0.h[3]
1302 ; CHECK-SD-NEXT: mov h1, v1.h[3]
1303 ; CHECK-SD-NEXT: fcvt s0, h0
1304 ; CHECK-SD-NEXT: fcvt s1, h1
1305 ; CHECK-SD-NEXT: bl powf
1306 ; CHECK-SD-NEXT: fcvt h0, s0
1307 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1308 ; CHECK-SD-NEXT: mov v1.h[3], v0.h[0]
1309 ; CHECK-SD-NEXT: str q1, [sp, #48] // 16-byte Folded Spill
1310 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
1311 ; CHECK-SD-NEXT: mov h0, v0.h[4]
1312 ; CHECK-SD-NEXT: mov h1, v1.h[4]
1313 ; CHECK-SD-NEXT: fcvt s0, h0
1314 ; CHECK-SD-NEXT: fcvt s1, h1
1315 ; CHECK-SD-NEXT: bl powf
1316 ; CHECK-SD-NEXT: fcvt h0, s0
1317 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1318 ; CHECK-SD-NEXT: mov v1.h[4], v0.h[0]
1319 ; CHECK-SD-NEXT: str q1, [sp, #48] // 16-byte Folded Spill
1320 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
1321 ; CHECK-SD-NEXT: mov h0, v0.h[5]
1322 ; CHECK-SD-NEXT: mov h1, v1.h[5]
1323 ; CHECK-SD-NEXT: fcvt s0, h0
1324 ; CHECK-SD-NEXT: fcvt s1, h1
1325 ; CHECK-SD-NEXT: bl powf
1326 ; CHECK-SD-NEXT: fcvt h0, s0
1327 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1328 ; CHECK-SD-NEXT: mov v1.h[5], v0.h[0]
1329 ; CHECK-SD-NEXT: str q1, [sp, #48] // 16-byte Folded Spill
1330 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
1331 ; CHECK-SD-NEXT: mov h0, v0.h[6]
1332 ; CHECK-SD-NEXT: mov h1, v1.h[6]
1333 ; CHECK-SD-NEXT: fcvt s0, h0
1334 ; CHECK-SD-NEXT: fcvt s1, h1
1335 ; CHECK-SD-NEXT: bl powf
1336 ; CHECK-SD-NEXT: fcvt h0, s0
1337 ; CHECK-SD-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1338 ; CHECK-SD-NEXT: mov v1.h[6], v0.h[0]
1339 ; CHECK-SD-NEXT: str q1, [sp, #48] // 16-byte Folded Spill
1340 ; CHECK-SD-NEXT: ldp q0, q1, [sp, #16] // 32-byte Folded Reload
1341 ; CHECK-SD-NEXT: mov h0, v0.h[7]
1342 ; CHECK-SD-NEXT: mov h1, v1.h[7]
1343 ; CHECK-SD-NEXT: fcvt s0, h0
1344 ; CHECK-SD-NEXT: fcvt s1, h1
1345 ; CHECK-SD-NEXT: bl powf
1346 ; CHECK-SD-NEXT: fmov s1, s0
1347 ; CHECK-SD-NEXT: ldr x30, [sp, #80] // 8-byte Folded Reload
1348 ; CHECK-SD-NEXT: fcvt h2, s1
1349 ; CHECK-SD-NEXT: ldp q1, q0, [sp, #48] // 32-byte Folded Reload
1350 ; CHECK-SD-NEXT: mov v1.h[7], v2.h[0]
1351 ; CHECK-SD-NEXT: add sp, sp, #96
1352 ; CHECK-SD-NEXT: ret
1354 ; CHECK-GI-LABEL: pow_v16f16:
1355 ; CHECK-GI: // %bb.0: // %entry
1356 ; CHECK-GI-NEXT: sub sp, sp, #448
1357 ; CHECK-GI-NEXT: stp d15, d14, [sp, #368] // 16-byte Folded Spill
1358 ; CHECK-GI-NEXT: stp d13, d12, [sp, #384] // 16-byte Folded Spill
1359 ; CHECK-GI-NEXT: stp d11, d10, [sp, #400] // 16-byte Folded Spill
1360 ; CHECK-GI-NEXT: stp d9, d8, [sp, #416] // 16-byte Folded Spill
1361 ; CHECK-GI-NEXT: stp x29, x30, [sp, #432] // 16-byte Folded Spill
1362 ; CHECK-GI-NEXT: .cfi_def_cfa_offset 448
1363 ; CHECK-GI-NEXT: .cfi_offset w30, -8
1364 ; CHECK-GI-NEXT: .cfi_offset w29, -16
1365 ; CHECK-GI-NEXT: .cfi_offset b8, -24
1366 ; CHECK-GI-NEXT: .cfi_offset b9, -32
1367 ; CHECK-GI-NEXT: .cfi_offset b10, -40
1368 ; CHECK-GI-NEXT: .cfi_offset b11, -48
1369 ; CHECK-GI-NEXT: .cfi_offset b12, -56
1370 ; CHECK-GI-NEXT: .cfi_offset b13, -64
1371 ; CHECK-GI-NEXT: .cfi_offset b14, -72
1372 ; CHECK-GI-NEXT: .cfi_offset b15, -80
1373 ; CHECK-GI-NEXT: mov v4.16b, v1.16b
1374 ; CHECK-GI-NEXT: str q1, [sp, #112] // 16-byte Folded Spill
1375 ; CHECK-GI-NEXT: mov h1, v0.h[4]
1376 ; CHECK-GI-NEXT: mov h12, v0.h[1]
1377 ; CHECK-GI-NEXT: mov h13, v0.h[2]
1378 ; CHECK-GI-NEXT: str q3, [sp, #16] // 16-byte Folded Spill
1379 ; CHECK-GI-NEXT: mov h14, v0.h[3]
1380 ; CHECK-GI-NEXT: mov h15, v2.h[1]
1381 ; CHECK-GI-NEXT: mov h8, v2.h[2]
1382 ; CHECK-GI-NEXT: mov h9, v2.h[3]
1383 ; CHECK-GI-NEXT: mov h10, v2.h[4]
1384 ; CHECK-GI-NEXT: mov h11, v2.h[5]
1385 ; CHECK-GI-NEXT: str h1, [sp, #272] // 2-byte Folded Spill
1386 ; CHECK-GI-NEXT: mov h1, v0.h[5]
1387 ; CHECK-GI-NEXT: str h1, [sp, #240] // 2-byte Folded Spill
1388 ; CHECK-GI-NEXT: mov h1, v0.h[6]
1389 ; CHECK-GI-NEXT: str h1, [sp, #176] // 2-byte Folded Spill
1390 ; CHECK-GI-NEXT: mov h1, v0.h[7]
1391 ; CHECK-GI-NEXT: fcvt s0, h0
1392 ; CHECK-GI-NEXT: str h1, [sp, #144] // 2-byte Folded Spill
1393 ; CHECK-GI-NEXT: mov h1, v4.h[1]
1394 ; CHECK-GI-NEXT: str h1, [sp, #48] // 2-byte Folded Spill
1395 ; CHECK-GI-NEXT: mov h1, v4.h[2]
1396 ; CHECK-GI-NEXT: str h1, [sp, #80] // 2-byte Folded Spill
1397 ; CHECK-GI-NEXT: mov h1, v4.h[3]
1398 ; CHECK-GI-NEXT: str h1, [sp, #128] // 2-byte Folded Spill
1399 ; CHECK-GI-NEXT: mov h1, v4.h[4]
1400 ; CHECK-GI-NEXT: str h1, [sp, #192] // 2-byte Folded Spill
1401 ; CHECK-GI-NEXT: mov h1, v4.h[5]
1402 ; CHECK-GI-NEXT: str h1, [sp, #256] // 2-byte Folded Spill
1403 ; CHECK-GI-NEXT: mov h1, v4.h[6]
1404 ; CHECK-GI-NEXT: str h1, [sp, #336] // 2-byte Folded Spill
1405 ; CHECK-GI-NEXT: mov h1, v4.h[7]
1406 ; CHECK-GI-NEXT: str h1, [sp, #352] // 2-byte Folded Spill
1407 ; CHECK-GI-NEXT: mov h1, v2.h[6]
1408 ; CHECK-GI-NEXT: str h1, [sp, #12] // 2-byte Folded Spill
1409 ; CHECK-GI-NEXT: mov h1, v2.h[7]
1410 ; CHECK-GI-NEXT: str h1, [sp, #14] // 2-byte Folded Spill
1411 ; CHECK-GI-NEXT: mov h1, v3.h[1]
1412 ; CHECK-GI-NEXT: str h1, [sp, #44] // 2-byte Folded Spill
1413 ; CHECK-GI-NEXT: mov h1, v3.h[2]
1414 ; CHECK-GI-NEXT: str h1, [sp, #46] // 2-byte Folded Spill
1415 ; CHECK-GI-NEXT: mov h1, v3.h[3]
1416 ; CHECK-GI-NEXT: str h1, [sp, #78] // 2-byte Folded Spill
1417 ; CHECK-GI-NEXT: mov h1, v3.h[4]
1418 ; CHECK-GI-NEXT: str h1, [sp, #110] // 2-byte Folded Spill
1419 ; CHECK-GI-NEXT: mov h1, v3.h[5]
1420 ; CHECK-GI-NEXT: str h1, [sp, #174] // 2-byte Folded Spill
1421 ; CHECK-GI-NEXT: mov h1, v3.h[6]
1422 ; CHECK-GI-NEXT: str h1, [sp, #238] // 2-byte Folded Spill
1423 ; CHECK-GI-NEXT: mov h1, v3.h[7]
1424 ; CHECK-GI-NEXT: str h1, [sp, #302] // 2-byte Folded Spill
1425 ; CHECK-GI-NEXT: fcvt s1, h2
1426 ; CHECK-GI-NEXT: bl powf
1427 ; CHECK-GI-NEXT: fcvt s2, h12
1428 ; CHECK-GI-NEXT: fcvt h0, s0
1429 ; CHECK-GI-NEXT: fcvt s1, h15
1430 ; CHECK-GI-NEXT: str q0, [sp, #304] // 16-byte Folded Spill
1431 ; CHECK-GI-NEXT: fmov s0, s2
1432 ; CHECK-GI-NEXT: bl powf
1433 ; CHECK-GI-NEXT: fcvt s2, h13
1434 ; CHECK-GI-NEXT: fcvt h0, s0
1435 ; CHECK-GI-NEXT: fcvt s1, h8
1436 ; CHECK-GI-NEXT: str q0, [sp, #208] // 16-byte Folded Spill
1437 ; CHECK-GI-NEXT: fmov s0, s2
1438 ; CHECK-GI-NEXT: bl powf
1439 ; CHECK-GI-NEXT: fcvt s2, h14
1440 ; CHECK-GI-NEXT: fcvt h0, s0
1441 ; CHECK-GI-NEXT: fcvt s1, h9
1442 ; CHECK-GI-NEXT: str q0, [sp, #320] // 16-byte Folded Spill
1443 ; CHECK-GI-NEXT: fmov s0, s2
1444 ; CHECK-GI-NEXT: bl powf
1445 ; CHECK-GI-NEXT: ldr h1, [sp, #272] // 2-byte Folded Reload
1446 ; CHECK-GI-NEXT: fcvt h0, s0
1447 ; CHECK-GI-NEXT: fcvt s2, h1
1448 ; CHECK-GI-NEXT: fcvt s1, h10
1449 ; CHECK-GI-NEXT: str q0, [sp, #272] // 16-byte Folded Spill
1450 ; CHECK-GI-NEXT: fmov s0, s2
1451 ; CHECK-GI-NEXT: bl powf
1452 ; CHECK-GI-NEXT: ldr h1, [sp, #240] // 2-byte Folded Reload
1453 ; CHECK-GI-NEXT: fcvt h0, s0
1454 ; CHECK-GI-NEXT: fcvt s2, h1
1455 ; CHECK-GI-NEXT: fcvt s1, h11
1456 ; CHECK-GI-NEXT: str q0, [sp, #240] // 16-byte Folded Spill
1457 ; CHECK-GI-NEXT: fmov s0, s2
1458 ; CHECK-GI-NEXT: bl powf
1459 ; CHECK-GI-NEXT: ldr h1, [sp, #176] // 2-byte Folded Reload
1460 ; CHECK-GI-NEXT: fcvt h0, s0
1461 ; CHECK-GI-NEXT: fcvt s2, h1
1462 ; CHECK-GI-NEXT: str q0, [sp, #176] // 16-byte Folded Spill
1463 ; CHECK-GI-NEXT: ldr h0, [sp, #12] // 2-byte Folded Reload
1464 ; CHECK-GI-NEXT: fcvt s1, h0
1465 ; CHECK-GI-NEXT: fmov s0, s2
1466 ; CHECK-GI-NEXT: bl powf
1467 ; CHECK-GI-NEXT: ldr h1, [sp, #144] // 2-byte Folded Reload
1468 ; CHECK-GI-NEXT: fcvt h0, s0
1469 ; CHECK-GI-NEXT: fcvt s2, h1
1470 ; CHECK-GI-NEXT: str q0, [sp, #144] // 16-byte Folded Spill
1471 ; CHECK-GI-NEXT: ldr h0, [sp, #14] // 2-byte Folded Reload
1472 ; CHECK-GI-NEXT: fcvt s1, h0
1473 ; CHECK-GI-NEXT: fmov s0, s2
1474 ; CHECK-GI-NEXT: bl powf
1475 ; CHECK-GI-NEXT: ldr q1, [sp, #112] // 16-byte Folded Reload
1476 ; CHECK-GI-NEXT: fcvt h0, s0
1477 ; CHECK-GI-NEXT: fcvt s2, h1
1478 ; CHECK-GI-NEXT: str q0, [sp, #112] // 16-byte Folded Spill
1479 ; CHECK-GI-NEXT: ldr q0, [sp, #16] // 16-byte Folded Reload
1480 ; CHECK-GI-NEXT: fcvt s1, h0
1481 ; CHECK-GI-NEXT: fmov s0, s2
1482 ; CHECK-GI-NEXT: bl powf
1483 ; CHECK-GI-NEXT: ldr h1, [sp, #48] // 2-byte Folded Reload
1484 ; CHECK-GI-NEXT: fcvt h0, s0
1485 ; CHECK-GI-NEXT: fcvt s2, h1
1486 ; CHECK-GI-NEXT: str q0, [sp, #48] // 16-byte Folded Spill
1487 ; CHECK-GI-NEXT: ldr h0, [sp, #44] // 2-byte Folded Reload
1488 ; CHECK-GI-NEXT: fcvt s1, h0
1489 ; CHECK-GI-NEXT: fmov s0, s2
1490 ; CHECK-GI-NEXT: bl powf
1491 ; CHECK-GI-NEXT: ldr h1, [sp, #80] // 2-byte Folded Reload
1492 ; CHECK-GI-NEXT: fcvt h0, s0
1493 ; CHECK-GI-NEXT: fcvt s2, h1
1494 ; CHECK-GI-NEXT: str q0, [sp, #80] // 16-byte Folded Spill
1495 ; CHECK-GI-NEXT: ldr h0, [sp, #46] // 2-byte Folded Reload
1496 ; CHECK-GI-NEXT: fcvt s1, h0
1497 ; CHECK-GI-NEXT: fmov s0, s2
1498 ; CHECK-GI-NEXT: bl powf
1499 ; CHECK-GI-NEXT: ldr h1, [sp, #128] // 2-byte Folded Reload
1500 ; CHECK-GI-NEXT: fcvt h0, s0
1501 ; CHECK-GI-NEXT: fcvt s2, h1
1502 ; CHECK-GI-NEXT: str q0, [sp, #128] // 16-byte Folded Spill
1503 ; CHECK-GI-NEXT: ldr h0, [sp, #78] // 2-byte Folded Reload
1504 ; CHECK-GI-NEXT: fcvt s1, h0
1505 ; CHECK-GI-NEXT: fmov s0, s2
1506 ; CHECK-GI-NEXT: bl powf
1507 ; CHECK-GI-NEXT: ldr h1, [sp, #192] // 2-byte Folded Reload
1508 ; CHECK-GI-NEXT: fcvt h0, s0
1509 ; CHECK-GI-NEXT: fcvt s2, h1
1510 ; CHECK-GI-NEXT: str q0, [sp, #192] // 16-byte Folded Spill
1511 ; CHECK-GI-NEXT: ldr h0, [sp, #110] // 2-byte Folded Reload
1512 ; CHECK-GI-NEXT: fcvt s1, h0
1513 ; CHECK-GI-NEXT: fmov s0, s2
1514 ; CHECK-GI-NEXT: bl powf
1515 ; CHECK-GI-NEXT: ldr h1, [sp, #256] // 2-byte Folded Reload
1516 ; CHECK-GI-NEXT: fcvt h0, s0
1517 ; CHECK-GI-NEXT: fcvt s2, h1
1518 ; CHECK-GI-NEXT: str q0, [sp, #256] // 16-byte Folded Spill
1519 ; CHECK-GI-NEXT: ldr h0, [sp, #174] // 2-byte Folded Reload
1520 ; CHECK-GI-NEXT: fcvt s1, h0
1521 ; CHECK-GI-NEXT: fmov s0, s2
1522 ; CHECK-GI-NEXT: bl powf
1523 ; CHECK-GI-NEXT: ldr h1, [sp, #336] // 2-byte Folded Reload
1524 ; CHECK-GI-NEXT: fcvt h0, s0
1525 ; CHECK-GI-NEXT: fcvt s2, h1
1526 ; CHECK-GI-NEXT: str q0, [sp, #336] // 16-byte Folded Spill
1527 ; CHECK-GI-NEXT: ldr h0, [sp, #238] // 2-byte Folded Reload
1528 ; CHECK-GI-NEXT: fcvt s1, h0
1529 ; CHECK-GI-NEXT: fmov s0, s2
1530 ; CHECK-GI-NEXT: bl powf
1531 ; CHECK-GI-NEXT: ldr h1, [sp, #352] // 2-byte Folded Reload
1532 ; CHECK-GI-NEXT: fcvt h0, s0
1533 ; CHECK-GI-NEXT: fcvt s2, h1
1534 ; CHECK-GI-NEXT: str q0, [sp, #352] // 16-byte Folded Spill
1535 ; CHECK-GI-NEXT: ldr h0, [sp, #302] // 2-byte Folded Reload
1536 ; CHECK-GI-NEXT: fcvt s1, h0
1537 ; CHECK-GI-NEXT: fmov s0, s2
1538 ; CHECK-GI-NEXT: bl powf
1539 ; CHECK-GI-NEXT: ldr q3, [sp, #304] // 16-byte Folded Reload
1540 ; CHECK-GI-NEXT: ldr q2, [sp, #208] // 16-byte Folded Reload
1541 ; CHECK-GI-NEXT: ldr q1, [sp, #48] // 16-byte Folded Reload
1542 ; CHECK-GI-NEXT: ldp x29, x30, [sp, #432] // 16-byte Folded Reload
1543 ; CHECK-GI-NEXT: mov v3.h[1], v2.h[0]
1544 ; CHECK-GI-NEXT: ldr q2, [sp, #80] // 16-byte Folded Reload
1545 ; CHECK-GI-NEXT: ldp d9, d8, [sp, #416] // 16-byte Folded Reload
1546 ; CHECK-GI-NEXT: mov v1.h[1], v2.h[0]
1547 ; CHECK-GI-NEXT: ldr q2, [sp, #320] // 16-byte Folded Reload
1548 ; CHECK-GI-NEXT: ldp d11, d10, [sp, #400] // 16-byte Folded Reload
1549 ; CHECK-GI-NEXT: mov v3.h[2], v2.h[0]
1550 ; CHECK-GI-NEXT: ldr q2, [sp, #128] // 16-byte Folded Reload
1551 ; CHECK-GI-NEXT: ldp d13, d12, [sp, #384] // 16-byte Folded Reload
1552 ; CHECK-GI-NEXT: mov v1.h[2], v2.h[0]
1553 ; CHECK-GI-NEXT: ldr q2, [sp, #272] // 16-byte Folded Reload
1554 ; CHECK-GI-NEXT: ldp d15, d14, [sp, #368] // 16-byte Folded Reload
1555 ; CHECK-GI-NEXT: mov v3.h[3], v2.h[0]
1556 ; CHECK-GI-NEXT: ldr q2, [sp, #192] // 16-byte Folded Reload
1557 ; CHECK-GI-NEXT: mov v1.h[3], v2.h[0]
1558 ; CHECK-GI-NEXT: ldp q4, q2, [sp, #240] // 32-byte Folded Reload
1559 ; CHECK-GI-NEXT: mov v3.h[4], v4.h[0]
1560 ; CHECK-GI-NEXT: mov v1.h[4], v2.h[0]
1561 ; CHECK-GI-NEXT: ldr q2, [sp, #176] // 16-byte Folded Reload
1562 ; CHECK-GI-NEXT: mov v3.h[5], v2.h[0]
1563 ; CHECK-GI-NEXT: ldr q2, [sp, #336] // 16-byte Folded Reload
1564 ; CHECK-GI-NEXT: mov v1.h[5], v2.h[0]
1565 ; CHECK-GI-NEXT: fcvt h2, s0
1566 ; CHECK-GI-NEXT: ldr q0, [sp, #144] // 16-byte Folded Reload
1567 ; CHECK-GI-NEXT: mov v3.h[6], v0.h[0]
1568 ; CHECK-GI-NEXT: ldr q0, [sp, #352] // 16-byte Folded Reload
1569 ; CHECK-GI-NEXT: mov v1.h[6], v0.h[0]
1570 ; CHECK-GI-NEXT: ldr q0, [sp, #112] // 16-byte Folded Reload
1571 ; CHECK-GI-NEXT: mov v3.h[7], v0.h[0]
1572 ; CHECK-GI-NEXT: mov v1.h[7], v2.h[0]
1573 ; CHECK-GI-NEXT: mov v0.16b, v3.16b
1574 ; CHECK-GI-NEXT: add sp, sp, #448
1575 ; CHECK-GI-NEXT: ret
1577 %c = call <16 x half> @llvm.pow.v16f16(<16 x half> %a, <16 x half> %b)
1581 declare <16 x half> @llvm.pow.v16f16(<16 x half>, <16 x half>)
1582 declare <2 x double> @llvm.pow.v2f64(<2 x double>, <2 x double>)
1583 declare <2 x float> @llvm.pow.v2f32(<2 x float>, <2 x float>)
1584 declare <3 x double> @llvm.pow.v3f64(<3 x double>, <3 x double>)
1585 declare <3 x float> @llvm.pow.v3f32(<3 x float>, <3 x float>)
1586 declare <4 x double> @llvm.pow.v4f64(<4 x double>, <4 x double>)
1587 declare <4 x float> @llvm.pow.v4f32(<4 x float>, <4 x float>)
1588 declare <4 x half> @llvm.pow.v4f16(<4 x half>, <4 x half>)
1589 declare <7 x half> @llvm.pow.v7f16(<7 x half>, <7 x half>)
1590 declare <8 x float> @llvm.pow.v8f32(<8 x float>, <8 x float>)
1591 declare <8 x half> @llvm.pow.v8f16(<8 x half>, <8 x half>)
1592 declare double @llvm.pow.f64(double, double)
1593 declare float @llvm.pow.f32(float, float)
1594 declare half @llvm.pow.f16(half, half)