1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=thumbv8.1m.main-arm-none-eabi -mattr=+mve,+fullfp16 -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-MVE
3 ; RUN: llc -mtriple=thumbv8.1m.main-arm-none-eabi -mattr=+mve.fp -verify-machineinstrs %s -o - | FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-MVEFP
5 define arm_aapcs_vfpcc <4 x float> @vcmp_oeq_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
6 ; CHECK-MVE-LABEL: vcmp_oeq_v4f32:
7 ; CHECK-MVE: @ %bb.0: @ %entry
8 ; CHECK-MVE-NEXT: vcmp.f32 s0, #0
9 ; CHECK-MVE-NEXT: movs r1, #0
10 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
11 ; CHECK-MVE-NEXT: it eq
12 ; CHECK-MVE-NEXT: moveq r1, #1
13 ; CHECK-MVE-NEXT: cmp r1, #0
14 ; CHECK-MVE-NEXT: vcmp.f32 s1, #0
15 ; CHECK-MVE-NEXT: cset r1, ne
16 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
17 ; CHECK-MVE-NEXT: mov.w r2, #0
18 ; CHECK-MVE-NEXT: vcmp.f32 s2, #0
19 ; CHECK-MVE-NEXT: it eq
20 ; CHECK-MVE-NEXT: moveq r2, #1
21 ; CHECK-MVE-NEXT: cmp r2, #0
22 ; CHECK-MVE-NEXT: cset r2, ne
23 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
24 ; CHECK-MVE-NEXT: mov.w r3, #0
25 ; CHECK-MVE-NEXT: vcmp.f32 s3, #0
26 ; CHECK-MVE-NEXT: it eq
27 ; CHECK-MVE-NEXT: moveq r3, #1
28 ; CHECK-MVE-NEXT: cmp r3, #0
29 ; CHECK-MVE-NEXT: cset r3, ne
30 ; CHECK-MVE-NEXT: movs r0, #0
31 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
32 ; CHECK-MVE-NEXT: it eq
33 ; CHECK-MVE-NEXT: moveq r0, #1
34 ; CHECK-MVE-NEXT: cmp r0, #0
35 ; CHECK-MVE-NEXT: cset r0, ne
36 ; CHECK-MVE-NEXT: lsls r0, r0, #31
37 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
38 ; CHECK-MVE-NEXT: lsls r0, r3, #31
39 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
40 ; CHECK-MVE-NEXT: lsls r0, r2, #31
41 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
42 ; CHECK-MVE-NEXT: lsls r0, r1, #31
43 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
44 ; CHECK-MVE-NEXT: bx lr
46 ; CHECK-MVEFP-LABEL: vcmp_oeq_v4f32:
47 ; CHECK-MVEFP: @ %bb.0: @ %entry
48 ; CHECK-MVEFP-NEXT: vcmp.f32 eq, q0, zr
49 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
50 ; CHECK-MVEFP-NEXT: bx lr
52 %c = fcmp oeq <4 x float> %src, zeroinitializer
53 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
57 define arm_aapcs_vfpcc <4 x float> @vcmp_one_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
58 ; CHECK-MVE-LABEL: vcmp_one_v4f32:
59 ; CHECK-MVE: @ %bb.0: @ %entry
60 ; CHECK-MVE-NEXT: vcmp.f32 s0, #0
61 ; CHECK-MVE-NEXT: movs r1, #0
62 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
63 ; CHECK-MVE-NEXT: vcmp.f32 s0, #0
64 ; CHECK-MVE-NEXT: it mi
65 ; CHECK-MVE-NEXT: movmi r1, #1
66 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
67 ; CHECK-MVE-NEXT: it gt
68 ; CHECK-MVE-NEXT: movgt r1, #1
69 ; CHECK-MVE-NEXT: cmp r1, #0
70 ; CHECK-MVE-NEXT: vcmp.f32 s1, #0
71 ; CHECK-MVE-NEXT: mov.w r2, #0
72 ; CHECK-MVE-NEXT: cset r1, ne
73 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
74 ; CHECK-MVE-NEXT: it mi
75 ; CHECK-MVE-NEXT: movmi r2, #1
76 ; CHECK-MVE-NEXT: vcmp.f32 s2, #0
77 ; CHECK-MVE-NEXT: it gt
78 ; CHECK-MVE-NEXT: movgt r2, #1
79 ; CHECK-MVE-NEXT: cmp r2, #0
80 ; CHECK-MVE-NEXT: mov.w r3, #0
81 ; CHECK-MVE-NEXT: cset r2, ne
82 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
83 ; CHECK-MVE-NEXT: it mi
84 ; CHECK-MVE-NEXT: movmi r3, #1
85 ; CHECK-MVE-NEXT: it gt
86 ; CHECK-MVE-NEXT: movgt r3, #1
87 ; CHECK-MVE-NEXT: cmp r3, #0
88 ; CHECK-MVE-NEXT: mov.w r0, #0
89 ; CHECK-MVE-NEXT: vcmp.f32 s3, #0
90 ; CHECK-MVE-NEXT: cset r3, ne
91 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
92 ; CHECK-MVE-NEXT: it mi
93 ; CHECK-MVE-NEXT: movmi r0, #1
94 ; CHECK-MVE-NEXT: it gt
95 ; CHECK-MVE-NEXT: movgt r0, #1
96 ; CHECK-MVE-NEXT: cmp r0, #0
97 ; CHECK-MVE-NEXT: cset r0, ne
98 ; CHECK-MVE-NEXT: lsls r0, r0, #31
99 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
100 ; CHECK-MVE-NEXT: lsls r0, r3, #31
101 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
102 ; CHECK-MVE-NEXT: lsls r0, r2, #31
103 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
104 ; CHECK-MVE-NEXT: lsls r0, r1, #31
105 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
106 ; CHECK-MVE-NEXT: bx lr
108 ; CHECK-MVEFP-LABEL: vcmp_one_v4f32:
109 ; CHECK-MVEFP: @ %bb.0: @ %entry
110 ; CHECK-MVEFP-NEXT: vmov.i32 q3, #0x0
111 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q3, q0
112 ; CHECK-MVEFP-NEXT: vpst
113 ; CHECK-MVEFP-NEXT: vcmpt.f32 le, q0, q3
114 ; CHECK-MVEFP-NEXT: vpnot
115 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
116 ; CHECK-MVEFP-NEXT: bx lr
118 %c = fcmp one <4 x float> %src, zeroinitializer
119 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
123 define arm_aapcs_vfpcc <4 x float> @vcmp_ogt_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
124 ; CHECK-MVE-LABEL: vcmp_ogt_v4f32:
125 ; CHECK-MVE: @ %bb.0: @ %entry
126 ; CHECK-MVE-NEXT: vcmpe.f32 s0, #0
127 ; CHECK-MVE-NEXT: movs r1, #0
128 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
129 ; CHECK-MVE-NEXT: it gt
130 ; CHECK-MVE-NEXT: movgt r1, #1
131 ; CHECK-MVE-NEXT: cmp r1, #0
132 ; CHECK-MVE-NEXT: vcmpe.f32 s1, #0
133 ; CHECK-MVE-NEXT: cset r1, ne
134 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
135 ; CHECK-MVE-NEXT: mov.w r2, #0
136 ; CHECK-MVE-NEXT: vcmpe.f32 s2, #0
137 ; CHECK-MVE-NEXT: it gt
138 ; CHECK-MVE-NEXT: movgt r2, #1
139 ; CHECK-MVE-NEXT: cmp r2, #0
140 ; CHECK-MVE-NEXT: cset r2, ne
141 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
142 ; CHECK-MVE-NEXT: mov.w r3, #0
143 ; CHECK-MVE-NEXT: vcmpe.f32 s3, #0
144 ; CHECK-MVE-NEXT: it gt
145 ; CHECK-MVE-NEXT: movgt r3, #1
146 ; CHECK-MVE-NEXT: cmp r3, #0
147 ; CHECK-MVE-NEXT: cset r3, ne
148 ; CHECK-MVE-NEXT: movs r0, #0
149 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
150 ; CHECK-MVE-NEXT: it gt
151 ; CHECK-MVE-NEXT: movgt r0, #1
152 ; CHECK-MVE-NEXT: cmp r0, #0
153 ; CHECK-MVE-NEXT: cset r0, ne
154 ; CHECK-MVE-NEXT: lsls r0, r0, #31
155 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
156 ; CHECK-MVE-NEXT: lsls r0, r3, #31
157 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
158 ; CHECK-MVE-NEXT: lsls r0, r2, #31
159 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
160 ; CHECK-MVE-NEXT: lsls r0, r1, #31
161 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
162 ; CHECK-MVE-NEXT: bx lr
164 ; CHECK-MVEFP-LABEL: vcmp_ogt_v4f32:
165 ; CHECK-MVEFP: @ %bb.0: @ %entry
166 ; CHECK-MVEFP-NEXT: vcmp.f32 gt, q0, zr
167 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
168 ; CHECK-MVEFP-NEXT: bx lr
170 %c = fcmp ogt <4 x float> %src, zeroinitializer
171 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
175 define arm_aapcs_vfpcc <4 x float> @vcmp_oge_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
176 ; CHECK-MVE-LABEL: vcmp_oge_v4f32:
177 ; CHECK-MVE: @ %bb.0: @ %entry
178 ; CHECK-MVE-NEXT: vcmpe.f32 s0, #0
179 ; CHECK-MVE-NEXT: movs r1, #0
180 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
181 ; CHECK-MVE-NEXT: it ge
182 ; CHECK-MVE-NEXT: movge r1, #1
183 ; CHECK-MVE-NEXT: cmp r1, #0
184 ; CHECK-MVE-NEXT: vcmpe.f32 s1, #0
185 ; CHECK-MVE-NEXT: cset r1, ne
186 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
187 ; CHECK-MVE-NEXT: mov.w r2, #0
188 ; CHECK-MVE-NEXT: vcmpe.f32 s2, #0
189 ; CHECK-MVE-NEXT: it ge
190 ; CHECK-MVE-NEXT: movge r2, #1
191 ; CHECK-MVE-NEXT: cmp r2, #0
192 ; CHECK-MVE-NEXT: cset r2, ne
193 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
194 ; CHECK-MVE-NEXT: mov.w r3, #0
195 ; CHECK-MVE-NEXT: vcmpe.f32 s3, #0
196 ; CHECK-MVE-NEXT: it ge
197 ; CHECK-MVE-NEXT: movge r3, #1
198 ; CHECK-MVE-NEXT: cmp r3, #0
199 ; CHECK-MVE-NEXT: cset r3, ne
200 ; CHECK-MVE-NEXT: movs r0, #0
201 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
202 ; CHECK-MVE-NEXT: it ge
203 ; CHECK-MVE-NEXT: movge r0, #1
204 ; CHECK-MVE-NEXT: cmp r0, #0
205 ; CHECK-MVE-NEXT: cset r0, ne
206 ; CHECK-MVE-NEXT: lsls r0, r0, #31
207 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
208 ; CHECK-MVE-NEXT: lsls r0, r3, #31
209 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
210 ; CHECK-MVE-NEXT: lsls r0, r2, #31
211 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
212 ; CHECK-MVE-NEXT: lsls r0, r1, #31
213 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
214 ; CHECK-MVE-NEXT: bx lr
216 ; CHECK-MVEFP-LABEL: vcmp_oge_v4f32:
217 ; CHECK-MVEFP: @ %bb.0: @ %entry
218 ; CHECK-MVEFP-NEXT: vcmp.f32 ge, q0, zr
219 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
220 ; CHECK-MVEFP-NEXT: bx lr
222 %c = fcmp oge <4 x float> %src, zeroinitializer
223 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
227 define arm_aapcs_vfpcc <4 x float> @vcmp_olt_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
228 ; CHECK-MVE-LABEL: vcmp_olt_v4f32:
229 ; CHECK-MVE: @ %bb.0: @ %entry
230 ; CHECK-MVE-NEXT: vcmpe.f32 s0, #0
231 ; CHECK-MVE-NEXT: movs r1, #0
232 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
233 ; CHECK-MVE-NEXT: it mi
234 ; CHECK-MVE-NEXT: movmi r1, #1
235 ; CHECK-MVE-NEXT: cmp r1, #0
236 ; CHECK-MVE-NEXT: vcmpe.f32 s1, #0
237 ; CHECK-MVE-NEXT: cset r1, ne
238 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
239 ; CHECK-MVE-NEXT: mov.w r2, #0
240 ; CHECK-MVE-NEXT: vcmpe.f32 s2, #0
241 ; CHECK-MVE-NEXT: it mi
242 ; CHECK-MVE-NEXT: movmi r2, #1
243 ; CHECK-MVE-NEXT: cmp r2, #0
244 ; CHECK-MVE-NEXT: cset r2, ne
245 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
246 ; CHECK-MVE-NEXT: mov.w r3, #0
247 ; CHECK-MVE-NEXT: vcmpe.f32 s3, #0
248 ; CHECK-MVE-NEXT: it mi
249 ; CHECK-MVE-NEXT: movmi r3, #1
250 ; CHECK-MVE-NEXT: cmp r3, #0
251 ; CHECK-MVE-NEXT: cset r3, ne
252 ; CHECK-MVE-NEXT: movs r0, #0
253 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
254 ; CHECK-MVE-NEXT: it mi
255 ; CHECK-MVE-NEXT: movmi r0, #1
256 ; CHECK-MVE-NEXT: cmp r0, #0
257 ; CHECK-MVE-NEXT: cset r0, ne
258 ; CHECK-MVE-NEXT: lsls r0, r0, #31
259 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
260 ; CHECK-MVE-NEXT: lsls r0, r3, #31
261 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
262 ; CHECK-MVE-NEXT: lsls r0, r2, #31
263 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
264 ; CHECK-MVE-NEXT: lsls r0, r1, #31
265 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
266 ; CHECK-MVE-NEXT: bx lr
268 ; CHECK-MVEFP-LABEL: vcmp_olt_v4f32:
269 ; CHECK-MVEFP: @ %bb.0: @ %entry
270 ; CHECK-MVEFP-NEXT: vcmp.f32 lt, q0, zr
271 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
272 ; CHECK-MVEFP-NEXT: bx lr
274 %c = fcmp olt <4 x float> %src, zeroinitializer
275 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
279 define arm_aapcs_vfpcc <4 x float> @vcmp_ole_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
280 ; CHECK-MVE-LABEL: vcmp_ole_v4f32:
281 ; CHECK-MVE: @ %bb.0: @ %entry
282 ; CHECK-MVE-NEXT: vcmpe.f32 s0, #0
283 ; CHECK-MVE-NEXT: movs r1, #0
284 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
285 ; CHECK-MVE-NEXT: it ls
286 ; CHECK-MVE-NEXT: movls r1, #1
287 ; CHECK-MVE-NEXT: cmp r1, #0
288 ; CHECK-MVE-NEXT: vcmpe.f32 s1, #0
289 ; CHECK-MVE-NEXT: cset r1, ne
290 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
291 ; CHECK-MVE-NEXT: mov.w r2, #0
292 ; CHECK-MVE-NEXT: vcmpe.f32 s2, #0
293 ; CHECK-MVE-NEXT: it ls
294 ; CHECK-MVE-NEXT: movls r2, #1
295 ; CHECK-MVE-NEXT: cmp r2, #0
296 ; CHECK-MVE-NEXT: cset r2, ne
297 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
298 ; CHECK-MVE-NEXT: mov.w r3, #0
299 ; CHECK-MVE-NEXT: vcmpe.f32 s3, #0
300 ; CHECK-MVE-NEXT: it ls
301 ; CHECK-MVE-NEXT: movls r3, #1
302 ; CHECK-MVE-NEXT: cmp r3, #0
303 ; CHECK-MVE-NEXT: cset r3, ne
304 ; CHECK-MVE-NEXT: movs r0, #0
305 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
306 ; CHECK-MVE-NEXT: it ls
307 ; CHECK-MVE-NEXT: movls r0, #1
308 ; CHECK-MVE-NEXT: cmp r0, #0
309 ; CHECK-MVE-NEXT: cset r0, ne
310 ; CHECK-MVE-NEXT: lsls r0, r0, #31
311 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
312 ; CHECK-MVE-NEXT: lsls r0, r3, #31
313 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
314 ; CHECK-MVE-NEXT: lsls r0, r2, #31
315 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
316 ; CHECK-MVE-NEXT: lsls r0, r1, #31
317 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
318 ; CHECK-MVE-NEXT: bx lr
320 ; CHECK-MVEFP-LABEL: vcmp_ole_v4f32:
321 ; CHECK-MVEFP: @ %bb.0: @ %entry
322 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q0, zr
323 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
324 ; CHECK-MVEFP-NEXT: bx lr
326 %c = fcmp ole <4 x float> %src, zeroinitializer
327 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
331 define arm_aapcs_vfpcc <4 x float> @vcmp_ueq_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
332 ; CHECK-MVE-LABEL: vcmp_ueq_v4f32:
333 ; CHECK-MVE: @ %bb.0: @ %entry
334 ; CHECK-MVE-NEXT: vcmp.f32 s0, #0
335 ; CHECK-MVE-NEXT: movs r1, #0
336 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
337 ; CHECK-MVE-NEXT: vcmp.f32 s0, #0
338 ; CHECK-MVE-NEXT: it eq
339 ; CHECK-MVE-NEXT: moveq r1, #1
340 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
341 ; CHECK-MVE-NEXT: it vs
342 ; CHECK-MVE-NEXT: movvs r1, #1
343 ; CHECK-MVE-NEXT: cmp r1, #0
344 ; CHECK-MVE-NEXT: vcmp.f32 s1, #0
345 ; CHECK-MVE-NEXT: mov.w r2, #0
346 ; CHECK-MVE-NEXT: cset r1, ne
347 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
348 ; CHECK-MVE-NEXT: it eq
349 ; CHECK-MVE-NEXT: moveq r2, #1
350 ; CHECK-MVE-NEXT: vcmp.f32 s2, #0
351 ; CHECK-MVE-NEXT: it vs
352 ; CHECK-MVE-NEXT: movvs r2, #1
353 ; CHECK-MVE-NEXT: cmp r2, #0
354 ; CHECK-MVE-NEXT: mov.w r3, #0
355 ; CHECK-MVE-NEXT: cset r2, ne
356 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
357 ; CHECK-MVE-NEXT: it eq
358 ; CHECK-MVE-NEXT: moveq r3, #1
359 ; CHECK-MVE-NEXT: it vs
360 ; CHECK-MVE-NEXT: movvs r3, #1
361 ; CHECK-MVE-NEXT: cmp r3, #0
362 ; CHECK-MVE-NEXT: mov.w r0, #0
363 ; CHECK-MVE-NEXT: vcmp.f32 s3, #0
364 ; CHECK-MVE-NEXT: cset r3, ne
365 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
366 ; CHECK-MVE-NEXT: it eq
367 ; CHECK-MVE-NEXT: moveq r0, #1
368 ; CHECK-MVE-NEXT: it vs
369 ; CHECK-MVE-NEXT: movvs r0, #1
370 ; CHECK-MVE-NEXT: cmp r0, #0
371 ; CHECK-MVE-NEXT: cset r0, ne
372 ; CHECK-MVE-NEXT: lsls r0, r0, #31
373 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
374 ; CHECK-MVE-NEXT: lsls r0, r3, #31
375 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
376 ; CHECK-MVE-NEXT: lsls r0, r2, #31
377 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
378 ; CHECK-MVE-NEXT: lsls r0, r1, #31
379 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
380 ; CHECK-MVE-NEXT: bx lr
382 ; CHECK-MVEFP-LABEL: vcmp_ueq_v4f32:
383 ; CHECK-MVEFP: @ %bb.0: @ %entry
384 ; CHECK-MVEFP-NEXT: vmov.i32 q3, #0x0
385 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q3, q0
386 ; CHECK-MVEFP-NEXT: vpst
387 ; CHECK-MVEFP-NEXT: vcmpt.f32 le, q0, q3
388 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
389 ; CHECK-MVEFP-NEXT: bx lr
391 %c = fcmp ueq <4 x float> %src, zeroinitializer
392 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
396 define arm_aapcs_vfpcc <4 x float> @vcmp_une_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
397 ; CHECK-MVE-LABEL: vcmp_une_v4f32:
398 ; CHECK-MVE: @ %bb.0: @ %entry
399 ; CHECK-MVE-NEXT: vcmp.f32 s0, #0
400 ; CHECK-MVE-NEXT: movs r1, #0
401 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
402 ; CHECK-MVE-NEXT: it ne
403 ; CHECK-MVE-NEXT: movne r1, #1
404 ; CHECK-MVE-NEXT: cmp r1, #0
405 ; CHECK-MVE-NEXT: vcmp.f32 s1, #0
406 ; CHECK-MVE-NEXT: cset r1, ne
407 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
408 ; CHECK-MVE-NEXT: mov.w r2, #0
409 ; CHECK-MVE-NEXT: vcmp.f32 s2, #0
410 ; CHECK-MVE-NEXT: it ne
411 ; CHECK-MVE-NEXT: movne r2, #1
412 ; CHECK-MVE-NEXT: cmp r2, #0
413 ; CHECK-MVE-NEXT: cset r2, ne
414 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
415 ; CHECK-MVE-NEXT: mov.w r3, #0
416 ; CHECK-MVE-NEXT: vcmp.f32 s3, #0
417 ; CHECK-MVE-NEXT: it ne
418 ; CHECK-MVE-NEXT: movne r3, #1
419 ; CHECK-MVE-NEXT: cmp r3, #0
420 ; CHECK-MVE-NEXT: cset r3, ne
421 ; CHECK-MVE-NEXT: movs r0, #0
422 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
423 ; CHECK-MVE-NEXT: it ne
424 ; CHECK-MVE-NEXT: movne r0, #1
425 ; CHECK-MVE-NEXT: cmp r0, #0
426 ; CHECK-MVE-NEXT: cset r0, ne
427 ; CHECK-MVE-NEXT: lsls r0, r0, #31
428 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
429 ; CHECK-MVE-NEXT: lsls r0, r3, #31
430 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
431 ; CHECK-MVE-NEXT: lsls r0, r2, #31
432 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
433 ; CHECK-MVE-NEXT: lsls r0, r1, #31
434 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
435 ; CHECK-MVE-NEXT: bx lr
437 ; CHECK-MVEFP-LABEL: vcmp_une_v4f32:
438 ; CHECK-MVEFP: @ %bb.0: @ %entry
439 ; CHECK-MVEFP-NEXT: vcmp.f32 ne, q0, zr
440 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
441 ; CHECK-MVEFP-NEXT: bx lr
443 %c = fcmp une <4 x float> %src, zeroinitializer
444 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
448 define arm_aapcs_vfpcc <4 x float> @vcmp_ugt_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
449 ; CHECK-MVE-LABEL: vcmp_ugt_v4f32:
450 ; CHECK-MVE: @ %bb.0: @ %entry
451 ; CHECK-MVE-NEXT: vcmpe.f32 s0, #0
452 ; CHECK-MVE-NEXT: movs r1, #0
453 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
454 ; CHECK-MVE-NEXT: it hi
455 ; CHECK-MVE-NEXT: movhi r1, #1
456 ; CHECK-MVE-NEXT: cmp r1, #0
457 ; CHECK-MVE-NEXT: vcmpe.f32 s1, #0
458 ; CHECK-MVE-NEXT: cset r1, ne
459 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
460 ; CHECK-MVE-NEXT: mov.w r2, #0
461 ; CHECK-MVE-NEXT: vcmpe.f32 s2, #0
462 ; CHECK-MVE-NEXT: it hi
463 ; CHECK-MVE-NEXT: movhi r2, #1
464 ; CHECK-MVE-NEXT: cmp r2, #0
465 ; CHECK-MVE-NEXT: cset r2, ne
466 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
467 ; CHECK-MVE-NEXT: mov.w r3, #0
468 ; CHECK-MVE-NEXT: vcmpe.f32 s3, #0
469 ; CHECK-MVE-NEXT: it hi
470 ; CHECK-MVE-NEXT: movhi r3, #1
471 ; CHECK-MVE-NEXT: cmp r3, #0
472 ; CHECK-MVE-NEXT: cset r3, ne
473 ; CHECK-MVE-NEXT: movs r0, #0
474 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
475 ; CHECK-MVE-NEXT: it hi
476 ; CHECK-MVE-NEXT: movhi r0, #1
477 ; CHECK-MVE-NEXT: cmp r0, #0
478 ; CHECK-MVE-NEXT: cset r0, ne
479 ; CHECK-MVE-NEXT: lsls r0, r0, #31
480 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
481 ; CHECK-MVE-NEXT: lsls r0, r3, #31
482 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
483 ; CHECK-MVE-NEXT: lsls r0, r2, #31
484 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
485 ; CHECK-MVE-NEXT: lsls r0, r1, #31
486 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
487 ; CHECK-MVE-NEXT: bx lr
489 ; CHECK-MVEFP-LABEL: vcmp_ugt_v4f32:
490 ; CHECK-MVEFP: @ %bb.0: @ %entry
491 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q0, zr
492 ; CHECK-MVEFP-NEXT: vpnot
493 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
494 ; CHECK-MVEFP-NEXT: bx lr
496 %c = fcmp ugt <4 x float> %src, zeroinitializer
497 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
501 define arm_aapcs_vfpcc <4 x float> @vcmp_uge_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
502 ; CHECK-MVE-LABEL: vcmp_uge_v4f32:
503 ; CHECK-MVE: @ %bb.0: @ %entry
504 ; CHECK-MVE-NEXT: vcmpe.f32 s0, #0
505 ; CHECK-MVE-NEXT: movs r1, #0
506 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
507 ; CHECK-MVE-NEXT: it pl
508 ; CHECK-MVE-NEXT: movpl r1, #1
509 ; CHECK-MVE-NEXT: cmp r1, #0
510 ; CHECK-MVE-NEXT: vcmpe.f32 s1, #0
511 ; CHECK-MVE-NEXT: cset r1, ne
512 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
513 ; CHECK-MVE-NEXT: mov.w r2, #0
514 ; CHECK-MVE-NEXT: vcmpe.f32 s2, #0
515 ; CHECK-MVE-NEXT: it pl
516 ; CHECK-MVE-NEXT: movpl r2, #1
517 ; CHECK-MVE-NEXT: cmp r2, #0
518 ; CHECK-MVE-NEXT: cset r2, ne
519 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
520 ; CHECK-MVE-NEXT: mov.w r3, #0
521 ; CHECK-MVE-NEXT: vcmpe.f32 s3, #0
522 ; CHECK-MVE-NEXT: it pl
523 ; CHECK-MVE-NEXT: movpl r3, #1
524 ; CHECK-MVE-NEXT: cmp r3, #0
525 ; CHECK-MVE-NEXT: cset r3, ne
526 ; CHECK-MVE-NEXT: movs r0, #0
527 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
528 ; CHECK-MVE-NEXT: it pl
529 ; CHECK-MVE-NEXT: movpl r0, #1
530 ; CHECK-MVE-NEXT: cmp r0, #0
531 ; CHECK-MVE-NEXT: cset r0, ne
532 ; CHECK-MVE-NEXT: lsls r0, r0, #31
533 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
534 ; CHECK-MVE-NEXT: lsls r0, r3, #31
535 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
536 ; CHECK-MVE-NEXT: lsls r0, r2, #31
537 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
538 ; CHECK-MVE-NEXT: lsls r0, r1, #31
539 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
540 ; CHECK-MVE-NEXT: bx lr
542 ; CHECK-MVEFP-LABEL: vcmp_uge_v4f32:
543 ; CHECK-MVEFP: @ %bb.0: @ %entry
544 ; CHECK-MVEFP-NEXT: vcmp.f32 lt, q0, zr
545 ; CHECK-MVEFP-NEXT: vpnot
546 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
547 ; CHECK-MVEFP-NEXT: bx lr
549 %c = fcmp uge <4 x float> %src, zeroinitializer
550 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
554 define arm_aapcs_vfpcc <4 x float> @vcmp_ult_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
555 ; CHECK-MVE-LABEL: vcmp_ult_v4f32:
556 ; CHECK-MVE: @ %bb.0: @ %entry
557 ; CHECK-MVE-NEXT: vcmpe.f32 s0, #0
558 ; CHECK-MVE-NEXT: movs r1, #0
559 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
560 ; CHECK-MVE-NEXT: it lt
561 ; CHECK-MVE-NEXT: movlt r1, #1
562 ; CHECK-MVE-NEXT: cmp r1, #0
563 ; CHECK-MVE-NEXT: vcmpe.f32 s1, #0
564 ; CHECK-MVE-NEXT: cset r1, ne
565 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
566 ; CHECK-MVE-NEXT: mov.w r2, #0
567 ; CHECK-MVE-NEXT: vcmpe.f32 s2, #0
568 ; CHECK-MVE-NEXT: it lt
569 ; CHECK-MVE-NEXT: movlt r2, #1
570 ; CHECK-MVE-NEXT: cmp r2, #0
571 ; CHECK-MVE-NEXT: cset r2, ne
572 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
573 ; CHECK-MVE-NEXT: mov.w r3, #0
574 ; CHECK-MVE-NEXT: vcmpe.f32 s3, #0
575 ; CHECK-MVE-NEXT: it lt
576 ; CHECK-MVE-NEXT: movlt r3, #1
577 ; CHECK-MVE-NEXT: cmp r3, #0
578 ; CHECK-MVE-NEXT: cset r3, ne
579 ; CHECK-MVE-NEXT: movs r0, #0
580 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
581 ; CHECK-MVE-NEXT: it lt
582 ; CHECK-MVE-NEXT: movlt r0, #1
583 ; CHECK-MVE-NEXT: cmp r0, #0
584 ; CHECK-MVE-NEXT: cset r0, ne
585 ; CHECK-MVE-NEXT: lsls r0, r0, #31
586 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
587 ; CHECK-MVE-NEXT: lsls r0, r3, #31
588 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
589 ; CHECK-MVE-NEXT: lsls r0, r2, #31
590 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
591 ; CHECK-MVE-NEXT: lsls r0, r1, #31
592 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
593 ; CHECK-MVE-NEXT: bx lr
595 ; CHECK-MVEFP-LABEL: vcmp_ult_v4f32:
596 ; CHECK-MVEFP: @ %bb.0: @ %entry
597 ; CHECK-MVEFP-NEXT: vcmp.f32 ge, q0, zr
598 ; CHECK-MVEFP-NEXT: vpnot
599 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
600 ; CHECK-MVEFP-NEXT: bx lr
602 %c = fcmp ult <4 x float> %src, zeroinitializer
603 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
607 define arm_aapcs_vfpcc <4 x float> @vcmp_ule_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
608 ; CHECK-MVE-LABEL: vcmp_ule_v4f32:
609 ; CHECK-MVE: @ %bb.0: @ %entry
610 ; CHECK-MVE-NEXT: vcmpe.f32 s0, #0
611 ; CHECK-MVE-NEXT: movs r1, #0
612 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
613 ; CHECK-MVE-NEXT: it le
614 ; CHECK-MVE-NEXT: movle r1, #1
615 ; CHECK-MVE-NEXT: cmp r1, #0
616 ; CHECK-MVE-NEXT: vcmpe.f32 s1, #0
617 ; CHECK-MVE-NEXT: cset r1, ne
618 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
619 ; CHECK-MVE-NEXT: mov.w r2, #0
620 ; CHECK-MVE-NEXT: vcmpe.f32 s2, #0
621 ; CHECK-MVE-NEXT: it le
622 ; CHECK-MVE-NEXT: movle r2, #1
623 ; CHECK-MVE-NEXT: cmp r2, #0
624 ; CHECK-MVE-NEXT: cset r2, ne
625 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
626 ; CHECK-MVE-NEXT: mov.w r3, #0
627 ; CHECK-MVE-NEXT: vcmpe.f32 s3, #0
628 ; CHECK-MVE-NEXT: it le
629 ; CHECK-MVE-NEXT: movle r3, #1
630 ; CHECK-MVE-NEXT: cmp r3, #0
631 ; CHECK-MVE-NEXT: cset r3, ne
632 ; CHECK-MVE-NEXT: movs r0, #0
633 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
634 ; CHECK-MVE-NEXT: it le
635 ; CHECK-MVE-NEXT: movle r0, #1
636 ; CHECK-MVE-NEXT: cmp r0, #0
637 ; CHECK-MVE-NEXT: cset r0, ne
638 ; CHECK-MVE-NEXT: lsls r0, r0, #31
639 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
640 ; CHECK-MVE-NEXT: lsls r0, r3, #31
641 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
642 ; CHECK-MVE-NEXT: lsls r0, r2, #31
643 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
644 ; CHECK-MVE-NEXT: lsls r0, r1, #31
645 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
646 ; CHECK-MVE-NEXT: bx lr
648 ; CHECK-MVEFP-LABEL: vcmp_ule_v4f32:
649 ; CHECK-MVEFP: @ %bb.0: @ %entry
650 ; CHECK-MVEFP-NEXT: vcmp.f32 gt, q0, zr
651 ; CHECK-MVEFP-NEXT: vpnot
652 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
653 ; CHECK-MVEFP-NEXT: bx lr
655 %c = fcmp ule <4 x float> %src, zeroinitializer
656 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
660 define arm_aapcs_vfpcc <4 x float> @vcmp_ord_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
661 ; CHECK-MVE-LABEL: vcmp_ord_v4f32:
662 ; CHECK-MVE: @ %bb.0: @ %entry
663 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s0
664 ; CHECK-MVE-NEXT: movs r1, #0
665 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
666 ; CHECK-MVE-NEXT: it vc
667 ; CHECK-MVE-NEXT: movvc r1, #1
668 ; CHECK-MVE-NEXT: cmp r1, #0
669 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s1
670 ; CHECK-MVE-NEXT: cset r1, ne
671 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
672 ; CHECK-MVE-NEXT: mov.w r2, #0
673 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s2
674 ; CHECK-MVE-NEXT: it vc
675 ; CHECK-MVE-NEXT: movvc r2, #1
676 ; CHECK-MVE-NEXT: cmp r2, #0
677 ; CHECK-MVE-NEXT: cset r2, ne
678 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
679 ; CHECK-MVE-NEXT: mov.w r3, #0
680 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s3
681 ; CHECK-MVE-NEXT: it vc
682 ; CHECK-MVE-NEXT: movvc r3, #1
683 ; CHECK-MVE-NEXT: cmp r3, #0
684 ; CHECK-MVE-NEXT: cset r3, ne
685 ; CHECK-MVE-NEXT: movs r0, #0
686 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
687 ; CHECK-MVE-NEXT: it vc
688 ; CHECK-MVE-NEXT: movvc r0, #1
689 ; CHECK-MVE-NEXT: cmp r0, #0
690 ; CHECK-MVE-NEXT: cset r0, ne
691 ; CHECK-MVE-NEXT: lsls r0, r0, #31
692 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
693 ; CHECK-MVE-NEXT: lsls r0, r3, #31
694 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
695 ; CHECK-MVE-NEXT: lsls r0, r2, #31
696 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
697 ; CHECK-MVE-NEXT: lsls r0, r1, #31
698 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
699 ; CHECK-MVE-NEXT: bx lr
701 ; CHECK-MVEFP-LABEL: vcmp_ord_v4f32:
702 ; CHECK-MVEFP: @ %bb.0: @ %entry
703 ; CHECK-MVEFP-NEXT: vmov.i32 q3, #0x0
704 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q3, q0
705 ; CHECK-MVEFP-NEXT: vpst
706 ; CHECK-MVEFP-NEXT: vcmpt.f32 lt, q0, q3
707 ; CHECK-MVEFP-NEXT: vpnot
708 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
709 ; CHECK-MVEFP-NEXT: bx lr
711 %c = fcmp ord <4 x float> %src, zeroinitializer
712 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
716 define arm_aapcs_vfpcc <4 x float> @vcmp_uno_v4f32(<4 x float> %src, <4 x float> %a, <4 x float> %b) {
717 ; CHECK-MVE-LABEL: vcmp_uno_v4f32:
718 ; CHECK-MVE: @ %bb.0: @ %entry
719 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s0
720 ; CHECK-MVE-NEXT: movs r1, #0
721 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
722 ; CHECK-MVE-NEXT: it vs
723 ; CHECK-MVE-NEXT: movvs r1, #1
724 ; CHECK-MVE-NEXT: cmp r1, #0
725 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s1
726 ; CHECK-MVE-NEXT: cset r1, ne
727 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
728 ; CHECK-MVE-NEXT: mov.w r2, #0
729 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s2
730 ; CHECK-MVE-NEXT: it vs
731 ; CHECK-MVE-NEXT: movvs r2, #1
732 ; CHECK-MVE-NEXT: cmp r2, #0
733 ; CHECK-MVE-NEXT: cset r2, ne
734 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
735 ; CHECK-MVE-NEXT: mov.w r3, #0
736 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s3
737 ; CHECK-MVE-NEXT: it vs
738 ; CHECK-MVE-NEXT: movvs r3, #1
739 ; CHECK-MVE-NEXT: cmp r3, #0
740 ; CHECK-MVE-NEXT: cset r3, ne
741 ; CHECK-MVE-NEXT: movs r0, #0
742 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
743 ; CHECK-MVE-NEXT: it vs
744 ; CHECK-MVE-NEXT: movvs r0, #1
745 ; CHECK-MVE-NEXT: cmp r0, #0
746 ; CHECK-MVE-NEXT: cset r0, ne
747 ; CHECK-MVE-NEXT: lsls r0, r0, #31
748 ; CHECK-MVE-NEXT: vseleq.f32 s3, s11, s7
749 ; CHECK-MVE-NEXT: lsls r0, r3, #31
750 ; CHECK-MVE-NEXT: vseleq.f32 s2, s10, s6
751 ; CHECK-MVE-NEXT: lsls r0, r2, #31
752 ; CHECK-MVE-NEXT: vseleq.f32 s1, s9, s5
753 ; CHECK-MVE-NEXT: lsls r0, r1, #31
754 ; CHECK-MVE-NEXT: vseleq.f32 s0, s8, s4
755 ; CHECK-MVE-NEXT: bx lr
757 ; CHECK-MVEFP-LABEL: vcmp_uno_v4f32:
758 ; CHECK-MVEFP: @ %bb.0: @ %entry
759 ; CHECK-MVEFP-NEXT: vmov.i32 q3, #0x0
760 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q3, q0
761 ; CHECK-MVEFP-NEXT: vpst
762 ; CHECK-MVEFP-NEXT: vcmpt.f32 lt, q0, q3
763 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
764 ; CHECK-MVEFP-NEXT: bx lr
766 %c = fcmp uno <4 x float> %src, zeroinitializer
767 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
773 define arm_aapcs_vfpcc <8 x half> @vcmp_oeq_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
774 ; CHECK-MVE-LABEL: vcmp_oeq_v8f16:
775 ; CHECK-MVE: @ %bb.0: @ %entry
776 ; CHECK-MVE-NEXT: .vsave {d8, d9}
777 ; CHECK-MVE-NEXT: vpush {d8, d9}
778 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
779 ; CHECK-MVE-NEXT: movs r1, #0
780 ; CHECK-MVE-NEXT: vcmp.f16 s12, #0
781 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
782 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
783 ; CHECK-MVE-NEXT: it eq
784 ; CHECK-MVE-NEXT: moveq r1, #1
785 ; CHECK-MVE-NEXT: cmp r1, #0
786 ; CHECK-MVE-NEXT: vcmp.f16 s0, #0
787 ; CHECK-MVE-NEXT: cset r1, ne
788 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
789 ; CHECK-MVE-NEXT: lsls r1, r1, #31
790 ; CHECK-MVE-NEXT: mov.w r2, #0
791 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
792 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
793 ; CHECK-MVE-NEXT: it eq
794 ; CHECK-MVE-NEXT: moveq r2, #1
795 ; CHECK-MVE-NEXT: cmp r2, #0
796 ; CHECK-MVE-NEXT: cset r2, ne
797 ; CHECK-MVE-NEXT: vmov r1, s12
798 ; CHECK-MVE-NEXT: lsls r2, r2, #31
799 ; CHECK-MVE-NEXT: vcmp.f16 s1, #0
800 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
801 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
802 ; CHECK-MVE-NEXT: vmov r2, s12
803 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
804 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
805 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
806 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
807 ; CHECK-MVE-NEXT: mov.w r1, #0
808 ; CHECK-MVE-NEXT: it eq
809 ; CHECK-MVE-NEXT: moveq r1, #1
810 ; CHECK-MVE-NEXT: cmp r1, #0
811 ; CHECK-MVE-NEXT: cset r1, ne
812 ; CHECK-MVE-NEXT: movs r0, #0
813 ; CHECK-MVE-NEXT: lsls r1, r1, #31
814 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
815 ; CHECK-MVE-NEXT: vmov r1, s16
816 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
817 ; CHECK-MVE-NEXT: vcmp.f16 s16, #0
818 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
819 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
820 ; CHECK-MVE-NEXT: mov.w r1, #0
821 ; CHECK-MVE-NEXT: it eq
822 ; CHECK-MVE-NEXT: moveq r1, #1
823 ; CHECK-MVE-NEXT: cmp r1, #0
824 ; CHECK-MVE-NEXT: cset r1, ne
825 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
826 ; CHECK-MVE-NEXT: lsls r1, r1, #31
827 ; CHECK-MVE-NEXT: vcmp.f16 s2, #0
828 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
829 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
830 ; CHECK-MVE-NEXT: vmov r1, s16
831 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
832 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
833 ; CHECK-MVE-NEXT: mov.w r1, #0
834 ; CHECK-MVE-NEXT: it eq
835 ; CHECK-MVE-NEXT: moveq r1, #1
836 ; CHECK-MVE-NEXT: cmp r1, #0
837 ; CHECK-MVE-NEXT: cset r1, ne
838 ; CHECK-MVE-NEXT: lsls r1, r1, #31
839 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
840 ; CHECK-MVE-NEXT: vmov r1, s16
841 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
842 ; CHECK-MVE-NEXT: vcmp.f16 s16, #0
843 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
844 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
845 ; CHECK-MVE-NEXT: mov.w r1, #0
846 ; CHECK-MVE-NEXT: it eq
847 ; CHECK-MVE-NEXT: moveq r1, #1
848 ; CHECK-MVE-NEXT: cmp r1, #0
849 ; CHECK-MVE-NEXT: cset r1, ne
850 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
851 ; CHECK-MVE-NEXT: lsls r1, r1, #31
852 ; CHECK-MVE-NEXT: vcmp.f16 s3, #0
853 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
854 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
855 ; CHECK-MVE-NEXT: vmov r1, s16
856 ; CHECK-MVE-NEXT: vcmp.f16 s0, #0
857 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
858 ; CHECK-MVE-NEXT: mov.w r1, #0
859 ; CHECK-MVE-NEXT: it eq
860 ; CHECK-MVE-NEXT: moveq r1, #1
861 ; CHECK-MVE-NEXT: cmp r1, #0
862 ; CHECK-MVE-NEXT: cset r1, ne
863 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
864 ; CHECK-MVE-NEXT: lsls r1, r1, #31
865 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
866 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
867 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
868 ; CHECK-MVE-NEXT: it eq
869 ; CHECK-MVE-NEXT: moveq r0, #1
870 ; CHECK-MVE-NEXT: cmp r0, #0
871 ; CHECK-MVE-NEXT: cset r0, ne
872 ; CHECK-MVE-NEXT: vmov r1, s16
873 ; CHECK-MVE-NEXT: lsls r0, r0, #31
874 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
875 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
876 ; CHECK-MVE-NEXT: vmov r0, s0
877 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
878 ; CHECK-MVE-NEXT: vmov q0, q3
879 ; CHECK-MVE-NEXT: vpop {d8, d9}
880 ; CHECK-MVE-NEXT: bx lr
882 ; CHECK-MVEFP-LABEL: vcmp_oeq_v8f16:
883 ; CHECK-MVEFP: @ %bb.0: @ %entry
884 ; CHECK-MVEFP-NEXT: vcmp.f16 eq, q0, zr
885 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
886 ; CHECK-MVEFP-NEXT: bx lr
888 %c = fcmp oeq <8 x half> %src, zeroinitializer
889 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
893 define arm_aapcs_vfpcc <8 x half> @vcmp_one_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
894 ; CHECK-MVE-LABEL: vcmp_one_v8f16:
895 ; CHECK-MVE: @ %bb.0: @ %entry
896 ; CHECK-MVE-NEXT: .vsave {d8, d9}
897 ; CHECK-MVE-NEXT: vpush {d8, d9}
898 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
899 ; CHECK-MVE-NEXT: movs r1, #0
900 ; CHECK-MVE-NEXT: vcmp.f16 s12, #0
901 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
902 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
903 ; CHECK-MVE-NEXT: it mi
904 ; CHECK-MVE-NEXT: movmi r1, #1
905 ; CHECK-MVE-NEXT: it gt
906 ; CHECK-MVE-NEXT: movgt r1, #1
907 ; CHECK-MVE-NEXT: cmp r1, #0
908 ; CHECK-MVE-NEXT: cset r1, ne
909 ; CHECK-MVE-NEXT: vcmp.f16 s0, #0
910 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
911 ; CHECK-MVE-NEXT: lsls r1, r1, #31
912 ; CHECK-MVE-NEXT: mov.w r2, #0
913 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
914 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
915 ; CHECK-MVE-NEXT: it mi
916 ; CHECK-MVE-NEXT: movmi r2, #1
917 ; CHECK-MVE-NEXT: it gt
918 ; CHECK-MVE-NEXT: movgt r2, #1
919 ; CHECK-MVE-NEXT: cmp r2, #0
920 ; CHECK-MVE-NEXT: cset r2, ne
921 ; CHECK-MVE-NEXT: vmov r1, s12
922 ; CHECK-MVE-NEXT: lsls r2, r2, #31
923 ; CHECK-MVE-NEXT: vcmp.f16 s1, #0
924 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
925 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
926 ; CHECK-MVE-NEXT: vmov r2, s12
927 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
928 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
929 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
930 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
931 ; CHECK-MVE-NEXT: mov.w r1, #0
932 ; CHECK-MVE-NEXT: it mi
933 ; CHECK-MVE-NEXT: movmi r1, #1
934 ; CHECK-MVE-NEXT: mov.w r0, #0
935 ; CHECK-MVE-NEXT: it gt
936 ; CHECK-MVE-NEXT: movgt r1, #1
937 ; CHECK-MVE-NEXT: cmp r1, #0
938 ; CHECK-MVE-NEXT: cset r1, ne
939 ; CHECK-MVE-NEXT: lsls r1, r1, #31
940 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
941 ; CHECK-MVE-NEXT: vmov r1, s16
942 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
943 ; CHECK-MVE-NEXT: vcmp.f16 s16, #0
944 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
945 ; CHECK-MVE-NEXT: movs r1, #0
946 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
947 ; CHECK-MVE-NEXT: it mi
948 ; CHECK-MVE-NEXT: movmi r1, #1
949 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
950 ; CHECK-MVE-NEXT: it gt
951 ; CHECK-MVE-NEXT: movgt r1, #1
952 ; CHECK-MVE-NEXT: cmp r1, #0
953 ; CHECK-MVE-NEXT: cset r1, ne
954 ; CHECK-MVE-NEXT: vcmp.f16 s2, #0
955 ; CHECK-MVE-NEXT: lsls r1, r1, #31
956 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
957 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
958 ; CHECK-MVE-NEXT: vmov r1, s16
959 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
960 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
961 ; CHECK-MVE-NEXT: mov.w r1, #0
962 ; CHECK-MVE-NEXT: it mi
963 ; CHECK-MVE-NEXT: movmi r1, #1
964 ; CHECK-MVE-NEXT: it gt
965 ; CHECK-MVE-NEXT: movgt r1, #1
966 ; CHECK-MVE-NEXT: cmp r1, #0
967 ; CHECK-MVE-NEXT: cset r1, ne
968 ; CHECK-MVE-NEXT: lsls r1, r1, #31
969 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
970 ; CHECK-MVE-NEXT: vmov r1, s16
971 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
972 ; CHECK-MVE-NEXT: vcmp.f16 s16, #0
973 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
974 ; CHECK-MVE-NEXT: movs r1, #0
975 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
976 ; CHECK-MVE-NEXT: it mi
977 ; CHECK-MVE-NEXT: movmi r1, #1
978 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
979 ; CHECK-MVE-NEXT: it gt
980 ; CHECK-MVE-NEXT: movgt r1, #1
981 ; CHECK-MVE-NEXT: cmp r1, #0
982 ; CHECK-MVE-NEXT: cset r1, ne
983 ; CHECK-MVE-NEXT: vcmp.f16 s3, #0
984 ; CHECK-MVE-NEXT: lsls r1, r1, #31
985 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
986 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
987 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
988 ; CHECK-MVE-NEXT: vmov r1, s16
989 ; CHECK-MVE-NEXT: vcmp.f16 s0, #0
990 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
991 ; CHECK-MVE-NEXT: mov.w r1, #0
992 ; CHECK-MVE-NEXT: it mi
993 ; CHECK-MVE-NEXT: movmi r1, #1
994 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
995 ; CHECK-MVE-NEXT: it gt
996 ; CHECK-MVE-NEXT: movgt r1, #1
997 ; CHECK-MVE-NEXT: cmp r1, #0
998 ; CHECK-MVE-NEXT: cset r1, ne
999 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1000 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
1001 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1002 ; CHECK-MVE-NEXT: it mi
1003 ; CHECK-MVE-NEXT: movmi r0, #1
1004 ; CHECK-MVE-NEXT: vmov r1, s16
1005 ; CHECK-MVE-NEXT: it gt
1006 ; CHECK-MVE-NEXT: movgt r0, #1
1007 ; CHECK-MVE-NEXT: cmp r0, #0
1008 ; CHECK-MVE-NEXT: cset r0, ne
1009 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
1010 ; CHECK-MVE-NEXT: lsls r0, r0, #31
1011 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1012 ; CHECK-MVE-NEXT: vmov r0, s0
1013 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1014 ; CHECK-MVE-NEXT: vmov q0, q3
1015 ; CHECK-MVE-NEXT: vpop {d8, d9}
1016 ; CHECK-MVE-NEXT: bx lr
1018 ; CHECK-MVEFP-LABEL: vcmp_one_v8f16:
1019 ; CHECK-MVEFP: @ %bb.0: @ %entry
1020 ; CHECK-MVEFP-NEXT: vmov.i32 q3, #0x0
1021 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q3, q0
1022 ; CHECK-MVEFP-NEXT: vpst
1023 ; CHECK-MVEFP-NEXT: vcmpt.f16 le, q0, q3
1024 ; CHECK-MVEFP-NEXT: vpnot
1025 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1026 ; CHECK-MVEFP-NEXT: bx lr
1028 %c = fcmp one <8 x half> %src, zeroinitializer
1029 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1033 define arm_aapcs_vfpcc <8 x half> @vcmp_ogt_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
1034 ; CHECK-MVE-LABEL: vcmp_ogt_v8f16:
1035 ; CHECK-MVE: @ %bb.0: @ %entry
1036 ; CHECK-MVE-NEXT: .vsave {d8, d9}
1037 ; CHECK-MVE-NEXT: vpush {d8, d9}
1038 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
1039 ; CHECK-MVE-NEXT: movs r1, #0
1040 ; CHECK-MVE-NEXT: vcmpe.f16 s12, #0
1041 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
1042 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1043 ; CHECK-MVE-NEXT: it gt
1044 ; CHECK-MVE-NEXT: movgt r1, #1
1045 ; CHECK-MVE-NEXT: cmp r1, #0
1046 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1047 ; CHECK-MVE-NEXT: cset r1, ne
1048 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
1049 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1050 ; CHECK-MVE-NEXT: mov.w r2, #0
1051 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1052 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1053 ; CHECK-MVE-NEXT: it gt
1054 ; CHECK-MVE-NEXT: movgt r2, #1
1055 ; CHECK-MVE-NEXT: cmp r2, #0
1056 ; CHECK-MVE-NEXT: cset r2, ne
1057 ; CHECK-MVE-NEXT: vmov r1, s12
1058 ; CHECK-MVE-NEXT: lsls r2, r2, #31
1059 ; CHECK-MVE-NEXT: vcmpe.f16 s1, #0
1060 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
1061 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1062 ; CHECK-MVE-NEXT: vmov r2, s12
1063 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
1064 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
1065 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
1066 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
1067 ; CHECK-MVE-NEXT: mov.w r1, #0
1068 ; CHECK-MVE-NEXT: it gt
1069 ; CHECK-MVE-NEXT: movgt r1, #1
1070 ; CHECK-MVE-NEXT: cmp r1, #0
1071 ; CHECK-MVE-NEXT: cset r1, ne
1072 ; CHECK-MVE-NEXT: movs r0, #0
1073 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1074 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
1075 ; CHECK-MVE-NEXT: vmov r1, s16
1076 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
1077 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1078 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
1079 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1080 ; CHECK-MVE-NEXT: mov.w r1, #0
1081 ; CHECK-MVE-NEXT: it gt
1082 ; CHECK-MVE-NEXT: movgt r1, #1
1083 ; CHECK-MVE-NEXT: cmp r1, #0
1084 ; CHECK-MVE-NEXT: cset r1, ne
1085 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
1086 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1087 ; CHECK-MVE-NEXT: vcmpe.f16 s2, #0
1088 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1089 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1090 ; CHECK-MVE-NEXT: vmov r1, s16
1091 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
1092 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
1093 ; CHECK-MVE-NEXT: mov.w r1, #0
1094 ; CHECK-MVE-NEXT: it gt
1095 ; CHECK-MVE-NEXT: movgt r1, #1
1096 ; CHECK-MVE-NEXT: cmp r1, #0
1097 ; CHECK-MVE-NEXT: cset r1, ne
1098 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1099 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
1100 ; CHECK-MVE-NEXT: vmov r1, s16
1101 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
1102 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1103 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
1104 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1105 ; CHECK-MVE-NEXT: mov.w r1, #0
1106 ; CHECK-MVE-NEXT: it gt
1107 ; CHECK-MVE-NEXT: movgt r1, #1
1108 ; CHECK-MVE-NEXT: cmp r1, #0
1109 ; CHECK-MVE-NEXT: cset r1, ne
1110 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
1111 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1112 ; CHECK-MVE-NEXT: vcmpe.f16 s3, #0
1113 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1114 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1115 ; CHECK-MVE-NEXT: vmov r1, s16
1116 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1117 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
1118 ; CHECK-MVE-NEXT: mov.w r1, #0
1119 ; CHECK-MVE-NEXT: it gt
1120 ; CHECK-MVE-NEXT: movgt r1, #1
1121 ; CHECK-MVE-NEXT: cmp r1, #0
1122 ; CHECK-MVE-NEXT: cset r1, ne
1123 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
1124 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1125 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
1126 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
1127 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1128 ; CHECK-MVE-NEXT: it gt
1129 ; CHECK-MVE-NEXT: movgt r0, #1
1130 ; CHECK-MVE-NEXT: cmp r0, #0
1131 ; CHECK-MVE-NEXT: cset r0, ne
1132 ; CHECK-MVE-NEXT: vmov r1, s16
1133 ; CHECK-MVE-NEXT: lsls r0, r0, #31
1134 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
1135 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1136 ; CHECK-MVE-NEXT: vmov r0, s0
1137 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1138 ; CHECK-MVE-NEXT: vmov q0, q3
1139 ; CHECK-MVE-NEXT: vpop {d8, d9}
1140 ; CHECK-MVE-NEXT: bx lr
1142 ; CHECK-MVEFP-LABEL: vcmp_ogt_v8f16:
1143 ; CHECK-MVEFP: @ %bb.0: @ %entry
1144 ; CHECK-MVEFP-NEXT: vcmp.f16 gt, q0, zr
1145 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1146 ; CHECK-MVEFP-NEXT: bx lr
1148 %c = fcmp ogt <8 x half> %src, zeroinitializer
1149 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1153 define arm_aapcs_vfpcc <8 x half> @vcmp_oge_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
1154 ; CHECK-MVE-LABEL: vcmp_oge_v8f16:
1155 ; CHECK-MVE: @ %bb.0: @ %entry
1156 ; CHECK-MVE-NEXT: .vsave {d8, d9}
1157 ; CHECK-MVE-NEXT: vpush {d8, d9}
1158 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
1159 ; CHECK-MVE-NEXT: movs r1, #0
1160 ; CHECK-MVE-NEXT: vcmpe.f16 s12, #0
1161 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
1162 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1163 ; CHECK-MVE-NEXT: it ge
1164 ; CHECK-MVE-NEXT: movge r1, #1
1165 ; CHECK-MVE-NEXT: cmp r1, #0
1166 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1167 ; CHECK-MVE-NEXT: cset r1, ne
1168 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
1169 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1170 ; CHECK-MVE-NEXT: mov.w r2, #0
1171 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1172 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1173 ; CHECK-MVE-NEXT: it ge
1174 ; CHECK-MVE-NEXT: movge r2, #1
1175 ; CHECK-MVE-NEXT: cmp r2, #0
1176 ; CHECK-MVE-NEXT: cset r2, ne
1177 ; CHECK-MVE-NEXT: vmov r1, s12
1178 ; CHECK-MVE-NEXT: lsls r2, r2, #31
1179 ; CHECK-MVE-NEXT: vcmpe.f16 s1, #0
1180 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
1181 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1182 ; CHECK-MVE-NEXT: vmov r2, s12
1183 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
1184 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
1185 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
1186 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
1187 ; CHECK-MVE-NEXT: mov.w r1, #0
1188 ; CHECK-MVE-NEXT: it ge
1189 ; CHECK-MVE-NEXT: movge r1, #1
1190 ; CHECK-MVE-NEXT: cmp r1, #0
1191 ; CHECK-MVE-NEXT: cset r1, ne
1192 ; CHECK-MVE-NEXT: movs r0, #0
1193 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1194 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
1195 ; CHECK-MVE-NEXT: vmov r1, s16
1196 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
1197 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1198 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
1199 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1200 ; CHECK-MVE-NEXT: mov.w r1, #0
1201 ; CHECK-MVE-NEXT: it ge
1202 ; CHECK-MVE-NEXT: movge r1, #1
1203 ; CHECK-MVE-NEXT: cmp r1, #0
1204 ; CHECK-MVE-NEXT: cset r1, ne
1205 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
1206 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1207 ; CHECK-MVE-NEXT: vcmpe.f16 s2, #0
1208 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1209 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1210 ; CHECK-MVE-NEXT: vmov r1, s16
1211 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
1212 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
1213 ; CHECK-MVE-NEXT: mov.w r1, #0
1214 ; CHECK-MVE-NEXT: it ge
1215 ; CHECK-MVE-NEXT: movge r1, #1
1216 ; CHECK-MVE-NEXT: cmp r1, #0
1217 ; CHECK-MVE-NEXT: cset r1, ne
1218 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1219 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
1220 ; CHECK-MVE-NEXT: vmov r1, s16
1221 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
1222 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1223 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
1224 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1225 ; CHECK-MVE-NEXT: mov.w r1, #0
1226 ; CHECK-MVE-NEXT: it ge
1227 ; CHECK-MVE-NEXT: movge r1, #1
1228 ; CHECK-MVE-NEXT: cmp r1, #0
1229 ; CHECK-MVE-NEXT: cset r1, ne
1230 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
1231 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1232 ; CHECK-MVE-NEXT: vcmpe.f16 s3, #0
1233 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1234 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1235 ; CHECK-MVE-NEXT: vmov r1, s16
1236 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1237 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
1238 ; CHECK-MVE-NEXT: mov.w r1, #0
1239 ; CHECK-MVE-NEXT: it ge
1240 ; CHECK-MVE-NEXT: movge r1, #1
1241 ; CHECK-MVE-NEXT: cmp r1, #0
1242 ; CHECK-MVE-NEXT: cset r1, ne
1243 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
1244 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1245 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
1246 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
1247 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1248 ; CHECK-MVE-NEXT: it ge
1249 ; CHECK-MVE-NEXT: movge r0, #1
1250 ; CHECK-MVE-NEXT: cmp r0, #0
1251 ; CHECK-MVE-NEXT: cset r0, ne
1252 ; CHECK-MVE-NEXT: vmov r1, s16
1253 ; CHECK-MVE-NEXT: lsls r0, r0, #31
1254 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
1255 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1256 ; CHECK-MVE-NEXT: vmov r0, s0
1257 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1258 ; CHECK-MVE-NEXT: vmov q0, q3
1259 ; CHECK-MVE-NEXT: vpop {d8, d9}
1260 ; CHECK-MVE-NEXT: bx lr
1262 ; CHECK-MVEFP-LABEL: vcmp_oge_v8f16:
1263 ; CHECK-MVEFP: @ %bb.0: @ %entry
1264 ; CHECK-MVEFP-NEXT: vcmp.f16 ge, q0, zr
1265 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1266 ; CHECK-MVEFP-NEXT: bx lr
1268 %c = fcmp oge <8 x half> %src, zeroinitializer
1269 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1273 define arm_aapcs_vfpcc <8 x half> @vcmp_olt_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
1274 ; CHECK-MVE-LABEL: vcmp_olt_v8f16:
1275 ; CHECK-MVE: @ %bb.0: @ %entry
1276 ; CHECK-MVE-NEXT: .vsave {d8, d9}
1277 ; CHECK-MVE-NEXT: vpush {d8, d9}
1278 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
1279 ; CHECK-MVE-NEXT: movs r1, #0
1280 ; CHECK-MVE-NEXT: vcmpe.f16 s12, #0
1281 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
1282 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1283 ; CHECK-MVE-NEXT: it mi
1284 ; CHECK-MVE-NEXT: movmi r1, #1
1285 ; CHECK-MVE-NEXT: cmp r1, #0
1286 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1287 ; CHECK-MVE-NEXT: cset r1, ne
1288 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
1289 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1290 ; CHECK-MVE-NEXT: mov.w r2, #0
1291 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1292 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1293 ; CHECK-MVE-NEXT: it mi
1294 ; CHECK-MVE-NEXT: movmi r2, #1
1295 ; CHECK-MVE-NEXT: cmp r2, #0
1296 ; CHECK-MVE-NEXT: cset r2, ne
1297 ; CHECK-MVE-NEXT: vmov r1, s12
1298 ; CHECK-MVE-NEXT: lsls r2, r2, #31
1299 ; CHECK-MVE-NEXT: vcmpe.f16 s1, #0
1300 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
1301 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1302 ; CHECK-MVE-NEXT: vmov r2, s12
1303 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
1304 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
1305 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
1306 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
1307 ; CHECK-MVE-NEXT: mov.w r1, #0
1308 ; CHECK-MVE-NEXT: it mi
1309 ; CHECK-MVE-NEXT: movmi r1, #1
1310 ; CHECK-MVE-NEXT: cmp r1, #0
1311 ; CHECK-MVE-NEXT: cset r1, ne
1312 ; CHECK-MVE-NEXT: movs r0, #0
1313 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1314 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
1315 ; CHECK-MVE-NEXT: vmov r1, s16
1316 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
1317 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1318 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
1319 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1320 ; CHECK-MVE-NEXT: mov.w r1, #0
1321 ; CHECK-MVE-NEXT: it mi
1322 ; CHECK-MVE-NEXT: movmi r1, #1
1323 ; CHECK-MVE-NEXT: cmp r1, #0
1324 ; CHECK-MVE-NEXT: cset r1, ne
1325 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
1326 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1327 ; CHECK-MVE-NEXT: vcmpe.f16 s2, #0
1328 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1329 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1330 ; CHECK-MVE-NEXT: vmov r1, s16
1331 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
1332 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
1333 ; CHECK-MVE-NEXT: mov.w r1, #0
1334 ; CHECK-MVE-NEXT: it mi
1335 ; CHECK-MVE-NEXT: movmi r1, #1
1336 ; CHECK-MVE-NEXT: cmp r1, #0
1337 ; CHECK-MVE-NEXT: cset r1, ne
1338 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1339 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
1340 ; CHECK-MVE-NEXT: vmov r1, s16
1341 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
1342 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1343 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
1344 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1345 ; CHECK-MVE-NEXT: mov.w r1, #0
1346 ; CHECK-MVE-NEXT: it mi
1347 ; CHECK-MVE-NEXT: movmi r1, #1
1348 ; CHECK-MVE-NEXT: cmp r1, #0
1349 ; CHECK-MVE-NEXT: cset r1, ne
1350 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
1351 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1352 ; CHECK-MVE-NEXT: vcmpe.f16 s3, #0
1353 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1354 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1355 ; CHECK-MVE-NEXT: vmov r1, s16
1356 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1357 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
1358 ; CHECK-MVE-NEXT: mov.w r1, #0
1359 ; CHECK-MVE-NEXT: it mi
1360 ; CHECK-MVE-NEXT: movmi r1, #1
1361 ; CHECK-MVE-NEXT: cmp r1, #0
1362 ; CHECK-MVE-NEXT: cset r1, ne
1363 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
1364 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1365 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
1366 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
1367 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1368 ; CHECK-MVE-NEXT: it mi
1369 ; CHECK-MVE-NEXT: movmi r0, #1
1370 ; CHECK-MVE-NEXT: cmp r0, #0
1371 ; CHECK-MVE-NEXT: cset r0, ne
1372 ; CHECK-MVE-NEXT: vmov r1, s16
1373 ; CHECK-MVE-NEXT: lsls r0, r0, #31
1374 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
1375 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1376 ; CHECK-MVE-NEXT: vmov r0, s0
1377 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1378 ; CHECK-MVE-NEXT: vmov q0, q3
1379 ; CHECK-MVE-NEXT: vpop {d8, d9}
1380 ; CHECK-MVE-NEXT: bx lr
1382 ; CHECK-MVEFP-LABEL: vcmp_olt_v8f16:
1383 ; CHECK-MVEFP: @ %bb.0: @ %entry
1384 ; CHECK-MVEFP-NEXT: vcmp.f16 lt, q0, zr
1385 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1386 ; CHECK-MVEFP-NEXT: bx lr
1388 %c = fcmp olt <8 x half> %src, zeroinitializer
1389 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1393 define arm_aapcs_vfpcc <8 x half> @vcmp_ole_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
1394 ; CHECK-MVE-LABEL: vcmp_ole_v8f16:
1395 ; CHECK-MVE: @ %bb.0: @ %entry
1396 ; CHECK-MVE-NEXT: .vsave {d8, d9}
1397 ; CHECK-MVE-NEXT: vpush {d8, d9}
1398 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
1399 ; CHECK-MVE-NEXT: movs r1, #0
1400 ; CHECK-MVE-NEXT: vcmpe.f16 s12, #0
1401 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
1402 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1403 ; CHECK-MVE-NEXT: it ls
1404 ; CHECK-MVE-NEXT: movls r1, #1
1405 ; CHECK-MVE-NEXT: cmp r1, #0
1406 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1407 ; CHECK-MVE-NEXT: cset r1, ne
1408 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
1409 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1410 ; CHECK-MVE-NEXT: mov.w r2, #0
1411 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1412 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1413 ; CHECK-MVE-NEXT: it ls
1414 ; CHECK-MVE-NEXT: movls r2, #1
1415 ; CHECK-MVE-NEXT: cmp r2, #0
1416 ; CHECK-MVE-NEXT: cset r2, ne
1417 ; CHECK-MVE-NEXT: vmov r1, s12
1418 ; CHECK-MVE-NEXT: lsls r2, r2, #31
1419 ; CHECK-MVE-NEXT: vcmpe.f16 s1, #0
1420 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
1421 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1422 ; CHECK-MVE-NEXT: vmov r2, s12
1423 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
1424 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
1425 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
1426 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
1427 ; CHECK-MVE-NEXT: mov.w r1, #0
1428 ; CHECK-MVE-NEXT: it ls
1429 ; CHECK-MVE-NEXT: movls r1, #1
1430 ; CHECK-MVE-NEXT: cmp r1, #0
1431 ; CHECK-MVE-NEXT: cset r1, ne
1432 ; CHECK-MVE-NEXT: movs r0, #0
1433 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1434 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
1435 ; CHECK-MVE-NEXT: vmov r1, s16
1436 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
1437 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1438 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
1439 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1440 ; CHECK-MVE-NEXT: mov.w r1, #0
1441 ; CHECK-MVE-NEXT: it ls
1442 ; CHECK-MVE-NEXT: movls r1, #1
1443 ; CHECK-MVE-NEXT: cmp r1, #0
1444 ; CHECK-MVE-NEXT: cset r1, ne
1445 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
1446 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1447 ; CHECK-MVE-NEXT: vcmpe.f16 s2, #0
1448 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1449 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1450 ; CHECK-MVE-NEXT: vmov r1, s16
1451 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
1452 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
1453 ; CHECK-MVE-NEXT: mov.w r1, #0
1454 ; CHECK-MVE-NEXT: it ls
1455 ; CHECK-MVE-NEXT: movls r1, #1
1456 ; CHECK-MVE-NEXT: cmp r1, #0
1457 ; CHECK-MVE-NEXT: cset r1, ne
1458 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1459 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
1460 ; CHECK-MVE-NEXT: vmov r1, s16
1461 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
1462 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1463 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
1464 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1465 ; CHECK-MVE-NEXT: mov.w r1, #0
1466 ; CHECK-MVE-NEXT: it ls
1467 ; CHECK-MVE-NEXT: movls r1, #1
1468 ; CHECK-MVE-NEXT: cmp r1, #0
1469 ; CHECK-MVE-NEXT: cset r1, ne
1470 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
1471 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1472 ; CHECK-MVE-NEXT: vcmpe.f16 s3, #0
1473 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1474 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1475 ; CHECK-MVE-NEXT: vmov r1, s16
1476 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1477 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
1478 ; CHECK-MVE-NEXT: mov.w r1, #0
1479 ; CHECK-MVE-NEXT: it ls
1480 ; CHECK-MVE-NEXT: movls r1, #1
1481 ; CHECK-MVE-NEXT: cmp r1, #0
1482 ; CHECK-MVE-NEXT: cset r1, ne
1483 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
1484 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1485 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
1486 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
1487 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1488 ; CHECK-MVE-NEXT: it ls
1489 ; CHECK-MVE-NEXT: movls r0, #1
1490 ; CHECK-MVE-NEXT: cmp r0, #0
1491 ; CHECK-MVE-NEXT: cset r0, ne
1492 ; CHECK-MVE-NEXT: vmov r1, s16
1493 ; CHECK-MVE-NEXT: lsls r0, r0, #31
1494 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
1495 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1496 ; CHECK-MVE-NEXT: vmov r0, s0
1497 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1498 ; CHECK-MVE-NEXT: vmov q0, q3
1499 ; CHECK-MVE-NEXT: vpop {d8, d9}
1500 ; CHECK-MVE-NEXT: bx lr
1502 ; CHECK-MVEFP-LABEL: vcmp_ole_v8f16:
1503 ; CHECK-MVEFP: @ %bb.0: @ %entry
1504 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q0, zr
1505 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1506 ; CHECK-MVEFP-NEXT: bx lr
1508 %c = fcmp ole <8 x half> %src, zeroinitializer
1509 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1513 define arm_aapcs_vfpcc <8 x half> @vcmp_ueq_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
1514 ; CHECK-MVE-LABEL: vcmp_ueq_v8f16:
1515 ; CHECK-MVE: @ %bb.0: @ %entry
1516 ; CHECK-MVE-NEXT: .vsave {d8, d9}
1517 ; CHECK-MVE-NEXT: vpush {d8, d9}
1518 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
1519 ; CHECK-MVE-NEXT: movs r1, #0
1520 ; CHECK-MVE-NEXT: vcmp.f16 s12, #0
1521 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
1522 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1523 ; CHECK-MVE-NEXT: it eq
1524 ; CHECK-MVE-NEXT: moveq r1, #1
1525 ; CHECK-MVE-NEXT: it vs
1526 ; CHECK-MVE-NEXT: movvs r1, #1
1527 ; CHECK-MVE-NEXT: cmp r1, #0
1528 ; CHECK-MVE-NEXT: cset r1, ne
1529 ; CHECK-MVE-NEXT: vcmp.f16 s0, #0
1530 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
1531 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1532 ; CHECK-MVE-NEXT: mov.w r2, #0
1533 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1534 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1535 ; CHECK-MVE-NEXT: it eq
1536 ; CHECK-MVE-NEXT: moveq r2, #1
1537 ; CHECK-MVE-NEXT: it vs
1538 ; CHECK-MVE-NEXT: movvs r2, #1
1539 ; CHECK-MVE-NEXT: cmp r2, #0
1540 ; CHECK-MVE-NEXT: cset r2, ne
1541 ; CHECK-MVE-NEXT: vmov r1, s12
1542 ; CHECK-MVE-NEXT: lsls r2, r2, #31
1543 ; CHECK-MVE-NEXT: vcmp.f16 s1, #0
1544 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
1545 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1546 ; CHECK-MVE-NEXT: vmov r2, s12
1547 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
1548 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
1549 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
1550 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
1551 ; CHECK-MVE-NEXT: mov.w r1, #0
1552 ; CHECK-MVE-NEXT: it eq
1553 ; CHECK-MVE-NEXT: moveq r1, #1
1554 ; CHECK-MVE-NEXT: mov.w r0, #0
1555 ; CHECK-MVE-NEXT: it vs
1556 ; CHECK-MVE-NEXT: movvs r1, #1
1557 ; CHECK-MVE-NEXT: cmp r1, #0
1558 ; CHECK-MVE-NEXT: cset r1, ne
1559 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1560 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
1561 ; CHECK-MVE-NEXT: vmov r1, s16
1562 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
1563 ; CHECK-MVE-NEXT: vcmp.f16 s16, #0
1564 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
1565 ; CHECK-MVE-NEXT: movs r1, #0
1566 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1567 ; CHECK-MVE-NEXT: it eq
1568 ; CHECK-MVE-NEXT: moveq r1, #1
1569 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
1570 ; CHECK-MVE-NEXT: it vs
1571 ; CHECK-MVE-NEXT: movvs r1, #1
1572 ; CHECK-MVE-NEXT: cmp r1, #0
1573 ; CHECK-MVE-NEXT: cset r1, ne
1574 ; CHECK-MVE-NEXT: vcmp.f16 s2, #0
1575 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1576 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1577 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1578 ; CHECK-MVE-NEXT: vmov r1, s16
1579 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
1580 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
1581 ; CHECK-MVE-NEXT: mov.w r1, #0
1582 ; CHECK-MVE-NEXT: it eq
1583 ; CHECK-MVE-NEXT: moveq r1, #1
1584 ; CHECK-MVE-NEXT: it vs
1585 ; CHECK-MVE-NEXT: movvs r1, #1
1586 ; CHECK-MVE-NEXT: cmp r1, #0
1587 ; CHECK-MVE-NEXT: cset r1, ne
1588 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1589 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
1590 ; CHECK-MVE-NEXT: vmov r1, s16
1591 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
1592 ; CHECK-MVE-NEXT: vcmp.f16 s16, #0
1593 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
1594 ; CHECK-MVE-NEXT: movs r1, #0
1595 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1596 ; CHECK-MVE-NEXT: it eq
1597 ; CHECK-MVE-NEXT: moveq r1, #1
1598 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
1599 ; CHECK-MVE-NEXT: it vs
1600 ; CHECK-MVE-NEXT: movvs r1, #1
1601 ; CHECK-MVE-NEXT: cmp r1, #0
1602 ; CHECK-MVE-NEXT: cset r1, ne
1603 ; CHECK-MVE-NEXT: vcmp.f16 s3, #0
1604 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1605 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
1606 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1607 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1608 ; CHECK-MVE-NEXT: vmov r1, s16
1609 ; CHECK-MVE-NEXT: vcmp.f16 s0, #0
1610 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
1611 ; CHECK-MVE-NEXT: mov.w r1, #0
1612 ; CHECK-MVE-NEXT: it eq
1613 ; CHECK-MVE-NEXT: moveq r1, #1
1614 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
1615 ; CHECK-MVE-NEXT: it vs
1616 ; CHECK-MVE-NEXT: movvs r1, #1
1617 ; CHECK-MVE-NEXT: cmp r1, #0
1618 ; CHECK-MVE-NEXT: cset r1, ne
1619 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1620 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
1621 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1622 ; CHECK-MVE-NEXT: it eq
1623 ; CHECK-MVE-NEXT: moveq r0, #1
1624 ; CHECK-MVE-NEXT: vmov r1, s16
1625 ; CHECK-MVE-NEXT: it vs
1626 ; CHECK-MVE-NEXT: movvs r0, #1
1627 ; CHECK-MVE-NEXT: cmp r0, #0
1628 ; CHECK-MVE-NEXT: cset r0, ne
1629 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
1630 ; CHECK-MVE-NEXT: lsls r0, r0, #31
1631 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1632 ; CHECK-MVE-NEXT: vmov r0, s0
1633 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1634 ; CHECK-MVE-NEXT: vmov q0, q3
1635 ; CHECK-MVE-NEXT: vpop {d8, d9}
1636 ; CHECK-MVE-NEXT: bx lr
1638 ; CHECK-MVEFP-LABEL: vcmp_ueq_v8f16:
1639 ; CHECK-MVEFP: @ %bb.0: @ %entry
1640 ; CHECK-MVEFP-NEXT: vmov.i32 q3, #0x0
1641 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q3, q0
1642 ; CHECK-MVEFP-NEXT: vpst
1643 ; CHECK-MVEFP-NEXT: vcmpt.f16 le, q0, q3
1644 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1645 ; CHECK-MVEFP-NEXT: bx lr
1647 %c = fcmp ueq <8 x half> %src, zeroinitializer
1648 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1652 define arm_aapcs_vfpcc <8 x half> @vcmp_une_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
1653 ; CHECK-MVE-LABEL: vcmp_une_v8f16:
1654 ; CHECK-MVE: @ %bb.0: @ %entry
1655 ; CHECK-MVE-NEXT: .vsave {d8, d9}
1656 ; CHECK-MVE-NEXT: vpush {d8, d9}
1657 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
1658 ; CHECK-MVE-NEXT: movs r1, #0
1659 ; CHECK-MVE-NEXT: vcmp.f16 s12, #0
1660 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
1661 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1662 ; CHECK-MVE-NEXT: it ne
1663 ; CHECK-MVE-NEXT: movne r1, #1
1664 ; CHECK-MVE-NEXT: cmp r1, #0
1665 ; CHECK-MVE-NEXT: vcmp.f16 s0, #0
1666 ; CHECK-MVE-NEXT: cset r1, ne
1667 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
1668 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1669 ; CHECK-MVE-NEXT: mov.w r2, #0
1670 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1671 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1672 ; CHECK-MVE-NEXT: it ne
1673 ; CHECK-MVE-NEXT: movne r2, #1
1674 ; CHECK-MVE-NEXT: cmp r2, #0
1675 ; CHECK-MVE-NEXT: cset r2, ne
1676 ; CHECK-MVE-NEXT: vmov r1, s12
1677 ; CHECK-MVE-NEXT: lsls r2, r2, #31
1678 ; CHECK-MVE-NEXT: vcmp.f16 s1, #0
1679 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
1680 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1681 ; CHECK-MVE-NEXT: vmov r2, s12
1682 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
1683 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
1684 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
1685 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
1686 ; CHECK-MVE-NEXT: mov.w r1, #0
1687 ; CHECK-MVE-NEXT: it ne
1688 ; CHECK-MVE-NEXT: movne r1, #1
1689 ; CHECK-MVE-NEXT: cmp r1, #0
1690 ; CHECK-MVE-NEXT: cset r1, ne
1691 ; CHECK-MVE-NEXT: movs r0, #0
1692 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1693 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
1694 ; CHECK-MVE-NEXT: vmov r1, s16
1695 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
1696 ; CHECK-MVE-NEXT: vcmp.f16 s16, #0
1697 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
1698 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1699 ; CHECK-MVE-NEXT: mov.w r1, #0
1700 ; CHECK-MVE-NEXT: it ne
1701 ; CHECK-MVE-NEXT: movne r1, #1
1702 ; CHECK-MVE-NEXT: cmp r1, #0
1703 ; CHECK-MVE-NEXT: cset r1, ne
1704 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
1705 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1706 ; CHECK-MVE-NEXT: vcmp.f16 s2, #0
1707 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1708 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1709 ; CHECK-MVE-NEXT: vmov r1, s16
1710 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
1711 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
1712 ; CHECK-MVE-NEXT: mov.w r1, #0
1713 ; CHECK-MVE-NEXT: it ne
1714 ; CHECK-MVE-NEXT: movne r1, #1
1715 ; CHECK-MVE-NEXT: cmp r1, #0
1716 ; CHECK-MVE-NEXT: cset r1, ne
1717 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1718 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
1719 ; CHECK-MVE-NEXT: vmov r1, s16
1720 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
1721 ; CHECK-MVE-NEXT: vcmp.f16 s16, #0
1722 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
1723 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1724 ; CHECK-MVE-NEXT: mov.w r1, #0
1725 ; CHECK-MVE-NEXT: it ne
1726 ; CHECK-MVE-NEXT: movne r1, #1
1727 ; CHECK-MVE-NEXT: cmp r1, #0
1728 ; CHECK-MVE-NEXT: cset r1, ne
1729 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
1730 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1731 ; CHECK-MVE-NEXT: vcmp.f16 s3, #0
1732 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1733 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1734 ; CHECK-MVE-NEXT: vmov r1, s16
1735 ; CHECK-MVE-NEXT: vcmp.f16 s0, #0
1736 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
1737 ; CHECK-MVE-NEXT: mov.w r1, #0
1738 ; CHECK-MVE-NEXT: it ne
1739 ; CHECK-MVE-NEXT: movne r1, #1
1740 ; CHECK-MVE-NEXT: cmp r1, #0
1741 ; CHECK-MVE-NEXT: cset r1, ne
1742 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
1743 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1744 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
1745 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
1746 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1747 ; CHECK-MVE-NEXT: it ne
1748 ; CHECK-MVE-NEXT: movne r0, #1
1749 ; CHECK-MVE-NEXT: cmp r0, #0
1750 ; CHECK-MVE-NEXT: cset r0, ne
1751 ; CHECK-MVE-NEXT: vmov r1, s16
1752 ; CHECK-MVE-NEXT: lsls r0, r0, #31
1753 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
1754 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1755 ; CHECK-MVE-NEXT: vmov r0, s0
1756 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1757 ; CHECK-MVE-NEXT: vmov q0, q3
1758 ; CHECK-MVE-NEXT: vpop {d8, d9}
1759 ; CHECK-MVE-NEXT: bx lr
1761 ; CHECK-MVEFP-LABEL: vcmp_une_v8f16:
1762 ; CHECK-MVEFP: @ %bb.0: @ %entry
1763 ; CHECK-MVEFP-NEXT: vcmp.f16 ne, q0, zr
1764 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1765 ; CHECK-MVEFP-NEXT: bx lr
1767 %c = fcmp une <8 x half> %src, zeroinitializer
1768 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1772 define arm_aapcs_vfpcc <8 x half> @vcmp_ugt_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
1773 ; CHECK-MVE-LABEL: vcmp_ugt_v8f16:
1774 ; CHECK-MVE: @ %bb.0: @ %entry
1775 ; CHECK-MVE-NEXT: .vsave {d8, d9}
1776 ; CHECK-MVE-NEXT: vpush {d8, d9}
1777 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
1778 ; CHECK-MVE-NEXT: movs r1, #0
1779 ; CHECK-MVE-NEXT: vcmpe.f16 s12, #0
1780 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
1781 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1782 ; CHECK-MVE-NEXT: it hi
1783 ; CHECK-MVE-NEXT: movhi r1, #1
1784 ; CHECK-MVE-NEXT: cmp r1, #0
1785 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1786 ; CHECK-MVE-NEXT: cset r1, ne
1787 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
1788 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1789 ; CHECK-MVE-NEXT: mov.w r2, #0
1790 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1791 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1792 ; CHECK-MVE-NEXT: it hi
1793 ; CHECK-MVE-NEXT: movhi r2, #1
1794 ; CHECK-MVE-NEXT: cmp r2, #0
1795 ; CHECK-MVE-NEXT: cset r2, ne
1796 ; CHECK-MVE-NEXT: vmov r1, s12
1797 ; CHECK-MVE-NEXT: lsls r2, r2, #31
1798 ; CHECK-MVE-NEXT: vcmpe.f16 s1, #0
1799 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
1800 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1801 ; CHECK-MVE-NEXT: vmov r2, s12
1802 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
1803 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
1804 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
1805 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
1806 ; CHECK-MVE-NEXT: mov.w r1, #0
1807 ; CHECK-MVE-NEXT: it hi
1808 ; CHECK-MVE-NEXT: movhi r1, #1
1809 ; CHECK-MVE-NEXT: cmp r1, #0
1810 ; CHECK-MVE-NEXT: cset r1, ne
1811 ; CHECK-MVE-NEXT: movs r0, #0
1812 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1813 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
1814 ; CHECK-MVE-NEXT: vmov r1, s16
1815 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
1816 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1817 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
1818 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1819 ; CHECK-MVE-NEXT: mov.w r1, #0
1820 ; CHECK-MVE-NEXT: it hi
1821 ; CHECK-MVE-NEXT: movhi r1, #1
1822 ; CHECK-MVE-NEXT: cmp r1, #0
1823 ; CHECK-MVE-NEXT: cset r1, ne
1824 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
1825 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1826 ; CHECK-MVE-NEXT: vcmpe.f16 s2, #0
1827 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1828 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1829 ; CHECK-MVE-NEXT: vmov r1, s16
1830 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
1831 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
1832 ; CHECK-MVE-NEXT: mov.w r1, #0
1833 ; CHECK-MVE-NEXT: it hi
1834 ; CHECK-MVE-NEXT: movhi r1, #1
1835 ; CHECK-MVE-NEXT: cmp r1, #0
1836 ; CHECK-MVE-NEXT: cset r1, ne
1837 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1838 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
1839 ; CHECK-MVE-NEXT: vmov r1, s16
1840 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
1841 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1842 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
1843 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1844 ; CHECK-MVE-NEXT: mov.w r1, #0
1845 ; CHECK-MVE-NEXT: it hi
1846 ; CHECK-MVE-NEXT: movhi r1, #1
1847 ; CHECK-MVE-NEXT: cmp r1, #0
1848 ; CHECK-MVE-NEXT: cset r1, ne
1849 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
1850 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1851 ; CHECK-MVE-NEXT: vcmpe.f16 s3, #0
1852 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1853 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1854 ; CHECK-MVE-NEXT: vmov r1, s16
1855 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1856 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
1857 ; CHECK-MVE-NEXT: mov.w r1, #0
1858 ; CHECK-MVE-NEXT: it hi
1859 ; CHECK-MVE-NEXT: movhi r1, #1
1860 ; CHECK-MVE-NEXT: cmp r1, #0
1861 ; CHECK-MVE-NEXT: cset r1, ne
1862 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
1863 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1864 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
1865 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
1866 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1867 ; CHECK-MVE-NEXT: it hi
1868 ; CHECK-MVE-NEXT: movhi r0, #1
1869 ; CHECK-MVE-NEXT: cmp r0, #0
1870 ; CHECK-MVE-NEXT: cset r0, ne
1871 ; CHECK-MVE-NEXT: vmov r1, s16
1872 ; CHECK-MVE-NEXT: lsls r0, r0, #31
1873 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
1874 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1875 ; CHECK-MVE-NEXT: vmov r0, s0
1876 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1877 ; CHECK-MVE-NEXT: vmov q0, q3
1878 ; CHECK-MVE-NEXT: vpop {d8, d9}
1879 ; CHECK-MVE-NEXT: bx lr
1881 ; CHECK-MVEFP-LABEL: vcmp_ugt_v8f16:
1882 ; CHECK-MVEFP: @ %bb.0: @ %entry
1883 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q0, zr
1884 ; CHECK-MVEFP-NEXT: vpnot
1885 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1886 ; CHECK-MVEFP-NEXT: bx lr
1888 %c = fcmp ugt <8 x half> %src, zeroinitializer
1889 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1893 define arm_aapcs_vfpcc <8 x half> @vcmp_uge_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
1894 ; CHECK-MVE-LABEL: vcmp_uge_v8f16:
1895 ; CHECK-MVE: @ %bb.0: @ %entry
1896 ; CHECK-MVE-NEXT: .vsave {d8, d9}
1897 ; CHECK-MVE-NEXT: vpush {d8, d9}
1898 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
1899 ; CHECK-MVE-NEXT: movs r1, #0
1900 ; CHECK-MVE-NEXT: vcmpe.f16 s12, #0
1901 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
1902 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1903 ; CHECK-MVE-NEXT: it pl
1904 ; CHECK-MVE-NEXT: movpl r1, #1
1905 ; CHECK-MVE-NEXT: cmp r1, #0
1906 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1907 ; CHECK-MVE-NEXT: cset r1, ne
1908 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
1909 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1910 ; CHECK-MVE-NEXT: mov.w r2, #0
1911 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1912 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1913 ; CHECK-MVE-NEXT: it pl
1914 ; CHECK-MVE-NEXT: movpl r2, #1
1915 ; CHECK-MVE-NEXT: cmp r2, #0
1916 ; CHECK-MVE-NEXT: cset r2, ne
1917 ; CHECK-MVE-NEXT: vmov r1, s12
1918 ; CHECK-MVE-NEXT: lsls r2, r2, #31
1919 ; CHECK-MVE-NEXT: vcmpe.f16 s1, #0
1920 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
1921 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1922 ; CHECK-MVE-NEXT: vmov r2, s12
1923 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
1924 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
1925 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
1926 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
1927 ; CHECK-MVE-NEXT: mov.w r1, #0
1928 ; CHECK-MVE-NEXT: it pl
1929 ; CHECK-MVE-NEXT: movpl r1, #1
1930 ; CHECK-MVE-NEXT: cmp r1, #0
1931 ; CHECK-MVE-NEXT: cset r1, ne
1932 ; CHECK-MVE-NEXT: movs r0, #0
1933 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1934 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
1935 ; CHECK-MVE-NEXT: vmov r1, s16
1936 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
1937 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1938 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
1939 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1940 ; CHECK-MVE-NEXT: mov.w r1, #0
1941 ; CHECK-MVE-NEXT: it pl
1942 ; CHECK-MVE-NEXT: movpl r1, #1
1943 ; CHECK-MVE-NEXT: cmp r1, #0
1944 ; CHECK-MVE-NEXT: cset r1, ne
1945 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
1946 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1947 ; CHECK-MVE-NEXT: vcmpe.f16 s2, #0
1948 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1949 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1950 ; CHECK-MVE-NEXT: vmov r1, s16
1951 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
1952 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
1953 ; CHECK-MVE-NEXT: mov.w r1, #0
1954 ; CHECK-MVE-NEXT: it pl
1955 ; CHECK-MVE-NEXT: movpl r1, #1
1956 ; CHECK-MVE-NEXT: cmp r1, #0
1957 ; CHECK-MVE-NEXT: cset r1, ne
1958 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1959 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
1960 ; CHECK-MVE-NEXT: vmov r1, s16
1961 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
1962 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
1963 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
1964 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1965 ; CHECK-MVE-NEXT: mov.w r1, #0
1966 ; CHECK-MVE-NEXT: it pl
1967 ; CHECK-MVE-NEXT: movpl r1, #1
1968 ; CHECK-MVE-NEXT: cmp r1, #0
1969 ; CHECK-MVE-NEXT: cset r1, ne
1970 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
1971 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1972 ; CHECK-MVE-NEXT: vcmpe.f16 s3, #0
1973 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
1974 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1975 ; CHECK-MVE-NEXT: vmov r1, s16
1976 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
1977 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
1978 ; CHECK-MVE-NEXT: mov.w r1, #0
1979 ; CHECK-MVE-NEXT: it pl
1980 ; CHECK-MVE-NEXT: movpl r1, #1
1981 ; CHECK-MVE-NEXT: cmp r1, #0
1982 ; CHECK-MVE-NEXT: cset r1, ne
1983 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
1984 ; CHECK-MVE-NEXT: lsls r1, r1, #31
1985 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
1986 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
1987 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1988 ; CHECK-MVE-NEXT: it pl
1989 ; CHECK-MVE-NEXT: movpl r0, #1
1990 ; CHECK-MVE-NEXT: cmp r0, #0
1991 ; CHECK-MVE-NEXT: cset r0, ne
1992 ; CHECK-MVE-NEXT: vmov r1, s16
1993 ; CHECK-MVE-NEXT: lsls r0, r0, #31
1994 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
1995 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1996 ; CHECK-MVE-NEXT: vmov r0, s0
1997 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1998 ; CHECK-MVE-NEXT: vmov q0, q3
1999 ; CHECK-MVE-NEXT: vpop {d8, d9}
2000 ; CHECK-MVE-NEXT: bx lr
2002 ; CHECK-MVEFP-LABEL: vcmp_uge_v8f16:
2003 ; CHECK-MVEFP: @ %bb.0: @ %entry
2004 ; CHECK-MVEFP-NEXT: vcmp.f16 lt, q0, zr
2005 ; CHECK-MVEFP-NEXT: vpnot
2006 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2007 ; CHECK-MVEFP-NEXT: bx lr
2009 %c = fcmp uge <8 x half> %src, zeroinitializer
2010 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2014 define arm_aapcs_vfpcc <8 x half> @vcmp_ult_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
2015 ; CHECK-MVE-LABEL: vcmp_ult_v8f16:
2016 ; CHECK-MVE: @ %bb.0: @ %entry
2017 ; CHECK-MVE-NEXT: .vsave {d8, d9}
2018 ; CHECK-MVE-NEXT: vpush {d8, d9}
2019 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
2020 ; CHECK-MVE-NEXT: movs r1, #0
2021 ; CHECK-MVE-NEXT: vcmpe.f16 s12, #0
2022 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
2023 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2024 ; CHECK-MVE-NEXT: it lt
2025 ; CHECK-MVE-NEXT: movlt r1, #1
2026 ; CHECK-MVE-NEXT: cmp r1, #0
2027 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
2028 ; CHECK-MVE-NEXT: cset r1, ne
2029 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
2030 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2031 ; CHECK-MVE-NEXT: mov.w r2, #0
2032 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2033 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2034 ; CHECK-MVE-NEXT: it lt
2035 ; CHECK-MVE-NEXT: movlt r2, #1
2036 ; CHECK-MVE-NEXT: cmp r2, #0
2037 ; CHECK-MVE-NEXT: cset r2, ne
2038 ; CHECK-MVE-NEXT: vmov r1, s12
2039 ; CHECK-MVE-NEXT: lsls r2, r2, #31
2040 ; CHECK-MVE-NEXT: vcmpe.f16 s1, #0
2041 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
2042 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2043 ; CHECK-MVE-NEXT: vmov r2, s12
2044 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
2045 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
2046 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
2047 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
2048 ; CHECK-MVE-NEXT: mov.w r1, #0
2049 ; CHECK-MVE-NEXT: it lt
2050 ; CHECK-MVE-NEXT: movlt r1, #1
2051 ; CHECK-MVE-NEXT: cmp r1, #0
2052 ; CHECK-MVE-NEXT: cset r1, ne
2053 ; CHECK-MVE-NEXT: movs r0, #0
2054 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2055 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
2056 ; CHECK-MVE-NEXT: vmov r1, s16
2057 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
2058 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
2059 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
2060 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2061 ; CHECK-MVE-NEXT: mov.w r1, #0
2062 ; CHECK-MVE-NEXT: it lt
2063 ; CHECK-MVE-NEXT: movlt r1, #1
2064 ; CHECK-MVE-NEXT: cmp r1, #0
2065 ; CHECK-MVE-NEXT: cset r1, ne
2066 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
2067 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2068 ; CHECK-MVE-NEXT: vcmpe.f16 s2, #0
2069 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
2070 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2071 ; CHECK-MVE-NEXT: vmov r1, s16
2072 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
2073 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
2074 ; CHECK-MVE-NEXT: mov.w r1, #0
2075 ; CHECK-MVE-NEXT: it lt
2076 ; CHECK-MVE-NEXT: movlt r1, #1
2077 ; CHECK-MVE-NEXT: cmp r1, #0
2078 ; CHECK-MVE-NEXT: cset r1, ne
2079 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2080 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
2081 ; CHECK-MVE-NEXT: vmov r1, s16
2082 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
2083 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
2084 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
2085 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2086 ; CHECK-MVE-NEXT: mov.w r1, #0
2087 ; CHECK-MVE-NEXT: it lt
2088 ; CHECK-MVE-NEXT: movlt r1, #1
2089 ; CHECK-MVE-NEXT: cmp r1, #0
2090 ; CHECK-MVE-NEXT: cset r1, ne
2091 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
2092 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2093 ; CHECK-MVE-NEXT: vcmpe.f16 s3, #0
2094 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
2095 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2096 ; CHECK-MVE-NEXT: vmov r1, s16
2097 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
2098 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
2099 ; CHECK-MVE-NEXT: mov.w r1, #0
2100 ; CHECK-MVE-NEXT: it lt
2101 ; CHECK-MVE-NEXT: movlt r1, #1
2102 ; CHECK-MVE-NEXT: cmp r1, #0
2103 ; CHECK-MVE-NEXT: cset r1, ne
2104 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
2105 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2106 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
2107 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
2108 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2109 ; CHECK-MVE-NEXT: it lt
2110 ; CHECK-MVE-NEXT: movlt r0, #1
2111 ; CHECK-MVE-NEXT: cmp r0, #0
2112 ; CHECK-MVE-NEXT: cset r0, ne
2113 ; CHECK-MVE-NEXT: vmov r1, s16
2114 ; CHECK-MVE-NEXT: lsls r0, r0, #31
2115 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
2116 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2117 ; CHECK-MVE-NEXT: vmov r0, s0
2118 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2119 ; CHECK-MVE-NEXT: vmov q0, q3
2120 ; CHECK-MVE-NEXT: vpop {d8, d9}
2121 ; CHECK-MVE-NEXT: bx lr
2123 ; CHECK-MVEFP-LABEL: vcmp_ult_v8f16:
2124 ; CHECK-MVEFP: @ %bb.0: @ %entry
2125 ; CHECK-MVEFP-NEXT: vcmp.f16 ge, q0, zr
2126 ; CHECK-MVEFP-NEXT: vpnot
2127 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2128 ; CHECK-MVEFP-NEXT: bx lr
2130 %c = fcmp ult <8 x half> %src, zeroinitializer
2131 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2135 define arm_aapcs_vfpcc <8 x half> @vcmp_ule_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
2136 ; CHECK-MVE-LABEL: vcmp_ule_v8f16:
2137 ; CHECK-MVE: @ %bb.0: @ %entry
2138 ; CHECK-MVE-NEXT: .vsave {d8, d9}
2139 ; CHECK-MVE-NEXT: vpush {d8, d9}
2140 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
2141 ; CHECK-MVE-NEXT: movs r1, #0
2142 ; CHECK-MVE-NEXT: vcmpe.f16 s12, #0
2143 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
2144 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2145 ; CHECK-MVE-NEXT: it le
2146 ; CHECK-MVE-NEXT: movle r1, #1
2147 ; CHECK-MVE-NEXT: cmp r1, #0
2148 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
2149 ; CHECK-MVE-NEXT: cset r1, ne
2150 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
2151 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2152 ; CHECK-MVE-NEXT: mov.w r2, #0
2153 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2154 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2155 ; CHECK-MVE-NEXT: it le
2156 ; CHECK-MVE-NEXT: movle r2, #1
2157 ; CHECK-MVE-NEXT: cmp r2, #0
2158 ; CHECK-MVE-NEXT: cset r2, ne
2159 ; CHECK-MVE-NEXT: vmov r1, s12
2160 ; CHECK-MVE-NEXT: lsls r2, r2, #31
2161 ; CHECK-MVE-NEXT: vcmpe.f16 s1, #0
2162 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
2163 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2164 ; CHECK-MVE-NEXT: vmov r2, s12
2165 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
2166 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
2167 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
2168 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
2169 ; CHECK-MVE-NEXT: mov.w r1, #0
2170 ; CHECK-MVE-NEXT: it le
2171 ; CHECK-MVE-NEXT: movle r1, #1
2172 ; CHECK-MVE-NEXT: cmp r1, #0
2173 ; CHECK-MVE-NEXT: cset r1, ne
2174 ; CHECK-MVE-NEXT: movs r0, #0
2175 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2176 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
2177 ; CHECK-MVE-NEXT: vmov r1, s16
2178 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
2179 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
2180 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
2181 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2182 ; CHECK-MVE-NEXT: mov.w r1, #0
2183 ; CHECK-MVE-NEXT: it le
2184 ; CHECK-MVE-NEXT: movle r1, #1
2185 ; CHECK-MVE-NEXT: cmp r1, #0
2186 ; CHECK-MVE-NEXT: cset r1, ne
2187 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
2188 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2189 ; CHECK-MVE-NEXT: vcmpe.f16 s2, #0
2190 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
2191 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2192 ; CHECK-MVE-NEXT: vmov r1, s16
2193 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
2194 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
2195 ; CHECK-MVE-NEXT: mov.w r1, #0
2196 ; CHECK-MVE-NEXT: it le
2197 ; CHECK-MVE-NEXT: movle r1, #1
2198 ; CHECK-MVE-NEXT: cmp r1, #0
2199 ; CHECK-MVE-NEXT: cset r1, ne
2200 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2201 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
2202 ; CHECK-MVE-NEXT: vmov r1, s16
2203 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
2204 ; CHECK-MVE-NEXT: vcmpe.f16 s16, #0
2205 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
2206 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2207 ; CHECK-MVE-NEXT: mov.w r1, #0
2208 ; CHECK-MVE-NEXT: it le
2209 ; CHECK-MVE-NEXT: movle r1, #1
2210 ; CHECK-MVE-NEXT: cmp r1, #0
2211 ; CHECK-MVE-NEXT: cset r1, ne
2212 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
2213 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2214 ; CHECK-MVE-NEXT: vcmpe.f16 s3, #0
2215 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
2216 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2217 ; CHECK-MVE-NEXT: vmov r1, s16
2218 ; CHECK-MVE-NEXT: vcmpe.f16 s0, #0
2219 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
2220 ; CHECK-MVE-NEXT: mov.w r1, #0
2221 ; CHECK-MVE-NEXT: it le
2222 ; CHECK-MVE-NEXT: movle r1, #1
2223 ; CHECK-MVE-NEXT: cmp r1, #0
2224 ; CHECK-MVE-NEXT: cset r1, ne
2225 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
2226 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2227 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
2228 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
2229 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2230 ; CHECK-MVE-NEXT: it le
2231 ; CHECK-MVE-NEXT: movle r0, #1
2232 ; CHECK-MVE-NEXT: cmp r0, #0
2233 ; CHECK-MVE-NEXT: cset r0, ne
2234 ; CHECK-MVE-NEXT: vmov r1, s16
2235 ; CHECK-MVE-NEXT: lsls r0, r0, #31
2236 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
2237 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2238 ; CHECK-MVE-NEXT: vmov r0, s0
2239 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2240 ; CHECK-MVE-NEXT: vmov q0, q3
2241 ; CHECK-MVE-NEXT: vpop {d8, d9}
2242 ; CHECK-MVE-NEXT: bx lr
2244 ; CHECK-MVEFP-LABEL: vcmp_ule_v8f16:
2245 ; CHECK-MVEFP: @ %bb.0: @ %entry
2246 ; CHECK-MVEFP-NEXT: vcmp.f16 gt, q0, zr
2247 ; CHECK-MVEFP-NEXT: vpnot
2248 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2249 ; CHECK-MVEFP-NEXT: bx lr
2251 %c = fcmp ule <8 x half> %src, zeroinitializer
2252 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2256 define arm_aapcs_vfpcc <8 x half> @vcmp_ord_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
2257 ; CHECK-MVE-LABEL: vcmp_ord_v8f16:
2258 ; CHECK-MVE: @ %bb.0: @ %entry
2259 ; CHECK-MVE-NEXT: .vsave {d8, d9}
2260 ; CHECK-MVE-NEXT: vpush {d8, d9}
2261 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
2262 ; CHECK-MVE-NEXT: movs r1, #0
2263 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s12
2264 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
2265 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2266 ; CHECK-MVE-NEXT: it vc
2267 ; CHECK-MVE-NEXT: movvc r1, #1
2268 ; CHECK-MVE-NEXT: cmp r1, #0
2269 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s0
2270 ; CHECK-MVE-NEXT: cset r1, ne
2271 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
2272 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2273 ; CHECK-MVE-NEXT: mov.w r2, #0
2274 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2275 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2276 ; CHECK-MVE-NEXT: it vc
2277 ; CHECK-MVE-NEXT: movvc r2, #1
2278 ; CHECK-MVE-NEXT: cmp r2, #0
2279 ; CHECK-MVE-NEXT: cset r2, ne
2280 ; CHECK-MVE-NEXT: vmov r1, s12
2281 ; CHECK-MVE-NEXT: lsls r2, r2, #31
2282 ; CHECK-MVE-NEXT: vcmpe.f16 s1, s1
2283 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
2284 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2285 ; CHECK-MVE-NEXT: vmov r2, s12
2286 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
2287 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
2288 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
2289 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
2290 ; CHECK-MVE-NEXT: mov.w r1, #0
2291 ; CHECK-MVE-NEXT: it vc
2292 ; CHECK-MVE-NEXT: movvc r1, #1
2293 ; CHECK-MVE-NEXT: cmp r1, #0
2294 ; CHECK-MVE-NEXT: cset r1, ne
2295 ; CHECK-MVE-NEXT: movs r0, #0
2296 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2297 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
2298 ; CHECK-MVE-NEXT: vmov r1, s16
2299 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
2300 ; CHECK-MVE-NEXT: vcmpe.f16 s16, s16
2301 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
2302 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2303 ; CHECK-MVE-NEXT: mov.w r1, #0
2304 ; CHECK-MVE-NEXT: it vc
2305 ; CHECK-MVE-NEXT: movvc r1, #1
2306 ; CHECK-MVE-NEXT: cmp r1, #0
2307 ; CHECK-MVE-NEXT: cset r1, ne
2308 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
2309 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2310 ; CHECK-MVE-NEXT: vcmpe.f16 s2, s2
2311 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
2312 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2313 ; CHECK-MVE-NEXT: vmov r1, s16
2314 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
2315 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
2316 ; CHECK-MVE-NEXT: mov.w r1, #0
2317 ; CHECK-MVE-NEXT: it vc
2318 ; CHECK-MVE-NEXT: movvc r1, #1
2319 ; CHECK-MVE-NEXT: cmp r1, #0
2320 ; CHECK-MVE-NEXT: cset r1, ne
2321 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2322 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
2323 ; CHECK-MVE-NEXT: vmov r1, s16
2324 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
2325 ; CHECK-MVE-NEXT: vcmpe.f16 s16, s16
2326 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
2327 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2328 ; CHECK-MVE-NEXT: mov.w r1, #0
2329 ; CHECK-MVE-NEXT: it vc
2330 ; CHECK-MVE-NEXT: movvc r1, #1
2331 ; CHECK-MVE-NEXT: cmp r1, #0
2332 ; CHECK-MVE-NEXT: cset r1, ne
2333 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
2334 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2335 ; CHECK-MVE-NEXT: vcmpe.f16 s3, s3
2336 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
2337 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2338 ; CHECK-MVE-NEXT: vmov r1, s16
2339 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s0
2340 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
2341 ; CHECK-MVE-NEXT: mov.w r1, #0
2342 ; CHECK-MVE-NEXT: it vc
2343 ; CHECK-MVE-NEXT: movvc r1, #1
2344 ; CHECK-MVE-NEXT: cmp r1, #0
2345 ; CHECK-MVE-NEXT: cset r1, ne
2346 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
2347 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2348 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
2349 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
2350 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2351 ; CHECK-MVE-NEXT: it vc
2352 ; CHECK-MVE-NEXT: movvc r0, #1
2353 ; CHECK-MVE-NEXT: cmp r0, #0
2354 ; CHECK-MVE-NEXT: cset r0, ne
2355 ; CHECK-MVE-NEXT: vmov r1, s16
2356 ; CHECK-MVE-NEXT: lsls r0, r0, #31
2357 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
2358 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2359 ; CHECK-MVE-NEXT: vmov r0, s0
2360 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2361 ; CHECK-MVE-NEXT: vmov q0, q3
2362 ; CHECK-MVE-NEXT: vpop {d8, d9}
2363 ; CHECK-MVE-NEXT: bx lr
2365 ; CHECK-MVEFP-LABEL: vcmp_ord_v8f16:
2366 ; CHECK-MVEFP: @ %bb.0: @ %entry
2367 ; CHECK-MVEFP-NEXT: vmov.i32 q3, #0x0
2368 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q3, q0
2369 ; CHECK-MVEFP-NEXT: vpst
2370 ; CHECK-MVEFP-NEXT: vcmpt.f16 lt, q0, q3
2371 ; CHECK-MVEFP-NEXT: vpnot
2372 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2373 ; CHECK-MVEFP-NEXT: bx lr
2375 %c = fcmp ord <8 x half> %src, zeroinitializer
2376 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2380 define arm_aapcs_vfpcc <8 x half> @vcmp_uno_v8f16(<8 x half> %src, <8 x half> %a, <8 x half> %b) {
2381 ; CHECK-MVE-LABEL: vcmp_uno_v8f16:
2382 ; CHECK-MVE: @ %bb.0: @ %entry
2383 ; CHECK-MVE-NEXT: .vsave {d8, d9}
2384 ; CHECK-MVE-NEXT: vpush {d8, d9}
2385 ; CHECK-MVE-NEXT: vmovx.f16 s12, s0
2386 ; CHECK-MVE-NEXT: movs r1, #0
2387 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s12
2388 ; CHECK-MVE-NEXT: vmovx.f16 s12, s4
2389 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2390 ; CHECK-MVE-NEXT: it vs
2391 ; CHECK-MVE-NEXT: movvs r1, #1
2392 ; CHECK-MVE-NEXT: cmp r1, #0
2393 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s0
2394 ; CHECK-MVE-NEXT: cset r1, ne
2395 ; CHECK-MVE-NEXT: vmovx.f16 s14, s8
2396 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2397 ; CHECK-MVE-NEXT: mov.w r2, #0
2398 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2399 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2400 ; CHECK-MVE-NEXT: it vs
2401 ; CHECK-MVE-NEXT: movvs r2, #1
2402 ; CHECK-MVE-NEXT: cmp r2, #0
2403 ; CHECK-MVE-NEXT: cset r2, ne
2404 ; CHECK-MVE-NEXT: vmov r1, s12
2405 ; CHECK-MVE-NEXT: lsls r2, r2, #31
2406 ; CHECK-MVE-NEXT: vcmpe.f16 s1, s1
2407 ; CHECK-MVE-NEXT: vseleq.f16 s12, s8, s4
2408 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2409 ; CHECK-MVE-NEXT: vmov r2, s12
2410 ; CHECK-MVE-NEXT: vmovx.f16 s18, s9
2411 ; CHECK-MVE-NEXT: vmov.16 q3[0], r2
2412 ; CHECK-MVE-NEXT: vmovx.f16 s0, s3
2413 ; CHECK-MVE-NEXT: vmov.16 q3[1], r1
2414 ; CHECK-MVE-NEXT: mov.w r1, #0
2415 ; CHECK-MVE-NEXT: it vs
2416 ; CHECK-MVE-NEXT: movvs r1, #1
2417 ; CHECK-MVE-NEXT: cmp r1, #0
2418 ; CHECK-MVE-NEXT: cset r1, ne
2419 ; CHECK-MVE-NEXT: movs r0, #0
2420 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2421 ; CHECK-MVE-NEXT: vseleq.f16 s16, s9, s5
2422 ; CHECK-MVE-NEXT: vmov r1, s16
2423 ; CHECK-MVE-NEXT: vmovx.f16 s16, s1
2424 ; CHECK-MVE-NEXT: vcmpe.f16 s16, s16
2425 ; CHECK-MVE-NEXT: vmov.16 q3[2], r1
2426 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2427 ; CHECK-MVE-NEXT: mov.w r1, #0
2428 ; CHECK-MVE-NEXT: it vs
2429 ; CHECK-MVE-NEXT: movvs r1, #1
2430 ; CHECK-MVE-NEXT: cmp r1, #0
2431 ; CHECK-MVE-NEXT: cset r1, ne
2432 ; CHECK-MVE-NEXT: vmovx.f16 s16, s5
2433 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2434 ; CHECK-MVE-NEXT: vcmpe.f16 s2, s2
2435 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
2436 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2437 ; CHECK-MVE-NEXT: vmov r1, s16
2438 ; CHECK-MVE-NEXT: vmovx.f16 s18, s10
2439 ; CHECK-MVE-NEXT: vmov.16 q3[3], r1
2440 ; CHECK-MVE-NEXT: mov.w r1, #0
2441 ; CHECK-MVE-NEXT: it vs
2442 ; CHECK-MVE-NEXT: movvs r1, #1
2443 ; CHECK-MVE-NEXT: cmp r1, #0
2444 ; CHECK-MVE-NEXT: cset r1, ne
2445 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2446 ; CHECK-MVE-NEXT: vseleq.f16 s16, s10, s6
2447 ; CHECK-MVE-NEXT: vmov r1, s16
2448 ; CHECK-MVE-NEXT: vmovx.f16 s16, s2
2449 ; CHECK-MVE-NEXT: vcmpe.f16 s16, s16
2450 ; CHECK-MVE-NEXT: vmov.16 q3[4], r1
2451 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2452 ; CHECK-MVE-NEXT: mov.w r1, #0
2453 ; CHECK-MVE-NEXT: it vs
2454 ; CHECK-MVE-NEXT: movvs r1, #1
2455 ; CHECK-MVE-NEXT: cmp r1, #0
2456 ; CHECK-MVE-NEXT: cset r1, ne
2457 ; CHECK-MVE-NEXT: vmovx.f16 s16, s6
2458 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2459 ; CHECK-MVE-NEXT: vcmpe.f16 s3, s3
2460 ; CHECK-MVE-NEXT: vseleq.f16 s16, s18, s16
2461 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2462 ; CHECK-MVE-NEXT: vmov r1, s16
2463 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s0
2464 ; CHECK-MVE-NEXT: vmov.16 q3[5], r1
2465 ; CHECK-MVE-NEXT: mov.w r1, #0
2466 ; CHECK-MVE-NEXT: it vs
2467 ; CHECK-MVE-NEXT: movvs r1, #1
2468 ; CHECK-MVE-NEXT: cmp r1, #0
2469 ; CHECK-MVE-NEXT: cset r1, ne
2470 ; CHECK-MVE-NEXT: vmovx.f16 s0, s7
2471 ; CHECK-MVE-NEXT: lsls r1, r1, #31
2472 ; CHECK-MVE-NEXT: vmovx.f16 s2, s11
2473 ; CHECK-MVE-NEXT: vseleq.f16 s16, s11, s7
2474 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2475 ; CHECK-MVE-NEXT: it vs
2476 ; CHECK-MVE-NEXT: movvs r0, #1
2477 ; CHECK-MVE-NEXT: cmp r0, #0
2478 ; CHECK-MVE-NEXT: cset r0, ne
2479 ; CHECK-MVE-NEXT: vmov r1, s16
2480 ; CHECK-MVE-NEXT: lsls r0, r0, #31
2481 ; CHECK-MVE-NEXT: vmov.16 q3[6], r1
2482 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2483 ; CHECK-MVE-NEXT: vmov r0, s0
2484 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2485 ; CHECK-MVE-NEXT: vmov q0, q3
2486 ; CHECK-MVE-NEXT: vpop {d8, d9}
2487 ; CHECK-MVE-NEXT: bx lr
2489 ; CHECK-MVEFP-LABEL: vcmp_uno_v8f16:
2490 ; CHECK-MVEFP: @ %bb.0: @ %entry
2491 ; CHECK-MVEFP-NEXT: vmov.i32 q3, #0x0
2492 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q3, q0
2493 ; CHECK-MVEFP-NEXT: vpst
2494 ; CHECK-MVEFP-NEXT: vcmpt.f16 lt, q0, q3
2495 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2496 ; CHECK-MVEFP-NEXT: bx lr
2498 %c = fcmp uno <8 x half> %src, zeroinitializer
2499 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b