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, float %src2, <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 s1, s4
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 s0, s4
15 ; CHECK-MVE-NEXT: it ne
16 ; CHECK-MVE-NEXT: movne r1, #1
17 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
18 ; CHECK-MVE-NEXT: mov.w r2, #0
19 ; CHECK-MVE-NEXT: vcmp.f32 s3, s4
20 ; CHECK-MVE-NEXT: it eq
21 ; CHECK-MVE-NEXT: moveq r2, #1
22 ; CHECK-MVE-NEXT: cmp r2, #0
23 ; CHECK-MVE-NEXT: it ne
24 ; CHECK-MVE-NEXT: movne r2, #1
25 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
26 ; CHECK-MVE-NEXT: mov.w r3, #0
27 ; CHECK-MVE-NEXT: vcmp.f32 s2, s4
28 ; CHECK-MVE-NEXT: it eq
29 ; CHECK-MVE-NEXT: moveq r3, #1
30 ; CHECK-MVE-NEXT: cmp r3, #0
31 ; CHECK-MVE-NEXT: it ne
32 ; CHECK-MVE-NEXT: movne r3, #1
33 ; CHECK-MVE-NEXT: movs r0, #0
34 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
35 ; CHECK-MVE-NEXT: it eq
36 ; CHECK-MVE-NEXT: moveq r0, #1
37 ; CHECK-MVE-NEXT: cmp r0, #0
38 ; CHECK-MVE-NEXT: it ne
39 ; CHECK-MVE-NEXT: movne r0, #1
40 ; CHECK-MVE-NEXT: cmp r3, #0
41 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
42 ; CHECK-MVE-NEXT: cmp r0, #0
43 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
44 ; CHECK-MVE-NEXT: cmp r1, #0
45 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
46 ; CHECK-MVE-NEXT: cmp r2, #0
47 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
48 ; CHECK-MVE-NEXT: bx lr
50 ; CHECK-MVEFP-LABEL: vcmp_oeq_v4f32:
51 ; CHECK-MVEFP: @ %bb.0: @ %entry
52 ; CHECK-MVEFP-NEXT: vmov r0, s4
53 ; CHECK-MVEFP-NEXT: vcmp.f32 eq, q0, r0
54 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
55 ; CHECK-MVEFP-NEXT: bx lr
57 %i = insertelement <4 x float> undef, float %src2, i32 0
58 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
59 %c = fcmp oeq <4 x float> %src, %sp
60 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
64 define arm_aapcs_vfpcc <4 x float> @vcmp_one_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
65 ; CHECK-MVE-LABEL: vcmp_one_v4f32:
66 ; CHECK-MVE: @ %bb.0: @ %entry
67 ; CHECK-MVE-NEXT: vcmp.f32 s1, s4
68 ; CHECK-MVE-NEXT: movs r1, #0
69 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
70 ; CHECK-MVE-NEXT: vcmp.f32 s1, s4
71 ; CHECK-MVE-NEXT: it mi
72 ; CHECK-MVE-NEXT: movmi r1, #1
73 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
74 ; CHECK-MVE-NEXT: it gt
75 ; CHECK-MVE-NEXT: movgt r1, #1
76 ; CHECK-MVE-NEXT: cmp r1, #0
77 ; CHECK-MVE-NEXT: vcmp.f32 s0, s4
78 ; CHECK-MVE-NEXT: mov.w r2, #0
79 ; CHECK-MVE-NEXT: it ne
80 ; CHECK-MVE-NEXT: movne r1, #1
81 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
82 ; CHECK-MVE-NEXT: it mi
83 ; CHECK-MVE-NEXT: movmi r2, #1
84 ; CHECK-MVE-NEXT: vcmp.f32 s3, s4
85 ; CHECK-MVE-NEXT: it gt
86 ; CHECK-MVE-NEXT: movgt r2, #1
87 ; CHECK-MVE-NEXT: cmp r2, #0
88 ; CHECK-MVE-NEXT: mov.w r3, #0
89 ; CHECK-MVE-NEXT: it ne
90 ; CHECK-MVE-NEXT: movne r2, #1
91 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
92 ; CHECK-MVE-NEXT: it mi
93 ; CHECK-MVE-NEXT: movmi r3, #1
94 ; CHECK-MVE-NEXT: it gt
95 ; CHECK-MVE-NEXT: movgt r3, #1
96 ; CHECK-MVE-NEXT: cmp r3, #0
97 ; CHECK-MVE-NEXT: mov.w r0, #0
98 ; CHECK-MVE-NEXT: vcmp.f32 s2, s4
99 ; CHECK-MVE-NEXT: it ne
100 ; CHECK-MVE-NEXT: movne r3, #1
101 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
102 ; CHECK-MVE-NEXT: it mi
103 ; CHECK-MVE-NEXT: movmi r0, #1
104 ; CHECK-MVE-NEXT: it gt
105 ; CHECK-MVE-NEXT: movgt r0, #1
106 ; CHECK-MVE-NEXT: cmp r0, #0
107 ; CHECK-MVE-NEXT: it ne
108 ; CHECK-MVE-NEXT: movne r0, #1
109 ; CHECK-MVE-NEXT: cmp r3, #0
110 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
111 ; CHECK-MVE-NEXT: cmp r0, #0
112 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
113 ; CHECK-MVE-NEXT: cmp r1, #0
114 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
115 ; CHECK-MVE-NEXT: cmp r2, #0
116 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
117 ; CHECK-MVE-NEXT: bx lr
119 ; CHECK-MVEFP-LABEL: vcmp_one_v4f32:
120 ; CHECK-MVEFP: @ %bb.0: @ %entry
121 ; CHECK-MVEFP-NEXT: vmov r0, s4
122 ; CHECK-MVEFP-NEXT: vdup.32 q1, r0
123 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q1, q0
124 ; CHECK-MVEFP-NEXT: vpst
125 ; CHECK-MVEFP-NEXT: vcmpt.f32 le, q0, r0
126 ; CHECK-MVEFP-NEXT: vpnot
127 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
128 ; CHECK-MVEFP-NEXT: bx lr
130 %i = insertelement <4 x float> undef, float %src2, i32 0
131 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
132 %c = fcmp one <4 x float> %src, %sp
133 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
137 define arm_aapcs_vfpcc <4 x float> @vcmp_ogt_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
138 ; CHECK-MVE-LABEL: vcmp_ogt_v4f32:
139 ; CHECK-MVE: @ %bb.0: @ %entry
140 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
141 ; CHECK-MVE-NEXT: movs r1, #0
142 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
143 ; CHECK-MVE-NEXT: it gt
144 ; CHECK-MVE-NEXT: movgt r1, #1
145 ; CHECK-MVE-NEXT: cmp r1, #0
146 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
147 ; CHECK-MVE-NEXT: it ne
148 ; CHECK-MVE-NEXT: movne r1, #1
149 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
150 ; CHECK-MVE-NEXT: mov.w r2, #0
151 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
152 ; CHECK-MVE-NEXT: it gt
153 ; CHECK-MVE-NEXT: movgt r2, #1
154 ; CHECK-MVE-NEXT: cmp r2, #0
155 ; CHECK-MVE-NEXT: it ne
156 ; CHECK-MVE-NEXT: movne r2, #1
157 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
158 ; CHECK-MVE-NEXT: mov.w r3, #0
159 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
160 ; CHECK-MVE-NEXT: it gt
161 ; CHECK-MVE-NEXT: movgt r3, #1
162 ; CHECK-MVE-NEXT: cmp r3, #0
163 ; CHECK-MVE-NEXT: it ne
164 ; CHECK-MVE-NEXT: movne r3, #1
165 ; CHECK-MVE-NEXT: movs r0, #0
166 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
167 ; CHECK-MVE-NEXT: it gt
168 ; CHECK-MVE-NEXT: movgt r0, #1
169 ; CHECK-MVE-NEXT: cmp r0, #0
170 ; CHECK-MVE-NEXT: it ne
171 ; CHECK-MVE-NEXT: movne r0, #1
172 ; CHECK-MVE-NEXT: cmp r3, #0
173 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
174 ; CHECK-MVE-NEXT: cmp r0, #0
175 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
176 ; CHECK-MVE-NEXT: cmp r1, #0
177 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
178 ; CHECK-MVE-NEXT: cmp r2, #0
179 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
180 ; CHECK-MVE-NEXT: bx lr
182 ; CHECK-MVEFP-LABEL: vcmp_ogt_v4f32:
183 ; CHECK-MVEFP: @ %bb.0: @ %entry
184 ; CHECK-MVEFP-NEXT: vmov r0, s4
185 ; CHECK-MVEFP-NEXT: vcmp.f32 gt, q0, r0
186 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
187 ; CHECK-MVEFP-NEXT: bx lr
189 %i = insertelement <4 x float> undef, float %src2, i32 0
190 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
191 %c = fcmp ogt <4 x float> %src, %sp
192 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
196 define arm_aapcs_vfpcc <4 x float> @vcmp_oge_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
197 ; CHECK-MVE-LABEL: vcmp_oge_v4f32:
198 ; CHECK-MVE: @ %bb.0: @ %entry
199 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
200 ; CHECK-MVE-NEXT: movs r1, #0
201 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
202 ; CHECK-MVE-NEXT: it ge
203 ; CHECK-MVE-NEXT: movge r1, #1
204 ; CHECK-MVE-NEXT: cmp r1, #0
205 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
206 ; CHECK-MVE-NEXT: it ne
207 ; CHECK-MVE-NEXT: movne r1, #1
208 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
209 ; CHECK-MVE-NEXT: mov.w r2, #0
210 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
211 ; CHECK-MVE-NEXT: it ge
212 ; CHECK-MVE-NEXT: movge r2, #1
213 ; CHECK-MVE-NEXT: cmp r2, #0
214 ; CHECK-MVE-NEXT: it ne
215 ; CHECK-MVE-NEXT: movne r2, #1
216 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
217 ; CHECK-MVE-NEXT: mov.w r3, #0
218 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
219 ; CHECK-MVE-NEXT: it ge
220 ; CHECK-MVE-NEXT: movge r3, #1
221 ; CHECK-MVE-NEXT: cmp r3, #0
222 ; CHECK-MVE-NEXT: it ne
223 ; CHECK-MVE-NEXT: movne r3, #1
224 ; CHECK-MVE-NEXT: movs r0, #0
225 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
226 ; CHECK-MVE-NEXT: it ge
227 ; CHECK-MVE-NEXT: movge r0, #1
228 ; CHECK-MVE-NEXT: cmp r0, #0
229 ; CHECK-MVE-NEXT: it ne
230 ; CHECK-MVE-NEXT: movne r0, #1
231 ; CHECK-MVE-NEXT: cmp r3, #0
232 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
233 ; CHECK-MVE-NEXT: cmp r0, #0
234 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
235 ; CHECK-MVE-NEXT: cmp r1, #0
236 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
237 ; CHECK-MVE-NEXT: cmp r2, #0
238 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
239 ; CHECK-MVE-NEXT: bx lr
241 ; CHECK-MVEFP-LABEL: vcmp_oge_v4f32:
242 ; CHECK-MVEFP: @ %bb.0: @ %entry
243 ; CHECK-MVEFP-NEXT: vmov r0, s4
244 ; CHECK-MVEFP-NEXT: vcmp.f32 ge, q0, r0
245 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
246 ; CHECK-MVEFP-NEXT: bx lr
248 %i = insertelement <4 x float> undef, float %src2, i32 0
249 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
250 %c = fcmp oge <4 x float> %src, %sp
251 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
255 define arm_aapcs_vfpcc <4 x float> @vcmp_olt_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
256 ; CHECK-MVE-LABEL: vcmp_olt_v4f32:
257 ; CHECK-MVE: @ %bb.0: @ %entry
258 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
259 ; CHECK-MVE-NEXT: movs r1, #0
260 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
261 ; CHECK-MVE-NEXT: it mi
262 ; CHECK-MVE-NEXT: movmi r1, #1
263 ; CHECK-MVE-NEXT: cmp r1, #0
264 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
265 ; CHECK-MVE-NEXT: it ne
266 ; CHECK-MVE-NEXT: movne r1, #1
267 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
268 ; CHECK-MVE-NEXT: mov.w r2, #0
269 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
270 ; CHECK-MVE-NEXT: it mi
271 ; CHECK-MVE-NEXT: movmi r2, #1
272 ; CHECK-MVE-NEXT: cmp r2, #0
273 ; CHECK-MVE-NEXT: it ne
274 ; CHECK-MVE-NEXT: movne r2, #1
275 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
276 ; CHECK-MVE-NEXT: mov.w r3, #0
277 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
278 ; CHECK-MVE-NEXT: it mi
279 ; CHECK-MVE-NEXT: movmi r3, #1
280 ; CHECK-MVE-NEXT: cmp r3, #0
281 ; CHECK-MVE-NEXT: it ne
282 ; CHECK-MVE-NEXT: movne r3, #1
283 ; CHECK-MVE-NEXT: movs r0, #0
284 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
285 ; CHECK-MVE-NEXT: it mi
286 ; CHECK-MVE-NEXT: movmi r0, #1
287 ; CHECK-MVE-NEXT: cmp r0, #0
288 ; CHECK-MVE-NEXT: it ne
289 ; CHECK-MVE-NEXT: movne r0, #1
290 ; CHECK-MVE-NEXT: cmp r3, #0
291 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
292 ; CHECK-MVE-NEXT: cmp r0, #0
293 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
294 ; CHECK-MVE-NEXT: cmp r1, #0
295 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
296 ; CHECK-MVE-NEXT: cmp r2, #0
297 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
298 ; CHECK-MVE-NEXT: bx lr
300 ; CHECK-MVEFP-LABEL: vcmp_olt_v4f32:
301 ; CHECK-MVEFP: @ %bb.0: @ %entry
302 ; CHECK-MVEFP-NEXT: vmov r0, s4
303 ; CHECK-MVEFP-NEXT: vdup.32 q1, r0
304 ; CHECK-MVEFP-NEXT: vcmp.f32 gt, q1, q0
305 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
306 ; CHECK-MVEFP-NEXT: bx lr
308 %i = insertelement <4 x float> undef, float %src2, i32 0
309 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
310 %c = fcmp olt <4 x float> %src, %sp
311 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
315 define arm_aapcs_vfpcc <4 x float> @vcmp_ole_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
316 ; CHECK-MVE-LABEL: vcmp_ole_v4f32:
317 ; CHECK-MVE: @ %bb.0: @ %entry
318 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
319 ; CHECK-MVE-NEXT: movs r1, #0
320 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
321 ; CHECK-MVE-NEXT: it ls
322 ; CHECK-MVE-NEXT: movls r1, #1
323 ; CHECK-MVE-NEXT: cmp r1, #0
324 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
325 ; CHECK-MVE-NEXT: it ne
326 ; CHECK-MVE-NEXT: movne r1, #1
327 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
328 ; CHECK-MVE-NEXT: mov.w r2, #0
329 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
330 ; CHECK-MVE-NEXT: it ls
331 ; CHECK-MVE-NEXT: movls r2, #1
332 ; CHECK-MVE-NEXT: cmp r2, #0
333 ; CHECK-MVE-NEXT: it ne
334 ; CHECK-MVE-NEXT: movne r2, #1
335 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
336 ; CHECK-MVE-NEXT: mov.w r3, #0
337 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
338 ; CHECK-MVE-NEXT: it ls
339 ; CHECK-MVE-NEXT: movls r3, #1
340 ; CHECK-MVE-NEXT: cmp r3, #0
341 ; CHECK-MVE-NEXT: it ne
342 ; CHECK-MVE-NEXT: movne r3, #1
343 ; CHECK-MVE-NEXT: movs r0, #0
344 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
345 ; CHECK-MVE-NEXT: it ls
346 ; CHECK-MVE-NEXT: movls r0, #1
347 ; CHECK-MVE-NEXT: cmp r0, #0
348 ; CHECK-MVE-NEXT: it ne
349 ; CHECK-MVE-NEXT: movne r0, #1
350 ; CHECK-MVE-NEXT: cmp r3, #0
351 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
352 ; CHECK-MVE-NEXT: cmp r0, #0
353 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
354 ; CHECK-MVE-NEXT: cmp r1, #0
355 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
356 ; CHECK-MVE-NEXT: cmp r2, #0
357 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
358 ; CHECK-MVE-NEXT: bx lr
360 ; CHECK-MVEFP-LABEL: vcmp_ole_v4f32:
361 ; CHECK-MVEFP: @ %bb.0: @ %entry
362 ; CHECK-MVEFP-NEXT: vmov r0, s4
363 ; CHECK-MVEFP-NEXT: vdup.32 q1, r0
364 ; CHECK-MVEFP-NEXT: vcmp.f32 ge, q1, q0
365 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
366 ; CHECK-MVEFP-NEXT: bx lr
368 %i = insertelement <4 x float> undef, float %src2, i32 0
369 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
370 %c = fcmp ole <4 x float> %src, %sp
371 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
375 define arm_aapcs_vfpcc <4 x float> @vcmp_ueq_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
376 ; CHECK-MVE-LABEL: vcmp_ueq_v4f32:
377 ; CHECK-MVE: @ %bb.0: @ %entry
378 ; CHECK-MVE-NEXT: vcmp.f32 s1, s4
379 ; CHECK-MVE-NEXT: movs r1, #0
380 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
381 ; CHECK-MVE-NEXT: vcmp.f32 s1, s4
382 ; CHECK-MVE-NEXT: it eq
383 ; CHECK-MVE-NEXT: moveq r1, #1
384 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
385 ; CHECK-MVE-NEXT: it vs
386 ; CHECK-MVE-NEXT: movvs r1, #1
387 ; CHECK-MVE-NEXT: cmp r1, #0
388 ; CHECK-MVE-NEXT: vcmp.f32 s0, s4
389 ; CHECK-MVE-NEXT: mov.w r2, #0
390 ; CHECK-MVE-NEXT: it ne
391 ; CHECK-MVE-NEXT: movne r1, #1
392 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
393 ; CHECK-MVE-NEXT: it eq
394 ; CHECK-MVE-NEXT: moveq r2, #1
395 ; CHECK-MVE-NEXT: vcmp.f32 s3, s4
396 ; CHECK-MVE-NEXT: it vs
397 ; CHECK-MVE-NEXT: movvs r2, #1
398 ; CHECK-MVE-NEXT: cmp r2, #0
399 ; CHECK-MVE-NEXT: mov.w r3, #0
400 ; CHECK-MVE-NEXT: it ne
401 ; CHECK-MVE-NEXT: movne r2, #1
402 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
403 ; CHECK-MVE-NEXT: it eq
404 ; CHECK-MVE-NEXT: moveq r3, #1
405 ; CHECK-MVE-NEXT: it vs
406 ; CHECK-MVE-NEXT: movvs r3, #1
407 ; CHECK-MVE-NEXT: cmp r3, #0
408 ; CHECK-MVE-NEXT: mov.w r0, #0
409 ; CHECK-MVE-NEXT: vcmp.f32 s2, s4
410 ; CHECK-MVE-NEXT: it ne
411 ; CHECK-MVE-NEXT: movne r3, #1
412 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
413 ; CHECK-MVE-NEXT: it eq
414 ; CHECK-MVE-NEXT: moveq r0, #1
415 ; CHECK-MVE-NEXT: it vs
416 ; CHECK-MVE-NEXT: movvs r0, #1
417 ; CHECK-MVE-NEXT: cmp r0, #0
418 ; CHECK-MVE-NEXT: it ne
419 ; CHECK-MVE-NEXT: movne r0, #1
420 ; CHECK-MVE-NEXT: cmp r3, #0
421 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
422 ; CHECK-MVE-NEXT: cmp r0, #0
423 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
424 ; CHECK-MVE-NEXT: cmp r1, #0
425 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
426 ; CHECK-MVE-NEXT: cmp r2, #0
427 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
428 ; CHECK-MVE-NEXT: bx lr
430 ; CHECK-MVEFP-LABEL: vcmp_ueq_v4f32:
431 ; CHECK-MVEFP: @ %bb.0: @ %entry
432 ; CHECK-MVEFP-NEXT: vmov r0, s4
433 ; CHECK-MVEFP-NEXT: vdup.32 q1, r0
434 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q1, q0
435 ; CHECK-MVEFP-NEXT: vpst
436 ; CHECK-MVEFP-NEXT: vcmpt.f32 le, q0, r0
437 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
438 ; CHECK-MVEFP-NEXT: bx lr
440 %i = insertelement <4 x float> undef, float %src2, i32 0
441 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
442 %c = fcmp ueq <4 x float> %src, %sp
443 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
447 define arm_aapcs_vfpcc <4 x float> @vcmp_une_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
448 ; CHECK-MVE-LABEL: vcmp_une_v4f32:
449 ; CHECK-MVE: @ %bb.0: @ %entry
450 ; CHECK-MVE-NEXT: vcmp.f32 s1, s4
451 ; CHECK-MVE-NEXT: movs r1, #0
452 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
453 ; CHECK-MVE-NEXT: it ne
454 ; CHECK-MVE-NEXT: movne r1, #1
455 ; CHECK-MVE-NEXT: cmp r1, #0
456 ; CHECK-MVE-NEXT: vcmp.f32 s0, s4
457 ; CHECK-MVE-NEXT: it ne
458 ; CHECK-MVE-NEXT: movne r1, #1
459 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
460 ; CHECK-MVE-NEXT: mov.w r2, #0
461 ; CHECK-MVE-NEXT: vcmp.f32 s3, s4
462 ; CHECK-MVE-NEXT: it ne
463 ; CHECK-MVE-NEXT: movne r2, #1
464 ; CHECK-MVE-NEXT: cmp r2, #0
465 ; CHECK-MVE-NEXT: it ne
466 ; CHECK-MVE-NEXT: movne r2, #1
467 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
468 ; CHECK-MVE-NEXT: mov.w r3, #0
469 ; CHECK-MVE-NEXT: vcmp.f32 s2, s4
470 ; CHECK-MVE-NEXT: it ne
471 ; CHECK-MVE-NEXT: movne r3, #1
472 ; CHECK-MVE-NEXT: cmp r3, #0
473 ; CHECK-MVE-NEXT: it ne
474 ; CHECK-MVE-NEXT: movne r3, #1
475 ; CHECK-MVE-NEXT: movs r0, #0
476 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
477 ; CHECK-MVE-NEXT: it ne
478 ; CHECK-MVE-NEXT: movne r0, #1
479 ; CHECK-MVE-NEXT: cmp r0, #0
480 ; CHECK-MVE-NEXT: it ne
481 ; CHECK-MVE-NEXT: movne r0, #1
482 ; CHECK-MVE-NEXT: cmp r3, #0
483 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
484 ; CHECK-MVE-NEXT: cmp r0, #0
485 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
486 ; CHECK-MVE-NEXT: cmp r1, #0
487 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
488 ; CHECK-MVE-NEXT: cmp r2, #0
489 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
490 ; CHECK-MVE-NEXT: bx lr
492 ; CHECK-MVEFP-LABEL: vcmp_une_v4f32:
493 ; CHECK-MVEFP: @ %bb.0: @ %entry
494 ; CHECK-MVEFP-NEXT: vmov r0, s4
495 ; CHECK-MVEFP-NEXT: vcmp.f32 ne, q0, r0
496 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
497 ; CHECK-MVEFP-NEXT: bx lr
499 %i = insertelement <4 x float> undef, float %src2, i32 0
500 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
501 %c = fcmp une <4 x float> %src, %sp
502 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
506 define arm_aapcs_vfpcc <4 x float> @vcmp_ugt_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
507 ; CHECK-MVE-LABEL: vcmp_ugt_v4f32:
508 ; CHECK-MVE: @ %bb.0: @ %entry
509 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
510 ; CHECK-MVE-NEXT: movs r1, #0
511 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
512 ; CHECK-MVE-NEXT: it hi
513 ; CHECK-MVE-NEXT: movhi r1, #1
514 ; CHECK-MVE-NEXT: cmp r1, #0
515 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
516 ; CHECK-MVE-NEXT: it ne
517 ; CHECK-MVE-NEXT: movne r1, #1
518 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
519 ; CHECK-MVE-NEXT: mov.w r2, #0
520 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
521 ; CHECK-MVE-NEXT: it hi
522 ; CHECK-MVE-NEXT: movhi r2, #1
523 ; CHECK-MVE-NEXT: cmp r2, #0
524 ; CHECK-MVE-NEXT: it ne
525 ; CHECK-MVE-NEXT: movne r2, #1
526 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
527 ; CHECK-MVE-NEXT: mov.w r3, #0
528 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
529 ; CHECK-MVE-NEXT: it hi
530 ; CHECK-MVE-NEXT: movhi r3, #1
531 ; CHECK-MVE-NEXT: cmp r3, #0
532 ; CHECK-MVE-NEXT: it ne
533 ; CHECK-MVE-NEXT: movne r3, #1
534 ; CHECK-MVE-NEXT: movs r0, #0
535 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
536 ; CHECK-MVE-NEXT: it hi
537 ; CHECK-MVE-NEXT: movhi r0, #1
538 ; CHECK-MVE-NEXT: cmp r0, #0
539 ; CHECK-MVE-NEXT: it ne
540 ; CHECK-MVE-NEXT: movne r0, #1
541 ; CHECK-MVE-NEXT: cmp r3, #0
542 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
543 ; CHECK-MVE-NEXT: cmp r0, #0
544 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
545 ; CHECK-MVE-NEXT: cmp r1, #0
546 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
547 ; CHECK-MVE-NEXT: cmp r2, #0
548 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
549 ; CHECK-MVE-NEXT: bx lr
551 ; CHECK-MVEFP-LABEL: vcmp_ugt_v4f32:
552 ; CHECK-MVEFP: @ %bb.0: @ %entry
553 ; CHECK-MVEFP-NEXT: vmov r0, s4
554 ; CHECK-MVEFP-NEXT: vdup.32 q1, r0
555 ; CHECK-MVEFP-NEXT: vcmp.f32 ge, q1, q0
556 ; CHECK-MVEFP-NEXT: vpnot
557 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
558 ; CHECK-MVEFP-NEXT: bx lr
560 %i = insertelement <4 x float> undef, float %src2, i32 0
561 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
562 %c = fcmp ugt <4 x float> %src, %sp
563 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
567 define arm_aapcs_vfpcc <4 x float> @vcmp_uge_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
568 ; CHECK-MVE-LABEL: vcmp_uge_v4f32:
569 ; CHECK-MVE: @ %bb.0: @ %entry
570 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
571 ; CHECK-MVE-NEXT: movs r1, #0
572 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
573 ; CHECK-MVE-NEXT: it pl
574 ; CHECK-MVE-NEXT: movpl r1, #1
575 ; CHECK-MVE-NEXT: cmp r1, #0
576 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
577 ; CHECK-MVE-NEXT: it ne
578 ; CHECK-MVE-NEXT: movne r1, #1
579 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
580 ; CHECK-MVE-NEXT: mov.w r2, #0
581 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
582 ; CHECK-MVE-NEXT: it pl
583 ; CHECK-MVE-NEXT: movpl r2, #1
584 ; CHECK-MVE-NEXT: cmp r2, #0
585 ; CHECK-MVE-NEXT: it ne
586 ; CHECK-MVE-NEXT: movne r2, #1
587 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
588 ; CHECK-MVE-NEXT: mov.w r3, #0
589 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
590 ; CHECK-MVE-NEXT: it pl
591 ; CHECK-MVE-NEXT: movpl r3, #1
592 ; CHECK-MVE-NEXT: cmp r3, #0
593 ; CHECK-MVE-NEXT: it ne
594 ; CHECK-MVE-NEXT: movne r3, #1
595 ; CHECK-MVE-NEXT: movs r0, #0
596 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
597 ; CHECK-MVE-NEXT: it pl
598 ; CHECK-MVE-NEXT: movpl r0, #1
599 ; CHECK-MVE-NEXT: cmp r0, #0
600 ; CHECK-MVE-NEXT: it ne
601 ; CHECK-MVE-NEXT: movne r0, #1
602 ; CHECK-MVE-NEXT: cmp r3, #0
603 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
604 ; CHECK-MVE-NEXT: cmp r0, #0
605 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
606 ; CHECK-MVE-NEXT: cmp r1, #0
607 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
608 ; CHECK-MVE-NEXT: cmp r2, #0
609 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
610 ; CHECK-MVE-NEXT: bx lr
612 ; CHECK-MVEFP-LABEL: vcmp_uge_v4f32:
613 ; CHECK-MVEFP: @ %bb.0: @ %entry
614 ; CHECK-MVEFP-NEXT: vmov r0, s4
615 ; CHECK-MVEFP-NEXT: vdup.32 q1, r0
616 ; CHECK-MVEFP-NEXT: vcmp.f32 gt, q1, q0
617 ; CHECK-MVEFP-NEXT: vpnot
618 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
619 ; CHECK-MVEFP-NEXT: bx lr
621 %i = insertelement <4 x float> undef, float %src2, i32 0
622 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
623 %c = fcmp uge <4 x float> %src, %sp
624 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
628 define arm_aapcs_vfpcc <4 x float> @vcmp_ult_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
629 ; CHECK-MVE-LABEL: vcmp_ult_v4f32:
630 ; CHECK-MVE: @ %bb.0: @ %entry
631 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
632 ; CHECK-MVE-NEXT: movs r1, #0
633 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
634 ; CHECK-MVE-NEXT: it lt
635 ; CHECK-MVE-NEXT: movlt r1, #1
636 ; CHECK-MVE-NEXT: cmp r1, #0
637 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
638 ; CHECK-MVE-NEXT: it ne
639 ; CHECK-MVE-NEXT: movne r1, #1
640 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
641 ; CHECK-MVE-NEXT: mov.w r2, #0
642 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
643 ; CHECK-MVE-NEXT: it lt
644 ; CHECK-MVE-NEXT: movlt r2, #1
645 ; CHECK-MVE-NEXT: cmp r2, #0
646 ; CHECK-MVE-NEXT: it ne
647 ; CHECK-MVE-NEXT: movne r2, #1
648 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
649 ; CHECK-MVE-NEXT: mov.w r3, #0
650 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
651 ; CHECK-MVE-NEXT: it lt
652 ; CHECK-MVE-NEXT: movlt r3, #1
653 ; CHECK-MVE-NEXT: cmp r3, #0
654 ; CHECK-MVE-NEXT: it ne
655 ; CHECK-MVE-NEXT: movne r3, #1
656 ; CHECK-MVE-NEXT: movs r0, #0
657 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
658 ; CHECK-MVE-NEXT: it lt
659 ; CHECK-MVE-NEXT: movlt r0, #1
660 ; CHECK-MVE-NEXT: cmp r0, #0
661 ; CHECK-MVE-NEXT: it ne
662 ; CHECK-MVE-NEXT: movne r0, #1
663 ; CHECK-MVE-NEXT: cmp r3, #0
664 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
665 ; CHECK-MVE-NEXT: cmp r0, #0
666 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
667 ; CHECK-MVE-NEXT: cmp r1, #0
668 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
669 ; CHECK-MVE-NEXT: cmp r2, #0
670 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
671 ; CHECK-MVE-NEXT: bx lr
673 ; CHECK-MVEFP-LABEL: vcmp_ult_v4f32:
674 ; CHECK-MVEFP: @ %bb.0: @ %entry
675 ; CHECK-MVEFP-NEXT: vmov r0, s4
676 ; CHECK-MVEFP-NEXT: vcmp.f32 ge, q0, r0
677 ; CHECK-MVEFP-NEXT: vpnot
678 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
679 ; CHECK-MVEFP-NEXT: bx lr
681 %i = insertelement <4 x float> undef, float %src2, i32 0
682 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
683 %c = fcmp ult <4 x float> %src, %sp
684 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
688 define arm_aapcs_vfpcc <4 x float> @vcmp_ule_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
689 ; CHECK-MVE-LABEL: vcmp_ule_v4f32:
690 ; CHECK-MVE: @ %bb.0: @ %entry
691 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
692 ; CHECK-MVE-NEXT: movs r1, #0
693 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
694 ; CHECK-MVE-NEXT: it le
695 ; CHECK-MVE-NEXT: movle r1, #1
696 ; CHECK-MVE-NEXT: cmp r1, #0
697 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
698 ; CHECK-MVE-NEXT: it ne
699 ; CHECK-MVE-NEXT: movne r1, #1
700 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
701 ; CHECK-MVE-NEXT: mov.w r2, #0
702 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
703 ; CHECK-MVE-NEXT: it le
704 ; CHECK-MVE-NEXT: movle r2, #1
705 ; CHECK-MVE-NEXT: cmp r2, #0
706 ; CHECK-MVE-NEXT: it ne
707 ; CHECK-MVE-NEXT: movne r2, #1
708 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
709 ; CHECK-MVE-NEXT: mov.w r3, #0
710 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
711 ; CHECK-MVE-NEXT: it le
712 ; CHECK-MVE-NEXT: movle r3, #1
713 ; CHECK-MVE-NEXT: cmp r3, #0
714 ; CHECK-MVE-NEXT: it ne
715 ; CHECK-MVE-NEXT: movne r3, #1
716 ; CHECK-MVE-NEXT: movs r0, #0
717 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
718 ; CHECK-MVE-NEXT: it le
719 ; CHECK-MVE-NEXT: movle r0, #1
720 ; CHECK-MVE-NEXT: cmp r0, #0
721 ; CHECK-MVE-NEXT: it ne
722 ; CHECK-MVE-NEXT: movne r0, #1
723 ; CHECK-MVE-NEXT: cmp r3, #0
724 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
725 ; CHECK-MVE-NEXT: cmp r0, #0
726 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
727 ; CHECK-MVE-NEXT: cmp r1, #0
728 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
729 ; CHECK-MVE-NEXT: cmp r2, #0
730 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
731 ; CHECK-MVE-NEXT: bx lr
733 ; CHECK-MVEFP-LABEL: vcmp_ule_v4f32:
734 ; CHECK-MVEFP: @ %bb.0: @ %entry
735 ; CHECK-MVEFP-NEXT: vmov r0, s4
736 ; CHECK-MVEFP-NEXT: vcmp.f32 gt, q0, r0
737 ; CHECK-MVEFP-NEXT: vpnot
738 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
739 ; CHECK-MVEFP-NEXT: bx lr
741 %i = insertelement <4 x float> undef, float %src2, i32 0
742 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
743 %c = fcmp ule <4 x float> %src, %sp
744 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
748 define arm_aapcs_vfpcc <4 x float> @vcmp_ord_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
749 ; CHECK-MVE-LABEL: vcmp_ord_v4f32:
750 ; CHECK-MVE: @ %bb.0: @ %entry
751 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
752 ; CHECK-MVE-NEXT: movs r1, #0
753 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
754 ; CHECK-MVE-NEXT: it vc
755 ; CHECK-MVE-NEXT: movvc r1, #1
756 ; CHECK-MVE-NEXT: cmp r1, #0
757 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
758 ; CHECK-MVE-NEXT: it ne
759 ; CHECK-MVE-NEXT: movne r1, #1
760 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
761 ; CHECK-MVE-NEXT: mov.w r2, #0
762 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
763 ; CHECK-MVE-NEXT: it vc
764 ; CHECK-MVE-NEXT: movvc r2, #1
765 ; CHECK-MVE-NEXT: cmp r2, #0
766 ; CHECK-MVE-NEXT: it ne
767 ; CHECK-MVE-NEXT: movne r2, #1
768 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
769 ; CHECK-MVE-NEXT: mov.w r3, #0
770 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
771 ; CHECK-MVE-NEXT: it vc
772 ; CHECK-MVE-NEXT: movvc r3, #1
773 ; CHECK-MVE-NEXT: cmp r3, #0
774 ; CHECK-MVE-NEXT: it ne
775 ; CHECK-MVE-NEXT: movne r3, #1
776 ; CHECK-MVE-NEXT: movs r0, #0
777 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
778 ; CHECK-MVE-NEXT: it vc
779 ; CHECK-MVE-NEXT: movvc r0, #1
780 ; CHECK-MVE-NEXT: cmp r0, #0
781 ; CHECK-MVE-NEXT: it ne
782 ; CHECK-MVE-NEXT: movne r0, #1
783 ; CHECK-MVE-NEXT: cmp r3, #0
784 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
785 ; CHECK-MVE-NEXT: cmp r0, #0
786 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
787 ; CHECK-MVE-NEXT: cmp r1, #0
788 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
789 ; CHECK-MVE-NEXT: cmp r2, #0
790 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
791 ; CHECK-MVE-NEXT: bx lr
793 ; CHECK-MVEFP-LABEL: vcmp_ord_v4f32:
794 ; CHECK-MVEFP: @ %bb.0: @ %entry
795 ; CHECK-MVEFP-NEXT: vmov r0, s4
796 ; CHECK-MVEFP-NEXT: vdup.32 q1, r0
797 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q1, q0
798 ; CHECK-MVEFP-NEXT: vpst
799 ; CHECK-MVEFP-NEXT: vcmpt.f32 lt, q0, r0
800 ; CHECK-MVEFP-NEXT: vpnot
801 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
802 ; CHECK-MVEFP-NEXT: bx lr
804 %i = insertelement <4 x float> undef, float %src2, i32 0
805 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
806 %c = fcmp ord <4 x float> %src, %sp
807 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
811 define arm_aapcs_vfpcc <4 x float> @vcmp_uno_v4f32(<4 x float> %src, float %src2, <4 x float> %a, <4 x float> %b) {
812 ; CHECK-MVE-LABEL: vcmp_uno_v4f32:
813 ; CHECK-MVE: @ %bb.0: @ %entry
814 ; CHECK-MVE-NEXT: vcmpe.f32 s1, s4
815 ; CHECK-MVE-NEXT: movs r1, #0
816 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
817 ; CHECK-MVE-NEXT: it vs
818 ; CHECK-MVE-NEXT: movvs r1, #1
819 ; CHECK-MVE-NEXT: cmp r1, #0
820 ; CHECK-MVE-NEXT: vcmpe.f32 s0, s4
821 ; CHECK-MVE-NEXT: it ne
822 ; CHECK-MVE-NEXT: movne r1, #1
823 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
824 ; CHECK-MVE-NEXT: mov.w r2, #0
825 ; CHECK-MVE-NEXT: vcmpe.f32 s3, s4
826 ; CHECK-MVE-NEXT: it vs
827 ; CHECK-MVE-NEXT: movvs r2, #1
828 ; CHECK-MVE-NEXT: cmp r2, #0
829 ; CHECK-MVE-NEXT: it ne
830 ; CHECK-MVE-NEXT: movne r2, #1
831 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
832 ; CHECK-MVE-NEXT: mov.w r3, #0
833 ; CHECK-MVE-NEXT: vcmpe.f32 s2, s4
834 ; CHECK-MVE-NEXT: it vs
835 ; CHECK-MVE-NEXT: movvs r3, #1
836 ; CHECK-MVE-NEXT: cmp r3, #0
837 ; CHECK-MVE-NEXT: it ne
838 ; CHECK-MVE-NEXT: movne r3, #1
839 ; CHECK-MVE-NEXT: movs r0, #0
840 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
841 ; CHECK-MVE-NEXT: it vs
842 ; CHECK-MVE-NEXT: movvs r0, #1
843 ; CHECK-MVE-NEXT: cmp r0, #0
844 ; CHECK-MVE-NEXT: it ne
845 ; CHECK-MVE-NEXT: movne r0, #1
846 ; CHECK-MVE-NEXT: cmp r3, #0
847 ; CHECK-MVE-NEXT: vseleq.f32 s3, s15, s11
848 ; CHECK-MVE-NEXT: cmp r0, #0
849 ; CHECK-MVE-NEXT: vseleq.f32 s2, s14, s10
850 ; CHECK-MVE-NEXT: cmp r1, #0
851 ; CHECK-MVE-NEXT: vseleq.f32 s1, s13, s9
852 ; CHECK-MVE-NEXT: cmp r2, #0
853 ; CHECK-MVE-NEXT: vseleq.f32 s0, s12, s8
854 ; CHECK-MVE-NEXT: bx lr
856 ; CHECK-MVEFP-LABEL: vcmp_uno_v4f32:
857 ; CHECK-MVEFP: @ %bb.0: @ %entry
858 ; CHECK-MVEFP-NEXT: vmov r0, s4
859 ; CHECK-MVEFP-NEXT: vdup.32 q1, r0
860 ; CHECK-MVEFP-NEXT: vcmp.f32 le, q1, q0
861 ; CHECK-MVEFP-NEXT: vpst
862 ; CHECK-MVEFP-NEXT: vcmpt.f32 lt, q0, r0
863 ; CHECK-MVEFP-NEXT: vpsel q0, q2, q3
864 ; CHECK-MVEFP-NEXT: bx lr
866 %i = insertelement <4 x float> undef, float %src2, i32 0
867 %sp = shufflevector <4 x float> %i, <4 x float> undef, <4 x i32> zeroinitializer
868 %c = fcmp uno <4 x float> %src, %sp
869 %s = select <4 x i1> %c, <4 x float> %a, <4 x float> %b
875 define arm_aapcs_vfpcc <8 x half> @vcmp_oeq_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
876 ; CHECK-MVE-LABEL: vcmp_oeq_v8f16:
877 ; CHECK-MVE: @ %bb.0: @ %entry
878 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
879 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
880 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
881 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
882 ; CHECK-MVE-NEXT: vmov s12, r2
883 ; CHECK-MVE-NEXT: movs r0, #0
884 ; CHECK-MVE-NEXT: vcmp.f16 s12, s16
885 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
886 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
887 ; CHECK-MVE-NEXT: it eq
888 ; CHECK-MVE-NEXT: moveq r0, #1
889 ; CHECK-MVE-NEXT: cmp r0, #0
890 ; CHECK-MVE-NEXT: vmov s12, r2
891 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
892 ; CHECK-MVE-NEXT: it ne
893 ; CHECK-MVE-NEXT: movne r0, #1
894 ; CHECK-MVE-NEXT: vmov s14, r2
895 ; CHECK-MVE-NEXT: cmp r0, #0
896 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
897 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
898 ; CHECK-MVE-NEXT: vmov r0, s12
899 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
900 ; CHECK-MVE-NEXT: vmov s12, r2
901 ; CHECK-MVE-NEXT: movs r2, #0
902 ; CHECK-MVE-NEXT: vcmp.f16 s12, s16
903 ; CHECK-MVE-NEXT: vmov s12, r3
904 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
905 ; CHECK-MVE-NEXT: it eq
906 ; CHECK-MVE-NEXT: moveq r2, #1
907 ; CHECK-MVE-NEXT: cmp r2, #0
908 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
909 ; CHECK-MVE-NEXT: it ne
910 ; CHECK-MVE-NEXT: movne r2, #1
911 ; CHECK-MVE-NEXT: vmov s14, r3
912 ; CHECK-MVE-NEXT: cmp r2, #0
913 ; CHECK-MVE-NEXT: mov.w r1, #0
914 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
915 ; CHECK-MVE-NEXT: vmov r2, s12
916 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
917 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
918 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
919 ; CHECK-MVE-NEXT: vmov s18, r0
920 ; CHECK-MVE-NEXT: movs r0, #0
921 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
922 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
923 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
924 ; CHECK-MVE-NEXT: it eq
925 ; CHECK-MVE-NEXT: moveq r0, #1
926 ; CHECK-MVE-NEXT: cmp r0, #0
927 ; CHECK-MVE-NEXT: vmov s18, r2
928 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
929 ; CHECK-MVE-NEXT: it ne
930 ; CHECK-MVE-NEXT: movne r0, #1
931 ; CHECK-MVE-NEXT: vmov s20, r2
932 ; CHECK-MVE-NEXT: cmp r0, #0
933 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
934 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
935 ; CHECK-MVE-NEXT: vmov r0, s18
936 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
937 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
938 ; CHECK-MVE-NEXT: vmov s18, r0
939 ; CHECK-MVE-NEXT: movs r0, #0
940 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
941 ; CHECK-MVE-NEXT: vmov s18, r2
942 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
943 ; CHECK-MVE-NEXT: it eq
944 ; CHECK-MVE-NEXT: moveq r0, #1
945 ; CHECK-MVE-NEXT: cmp r0, #0
946 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
947 ; CHECK-MVE-NEXT: it ne
948 ; CHECK-MVE-NEXT: movne r0, #1
949 ; CHECK-MVE-NEXT: vmov s20, r2
950 ; CHECK-MVE-NEXT: cmp r0, #0
951 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
952 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
953 ; CHECK-MVE-NEXT: vmov r0, s18
954 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
955 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
956 ; CHECK-MVE-NEXT: vmov s18, r0
957 ; CHECK-MVE-NEXT: movs r0, #0
958 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
959 ; CHECK-MVE-NEXT: vmov s18, r2
960 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
961 ; CHECK-MVE-NEXT: it eq
962 ; CHECK-MVE-NEXT: moveq r0, #1
963 ; CHECK-MVE-NEXT: cmp r0, #0
964 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
965 ; CHECK-MVE-NEXT: it ne
966 ; CHECK-MVE-NEXT: movne r0, #1
967 ; CHECK-MVE-NEXT: vmov s20, r2
968 ; CHECK-MVE-NEXT: cmp r0, #0
969 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
970 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
971 ; CHECK-MVE-NEXT: vmov r0, s18
972 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
973 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
974 ; CHECK-MVE-NEXT: vmov s18, r0
975 ; CHECK-MVE-NEXT: movs r0, #0
976 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
977 ; CHECK-MVE-NEXT: vmov s18, r2
978 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
979 ; CHECK-MVE-NEXT: it eq
980 ; CHECK-MVE-NEXT: moveq r0, #1
981 ; CHECK-MVE-NEXT: cmp r0, #0
982 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
983 ; CHECK-MVE-NEXT: it ne
984 ; CHECK-MVE-NEXT: movne r0, #1
985 ; CHECK-MVE-NEXT: vmov s20, r2
986 ; CHECK-MVE-NEXT: cmp r0, #0
987 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
988 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
989 ; CHECK-MVE-NEXT: vmov r0, s18
990 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
991 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
992 ; CHECK-MVE-NEXT: vmov s18, r0
993 ; CHECK-MVE-NEXT: movs r0, #0
994 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
995 ; CHECK-MVE-NEXT: vmov s18, r2
996 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
997 ; CHECK-MVE-NEXT: it eq
998 ; CHECK-MVE-NEXT: moveq r0, #1
999 ; CHECK-MVE-NEXT: cmp r0, #0
1000 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
1001 ; CHECK-MVE-NEXT: it ne
1002 ; CHECK-MVE-NEXT: movne r0, #1
1003 ; CHECK-MVE-NEXT: vmov s20, r2
1004 ; CHECK-MVE-NEXT: cmp r0, #0
1005 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1006 ; CHECK-MVE-NEXT: vmov r0, s18
1007 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
1008 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
1009 ; CHECK-MVE-NEXT: vmov s0, r0
1010 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
1011 ; CHECK-MVE-NEXT: vcmp.f16 s0, s16
1012 ; CHECK-MVE-NEXT: vmov s0, r0
1013 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1014 ; CHECK-MVE-NEXT: it eq
1015 ; CHECK-MVE-NEXT: moveq r1, #1
1016 ; CHECK-MVE-NEXT: cmp r1, #0
1017 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
1018 ; CHECK-MVE-NEXT: it ne
1019 ; CHECK-MVE-NEXT: movne r1, #1
1020 ; CHECK-MVE-NEXT: vmov s2, r0
1021 ; CHECK-MVE-NEXT: cmp r1, #0
1022 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1023 ; CHECK-MVE-NEXT: vmov r0, s0
1024 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1025 ; CHECK-MVE-NEXT: vmov q0, q3
1026 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
1027 ; CHECK-MVE-NEXT: bx lr
1029 ; CHECK-MVEFP-LABEL: vcmp_oeq_v8f16:
1030 ; CHECK-MVEFP: @ %bb.0: @ %entry
1031 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
1032 ; CHECK-MVEFP-NEXT: vmov r0, s12
1033 ; CHECK-MVEFP-NEXT: vcmp.f16 eq, q0, r0
1034 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1035 ; CHECK-MVEFP-NEXT: bx lr
1037 %src2 = load half, half* %src2p
1038 %i = insertelement <8 x half> undef, half %src2, i32 0
1039 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
1040 %c = fcmp oeq <8 x half> %src, %sp
1041 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1045 define arm_aapcs_vfpcc <8 x half> @vcmp_one_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
1046 ; CHECK-MVE-LABEL: vcmp_one_v8f16:
1047 ; CHECK-MVE: @ %bb.0: @ %entry
1048 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
1049 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
1050 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
1051 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
1052 ; CHECK-MVE-NEXT: vmov s12, r2
1053 ; CHECK-MVE-NEXT: movs r0, #0
1054 ; CHECK-MVE-NEXT: vcmp.f16 s12, s16
1055 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
1056 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1057 ; CHECK-MVE-NEXT: it mi
1058 ; CHECK-MVE-NEXT: movmi r0, #1
1059 ; CHECK-MVE-NEXT: it gt
1060 ; CHECK-MVE-NEXT: movgt r0, #1
1061 ; CHECK-MVE-NEXT: cmp r0, #0
1062 ; CHECK-MVE-NEXT: vmov s12, r2
1063 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
1064 ; CHECK-MVE-NEXT: it ne
1065 ; CHECK-MVE-NEXT: movne r0, #1
1066 ; CHECK-MVE-NEXT: vmov s14, r2
1067 ; CHECK-MVE-NEXT: cmp r0, #0
1068 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
1069 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1070 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
1071 ; CHECK-MVE-NEXT: vmov r0, s12
1072 ; CHECK-MVE-NEXT: movs r1, #0
1073 ; CHECK-MVE-NEXT: vmov s12, r2
1074 ; CHECK-MVE-NEXT: movs r2, #0
1075 ; CHECK-MVE-NEXT: vcmp.f16 s12, s16
1076 ; CHECK-MVE-NEXT: vmov s12, r3
1077 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1078 ; CHECK-MVE-NEXT: it mi
1079 ; CHECK-MVE-NEXT: movmi r2, #1
1080 ; CHECK-MVE-NEXT: it gt
1081 ; CHECK-MVE-NEXT: movgt r2, #1
1082 ; CHECK-MVE-NEXT: cmp r2, #0
1083 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
1084 ; CHECK-MVE-NEXT: it ne
1085 ; CHECK-MVE-NEXT: movne r2, #1
1086 ; CHECK-MVE-NEXT: vmov s14, r3
1087 ; CHECK-MVE-NEXT: cmp r2, #0
1088 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1089 ; CHECK-MVE-NEXT: vmov r2, s12
1090 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
1091 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
1092 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
1093 ; CHECK-MVE-NEXT: vmov s18, r0
1094 ; CHECK-MVE-NEXT: movs r0, #0
1095 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
1096 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
1097 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1098 ; CHECK-MVE-NEXT: it mi
1099 ; CHECK-MVE-NEXT: movmi r0, #1
1100 ; CHECK-MVE-NEXT: it gt
1101 ; CHECK-MVE-NEXT: movgt r0, #1
1102 ; CHECK-MVE-NEXT: cmp r0, #0
1103 ; CHECK-MVE-NEXT: vmov s18, r2
1104 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
1105 ; CHECK-MVE-NEXT: it ne
1106 ; CHECK-MVE-NEXT: movne r0, #1
1107 ; CHECK-MVE-NEXT: vmov s20, r2
1108 ; CHECK-MVE-NEXT: cmp r0, #0
1109 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
1110 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1111 ; CHECK-MVE-NEXT: vmov r0, s18
1112 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
1113 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
1114 ; CHECK-MVE-NEXT: vmov s18, r0
1115 ; CHECK-MVE-NEXT: movs r0, #0
1116 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
1117 ; CHECK-MVE-NEXT: vmov s18, r2
1118 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1119 ; CHECK-MVE-NEXT: it mi
1120 ; CHECK-MVE-NEXT: movmi r0, #1
1121 ; CHECK-MVE-NEXT: it gt
1122 ; CHECK-MVE-NEXT: movgt r0, #1
1123 ; CHECK-MVE-NEXT: cmp r0, #0
1124 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
1125 ; CHECK-MVE-NEXT: it ne
1126 ; CHECK-MVE-NEXT: movne r0, #1
1127 ; CHECK-MVE-NEXT: vmov s20, r2
1128 ; CHECK-MVE-NEXT: cmp r0, #0
1129 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1130 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
1131 ; CHECK-MVE-NEXT: vmov r0, s18
1132 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
1133 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
1134 ; CHECK-MVE-NEXT: vmov s18, r0
1135 ; CHECK-MVE-NEXT: movs r0, #0
1136 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
1137 ; CHECK-MVE-NEXT: vmov s18, r2
1138 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1139 ; CHECK-MVE-NEXT: it mi
1140 ; CHECK-MVE-NEXT: movmi r0, #1
1141 ; CHECK-MVE-NEXT: it gt
1142 ; CHECK-MVE-NEXT: movgt r0, #1
1143 ; CHECK-MVE-NEXT: cmp r0, #0
1144 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
1145 ; CHECK-MVE-NEXT: it ne
1146 ; CHECK-MVE-NEXT: movne r0, #1
1147 ; CHECK-MVE-NEXT: vmov s20, r2
1148 ; CHECK-MVE-NEXT: cmp r0, #0
1149 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1150 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
1151 ; CHECK-MVE-NEXT: vmov r0, s18
1152 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
1153 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
1154 ; CHECK-MVE-NEXT: vmov s18, r0
1155 ; CHECK-MVE-NEXT: movs r0, #0
1156 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
1157 ; CHECK-MVE-NEXT: vmov s18, r2
1158 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1159 ; CHECK-MVE-NEXT: it mi
1160 ; CHECK-MVE-NEXT: movmi r0, #1
1161 ; CHECK-MVE-NEXT: it gt
1162 ; CHECK-MVE-NEXT: movgt r0, #1
1163 ; CHECK-MVE-NEXT: cmp r0, #0
1164 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
1165 ; CHECK-MVE-NEXT: it ne
1166 ; CHECK-MVE-NEXT: movne r0, #1
1167 ; CHECK-MVE-NEXT: vmov s20, r2
1168 ; CHECK-MVE-NEXT: cmp r0, #0
1169 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1170 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
1171 ; CHECK-MVE-NEXT: vmov r0, s18
1172 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
1173 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
1174 ; CHECK-MVE-NEXT: vmov s18, r0
1175 ; CHECK-MVE-NEXT: movs r0, #0
1176 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
1177 ; CHECK-MVE-NEXT: vmov s18, r2
1178 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1179 ; CHECK-MVE-NEXT: it mi
1180 ; CHECK-MVE-NEXT: movmi r0, #1
1181 ; CHECK-MVE-NEXT: it gt
1182 ; CHECK-MVE-NEXT: movgt r0, #1
1183 ; CHECK-MVE-NEXT: cmp r0, #0
1184 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
1185 ; CHECK-MVE-NEXT: it ne
1186 ; CHECK-MVE-NEXT: movne r0, #1
1187 ; CHECK-MVE-NEXT: vmov s20, r2
1188 ; CHECK-MVE-NEXT: cmp r0, #0
1189 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1190 ; CHECK-MVE-NEXT: vmov r0, s18
1191 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
1192 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
1193 ; CHECK-MVE-NEXT: vmov s0, r0
1194 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
1195 ; CHECK-MVE-NEXT: vcmp.f16 s0, s16
1196 ; CHECK-MVE-NEXT: vmov s0, r0
1197 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1198 ; CHECK-MVE-NEXT: it mi
1199 ; CHECK-MVE-NEXT: movmi r1, #1
1200 ; CHECK-MVE-NEXT: it gt
1201 ; CHECK-MVE-NEXT: movgt r1, #1
1202 ; CHECK-MVE-NEXT: cmp r1, #0
1203 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
1204 ; CHECK-MVE-NEXT: it ne
1205 ; CHECK-MVE-NEXT: movne r1, #1
1206 ; CHECK-MVE-NEXT: vmov s2, r0
1207 ; CHECK-MVE-NEXT: cmp r1, #0
1208 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1209 ; CHECK-MVE-NEXT: vmov r0, s0
1210 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1211 ; CHECK-MVE-NEXT: vmov q0, q3
1212 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
1213 ; CHECK-MVE-NEXT: bx lr
1215 ; CHECK-MVEFP-LABEL: vcmp_one_v8f16:
1216 ; CHECK-MVEFP: @ %bb.0: @ %entry
1217 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
1218 ; CHECK-MVEFP-NEXT: vmov r0, s12
1219 ; CHECK-MVEFP-NEXT: vdup.16 q3, r0
1220 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q3, q0
1221 ; CHECK-MVEFP-NEXT: vpst
1222 ; CHECK-MVEFP-NEXT: vcmpt.f16 le, q0, r0
1223 ; CHECK-MVEFP-NEXT: vpnot
1224 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1225 ; CHECK-MVEFP-NEXT: bx lr
1227 %src2 = load half, half* %src2p
1228 %i = insertelement <8 x half> undef, half %src2, i32 0
1229 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
1230 %c = fcmp one <8 x half> %src, %sp
1231 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1235 define arm_aapcs_vfpcc <8 x half> @vcmp_ogt_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
1236 ; CHECK-MVE-LABEL: vcmp_ogt_v8f16:
1237 ; CHECK-MVE: @ %bb.0: @ %entry
1238 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
1239 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
1240 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
1241 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
1242 ; CHECK-MVE-NEXT: vmov s12, r2
1243 ; CHECK-MVE-NEXT: movs r0, #0
1244 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
1245 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
1246 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1247 ; CHECK-MVE-NEXT: it gt
1248 ; CHECK-MVE-NEXT: movgt r0, #1
1249 ; CHECK-MVE-NEXT: cmp r0, #0
1250 ; CHECK-MVE-NEXT: vmov s12, r2
1251 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
1252 ; CHECK-MVE-NEXT: it ne
1253 ; CHECK-MVE-NEXT: movne r0, #1
1254 ; CHECK-MVE-NEXT: vmov s14, r2
1255 ; CHECK-MVE-NEXT: cmp r0, #0
1256 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1257 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
1258 ; CHECK-MVE-NEXT: vmov r0, s12
1259 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
1260 ; CHECK-MVE-NEXT: vmov s12, r2
1261 ; CHECK-MVE-NEXT: movs r2, #0
1262 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
1263 ; CHECK-MVE-NEXT: vmov s12, r3
1264 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1265 ; CHECK-MVE-NEXT: it gt
1266 ; CHECK-MVE-NEXT: movgt r2, #1
1267 ; CHECK-MVE-NEXT: cmp r2, #0
1268 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
1269 ; CHECK-MVE-NEXT: it ne
1270 ; CHECK-MVE-NEXT: movne r2, #1
1271 ; CHECK-MVE-NEXT: vmov s14, r3
1272 ; CHECK-MVE-NEXT: cmp r2, #0
1273 ; CHECK-MVE-NEXT: mov.w r1, #0
1274 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1275 ; CHECK-MVE-NEXT: vmov r2, s12
1276 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
1277 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
1278 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
1279 ; CHECK-MVE-NEXT: vmov s18, r0
1280 ; CHECK-MVE-NEXT: movs r0, #0
1281 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1282 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
1283 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1284 ; CHECK-MVE-NEXT: it gt
1285 ; CHECK-MVE-NEXT: movgt r0, #1
1286 ; CHECK-MVE-NEXT: cmp r0, #0
1287 ; CHECK-MVE-NEXT: vmov s18, r2
1288 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
1289 ; CHECK-MVE-NEXT: it ne
1290 ; CHECK-MVE-NEXT: movne r0, #1
1291 ; CHECK-MVE-NEXT: vmov s20, r2
1292 ; CHECK-MVE-NEXT: cmp r0, #0
1293 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1294 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
1295 ; CHECK-MVE-NEXT: vmov r0, s18
1296 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
1297 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
1298 ; CHECK-MVE-NEXT: vmov s18, r0
1299 ; CHECK-MVE-NEXT: movs r0, #0
1300 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1301 ; CHECK-MVE-NEXT: vmov s18, r2
1302 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1303 ; CHECK-MVE-NEXT: it gt
1304 ; CHECK-MVE-NEXT: movgt r0, #1
1305 ; CHECK-MVE-NEXT: cmp r0, #0
1306 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
1307 ; CHECK-MVE-NEXT: it ne
1308 ; CHECK-MVE-NEXT: movne r0, #1
1309 ; CHECK-MVE-NEXT: vmov s20, r2
1310 ; CHECK-MVE-NEXT: cmp r0, #0
1311 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
1312 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1313 ; CHECK-MVE-NEXT: vmov r0, s18
1314 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
1315 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
1316 ; CHECK-MVE-NEXT: vmov s18, r0
1317 ; CHECK-MVE-NEXT: movs r0, #0
1318 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1319 ; CHECK-MVE-NEXT: vmov s18, r2
1320 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1321 ; CHECK-MVE-NEXT: it gt
1322 ; CHECK-MVE-NEXT: movgt r0, #1
1323 ; CHECK-MVE-NEXT: cmp r0, #0
1324 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
1325 ; CHECK-MVE-NEXT: it ne
1326 ; CHECK-MVE-NEXT: movne r0, #1
1327 ; CHECK-MVE-NEXT: vmov s20, r2
1328 ; CHECK-MVE-NEXT: cmp r0, #0
1329 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
1330 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1331 ; CHECK-MVE-NEXT: vmov r0, s18
1332 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
1333 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
1334 ; CHECK-MVE-NEXT: vmov s18, r0
1335 ; CHECK-MVE-NEXT: movs r0, #0
1336 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1337 ; CHECK-MVE-NEXT: vmov s18, r2
1338 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1339 ; CHECK-MVE-NEXT: it gt
1340 ; CHECK-MVE-NEXT: movgt r0, #1
1341 ; CHECK-MVE-NEXT: cmp r0, #0
1342 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
1343 ; CHECK-MVE-NEXT: it ne
1344 ; CHECK-MVE-NEXT: movne r0, #1
1345 ; CHECK-MVE-NEXT: vmov s20, r2
1346 ; CHECK-MVE-NEXT: cmp r0, #0
1347 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
1348 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1349 ; CHECK-MVE-NEXT: vmov r0, s18
1350 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
1351 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
1352 ; CHECK-MVE-NEXT: vmov s18, r0
1353 ; CHECK-MVE-NEXT: movs r0, #0
1354 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1355 ; CHECK-MVE-NEXT: vmov s18, r2
1356 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1357 ; CHECK-MVE-NEXT: it gt
1358 ; CHECK-MVE-NEXT: movgt r0, #1
1359 ; CHECK-MVE-NEXT: cmp r0, #0
1360 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
1361 ; CHECK-MVE-NEXT: it ne
1362 ; CHECK-MVE-NEXT: movne r0, #1
1363 ; CHECK-MVE-NEXT: vmov s20, r2
1364 ; CHECK-MVE-NEXT: cmp r0, #0
1365 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1366 ; CHECK-MVE-NEXT: vmov r0, s18
1367 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
1368 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
1369 ; CHECK-MVE-NEXT: vmov s0, r0
1370 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
1371 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
1372 ; CHECK-MVE-NEXT: vmov s0, r0
1373 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1374 ; CHECK-MVE-NEXT: it gt
1375 ; CHECK-MVE-NEXT: movgt r1, #1
1376 ; CHECK-MVE-NEXT: cmp r1, #0
1377 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
1378 ; CHECK-MVE-NEXT: it ne
1379 ; CHECK-MVE-NEXT: movne r1, #1
1380 ; CHECK-MVE-NEXT: vmov s2, r0
1381 ; CHECK-MVE-NEXT: cmp r1, #0
1382 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1383 ; CHECK-MVE-NEXT: vmov r0, s0
1384 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1385 ; CHECK-MVE-NEXT: vmov q0, q3
1386 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
1387 ; CHECK-MVE-NEXT: bx lr
1389 ; CHECK-MVEFP-LABEL: vcmp_ogt_v8f16:
1390 ; CHECK-MVEFP: @ %bb.0: @ %entry
1391 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
1392 ; CHECK-MVEFP-NEXT: vmov r0, s12
1393 ; CHECK-MVEFP-NEXT: vcmp.f16 gt, q0, r0
1394 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1395 ; CHECK-MVEFP-NEXT: bx lr
1397 %src2 = load half, half* %src2p
1398 %i = insertelement <8 x half> undef, half %src2, i32 0
1399 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
1400 %c = fcmp ogt <8 x half> %src, %sp
1401 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1405 define arm_aapcs_vfpcc <8 x half> @vcmp_oge_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
1406 ; CHECK-MVE-LABEL: vcmp_oge_v8f16:
1407 ; CHECK-MVE: @ %bb.0: @ %entry
1408 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
1409 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
1410 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
1411 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
1412 ; CHECK-MVE-NEXT: vmov s12, r2
1413 ; CHECK-MVE-NEXT: movs r0, #0
1414 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
1415 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
1416 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1417 ; CHECK-MVE-NEXT: it ge
1418 ; CHECK-MVE-NEXT: movge r0, #1
1419 ; CHECK-MVE-NEXT: cmp r0, #0
1420 ; CHECK-MVE-NEXT: vmov s12, r2
1421 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
1422 ; CHECK-MVE-NEXT: it ne
1423 ; CHECK-MVE-NEXT: movne r0, #1
1424 ; CHECK-MVE-NEXT: vmov s14, r2
1425 ; CHECK-MVE-NEXT: cmp r0, #0
1426 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1427 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
1428 ; CHECK-MVE-NEXT: vmov r0, s12
1429 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
1430 ; CHECK-MVE-NEXT: vmov s12, r2
1431 ; CHECK-MVE-NEXT: movs r2, #0
1432 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
1433 ; CHECK-MVE-NEXT: vmov s12, r3
1434 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1435 ; CHECK-MVE-NEXT: it ge
1436 ; CHECK-MVE-NEXT: movge r2, #1
1437 ; CHECK-MVE-NEXT: cmp r2, #0
1438 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
1439 ; CHECK-MVE-NEXT: it ne
1440 ; CHECK-MVE-NEXT: movne r2, #1
1441 ; CHECK-MVE-NEXT: vmov s14, r3
1442 ; CHECK-MVE-NEXT: cmp r2, #0
1443 ; CHECK-MVE-NEXT: mov.w r1, #0
1444 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1445 ; CHECK-MVE-NEXT: vmov r2, s12
1446 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
1447 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
1448 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
1449 ; CHECK-MVE-NEXT: vmov s18, r0
1450 ; CHECK-MVE-NEXT: movs r0, #0
1451 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1452 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
1453 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1454 ; CHECK-MVE-NEXT: it ge
1455 ; CHECK-MVE-NEXT: movge r0, #1
1456 ; CHECK-MVE-NEXT: cmp r0, #0
1457 ; CHECK-MVE-NEXT: vmov s18, r2
1458 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
1459 ; CHECK-MVE-NEXT: it ne
1460 ; CHECK-MVE-NEXT: movne r0, #1
1461 ; CHECK-MVE-NEXT: vmov s20, r2
1462 ; CHECK-MVE-NEXT: cmp r0, #0
1463 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1464 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
1465 ; CHECK-MVE-NEXT: vmov r0, s18
1466 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
1467 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
1468 ; CHECK-MVE-NEXT: vmov s18, r0
1469 ; CHECK-MVE-NEXT: movs r0, #0
1470 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1471 ; CHECK-MVE-NEXT: vmov s18, r2
1472 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1473 ; CHECK-MVE-NEXT: it ge
1474 ; CHECK-MVE-NEXT: movge r0, #1
1475 ; CHECK-MVE-NEXT: cmp r0, #0
1476 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
1477 ; CHECK-MVE-NEXT: it ne
1478 ; CHECK-MVE-NEXT: movne r0, #1
1479 ; CHECK-MVE-NEXT: vmov s20, r2
1480 ; CHECK-MVE-NEXT: cmp r0, #0
1481 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
1482 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1483 ; CHECK-MVE-NEXT: vmov r0, s18
1484 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
1485 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
1486 ; CHECK-MVE-NEXT: vmov s18, r0
1487 ; CHECK-MVE-NEXT: movs r0, #0
1488 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1489 ; CHECK-MVE-NEXT: vmov s18, r2
1490 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1491 ; CHECK-MVE-NEXT: it ge
1492 ; CHECK-MVE-NEXT: movge r0, #1
1493 ; CHECK-MVE-NEXT: cmp r0, #0
1494 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
1495 ; CHECK-MVE-NEXT: it ne
1496 ; CHECK-MVE-NEXT: movne r0, #1
1497 ; CHECK-MVE-NEXT: vmov s20, r2
1498 ; CHECK-MVE-NEXT: cmp r0, #0
1499 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
1500 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1501 ; CHECK-MVE-NEXT: vmov r0, s18
1502 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
1503 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
1504 ; CHECK-MVE-NEXT: vmov s18, r0
1505 ; CHECK-MVE-NEXT: movs r0, #0
1506 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1507 ; CHECK-MVE-NEXT: vmov s18, r2
1508 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1509 ; CHECK-MVE-NEXT: it ge
1510 ; CHECK-MVE-NEXT: movge r0, #1
1511 ; CHECK-MVE-NEXT: cmp r0, #0
1512 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
1513 ; CHECK-MVE-NEXT: it ne
1514 ; CHECK-MVE-NEXT: movne r0, #1
1515 ; CHECK-MVE-NEXT: vmov s20, r2
1516 ; CHECK-MVE-NEXT: cmp r0, #0
1517 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
1518 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1519 ; CHECK-MVE-NEXT: vmov r0, s18
1520 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
1521 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
1522 ; CHECK-MVE-NEXT: vmov s18, r0
1523 ; CHECK-MVE-NEXT: movs r0, #0
1524 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1525 ; CHECK-MVE-NEXT: vmov s18, r2
1526 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1527 ; CHECK-MVE-NEXT: it ge
1528 ; CHECK-MVE-NEXT: movge r0, #1
1529 ; CHECK-MVE-NEXT: cmp r0, #0
1530 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
1531 ; CHECK-MVE-NEXT: it ne
1532 ; CHECK-MVE-NEXT: movne r0, #1
1533 ; CHECK-MVE-NEXT: vmov s20, r2
1534 ; CHECK-MVE-NEXT: cmp r0, #0
1535 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1536 ; CHECK-MVE-NEXT: vmov r0, s18
1537 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
1538 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
1539 ; CHECK-MVE-NEXT: vmov s0, r0
1540 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
1541 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
1542 ; CHECK-MVE-NEXT: vmov s0, r0
1543 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1544 ; CHECK-MVE-NEXT: it ge
1545 ; CHECK-MVE-NEXT: movge r1, #1
1546 ; CHECK-MVE-NEXT: cmp r1, #0
1547 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
1548 ; CHECK-MVE-NEXT: it ne
1549 ; CHECK-MVE-NEXT: movne r1, #1
1550 ; CHECK-MVE-NEXT: vmov s2, r0
1551 ; CHECK-MVE-NEXT: cmp r1, #0
1552 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1553 ; CHECK-MVE-NEXT: vmov r0, s0
1554 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1555 ; CHECK-MVE-NEXT: vmov q0, q3
1556 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
1557 ; CHECK-MVE-NEXT: bx lr
1559 ; CHECK-MVEFP-LABEL: vcmp_oge_v8f16:
1560 ; CHECK-MVEFP: @ %bb.0: @ %entry
1561 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
1562 ; CHECK-MVEFP-NEXT: vmov r0, s12
1563 ; CHECK-MVEFP-NEXT: vcmp.f16 ge, q0, r0
1564 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1565 ; CHECK-MVEFP-NEXT: bx lr
1567 %src2 = load half, half* %src2p
1568 %i = insertelement <8 x half> undef, half %src2, i32 0
1569 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
1570 %c = fcmp oge <8 x half> %src, %sp
1571 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1575 define arm_aapcs_vfpcc <8 x half> @vcmp_olt_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
1576 ; CHECK-MVE-LABEL: vcmp_olt_v8f16:
1577 ; CHECK-MVE: @ %bb.0: @ %entry
1578 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
1579 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
1580 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
1581 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
1582 ; CHECK-MVE-NEXT: vmov s12, r2
1583 ; CHECK-MVE-NEXT: movs r0, #0
1584 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
1585 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
1586 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1587 ; CHECK-MVE-NEXT: it mi
1588 ; CHECK-MVE-NEXT: movmi r0, #1
1589 ; CHECK-MVE-NEXT: cmp r0, #0
1590 ; CHECK-MVE-NEXT: vmov s12, r2
1591 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
1592 ; CHECK-MVE-NEXT: it ne
1593 ; CHECK-MVE-NEXT: movne r0, #1
1594 ; CHECK-MVE-NEXT: vmov s14, r2
1595 ; CHECK-MVE-NEXT: cmp r0, #0
1596 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1597 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
1598 ; CHECK-MVE-NEXT: vmov r0, s12
1599 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
1600 ; CHECK-MVE-NEXT: vmov s12, r2
1601 ; CHECK-MVE-NEXT: movs r2, #0
1602 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
1603 ; CHECK-MVE-NEXT: vmov s12, r3
1604 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1605 ; CHECK-MVE-NEXT: it mi
1606 ; CHECK-MVE-NEXT: movmi r2, #1
1607 ; CHECK-MVE-NEXT: cmp r2, #0
1608 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
1609 ; CHECK-MVE-NEXT: it ne
1610 ; CHECK-MVE-NEXT: movne r2, #1
1611 ; CHECK-MVE-NEXT: vmov s14, r3
1612 ; CHECK-MVE-NEXT: cmp r2, #0
1613 ; CHECK-MVE-NEXT: mov.w r1, #0
1614 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1615 ; CHECK-MVE-NEXT: vmov r2, s12
1616 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
1617 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
1618 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
1619 ; CHECK-MVE-NEXT: vmov s18, r0
1620 ; CHECK-MVE-NEXT: movs r0, #0
1621 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1622 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
1623 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1624 ; CHECK-MVE-NEXT: it mi
1625 ; CHECK-MVE-NEXT: movmi r0, #1
1626 ; CHECK-MVE-NEXT: cmp r0, #0
1627 ; CHECK-MVE-NEXT: vmov s18, r2
1628 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
1629 ; CHECK-MVE-NEXT: it ne
1630 ; CHECK-MVE-NEXT: movne r0, #1
1631 ; CHECK-MVE-NEXT: vmov s20, r2
1632 ; CHECK-MVE-NEXT: cmp r0, #0
1633 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1634 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
1635 ; CHECK-MVE-NEXT: vmov r0, s18
1636 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
1637 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
1638 ; CHECK-MVE-NEXT: vmov s18, r0
1639 ; CHECK-MVE-NEXT: movs r0, #0
1640 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1641 ; CHECK-MVE-NEXT: vmov s18, r2
1642 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1643 ; CHECK-MVE-NEXT: it mi
1644 ; CHECK-MVE-NEXT: movmi r0, #1
1645 ; CHECK-MVE-NEXT: cmp r0, #0
1646 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
1647 ; CHECK-MVE-NEXT: it ne
1648 ; CHECK-MVE-NEXT: movne r0, #1
1649 ; CHECK-MVE-NEXT: vmov s20, r2
1650 ; CHECK-MVE-NEXT: cmp r0, #0
1651 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
1652 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1653 ; CHECK-MVE-NEXT: vmov r0, s18
1654 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
1655 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
1656 ; CHECK-MVE-NEXT: vmov s18, r0
1657 ; CHECK-MVE-NEXT: movs r0, #0
1658 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1659 ; CHECK-MVE-NEXT: vmov s18, r2
1660 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1661 ; CHECK-MVE-NEXT: it mi
1662 ; CHECK-MVE-NEXT: movmi r0, #1
1663 ; CHECK-MVE-NEXT: cmp r0, #0
1664 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
1665 ; CHECK-MVE-NEXT: it ne
1666 ; CHECK-MVE-NEXT: movne r0, #1
1667 ; CHECK-MVE-NEXT: vmov s20, r2
1668 ; CHECK-MVE-NEXT: cmp r0, #0
1669 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
1670 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1671 ; CHECK-MVE-NEXT: vmov r0, s18
1672 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
1673 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
1674 ; CHECK-MVE-NEXT: vmov s18, r0
1675 ; CHECK-MVE-NEXT: movs r0, #0
1676 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1677 ; CHECK-MVE-NEXT: vmov s18, r2
1678 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1679 ; CHECK-MVE-NEXT: it mi
1680 ; CHECK-MVE-NEXT: movmi r0, #1
1681 ; CHECK-MVE-NEXT: cmp r0, #0
1682 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
1683 ; CHECK-MVE-NEXT: it ne
1684 ; CHECK-MVE-NEXT: movne r0, #1
1685 ; CHECK-MVE-NEXT: vmov s20, r2
1686 ; CHECK-MVE-NEXT: cmp r0, #0
1687 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
1688 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1689 ; CHECK-MVE-NEXT: vmov r0, s18
1690 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
1691 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
1692 ; CHECK-MVE-NEXT: vmov s18, r0
1693 ; CHECK-MVE-NEXT: movs r0, #0
1694 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1695 ; CHECK-MVE-NEXT: vmov s18, r2
1696 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1697 ; CHECK-MVE-NEXT: it mi
1698 ; CHECK-MVE-NEXT: movmi r0, #1
1699 ; CHECK-MVE-NEXT: cmp r0, #0
1700 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
1701 ; CHECK-MVE-NEXT: it ne
1702 ; CHECK-MVE-NEXT: movne r0, #1
1703 ; CHECK-MVE-NEXT: vmov s20, r2
1704 ; CHECK-MVE-NEXT: cmp r0, #0
1705 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1706 ; CHECK-MVE-NEXT: vmov r0, s18
1707 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
1708 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
1709 ; CHECK-MVE-NEXT: vmov s0, r0
1710 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
1711 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
1712 ; CHECK-MVE-NEXT: vmov s0, r0
1713 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1714 ; CHECK-MVE-NEXT: it mi
1715 ; CHECK-MVE-NEXT: movmi r1, #1
1716 ; CHECK-MVE-NEXT: cmp r1, #0
1717 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
1718 ; CHECK-MVE-NEXT: it ne
1719 ; CHECK-MVE-NEXT: movne r1, #1
1720 ; CHECK-MVE-NEXT: vmov s2, r0
1721 ; CHECK-MVE-NEXT: cmp r1, #0
1722 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1723 ; CHECK-MVE-NEXT: vmov r0, s0
1724 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1725 ; CHECK-MVE-NEXT: vmov q0, q3
1726 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
1727 ; CHECK-MVE-NEXT: bx lr
1729 ; CHECK-MVEFP-LABEL: vcmp_olt_v8f16:
1730 ; CHECK-MVEFP: @ %bb.0: @ %entry
1731 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
1732 ; CHECK-MVEFP-NEXT: vmov r0, s12
1733 ; CHECK-MVEFP-NEXT: vdup.16 q3, r0
1734 ; CHECK-MVEFP-NEXT: vcmp.f16 gt, q3, q0
1735 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1736 ; CHECK-MVEFP-NEXT: bx lr
1738 %src2 = load half, half* %src2p
1739 %i = insertelement <8 x half> undef, half %src2, i32 0
1740 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
1741 %c = fcmp olt <8 x half> %src, %sp
1742 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1746 define arm_aapcs_vfpcc <8 x half> @vcmp_ole_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
1747 ; CHECK-MVE-LABEL: vcmp_ole_v8f16:
1748 ; CHECK-MVE: @ %bb.0: @ %entry
1749 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
1750 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
1751 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
1752 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
1753 ; CHECK-MVE-NEXT: vmov s12, r2
1754 ; CHECK-MVE-NEXT: movs r0, #0
1755 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
1756 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
1757 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1758 ; CHECK-MVE-NEXT: it ls
1759 ; CHECK-MVE-NEXT: movls r0, #1
1760 ; CHECK-MVE-NEXT: cmp r0, #0
1761 ; CHECK-MVE-NEXT: vmov s12, r2
1762 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
1763 ; CHECK-MVE-NEXT: it ne
1764 ; CHECK-MVE-NEXT: movne r0, #1
1765 ; CHECK-MVE-NEXT: vmov s14, r2
1766 ; CHECK-MVE-NEXT: cmp r0, #0
1767 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1768 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
1769 ; CHECK-MVE-NEXT: vmov r0, s12
1770 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
1771 ; CHECK-MVE-NEXT: vmov s12, r2
1772 ; CHECK-MVE-NEXT: movs r2, #0
1773 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
1774 ; CHECK-MVE-NEXT: vmov s12, r3
1775 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1776 ; CHECK-MVE-NEXT: it ls
1777 ; CHECK-MVE-NEXT: movls r2, #1
1778 ; CHECK-MVE-NEXT: cmp r2, #0
1779 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
1780 ; CHECK-MVE-NEXT: it ne
1781 ; CHECK-MVE-NEXT: movne r2, #1
1782 ; CHECK-MVE-NEXT: vmov s14, r3
1783 ; CHECK-MVE-NEXT: cmp r2, #0
1784 ; CHECK-MVE-NEXT: mov.w r1, #0
1785 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1786 ; CHECK-MVE-NEXT: vmov r2, s12
1787 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
1788 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
1789 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
1790 ; CHECK-MVE-NEXT: vmov s18, r0
1791 ; CHECK-MVE-NEXT: movs r0, #0
1792 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1793 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
1794 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1795 ; CHECK-MVE-NEXT: it ls
1796 ; CHECK-MVE-NEXT: movls r0, #1
1797 ; CHECK-MVE-NEXT: cmp r0, #0
1798 ; CHECK-MVE-NEXT: vmov s18, r2
1799 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
1800 ; CHECK-MVE-NEXT: it ne
1801 ; CHECK-MVE-NEXT: movne r0, #1
1802 ; CHECK-MVE-NEXT: vmov s20, r2
1803 ; CHECK-MVE-NEXT: cmp r0, #0
1804 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1805 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
1806 ; CHECK-MVE-NEXT: vmov r0, s18
1807 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
1808 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
1809 ; CHECK-MVE-NEXT: vmov s18, r0
1810 ; CHECK-MVE-NEXT: movs r0, #0
1811 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1812 ; CHECK-MVE-NEXT: vmov s18, r2
1813 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1814 ; CHECK-MVE-NEXT: it ls
1815 ; CHECK-MVE-NEXT: movls r0, #1
1816 ; CHECK-MVE-NEXT: cmp r0, #0
1817 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
1818 ; CHECK-MVE-NEXT: it ne
1819 ; CHECK-MVE-NEXT: movne r0, #1
1820 ; CHECK-MVE-NEXT: vmov s20, r2
1821 ; CHECK-MVE-NEXT: cmp r0, #0
1822 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
1823 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1824 ; CHECK-MVE-NEXT: vmov r0, s18
1825 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
1826 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
1827 ; CHECK-MVE-NEXT: vmov s18, r0
1828 ; CHECK-MVE-NEXT: movs r0, #0
1829 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1830 ; CHECK-MVE-NEXT: vmov s18, r2
1831 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1832 ; CHECK-MVE-NEXT: it ls
1833 ; CHECK-MVE-NEXT: movls r0, #1
1834 ; CHECK-MVE-NEXT: cmp r0, #0
1835 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
1836 ; CHECK-MVE-NEXT: it ne
1837 ; CHECK-MVE-NEXT: movne r0, #1
1838 ; CHECK-MVE-NEXT: vmov s20, r2
1839 ; CHECK-MVE-NEXT: cmp r0, #0
1840 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
1841 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1842 ; CHECK-MVE-NEXT: vmov r0, s18
1843 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
1844 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
1845 ; CHECK-MVE-NEXT: vmov s18, r0
1846 ; CHECK-MVE-NEXT: movs r0, #0
1847 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1848 ; CHECK-MVE-NEXT: vmov s18, r2
1849 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1850 ; CHECK-MVE-NEXT: it ls
1851 ; CHECK-MVE-NEXT: movls r0, #1
1852 ; CHECK-MVE-NEXT: cmp r0, #0
1853 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
1854 ; CHECK-MVE-NEXT: it ne
1855 ; CHECK-MVE-NEXT: movne r0, #1
1856 ; CHECK-MVE-NEXT: vmov s20, r2
1857 ; CHECK-MVE-NEXT: cmp r0, #0
1858 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
1859 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1860 ; CHECK-MVE-NEXT: vmov r0, s18
1861 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
1862 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
1863 ; CHECK-MVE-NEXT: vmov s18, r0
1864 ; CHECK-MVE-NEXT: movs r0, #0
1865 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
1866 ; CHECK-MVE-NEXT: vmov s18, r2
1867 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1868 ; CHECK-MVE-NEXT: it ls
1869 ; CHECK-MVE-NEXT: movls r0, #1
1870 ; CHECK-MVE-NEXT: cmp r0, #0
1871 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
1872 ; CHECK-MVE-NEXT: it ne
1873 ; CHECK-MVE-NEXT: movne r0, #1
1874 ; CHECK-MVE-NEXT: vmov s20, r2
1875 ; CHECK-MVE-NEXT: cmp r0, #0
1876 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1877 ; CHECK-MVE-NEXT: vmov r0, s18
1878 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
1879 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
1880 ; CHECK-MVE-NEXT: vmov s0, r0
1881 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
1882 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
1883 ; CHECK-MVE-NEXT: vmov s0, r0
1884 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1885 ; CHECK-MVE-NEXT: it ls
1886 ; CHECK-MVE-NEXT: movls r1, #1
1887 ; CHECK-MVE-NEXT: cmp r1, #0
1888 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
1889 ; CHECK-MVE-NEXT: it ne
1890 ; CHECK-MVE-NEXT: movne r1, #1
1891 ; CHECK-MVE-NEXT: vmov s2, r0
1892 ; CHECK-MVE-NEXT: cmp r1, #0
1893 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
1894 ; CHECK-MVE-NEXT: vmov r0, s0
1895 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
1896 ; CHECK-MVE-NEXT: vmov q0, q3
1897 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
1898 ; CHECK-MVE-NEXT: bx lr
1900 ; CHECK-MVEFP-LABEL: vcmp_ole_v8f16:
1901 ; CHECK-MVEFP: @ %bb.0: @ %entry
1902 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
1903 ; CHECK-MVEFP-NEXT: vmov r0, s12
1904 ; CHECK-MVEFP-NEXT: vdup.16 q3, r0
1905 ; CHECK-MVEFP-NEXT: vcmp.f16 ge, q3, q0
1906 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
1907 ; CHECK-MVEFP-NEXT: bx lr
1909 %src2 = load half, half* %src2p
1910 %i = insertelement <8 x half> undef, half %src2, i32 0
1911 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
1912 %c = fcmp ole <8 x half> %src, %sp
1913 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
1917 define arm_aapcs_vfpcc <8 x half> @vcmp_ueq_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
1918 ; CHECK-MVE-LABEL: vcmp_ueq_v8f16:
1919 ; CHECK-MVE: @ %bb.0: @ %entry
1920 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
1921 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
1922 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
1923 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
1924 ; CHECK-MVE-NEXT: vmov s12, r2
1925 ; CHECK-MVE-NEXT: movs r0, #0
1926 ; CHECK-MVE-NEXT: vcmp.f16 s12, s16
1927 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
1928 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1929 ; CHECK-MVE-NEXT: it eq
1930 ; CHECK-MVE-NEXT: moveq r0, #1
1931 ; CHECK-MVE-NEXT: it vs
1932 ; CHECK-MVE-NEXT: movvs r0, #1
1933 ; CHECK-MVE-NEXT: cmp r0, #0
1934 ; CHECK-MVE-NEXT: vmov s12, r2
1935 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
1936 ; CHECK-MVE-NEXT: it ne
1937 ; CHECK-MVE-NEXT: movne r0, #1
1938 ; CHECK-MVE-NEXT: vmov s14, r2
1939 ; CHECK-MVE-NEXT: cmp r0, #0
1940 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
1941 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1942 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
1943 ; CHECK-MVE-NEXT: vmov r0, s12
1944 ; CHECK-MVE-NEXT: movs r1, #0
1945 ; CHECK-MVE-NEXT: vmov s12, r2
1946 ; CHECK-MVE-NEXT: movs r2, #0
1947 ; CHECK-MVE-NEXT: vcmp.f16 s12, s16
1948 ; CHECK-MVE-NEXT: vmov s12, r3
1949 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1950 ; CHECK-MVE-NEXT: it eq
1951 ; CHECK-MVE-NEXT: moveq r2, #1
1952 ; CHECK-MVE-NEXT: it vs
1953 ; CHECK-MVE-NEXT: movvs r2, #1
1954 ; CHECK-MVE-NEXT: cmp r2, #0
1955 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
1956 ; CHECK-MVE-NEXT: it ne
1957 ; CHECK-MVE-NEXT: movne r2, #1
1958 ; CHECK-MVE-NEXT: vmov s14, r3
1959 ; CHECK-MVE-NEXT: cmp r2, #0
1960 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
1961 ; CHECK-MVE-NEXT: vmov r2, s12
1962 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
1963 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
1964 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
1965 ; CHECK-MVE-NEXT: vmov s18, r0
1966 ; CHECK-MVE-NEXT: movs r0, #0
1967 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
1968 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
1969 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1970 ; CHECK-MVE-NEXT: it eq
1971 ; CHECK-MVE-NEXT: moveq r0, #1
1972 ; CHECK-MVE-NEXT: it vs
1973 ; CHECK-MVE-NEXT: movvs r0, #1
1974 ; CHECK-MVE-NEXT: cmp r0, #0
1975 ; CHECK-MVE-NEXT: vmov s18, r2
1976 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
1977 ; CHECK-MVE-NEXT: it ne
1978 ; CHECK-MVE-NEXT: movne r0, #1
1979 ; CHECK-MVE-NEXT: vmov s20, r2
1980 ; CHECK-MVE-NEXT: cmp r0, #0
1981 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
1982 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
1983 ; CHECK-MVE-NEXT: vmov r0, s18
1984 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
1985 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
1986 ; CHECK-MVE-NEXT: vmov s18, r0
1987 ; CHECK-MVE-NEXT: movs r0, #0
1988 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
1989 ; CHECK-MVE-NEXT: vmov s18, r2
1990 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
1991 ; CHECK-MVE-NEXT: it eq
1992 ; CHECK-MVE-NEXT: moveq r0, #1
1993 ; CHECK-MVE-NEXT: it vs
1994 ; CHECK-MVE-NEXT: movvs r0, #1
1995 ; CHECK-MVE-NEXT: cmp r0, #0
1996 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
1997 ; CHECK-MVE-NEXT: it ne
1998 ; CHECK-MVE-NEXT: movne r0, #1
1999 ; CHECK-MVE-NEXT: vmov s20, r2
2000 ; CHECK-MVE-NEXT: cmp r0, #0
2001 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2002 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
2003 ; CHECK-MVE-NEXT: vmov r0, s18
2004 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
2005 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
2006 ; CHECK-MVE-NEXT: vmov s18, r0
2007 ; CHECK-MVE-NEXT: movs r0, #0
2008 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
2009 ; CHECK-MVE-NEXT: vmov s18, r2
2010 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2011 ; CHECK-MVE-NEXT: it eq
2012 ; CHECK-MVE-NEXT: moveq r0, #1
2013 ; CHECK-MVE-NEXT: it vs
2014 ; CHECK-MVE-NEXT: movvs r0, #1
2015 ; CHECK-MVE-NEXT: cmp r0, #0
2016 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
2017 ; CHECK-MVE-NEXT: it ne
2018 ; CHECK-MVE-NEXT: movne r0, #1
2019 ; CHECK-MVE-NEXT: vmov s20, r2
2020 ; CHECK-MVE-NEXT: cmp r0, #0
2021 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2022 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
2023 ; CHECK-MVE-NEXT: vmov r0, s18
2024 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
2025 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
2026 ; CHECK-MVE-NEXT: vmov s18, r0
2027 ; CHECK-MVE-NEXT: movs r0, #0
2028 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
2029 ; CHECK-MVE-NEXT: vmov s18, r2
2030 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2031 ; CHECK-MVE-NEXT: it eq
2032 ; CHECK-MVE-NEXT: moveq r0, #1
2033 ; CHECK-MVE-NEXT: it vs
2034 ; CHECK-MVE-NEXT: movvs r0, #1
2035 ; CHECK-MVE-NEXT: cmp r0, #0
2036 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
2037 ; CHECK-MVE-NEXT: it ne
2038 ; CHECK-MVE-NEXT: movne r0, #1
2039 ; CHECK-MVE-NEXT: vmov s20, r2
2040 ; CHECK-MVE-NEXT: cmp r0, #0
2041 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2042 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
2043 ; CHECK-MVE-NEXT: vmov r0, s18
2044 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
2045 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
2046 ; CHECK-MVE-NEXT: vmov s18, r0
2047 ; CHECK-MVE-NEXT: movs r0, #0
2048 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
2049 ; CHECK-MVE-NEXT: vmov s18, r2
2050 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2051 ; CHECK-MVE-NEXT: it eq
2052 ; CHECK-MVE-NEXT: moveq r0, #1
2053 ; CHECK-MVE-NEXT: it vs
2054 ; CHECK-MVE-NEXT: movvs r0, #1
2055 ; CHECK-MVE-NEXT: cmp r0, #0
2056 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
2057 ; CHECK-MVE-NEXT: it ne
2058 ; CHECK-MVE-NEXT: movne r0, #1
2059 ; CHECK-MVE-NEXT: vmov s20, r2
2060 ; CHECK-MVE-NEXT: cmp r0, #0
2061 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2062 ; CHECK-MVE-NEXT: vmov r0, s18
2063 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
2064 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
2065 ; CHECK-MVE-NEXT: vmov s0, r0
2066 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
2067 ; CHECK-MVE-NEXT: vcmp.f16 s0, s16
2068 ; CHECK-MVE-NEXT: vmov s0, r0
2069 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2070 ; CHECK-MVE-NEXT: it eq
2071 ; CHECK-MVE-NEXT: moveq r1, #1
2072 ; CHECK-MVE-NEXT: it vs
2073 ; CHECK-MVE-NEXT: movvs r1, #1
2074 ; CHECK-MVE-NEXT: cmp r1, #0
2075 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
2076 ; CHECK-MVE-NEXT: it ne
2077 ; CHECK-MVE-NEXT: movne r1, #1
2078 ; CHECK-MVE-NEXT: vmov s2, r0
2079 ; CHECK-MVE-NEXT: cmp r1, #0
2080 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2081 ; CHECK-MVE-NEXT: vmov r0, s0
2082 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2083 ; CHECK-MVE-NEXT: vmov q0, q3
2084 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
2085 ; CHECK-MVE-NEXT: bx lr
2087 ; CHECK-MVEFP-LABEL: vcmp_ueq_v8f16:
2088 ; CHECK-MVEFP: @ %bb.0: @ %entry
2089 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
2090 ; CHECK-MVEFP-NEXT: vmov r0, s12
2091 ; CHECK-MVEFP-NEXT: vdup.16 q3, r0
2092 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q3, q0
2093 ; CHECK-MVEFP-NEXT: vpst
2094 ; CHECK-MVEFP-NEXT: vcmpt.f16 le, q0, r0
2095 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2096 ; CHECK-MVEFP-NEXT: bx lr
2098 %src2 = load half, half* %src2p
2099 %i = insertelement <8 x half> undef, half %src2, i32 0
2100 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
2101 %c = fcmp ueq <8 x half> %src, %sp
2102 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2106 define arm_aapcs_vfpcc <8 x half> @vcmp_une_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
2107 ; CHECK-MVE-LABEL: vcmp_une_v8f16:
2108 ; CHECK-MVE: @ %bb.0: @ %entry
2109 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
2110 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
2111 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
2112 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
2113 ; CHECK-MVE-NEXT: vmov s12, r2
2114 ; CHECK-MVE-NEXT: movs r0, #0
2115 ; CHECK-MVE-NEXT: vcmp.f16 s12, s16
2116 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
2117 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2118 ; CHECK-MVE-NEXT: it ne
2119 ; CHECK-MVE-NEXT: movne r0, #1
2120 ; CHECK-MVE-NEXT: cmp r0, #0
2121 ; CHECK-MVE-NEXT: vmov s12, r2
2122 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
2123 ; CHECK-MVE-NEXT: it ne
2124 ; CHECK-MVE-NEXT: movne r0, #1
2125 ; CHECK-MVE-NEXT: vmov s14, r2
2126 ; CHECK-MVE-NEXT: cmp r0, #0
2127 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2128 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
2129 ; CHECK-MVE-NEXT: vmov r0, s12
2130 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
2131 ; CHECK-MVE-NEXT: vmov s12, r2
2132 ; CHECK-MVE-NEXT: movs r2, #0
2133 ; CHECK-MVE-NEXT: vcmp.f16 s12, s16
2134 ; CHECK-MVE-NEXT: vmov s12, r3
2135 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2136 ; CHECK-MVE-NEXT: it ne
2137 ; CHECK-MVE-NEXT: movne r2, #1
2138 ; CHECK-MVE-NEXT: cmp r2, #0
2139 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
2140 ; CHECK-MVE-NEXT: it ne
2141 ; CHECK-MVE-NEXT: movne r2, #1
2142 ; CHECK-MVE-NEXT: vmov s14, r3
2143 ; CHECK-MVE-NEXT: cmp r2, #0
2144 ; CHECK-MVE-NEXT: mov.w r1, #0
2145 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2146 ; CHECK-MVE-NEXT: vmov r2, s12
2147 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
2148 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
2149 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
2150 ; CHECK-MVE-NEXT: vmov s18, r0
2151 ; CHECK-MVE-NEXT: movs r0, #0
2152 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
2153 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
2154 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2155 ; CHECK-MVE-NEXT: it ne
2156 ; CHECK-MVE-NEXT: movne r0, #1
2157 ; CHECK-MVE-NEXT: cmp r0, #0
2158 ; CHECK-MVE-NEXT: vmov s18, r2
2159 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
2160 ; CHECK-MVE-NEXT: it ne
2161 ; CHECK-MVE-NEXT: movne r0, #1
2162 ; CHECK-MVE-NEXT: vmov s20, r2
2163 ; CHECK-MVE-NEXT: cmp r0, #0
2164 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2165 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
2166 ; CHECK-MVE-NEXT: vmov r0, s18
2167 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
2168 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
2169 ; CHECK-MVE-NEXT: vmov s18, r0
2170 ; CHECK-MVE-NEXT: movs r0, #0
2171 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
2172 ; CHECK-MVE-NEXT: vmov s18, r2
2173 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2174 ; CHECK-MVE-NEXT: it ne
2175 ; CHECK-MVE-NEXT: movne r0, #1
2176 ; CHECK-MVE-NEXT: cmp r0, #0
2177 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
2178 ; CHECK-MVE-NEXT: it ne
2179 ; CHECK-MVE-NEXT: movne r0, #1
2180 ; CHECK-MVE-NEXT: vmov s20, r2
2181 ; CHECK-MVE-NEXT: cmp r0, #0
2182 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
2183 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2184 ; CHECK-MVE-NEXT: vmov r0, s18
2185 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
2186 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
2187 ; CHECK-MVE-NEXT: vmov s18, r0
2188 ; CHECK-MVE-NEXT: movs r0, #0
2189 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
2190 ; CHECK-MVE-NEXT: vmov s18, r2
2191 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2192 ; CHECK-MVE-NEXT: it ne
2193 ; CHECK-MVE-NEXT: movne r0, #1
2194 ; CHECK-MVE-NEXT: cmp r0, #0
2195 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
2196 ; CHECK-MVE-NEXT: it ne
2197 ; CHECK-MVE-NEXT: movne r0, #1
2198 ; CHECK-MVE-NEXT: vmov s20, r2
2199 ; CHECK-MVE-NEXT: cmp r0, #0
2200 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
2201 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2202 ; CHECK-MVE-NEXT: vmov r0, s18
2203 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
2204 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
2205 ; CHECK-MVE-NEXT: vmov s18, r0
2206 ; CHECK-MVE-NEXT: movs r0, #0
2207 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
2208 ; CHECK-MVE-NEXT: vmov s18, r2
2209 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2210 ; CHECK-MVE-NEXT: it ne
2211 ; CHECK-MVE-NEXT: movne r0, #1
2212 ; CHECK-MVE-NEXT: cmp r0, #0
2213 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
2214 ; CHECK-MVE-NEXT: it ne
2215 ; CHECK-MVE-NEXT: movne r0, #1
2216 ; CHECK-MVE-NEXT: vmov s20, r2
2217 ; CHECK-MVE-NEXT: cmp r0, #0
2218 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
2219 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2220 ; CHECK-MVE-NEXT: vmov r0, s18
2221 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
2222 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
2223 ; CHECK-MVE-NEXT: vmov s18, r0
2224 ; CHECK-MVE-NEXT: movs r0, #0
2225 ; CHECK-MVE-NEXT: vcmp.f16 s18, s16
2226 ; CHECK-MVE-NEXT: vmov s18, r2
2227 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2228 ; CHECK-MVE-NEXT: it ne
2229 ; CHECK-MVE-NEXT: movne r0, #1
2230 ; CHECK-MVE-NEXT: cmp r0, #0
2231 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
2232 ; CHECK-MVE-NEXT: it ne
2233 ; CHECK-MVE-NEXT: movne r0, #1
2234 ; CHECK-MVE-NEXT: vmov s20, r2
2235 ; CHECK-MVE-NEXT: cmp r0, #0
2236 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2237 ; CHECK-MVE-NEXT: vmov r0, s18
2238 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
2239 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
2240 ; CHECK-MVE-NEXT: vmov s0, r0
2241 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
2242 ; CHECK-MVE-NEXT: vcmp.f16 s0, s16
2243 ; CHECK-MVE-NEXT: vmov s0, r0
2244 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2245 ; CHECK-MVE-NEXT: it ne
2246 ; CHECK-MVE-NEXT: movne r1, #1
2247 ; CHECK-MVE-NEXT: cmp r1, #0
2248 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
2249 ; CHECK-MVE-NEXT: it ne
2250 ; CHECK-MVE-NEXT: movne r1, #1
2251 ; CHECK-MVE-NEXT: vmov s2, r0
2252 ; CHECK-MVE-NEXT: cmp r1, #0
2253 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2254 ; CHECK-MVE-NEXT: vmov r0, s0
2255 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2256 ; CHECK-MVE-NEXT: vmov q0, q3
2257 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
2258 ; CHECK-MVE-NEXT: bx lr
2260 ; CHECK-MVEFP-LABEL: vcmp_une_v8f16:
2261 ; CHECK-MVEFP: @ %bb.0: @ %entry
2262 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
2263 ; CHECK-MVEFP-NEXT: vmov r0, s12
2264 ; CHECK-MVEFP-NEXT: vcmp.f16 ne, q0, r0
2265 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2266 ; CHECK-MVEFP-NEXT: bx lr
2268 %src2 = load half, half* %src2p
2269 %i = insertelement <8 x half> undef, half %src2, i32 0
2270 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
2271 %c = fcmp une <8 x half> %src, %sp
2272 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2276 define arm_aapcs_vfpcc <8 x half> @vcmp_ugt_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
2277 ; CHECK-MVE-LABEL: vcmp_ugt_v8f16:
2278 ; CHECK-MVE: @ %bb.0: @ %entry
2279 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
2280 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
2281 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
2282 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
2283 ; CHECK-MVE-NEXT: vmov s12, r2
2284 ; CHECK-MVE-NEXT: movs r0, #0
2285 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2286 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
2287 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2288 ; CHECK-MVE-NEXT: it hi
2289 ; CHECK-MVE-NEXT: movhi r0, #1
2290 ; CHECK-MVE-NEXT: cmp r0, #0
2291 ; CHECK-MVE-NEXT: vmov s12, r2
2292 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
2293 ; CHECK-MVE-NEXT: it ne
2294 ; CHECK-MVE-NEXT: movne r0, #1
2295 ; CHECK-MVE-NEXT: vmov s14, r2
2296 ; CHECK-MVE-NEXT: cmp r0, #0
2297 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2298 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
2299 ; CHECK-MVE-NEXT: vmov r0, s12
2300 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
2301 ; CHECK-MVE-NEXT: vmov s12, r2
2302 ; CHECK-MVE-NEXT: movs r2, #0
2303 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2304 ; CHECK-MVE-NEXT: vmov s12, r3
2305 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2306 ; CHECK-MVE-NEXT: it hi
2307 ; CHECK-MVE-NEXT: movhi r2, #1
2308 ; CHECK-MVE-NEXT: cmp r2, #0
2309 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
2310 ; CHECK-MVE-NEXT: it ne
2311 ; CHECK-MVE-NEXT: movne r2, #1
2312 ; CHECK-MVE-NEXT: vmov s14, r3
2313 ; CHECK-MVE-NEXT: cmp r2, #0
2314 ; CHECK-MVE-NEXT: mov.w r1, #0
2315 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2316 ; CHECK-MVE-NEXT: vmov r2, s12
2317 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
2318 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
2319 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
2320 ; CHECK-MVE-NEXT: vmov s18, r0
2321 ; CHECK-MVE-NEXT: movs r0, #0
2322 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2323 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
2324 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2325 ; CHECK-MVE-NEXT: it hi
2326 ; CHECK-MVE-NEXT: movhi r0, #1
2327 ; CHECK-MVE-NEXT: cmp r0, #0
2328 ; CHECK-MVE-NEXT: vmov s18, r2
2329 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
2330 ; CHECK-MVE-NEXT: it ne
2331 ; CHECK-MVE-NEXT: movne r0, #1
2332 ; CHECK-MVE-NEXT: vmov s20, r2
2333 ; CHECK-MVE-NEXT: cmp r0, #0
2334 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2335 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
2336 ; CHECK-MVE-NEXT: vmov r0, s18
2337 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
2338 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
2339 ; CHECK-MVE-NEXT: vmov s18, r0
2340 ; CHECK-MVE-NEXT: movs r0, #0
2341 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2342 ; CHECK-MVE-NEXT: vmov s18, r2
2343 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2344 ; CHECK-MVE-NEXT: it hi
2345 ; CHECK-MVE-NEXT: movhi r0, #1
2346 ; CHECK-MVE-NEXT: cmp r0, #0
2347 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
2348 ; CHECK-MVE-NEXT: it ne
2349 ; CHECK-MVE-NEXT: movne r0, #1
2350 ; CHECK-MVE-NEXT: vmov s20, r2
2351 ; CHECK-MVE-NEXT: cmp r0, #0
2352 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
2353 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2354 ; CHECK-MVE-NEXT: vmov r0, s18
2355 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
2356 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
2357 ; CHECK-MVE-NEXT: vmov s18, r0
2358 ; CHECK-MVE-NEXT: movs r0, #0
2359 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2360 ; CHECK-MVE-NEXT: vmov s18, r2
2361 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2362 ; CHECK-MVE-NEXT: it hi
2363 ; CHECK-MVE-NEXT: movhi r0, #1
2364 ; CHECK-MVE-NEXT: cmp r0, #0
2365 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
2366 ; CHECK-MVE-NEXT: it ne
2367 ; CHECK-MVE-NEXT: movne r0, #1
2368 ; CHECK-MVE-NEXT: vmov s20, r2
2369 ; CHECK-MVE-NEXT: cmp r0, #0
2370 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
2371 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2372 ; CHECK-MVE-NEXT: vmov r0, s18
2373 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
2374 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
2375 ; CHECK-MVE-NEXT: vmov s18, r0
2376 ; CHECK-MVE-NEXT: movs r0, #0
2377 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2378 ; CHECK-MVE-NEXT: vmov s18, r2
2379 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2380 ; CHECK-MVE-NEXT: it hi
2381 ; CHECK-MVE-NEXT: movhi r0, #1
2382 ; CHECK-MVE-NEXT: cmp r0, #0
2383 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
2384 ; CHECK-MVE-NEXT: it ne
2385 ; CHECK-MVE-NEXT: movne r0, #1
2386 ; CHECK-MVE-NEXT: vmov s20, r2
2387 ; CHECK-MVE-NEXT: cmp r0, #0
2388 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
2389 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2390 ; CHECK-MVE-NEXT: vmov r0, s18
2391 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
2392 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
2393 ; CHECK-MVE-NEXT: vmov s18, r0
2394 ; CHECK-MVE-NEXT: movs r0, #0
2395 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2396 ; CHECK-MVE-NEXT: vmov s18, r2
2397 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2398 ; CHECK-MVE-NEXT: it hi
2399 ; CHECK-MVE-NEXT: movhi r0, #1
2400 ; CHECK-MVE-NEXT: cmp r0, #0
2401 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
2402 ; CHECK-MVE-NEXT: it ne
2403 ; CHECK-MVE-NEXT: movne r0, #1
2404 ; CHECK-MVE-NEXT: vmov s20, r2
2405 ; CHECK-MVE-NEXT: cmp r0, #0
2406 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2407 ; CHECK-MVE-NEXT: vmov r0, s18
2408 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
2409 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
2410 ; CHECK-MVE-NEXT: vmov s0, r0
2411 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
2412 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
2413 ; CHECK-MVE-NEXT: vmov s0, r0
2414 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2415 ; CHECK-MVE-NEXT: it hi
2416 ; CHECK-MVE-NEXT: movhi r1, #1
2417 ; CHECK-MVE-NEXT: cmp r1, #0
2418 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
2419 ; CHECK-MVE-NEXT: it ne
2420 ; CHECK-MVE-NEXT: movne r1, #1
2421 ; CHECK-MVE-NEXT: vmov s2, r0
2422 ; CHECK-MVE-NEXT: cmp r1, #0
2423 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2424 ; CHECK-MVE-NEXT: vmov r0, s0
2425 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2426 ; CHECK-MVE-NEXT: vmov q0, q3
2427 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
2428 ; CHECK-MVE-NEXT: bx lr
2430 ; CHECK-MVEFP-LABEL: vcmp_ugt_v8f16:
2431 ; CHECK-MVEFP: @ %bb.0: @ %entry
2432 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
2433 ; CHECK-MVEFP-NEXT: vmov r0, s12
2434 ; CHECK-MVEFP-NEXT: vdup.16 q3, r0
2435 ; CHECK-MVEFP-NEXT: vcmp.f16 ge, q3, q0
2436 ; CHECK-MVEFP-NEXT: vpnot
2437 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2438 ; CHECK-MVEFP-NEXT: bx lr
2440 %src2 = load half, half* %src2p
2441 %i = insertelement <8 x half> undef, half %src2, i32 0
2442 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
2443 %c = fcmp ugt <8 x half> %src, %sp
2444 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2448 define arm_aapcs_vfpcc <8 x half> @vcmp_uge_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
2449 ; CHECK-MVE-LABEL: vcmp_uge_v8f16:
2450 ; CHECK-MVE: @ %bb.0: @ %entry
2451 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
2452 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
2453 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
2454 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
2455 ; CHECK-MVE-NEXT: vmov s12, r2
2456 ; CHECK-MVE-NEXT: movs r0, #0
2457 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2458 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
2459 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2460 ; CHECK-MVE-NEXT: it pl
2461 ; CHECK-MVE-NEXT: movpl r0, #1
2462 ; CHECK-MVE-NEXT: cmp r0, #0
2463 ; CHECK-MVE-NEXT: vmov s12, r2
2464 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
2465 ; CHECK-MVE-NEXT: it ne
2466 ; CHECK-MVE-NEXT: movne r0, #1
2467 ; CHECK-MVE-NEXT: vmov s14, r2
2468 ; CHECK-MVE-NEXT: cmp r0, #0
2469 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2470 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
2471 ; CHECK-MVE-NEXT: vmov r0, s12
2472 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
2473 ; CHECK-MVE-NEXT: vmov s12, r2
2474 ; CHECK-MVE-NEXT: movs r2, #0
2475 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2476 ; CHECK-MVE-NEXT: vmov s12, r3
2477 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2478 ; CHECK-MVE-NEXT: it pl
2479 ; CHECK-MVE-NEXT: movpl r2, #1
2480 ; CHECK-MVE-NEXT: cmp r2, #0
2481 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
2482 ; CHECK-MVE-NEXT: it ne
2483 ; CHECK-MVE-NEXT: movne r2, #1
2484 ; CHECK-MVE-NEXT: vmov s14, r3
2485 ; CHECK-MVE-NEXT: cmp r2, #0
2486 ; CHECK-MVE-NEXT: mov.w r1, #0
2487 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2488 ; CHECK-MVE-NEXT: vmov r2, s12
2489 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
2490 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
2491 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
2492 ; CHECK-MVE-NEXT: vmov s18, r0
2493 ; CHECK-MVE-NEXT: movs r0, #0
2494 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2495 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
2496 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2497 ; CHECK-MVE-NEXT: it pl
2498 ; CHECK-MVE-NEXT: movpl r0, #1
2499 ; CHECK-MVE-NEXT: cmp r0, #0
2500 ; CHECK-MVE-NEXT: vmov s18, r2
2501 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
2502 ; CHECK-MVE-NEXT: it ne
2503 ; CHECK-MVE-NEXT: movne r0, #1
2504 ; CHECK-MVE-NEXT: vmov s20, r2
2505 ; CHECK-MVE-NEXT: cmp r0, #0
2506 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2507 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
2508 ; CHECK-MVE-NEXT: vmov r0, s18
2509 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
2510 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
2511 ; CHECK-MVE-NEXT: vmov s18, r0
2512 ; CHECK-MVE-NEXT: movs r0, #0
2513 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2514 ; CHECK-MVE-NEXT: vmov s18, r2
2515 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2516 ; CHECK-MVE-NEXT: it pl
2517 ; CHECK-MVE-NEXT: movpl r0, #1
2518 ; CHECK-MVE-NEXT: cmp r0, #0
2519 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
2520 ; CHECK-MVE-NEXT: it ne
2521 ; CHECK-MVE-NEXT: movne r0, #1
2522 ; CHECK-MVE-NEXT: vmov s20, r2
2523 ; CHECK-MVE-NEXT: cmp r0, #0
2524 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
2525 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2526 ; CHECK-MVE-NEXT: vmov r0, s18
2527 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
2528 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
2529 ; CHECK-MVE-NEXT: vmov s18, r0
2530 ; CHECK-MVE-NEXT: movs r0, #0
2531 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2532 ; CHECK-MVE-NEXT: vmov s18, r2
2533 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2534 ; CHECK-MVE-NEXT: it pl
2535 ; CHECK-MVE-NEXT: movpl r0, #1
2536 ; CHECK-MVE-NEXT: cmp r0, #0
2537 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
2538 ; CHECK-MVE-NEXT: it ne
2539 ; CHECK-MVE-NEXT: movne r0, #1
2540 ; CHECK-MVE-NEXT: vmov s20, r2
2541 ; CHECK-MVE-NEXT: cmp r0, #0
2542 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
2543 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2544 ; CHECK-MVE-NEXT: vmov r0, s18
2545 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
2546 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
2547 ; CHECK-MVE-NEXT: vmov s18, r0
2548 ; CHECK-MVE-NEXT: movs r0, #0
2549 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2550 ; CHECK-MVE-NEXT: vmov s18, r2
2551 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2552 ; CHECK-MVE-NEXT: it pl
2553 ; CHECK-MVE-NEXT: movpl r0, #1
2554 ; CHECK-MVE-NEXT: cmp r0, #0
2555 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
2556 ; CHECK-MVE-NEXT: it ne
2557 ; CHECK-MVE-NEXT: movne r0, #1
2558 ; CHECK-MVE-NEXT: vmov s20, r2
2559 ; CHECK-MVE-NEXT: cmp r0, #0
2560 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
2561 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2562 ; CHECK-MVE-NEXT: vmov r0, s18
2563 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
2564 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
2565 ; CHECK-MVE-NEXT: vmov s18, r0
2566 ; CHECK-MVE-NEXT: movs r0, #0
2567 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2568 ; CHECK-MVE-NEXT: vmov s18, r2
2569 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2570 ; CHECK-MVE-NEXT: it pl
2571 ; CHECK-MVE-NEXT: movpl r0, #1
2572 ; CHECK-MVE-NEXT: cmp r0, #0
2573 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
2574 ; CHECK-MVE-NEXT: it ne
2575 ; CHECK-MVE-NEXT: movne r0, #1
2576 ; CHECK-MVE-NEXT: vmov s20, r2
2577 ; CHECK-MVE-NEXT: cmp r0, #0
2578 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2579 ; CHECK-MVE-NEXT: vmov r0, s18
2580 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
2581 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
2582 ; CHECK-MVE-NEXT: vmov s0, r0
2583 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
2584 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
2585 ; CHECK-MVE-NEXT: vmov s0, r0
2586 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2587 ; CHECK-MVE-NEXT: it pl
2588 ; CHECK-MVE-NEXT: movpl r1, #1
2589 ; CHECK-MVE-NEXT: cmp r1, #0
2590 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
2591 ; CHECK-MVE-NEXT: it ne
2592 ; CHECK-MVE-NEXT: movne r1, #1
2593 ; CHECK-MVE-NEXT: vmov s2, r0
2594 ; CHECK-MVE-NEXT: cmp r1, #0
2595 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2596 ; CHECK-MVE-NEXT: vmov r0, s0
2597 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2598 ; CHECK-MVE-NEXT: vmov q0, q3
2599 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
2600 ; CHECK-MVE-NEXT: bx lr
2602 ; CHECK-MVEFP-LABEL: vcmp_uge_v8f16:
2603 ; CHECK-MVEFP: @ %bb.0: @ %entry
2604 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
2605 ; CHECK-MVEFP-NEXT: vmov r0, s12
2606 ; CHECK-MVEFP-NEXT: vdup.16 q3, r0
2607 ; CHECK-MVEFP-NEXT: vcmp.f16 gt, q3, q0
2608 ; CHECK-MVEFP-NEXT: vpnot
2609 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2610 ; CHECK-MVEFP-NEXT: bx lr
2612 %src2 = load half, half* %src2p
2613 %i = insertelement <8 x half> undef, half %src2, i32 0
2614 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
2615 %c = fcmp uge <8 x half> %src, %sp
2616 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2620 define arm_aapcs_vfpcc <8 x half> @vcmp_ult_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
2621 ; CHECK-MVE-LABEL: vcmp_ult_v8f16:
2622 ; CHECK-MVE: @ %bb.0: @ %entry
2623 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
2624 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
2625 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
2626 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
2627 ; CHECK-MVE-NEXT: vmov s12, r2
2628 ; CHECK-MVE-NEXT: movs r0, #0
2629 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2630 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
2631 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2632 ; CHECK-MVE-NEXT: it lt
2633 ; CHECK-MVE-NEXT: movlt r0, #1
2634 ; CHECK-MVE-NEXT: cmp r0, #0
2635 ; CHECK-MVE-NEXT: vmov s12, r2
2636 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
2637 ; CHECK-MVE-NEXT: it ne
2638 ; CHECK-MVE-NEXT: movne r0, #1
2639 ; CHECK-MVE-NEXT: vmov s14, r2
2640 ; CHECK-MVE-NEXT: cmp r0, #0
2641 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2642 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
2643 ; CHECK-MVE-NEXT: vmov r0, s12
2644 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
2645 ; CHECK-MVE-NEXT: vmov s12, r2
2646 ; CHECK-MVE-NEXT: movs r2, #0
2647 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2648 ; CHECK-MVE-NEXT: vmov s12, r3
2649 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2650 ; CHECK-MVE-NEXT: it lt
2651 ; CHECK-MVE-NEXT: movlt r2, #1
2652 ; CHECK-MVE-NEXT: cmp r2, #0
2653 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
2654 ; CHECK-MVE-NEXT: it ne
2655 ; CHECK-MVE-NEXT: movne r2, #1
2656 ; CHECK-MVE-NEXT: vmov s14, r3
2657 ; CHECK-MVE-NEXT: cmp r2, #0
2658 ; CHECK-MVE-NEXT: mov.w r1, #0
2659 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2660 ; CHECK-MVE-NEXT: vmov r2, s12
2661 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
2662 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
2663 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
2664 ; CHECK-MVE-NEXT: vmov s18, r0
2665 ; CHECK-MVE-NEXT: movs r0, #0
2666 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2667 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
2668 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2669 ; CHECK-MVE-NEXT: it lt
2670 ; CHECK-MVE-NEXT: movlt r0, #1
2671 ; CHECK-MVE-NEXT: cmp r0, #0
2672 ; CHECK-MVE-NEXT: vmov s18, r2
2673 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
2674 ; CHECK-MVE-NEXT: it ne
2675 ; CHECK-MVE-NEXT: movne r0, #1
2676 ; CHECK-MVE-NEXT: vmov s20, r2
2677 ; CHECK-MVE-NEXT: cmp r0, #0
2678 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2679 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
2680 ; CHECK-MVE-NEXT: vmov r0, s18
2681 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
2682 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
2683 ; CHECK-MVE-NEXT: vmov s18, r0
2684 ; CHECK-MVE-NEXT: movs r0, #0
2685 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2686 ; CHECK-MVE-NEXT: vmov s18, r2
2687 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2688 ; CHECK-MVE-NEXT: it lt
2689 ; CHECK-MVE-NEXT: movlt r0, #1
2690 ; CHECK-MVE-NEXT: cmp r0, #0
2691 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
2692 ; CHECK-MVE-NEXT: it ne
2693 ; CHECK-MVE-NEXT: movne r0, #1
2694 ; CHECK-MVE-NEXT: vmov s20, r2
2695 ; CHECK-MVE-NEXT: cmp r0, #0
2696 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
2697 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2698 ; CHECK-MVE-NEXT: vmov r0, s18
2699 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
2700 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
2701 ; CHECK-MVE-NEXT: vmov s18, r0
2702 ; CHECK-MVE-NEXT: movs r0, #0
2703 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2704 ; CHECK-MVE-NEXT: vmov s18, r2
2705 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2706 ; CHECK-MVE-NEXT: it lt
2707 ; CHECK-MVE-NEXT: movlt r0, #1
2708 ; CHECK-MVE-NEXT: cmp r0, #0
2709 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
2710 ; CHECK-MVE-NEXT: it ne
2711 ; CHECK-MVE-NEXT: movne r0, #1
2712 ; CHECK-MVE-NEXT: vmov s20, r2
2713 ; CHECK-MVE-NEXT: cmp r0, #0
2714 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
2715 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2716 ; CHECK-MVE-NEXT: vmov r0, s18
2717 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
2718 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
2719 ; CHECK-MVE-NEXT: vmov s18, r0
2720 ; CHECK-MVE-NEXT: movs r0, #0
2721 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2722 ; CHECK-MVE-NEXT: vmov s18, r2
2723 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2724 ; CHECK-MVE-NEXT: it lt
2725 ; CHECK-MVE-NEXT: movlt r0, #1
2726 ; CHECK-MVE-NEXT: cmp r0, #0
2727 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
2728 ; CHECK-MVE-NEXT: it ne
2729 ; CHECK-MVE-NEXT: movne r0, #1
2730 ; CHECK-MVE-NEXT: vmov s20, r2
2731 ; CHECK-MVE-NEXT: cmp r0, #0
2732 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
2733 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2734 ; CHECK-MVE-NEXT: vmov r0, s18
2735 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
2736 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
2737 ; CHECK-MVE-NEXT: vmov s18, r0
2738 ; CHECK-MVE-NEXT: movs r0, #0
2739 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2740 ; CHECK-MVE-NEXT: vmov s18, r2
2741 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2742 ; CHECK-MVE-NEXT: it lt
2743 ; CHECK-MVE-NEXT: movlt r0, #1
2744 ; CHECK-MVE-NEXT: cmp r0, #0
2745 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
2746 ; CHECK-MVE-NEXT: it ne
2747 ; CHECK-MVE-NEXT: movne r0, #1
2748 ; CHECK-MVE-NEXT: vmov s20, r2
2749 ; CHECK-MVE-NEXT: cmp r0, #0
2750 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2751 ; CHECK-MVE-NEXT: vmov r0, s18
2752 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
2753 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
2754 ; CHECK-MVE-NEXT: vmov s0, r0
2755 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
2756 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
2757 ; CHECK-MVE-NEXT: vmov s0, r0
2758 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2759 ; CHECK-MVE-NEXT: it lt
2760 ; CHECK-MVE-NEXT: movlt r1, #1
2761 ; CHECK-MVE-NEXT: cmp r1, #0
2762 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
2763 ; CHECK-MVE-NEXT: it ne
2764 ; CHECK-MVE-NEXT: movne r1, #1
2765 ; CHECK-MVE-NEXT: vmov s2, r0
2766 ; CHECK-MVE-NEXT: cmp r1, #0
2767 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2768 ; CHECK-MVE-NEXT: vmov r0, s0
2769 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2770 ; CHECK-MVE-NEXT: vmov q0, q3
2771 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
2772 ; CHECK-MVE-NEXT: bx lr
2774 ; CHECK-MVEFP-LABEL: vcmp_ult_v8f16:
2775 ; CHECK-MVEFP: @ %bb.0: @ %entry
2776 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
2777 ; CHECK-MVEFP-NEXT: vmov r0, s12
2778 ; CHECK-MVEFP-NEXT: vcmp.f16 ge, q0, r0
2779 ; CHECK-MVEFP-NEXT: vpnot
2780 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2781 ; CHECK-MVEFP-NEXT: bx lr
2783 %src2 = load half, half* %src2p
2784 %i = insertelement <8 x half> undef, half %src2, i32 0
2785 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
2786 %c = fcmp ult <8 x half> %src, %sp
2787 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2791 define arm_aapcs_vfpcc <8 x half> @vcmp_ule_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
2792 ; CHECK-MVE-LABEL: vcmp_ule_v8f16:
2793 ; CHECK-MVE: @ %bb.0: @ %entry
2794 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
2795 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
2796 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
2797 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
2798 ; CHECK-MVE-NEXT: vmov s12, r2
2799 ; CHECK-MVE-NEXT: movs r0, #0
2800 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2801 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
2802 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2803 ; CHECK-MVE-NEXT: it le
2804 ; CHECK-MVE-NEXT: movle r0, #1
2805 ; CHECK-MVE-NEXT: cmp r0, #0
2806 ; CHECK-MVE-NEXT: vmov s12, r2
2807 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
2808 ; CHECK-MVE-NEXT: it ne
2809 ; CHECK-MVE-NEXT: movne r0, #1
2810 ; CHECK-MVE-NEXT: vmov s14, r2
2811 ; CHECK-MVE-NEXT: cmp r0, #0
2812 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2813 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
2814 ; CHECK-MVE-NEXT: vmov r0, s12
2815 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
2816 ; CHECK-MVE-NEXT: vmov s12, r2
2817 ; CHECK-MVE-NEXT: movs r2, #0
2818 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2819 ; CHECK-MVE-NEXT: vmov s12, r3
2820 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2821 ; CHECK-MVE-NEXT: it le
2822 ; CHECK-MVE-NEXT: movle r2, #1
2823 ; CHECK-MVE-NEXT: cmp r2, #0
2824 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
2825 ; CHECK-MVE-NEXT: it ne
2826 ; CHECK-MVE-NEXT: movne r2, #1
2827 ; CHECK-MVE-NEXT: vmov s14, r3
2828 ; CHECK-MVE-NEXT: cmp r2, #0
2829 ; CHECK-MVE-NEXT: mov.w r1, #0
2830 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2831 ; CHECK-MVE-NEXT: vmov r2, s12
2832 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
2833 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
2834 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
2835 ; CHECK-MVE-NEXT: vmov s18, r0
2836 ; CHECK-MVE-NEXT: movs r0, #0
2837 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2838 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
2839 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2840 ; CHECK-MVE-NEXT: it le
2841 ; CHECK-MVE-NEXT: movle r0, #1
2842 ; CHECK-MVE-NEXT: cmp r0, #0
2843 ; CHECK-MVE-NEXT: vmov s18, r2
2844 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
2845 ; CHECK-MVE-NEXT: it ne
2846 ; CHECK-MVE-NEXT: movne r0, #1
2847 ; CHECK-MVE-NEXT: vmov s20, r2
2848 ; CHECK-MVE-NEXT: cmp r0, #0
2849 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2850 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
2851 ; CHECK-MVE-NEXT: vmov r0, s18
2852 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
2853 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
2854 ; CHECK-MVE-NEXT: vmov s18, r0
2855 ; CHECK-MVE-NEXT: movs r0, #0
2856 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2857 ; CHECK-MVE-NEXT: vmov s18, r2
2858 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2859 ; CHECK-MVE-NEXT: it le
2860 ; CHECK-MVE-NEXT: movle r0, #1
2861 ; CHECK-MVE-NEXT: cmp r0, #0
2862 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
2863 ; CHECK-MVE-NEXT: it ne
2864 ; CHECK-MVE-NEXT: movne r0, #1
2865 ; CHECK-MVE-NEXT: vmov s20, r2
2866 ; CHECK-MVE-NEXT: cmp r0, #0
2867 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
2868 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2869 ; CHECK-MVE-NEXT: vmov r0, s18
2870 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
2871 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
2872 ; CHECK-MVE-NEXT: vmov s18, r0
2873 ; CHECK-MVE-NEXT: movs r0, #0
2874 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2875 ; CHECK-MVE-NEXT: vmov s18, r2
2876 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2877 ; CHECK-MVE-NEXT: it le
2878 ; CHECK-MVE-NEXT: movle r0, #1
2879 ; CHECK-MVE-NEXT: cmp r0, #0
2880 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
2881 ; CHECK-MVE-NEXT: it ne
2882 ; CHECK-MVE-NEXT: movne r0, #1
2883 ; CHECK-MVE-NEXT: vmov s20, r2
2884 ; CHECK-MVE-NEXT: cmp r0, #0
2885 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
2886 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2887 ; CHECK-MVE-NEXT: vmov r0, s18
2888 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
2889 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
2890 ; CHECK-MVE-NEXT: vmov s18, r0
2891 ; CHECK-MVE-NEXT: movs r0, #0
2892 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2893 ; CHECK-MVE-NEXT: vmov s18, r2
2894 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2895 ; CHECK-MVE-NEXT: it le
2896 ; CHECK-MVE-NEXT: movle r0, #1
2897 ; CHECK-MVE-NEXT: cmp r0, #0
2898 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
2899 ; CHECK-MVE-NEXT: it ne
2900 ; CHECK-MVE-NEXT: movne r0, #1
2901 ; CHECK-MVE-NEXT: vmov s20, r2
2902 ; CHECK-MVE-NEXT: cmp r0, #0
2903 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
2904 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2905 ; CHECK-MVE-NEXT: vmov r0, s18
2906 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
2907 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
2908 ; CHECK-MVE-NEXT: vmov s18, r0
2909 ; CHECK-MVE-NEXT: movs r0, #0
2910 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
2911 ; CHECK-MVE-NEXT: vmov s18, r2
2912 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2913 ; CHECK-MVE-NEXT: it le
2914 ; CHECK-MVE-NEXT: movle r0, #1
2915 ; CHECK-MVE-NEXT: cmp r0, #0
2916 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
2917 ; CHECK-MVE-NEXT: it ne
2918 ; CHECK-MVE-NEXT: movne r0, #1
2919 ; CHECK-MVE-NEXT: vmov s20, r2
2920 ; CHECK-MVE-NEXT: cmp r0, #0
2921 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
2922 ; CHECK-MVE-NEXT: vmov r0, s18
2923 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
2924 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
2925 ; CHECK-MVE-NEXT: vmov s0, r0
2926 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
2927 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
2928 ; CHECK-MVE-NEXT: vmov s0, r0
2929 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2930 ; CHECK-MVE-NEXT: it le
2931 ; CHECK-MVE-NEXT: movle r1, #1
2932 ; CHECK-MVE-NEXT: cmp r1, #0
2933 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
2934 ; CHECK-MVE-NEXT: it ne
2935 ; CHECK-MVE-NEXT: movne r1, #1
2936 ; CHECK-MVE-NEXT: vmov s2, r0
2937 ; CHECK-MVE-NEXT: cmp r1, #0
2938 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
2939 ; CHECK-MVE-NEXT: vmov r0, s0
2940 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
2941 ; CHECK-MVE-NEXT: vmov q0, q3
2942 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
2943 ; CHECK-MVE-NEXT: bx lr
2945 ; CHECK-MVEFP-LABEL: vcmp_ule_v8f16:
2946 ; CHECK-MVEFP: @ %bb.0: @ %entry
2947 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
2948 ; CHECK-MVEFP-NEXT: vmov r0, s12
2949 ; CHECK-MVEFP-NEXT: vcmp.f16 gt, q0, r0
2950 ; CHECK-MVEFP-NEXT: vpnot
2951 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
2952 ; CHECK-MVEFP-NEXT: bx lr
2954 %src2 = load half, half* %src2p
2955 %i = insertelement <8 x half> undef, half %src2, i32 0
2956 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
2957 %c = fcmp ule <8 x half> %src, %sp
2958 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
2962 define arm_aapcs_vfpcc <8 x half> @vcmp_ord_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
2963 ; CHECK-MVE-LABEL: vcmp_ord_v8f16:
2964 ; CHECK-MVE: @ %bb.0: @ %entry
2965 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
2966 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
2967 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
2968 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
2969 ; CHECK-MVE-NEXT: vmov s12, r2
2970 ; CHECK-MVE-NEXT: movs r0, #0
2971 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2972 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
2973 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2974 ; CHECK-MVE-NEXT: it vc
2975 ; CHECK-MVE-NEXT: movvc r0, #1
2976 ; CHECK-MVE-NEXT: cmp r0, #0
2977 ; CHECK-MVE-NEXT: vmov s12, r2
2978 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
2979 ; CHECK-MVE-NEXT: it ne
2980 ; CHECK-MVE-NEXT: movne r0, #1
2981 ; CHECK-MVE-NEXT: vmov s14, r2
2982 ; CHECK-MVE-NEXT: cmp r0, #0
2983 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
2984 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
2985 ; CHECK-MVE-NEXT: vmov r0, s12
2986 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
2987 ; CHECK-MVE-NEXT: vmov s12, r2
2988 ; CHECK-MVE-NEXT: movs r2, #0
2989 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
2990 ; CHECK-MVE-NEXT: vmov s12, r3
2991 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
2992 ; CHECK-MVE-NEXT: it vc
2993 ; CHECK-MVE-NEXT: movvc r2, #1
2994 ; CHECK-MVE-NEXT: cmp r2, #0
2995 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
2996 ; CHECK-MVE-NEXT: it ne
2997 ; CHECK-MVE-NEXT: movne r2, #1
2998 ; CHECK-MVE-NEXT: vmov s14, r3
2999 ; CHECK-MVE-NEXT: cmp r2, #0
3000 ; CHECK-MVE-NEXT: mov.w r1, #0
3001 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
3002 ; CHECK-MVE-NEXT: vmov r2, s12
3003 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
3004 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
3005 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
3006 ; CHECK-MVE-NEXT: vmov s18, r0
3007 ; CHECK-MVE-NEXT: movs r0, #0
3008 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3009 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
3010 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3011 ; CHECK-MVE-NEXT: it vc
3012 ; CHECK-MVE-NEXT: movvc r0, #1
3013 ; CHECK-MVE-NEXT: cmp r0, #0
3014 ; CHECK-MVE-NEXT: vmov s18, r2
3015 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
3016 ; CHECK-MVE-NEXT: it ne
3017 ; CHECK-MVE-NEXT: movne r0, #1
3018 ; CHECK-MVE-NEXT: vmov s20, r2
3019 ; CHECK-MVE-NEXT: cmp r0, #0
3020 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3021 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
3022 ; CHECK-MVE-NEXT: vmov r0, s18
3023 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
3024 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
3025 ; CHECK-MVE-NEXT: vmov s18, r0
3026 ; CHECK-MVE-NEXT: movs r0, #0
3027 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3028 ; CHECK-MVE-NEXT: vmov s18, r2
3029 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3030 ; CHECK-MVE-NEXT: it vc
3031 ; CHECK-MVE-NEXT: movvc r0, #1
3032 ; CHECK-MVE-NEXT: cmp r0, #0
3033 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
3034 ; CHECK-MVE-NEXT: it ne
3035 ; CHECK-MVE-NEXT: movne r0, #1
3036 ; CHECK-MVE-NEXT: vmov s20, r2
3037 ; CHECK-MVE-NEXT: cmp r0, #0
3038 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
3039 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3040 ; CHECK-MVE-NEXT: vmov r0, s18
3041 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
3042 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
3043 ; CHECK-MVE-NEXT: vmov s18, r0
3044 ; CHECK-MVE-NEXT: movs r0, #0
3045 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3046 ; CHECK-MVE-NEXT: vmov s18, r2
3047 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3048 ; CHECK-MVE-NEXT: it vc
3049 ; CHECK-MVE-NEXT: movvc r0, #1
3050 ; CHECK-MVE-NEXT: cmp r0, #0
3051 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
3052 ; CHECK-MVE-NEXT: it ne
3053 ; CHECK-MVE-NEXT: movne r0, #1
3054 ; CHECK-MVE-NEXT: vmov s20, r2
3055 ; CHECK-MVE-NEXT: cmp r0, #0
3056 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
3057 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3058 ; CHECK-MVE-NEXT: vmov r0, s18
3059 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
3060 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
3061 ; CHECK-MVE-NEXT: vmov s18, r0
3062 ; CHECK-MVE-NEXT: movs r0, #0
3063 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3064 ; CHECK-MVE-NEXT: vmov s18, r2
3065 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3066 ; CHECK-MVE-NEXT: it vc
3067 ; CHECK-MVE-NEXT: movvc r0, #1
3068 ; CHECK-MVE-NEXT: cmp r0, #0
3069 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
3070 ; CHECK-MVE-NEXT: it ne
3071 ; CHECK-MVE-NEXT: movne r0, #1
3072 ; CHECK-MVE-NEXT: vmov s20, r2
3073 ; CHECK-MVE-NEXT: cmp r0, #0
3074 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
3075 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3076 ; CHECK-MVE-NEXT: vmov r0, s18
3077 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
3078 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
3079 ; CHECK-MVE-NEXT: vmov s18, r0
3080 ; CHECK-MVE-NEXT: movs r0, #0
3081 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3082 ; CHECK-MVE-NEXT: vmov s18, r2
3083 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3084 ; CHECK-MVE-NEXT: it vc
3085 ; CHECK-MVE-NEXT: movvc r0, #1
3086 ; CHECK-MVE-NEXT: cmp r0, #0
3087 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
3088 ; CHECK-MVE-NEXT: it ne
3089 ; CHECK-MVE-NEXT: movne r0, #1
3090 ; CHECK-MVE-NEXT: vmov s20, r2
3091 ; CHECK-MVE-NEXT: cmp r0, #0
3092 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3093 ; CHECK-MVE-NEXT: vmov r0, s18
3094 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
3095 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
3096 ; CHECK-MVE-NEXT: vmov s0, r0
3097 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
3098 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
3099 ; CHECK-MVE-NEXT: vmov s0, r0
3100 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3101 ; CHECK-MVE-NEXT: it vc
3102 ; CHECK-MVE-NEXT: movvc r1, #1
3103 ; CHECK-MVE-NEXT: cmp r1, #0
3104 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
3105 ; CHECK-MVE-NEXT: it ne
3106 ; CHECK-MVE-NEXT: movne r1, #1
3107 ; CHECK-MVE-NEXT: vmov s2, r0
3108 ; CHECK-MVE-NEXT: cmp r1, #0
3109 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
3110 ; CHECK-MVE-NEXT: vmov r0, s0
3111 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
3112 ; CHECK-MVE-NEXT: vmov q0, q3
3113 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
3114 ; CHECK-MVE-NEXT: bx lr
3116 ; CHECK-MVEFP-LABEL: vcmp_ord_v8f16:
3117 ; CHECK-MVEFP: @ %bb.0: @ %entry
3118 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
3119 ; CHECK-MVEFP-NEXT: vmov r0, s12
3120 ; CHECK-MVEFP-NEXT: vdup.16 q3, r0
3121 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q3, q0
3122 ; CHECK-MVEFP-NEXT: vpst
3123 ; CHECK-MVEFP-NEXT: vcmpt.f16 lt, q0, r0
3124 ; CHECK-MVEFP-NEXT: vpnot
3125 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
3126 ; CHECK-MVEFP-NEXT: bx lr
3128 %src2 = load half, half* %src2p
3129 %i = insertelement <8 x half> undef, half %src2, i32 0
3130 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
3131 %c = fcmp ord <8 x half> %src, %sp
3132 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b
3136 define arm_aapcs_vfpcc <8 x half> @vcmp_uno_v8f16(<8 x half> %src, half* %src2p, <8 x half> %a, <8 x half> %b) {
3137 ; CHECK-MVE-LABEL: vcmp_uno_v8f16:
3138 ; CHECK-MVE: @ %bb.0: @ %entry
3139 ; CHECK-MVE-NEXT: .vsave {d8, d9, d10}
3140 ; CHECK-MVE-NEXT: vpush {d8, d9, d10}
3141 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[0]
3142 ; CHECK-MVE-NEXT: vldr.16 s16, [r0]
3143 ; CHECK-MVE-NEXT: vmov s12, r2
3144 ; CHECK-MVE-NEXT: movs r0, #0
3145 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
3146 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[0]
3147 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3148 ; CHECK-MVE-NEXT: it vs
3149 ; CHECK-MVE-NEXT: movvs r0, #1
3150 ; CHECK-MVE-NEXT: cmp r0, #0
3151 ; CHECK-MVE-NEXT: vmov s12, r2
3152 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[0]
3153 ; CHECK-MVE-NEXT: it ne
3154 ; CHECK-MVE-NEXT: movne r0, #1
3155 ; CHECK-MVE-NEXT: vmov s14, r2
3156 ; CHECK-MVE-NEXT: cmp r0, #0
3157 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
3158 ; CHECK-MVE-NEXT: vmov.u16 r2, q0[1]
3159 ; CHECK-MVE-NEXT: vmov r0, s12
3160 ; CHECK-MVE-NEXT: vmov.u16 r3, q1[1]
3161 ; CHECK-MVE-NEXT: vmov s12, r2
3162 ; CHECK-MVE-NEXT: movs r2, #0
3163 ; CHECK-MVE-NEXT: vcmpe.f16 s12, s16
3164 ; CHECK-MVE-NEXT: vmov s12, r3
3165 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3166 ; CHECK-MVE-NEXT: it vs
3167 ; CHECK-MVE-NEXT: movvs r2, #1
3168 ; CHECK-MVE-NEXT: cmp r2, #0
3169 ; CHECK-MVE-NEXT: vmov.u16 r3, q2[1]
3170 ; CHECK-MVE-NEXT: it ne
3171 ; CHECK-MVE-NEXT: movne r2, #1
3172 ; CHECK-MVE-NEXT: vmov s14, r3
3173 ; CHECK-MVE-NEXT: cmp r2, #0
3174 ; CHECK-MVE-NEXT: mov.w r1, #0
3175 ; CHECK-MVE-NEXT: vseleq.f16 s12, s14, s12
3176 ; CHECK-MVE-NEXT: vmov r2, s12
3177 ; CHECK-MVE-NEXT: vmov.16 q3[0], r0
3178 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[2]
3179 ; CHECK-MVE-NEXT: vmov.16 q3[1], r2
3180 ; CHECK-MVE-NEXT: vmov s18, r0
3181 ; CHECK-MVE-NEXT: movs r0, #0
3182 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3183 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[2]
3184 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3185 ; CHECK-MVE-NEXT: it vs
3186 ; CHECK-MVE-NEXT: movvs r0, #1
3187 ; CHECK-MVE-NEXT: cmp r0, #0
3188 ; CHECK-MVE-NEXT: vmov s18, r2
3189 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[2]
3190 ; CHECK-MVE-NEXT: it ne
3191 ; CHECK-MVE-NEXT: movne r0, #1
3192 ; CHECK-MVE-NEXT: vmov s20, r2
3193 ; CHECK-MVE-NEXT: cmp r0, #0
3194 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3195 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[3]
3196 ; CHECK-MVE-NEXT: vmov r0, s18
3197 ; CHECK-MVE-NEXT: vmov.16 q3[2], r0
3198 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[3]
3199 ; CHECK-MVE-NEXT: vmov s18, r0
3200 ; CHECK-MVE-NEXT: movs r0, #0
3201 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3202 ; CHECK-MVE-NEXT: vmov s18, r2
3203 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3204 ; CHECK-MVE-NEXT: it vs
3205 ; CHECK-MVE-NEXT: movvs r0, #1
3206 ; CHECK-MVE-NEXT: cmp r0, #0
3207 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[3]
3208 ; CHECK-MVE-NEXT: it ne
3209 ; CHECK-MVE-NEXT: movne r0, #1
3210 ; CHECK-MVE-NEXT: vmov s20, r2
3211 ; CHECK-MVE-NEXT: cmp r0, #0
3212 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[4]
3213 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3214 ; CHECK-MVE-NEXT: vmov r0, s18
3215 ; CHECK-MVE-NEXT: vmov.16 q3[3], r0
3216 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[4]
3217 ; CHECK-MVE-NEXT: vmov s18, r0
3218 ; CHECK-MVE-NEXT: movs r0, #0
3219 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3220 ; CHECK-MVE-NEXT: vmov s18, r2
3221 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3222 ; CHECK-MVE-NEXT: it vs
3223 ; CHECK-MVE-NEXT: movvs r0, #1
3224 ; CHECK-MVE-NEXT: cmp r0, #0
3225 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[4]
3226 ; CHECK-MVE-NEXT: it ne
3227 ; CHECK-MVE-NEXT: movne r0, #1
3228 ; CHECK-MVE-NEXT: vmov s20, r2
3229 ; CHECK-MVE-NEXT: cmp r0, #0
3230 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[5]
3231 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3232 ; CHECK-MVE-NEXT: vmov r0, s18
3233 ; CHECK-MVE-NEXT: vmov.16 q3[4], r0
3234 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[5]
3235 ; CHECK-MVE-NEXT: vmov s18, r0
3236 ; CHECK-MVE-NEXT: movs r0, #0
3237 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3238 ; CHECK-MVE-NEXT: vmov s18, r2
3239 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3240 ; CHECK-MVE-NEXT: it vs
3241 ; CHECK-MVE-NEXT: movvs r0, #1
3242 ; CHECK-MVE-NEXT: cmp r0, #0
3243 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[5]
3244 ; CHECK-MVE-NEXT: it ne
3245 ; CHECK-MVE-NEXT: movne r0, #1
3246 ; CHECK-MVE-NEXT: vmov s20, r2
3247 ; CHECK-MVE-NEXT: cmp r0, #0
3248 ; CHECK-MVE-NEXT: vmov.u16 r2, q1[6]
3249 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3250 ; CHECK-MVE-NEXT: vmov r0, s18
3251 ; CHECK-MVE-NEXT: vmov.16 q3[5], r0
3252 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[6]
3253 ; CHECK-MVE-NEXT: vmov s18, r0
3254 ; CHECK-MVE-NEXT: movs r0, #0
3255 ; CHECK-MVE-NEXT: vcmpe.f16 s18, s16
3256 ; CHECK-MVE-NEXT: vmov s18, r2
3257 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3258 ; CHECK-MVE-NEXT: it vs
3259 ; CHECK-MVE-NEXT: movvs r0, #1
3260 ; CHECK-MVE-NEXT: cmp r0, #0
3261 ; CHECK-MVE-NEXT: vmov.u16 r2, q2[6]
3262 ; CHECK-MVE-NEXT: it ne
3263 ; CHECK-MVE-NEXT: movne r0, #1
3264 ; CHECK-MVE-NEXT: vmov s20, r2
3265 ; CHECK-MVE-NEXT: cmp r0, #0
3266 ; CHECK-MVE-NEXT: vseleq.f16 s18, s20, s18
3267 ; CHECK-MVE-NEXT: vmov r0, s18
3268 ; CHECK-MVE-NEXT: vmov.16 q3[6], r0
3269 ; CHECK-MVE-NEXT: vmov.u16 r0, q0[7]
3270 ; CHECK-MVE-NEXT: vmov s0, r0
3271 ; CHECK-MVE-NEXT: vmov.u16 r0, q1[7]
3272 ; CHECK-MVE-NEXT: vcmpe.f16 s0, s16
3273 ; CHECK-MVE-NEXT: vmov s0, r0
3274 ; CHECK-MVE-NEXT: vmrs APSR_nzcv, fpscr
3275 ; CHECK-MVE-NEXT: it vs
3276 ; CHECK-MVE-NEXT: movvs r1, #1
3277 ; CHECK-MVE-NEXT: cmp r1, #0
3278 ; CHECK-MVE-NEXT: vmov.u16 r0, q2[7]
3279 ; CHECK-MVE-NEXT: it ne
3280 ; CHECK-MVE-NEXT: movne r1, #1
3281 ; CHECK-MVE-NEXT: vmov s2, r0
3282 ; CHECK-MVE-NEXT: cmp r1, #0
3283 ; CHECK-MVE-NEXT: vseleq.f16 s0, s2, s0
3284 ; CHECK-MVE-NEXT: vmov r0, s0
3285 ; CHECK-MVE-NEXT: vmov.16 q3[7], r0
3286 ; CHECK-MVE-NEXT: vmov q0, q3
3287 ; CHECK-MVE-NEXT: vpop {d8, d9, d10}
3288 ; CHECK-MVE-NEXT: bx lr
3290 ; CHECK-MVEFP-LABEL: vcmp_uno_v8f16:
3291 ; CHECK-MVEFP: @ %bb.0: @ %entry
3292 ; CHECK-MVEFP-NEXT: vldr.16 s12, [r0]
3293 ; CHECK-MVEFP-NEXT: vmov r0, s12
3294 ; CHECK-MVEFP-NEXT: vdup.16 q3, r0
3295 ; CHECK-MVEFP-NEXT: vcmp.f16 le, q3, q0
3296 ; CHECK-MVEFP-NEXT: vpst
3297 ; CHECK-MVEFP-NEXT: vcmpt.f16 lt, q0, r0
3298 ; CHECK-MVEFP-NEXT: vpsel q0, q1, q2
3299 ; CHECK-MVEFP-NEXT: bx lr
3301 %src2 = load half, half* %src2p
3302 %i = insertelement <8 x half> undef, half %src2, i32 0
3303 %sp = shufflevector <8 x half> %i, <8 x half> undef, <8 x i32> zeroinitializer
3304 %c = fcmp uno <8 x half> %src, %sp
3305 %s = select <8 x i1> %c, <8 x half> %a, <8 x half> %b