1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: sed 's/iXLen/i32/g' %s | llc -mtriple=riscv32 -mattr=+v,+zfh,+zvfh \
3 ; RUN: -verify-machineinstrs -target-abi=ilp32d | FileCheck %s
4 ; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v,+zfh,+zvfh \
5 ; RUN: -verify-machineinstrs -target-abi=lp64d | FileCheck %s
7 declare <vscale x 1 x i8> @llvm.riscv.vmerge.nxv1i8.nxv1i8(
14 define <vscale x 1 x i8> @intrinsic_vmerge_vvm_nxv1i8_nxv1i8_nxv1i8(<vscale x 1 x i8> %0, <vscale x 1 x i8> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
15 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv1i8_nxv1i8_nxv1i8:
16 ; CHECK: # %bb.0: # %entry
17 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, ta, ma
18 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
21 %a = call <vscale x 1 x i8> @llvm.riscv.vmerge.nxv1i8.nxv1i8(
22 <vscale x 1 x i8> undef,
28 ret <vscale x 1 x i8> %a
31 declare <vscale x 2 x i8> @llvm.riscv.vmerge.nxv2i8.nxv2i8(
38 define <vscale x 2 x i8> @intrinsic_vmerge_vvm_nxv2i8_nxv2i8_nxv2i8(<vscale x 2 x i8> %0, <vscale x 2 x i8> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
39 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv2i8_nxv2i8_nxv2i8:
40 ; CHECK: # %bb.0: # %entry
41 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, ta, ma
42 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
45 %a = call <vscale x 2 x i8> @llvm.riscv.vmerge.nxv2i8.nxv2i8(
46 <vscale x 2 x i8> undef,
52 ret <vscale x 2 x i8> %a
55 declare <vscale x 4 x i8> @llvm.riscv.vmerge.nxv4i8.nxv4i8(
62 define <vscale x 4 x i8> @intrinsic_vmerge_vvm_nxv4i8_nxv4i8_nxv4i8(<vscale x 4 x i8> %0, <vscale x 4 x i8> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
63 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv4i8_nxv4i8_nxv4i8:
64 ; CHECK: # %bb.0: # %entry
65 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, ta, ma
66 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
69 %a = call <vscale x 4 x i8> @llvm.riscv.vmerge.nxv4i8.nxv4i8(
70 <vscale x 4 x i8> undef,
76 ret <vscale x 4 x i8> %a
79 declare <vscale x 8 x i8> @llvm.riscv.vmerge.nxv8i8.nxv8i8(
86 define <vscale x 8 x i8> @intrinsic_vmerge_vvm_nxv8i8_nxv8i8_nxv8i8(<vscale x 8 x i8> %0, <vscale x 8 x i8> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
87 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv8i8_nxv8i8_nxv8i8:
88 ; CHECK: # %bb.0: # %entry
89 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, ma
90 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
93 %a = call <vscale x 8 x i8> @llvm.riscv.vmerge.nxv8i8.nxv8i8(
94 <vscale x 8 x i8> undef,
100 ret <vscale x 8 x i8> %a
103 declare <vscale x 16 x i8> @llvm.riscv.vmerge.nxv16i8.nxv16i8(
110 define <vscale x 16 x i8> @intrinsic_vmerge_vvm_nxv16i8_nxv16i8_nxv16i8(<vscale x 16 x i8> %0, <vscale x 16 x i8> %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
111 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv16i8_nxv16i8_nxv16i8:
112 ; CHECK: # %bb.0: # %entry
113 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, ta, ma
114 ; CHECK-NEXT: vmerge.vvm v8, v8, v10, v0
117 %a = call <vscale x 16 x i8> @llvm.riscv.vmerge.nxv16i8.nxv16i8(
118 <vscale x 16 x i8> undef,
119 <vscale x 16 x i8> %0,
120 <vscale x 16 x i8> %1,
121 <vscale x 16 x i1> %2,
124 ret <vscale x 16 x i8> %a
127 declare <vscale x 32 x i8> @llvm.riscv.vmerge.nxv32i8.nxv32i8(
134 define <vscale x 32 x i8> @intrinsic_vmerge_vvm_nxv32i8_nxv32i8_nxv32i8(<vscale x 32 x i8> %0, <vscale x 32 x i8> %1, <vscale x 32 x i1> %2, iXLen %3) nounwind {
135 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv32i8_nxv32i8_nxv32i8:
136 ; CHECK: # %bb.0: # %entry
137 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, ta, ma
138 ; CHECK-NEXT: vmerge.vvm v8, v8, v12, v0
141 %a = call <vscale x 32 x i8> @llvm.riscv.vmerge.nxv32i8.nxv32i8(
142 <vscale x 32 x i8> undef,
143 <vscale x 32 x i8> %0,
144 <vscale x 32 x i8> %1,
145 <vscale x 32 x i1> %2,
148 ret <vscale x 32 x i8> %a
151 declare <vscale x 64 x i8> @llvm.riscv.vmerge.nxv64i8.nxv64i8(
158 define <vscale x 64 x i8> @intrinsic_vmerge_vvm_nxv64i8_nxv64i8_nxv64i8(<vscale x 64 x i8> %0, <vscale x 64 x i8> %1, <vscale x 64 x i1> %2, iXLen %3) nounwind {
159 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv64i8_nxv64i8_nxv64i8:
160 ; CHECK: # %bb.0: # %entry
161 ; CHECK-NEXT: vsetvli zero, a0, e8, m8, ta, ma
162 ; CHECK-NEXT: vmerge.vvm v8, v8, v16, v0
165 %a = call <vscale x 64 x i8> @llvm.riscv.vmerge.nxv64i8.nxv64i8(
166 <vscale x 64 x i8> undef,
167 <vscale x 64 x i8> %0,
168 <vscale x 64 x i8> %1,
169 <vscale x 64 x i1> %2,
172 ret <vscale x 64 x i8> %a
175 declare <vscale x 1 x i16> @llvm.riscv.vmerge.nxv1i16.nxv1i16(
182 define <vscale x 1 x i16> @intrinsic_vmerge_vvm_nxv1i16_nxv1i16_nxv1i16(<vscale x 1 x i16> %0, <vscale x 1 x i16> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
183 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv1i16_nxv1i16_nxv1i16:
184 ; CHECK: # %bb.0: # %entry
185 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, ma
186 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
189 %a = call <vscale x 1 x i16> @llvm.riscv.vmerge.nxv1i16.nxv1i16(
190 <vscale x 1 x i16> undef,
191 <vscale x 1 x i16> %0,
192 <vscale x 1 x i16> %1,
193 <vscale x 1 x i1> %2,
196 ret <vscale x 1 x i16> %a
199 declare <vscale x 2 x i16> @llvm.riscv.vmerge.nxv2i16.nxv2i16(
206 define <vscale x 2 x i16> @intrinsic_vmerge_vvm_nxv2i16_nxv2i16_nxv2i16(<vscale x 2 x i16> %0, <vscale x 2 x i16> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
207 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv2i16_nxv2i16_nxv2i16:
208 ; CHECK: # %bb.0: # %entry
209 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
210 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
213 %a = call <vscale x 2 x i16> @llvm.riscv.vmerge.nxv2i16.nxv2i16(
214 <vscale x 2 x i16> undef,
215 <vscale x 2 x i16> %0,
216 <vscale x 2 x i16> %1,
217 <vscale x 2 x i1> %2,
220 ret <vscale x 2 x i16> %a
223 declare <vscale x 4 x i16> @llvm.riscv.vmerge.nxv4i16.nxv4i16(
230 define <vscale x 4 x i16> @intrinsic_vmerge_vvm_nxv4i16_nxv4i16_nxv4i16(<vscale x 4 x i16> %0, <vscale x 4 x i16> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
231 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv4i16_nxv4i16_nxv4i16:
232 ; CHECK: # %bb.0: # %entry
233 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, ma
234 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
237 %a = call <vscale x 4 x i16> @llvm.riscv.vmerge.nxv4i16.nxv4i16(
238 <vscale x 4 x i16> undef,
239 <vscale x 4 x i16> %0,
240 <vscale x 4 x i16> %1,
241 <vscale x 4 x i1> %2,
244 ret <vscale x 4 x i16> %a
247 declare <vscale x 8 x i16> @llvm.riscv.vmerge.nxv8i16.nxv8i16(
254 define <vscale x 8 x i16> @intrinsic_vmerge_vvm_nxv8i16_nxv8i16_nxv8i16(<vscale x 8 x i16> %0, <vscale x 8 x i16> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
255 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv8i16_nxv8i16_nxv8i16:
256 ; CHECK: # %bb.0: # %entry
257 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, ma
258 ; CHECK-NEXT: vmerge.vvm v8, v8, v10, v0
261 %a = call <vscale x 8 x i16> @llvm.riscv.vmerge.nxv8i16.nxv8i16(
262 <vscale x 8 x i16> undef,
263 <vscale x 8 x i16> %0,
264 <vscale x 8 x i16> %1,
265 <vscale x 8 x i1> %2,
268 ret <vscale x 8 x i16> %a
271 declare <vscale x 16 x i16> @llvm.riscv.vmerge.nxv16i16.nxv16i16(
278 define <vscale x 16 x i16> @intrinsic_vmerge_vvm_nxv16i16_nxv16i16_nxv16i16(<vscale x 16 x i16> %0, <vscale x 16 x i16> %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
279 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv16i16_nxv16i16_nxv16i16:
280 ; CHECK: # %bb.0: # %entry
281 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, ma
282 ; CHECK-NEXT: vmerge.vvm v8, v8, v12, v0
285 %a = call <vscale x 16 x i16> @llvm.riscv.vmerge.nxv16i16.nxv16i16(
286 <vscale x 16 x i16> undef,
287 <vscale x 16 x i16> %0,
288 <vscale x 16 x i16> %1,
289 <vscale x 16 x i1> %2,
292 ret <vscale x 16 x i16> %a
295 declare <vscale x 32 x i16> @llvm.riscv.vmerge.nxv32i16.nxv32i16(
302 define <vscale x 32 x i16> @intrinsic_vmerge_vvm_nxv32i16_nxv32i16_nxv32i16(<vscale x 32 x i16> %0, <vscale x 32 x i16> %1, <vscale x 32 x i1> %2, iXLen %3) nounwind {
303 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv32i16_nxv32i16_nxv32i16:
304 ; CHECK: # %bb.0: # %entry
305 ; CHECK-NEXT: vsetvli zero, a0, e16, m8, ta, ma
306 ; CHECK-NEXT: vmerge.vvm v8, v8, v16, v0
309 %a = call <vscale x 32 x i16> @llvm.riscv.vmerge.nxv32i16.nxv32i16(
310 <vscale x 32 x i16> undef,
311 <vscale x 32 x i16> %0,
312 <vscale x 32 x i16> %1,
313 <vscale x 32 x i1> %2,
316 ret <vscale x 32 x i16> %a
319 declare <vscale x 1 x i32> @llvm.riscv.vmerge.nxv1i32.nxv1i32(
326 define <vscale x 1 x i32> @intrinsic_vmerge_vvm_nxv1i32_nxv1i32_nxv1i32(<vscale x 1 x i32> %0, <vscale x 1 x i32> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
327 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv1i32_nxv1i32_nxv1i32:
328 ; CHECK: # %bb.0: # %entry
329 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, ma
330 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
333 %a = call <vscale x 1 x i32> @llvm.riscv.vmerge.nxv1i32.nxv1i32(
334 <vscale x 1 x i32> undef,
335 <vscale x 1 x i32> %0,
336 <vscale x 1 x i32> %1,
337 <vscale x 1 x i1> %2,
340 ret <vscale x 1 x i32> %a
343 declare <vscale x 2 x i32> @llvm.riscv.vmerge.nxv2i32.nxv2i32(
350 define <vscale x 2 x i32> @intrinsic_vmerge_vvm_nxv2i32_nxv2i32_nxv2i32(<vscale x 2 x i32> %0, <vscale x 2 x i32> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
351 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv2i32_nxv2i32_nxv2i32:
352 ; CHECK: # %bb.0: # %entry
353 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
354 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
357 %a = call <vscale x 2 x i32> @llvm.riscv.vmerge.nxv2i32.nxv2i32(
358 <vscale x 2 x i32> undef,
359 <vscale x 2 x i32> %0,
360 <vscale x 2 x i32> %1,
361 <vscale x 2 x i1> %2,
364 ret <vscale x 2 x i32> %a
367 declare <vscale x 4 x i32> @llvm.riscv.vmerge.nxv4i32.nxv4i32(
374 define <vscale x 4 x i32> @intrinsic_vmerge_vvm_nxv4i32_nxv4i32_nxv4i32(<vscale x 4 x i32> %0, <vscale x 4 x i32> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
375 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv4i32_nxv4i32_nxv4i32:
376 ; CHECK: # %bb.0: # %entry
377 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
378 ; CHECK-NEXT: vmerge.vvm v8, v8, v10, v0
381 %a = call <vscale x 4 x i32> @llvm.riscv.vmerge.nxv4i32.nxv4i32(
382 <vscale x 4 x i32> undef,
383 <vscale x 4 x i32> %0,
384 <vscale x 4 x i32> %1,
385 <vscale x 4 x i1> %2,
388 ret <vscale x 4 x i32> %a
391 declare <vscale x 8 x i32> @llvm.riscv.vmerge.nxv8i32.nxv8i32(
398 define <vscale x 8 x i32> @intrinsic_vmerge_vvm_nxv8i32_nxv8i32_nxv8i32(<vscale x 8 x i32> %0, <vscale x 8 x i32> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
399 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv8i32_nxv8i32_nxv8i32:
400 ; CHECK: # %bb.0: # %entry
401 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
402 ; CHECK-NEXT: vmerge.vvm v8, v8, v12, v0
405 %a = call <vscale x 8 x i32> @llvm.riscv.vmerge.nxv8i32.nxv8i32(
406 <vscale x 8 x i32> undef,
407 <vscale x 8 x i32> %0,
408 <vscale x 8 x i32> %1,
409 <vscale x 8 x i1> %2,
412 ret <vscale x 8 x i32> %a
415 declare <vscale x 16 x i32> @llvm.riscv.vmerge.nxv16i32.nxv16i32(
422 define <vscale x 16 x i32> @intrinsic_vmerge_vvm_nxv16i32_nxv16i32_nxv16i32(<vscale x 16 x i32> %0, <vscale x 16 x i32> %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
423 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv16i32_nxv16i32_nxv16i32:
424 ; CHECK: # %bb.0: # %entry
425 ; CHECK-NEXT: vsetvli zero, a0, e32, m8, ta, ma
426 ; CHECK-NEXT: vmerge.vvm v8, v8, v16, v0
429 %a = call <vscale x 16 x i32> @llvm.riscv.vmerge.nxv16i32.nxv16i32(
430 <vscale x 16 x i32> undef,
431 <vscale x 16 x i32> %0,
432 <vscale x 16 x i32> %1,
433 <vscale x 16 x i1> %2,
436 ret <vscale x 16 x i32> %a
439 declare <vscale x 1 x i64> @llvm.riscv.vmerge.nxv1i64.nxv1i64(
446 define <vscale x 1 x i64> @intrinsic_vmerge_vvm_nxv1i64_nxv1i64_nxv1i64(<vscale x 1 x i64> %0, <vscale x 1 x i64> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
447 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv1i64_nxv1i64_nxv1i64:
448 ; CHECK: # %bb.0: # %entry
449 ; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, ma
450 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
453 %a = call <vscale x 1 x i64> @llvm.riscv.vmerge.nxv1i64.nxv1i64(
454 <vscale x 1 x i64> undef,
455 <vscale x 1 x i64> %0,
456 <vscale x 1 x i64> %1,
457 <vscale x 1 x i1> %2,
460 ret <vscale x 1 x i64> %a
463 declare <vscale x 2 x i64> @llvm.riscv.vmerge.nxv2i64.nxv2i64(
470 define <vscale x 2 x i64> @intrinsic_vmerge_vvm_nxv2i64_nxv2i64_nxv2i64(<vscale x 2 x i64> %0, <vscale x 2 x i64> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
471 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv2i64_nxv2i64_nxv2i64:
472 ; CHECK: # %bb.0: # %entry
473 ; CHECK-NEXT: vsetvli zero, a0, e64, m2, ta, ma
474 ; CHECK-NEXT: vmerge.vvm v8, v8, v10, v0
477 %a = call <vscale x 2 x i64> @llvm.riscv.vmerge.nxv2i64.nxv2i64(
478 <vscale x 2 x i64> undef,
479 <vscale x 2 x i64> %0,
480 <vscale x 2 x i64> %1,
481 <vscale x 2 x i1> %2,
484 ret <vscale x 2 x i64> %a
487 declare <vscale x 4 x i64> @llvm.riscv.vmerge.nxv4i64.nxv4i64(
494 define <vscale x 4 x i64> @intrinsic_vmerge_vvm_nxv4i64_nxv4i64_nxv4i64(<vscale x 4 x i64> %0, <vscale x 4 x i64> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
495 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv4i64_nxv4i64_nxv4i64:
496 ; CHECK: # %bb.0: # %entry
497 ; CHECK-NEXT: vsetvli zero, a0, e64, m4, ta, ma
498 ; CHECK-NEXT: vmerge.vvm v8, v8, v12, v0
501 %a = call <vscale x 4 x i64> @llvm.riscv.vmerge.nxv4i64.nxv4i64(
502 <vscale x 4 x i64> undef,
503 <vscale x 4 x i64> %0,
504 <vscale x 4 x i64> %1,
505 <vscale x 4 x i1> %2,
508 ret <vscale x 4 x i64> %a
511 declare <vscale x 8 x i64> @llvm.riscv.vmerge.nxv8i64.nxv8i64(
518 define <vscale x 8 x i64> @intrinsic_vmerge_vvm_nxv8i64_nxv8i64_nxv8i64(<vscale x 8 x i64> %0, <vscale x 8 x i64> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
519 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv8i64_nxv8i64_nxv8i64:
520 ; CHECK: # %bb.0: # %entry
521 ; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, ma
522 ; CHECK-NEXT: vmerge.vvm v8, v8, v16, v0
525 %a = call <vscale x 8 x i64> @llvm.riscv.vmerge.nxv8i64.nxv8i64(
526 <vscale x 8 x i64> undef,
527 <vscale x 8 x i64> %0,
528 <vscale x 8 x i64> %1,
529 <vscale x 8 x i1> %2,
532 ret <vscale x 8 x i64> %a
535 declare <vscale x 1 x i8> @llvm.riscv.vmerge.nxv1i8.i8(
542 define <vscale x 1 x i8> @intrinsic_vmerge_vxm_nxv1i8_nxv1i8_i8(<vscale x 1 x i8> %0, i8 %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
543 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv1i8_nxv1i8_i8:
544 ; CHECK: # %bb.0: # %entry
545 ; CHECK-NEXT: vsetvli zero, a1, e8, mf8, ta, ma
546 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
549 %a = call <vscale x 1 x i8> @llvm.riscv.vmerge.nxv1i8.i8(
550 <vscale x 1 x i8> undef,
551 <vscale x 1 x i8> %0,
553 <vscale x 1 x i1> %2,
556 ret <vscale x 1 x i8> %a
559 declare <vscale x 2 x i8> @llvm.riscv.vmerge.nxv2i8.i8(
566 define <vscale x 2 x i8> @intrinsic_vmerge_vxm_nxv2i8_nxv2i8_i8(<vscale x 2 x i8> %0, i8 %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
567 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv2i8_nxv2i8_i8:
568 ; CHECK: # %bb.0: # %entry
569 ; CHECK-NEXT: vsetvli zero, a1, e8, mf4, ta, ma
570 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
573 %a = call <vscale x 2 x i8> @llvm.riscv.vmerge.nxv2i8.i8(
574 <vscale x 2 x i8> undef,
575 <vscale x 2 x i8> %0,
577 <vscale x 2 x i1> %2,
580 ret <vscale x 2 x i8> %a
583 declare <vscale x 4 x i8> @llvm.riscv.vmerge.nxv4i8.i8(
590 define <vscale x 4 x i8> @intrinsic_vmerge_vxm_nxv4i8_nxv4i8_i8(<vscale x 4 x i8> %0, i8 %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
591 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv4i8_nxv4i8_i8:
592 ; CHECK: # %bb.0: # %entry
593 ; CHECK-NEXT: vsetvli zero, a1, e8, mf2, ta, ma
594 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
597 %a = call <vscale x 4 x i8> @llvm.riscv.vmerge.nxv4i8.i8(
598 <vscale x 4 x i8> undef,
599 <vscale x 4 x i8> %0,
601 <vscale x 4 x i1> %2,
604 ret <vscale x 4 x i8> %a
607 declare <vscale x 8 x i8> @llvm.riscv.vmerge.nxv8i8.i8(
614 define <vscale x 8 x i8> @intrinsic_vmerge_vxm_nxv8i8_nxv8i8_i8(<vscale x 8 x i8> %0, i8 %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
615 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv8i8_nxv8i8_i8:
616 ; CHECK: # %bb.0: # %entry
617 ; CHECK-NEXT: vsetvli zero, a1, e8, m1, ta, ma
618 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
621 %a = call <vscale x 8 x i8> @llvm.riscv.vmerge.nxv8i8.i8(
622 <vscale x 8 x i8> undef,
623 <vscale x 8 x i8> %0,
625 <vscale x 8 x i1> %2,
628 ret <vscale x 8 x i8> %a
631 declare <vscale x 16 x i8> @llvm.riscv.vmerge.nxv16i8.i8(
638 define <vscale x 16 x i8> @intrinsic_vmerge_vxm_nxv16i8_nxv16i8_i8(<vscale x 16 x i8> %0, i8 %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
639 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv16i8_nxv16i8_i8:
640 ; CHECK: # %bb.0: # %entry
641 ; CHECK-NEXT: vsetvli zero, a1, e8, m2, ta, ma
642 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
645 %a = call <vscale x 16 x i8> @llvm.riscv.vmerge.nxv16i8.i8(
646 <vscale x 16 x i8> undef,
647 <vscale x 16 x i8> %0,
649 <vscale x 16 x i1> %2,
652 ret <vscale x 16 x i8> %a
655 declare <vscale x 32 x i8> @llvm.riscv.vmerge.nxv32i8.i8(
662 define <vscale x 32 x i8> @intrinsic_vmerge_vxm_nxv32i8_nxv32i8_i8(<vscale x 32 x i8> %0, i8 %1, <vscale x 32 x i1> %2, iXLen %3) nounwind {
663 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv32i8_nxv32i8_i8:
664 ; CHECK: # %bb.0: # %entry
665 ; CHECK-NEXT: vsetvli zero, a1, e8, m4, ta, ma
666 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
669 %a = call <vscale x 32 x i8> @llvm.riscv.vmerge.nxv32i8.i8(
670 <vscale x 32 x i8> undef,
671 <vscale x 32 x i8> %0,
673 <vscale x 32 x i1> %2,
676 ret <vscale x 32 x i8> %a
679 declare <vscale x 64 x i8> @llvm.riscv.vmerge.nxv64i8.i8(
686 define <vscale x 64 x i8> @intrinsic_vmerge_vxm_nxv64i8_nxv64i8_i8(<vscale x 64 x i8> %0, i8 %1, <vscale x 64 x i1> %2, iXLen %3) nounwind {
687 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv64i8_nxv64i8_i8:
688 ; CHECK: # %bb.0: # %entry
689 ; CHECK-NEXT: vsetvli zero, a1, e8, m8, ta, ma
690 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
693 %a = call <vscale x 64 x i8> @llvm.riscv.vmerge.nxv64i8.i8(
694 <vscale x 64 x i8> undef,
695 <vscale x 64 x i8> %0,
697 <vscale x 64 x i1> %2,
700 ret <vscale x 64 x i8> %a
703 declare <vscale x 1 x i16> @llvm.riscv.vmerge.nxv1i16.i16(
710 define <vscale x 1 x i16> @intrinsic_vmerge_vxm_nxv1i16_nxv1i16_i16(<vscale x 1 x i16> %0, i16 %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
711 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv1i16_nxv1i16_i16:
712 ; CHECK: # %bb.0: # %entry
713 ; CHECK-NEXT: vsetvli zero, a1, e16, mf4, ta, ma
714 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
717 %a = call <vscale x 1 x i16> @llvm.riscv.vmerge.nxv1i16.i16(
718 <vscale x 1 x i16> undef,
719 <vscale x 1 x i16> %0,
721 <vscale x 1 x i1> %2,
724 ret <vscale x 1 x i16> %a
727 declare <vscale x 2 x i16> @llvm.riscv.vmerge.nxv2i16.i16(
734 define <vscale x 2 x i16> @intrinsic_vmerge_vxm_nxv2i16_nxv2i16_i16(<vscale x 2 x i16> %0, i16 %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
735 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv2i16_nxv2i16_i16:
736 ; CHECK: # %bb.0: # %entry
737 ; CHECK-NEXT: vsetvli zero, a1, e16, mf2, ta, ma
738 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
741 %a = call <vscale x 2 x i16> @llvm.riscv.vmerge.nxv2i16.i16(
742 <vscale x 2 x i16> undef,
743 <vscale x 2 x i16> %0,
745 <vscale x 2 x i1> %2,
748 ret <vscale x 2 x i16> %a
751 declare <vscale x 4 x i16> @llvm.riscv.vmerge.nxv4i16.i16(
758 define <vscale x 4 x i16> @intrinsic_vmerge_vxm_nxv4i16_nxv4i16_i16(<vscale x 4 x i16> %0, i16 %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
759 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv4i16_nxv4i16_i16:
760 ; CHECK: # %bb.0: # %entry
761 ; CHECK-NEXT: vsetvli zero, a1, e16, m1, ta, ma
762 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
765 %a = call <vscale x 4 x i16> @llvm.riscv.vmerge.nxv4i16.i16(
766 <vscale x 4 x i16> undef,
767 <vscale x 4 x i16> %0,
769 <vscale x 4 x i1> %2,
772 ret <vscale x 4 x i16> %a
775 declare <vscale x 8 x i16> @llvm.riscv.vmerge.nxv8i16.i16(
782 define <vscale x 8 x i16> @intrinsic_vmerge_vxm_nxv8i16_nxv8i16_i16(<vscale x 8 x i16> %0, i16 %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
783 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv8i16_nxv8i16_i16:
784 ; CHECK: # %bb.0: # %entry
785 ; CHECK-NEXT: vsetvli zero, a1, e16, m2, ta, ma
786 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
789 %a = call <vscale x 8 x i16> @llvm.riscv.vmerge.nxv8i16.i16(
790 <vscale x 8 x i16> undef,
791 <vscale x 8 x i16> %0,
793 <vscale x 8 x i1> %2,
796 ret <vscale x 8 x i16> %a
799 declare <vscale x 16 x i16> @llvm.riscv.vmerge.nxv16i16.i16(
806 define <vscale x 16 x i16> @intrinsic_vmerge_vxm_nxv16i16_nxv16i16_i16(<vscale x 16 x i16> %0, i16 %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
807 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv16i16_nxv16i16_i16:
808 ; CHECK: # %bb.0: # %entry
809 ; CHECK-NEXT: vsetvli zero, a1, e16, m4, ta, ma
810 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
813 %a = call <vscale x 16 x i16> @llvm.riscv.vmerge.nxv16i16.i16(
814 <vscale x 16 x i16> undef,
815 <vscale x 16 x i16> %0,
817 <vscale x 16 x i1> %2,
820 ret <vscale x 16 x i16> %a
823 declare <vscale x 32 x i16> @llvm.riscv.vmerge.nxv32i16.i16(
830 define <vscale x 32 x i16> @intrinsic_vmerge_vxm_nxv32i16_nxv32i16_i16(<vscale x 32 x i16> %0, i16 %1, <vscale x 32 x i1> %2, iXLen %3) nounwind {
831 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv32i16_nxv32i16_i16:
832 ; CHECK: # %bb.0: # %entry
833 ; CHECK-NEXT: vsetvli zero, a1, e16, m8, ta, ma
834 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
837 %a = call <vscale x 32 x i16> @llvm.riscv.vmerge.nxv32i16.i16(
838 <vscale x 32 x i16> undef,
839 <vscale x 32 x i16> %0,
841 <vscale x 32 x i1> %2,
844 ret <vscale x 32 x i16> %a
847 declare <vscale x 1 x i32> @llvm.riscv.vmerge.nxv1i32.i32(
854 define <vscale x 1 x i32> @intrinsic_vmerge_vxm_nxv1i32_nxv1i32_i32(<vscale x 1 x i32> %0, i32 %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
855 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv1i32_nxv1i32_i32:
856 ; CHECK: # %bb.0: # %entry
857 ; CHECK-NEXT: vsetvli zero, a1, e32, mf2, ta, ma
858 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
861 %a = call <vscale x 1 x i32> @llvm.riscv.vmerge.nxv1i32.i32(
862 <vscale x 1 x i32> undef,
863 <vscale x 1 x i32> %0,
865 <vscale x 1 x i1> %2,
868 ret <vscale x 1 x i32> %a
871 declare <vscale x 2 x i32> @llvm.riscv.vmerge.nxv2i32.i32(
878 define <vscale x 2 x i32> @intrinsic_vmerge_vxm_nxv2i32_nxv2i32_i32(<vscale x 2 x i32> %0, i32 %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
879 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv2i32_nxv2i32_i32:
880 ; CHECK: # %bb.0: # %entry
881 ; CHECK-NEXT: vsetvli zero, a1, e32, m1, ta, ma
882 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
885 %a = call <vscale x 2 x i32> @llvm.riscv.vmerge.nxv2i32.i32(
886 <vscale x 2 x i32> undef,
887 <vscale x 2 x i32> %0,
889 <vscale x 2 x i1> %2,
892 ret <vscale x 2 x i32> %a
895 declare <vscale x 4 x i32> @llvm.riscv.vmerge.nxv4i32.i32(
902 define <vscale x 4 x i32> @intrinsic_vmerge_vxm_nxv4i32_nxv4i32_i32(<vscale x 4 x i32> %0, i32 %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
903 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv4i32_nxv4i32_i32:
904 ; CHECK: # %bb.0: # %entry
905 ; CHECK-NEXT: vsetvli zero, a1, e32, m2, ta, ma
906 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
909 %a = call <vscale x 4 x i32> @llvm.riscv.vmerge.nxv4i32.i32(
910 <vscale x 4 x i32> undef,
911 <vscale x 4 x i32> %0,
913 <vscale x 4 x i1> %2,
916 ret <vscale x 4 x i32> %a
919 declare <vscale x 8 x i32> @llvm.riscv.vmerge.nxv8i32.i32(
926 define <vscale x 8 x i32> @intrinsic_vmerge_vxm_nxv8i32_nxv8i32_i32(<vscale x 8 x i32> %0, i32 %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
927 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv8i32_nxv8i32_i32:
928 ; CHECK: # %bb.0: # %entry
929 ; CHECK-NEXT: vsetvli zero, a1, e32, m4, ta, ma
930 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
933 %a = call <vscale x 8 x i32> @llvm.riscv.vmerge.nxv8i32.i32(
934 <vscale x 8 x i32> undef,
935 <vscale x 8 x i32> %0,
937 <vscale x 8 x i1> %2,
940 ret <vscale x 8 x i32> %a
943 declare <vscale x 16 x i32> @llvm.riscv.vmerge.nxv16i32.i32(
950 define <vscale x 16 x i32> @intrinsic_vmerge_vxm_nxv16i32_nxv16i32_i32(<vscale x 16 x i32> %0, i32 %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
951 ; CHECK-LABEL: intrinsic_vmerge_vxm_nxv16i32_nxv16i32_i32:
952 ; CHECK: # %bb.0: # %entry
953 ; CHECK-NEXT: vsetvli zero, a1, e32, m8, ta, ma
954 ; CHECK-NEXT: vmerge.vxm v8, v8, a0, v0
957 %a = call <vscale x 16 x i32> @llvm.riscv.vmerge.nxv16i32.i32(
958 <vscale x 16 x i32> undef,
959 <vscale x 16 x i32> %0,
961 <vscale x 16 x i1> %2,
964 ret <vscale x 16 x i32> %a
967 declare <vscale x 1 x i64> @llvm.riscv.vmerge.nxv1i64.i64(
974 define <vscale x 1 x i64> @intrinsic_vmerge_vxm_nxv1i64_nxv1i64_i64(<vscale x 1 x i64> %0, i64 %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
976 %a = call <vscale x 1 x i64> @llvm.riscv.vmerge.nxv1i64.i64(
977 <vscale x 1 x i64> undef,
978 <vscale x 1 x i64> %0,
980 <vscale x 1 x i1> %2,
983 ret <vscale x 1 x i64> %a
986 declare <vscale x 2 x i64> @llvm.riscv.vmerge.nxv2i64.i64(
993 define <vscale x 2 x i64> @intrinsic_vmerge_vxm_nxv2i64_nxv2i64_i64(<vscale x 2 x i64> %0, i64 %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
995 %a = call <vscale x 2 x i64> @llvm.riscv.vmerge.nxv2i64.i64(
996 <vscale x 2 x i64> undef,
997 <vscale x 2 x i64> %0,
999 <vscale x 2 x i1> %2,
1002 ret <vscale x 2 x i64> %a
1005 declare <vscale x 4 x i64> @llvm.riscv.vmerge.nxv4i64.i64(
1012 define <vscale x 4 x i64> @intrinsic_vmerge_vxm_nxv4i64_nxv4i64_i64(<vscale x 4 x i64> %0, i64 %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
1014 %a = call <vscale x 4 x i64> @llvm.riscv.vmerge.nxv4i64.i64(
1015 <vscale x 4 x i64> undef,
1016 <vscale x 4 x i64> %0,
1018 <vscale x 4 x i1> %2,
1021 ret <vscale x 4 x i64> %a
1024 declare <vscale x 8 x i64> @llvm.riscv.vmerge.nxv8i64.i64(
1031 define <vscale x 8 x i64> @intrinsic_vmerge_vxm_nxv8i64_nxv8i64_i64(<vscale x 8 x i64> %0, i64 %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
1033 %a = call <vscale x 8 x i64> @llvm.riscv.vmerge.nxv8i64.i64(
1034 <vscale x 8 x i64> undef,
1035 <vscale x 8 x i64> %0,
1037 <vscale x 8 x i1> %2,
1040 ret <vscale x 8 x i64> %a
1043 define <vscale x 1 x i8> @intrinsic_vmerge_vim_nxv1i8_nxv1i8_i8(<vscale x 1 x i8> %0, <vscale x 1 x i1> %1, iXLen %2) nounwind {
1044 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv1i8_nxv1i8_i8:
1045 ; CHECK: # %bb.0: # %entry
1046 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, ta, ma
1047 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1050 %a = call <vscale x 1 x i8> @llvm.riscv.vmerge.nxv1i8.i8(
1051 <vscale x 1 x i8> undef,
1052 <vscale x 1 x i8> %0,
1054 <vscale x 1 x i1> %1,
1057 ret <vscale x 1 x i8> %a
1060 define <vscale x 2 x i8> @intrinsic_vmerge_vim_nxv2i8_nxv2i8_i8(<vscale x 2 x i8> %0, <vscale x 2 x i1> %1, iXLen %2) nounwind {
1061 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv2i8_nxv2i8_i8:
1062 ; CHECK: # %bb.0: # %entry
1063 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, ta, ma
1064 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1067 %a = call <vscale x 2 x i8> @llvm.riscv.vmerge.nxv2i8.i8(
1068 <vscale x 2 x i8> undef,
1069 <vscale x 2 x i8> %0,
1071 <vscale x 2 x i1> %1,
1074 ret <vscale x 2 x i8> %a
1077 define <vscale x 4 x i8> @intrinsic_vmerge_vim_nxv4i8_nxv4i8_i8(<vscale x 4 x i8> %0, <vscale x 4 x i1> %1, iXLen %2) nounwind {
1078 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv4i8_nxv4i8_i8:
1079 ; CHECK: # %bb.0: # %entry
1080 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, ta, ma
1081 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1084 %a = call <vscale x 4 x i8> @llvm.riscv.vmerge.nxv4i8.i8(
1085 <vscale x 4 x i8> undef,
1086 <vscale x 4 x i8> %0,
1088 <vscale x 4 x i1> %1,
1091 ret <vscale x 4 x i8> %a
1094 define <vscale x 8 x i8> @intrinsic_vmerge_vim_nxv8i8_nxv8i8_i8(<vscale x 8 x i8> %0, <vscale x 8 x i1> %1, iXLen %2) nounwind {
1095 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv8i8_nxv8i8_i8:
1096 ; CHECK: # %bb.0: # %entry
1097 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, ma
1098 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1101 %a = call <vscale x 8 x i8> @llvm.riscv.vmerge.nxv8i8.i8(
1102 <vscale x 8 x i8> undef,
1103 <vscale x 8 x i8> %0,
1105 <vscale x 8 x i1> %1,
1108 ret <vscale x 8 x i8> %a
1111 define <vscale x 16 x i8> @intrinsic_vmerge_vim_nxv16i8_nxv16i8_i8(<vscale x 16 x i8> %0, <vscale x 16 x i1> %1, iXLen %2) nounwind {
1112 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv16i8_nxv16i8_i8:
1113 ; CHECK: # %bb.0: # %entry
1114 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, ta, ma
1115 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1118 %a = call <vscale x 16 x i8> @llvm.riscv.vmerge.nxv16i8.i8(
1119 <vscale x 16 x i8> undef,
1120 <vscale x 16 x i8> %0,
1122 <vscale x 16 x i1> %1,
1125 ret <vscale x 16 x i8> %a
1128 define <vscale x 32 x i8> @intrinsic_vmerge_vim_nxv32i8_nxv32i8_i8(<vscale x 32 x i8> %0, <vscale x 32 x i1> %1, iXLen %2) nounwind {
1129 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv32i8_nxv32i8_i8:
1130 ; CHECK: # %bb.0: # %entry
1131 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, ta, ma
1132 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1135 %a = call <vscale x 32 x i8> @llvm.riscv.vmerge.nxv32i8.i8(
1136 <vscale x 32 x i8> undef,
1137 <vscale x 32 x i8> %0,
1139 <vscale x 32 x i1> %1,
1142 ret <vscale x 32 x i8> %a
1145 define <vscale x 64 x i8> @intrinsic_vmerge_vim_nxv64i8_nxv64i8_i8(<vscale x 64 x i8> %0, <vscale x 64 x i1> %1, iXLen %2) nounwind {
1146 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv64i8_nxv64i8_i8:
1147 ; CHECK: # %bb.0: # %entry
1148 ; CHECK-NEXT: vsetvli zero, a0, e8, m8, ta, ma
1149 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1152 %a = call <vscale x 64 x i8> @llvm.riscv.vmerge.nxv64i8.i8(
1153 <vscale x 64 x i8> undef,
1154 <vscale x 64 x i8> %0,
1156 <vscale x 64 x i1> %1,
1159 ret <vscale x 64 x i8> %a
1162 define <vscale x 1 x i16> @intrinsic_vmerge_vim_nxv1i16_nxv1i16_i16(<vscale x 1 x i16> %0, <vscale x 1 x i1> %1, iXLen %2) nounwind {
1163 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv1i16_nxv1i16_i16:
1164 ; CHECK: # %bb.0: # %entry
1165 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, ma
1166 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1169 %a = call <vscale x 1 x i16> @llvm.riscv.vmerge.nxv1i16.i16(
1170 <vscale x 1 x i16> undef,
1171 <vscale x 1 x i16> %0,
1173 <vscale x 1 x i1> %1,
1176 ret <vscale x 1 x i16> %a
1179 define <vscale x 2 x i16> @intrinsic_vmerge_vim_nxv2i16_nxv2i16_i16(<vscale x 2 x i16> %0, <vscale x 2 x i1> %1, iXLen %2) nounwind {
1180 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv2i16_nxv2i16_i16:
1181 ; CHECK: # %bb.0: # %entry
1182 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
1183 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1186 %a = call <vscale x 2 x i16> @llvm.riscv.vmerge.nxv2i16.i16(
1187 <vscale x 2 x i16> undef,
1188 <vscale x 2 x i16> %0,
1190 <vscale x 2 x i1> %1,
1193 ret <vscale x 2 x i16> %a
1196 define <vscale x 4 x i16> @intrinsic_vmerge_vim_nxv4i16_nxv4i16_i16(<vscale x 4 x i16> %0, <vscale x 4 x i1> %1, iXLen %2) nounwind {
1197 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv4i16_nxv4i16_i16:
1198 ; CHECK: # %bb.0: # %entry
1199 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, ma
1200 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1203 %a = call <vscale x 4 x i16> @llvm.riscv.vmerge.nxv4i16.i16(
1204 <vscale x 4 x i16> undef,
1205 <vscale x 4 x i16> %0,
1207 <vscale x 4 x i1> %1,
1210 ret <vscale x 4 x i16> %a
1213 define <vscale x 8 x i16> @intrinsic_vmerge_vim_nxv8i16_nxv8i16_i16(<vscale x 8 x i16> %0, <vscale x 8 x i1> %1, iXLen %2) nounwind {
1214 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv8i16_nxv8i16_i16:
1215 ; CHECK: # %bb.0: # %entry
1216 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, ma
1217 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1220 %a = call <vscale x 8 x i16> @llvm.riscv.vmerge.nxv8i16.i16(
1221 <vscale x 8 x i16> undef,
1222 <vscale x 8 x i16> %0,
1224 <vscale x 8 x i1> %1,
1227 ret <vscale x 8 x i16> %a
1230 define <vscale x 16 x i16> @intrinsic_vmerge_vim_nxv16i16_nxv16i16_i16(<vscale x 16 x i16> %0, <vscale x 16 x i1> %1, iXLen %2) nounwind {
1231 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv16i16_nxv16i16_i16:
1232 ; CHECK: # %bb.0: # %entry
1233 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, ma
1234 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1237 %a = call <vscale x 16 x i16> @llvm.riscv.vmerge.nxv16i16.i16(
1238 <vscale x 16 x i16> undef,
1239 <vscale x 16 x i16> %0,
1241 <vscale x 16 x i1> %1,
1244 ret <vscale x 16 x i16> %a
1247 define <vscale x 32 x i16> @intrinsic_vmerge_vim_nxv32i16_nxv32i16_i16(<vscale x 32 x i16> %0, <vscale x 32 x i1> %1, iXLen %2) nounwind {
1248 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv32i16_nxv32i16_i16:
1249 ; CHECK: # %bb.0: # %entry
1250 ; CHECK-NEXT: vsetvli zero, a0, e16, m8, ta, ma
1251 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1254 %a = call <vscale x 32 x i16> @llvm.riscv.vmerge.nxv32i16.i16(
1255 <vscale x 32 x i16> undef,
1256 <vscale x 32 x i16> %0,
1258 <vscale x 32 x i1> %1,
1261 ret <vscale x 32 x i16> %a
1264 define <vscale x 1 x i32> @intrinsic_vmerge_vim_nxv1i32_nxv1i32_i32(<vscale x 1 x i32> %0, <vscale x 1 x i1> %1, iXLen %2) nounwind {
1265 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv1i32_nxv1i32_i32:
1266 ; CHECK: # %bb.0: # %entry
1267 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, ma
1268 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1271 %a = call <vscale x 1 x i32> @llvm.riscv.vmerge.nxv1i32.i32(
1272 <vscale x 1 x i32> undef,
1273 <vscale x 1 x i32> %0,
1275 <vscale x 1 x i1> %1,
1278 ret <vscale x 1 x i32> %a
1281 define <vscale x 2 x i32> @intrinsic_vmerge_vim_nxv2i32_nxv2i32_i32(<vscale x 2 x i32> %0, <vscale x 2 x i1> %1, iXLen %2) nounwind {
1282 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv2i32_nxv2i32_i32:
1283 ; CHECK: # %bb.0: # %entry
1284 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
1285 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1288 %a = call <vscale x 2 x i32> @llvm.riscv.vmerge.nxv2i32.i32(
1289 <vscale x 2 x i32> undef,
1290 <vscale x 2 x i32> %0,
1292 <vscale x 2 x i1> %1,
1295 ret <vscale x 2 x i32> %a
1298 define <vscale x 4 x i32> @intrinsic_vmerge_vim_nxv4i32_nxv4i32_i32(<vscale x 4 x i32> %0, <vscale x 4 x i1> %1, iXLen %2) nounwind {
1299 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv4i32_nxv4i32_i32:
1300 ; CHECK: # %bb.0: # %entry
1301 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
1302 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1305 %a = call <vscale x 4 x i32> @llvm.riscv.vmerge.nxv4i32.i32(
1306 <vscale x 4 x i32> undef,
1307 <vscale x 4 x i32> %0,
1309 <vscale x 4 x i1> %1,
1312 ret <vscale x 4 x i32> %a
1315 define <vscale x 8 x i32> @intrinsic_vmerge_vim_nxv8i32_nxv8i32_i32(<vscale x 8 x i32> %0, <vscale x 8 x i1> %1, iXLen %2) nounwind {
1316 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv8i32_nxv8i32_i32:
1317 ; CHECK: # %bb.0: # %entry
1318 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
1319 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1322 %a = call <vscale x 8 x i32> @llvm.riscv.vmerge.nxv8i32.i32(
1323 <vscale x 8 x i32> undef,
1324 <vscale x 8 x i32> %0,
1326 <vscale x 8 x i1> %1,
1329 ret <vscale x 8 x i32> %a
1332 define <vscale x 16 x i32> @intrinsic_vmerge_vim_nxv16i32_nxv16i32_i32(<vscale x 16 x i32> %0, <vscale x 16 x i1> %1, iXLen %2) nounwind {
1333 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv16i32_nxv16i32_i32:
1334 ; CHECK: # %bb.0: # %entry
1335 ; CHECK-NEXT: vsetvli zero, a0, e32, m8, ta, ma
1336 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1339 %a = call <vscale x 16 x i32> @llvm.riscv.vmerge.nxv16i32.i32(
1340 <vscale x 16 x i32> undef,
1341 <vscale x 16 x i32> %0,
1343 <vscale x 16 x i1> %1,
1346 ret <vscale x 16 x i32> %a
1349 define <vscale x 1 x i64> @intrinsic_vmerge_vim_nxv1i64_nxv1i64_i64(<vscale x 1 x i64> %0, <vscale x 1 x i1> %1, iXLen %2) nounwind {
1350 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv1i64_nxv1i64_i64:
1351 ; CHECK: # %bb.0: # %entry
1352 ; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, ma
1353 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1356 %a = call <vscale x 1 x i64> @llvm.riscv.vmerge.nxv1i64.i64(
1357 <vscale x 1 x i64> undef,
1358 <vscale x 1 x i64> %0,
1360 <vscale x 1 x i1> %1,
1363 ret <vscale x 1 x i64> %a
1366 define <vscale x 2 x i64> @intrinsic_vmerge_vim_nxv2i64_nxv2i64_i64(<vscale x 2 x i64> %0, <vscale x 2 x i1> %1, iXLen %2) nounwind {
1367 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv2i64_nxv2i64_i64:
1368 ; CHECK: # %bb.0: # %entry
1369 ; CHECK-NEXT: vsetvli zero, a0, e64, m2, ta, ma
1370 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1373 %a = call <vscale x 2 x i64> @llvm.riscv.vmerge.nxv2i64.i64(
1374 <vscale x 2 x i64> undef,
1375 <vscale x 2 x i64> %0,
1377 <vscale x 2 x i1> %1,
1380 ret <vscale x 2 x i64> %a
1383 define <vscale x 4 x i64> @intrinsic_vmerge_vim_nxv4i64_nxv4i64_i64(<vscale x 4 x i64> %0, <vscale x 4 x i1> %1, iXLen %2) nounwind {
1384 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv4i64_nxv4i64_i64:
1385 ; CHECK: # %bb.0: # %entry
1386 ; CHECK-NEXT: vsetvli zero, a0, e64, m4, ta, ma
1387 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1390 %a = call <vscale x 4 x i64> @llvm.riscv.vmerge.nxv4i64.i64(
1391 <vscale x 4 x i64> undef,
1392 <vscale x 4 x i64> %0,
1394 <vscale x 4 x i1> %1,
1397 ret <vscale x 4 x i64> %a
1400 define <vscale x 8 x i64> @intrinsic_vmerge_vim_nxv8i64_nxv8i64_i64(<vscale x 8 x i64> %0, <vscale x 8 x i1> %1, iXLen %2) nounwind {
1401 ; CHECK-LABEL: intrinsic_vmerge_vim_nxv8i64_nxv8i64_i64:
1402 ; CHECK: # %bb.0: # %entry
1403 ; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, ma
1404 ; CHECK-NEXT: vmerge.vim v8, v8, 9, v0
1407 %a = call <vscale x 8 x i64> @llvm.riscv.vmerge.nxv8i64.i64(
1408 <vscale x 8 x i64> undef,
1409 <vscale x 8 x i64> %0,
1411 <vscale x 8 x i1> %1,
1414 ret <vscale x 8 x i64> %a
1417 declare <vscale x 1 x half> @llvm.riscv.vmerge.nxv1f16.nxv1f16(
1418 <vscale x 1 x half>,
1419 <vscale x 1 x half>,
1420 <vscale x 1 x half>,
1424 define <vscale x 1 x half> @intrinsic_vmerge_vvm_nxv1f16_nxv1f16_nxv1f16(<vscale x 1 x half> %0, <vscale x 1 x half> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
1425 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv1f16_nxv1f16_nxv1f16:
1426 ; CHECK: # %bb.0: # %entry
1427 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, ma
1428 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
1431 %a = call <vscale x 1 x half> @llvm.riscv.vmerge.nxv1f16.nxv1f16(
1432 <vscale x 1 x half> undef,
1433 <vscale x 1 x half> %0,
1434 <vscale x 1 x half> %1,
1435 <vscale x 1 x i1> %2,
1438 ret <vscale x 1 x half> %a
1441 declare <vscale x 2 x half> @llvm.riscv.vmerge.nxv2f16.nxv2f16(
1442 <vscale x 2 x half>,
1443 <vscale x 2 x half>,
1444 <vscale x 2 x half>,
1448 define <vscale x 2 x half> @intrinsic_vmerge_vvm_nxv2f16_nxv2f16_nxv2f16(<vscale x 2 x half> %0, <vscale x 2 x half> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
1449 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv2f16_nxv2f16_nxv2f16:
1450 ; CHECK: # %bb.0: # %entry
1451 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
1452 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
1455 %a = call <vscale x 2 x half> @llvm.riscv.vmerge.nxv2f16.nxv2f16(
1456 <vscale x 2 x half> undef,
1457 <vscale x 2 x half> %0,
1458 <vscale x 2 x half> %1,
1459 <vscale x 2 x i1> %2,
1462 ret <vscale x 2 x half> %a
1465 declare <vscale x 4 x half> @llvm.riscv.vmerge.nxv4f16.nxv4f16(
1466 <vscale x 4 x half>,
1467 <vscale x 4 x half>,
1468 <vscale x 4 x half>,
1472 define <vscale x 4 x half> @intrinsic_vmerge_vvm_nxv4f16_nxv4f16_nxv4f16(<vscale x 4 x half> %0, <vscale x 4 x half> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
1473 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv4f16_nxv4f16_nxv4f16:
1474 ; CHECK: # %bb.0: # %entry
1475 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, ma
1476 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
1479 %a = call <vscale x 4 x half> @llvm.riscv.vmerge.nxv4f16.nxv4f16(
1480 <vscale x 4 x half> undef,
1481 <vscale x 4 x half> %0,
1482 <vscale x 4 x half> %1,
1483 <vscale x 4 x i1> %2,
1486 ret <vscale x 4 x half> %a
1489 declare <vscale x 8 x half> @llvm.riscv.vmerge.nxv8f16.nxv8f16(
1490 <vscale x 8 x half>,
1491 <vscale x 8 x half>,
1492 <vscale x 8 x half>,
1496 define <vscale x 8 x half> @intrinsic_vmerge_vvm_nxv8f16_nxv8f16_nxv8f16(<vscale x 8 x half> %0, <vscale x 8 x half> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
1497 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv8f16_nxv8f16_nxv8f16:
1498 ; CHECK: # %bb.0: # %entry
1499 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, ma
1500 ; CHECK-NEXT: vmerge.vvm v8, v8, v10, v0
1503 %a = call <vscale x 8 x half> @llvm.riscv.vmerge.nxv8f16.nxv8f16(
1504 <vscale x 8 x half> undef,
1505 <vscale x 8 x half> %0,
1506 <vscale x 8 x half> %1,
1507 <vscale x 8 x i1> %2,
1510 ret <vscale x 8 x half> %a
1513 declare <vscale x 16 x half> @llvm.riscv.vmerge.nxv16f16.nxv16f16(
1514 <vscale x 16 x half>,
1515 <vscale x 16 x half>,
1516 <vscale x 16 x half>,
1520 define <vscale x 16 x half> @intrinsic_vmerge_vvm_nxv16f16_nxv16f16_nxv16f16(<vscale x 16 x half> %0, <vscale x 16 x half> %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
1521 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv16f16_nxv16f16_nxv16f16:
1522 ; CHECK: # %bb.0: # %entry
1523 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, ma
1524 ; CHECK-NEXT: vmerge.vvm v8, v8, v12, v0
1527 %a = call <vscale x 16 x half> @llvm.riscv.vmerge.nxv16f16.nxv16f16(
1528 <vscale x 16 x half> undef,
1529 <vscale x 16 x half> %0,
1530 <vscale x 16 x half> %1,
1531 <vscale x 16 x i1> %2,
1534 ret <vscale x 16 x half> %a
1537 declare <vscale x 32 x half> @llvm.riscv.vmerge.nxv32f16.nxv32f16(
1538 <vscale x 32 x half>,
1539 <vscale x 32 x half>,
1540 <vscale x 32 x half>,
1544 define <vscale x 32 x half> @intrinsic_vmerge_vvm_nxv32f16_nxv32f16_nxv32f16(<vscale x 32 x half> %0, <vscale x 32 x half> %1, <vscale x 32 x i1> %2, iXLen %3) nounwind {
1545 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv32f16_nxv32f16_nxv32f16:
1546 ; CHECK: # %bb.0: # %entry
1547 ; CHECK-NEXT: vsetvli zero, a0, e16, m8, ta, ma
1548 ; CHECK-NEXT: vmerge.vvm v8, v8, v16, v0
1551 %a = call <vscale x 32 x half> @llvm.riscv.vmerge.nxv32f16.nxv32f16(
1552 <vscale x 32 x half> undef,
1553 <vscale x 32 x half> %0,
1554 <vscale x 32 x half> %1,
1555 <vscale x 32 x i1> %2,
1558 ret <vscale x 32 x half> %a
1561 declare <vscale x 1 x float> @llvm.riscv.vmerge.nxv1f32.nxv1f32(
1562 <vscale x 1 x float>,
1563 <vscale x 1 x float>,
1564 <vscale x 1 x float>,
1568 define <vscale x 1 x float> @intrinsic_vmerge_vvm_nxv1f32_nxv1f32_nxv1f32(<vscale x 1 x float> %0, <vscale x 1 x float> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
1569 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv1f32_nxv1f32_nxv1f32:
1570 ; CHECK: # %bb.0: # %entry
1571 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, ma
1572 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
1575 %a = call <vscale x 1 x float> @llvm.riscv.vmerge.nxv1f32.nxv1f32(
1576 <vscale x 1 x float> undef,
1577 <vscale x 1 x float> %0,
1578 <vscale x 1 x float> %1,
1579 <vscale x 1 x i1> %2,
1582 ret <vscale x 1 x float> %a
1585 declare <vscale x 2 x float> @llvm.riscv.vmerge.nxv2f32.nxv2f32(
1586 <vscale x 2 x float>,
1587 <vscale x 2 x float>,
1588 <vscale x 2 x float>,
1592 define <vscale x 2 x float> @intrinsic_vmerge_vvm_nxv2f32_nxv2f32_nxv2f32(<vscale x 2 x float> %0, <vscale x 2 x float> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
1593 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv2f32_nxv2f32_nxv2f32:
1594 ; CHECK: # %bb.0: # %entry
1595 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
1596 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
1599 %a = call <vscale x 2 x float> @llvm.riscv.vmerge.nxv2f32.nxv2f32(
1600 <vscale x 2 x float> undef,
1601 <vscale x 2 x float> %0,
1602 <vscale x 2 x float> %1,
1603 <vscale x 2 x i1> %2,
1606 ret <vscale x 2 x float> %a
1609 declare <vscale x 4 x float> @llvm.riscv.vmerge.nxv4f32.nxv4f32(
1610 <vscale x 4 x float>,
1611 <vscale x 4 x float>,
1612 <vscale x 4 x float>,
1616 define <vscale x 4 x float> @intrinsic_vmerge_vvm_nxv4f32_nxv4f32_nxv4f32(<vscale x 4 x float> %0, <vscale x 4 x float> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
1617 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv4f32_nxv4f32_nxv4f32:
1618 ; CHECK: # %bb.0: # %entry
1619 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
1620 ; CHECK-NEXT: vmerge.vvm v8, v8, v10, v0
1623 %a = call <vscale x 4 x float> @llvm.riscv.vmerge.nxv4f32.nxv4f32(
1624 <vscale x 4 x float> undef,
1625 <vscale x 4 x float> %0,
1626 <vscale x 4 x float> %1,
1627 <vscale x 4 x i1> %2,
1630 ret <vscale x 4 x float> %a
1633 declare <vscale x 8 x float> @llvm.riscv.vmerge.nxv8f32.nxv8f32(
1634 <vscale x 8 x float>,
1635 <vscale x 8 x float>,
1636 <vscale x 8 x float>,
1640 define <vscale x 8 x float> @intrinsic_vmerge_vvm_nxv8f32_nxv8f32_nxv8f32(<vscale x 8 x float> %0, <vscale x 8 x float> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
1641 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv8f32_nxv8f32_nxv8f32:
1642 ; CHECK: # %bb.0: # %entry
1643 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
1644 ; CHECK-NEXT: vmerge.vvm v8, v8, v12, v0
1647 %a = call <vscale x 8 x float> @llvm.riscv.vmerge.nxv8f32.nxv8f32(
1648 <vscale x 8 x float> undef,
1649 <vscale x 8 x float> %0,
1650 <vscale x 8 x float> %1,
1651 <vscale x 8 x i1> %2,
1654 ret <vscale x 8 x float> %a
1657 declare <vscale x 16 x float> @llvm.riscv.vmerge.nxv16f32.nxv16f32(
1658 <vscale x 16 x float>,
1659 <vscale x 16 x float>,
1660 <vscale x 16 x float>,
1664 define <vscale x 16 x float> @intrinsic_vmerge_vvm_nxv16f32_nxv16f32_nxv16f32(<vscale x 16 x float> %0, <vscale x 16 x float> %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
1665 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv16f32_nxv16f32_nxv16f32:
1666 ; CHECK: # %bb.0: # %entry
1667 ; CHECK-NEXT: vsetvli zero, a0, e32, m8, ta, ma
1668 ; CHECK-NEXT: vmerge.vvm v8, v8, v16, v0
1671 %a = call <vscale x 16 x float> @llvm.riscv.vmerge.nxv16f32.nxv16f32(
1672 <vscale x 16 x float> undef,
1673 <vscale x 16 x float> %0,
1674 <vscale x 16 x float> %1,
1675 <vscale x 16 x i1> %2,
1678 ret <vscale x 16 x float> %a
1681 declare <vscale x 1 x double> @llvm.riscv.vmerge.nxv1f64.nxv1f64(
1682 <vscale x 1 x double>,
1683 <vscale x 1 x double>,
1684 <vscale x 1 x double>,
1688 define <vscale x 1 x double> @intrinsic_vmerge_vvm_nxv1f64_nxv1f64_nxv1f64(<vscale x 1 x double> %0, <vscale x 1 x double> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
1689 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv1f64_nxv1f64_nxv1f64:
1690 ; CHECK: # %bb.0: # %entry
1691 ; CHECK-NEXT: vsetvli zero, a0, e64, m1, ta, ma
1692 ; CHECK-NEXT: vmerge.vvm v8, v8, v9, v0
1695 %a = call <vscale x 1 x double> @llvm.riscv.vmerge.nxv1f64.nxv1f64(
1696 <vscale x 1 x double> undef,
1697 <vscale x 1 x double> %0,
1698 <vscale x 1 x double> %1,
1699 <vscale x 1 x i1> %2,
1702 ret <vscale x 1 x double> %a
1705 declare <vscale x 2 x double> @llvm.riscv.vmerge.nxv2f64.nxv2f64(
1706 <vscale x 2 x double>,
1707 <vscale x 2 x double>,
1708 <vscale x 2 x double>,
1712 define <vscale x 2 x double> @intrinsic_vmerge_vvm_nxv2f64_nxv2f64_nxv2f64(<vscale x 2 x double> %0, <vscale x 2 x double> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
1713 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv2f64_nxv2f64_nxv2f64:
1714 ; CHECK: # %bb.0: # %entry
1715 ; CHECK-NEXT: vsetvli zero, a0, e64, m2, ta, ma
1716 ; CHECK-NEXT: vmerge.vvm v8, v8, v10, v0
1719 %a = call <vscale x 2 x double> @llvm.riscv.vmerge.nxv2f64.nxv2f64(
1720 <vscale x 2 x double> undef,
1721 <vscale x 2 x double> %0,
1722 <vscale x 2 x double> %1,
1723 <vscale x 2 x i1> %2,
1726 ret <vscale x 2 x double> %a
1729 declare <vscale x 4 x double> @llvm.riscv.vmerge.nxv4f64.nxv4f64(
1730 <vscale x 4 x double>,
1731 <vscale x 4 x double>,
1732 <vscale x 4 x double>,
1736 define <vscale x 4 x double> @intrinsic_vmerge_vvm_nxv4f64_nxv4f64_nxv4f64(<vscale x 4 x double> %0, <vscale x 4 x double> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
1737 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv4f64_nxv4f64_nxv4f64:
1738 ; CHECK: # %bb.0: # %entry
1739 ; CHECK-NEXT: vsetvli zero, a0, e64, m4, ta, ma
1740 ; CHECK-NEXT: vmerge.vvm v8, v8, v12, v0
1743 %a = call <vscale x 4 x double> @llvm.riscv.vmerge.nxv4f64.nxv4f64(
1744 <vscale x 4 x double> undef,
1745 <vscale x 4 x double> %0,
1746 <vscale x 4 x double> %1,
1747 <vscale x 4 x i1> %2,
1750 ret <vscale x 4 x double> %a
1753 declare <vscale x 8 x double> @llvm.riscv.vmerge.nxv8f64.nxv8f64(
1754 <vscale x 8 x double>,
1755 <vscale x 8 x double>,
1756 <vscale x 8 x double>,
1760 define <vscale x 8 x double> @intrinsic_vmerge_vvm_nxv8f64_nxv8f64_nxv8f64(<vscale x 8 x double> %0, <vscale x 8 x double> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
1761 ; CHECK-LABEL: intrinsic_vmerge_vvm_nxv8f64_nxv8f64_nxv8f64:
1762 ; CHECK: # %bb.0: # %entry
1763 ; CHECK-NEXT: vsetvli zero, a0, e64, m8, ta, ma
1764 ; CHECK-NEXT: vmerge.vvm v8, v8, v16, v0
1767 %a = call <vscale x 8 x double> @llvm.riscv.vmerge.nxv8f64.nxv8f64(
1768 <vscale x 8 x double> undef,
1769 <vscale x 8 x double> %0,
1770 <vscale x 8 x double> %1,
1771 <vscale x 8 x i1> %2,
1774 ret <vscale x 8 x double> %a