1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc --mtriple=loongarch64 --mattr=+lsx < %s | FileCheck %s
4 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.caf.s(<4 x float>, <4 x float>)
6 define <4 x i32> @lsx_vfcmp_caf_s(<4 x float> %va, <4 x float> %vb) nounwind {
7 ; CHECK-LABEL: lsx_vfcmp_caf_s:
8 ; CHECK: # %bb.0: # %entry
9 ; CHECK-NEXT: vfcmp.caf.s $vr0, $vr0, $vr1
12 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.caf.s(<4 x float> %va, <4 x float> %vb)
16 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.caf.d(<2 x double>, <2 x double>)
18 define <2 x i64> @lsx_vfcmp_caf_d(<2 x double> %va, <2 x double> %vb) nounwind {
19 ; CHECK-LABEL: lsx_vfcmp_caf_d:
20 ; CHECK: # %bb.0: # %entry
21 ; CHECK-NEXT: vfcmp.caf.d $vr0, $vr0, $vr1
24 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.caf.d(<2 x double> %va, <2 x double> %vb)
28 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.cun.s(<4 x float>, <4 x float>)
30 define <4 x i32> @lsx_vfcmp_cun_s(<4 x float> %va, <4 x float> %vb) nounwind {
31 ; CHECK-LABEL: lsx_vfcmp_cun_s:
32 ; CHECK: # %bb.0: # %entry
33 ; CHECK-NEXT: vfcmp.cun.s $vr0, $vr0, $vr1
36 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.cun.s(<4 x float> %va, <4 x float> %vb)
40 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.cun.d(<2 x double>, <2 x double>)
42 define <2 x i64> @lsx_vfcmp_cun_d(<2 x double> %va, <2 x double> %vb) nounwind {
43 ; CHECK-LABEL: lsx_vfcmp_cun_d:
44 ; CHECK: # %bb.0: # %entry
45 ; CHECK-NEXT: vfcmp.cun.d $vr0, $vr0, $vr1
48 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.cun.d(<2 x double> %va, <2 x double> %vb)
52 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.ceq.s(<4 x float>, <4 x float>)
54 define <4 x i32> @lsx_vfcmp_ceq_s(<4 x float> %va, <4 x float> %vb) nounwind {
55 ; CHECK-LABEL: lsx_vfcmp_ceq_s:
56 ; CHECK: # %bb.0: # %entry
57 ; CHECK-NEXT: vfcmp.ceq.s $vr0, $vr0, $vr1
60 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.ceq.s(<4 x float> %va, <4 x float> %vb)
64 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.ceq.d(<2 x double>, <2 x double>)
66 define <2 x i64> @lsx_vfcmp_ceq_d(<2 x double> %va, <2 x double> %vb) nounwind {
67 ; CHECK-LABEL: lsx_vfcmp_ceq_d:
68 ; CHECK: # %bb.0: # %entry
69 ; CHECK-NEXT: vfcmp.ceq.d $vr0, $vr0, $vr1
72 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.ceq.d(<2 x double> %va, <2 x double> %vb)
76 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.cueq.s(<4 x float>, <4 x float>)
78 define <4 x i32> @lsx_vfcmp_cueq_s(<4 x float> %va, <4 x float> %vb) nounwind {
79 ; CHECK-LABEL: lsx_vfcmp_cueq_s:
80 ; CHECK: # %bb.0: # %entry
81 ; CHECK-NEXT: vfcmp.cueq.s $vr0, $vr0, $vr1
84 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.cueq.s(<4 x float> %va, <4 x float> %vb)
88 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.cueq.d(<2 x double>, <2 x double>)
90 define <2 x i64> @lsx_vfcmp_cueq_d(<2 x double> %va, <2 x double> %vb) nounwind {
91 ; CHECK-LABEL: lsx_vfcmp_cueq_d:
92 ; CHECK: # %bb.0: # %entry
93 ; CHECK-NEXT: vfcmp.cueq.d $vr0, $vr0, $vr1
96 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.cueq.d(<2 x double> %va, <2 x double> %vb)
100 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.clt.s(<4 x float>, <4 x float>)
102 define <4 x i32> @lsx_vfcmp_clt_s(<4 x float> %va, <4 x float> %vb) nounwind {
103 ; CHECK-LABEL: lsx_vfcmp_clt_s:
104 ; CHECK: # %bb.0: # %entry
105 ; CHECK-NEXT: vfcmp.clt.s $vr0, $vr0, $vr1
108 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.clt.s(<4 x float> %va, <4 x float> %vb)
112 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.clt.d(<2 x double>, <2 x double>)
114 define <2 x i64> @lsx_vfcmp_clt_d(<2 x double> %va, <2 x double> %vb) nounwind {
115 ; CHECK-LABEL: lsx_vfcmp_clt_d:
116 ; CHECK: # %bb.0: # %entry
117 ; CHECK-NEXT: vfcmp.clt.d $vr0, $vr0, $vr1
120 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.clt.d(<2 x double> %va, <2 x double> %vb)
124 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.cult.s(<4 x float>, <4 x float>)
126 define <4 x i32> @lsx_vfcmp_cult_s(<4 x float> %va, <4 x float> %vb) nounwind {
127 ; CHECK-LABEL: lsx_vfcmp_cult_s:
128 ; CHECK: # %bb.0: # %entry
129 ; CHECK-NEXT: vfcmp.cult.s $vr0, $vr0, $vr1
132 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.cult.s(<4 x float> %va, <4 x float> %vb)
136 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.cult.d(<2 x double>, <2 x double>)
138 define <2 x i64> @lsx_vfcmp_cult_d(<2 x double> %va, <2 x double> %vb) nounwind {
139 ; CHECK-LABEL: lsx_vfcmp_cult_d:
140 ; CHECK: # %bb.0: # %entry
141 ; CHECK-NEXT: vfcmp.cult.d $vr0, $vr0, $vr1
144 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.cult.d(<2 x double> %va, <2 x double> %vb)
148 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.cle.s(<4 x float>, <4 x float>)
150 define <4 x i32> @lsx_vfcmp_cle_s(<4 x float> %va, <4 x float> %vb) nounwind {
151 ; CHECK-LABEL: lsx_vfcmp_cle_s:
152 ; CHECK: # %bb.0: # %entry
153 ; CHECK-NEXT: vfcmp.cle.s $vr0, $vr0, $vr1
156 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.cle.s(<4 x float> %va, <4 x float> %vb)
160 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.cle.d(<2 x double>, <2 x double>)
162 define <2 x i64> @lsx_vfcmp_cle_d(<2 x double> %va, <2 x double> %vb) nounwind {
163 ; CHECK-LABEL: lsx_vfcmp_cle_d:
164 ; CHECK: # %bb.0: # %entry
165 ; CHECK-NEXT: vfcmp.cle.d $vr0, $vr0, $vr1
168 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.cle.d(<2 x double> %va, <2 x double> %vb)
172 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.cule.s(<4 x float>, <4 x float>)
174 define <4 x i32> @lsx_vfcmp_cule_s(<4 x float> %va, <4 x float> %vb) nounwind {
175 ; CHECK-LABEL: lsx_vfcmp_cule_s:
176 ; CHECK: # %bb.0: # %entry
177 ; CHECK-NEXT: vfcmp.cule.s $vr0, $vr0, $vr1
180 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.cule.s(<4 x float> %va, <4 x float> %vb)
184 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.cule.d(<2 x double>, <2 x double>)
186 define <2 x i64> @lsx_vfcmp_cule_d(<2 x double> %va, <2 x double> %vb) nounwind {
187 ; CHECK-LABEL: lsx_vfcmp_cule_d:
188 ; CHECK: # %bb.0: # %entry
189 ; CHECK-NEXT: vfcmp.cule.d $vr0, $vr0, $vr1
192 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.cule.d(<2 x double> %va, <2 x double> %vb)
196 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.cne.s(<4 x float>, <4 x float>)
198 define <4 x i32> @lsx_vfcmp_cne_s(<4 x float> %va, <4 x float> %vb) nounwind {
199 ; CHECK-LABEL: lsx_vfcmp_cne_s:
200 ; CHECK: # %bb.0: # %entry
201 ; CHECK-NEXT: vfcmp.cne.s $vr0, $vr0, $vr1
204 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.cne.s(<4 x float> %va, <4 x float> %vb)
208 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.cne.d(<2 x double>, <2 x double>)
210 define <2 x i64> @lsx_vfcmp_cne_d(<2 x double> %va, <2 x double> %vb) nounwind {
211 ; CHECK-LABEL: lsx_vfcmp_cne_d:
212 ; CHECK: # %bb.0: # %entry
213 ; CHECK-NEXT: vfcmp.cne.d $vr0, $vr0, $vr1
216 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.cne.d(<2 x double> %va, <2 x double> %vb)
220 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.cor.s(<4 x float>, <4 x float>)
222 define <4 x i32> @lsx_vfcmp_cor_s(<4 x float> %va, <4 x float> %vb) nounwind {
223 ; CHECK-LABEL: lsx_vfcmp_cor_s:
224 ; CHECK: # %bb.0: # %entry
225 ; CHECK-NEXT: vfcmp.cor.s $vr0, $vr0, $vr1
228 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.cor.s(<4 x float> %va, <4 x float> %vb)
232 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.cor.d(<2 x double>, <2 x double>)
234 define <2 x i64> @lsx_vfcmp_cor_d(<2 x double> %va, <2 x double> %vb) nounwind {
235 ; CHECK-LABEL: lsx_vfcmp_cor_d:
236 ; CHECK: # %bb.0: # %entry
237 ; CHECK-NEXT: vfcmp.cor.d $vr0, $vr0, $vr1
240 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.cor.d(<2 x double> %va, <2 x double> %vb)
244 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.cune.s(<4 x float>, <4 x float>)
246 define <4 x i32> @lsx_vfcmp_cune_s(<4 x float> %va, <4 x float> %vb) nounwind {
247 ; CHECK-LABEL: lsx_vfcmp_cune_s:
248 ; CHECK: # %bb.0: # %entry
249 ; CHECK-NEXT: vfcmp.cune.s $vr0, $vr0, $vr1
252 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.cune.s(<4 x float> %va, <4 x float> %vb)
256 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.cune.d(<2 x double>, <2 x double>)
258 define <2 x i64> @lsx_vfcmp_cune_d(<2 x double> %va, <2 x double> %vb) nounwind {
259 ; CHECK-LABEL: lsx_vfcmp_cune_d:
260 ; CHECK: # %bb.0: # %entry
261 ; CHECK-NEXT: vfcmp.cune.d $vr0, $vr0, $vr1
264 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.cune.d(<2 x double> %va, <2 x double> %vb)
268 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.saf.s(<4 x float>, <4 x float>)
270 define <4 x i32> @lsx_vfcmp_saf_s(<4 x float> %va, <4 x float> %vb) nounwind {
271 ; CHECK-LABEL: lsx_vfcmp_saf_s:
272 ; CHECK: # %bb.0: # %entry
273 ; CHECK-NEXT: vfcmp.saf.s $vr0, $vr0, $vr1
276 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.saf.s(<4 x float> %va, <4 x float> %vb)
280 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.saf.d(<2 x double>, <2 x double>)
282 define <2 x i64> @lsx_vfcmp_saf_d(<2 x double> %va, <2 x double> %vb) nounwind {
283 ; CHECK-LABEL: lsx_vfcmp_saf_d:
284 ; CHECK: # %bb.0: # %entry
285 ; CHECK-NEXT: vfcmp.saf.d $vr0, $vr0, $vr1
288 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.saf.d(<2 x double> %va, <2 x double> %vb)
292 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.sun.s(<4 x float>, <4 x float>)
294 define <4 x i32> @lsx_vfcmp_sun_s(<4 x float> %va, <4 x float> %vb) nounwind {
295 ; CHECK-LABEL: lsx_vfcmp_sun_s:
296 ; CHECK: # %bb.0: # %entry
297 ; CHECK-NEXT: vfcmp.sun.s $vr0, $vr0, $vr1
300 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.sun.s(<4 x float> %va, <4 x float> %vb)
304 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.sun.d(<2 x double>, <2 x double>)
306 define <2 x i64> @lsx_vfcmp_sun_d(<2 x double> %va, <2 x double> %vb) nounwind {
307 ; CHECK-LABEL: lsx_vfcmp_sun_d:
308 ; CHECK: # %bb.0: # %entry
309 ; CHECK-NEXT: vfcmp.sun.d $vr0, $vr0, $vr1
312 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.sun.d(<2 x double> %va, <2 x double> %vb)
316 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.seq.s(<4 x float>, <4 x float>)
318 define <4 x i32> @lsx_vfcmp_seq_s(<4 x float> %va, <4 x float> %vb) nounwind {
319 ; CHECK-LABEL: lsx_vfcmp_seq_s:
320 ; CHECK: # %bb.0: # %entry
321 ; CHECK-NEXT: vfcmp.seq.s $vr0, $vr0, $vr1
324 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.seq.s(<4 x float> %va, <4 x float> %vb)
328 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.seq.d(<2 x double>, <2 x double>)
330 define <2 x i64> @lsx_vfcmp_seq_d(<2 x double> %va, <2 x double> %vb) nounwind {
331 ; CHECK-LABEL: lsx_vfcmp_seq_d:
332 ; CHECK: # %bb.0: # %entry
333 ; CHECK-NEXT: vfcmp.seq.d $vr0, $vr0, $vr1
336 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.seq.d(<2 x double> %va, <2 x double> %vb)
340 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.sueq.s(<4 x float>, <4 x float>)
342 define <4 x i32> @lsx_vfcmp_sueq_s(<4 x float> %va, <4 x float> %vb) nounwind {
343 ; CHECK-LABEL: lsx_vfcmp_sueq_s:
344 ; CHECK: # %bb.0: # %entry
345 ; CHECK-NEXT: vfcmp.sueq.s $vr0, $vr0, $vr1
348 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.sueq.s(<4 x float> %va, <4 x float> %vb)
352 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.sueq.d(<2 x double>, <2 x double>)
354 define <2 x i64> @lsx_vfcmp_sueq_d(<2 x double> %va, <2 x double> %vb) nounwind {
355 ; CHECK-LABEL: lsx_vfcmp_sueq_d:
356 ; CHECK: # %bb.0: # %entry
357 ; CHECK-NEXT: vfcmp.sueq.d $vr0, $vr0, $vr1
360 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.sueq.d(<2 x double> %va, <2 x double> %vb)
364 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.slt.s(<4 x float>, <4 x float>)
366 define <4 x i32> @lsx_vfcmp_slt_s(<4 x float> %va, <4 x float> %vb) nounwind {
367 ; CHECK-LABEL: lsx_vfcmp_slt_s:
368 ; CHECK: # %bb.0: # %entry
369 ; CHECK-NEXT: vfcmp.slt.s $vr0, $vr0, $vr1
372 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.slt.s(<4 x float> %va, <4 x float> %vb)
376 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.slt.d(<2 x double>, <2 x double>)
378 define <2 x i64> @lsx_vfcmp_slt_d(<2 x double> %va, <2 x double> %vb) nounwind {
379 ; CHECK-LABEL: lsx_vfcmp_slt_d:
380 ; CHECK: # %bb.0: # %entry
381 ; CHECK-NEXT: vfcmp.slt.d $vr0, $vr0, $vr1
384 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.slt.d(<2 x double> %va, <2 x double> %vb)
388 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.sult.s(<4 x float>, <4 x float>)
390 define <4 x i32> @lsx_vfcmp_sult_s(<4 x float> %va, <4 x float> %vb) nounwind {
391 ; CHECK-LABEL: lsx_vfcmp_sult_s:
392 ; CHECK: # %bb.0: # %entry
393 ; CHECK-NEXT: vfcmp.sult.s $vr0, $vr0, $vr1
396 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.sult.s(<4 x float> %va, <4 x float> %vb)
400 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.sult.d(<2 x double>, <2 x double>)
402 define <2 x i64> @lsx_vfcmp_sult_d(<2 x double> %va, <2 x double> %vb) nounwind {
403 ; CHECK-LABEL: lsx_vfcmp_sult_d:
404 ; CHECK: # %bb.0: # %entry
405 ; CHECK-NEXT: vfcmp.sult.d $vr0, $vr0, $vr1
408 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.sult.d(<2 x double> %va, <2 x double> %vb)
412 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.sle.s(<4 x float>, <4 x float>)
414 define <4 x i32> @lsx_vfcmp_sle_s(<4 x float> %va, <4 x float> %vb) nounwind {
415 ; CHECK-LABEL: lsx_vfcmp_sle_s:
416 ; CHECK: # %bb.0: # %entry
417 ; CHECK-NEXT: vfcmp.sle.s $vr0, $vr0, $vr1
420 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.sle.s(<4 x float> %va, <4 x float> %vb)
424 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.sle.d(<2 x double>, <2 x double>)
426 define <2 x i64> @lsx_vfcmp_sle_d(<2 x double> %va, <2 x double> %vb) nounwind {
427 ; CHECK-LABEL: lsx_vfcmp_sle_d:
428 ; CHECK: # %bb.0: # %entry
429 ; CHECK-NEXT: vfcmp.sle.d $vr0, $vr0, $vr1
432 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.sle.d(<2 x double> %va, <2 x double> %vb)
436 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.sule.s(<4 x float>, <4 x float>)
438 define <4 x i32> @lsx_vfcmp_sule_s(<4 x float> %va, <4 x float> %vb) nounwind {
439 ; CHECK-LABEL: lsx_vfcmp_sule_s:
440 ; CHECK: # %bb.0: # %entry
441 ; CHECK-NEXT: vfcmp.sule.s $vr0, $vr0, $vr1
444 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.sule.s(<4 x float> %va, <4 x float> %vb)
448 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.sule.d(<2 x double>, <2 x double>)
450 define <2 x i64> @lsx_vfcmp_sule_d(<2 x double> %va, <2 x double> %vb) nounwind {
451 ; CHECK-LABEL: lsx_vfcmp_sule_d:
452 ; CHECK: # %bb.0: # %entry
453 ; CHECK-NEXT: vfcmp.sule.d $vr0, $vr0, $vr1
456 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.sule.d(<2 x double> %va, <2 x double> %vb)
460 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.sne.s(<4 x float>, <4 x float>)
462 define <4 x i32> @lsx_vfcmp_sne_s(<4 x float> %va, <4 x float> %vb) nounwind {
463 ; CHECK-LABEL: lsx_vfcmp_sne_s:
464 ; CHECK: # %bb.0: # %entry
465 ; CHECK-NEXT: vfcmp.sne.s $vr0, $vr0, $vr1
468 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.sne.s(<4 x float> %va, <4 x float> %vb)
472 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.sne.d(<2 x double>, <2 x double>)
474 define <2 x i64> @lsx_vfcmp_sne_d(<2 x double> %va, <2 x double> %vb) nounwind {
475 ; CHECK-LABEL: lsx_vfcmp_sne_d:
476 ; CHECK: # %bb.0: # %entry
477 ; CHECK-NEXT: vfcmp.sne.d $vr0, $vr0, $vr1
480 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.sne.d(<2 x double> %va, <2 x double> %vb)
484 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.sor.s(<4 x float>, <4 x float>)
486 define <4 x i32> @lsx_vfcmp_sor_s(<4 x float> %va, <4 x float> %vb) nounwind {
487 ; CHECK-LABEL: lsx_vfcmp_sor_s:
488 ; CHECK: # %bb.0: # %entry
489 ; CHECK-NEXT: vfcmp.sor.s $vr0, $vr0, $vr1
492 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.sor.s(<4 x float> %va, <4 x float> %vb)
496 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.sor.d(<2 x double>, <2 x double>)
498 define <2 x i64> @lsx_vfcmp_sor_d(<2 x double> %va, <2 x double> %vb) nounwind {
499 ; CHECK-LABEL: lsx_vfcmp_sor_d:
500 ; CHECK: # %bb.0: # %entry
501 ; CHECK-NEXT: vfcmp.sor.d $vr0, $vr0, $vr1
504 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.sor.d(<2 x double> %va, <2 x double> %vb)
508 declare <4 x i32> @llvm.loongarch.lsx.vfcmp.sune.s(<4 x float>, <4 x float>)
510 define <4 x i32> @lsx_vfcmp_sune_s(<4 x float> %va, <4 x float> %vb) nounwind {
511 ; CHECK-LABEL: lsx_vfcmp_sune_s:
512 ; CHECK: # %bb.0: # %entry
513 ; CHECK-NEXT: vfcmp.sune.s $vr0, $vr0, $vr1
516 %res = call <4 x i32> @llvm.loongarch.lsx.vfcmp.sune.s(<4 x float> %va, <4 x float> %vb)
520 declare <2 x i64> @llvm.loongarch.lsx.vfcmp.sune.d(<2 x double>, <2 x double>)
522 define <2 x i64> @lsx_vfcmp_sune_d(<2 x double> %va, <2 x double> %vb) nounwind {
523 ; CHECK-LABEL: lsx_vfcmp_sune_d:
524 ; CHECK: # %bb.0: # %entry
525 ; CHECK-NEXT: vfcmp.sune.d $vr0, $vr0, $vr1
528 %res = call <2 x i64> @llvm.loongarch.lsx.vfcmp.sune.d(<2 x double> %va, <2 x double> %vb)