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,+d \
3 ; RUN: -verify-machineinstrs | FileCheck %s
4 ; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v,+d \
5 ; RUN: -verify-machineinstrs | FileCheck %s
7 declare <vscale x 1 x i16> @llvm.riscv.vwmaccsu.nxv1i16.nxv1i8(
14 define <vscale x 1 x i16> @intrinsic_vwmaccsu_vv_nxv1i16_nxv1i8_nxv1i8(<vscale x 1 x i16> %0, <vscale x 1 x i8> %1, <vscale x 1 x i8> %2, iXLen %3) nounwind {
15 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv1i16_nxv1i8_nxv1i8:
16 ; CHECK: # %bb.0: # %entry
17 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, tu, ma
18 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10
21 %a = call <vscale x 1 x i16> @llvm.riscv.vwmaccsu.nxv1i16.nxv1i8(
22 <vscale x 1 x i16> %0,
27 ret <vscale x 1 x i16> %a
30 declare <vscale x 1 x i16> @llvm.riscv.vwmaccsu.mask.nxv1i16.nxv1i8(
37 define <vscale x 1 x i16> @intrinsic_vwmaccsu_mask_vv_nxv1i16_nxv1i8_nxv1i8(<vscale x 1 x i16> %0, <vscale x 1 x i8> %1, <vscale x 1 x i8> %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
38 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv1i16_nxv1i8_nxv1i8:
39 ; CHECK: # %bb.0: # %entry
40 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, tu, mu
41 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10, v0.t
44 %a = call <vscale x 1 x i16> @llvm.riscv.vwmaccsu.mask.nxv1i16.nxv1i8(
45 <vscale x 1 x i16> %0,
51 ret <vscale x 1 x i16> %a
54 declare <vscale x 2 x i16> @llvm.riscv.vwmaccsu.nxv2i16.nxv2i8(
61 define <vscale x 2 x i16> @intrinsic_vwmaccsu_vv_nxv2i16_nxv2i8_nxv2i8(<vscale x 2 x i16> %0, <vscale x 2 x i8> %1, <vscale x 2 x i8> %2, iXLen %3) nounwind {
62 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv2i16_nxv2i8_nxv2i8:
63 ; CHECK: # %bb.0: # %entry
64 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, tu, ma
65 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10
68 %a = call <vscale x 2 x i16> @llvm.riscv.vwmaccsu.nxv2i16.nxv2i8(
69 <vscale x 2 x i16> %0,
74 ret <vscale x 2 x i16> %a
77 declare <vscale x 2 x i16> @llvm.riscv.vwmaccsu.mask.nxv2i16.nxv2i8(
84 define <vscale x 2 x i16> @intrinsic_vwmaccsu_mask_vv_nxv2i16_nxv2i8_nxv2i8(<vscale x 2 x i16> %0, <vscale x 2 x i8> %1, <vscale x 2 x i8> %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
85 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv2i16_nxv2i8_nxv2i8:
86 ; CHECK: # %bb.0: # %entry
87 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, tu, mu
88 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10, v0.t
91 %a = call <vscale x 2 x i16> @llvm.riscv.vwmaccsu.mask.nxv2i16.nxv2i8(
92 <vscale x 2 x i16> %0,
98 ret <vscale x 2 x i16> %a
101 declare <vscale x 4 x i16> @llvm.riscv.vwmaccsu.nxv4i16.nxv4i8(
108 define <vscale x 4 x i16> @intrinsic_vwmaccsu_vv_nxv4i16_nxv4i8_nxv4i8(<vscale x 4 x i16> %0, <vscale x 4 x i8> %1, <vscale x 4 x i8> %2, iXLen %3) nounwind {
109 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv4i16_nxv4i8_nxv4i8:
110 ; CHECK: # %bb.0: # %entry
111 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, tu, ma
112 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10
115 %a = call <vscale x 4 x i16> @llvm.riscv.vwmaccsu.nxv4i16.nxv4i8(
116 <vscale x 4 x i16> %0,
117 <vscale x 4 x i8> %1,
118 <vscale x 4 x i8> %2,
121 ret <vscale x 4 x i16> %a
124 declare <vscale x 4 x i16> @llvm.riscv.vwmaccsu.mask.nxv4i16.nxv4i8(
131 define <vscale x 4 x i16> @intrinsic_vwmaccsu_mask_vv_nxv4i16_nxv4i8_nxv4i8(<vscale x 4 x i16> %0, <vscale x 4 x i8> %1, <vscale x 4 x i8> %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
132 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv4i16_nxv4i8_nxv4i8:
133 ; CHECK: # %bb.0: # %entry
134 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, tu, mu
135 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10, v0.t
138 %a = call <vscale x 4 x i16> @llvm.riscv.vwmaccsu.mask.nxv4i16.nxv4i8(
139 <vscale x 4 x i16> %0,
140 <vscale x 4 x i8> %1,
141 <vscale x 4 x i8> %2,
142 <vscale x 4 x i1> %3,
145 ret <vscale x 4 x i16> %a
148 declare <vscale x 8 x i16> @llvm.riscv.vwmaccsu.nxv8i16.nxv8i8(
155 define <vscale x 8 x i16> @intrinsic_vwmaccsu_vv_nxv8i16_nxv8i8_nxv8i8(<vscale x 8 x i16> %0, <vscale x 8 x i8> %1, <vscale x 8 x i8> %2, iXLen %3) nounwind {
156 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv8i16_nxv8i8_nxv8i8:
157 ; CHECK: # %bb.0: # %entry
158 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, tu, ma
159 ; CHECK-NEXT: vwmaccsu.vv v8, v10, v11
162 %a = call <vscale x 8 x i16> @llvm.riscv.vwmaccsu.nxv8i16.nxv8i8(
163 <vscale x 8 x i16> %0,
164 <vscale x 8 x i8> %1,
165 <vscale x 8 x i8> %2,
168 ret <vscale x 8 x i16> %a
171 declare <vscale x 8 x i16> @llvm.riscv.vwmaccsu.mask.nxv8i16.nxv8i8(
178 define <vscale x 8 x i16> @intrinsic_vwmaccsu_mask_vv_nxv8i16_nxv8i8_nxv8i8(<vscale x 8 x i16> %0, <vscale x 8 x i8> %1, <vscale x 8 x i8> %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
179 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv8i16_nxv8i8_nxv8i8:
180 ; CHECK: # %bb.0: # %entry
181 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, tu, mu
182 ; CHECK-NEXT: vwmaccsu.vv v8, v10, v11, v0.t
185 %a = call <vscale x 8 x i16> @llvm.riscv.vwmaccsu.mask.nxv8i16.nxv8i8(
186 <vscale x 8 x i16> %0,
187 <vscale x 8 x i8> %1,
188 <vscale x 8 x i8> %2,
189 <vscale x 8 x i1> %3,
192 ret <vscale x 8 x i16> %a
195 declare <vscale x 16 x i16> @llvm.riscv.vwmaccsu.nxv16i16.nxv16i8(
202 define <vscale x 16 x i16> @intrinsic_vwmaccsu_vv_nxv16i16_nxv16i8_nxv16i8(<vscale x 16 x i16> %0, <vscale x 16 x i8> %1, <vscale x 16 x i8> %2, iXLen %3) nounwind {
203 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv16i16_nxv16i8_nxv16i8:
204 ; CHECK: # %bb.0: # %entry
205 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, tu, ma
206 ; CHECK-NEXT: vwmaccsu.vv v8, v12, v14
209 %a = call <vscale x 16 x i16> @llvm.riscv.vwmaccsu.nxv16i16.nxv16i8(
210 <vscale x 16 x i16> %0,
211 <vscale x 16 x i8> %1,
212 <vscale x 16 x i8> %2,
215 ret <vscale x 16 x i16> %a
218 declare <vscale x 16 x i16> @llvm.riscv.vwmaccsu.mask.nxv16i16.nxv16i8(
225 define <vscale x 16 x i16> @intrinsic_vwmaccsu_mask_vv_nxv16i16_nxv16i8_nxv16i8(<vscale x 16 x i16> %0, <vscale x 16 x i8> %1, <vscale x 16 x i8> %2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
226 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv16i16_nxv16i8_nxv16i8:
227 ; CHECK: # %bb.0: # %entry
228 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, tu, mu
229 ; CHECK-NEXT: vwmaccsu.vv v8, v12, v14, v0.t
232 %a = call <vscale x 16 x i16> @llvm.riscv.vwmaccsu.mask.nxv16i16.nxv16i8(
233 <vscale x 16 x i16> %0,
234 <vscale x 16 x i8> %1,
235 <vscale x 16 x i8> %2,
236 <vscale x 16 x i1> %3,
239 ret <vscale x 16 x i16> %a
242 declare <vscale x 32 x i16> @llvm.riscv.vwmaccsu.nxv32i16.nxv32i8(
249 define <vscale x 32 x i16> @intrinsic_vwmaccsu_vv_nxv32i16_nxv32i8_nxv32i8(<vscale x 32 x i16> %0, <vscale x 32 x i8> %1, <vscale x 32 x i8> %2, iXLen %3) nounwind {
250 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv32i16_nxv32i8_nxv32i8:
251 ; CHECK: # %bb.0: # %entry
252 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, tu, ma
253 ; CHECK-NEXT: vwmaccsu.vv v8, v16, v20
256 %a = call <vscale x 32 x i16> @llvm.riscv.vwmaccsu.nxv32i16.nxv32i8(
257 <vscale x 32 x i16> %0,
258 <vscale x 32 x i8> %1,
259 <vscale x 32 x i8> %2,
262 ret <vscale x 32 x i16> %a
265 declare <vscale x 32 x i16> @llvm.riscv.vwmaccsu.mask.nxv32i16.nxv32i8(
272 define <vscale x 32 x i16> @intrinsic_vwmaccsu_mask_vv_nxv32i16_nxv32i8_nxv32i8(<vscale x 32 x i16> %0, <vscale x 32 x i8> %1, <vscale x 32 x i8> %2, <vscale x 32 x i1> %3, iXLen %4) nounwind {
273 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv32i16_nxv32i8_nxv32i8:
274 ; CHECK: # %bb.0: # %entry
275 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, tu, mu
276 ; CHECK-NEXT: vwmaccsu.vv v8, v16, v20, v0.t
279 %a = call <vscale x 32 x i16> @llvm.riscv.vwmaccsu.mask.nxv32i16.nxv32i8(
280 <vscale x 32 x i16> %0,
281 <vscale x 32 x i8> %1,
282 <vscale x 32 x i8> %2,
283 <vscale x 32 x i1> %3,
286 ret <vscale x 32 x i16> %a
289 declare <vscale x 1 x i32> @llvm.riscv.vwmaccsu.nxv1i32.nxv1i16(
296 define <vscale x 1 x i32> @intrinsic_vwmaccsu_vv_nxv1i32_nxv1i16_nxv1i16(<vscale x 1 x i32> %0, <vscale x 1 x i16> %1, <vscale x 1 x i16> %2, iXLen %3) nounwind {
297 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv1i32_nxv1i16_nxv1i16:
298 ; CHECK: # %bb.0: # %entry
299 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, tu, ma
300 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10
303 %a = call <vscale x 1 x i32> @llvm.riscv.vwmaccsu.nxv1i32.nxv1i16(
304 <vscale x 1 x i32> %0,
305 <vscale x 1 x i16> %1,
306 <vscale x 1 x i16> %2,
309 ret <vscale x 1 x i32> %a
312 declare <vscale x 1 x i32> @llvm.riscv.vwmaccsu.mask.nxv1i32.nxv1i16(
319 define <vscale x 1 x i32> @intrinsic_vwmaccsu_mask_vv_nxv1i32_nxv1i16_nxv1i16(<vscale x 1 x i32> %0, <vscale x 1 x i16> %1, <vscale x 1 x i16> %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
320 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv1i32_nxv1i16_nxv1i16:
321 ; CHECK: # %bb.0: # %entry
322 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, tu, mu
323 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10, v0.t
326 %a = call <vscale x 1 x i32> @llvm.riscv.vwmaccsu.mask.nxv1i32.nxv1i16(
327 <vscale x 1 x i32> %0,
328 <vscale x 1 x i16> %1,
329 <vscale x 1 x i16> %2,
330 <vscale x 1 x i1> %3,
333 ret <vscale x 1 x i32> %a
336 declare <vscale x 2 x i32> @llvm.riscv.vwmaccsu.nxv2i32.nxv2i16(
343 define <vscale x 2 x i32> @intrinsic_vwmaccsu_vv_nxv2i32_nxv2i16_nxv2i16(<vscale x 2 x i32> %0, <vscale x 2 x i16> %1, <vscale x 2 x i16> %2, iXLen %3) nounwind {
344 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv2i32_nxv2i16_nxv2i16:
345 ; CHECK: # %bb.0: # %entry
346 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, tu, ma
347 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10
350 %a = call <vscale x 2 x i32> @llvm.riscv.vwmaccsu.nxv2i32.nxv2i16(
351 <vscale x 2 x i32> %0,
352 <vscale x 2 x i16> %1,
353 <vscale x 2 x i16> %2,
356 ret <vscale x 2 x i32> %a
359 declare <vscale x 2 x i32> @llvm.riscv.vwmaccsu.mask.nxv2i32.nxv2i16(
366 define <vscale x 2 x i32> @intrinsic_vwmaccsu_mask_vv_nxv2i32_nxv2i16_nxv2i16(<vscale x 2 x i32> %0, <vscale x 2 x i16> %1, <vscale x 2 x i16> %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
367 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv2i32_nxv2i16_nxv2i16:
368 ; CHECK: # %bb.0: # %entry
369 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, tu, mu
370 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10, v0.t
373 %a = call <vscale x 2 x i32> @llvm.riscv.vwmaccsu.mask.nxv2i32.nxv2i16(
374 <vscale x 2 x i32> %0,
375 <vscale x 2 x i16> %1,
376 <vscale x 2 x i16> %2,
377 <vscale x 2 x i1> %3,
380 ret <vscale x 2 x i32> %a
383 declare <vscale x 4 x i32> @llvm.riscv.vwmaccsu.nxv4i32.nxv4i16(
390 define <vscale x 4 x i32> @intrinsic_vwmaccsu_vv_nxv4i32_nxv4i16_nxv4i16(<vscale x 4 x i32> %0, <vscale x 4 x i16> %1, <vscale x 4 x i16> %2, iXLen %3) nounwind {
391 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv4i32_nxv4i16_nxv4i16:
392 ; CHECK: # %bb.0: # %entry
393 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, tu, ma
394 ; CHECK-NEXT: vwmaccsu.vv v8, v10, v11
397 %a = call <vscale x 4 x i32> @llvm.riscv.vwmaccsu.nxv4i32.nxv4i16(
398 <vscale x 4 x i32> %0,
399 <vscale x 4 x i16> %1,
400 <vscale x 4 x i16> %2,
403 ret <vscale x 4 x i32> %a
406 declare <vscale x 4 x i32> @llvm.riscv.vwmaccsu.mask.nxv4i32.nxv4i16(
413 define <vscale x 4 x i32> @intrinsic_vwmaccsu_mask_vv_nxv4i32_nxv4i16_nxv4i16(<vscale x 4 x i32> %0, <vscale x 4 x i16> %1, <vscale x 4 x i16> %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
414 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv4i32_nxv4i16_nxv4i16:
415 ; CHECK: # %bb.0: # %entry
416 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, tu, mu
417 ; CHECK-NEXT: vwmaccsu.vv v8, v10, v11, v0.t
420 %a = call <vscale x 4 x i32> @llvm.riscv.vwmaccsu.mask.nxv4i32.nxv4i16(
421 <vscale x 4 x i32> %0,
422 <vscale x 4 x i16> %1,
423 <vscale x 4 x i16> %2,
424 <vscale x 4 x i1> %3,
427 ret <vscale x 4 x i32> %a
430 declare <vscale x 8 x i32> @llvm.riscv.vwmaccsu.nxv8i32.nxv8i16(
437 define <vscale x 8 x i32> @intrinsic_vwmaccsu_vv_nxv8i32_nxv8i16_nxv8i16(<vscale x 8 x i32> %0, <vscale x 8 x i16> %1, <vscale x 8 x i16> %2, iXLen %3) nounwind {
438 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv8i32_nxv8i16_nxv8i16:
439 ; CHECK: # %bb.0: # %entry
440 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, tu, ma
441 ; CHECK-NEXT: vwmaccsu.vv v8, v12, v14
444 %a = call <vscale x 8 x i32> @llvm.riscv.vwmaccsu.nxv8i32.nxv8i16(
445 <vscale x 8 x i32> %0,
446 <vscale x 8 x i16> %1,
447 <vscale x 8 x i16> %2,
450 ret <vscale x 8 x i32> %a
453 declare <vscale x 8 x i32> @llvm.riscv.vwmaccsu.mask.nxv8i32.nxv8i16(
460 define <vscale x 8 x i32> @intrinsic_vwmaccsu_mask_vv_nxv8i32_nxv8i16_nxv8i16(<vscale x 8 x i32> %0, <vscale x 8 x i16> %1, <vscale x 8 x i16> %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
461 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv8i32_nxv8i16_nxv8i16:
462 ; CHECK: # %bb.0: # %entry
463 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, tu, mu
464 ; CHECK-NEXT: vwmaccsu.vv v8, v12, v14, v0.t
467 %a = call <vscale x 8 x i32> @llvm.riscv.vwmaccsu.mask.nxv8i32.nxv8i16(
468 <vscale x 8 x i32> %0,
469 <vscale x 8 x i16> %1,
470 <vscale x 8 x i16> %2,
471 <vscale x 8 x i1> %3,
474 ret <vscale x 8 x i32> %a
477 declare <vscale x 16 x i32> @llvm.riscv.vwmaccsu.nxv16i32.nxv16i16(
484 define <vscale x 16 x i32> @intrinsic_vwmaccsu_vv_nxv16i32_nxv16i16_nxv16i16(<vscale x 16 x i32> %0, <vscale x 16 x i16> %1, <vscale x 16 x i16> %2, iXLen %3) nounwind {
485 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv16i32_nxv16i16_nxv16i16:
486 ; CHECK: # %bb.0: # %entry
487 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, tu, ma
488 ; CHECK-NEXT: vwmaccsu.vv v8, v16, v20
491 %a = call <vscale x 16 x i32> @llvm.riscv.vwmaccsu.nxv16i32.nxv16i16(
492 <vscale x 16 x i32> %0,
493 <vscale x 16 x i16> %1,
494 <vscale x 16 x i16> %2,
497 ret <vscale x 16 x i32> %a
500 declare <vscale x 16 x i32> @llvm.riscv.vwmaccsu.mask.nxv16i32.nxv16i16(
507 define <vscale x 16 x i32> @intrinsic_vwmaccsu_mask_vv_nxv16i32_nxv16i16_nxv16i16(<vscale x 16 x i32> %0, <vscale x 16 x i16> %1, <vscale x 16 x i16> %2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
508 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv16i32_nxv16i16_nxv16i16:
509 ; CHECK: # %bb.0: # %entry
510 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, tu, mu
511 ; CHECK-NEXT: vwmaccsu.vv v8, v16, v20, v0.t
514 %a = call <vscale x 16 x i32> @llvm.riscv.vwmaccsu.mask.nxv16i32.nxv16i16(
515 <vscale x 16 x i32> %0,
516 <vscale x 16 x i16> %1,
517 <vscale x 16 x i16> %2,
518 <vscale x 16 x i1> %3,
521 ret <vscale x 16 x i32> %a
524 declare <vscale x 1 x i64> @llvm.riscv.vwmaccsu.nxv1i64.nxv1i32(
531 define <vscale x 1 x i64> @intrinsic_vwmaccsu_vv_nxv1i64_nxv1i32_nxv1i32(<vscale x 1 x i64> %0, <vscale x 1 x i32> %1, <vscale x 1 x i32> %2, iXLen %3) nounwind {
532 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv1i64_nxv1i32_nxv1i32:
533 ; CHECK: # %bb.0: # %entry
534 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, tu, ma
535 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10
538 %a = call <vscale x 1 x i64> @llvm.riscv.vwmaccsu.nxv1i64.nxv1i32(
539 <vscale x 1 x i64> %0,
540 <vscale x 1 x i32> %1,
541 <vscale x 1 x i32> %2,
544 ret <vscale x 1 x i64> %a
547 declare <vscale x 1 x i64> @llvm.riscv.vwmaccsu.mask.nxv1i64.nxv1i32(
554 define <vscale x 1 x i64> @intrinsic_vwmaccsu_mask_vv_nxv1i64_nxv1i32_nxv1i32(<vscale x 1 x i64> %0, <vscale x 1 x i32> %1, <vscale x 1 x i32> %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
555 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv1i64_nxv1i32_nxv1i32:
556 ; CHECK: # %bb.0: # %entry
557 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, tu, mu
558 ; CHECK-NEXT: vwmaccsu.vv v8, v9, v10, v0.t
561 %a = call <vscale x 1 x i64> @llvm.riscv.vwmaccsu.mask.nxv1i64.nxv1i32(
562 <vscale x 1 x i64> %0,
563 <vscale x 1 x i32> %1,
564 <vscale x 1 x i32> %2,
565 <vscale x 1 x i1> %3,
568 ret <vscale x 1 x i64> %a
571 declare <vscale x 2 x i64> @llvm.riscv.vwmaccsu.nxv2i64.nxv2i32(
578 define <vscale x 2 x i64> @intrinsic_vwmaccsu_vv_nxv2i64_nxv2i32_nxv2i32(<vscale x 2 x i64> %0, <vscale x 2 x i32> %1, <vscale x 2 x i32> %2, iXLen %3) nounwind {
579 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv2i64_nxv2i32_nxv2i32:
580 ; CHECK: # %bb.0: # %entry
581 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, tu, ma
582 ; CHECK-NEXT: vwmaccsu.vv v8, v10, v11
585 %a = call <vscale x 2 x i64> @llvm.riscv.vwmaccsu.nxv2i64.nxv2i32(
586 <vscale x 2 x i64> %0,
587 <vscale x 2 x i32> %1,
588 <vscale x 2 x i32> %2,
591 ret <vscale x 2 x i64> %a
594 declare <vscale x 2 x i64> @llvm.riscv.vwmaccsu.mask.nxv2i64.nxv2i32(
601 define <vscale x 2 x i64> @intrinsic_vwmaccsu_mask_vv_nxv2i64_nxv2i32_nxv2i32(<vscale x 2 x i64> %0, <vscale x 2 x i32> %1, <vscale x 2 x i32> %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
602 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv2i64_nxv2i32_nxv2i32:
603 ; CHECK: # %bb.0: # %entry
604 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, tu, mu
605 ; CHECK-NEXT: vwmaccsu.vv v8, v10, v11, v0.t
608 %a = call <vscale x 2 x i64> @llvm.riscv.vwmaccsu.mask.nxv2i64.nxv2i32(
609 <vscale x 2 x i64> %0,
610 <vscale x 2 x i32> %1,
611 <vscale x 2 x i32> %2,
612 <vscale x 2 x i1> %3,
615 ret <vscale x 2 x i64> %a
618 declare <vscale x 4 x i64> @llvm.riscv.vwmaccsu.nxv4i64.nxv4i32(
625 define <vscale x 4 x i64> @intrinsic_vwmaccsu_vv_nxv4i64_nxv4i32_nxv4i32(<vscale x 4 x i64> %0, <vscale x 4 x i32> %1, <vscale x 4 x i32> %2, iXLen %3) nounwind {
626 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv4i64_nxv4i32_nxv4i32:
627 ; CHECK: # %bb.0: # %entry
628 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, tu, ma
629 ; CHECK-NEXT: vwmaccsu.vv v8, v12, v14
632 %a = call <vscale x 4 x i64> @llvm.riscv.vwmaccsu.nxv4i64.nxv4i32(
633 <vscale x 4 x i64> %0,
634 <vscale x 4 x i32> %1,
635 <vscale x 4 x i32> %2,
638 ret <vscale x 4 x i64> %a
641 declare <vscale x 4 x i64> @llvm.riscv.vwmaccsu.mask.nxv4i64.nxv4i32(
648 define <vscale x 4 x i64> @intrinsic_vwmaccsu_mask_vv_nxv4i64_nxv4i32_nxv4i32(<vscale x 4 x i64> %0, <vscale x 4 x i32> %1, <vscale x 4 x i32> %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
649 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv4i64_nxv4i32_nxv4i32:
650 ; CHECK: # %bb.0: # %entry
651 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, tu, mu
652 ; CHECK-NEXT: vwmaccsu.vv v8, v12, v14, v0.t
655 %a = call <vscale x 4 x i64> @llvm.riscv.vwmaccsu.mask.nxv4i64.nxv4i32(
656 <vscale x 4 x i64> %0,
657 <vscale x 4 x i32> %1,
658 <vscale x 4 x i32> %2,
659 <vscale x 4 x i1> %3,
662 ret <vscale x 4 x i64> %a
665 declare <vscale x 8 x i64> @llvm.riscv.vwmaccsu.nxv8i64.nxv8i32(
672 define <vscale x 8 x i64> @intrinsic_vwmaccsu_vv_nxv8i64_nxv8i32_nxv8i32(<vscale x 8 x i64> %0, <vscale x 8 x i32> %1, <vscale x 8 x i32> %2, iXLen %3) nounwind {
673 ; CHECK-LABEL: intrinsic_vwmaccsu_vv_nxv8i64_nxv8i32_nxv8i32:
674 ; CHECK: # %bb.0: # %entry
675 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, tu, ma
676 ; CHECK-NEXT: vwmaccsu.vv v8, v16, v20
679 %a = call <vscale x 8 x i64> @llvm.riscv.vwmaccsu.nxv8i64.nxv8i32(
680 <vscale x 8 x i64> %0,
681 <vscale x 8 x i32> %1,
682 <vscale x 8 x i32> %2,
685 ret <vscale x 8 x i64> %a
688 declare <vscale x 8 x i64> @llvm.riscv.vwmaccsu.mask.nxv8i64.nxv8i32(
695 define <vscale x 8 x i64> @intrinsic_vwmaccsu_mask_vv_nxv8i64_nxv8i32_nxv8i32(<vscale x 8 x i64> %0, <vscale x 8 x i32> %1, <vscale x 8 x i32> %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
696 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vv_nxv8i64_nxv8i32_nxv8i32:
697 ; CHECK: # %bb.0: # %entry
698 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, tu, mu
699 ; CHECK-NEXT: vwmaccsu.vv v8, v16, v20, v0.t
702 %a = call <vscale x 8 x i64> @llvm.riscv.vwmaccsu.mask.nxv8i64.nxv8i32(
703 <vscale x 8 x i64> %0,
704 <vscale x 8 x i32> %1,
705 <vscale x 8 x i32> %2,
706 <vscale x 8 x i1> %3,
709 ret <vscale x 8 x i64> %a
712 declare <vscale x 1 x i16> @llvm.riscv.vwmaccsu.nxv1i16.i8(
719 define <vscale x 1 x i16> @intrinsic_vwmaccsu_vx_nxv1i16_i8_nxv1i8(<vscale x 1 x i16> %0, i8 %1, <vscale x 1 x i8> %2, iXLen %3) nounwind {
720 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv1i16_i8_nxv1i8:
721 ; CHECK: # %bb.0: # %entry
722 ; CHECK-NEXT: vsetvli zero, a1, e8, mf8, tu, ma
723 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9
726 %a = call <vscale x 1 x i16> @llvm.riscv.vwmaccsu.nxv1i16.i8(
727 <vscale x 1 x i16> %0,
729 <vscale x 1 x i8> %2,
732 ret <vscale x 1 x i16> %a
735 declare <vscale x 1 x i16> @llvm.riscv.vwmaccsu.mask.nxv1i16.i8(
742 define <vscale x 1 x i16> @intrinsic_vwmaccsu_mask_vx_nxv1i16_i8_nxv1i8(<vscale x 1 x i16> %0, i8 %1, <vscale x 1 x i8> %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
743 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv1i16_i8_nxv1i8:
744 ; CHECK: # %bb.0: # %entry
745 ; CHECK-NEXT: vsetvli zero, a1, e8, mf8, tu, mu
746 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9, v0.t
749 %a = call <vscale x 1 x i16> @llvm.riscv.vwmaccsu.mask.nxv1i16.i8(
750 <vscale x 1 x i16> %0,
752 <vscale x 1 x i8> %2,
753 <vscale x 1 x i1> %3,
756 ret <vscale x 1 x i16> %a
759 declare <vscale x 2 x i16> @llvm.riscv.vwmaccsu.nxv2i16.i8(
766 define <vscale x 2 x i16> @intrinsic_vwmaccsu_vx_nxv2i16_i8_nxv2i8(<vscale x 2 x i16> %0, i8 %1, <vscale x 2 x i8> %2, iXLen %3) nounwind {
767 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv2i16_i8_nxv2i8:
768 ; CHECK: # %bb.0: # %entry
769 ; CHECK-NEXT: vsetvli zero, a1, e8, mf4, tu, ma
770 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9
773 %a = call <vscale x 2 x i16> @llvm.riscv.vwmaccsu.nxv2i16.i8(
774 <vscale x 2 x i16> %0,
776 <vscale x 2 x i8> %2,
779 ret <vscale x 2 x i16> %a
782 declare <vscale x 2 x i16> @llvm.riscv.vwmaccsu.mask.nxv2i16.i8(
789 define <vscale x 2 x i16> @intrinsic_vwmaccsu_mask_vx_nxv2i16_i8_nxv2i8(<vscale x 2 x i16> %0, i8 %1, <vscale x 2 x i8> %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
790 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv2i16_i8_nxv2i8:
791 ; CHECK: # %bb.0: # %entry
792 ; CHECK-NEXT: vsetvli zero, a1, e8, mf4, tu, mu
793 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9, v0.t
796 %a = call <vscale x 2 x i16> @llvm.riscv.vwmaccsu.mask.nxv2i16.i8(
797 <vscale x 2 x i16> %0,
799 <vscale x 2 x i8> %2,
800 <vscale x 2 x i1> %3,
803 ret <vscale x 2 x i16> %a
806 declare <vscale x 4 x i16> @llvm.riscv.vwmaccsu.nxv4i16.i8(
813 define <vscale x 4 x i16> @intrinsic_vwmaccsu_vx_nxv4i16_i8_nxv4i8(<vscale x 4 x i16> %0, i8 %1, <vscale x 4 x i8> %2, iXLen %3) nounwind {
814 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv4i16_i8_nxv4i8:
815 ; CHECK: # %bb.0: # %entry
816 ; CHECK-NEXT: vsetvli zero, a1, e8, mf2, tu, ma
817 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9
820 %a = call <vscale x 4 x i16> @llvm.riscv.vwmaccsu.nxv4i16.i8(
821 <vscale x 4 x i16> %0,
823 <vscale x 4 x i8> %2,
826 ret <vscale x 4 x i16> %a
829 declare <vscale x 4 x i16> @llvm.riscv.vwmaccsu.mask.nxv4i16.i8(
836 define <vscale x 4 x i16> @intrinsic_vwmaccsu_mask_vx_nxv4i16_i8_nxv4i8(<vscale x 4 x i16> %0, i8 %1, <vscale x 4 x i8> %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
837 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv4i16_i8_nxv4i8:
838 ; CHECK: # %bb.0: # %entry
839 ; CHECK-NEXT: vsetvli zero, a1, e8, mf2, tu, mu
840 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9, v0.t
843 %a = call <vscale x 4 x i16> @llvm.riscv.vwmaccsu.mask.nxv4i16.i8(
844 <vscale x 4 x i16> %0,
846 <vscale x 4 x i8> %2,
847 <vscale x 4 x i1> %3,
850 ret <vscale x 4 x i16> %a
853 declare <vscale x 8 x i16> @llvm.riscv.vwmaccsu.nxv8i16.i8(
860 define <vscale x 8 x i16> @intrinsic_vwmaccsu_vx_nxv8i16_i8_nxv8i8(<vscale x 8 x i16> %0, i8 %1, <vscale x 8 x i8> %2, iXLen %3) nounwind {
861 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv8i16_i8_nxv8i8:
862 ; CHECK: # %bb.0: # %entry
863 ; CHECK-NEXT: vsetvli zero, a1, e8, m1, tu, ma
864 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v10
867 %a = call <vscale x 8 x i16> @llvm.riscv.vwmaccsu.nxv8i16.i8(
868 <vscale x 8 x i16> %0,
870 <vscale x 8 x i8> %2,
873 ret <vscale x 8 x i16> %a
876 declare <vscale x 8 x i16> @llvm.riscv.vwmaccsu.mask.nxv8i16.i8(
883 define <vscale x 8 x i16> @intrinsic_vwmaccsu_mask_vx_nxv8i16_i8_nxv8i8(<vscale x 8 x i16> %0, i8 %1, <vscale x 8 x i8> %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
884 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv8i16_i8_nxv8i8:
885 ; CHECK: # %bb.0: # %entry
886 ; CHECK-NEXT: vsetvli zero, a1, e8, m1, tu, mu
887 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v10, v0.t
890 %a = call <vscale x 8 x i16> @llvm.riscv.vwmaccsu.mask.nxv8i16.i8(
891 <vscale x 8 x i16> %0,
893 <vscale x 8 x i8> %2,
894 <vscale x 8 x i1> %3,
897 ret <vscale x 8 x i16> %a
900 declare <vscale x 16 x i16> @llvm.riscv.vwmaccsu.nxv16i16.i8(
907 define <vscale x 16 x i16> @intrinsic_vwmaccsu_vx_nxv16i16_i8_nxv16i8(<vscale x 16 x i16> %0, i8 %1, <vscale x 16 x i8> %2, iXLen %3) nounwind {
908 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv16i16_i8_nxv16i8:
909 ; CHECK: # %bb.0: # %entry
910 ; CHECK-NEXT: vsetvli zero, a1, e8, m2, tu, ma
911 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v12
914 %a = call <vscale x 16 x i16> @llvm.riscv.vwmaccsu.nxv16i16.i8(
915 <vscale x 16 x i16> %0,
917 <vscale x 16 x i8> %2,
920 ret <vscale x 16 x i16> %a
923 declare <vscale x 16 x i16> @llvm.riscv.vwmaccsu.mask.nxv16i16.i8(
930 define <vscale x 16 x i16> @intrinsic_vwmaccsu_mask_vx_nxv16i16_i8_nxv16i8(<vscale x 16 x i16> %0, i8 %1, <vscale x 16 x i8> %2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
931 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv16i16_i8_nxv16i8:
932 ; CHECK: # %bb.0: # %entry
933 ; CHECK-NEXT: vsetvli zero, a1, e8, m2, tu, mu
934 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v12, v0.t
937 %a = call <vscale x 16 x i16> @llvm.riscv.vwmaccsu.mask.nxv16i16.i8(
938 <vscale x 16 x i16> %0,
940 <vscale x 16 x i8> %2,
941 <vscale x 16 x i1> %3,
944 ret <vscale x 16 x i16> %a
947 declare <vscale x 32 x i16> @llvm.riscv.vwmaccsu.nxv32i16.i8(
954 define <vscale x 32 x i16> @intrinsic_vwmaccsu_vx_nxv32i16_i8_nxv32i8(<vscale x 32 x i16> %0, i8 %1, <vscale x 32 x i8> %2, iXLen %3) nounwind {
955 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv32i16_i8_nxv32i8:
956 ; CHECK: # %bb.0: # %entry
957 ; CHECK-NEXT: vsetvli zero, a1, e8, m4, tu, ma
958 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v16
961 %a = call <vscale x 32 x i16> @llvm.riscv.vwmaccsu.nxv32i16.i8(
962 <vscale x 32 x i16> %0,
964 <vscale x 32 x i8> %2,
967 ret <vscale x 32 x i16> %a
970 declare <vscale x 32 x i16> @llvm.riscv.vwmaccsu.mask.nxv32i16.i8(
977 define <vscale x 32 x i16> @intrinsic_vwmaccsu_mask_vx_nxv32i16_i8_nxv32i8(<vscale x 32 x i16> %0, i8 %1, <vscale x 32 x i8> %2, <vscale x 32 x i1> %3, iXLen %4) nounwind {
978 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv32i16_i8_nxv32i8:
979 ; CHECK: # %bb.0: # %entry
980 ; CHECK-NEXT: vsetvli zero, a1, e8, m4, tu, mu
981 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v16, v0.t
984 %a = call <vscale x 32 x i16> @llvm.riscv.vwmaccsu.mask.nxv32i16.i8(
985 <vscale x 32 x i16> %0,
987 <vscale x 32 x i8> %2,
988 <vscale x 32 x i1> %3,
991 ret <vscale x 32 x i16> %a
994 declare <vscale x 1 x i32> @llvm.riscv.vwmaccsu.nxv1i32.i16(
1001 define <vscale x 1 x i32> @intrinsic_vwmaccsu_vx_nxv1i32_i16_nxv1i16(<vscale x 1 x i32> %0, i16 %1, <vscale x 1 x i16> %2, iXLen %3) nounwind {
1002 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv1i32_i16_nxv1i16:
1003 ; CHECK: # %bb.0: # %entry
1004 ; CHECK-NEXT: vsetvli zero, a1, e16, mf4, tu, ma
1005 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9
1008 %a = call <vscale x 1 x i32> @llvm.riscv.vwmaccsu.nxv1i32.i16(
1009 <vscale x 1 x i32> %0,
1011 <vscale x 1 x i16> %2,
1014 ret <vscale x 1 x i32> %a
1017 declare <vscale x 1 x i32> @llvm.riscv.vwmaccsu.mask.nxv1i32.i16(
1024 define <vscale x 1 x i32> @intrinsic_vwmaccsu_mask_vx_nxv1i32_i16_nxv1i16(<vscale x 1 x i32> %0, i16 %1, <vscale x 1 x i16> %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
1025 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv1i32_i16_nxv1i16:
1026 ; CHECK: # %bb.0: # %entry
1027 ; CHECK-NEXT: vsetvli zero, a1, e16, mf4, tu, mu
1028 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9, v0.t
1031 %a = call <vscale x 1 x i32> @llvm.riscv.vwmaccsu.mask.nxv1i32.i16(
1032 <vscale x 1 x i32> %0,
1034 <vscale x 1 x i16> %2,
1035 <vscale x 1 x i1> %3,
1038 ret <vscale x 1 x i32> %a
1041 declare <vscale x 2 x i32> @llvm.riscv.vwmaccsu.nxv2i32.i16(
1048 define <vscale x 2 x i32> @intrinsic_vwmaccsu_vx_nxv2i32_i16_nxv2i16(<vscale x 2 x i32> %0, i16 %1, <vscale x 2 x i16> %2, iXLen %3) nounwind {
1049 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv2i32_i16_nxv2i16:
1050 ; CHECK: # %bb.0: # %entry
1051 ; CHECK-NEXT: vsetvli zero, a1, e16, mf2, tu, ma
1052 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9
1055 %a = call <vscale x 2 x i32> @llvm.riscv.vwmaccsu.nxv2i32.i16(
1056 <vscale x 2 x i32> %0,
1058 <vscale x 2 x i16> %2,
1061 ret <vscale x 2 x i32> %a
1064 declare <vscale x 2 x i32> @llvm.riscv.vwmaccsu.mask.nxv2i32.i16(
1071 define <vscale x 2 x i32> @intrinsic_vwmaccsu_mask_vx_nxv2i32_i16_nxv2i16(<vscale x 2 x i32> %0, i16 %1, <vscale x 2 x i16> %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
1072 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv2i32_i16_nxv2i16:
1073 ; CHECK: # %bb.0: # %entry
1074 ; CHECK-NEXT: vsetvli zero, a1, e16, mf2, tu, mu
1075 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9, v0.t
1078 %a = call <vscale x 2 x i32> @llvm.riscv.vwmaccsu.mask.nxv2i32.i16(
1079 <vscale x 2 x i32> %0,
1081 <vscale x 2 x i16> %2,
1082 <vscale x 2 x i1> %3,
1085 ret <vscale x 2 x i32> %a
1088 declare <vscale x 4 x i32> @llvm.riscv.vwmaccsu.nxv4i32.i16(
1095 define <vscale x 4 x i32> @intrinsic_vwmaccsu_vx_nxv4i32_i16_nxv4i16(<vscale x 4 x i32> %0, i16 %1, <vscale x 4 x i16> %2, iXLen %3) nounwind {
1096 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv4i32_i16_nxv4i16:
1097 ; CHECK: # %bb.0: # %entry
1098 ; CHECK-NEXT: vsetvli zero, a1, e16, m1, tu, ma
1099 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v10
1102 %a = call <vscale x 4 x i32> @llvm.riscv.vwmaccsu.nxv4i32.i16(
1103 <vscale x 4 x i32> %0,
1105 <vscale x 4 x i16> %2,
1108 ret <vscale x 4 x i32> %a
1111 declare <vscale x 4 x i32> @llvm.riscv.vwmaccsu.mask.nxv4i32.i16(
1118 define <vscale x 4 x i32> @intrinsic_vwmaccsu_mask_vx_nxv4i32_i16_nxv4i16(<vscale x 4 x i32> %0, i16 %1, <vscale x 4 x i16> %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
1119 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv4i32_i16_nxv4i16:
1120 ; CHECK: # %bb.0: # %entry
1121 ; CHECK-NEXT: vsetvli zero, a1, e16, m1, tu, mu
1122 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v10, v0.t
1125 %a = call <vscale x 4 x i32> @llvm.riscv.vwmaccsu.mask.nxv4i32.i16(
1126 <vscale x 4 x i32> %0,
1128 <vscale x 4 x i16> %2,
1129 <vscale x 4 x i1> %3,
1132 ret <vscale x 4 x i32> %a
1135 declare <vscale x 8 x i32> @llvm.riscv.vwmaccsu.nxv8i32.i16(
1142 define <vscale x 8 x i32> @intrinsic_vwmaccsu_vx_nxv8i32_i16_nxv8i16(<vscale x 8 x i32> %0, i16 %1, <vscale x 8 x i16> %2, iXLen %3) nounwind {
1143 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv8i32_i16_nxv8i16:
1144 ; CHECK: # %bb.0: # %entry
1145 ; CHECK-NEXT: vsetvli zero, a1, e16, m2, tu, ma
1146 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v12
1149 %a = call <vscale x 8 x i32> @llvm.riscv.vwmaccsu.nxv8i32.i16(
1150 <vscale x 8 x i32> %0,
1152 <vscale x 8 x i16> %2,
1155 ret <vscale x 8 x i32> %a
1158 declare <vscale x 8 x i32> @llvm.riscv.vwmaccsu.mask.nxv8i32.i16(
1165 define <vscale x 8 x i32> @intrinsic_vwmaccsu_mask_vx_nxv8i32_i16_nxv8i16(<vscale x 8 x i32> %0, i16 %1, <vscale x 8 x i16> %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
1166 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv8i32_i16_nxv8i16:
1167 ; CHECK: # %bb.0: # %entry
1168 ; CHECK-NEXT: vsetvli zero, a1, e16, m2, tu, mu
1169 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v12, v0.t
1172 %a = call <vscale x 8 x i32> @llvm.riscv.vwmaccsu.mask.nxv8i32.i16(
1173 <vscale x 8 x i32> %0,
1175 <vscale x 8 x i16> %2,
1176 <vscale x 8 x i1> %3,
1179 ret <vscale x 8 x i32> %a
1182 declare <vscale x 16 x i32> @llvm.riscv.vwmaccsu.nxv16i32.i16(
1183 <vscale x 16 x i32>,
1185 <vscale x 16 x i16>,
1189 define <vscale x 16 x i32> @intrinsic_vwmaccsu_vx_nxv16i32_i16_nxv16i16(<vscale x 16 x i32> %0, i16 %1, <vscale x 16 x i16> %2, iXLen %3) nounwind {
1190 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv16i32_i16_nxv16i16:
1191 ; CHECK: # %bb.0: # %entry
1192 ; CHECK-NEXT: vsetvli zero, a1, e16, m4, tu, ma
1193 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v16
1196 %a = call <vscale x 16 x i32> @llvm.riscv.vwmaccsu.nxv16i32.i16(
1197 <vscale x 16 x i32> %0,
1199 <vscale x 16 x i16> %2,
1202 ret <vscale x 16 x i32> %a
1205 declare <vscale x 16 x i32> @llvm.riscv.vwmaccsu.mask.nxv16i32.i16(
1206 <vscale x 16 x i32>,
1208 <vscale x 16 x i16>,
1212 define <vscale x 16 x i32> @intrinsic_vwmaccsu_mask_vx_nxv16i32_i16_nxv16i16(<vscale x 16 x i32> %0, i16 %1, <vscale x 16 x i16> %2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
1213 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv16i32_i16_nxv16i16:
1214 ; CHECK: # %bb.0: # %entry
1215 ; CHECK-NEXT: vsetvli zero, a1, e16, m4, tu, mu
1216 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v16, v0.t
1219 %a = call <vscale x 16 x i32> @llvm.riscv.vwmaccsu.mask.nxv16i32.i16(
1220 <vscale x 16 x i32> %0,
1222 <vscale x 16 x i16> %2,
1223 <vscale x 16 x i1> %3,
1226 ret <vscale x 16 x i32> %a
1229 declare <vscale x 1 x i64> @llvm.riscv.vwmaccsu.nxv1i64.i32(
1236 define <vscale x 1 x i64> @intrinsic_vwmaccsu_vx_nxv1i64_i32_nxv1i32(<vscale x 1 x i64> %0, i32 %1, <vscale x 1 x i32> %2, iXLen %3) nounwind {
1237 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv1i64_i32_nxv1i32:
1238 ; CHECK: # %bb.0: # %entry
1239 ; CHECK-NEXT: vsetvli zero, a1, e32, mf2, tu, ma
1240 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9
1243 %a = call <vscale x 1 x i64> @llvm.riscv.vwmaccsu.nxv1i64.i32(
1244 <vscale x 1 x i64> %0,
1246 <vscale x 1 x i32> %2,
1249 ret <vscale x 1 x i64> %a
1252 declare <vscale x 1 x i64> @llvm.riscv.vwmaccsu.mask.nxv1i64.i32(
1259 define <vscale x 1 x i64> @intrinsic_vwmaccsu_mask_vx_nxv1i64_i32_nxv1i32(<vscale x 1 x i64> %0, i32 %1, <vscale x 1 x i32> %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
1260 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv1i64_i32_nxv1i32:
1261 ; CHECK: # %bb.0: # %entry
1262 ; CHECK-NEXT: vsetvli zero, a1, e32, mf2, tu, mu
1263 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v9, v0.t
1266 %a = call <vscale x 1 x i64> @llvm.riscv.vwmaccsu.mask.nxv1i64.i32(
1267 <vscale x 1 x i64> %0,
1269 <vscale x 1 x i32> %2,
1270 <vscale x 1 x i1> %3,
1273 ret <vscale x 1 x i64> %a
1276 declare <vscale x 2 x i64> @llvm.riscv.vwmaccsu.nxv2i64.i32(
1283 define <vscale x 2 x i64> @intrinsic_vwmaccsu_vx_nxv2i64_i32_nxv2i32(<vscale x 2 x i64> %0, i32 %1, <vscale x 2 x i32> %2, iXLen %3) nounwind {
1284 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv2i64_i32_nxv2i32:
1285 ; CHECK: # %bb.0: # %entry
1286 ; CHECK-NEXT: vsetvli zero, a1, e32, m1, tu, ma
1287 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v10
1290 %a = call <vscale x 2 x i64> @llvm.riscv.vwmaccsu.nxv2i64.i32(
1291 <vscale x 2 x i64> %0,
1293 <vscale x 2 x i32> %2,
1296 ret <vscale x 2 x i64> %a
1299 declare <vscale x 2 x i64> @llvm.riscv.vwmaccsu.mask.nxv2i64.i32(
1306 define <vscale x 2 x i64> @intrinsic_vwmaccsu_mask_vx_nxv2i64_i32_nxv2i32(<vscale x 2 x i64> %0, i32 %1, <vscale x 2 x i32> %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
1307 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv2i64_i32_nxv2i32:
1308 ; CHECK: # %bb.0: # %entry
1309 ; CHECK-NEXT: vsetvli zero, a1, e32, m1, tu, mu
1310 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v10, v0.t
1313 %a = call <vscale x 2 x i64> @llvm.riscv.vwmaccsu.mask.nxv2i64.i32(
1314 <vscale x 2 x i64> %0,
1316 <vscale x 2 x i32> %2,
1317 <vscale x 2 x i1> %3,
1320 ret <vscale x 2 x i64> %a
1323 declare <vscale x 4 x i64> @llvm.riscv.vwmaccsu.nxv4i64.i32(
1330 define <vscale x 4 x i64> @intrinsic_vwmaccsu_vx_nxv4i64_i32_nxv4i32(<vscale x 4 x i64> %0, i32 %1, <vscale x 4 x i32> %2, iXLen %3) nounwind {
1331 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv4i64_i32_nxv4i32:
1332 ; CHECK: # %bb.0: # %entry
1333 ; CHECK-NEXT: vsetvli zero, a1, e32, m2, tu, ma
1334 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v12
1337 %a = call <vscale x 4 x i64> @llvm.riscv.vwmaccsu.nxv4i64.i32(
1338 <vscale x 4 x i64> %0,
1340 <vscale x 4 x i32> %2,
1343 ret <vscale x 4 x i64> %a
1346 declare <vscale x 4 x i64> @llvm.riscv.vwmaccsu.mask.nxv4i64.i32(
1353 define <vscale x 4 x i64> @intrinsic_vwmaccsu_mask_vx_nxv4i64_i32_nxv4i32(<vscale x 4 x i64> %0, i32 %1, <vscale x 4 x i32> %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
1354 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv4i64_i32_nxv4i32:
1355 ; CHECK: # %bb.0: # %entry
1356 ; CHECK-NEXT: vsetvli zero, a1, e32, m2, tu, mu
1357 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v12, v0.t
1360 %a = call <vscale x 4 x i64> @llvm.riscv.vwmaccsu.mask.nxv4i64.i32(
1361 <vscale x 4 x i64> %0,
1363 <vscale x 4 x i32> %2,
1364 <vscale x 4 x i1> %3,
1367 ret <vscale x 4 x i64> %a
1370 declare <vscale x 8 x i64> @llvm.riscv.vwmaccsu.nxv8i64.i32(
1377 define <vscale x 8 x i64> @intrinsic_vwmaccsu_vx_nxv8i64_i32_nxv8i32(<vscale x 8 x i64> %0, i32 %1, <vscale x 8 x i32> %2, iXLen %3) nounwind {
1378 ; CHECK-LABEL: intrinsic_vwmaccsu_vx_nxv8i64_i32_nxv8i32:
1379 ; CHECK: # %bb.0: # %entry
1380 ; CHECK-NEXT: vsetvli zero, a1, e32, m4, tu, ma
1381 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v16
1384 %a = call <vscale x 8 x i64> @llvm.riscv.vwmaccsu.nxv8i64.i32(
1385 <vscale x 8 x i64> %0,
1387 <vscale x 8 x i32> %2,
1390 ret <vscale x 8 x i64> %a
1393 declare <vscale x 8 x i64> @llvm.riscv.vwmaccsu.mask.nxv8i64.i32(
1400 define <vscale x 8 x i64> @intrinsic_vwmaccsu_mask_vx_nxv8i64_i32_nxv8i32(<vscale x 8 x i64> %0, i32 %1, <vscale x 8 x i32> %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
1401 ; CHECK-LABEL: intrinsic_vwmaccsu_mask_vx_nxv8i64_i32_nxv8i32:
1402 ; CHECK: # %bb.0: # %entry
1403 ; CHECK-NEXT: vsetvli zero, a1, e32, m4, tu, mu
1404 ; CHECK-NEXT: vwmaccsu.vx v8, a0, v16, v0.t
1407 %a = call <vscale x 8 x i64> @llvm.riscv.vwmaccsu.mask.nxv8i64.i32(
1408 <vscale x 8 x i64> %0,
1410 <vscale x 8 x i32> %2,
1411 <vscale x 8 x i1> %3,
1414 ret <vscale x 8 x i64> %a