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,+zvbb \
3 ; RUN: -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK
4 ; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v,+zvbb \
5 ; RUN: -verify-machineinstrs | FileCheck %s --check-prefixes=CHECK
7 declare <vscale x 1 x i16> @llvm.riscv.vwsll.nxv1i16.nxv1i8.nxv1i8(
13 define <vscale x 1 x i16> @intrinsic_vwsll_vv_nxv1i16_nxv1i8_nxv1i8(<vscale x 1 x i8> %0, <vscale x 1 x i8> %1, iXLen %2) nounwind {
14 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv1i16_nxv1i8_nxv1i8:
15 ; CHECK: # %bb.0: # %entry
16 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, ta, ma
17 ; CHECK-NEXT: vwsll.vv v10, v8, v9
18 ; CHECK-NEXT: vmv1r.v v8, v10
21 %a = call <vscale x 1 x i16> @llvm.riscv.vwsll.nxv1i16.nxv1i8.nxv1i8(
22 <vscale x 1 x i16> undef,
27 ret <vscale x 1 x i16> %a
30 declare <vscale x 1 x i16> @llvm.riscv.vwsll.mask.nxv1i16.nxv1i8.nxv1i8(
38 define <vscale x 1 x i16> @intrinsic_vwsll_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 {
39 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv1i16_nxv1i8_nxv1i8:
40 ; CHECK: # %bb.0: # %entry
41 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, ta, mu
42 ; CHECK-NEXT: vwsll.vv v8, v9, v10, v0.t
45 %a = call <vscale x 1 x i16> @llvm.riscv.vwsll.mask.nxv1i16.nxv1i8.nxv1i8(
46 <vscale x 1 x i16> %0,
52 ret <vscale x 1 x i16> %a
55 declare <vscale x 2 x i16> @llvm.riscv.vwsll.nxv2i16.nxv2i8.nxv2i8(
61 define <vscale x 2 x i16> @intrinsic_vwsll_vv_nxv2i16_nxv2i8_nxv2i8(<vscale x 2 x i8> %0, <vscale x 2 x i8> %1, iXLen %2) nounwind {
62 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv2i16_nxv2i8_nxv2i8:
63 ; CHECK: # %bb.0: # %entry
64 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, ta, ma
65 ; CHECK-NEXT: vwsll.vv v10, v8, v9
66 ; CHECK-NEXT: vmv1r.v v8, v10
69 %a = call <vscale x 2 x i16> @llvm.riscv.vwsll.nxv2i16.nxv2i8.nxv2i8(
70 <vscale x 2 x i16> undef,
75 ret <vscale x 2 x i16> %a
78 declare <vscale x 2 x i16> @llvm.riscv.vwsll.mask.nxv2i16.nxv2i8.nxv2i8(
86 define <vscale x 2 x i16> @intrinsic_vwsll_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 {
87 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv2i16_nxv2i8_nxv2i8:
88 ; CHECK: # %bb.0: # %entry
89 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, ta, mu
90 ; CHECK-NEXT: vwsll.vv v8, v9, v10, v0.t
93 %a = call <vscale x 2 x i16> @llvm.riscv.vwsll.mask.nxv2i16.nxv2i8.nxv2i8(
94 <vscale x 2 x i16> %0,
100 ret <vscale x 2 x i16> %a
103 declare <vscale x 4 x i16> @llvm.riscv.vwsll.nxv4i16.nxv4i8.nxv4i8(
109 define <vscale x 4 x i16> @intrinsic_vwsll_vv_nxv4i16_nxv4i8_nxv4i8(<vscale x 4 x i8> %0, <vscale x 4 x i8> %1, iXLen %2) nounwind {
110 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv4i16_nxv4i8_nxv4i8:
111 ; CHECK: # %bb.0: # %entry
112 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, ta, ma
113 ; CHECK-NEXT: vwsll.vv v10, v8, v9
114 ; CHECK-NEXT: vmv1r.v v8, v10
117 %a = call <vscale x 4 x i16> @llvm.riscv.vwsll.nxv4i16.nxv4i8.nxv4i8(
118 <vscale x 4 x i16> undef,
119 <vscale x 4 x i8> %0,
120 <vscale x 4 x i8> %1,
123 ret <vscale x 4 x i16> %a
126 declare <vscale x 4 x i16> @llvm.riscv.vwsll.mask.nxv4i16.nxv4i8.nxv4i8(
134 define <vscale x 4 x i16> @intrinsic_vwsll_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 {
135 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv4i16_nxv4i8_nxv4i8:
136 ; CHECK: # %bb.0: # %entry
137 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, ta, mu
138 ; CHECK-NEXT: vwsll.vv v8, v9, v10, v0.t
141 %a = call <vscale x 4 x i16> @llvm.riscv.vwsll.mask.nxv4i16.nxv4i8.nxv4i8(
142 <vscale x 4 x i16> %0,
143 <vscale x 4 x i8> %1,
144 <vscale x 4 x i8> %2,
145 <vscale x 4 x i1> %3,
148 ret <vscale x 4 x i16> %a
151 declare <vscale x 8 x i16> @llvm.riscv.vwsll.nxv8i16.nxv8i8.nxv8i8(
157 define <vscale x 8 x i16> @intrinsic_vwsll_vv_nxv8i16_nxv8i8_nxv8i8(<vscale x 8 x i8> %0, <vscale x 8 x i8> %1, iXLen %2) nounwind {
158 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv8i16_nxv8i8_nxv8i8:
159 ; CHECK: # %bb.0: # %entry
160 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, ma
161 ; CHECK-NEXT: vwsll.vv v10, v8, v9
162 ; CHECK-NEXT: vmv2r.v v8, v10
165 %a = call <vscale x 8 x i16> @llvm.riscv.vwsll.nxv8i16.nxv8i8.nxv8i8(
166 <vscale x 8 x i16> undef,
167 <vscale x 8 x i8> %0,
168 <vscale x 8 x i8> %1,
171 ret <vscale x 8 x i16> %a
174 declare <vscale x 8 x i16> @llvm.riscv.vwsll.mask.nxv8i16.nxv8i8.nxv8i8(
182 define <vscale x 8 x i16> @intrinsic_vwsll_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 {
183 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv8i16_nxv8i8_nxv8i8:
184 ; CHECK: # %bb.0: # %entry
185 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, mu
186 ; CHECK-NEXT: vwsll.vv v8, v10, v11, v0.t
189 %a = call <vscale x 8 x i16> @llvm.riscv.vwsll.mask.nxv8i16.nxv8i8.nxv8i8(
190 <vscale x 8 x i16> %0,
191 <vscale x 8 x i8> %1,
192 <vscale x 8 x i8> %2,
193 <vscale x 8 x i1> %3,
196 ret <vscale x 8 x i16> %a
199 declare <vscale x 16 x i16> @llvm.riscv.vwsll.nxv16i16.nxv16i8.nxv16i8(
205 define <vscale x 16 x i16> @intrinsic_vwsll_vv_nxv16i16_nxv16i8_nxv16i8(<vscale x 16 x i8> %0, <vscale x 16 x i8> %1, iXLen %2) nounwind {
206 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv16i16_nxv16i8_nxv16i8:
207 ; CHECK: # %bb.0: # %entry
208 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, ta, ma
209 ; CHECK-NEXT: vwsll.vv v12, v8, v10
210 ; CHECK-NEXT: vmv4r.v v8, v12
213 %a = call <vscale x 16 x i16> @llvm.riscv.vwsll.nxv16i16.nxv16i8.nxv16i8(
214 <vscale x 16 x i16> undef,
215 <vscale x 16 x i8> %0,
216 <vscale x 16 x i8> %1,
219 ret <vscale x 16 x i16> %a
222 declare <vscale x 16 x i16> @llvm.riscv.vwsll.mask.nxv16i16.nxv16i8.nxv16i8(
230 define <vscale x 16 x i16> @intrinsic_vwsll_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 {
231 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv16i16_nxv16i8_nxv16i8:
232 ; CHECK: # %bb.0: # %entry
233 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, ta, mu
234 ; CHECK-NEXT: vwsll.vv v8, v12, v14, v0.t
237 %a = call <vscale x 16 x i16> @llvm.riscv.vwsll.mask.nxv16i16.nxv16i8.nxv16i8(
238 <vscale x 16 x i16> %0,
239 <vscale x 16 x i8> %1,
240 <vscale x 16 x i8> %2,
241 <vscale x 16 x i1> %3,
244 ret <vscale x 16 x i16> %a
247 declare <vscale x 32 x i16> @llvm.riscv.vwsll.nxv32i16.nxv32i8.nxv32i8(
253 define <vscale x 32 x i16> @intrinsic_vwsll_vv_nxv32i16_nxv32i8_nxv32i8(<vscale x 32 x i8> %0, <vscale x 32 x i8> %1, iXLen %2) nounwind {
254 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv32i16_nxv32i8_nxv32i8:
255 ; CHECK: # %bb.0: # %entry
256 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, ta, ma
257 ; CHECK-NEXT: vwsll.vv v16, v8, v12
258 ; CHECK-NEXT: vmv8r.v v8, v16
261 %a = call <vscale x 32 x i16> @llvm.riscv.vwsll.nxv32i16.nxv32i8.nxv32i8(
262 <vscale x 32 x i16> undef,
263 <vscale x 32 x i8> %0,
264 <vscale x 32 x i8> %1,
267 ret <vscale x 32 x i16> %a
270 declare <vscale x 32 x i16> @llvm.riscv.vwsll.mask.nxv32i16.nxv32i8.nxv32i8(
278 define <vscale x 32 x i16> @intrinsic_vwsll_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 {
279 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv32i16_nxv32i8_nxv32i8:
280 ; CHECK: # %bb.0: # %entry
281 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, ta, mu
282 ; CHECK-NEXT: vwsll.vv v8, v16, v20, v0.t
285 %a = call <vscale x 32 x i16> @llvm.riscv.vwsll.mask.nxv32i16.nxv32i8.nxv32i8(
286 <vscale x 32 x i16> %0,
287 <vscale x 32 x i8> %1,
288 <vscale x 32 x i8> %2,
289 <vscale x 32 x i1> %3,
292 ret <vscale x 32 x i16> %a
295 declare <vscale x 1 x i32> @llvm.riscv.vwsll.nxv1i32.nxv1i16.nxv1i16(
301 define <vscale x 1 x i32> @intrinsic_vwsll_vv_nxv1i32_nxv1i16_nxv1i16(<vscale x 1 x i16> %0, <vscale x 1 x i16> %1, iXLen %2) nounwind {
302 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv1i32_nxv1i16_nxv1i16:
303 ; CHECK: # %bb.0: # %entry
304 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, ma
305 ; CHECK-NEXT: vwsll.vv v10, v8, v9
306 ; CHECK-NEXT: vmv1r.v v8, v10
309 %a = call <vscale x 1 x i32> @llvm.riscv.vwsll.nxv1i32.nxv1i16.nxv1i16(
310 <vscale x 1 x i32> undef,
311 <vscale x 1 x i16> %0,
312 <vscale x 1 x i16> %1,
315 ret <vscale x 1 x i32> %a
318 declare <vscale x 1 x i32> @llvm.riscv.vwsll.mask.nxv1i32.nxv1i16.nxv1i16(
326 define <vscale x 1 x i32> @intrinsic_vwsll_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 {
327 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv1i32_nxv1i16_nxv1i16:
328 ; CHECK: # %bb.0: # %entry
329 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, mu
330 ; CHECK-NEXT: vwsll.vv v8, v9, v10, v0.t
333 %a = call <vscale x 1 x i32> @llvm.riscv.vwsll.mask.nxv1i32.nxv1i16.nxv1i16(
334 <vscale x 1 x i32> %0,
335 <vscale x 1 x i16> %1,
336 <vscale x 1 x i16> %2,
337 <vscale x 1 x i1> %3,
340 ret <vscale x 1 x i32> %a
343 declare <vscale x 2 x i32> @llvm.riscv.vwsll.nxv2i32.nxv2i16.nxv2i16(
349 define <vscale x 2 x i32> @intrinsic_vwsll_vv_nxv2i32_nxv2i16_nxv2i16(<vscale x 2 x i16> %0, <vscale x 2 x i16> %1, iXLen %2) nounwind {
350 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv2i32_nxv2i16_nxv2i16:
351 ; CHECK: # %bb.0: # %entry
352 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
353 ; CHECK-NEXT: vwsll.vv v10, v8, v9
354 ; CHECK-NEXT: vmv1r.v v8, v10
357 %a = call <vscale x 2 x i32> @llvm.riscv.vwsll.nxv2i32.nxv2i16.nxv2i16(
358 <vscale x 2 x i32> undef,
359 <vscale x 2 x i16> %0,
360 <vscale x 2 x i16> %1,
363 ret <vscale x 2 x i32> %a
366 declare <vscale x 2 x i32> @llvm.riscv.vwsll.mask.nxv2i32.nxv2i16.nxv2i16(
374 define <vscale x 2 x i32> @intrinsic_vwsll_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 {
375 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv2i32_nxv2i16_nxv2i16:
376 ; CHECK: # %bb.0: # %entry
377 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, mu
378 ; CHECK-NEXT: vwsll.vv v8, v9, v10, v0.t
381 %a = call <vscale x 2 x i32> @llvm.riscv.vwsll.mask.nxv2i32.nxv2i16.nxv2i16(
382 <vscale x 2 x i32> %0,
383 <vscale x 2 x i16> %1,
384 <vscale x 2 x i16> %2,
385 <vscale x 2 x i1> %3,
388 ret <vscale x 2 x i32> %a
391 declare <vscale x 4 x i32> @llvm.riscv.vwsll.nxv4i32.nxv4i16.nxv4i16(
397 define <vscale x 4 x i32> @intrinsic_vwsll_vv_nxv4i32_nxv4i16_nxv4i16(<vscale x 4 x i16> %0, <vscale x 4 x i16> %1, iXLen %2) nounwind {
398 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv4i32_nxv4i16_nxv4i16:
399 ; CHECK: # %bb.0: # %entry
400 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, ma
401 ; CHECK-NEXT: vwsll.vv v10, v8, v9
402 ; CHECK-NEXT: vmv2r.v v8, v10
405 %a = call <vscale x 4 x i32> @llvm.riscv.vwsll.nxv4i32.nxv4i16.nxv4i16(
406 <vscale x 4 x i32> undef,
407 <vscale x 4 x i16> %0,
408 <vscale x 4 x i16> %1,
411 ret <vscale x 4 x i32> %a
414 declare <vscale x 4 x i32> @llvm.riscv.vwsll.mask.nxv4i32.nxv4i16.nxv4i16(
422 define <vscale x 4 x i32> @intrinsic_vwsll_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 {
423 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv4i32_nxv4i16_nxv4i16:
424 ; CHECK: # %bb.0: # %entry
425 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, mu
426 ; CHECK-NEXT: vwsll.vv v8, v10, v11, v0.t
429 %a = call <vscale x 4 x i32> @llvm.riscv.vwsll.mask.nxv4i32.nxv4i16.nxv4i16(
430 <vscale x 4 x i32> %0,
431 <vscale x 4 x i16> %1,
432 <vscale x 4 x i16> %2,
433 <vscale x 4 x i1> %3,
436 ret <vscale x 4 x i32> %a
439 declare <vscale x 8 x i32> @llvm.riscv.vwsll.nxv8i32.nxv8i16.nxv8i16(
445 define <vscale x 8 x i32> @intrinsic_vwsll_vv_nxv8i32_nxv8i16_nxv8i16(<vscale x 8 x i16> %0, <vscale x 8 x i16> %1, iXLen %2) nounwind {
446 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv8i32_nxv8i16_nxv8i16:
447 ; CHECK: # %bb.0: # %entry
448 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, ma
449 ; CHECK-NEXT: vwsll.vv v12, v8, v10
450 ; CHECK-NEXT: vmv4r.v v8, v12
453 %a = call <vscale x 8 x i32> @llvm.riscv.vwsll.nxv8i32.nxv8i16.nxv8i16(
454 <vscale x 8 x i32> undef,
455 <vscale x 8 x i16> %0,
456 <vscale x 8 x i16> %1,
459 ret <vscale x 8 x i32> %a
462 declare <vscale x 8 x i32> @llvm.riscv.vwsll.mask.nxv8i32.nxv8i16.nxv8i16(
470 define <vscale x 8 x i32> @intrinsic_vwsll_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 {
471 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv8i32_nxv8i16_nxv8i16:
472 ; CHECK: # %bb.0: # %entry
473 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, mu
474 ; CHECK-NEXT: vwsll.vv v8, v12, v14, v0.t
477 %a = call <vscale x 8 x i32> @llvm.riscv.vwsll.mask.nxv8i32.nxv8i16.nxv8i16(
478 <vscale x 8 x i32> %0,
479 <vscale x 8 x i16> %1,
480 <vscale x 8 x i16> %2,
481 <vscale x 8 x i1> %3,
484 ret <vscale x 8 x i32> %a
487 declare <vscale x 16 x i32> @llvm.riscv.vwsll.nxv16i32.nxv16i16.nxv16i16(
493 define <vscale x 16 x i32> @intrinsic_vwsll_vv_nxv16i32_nxv16i16_nxv16i16(<vscale x 16 x i16> %0, <vscale x 16 x i16> %1, iXLen %2) nounwind {
494 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv16i32_nxv16i16_nxv16i16:
495 ; CHECK: # %bb.0: # %entry
496 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, ma
497 ; CHECK-NEXT: vwsll.vv v16, v8, v12
498 ; CHECK-NEXT: vmv8r.v v8, v16
501 %a = call <vscale x 16 x i32> @llvm.riscv.vwsll.nxv16i32.nxv16i16.nxv16i16(
502 <vscale x 16 x i32> undef,
503 <vscale x 16 x i16> %0,
504 <vscale x 16 x i16> %1,
507 ret <vscale x 16 x i32> %a
510 declare <vscale x 16 x i32> @llvm.riscv.vwsll.mask.nxv16i32.nxv16i16.nxv16i16(
518 define <vscale x 16 x i32> @intrinsic_vwsll_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 {
519 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv16i32_nxv16i16_nxv16i16:
520 ; CHECK: # %bb.0: # %entry
521 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, mu
522 ; CHECK-NEXT: vwsll.vv v8, v16, v20, v0.t
525 %a = call <vscale x 16 x i32> @llvm.riscv.vwsll.mask.nxv16i32.nxv16i16.nxv16i16(
526 <vscale x 16 x i32> %0,
527 <vscale x 16 x i16> %1,
528 <vscale x 16 x i16> %2,
529 <vscale x 16 x i1> %3,
532 ret <vscale x 16 x i32> %a
535 declare <vscale x 1 x i64> @llvm.riscv.vwsll.nxv1i64.nxv1i32.nxv1i32(
541 define <vscale x 1 x i64> @intrinsic_vwsll_vv_nxv1i64_nxv1i32_nxv1i32(<vscale x 1 x i32> %0, <vscale x 1 x i32> %1, iXLen %2) nounwind {
542 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv1i64_nxv1i32_nxv1i32:
543 ; CHECK: # %bb.0: # %entry
544 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, ma
545 ; CHECK-NEXT: vwsll.vv v10, v8, v9
546 ; CHECK-NEXT: vmv1r.v v8, v10
549 %a = call <vscale x 1 x i64> @llvm.riscv.vwsll.nxv1i64.nxv1i32.nxv1i32(
550 <vscale x 1 x i64> undef,
551 <vscale x 1 x i32> %0,
552 <vscale x 1 x i32> %1,
555 ret <vscale x 1 x i64> %a
558 declare <vscale x 1 x i64> @llvm.riscv.vwsll.mask.nxv1i64.nxv1i32.nxv1i32(
566 define <vscale x 1 x i64> @intrinsic_vwsll_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 {
567 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv1i64_nxv1i32_nxv1i32:
568 ; CHECK: # %bb.0: # %entry
569 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, mu
570 ; CHECK-NEXT: vwsll.vv v8, v9, v10, v0.t
573 %a = call <vscale x 1 x i64> @llvm.riscv.vwsll.mask.nxv1i64.nxv1i32.nxv1i32(
574 <vscale x 1 x i64> %0,
575 <vscale x 1 x i32> %1,
576 <vscale x 1 x i32> %2,
577 <vscale x 1 x i1> %3,
580 ret <vscale x 1 x i64> %a
583 declare <vscale x 2 x i64> @llvm.riscv.vwsll.nxv2i64.nxv2i32.nxv2i32(
589 define <vscale x 2 x i64> @intrinsic_vwsll_vv_nxv2i64_nxv2i32_nxv2i32(<vscale x 2 x i32> %0, <vscale x 2 x i32> %1, iXLen %2) nounwind {
590 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv2i64_nxv2i32_nxv2i32:
591 ; CHECK: # %bb.0: # %entry
592 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
593 ; CHECK-NEXT: vwsll.vv v10, v8, v9
594 ; CHECK-NEXT: vmv2r.v v8, v10
597 %a = call <vscale x 2 x i64> @llvm.riscv.vwsll.nxv2i64.nxv2i32.nxv2i32(
598 <vscale x 2 x i64> undef,
599 <vscale x 2 x i32> %0,
600 <vscale x 2 x i32> %1,
603 ret <vscale x 2 x i64> %a
606 declare <vscale x 2 x i64> @llvm.riscv.vwsll.mask.nxv2i64.nxv2i32.nxv2i32(
614 define <vscale x 2 x i64> @intrinsic_vwsll_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 {
615 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv2i64_nxv2i32_nxv2i32:
616 ; CHECK: # %bb.0: # %entry
617 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, mu
618 ; CHECK-NEXT: vwsll.vv v8, v10, v11, v0.t
621 %a = call <vscale x 2 x i64> @llvm.riscv.vwsll.mask.nxv2i64.nxv2i32.nxv2i32(
622 <vscale x 2 x i64> %0,
623 <vscale x 2 x i32> %1,
624 <vscale x 2 x i32> %2,
625 <vscale x 2 x i1> %3,
628 ret <vscale x 2 x i64> %a
631 declare <vscale x 4 x i64> @llvm.riscv.vwsll.nxv4i64.nxv4i32.nxv4i32(
637 define <vscale x 4 x i64> @intrinsic_vwsll_vv_nxv4i64_nxv4i32_nxv4i32(<vscale x 4 x i32> %0, <vscale x 4 x i32> %1, iXLen %2) nounwind {
638 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv4i64_nxv4i32_nxv4i32:
639 ; CHECK: # %bb.0: # %entry
640 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
641 ; CHECK-NEXT: vwsll.vv v12, v8, v10
642 ; CHECK-NEXT: vmv4r.v v8, v12
645 %a = call <vscale x 4 x i64> @llvm.riscv.vwsll.nxv4i64.nxv4i32.nxv4i32(
646 <vscale x 4 x i64> undef,
647 <vscale x 4 x i32> %0,
648 <vscale x 4 x i32> %1,
651 ret <vscale x 4 x i64> %a
654 declare <vscale x 4 x i64> @llvm.riscv.vwsll.mask.nxv4i64.nxv4i32.nxv4i32(
662 define <vscale x 4 x i64> @intrinsic_vwsll_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 {
663 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv4i64_nxv4i32_nxv4i32:
664 ; CHECK: # %bb.0: # %entry
665 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, mu
666 ; CHECK-NEXT: vwsll.vv v8, v12, v14, v0.t
669 %a = call <vscale x 4 x i64> @llvm.riscv.vwsll.mask.nxv4i64.nxv4i32.nxv4i32(
670 <vscale x 4 x i64> %0,
671 <vscale x 4 x i32> %1,
672 <vscale x 4 x i32> %2,
673 <vscale x 4 x i1> %3,
676 ret <vscale x 4 x i64> %a
679 declare <vscale x 8 x i64> @llvm.riscv.vwsll.nxv8i64.nxv8i32.nxv8i32(
685 define <vscale x 8 x i64> @intrinsic_vwsll_vv_nxv8i64_nxv8i32_nxv8i32(<vscale x 8 x i32> %0, <vscale x 8 x i32> %1, iXLen %2) nounwind {
686 ; CHECK-LABEL: intrinsic_vwsll_vv_nxv8i64_nxv8i32_nxv8i32:
687 ; CHECK: # %bb.0: # %entry
688 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
689 ; CHECK-NEXT: vwsll.vv v16, v8, v12
690 ; CHECK-NEXT: vmv8r.v v8, v16
693 %a = call <vscale x 8 x i64> @llvm.riscv.vwsll.nxv8i64.nxv8i32.nxv8i32(
694 <vscale x 8 x i64> undef,
695 <vscale x 8 x i32> %0,
696 <vscale x 8 x i32> %1,
699 ret <vscale x 8 x i64> %a
702 declare <vscale x 8 x i64> @llvm.riscv.vwsll.mask.nxv8i64.nxv8i32.nxv8i32(
710 define <vscale x 8 x i64> @intrinsic_vwsll_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 {
711 ; CHECK-LABEL: intrinsic_vwsll_mask_vv_nxv8i64_nxv8i32_nxv8i32:
712 ; CHECK: # %bb.0: # %entry
713 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, mu
714 ; CHECK-NEXT: vwsll.vv v8, v16, v20, v0.t
717 %a = call <vscale x 8 x i64> @llvm.riscv.vwsll.mask.nxv8i64.nxv8i32.nxv8i32(
718 <vscale x 8 x i64> %0,
719 <vscale x 8 x i32> %1,
720 <vscale x 8 x i32> %2,
721 <vscale x 8 x i1> %3,
724 ret <vscale x 8 x i64> %a
727 declare <vscale x 1 x i16> @llvm.riscv.vwsll.nxv1i16.nxv1i8(
733 define <vscale x 1 x i16> @intrinsic_vwsll_vx_nxv1i16_nxv1i8(<vscale x 1 x i8> %0, iXLen%1, iXLen %2) nounwind {
734 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv1i16_nxv1i8:
735 ; CHECK: # %bb.0: # %entry
736 ; CHECK-NEXT: vsetvli zero, a1, e8, mf8, ta, ma
737 ; CHECK-NEXT: vwsll.vx v9, v8, a0
738 ; CHECK-NEXT: vmv1r.v v8, v9
741 %a = call <vscale x 1 x i16> @llvm.riscv.vwsll.nxv1i16.nxv1i8(
742 <vscale x 1 x i16> undef,
743 <vscale x 1 x i8> %0,
747 ret <vscale x 1 x i16> %a
750 declare <vscale x 1 x i16> @llvm.riscv.vwsll.mask.nxv1i16.nxv1i8.i8(
758 define <vscale x 1 x i16> @intrinsic_vwsll_mask_vx_nxv1i16_nxv1i8(<vscale x 1 x i16> %0, <vscale x 1 x i8> %1, iXLen%2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
759 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv1i16_nxv1i8:
760 ; CHECK: # %bb.0: # %entry
761 ; CHECK-NEXT: vsetvli zero, a1, e8, mf8, ta, mu
762 ; CHECK-NEXT: vwsll.vx v8, v9, a0, v0.t
765 %a = call <vscale x 1 x i16> @llvm.riscv.vwsll.mask.nxv1i16.nxv1i8.i8(
766 <vscale x 1 x i16> %0,
767 <vscale x 1 x i8> %1,
769 <vscale x 1 x i1> %3,
772 ret <vscale x 1 x i16> %a
775 declare <vscale x 2 x i16> @llvm.riscv.vwsll.nxv2i16.nxv2i8(
781 define <vscale x 2 x i16> @intrinsic_vwsll_vx_nxv2i16_nxv2i8(<vscale x 2 x i8> %0, iXLen%1, iXLen %2) nounwind {
782 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv2i16_nxv2i8:
783 ; CHECK: # %bb.0: # %entry
784 ; CHECK-NEXT: vsetvli zero, a1, e8, mf4, ta, ma
785 ; CHECK-NEXT: vwsll.vx v9, v8, a0
786 ; CHECK-NEXT: vmv1r.v v8, v9
789 %a = call <vscale x 2 x i16> @llvm.riscv.vwsll.nxv2i16.nxv2i8(
790 <vscale x 2 x i16> undef,
791 <vscale x 2 x i8> %0,
795 ret <vscale x 2 x i16> %a
798 declare <vscale x 2 x i16> @llvm.riscv.vwsll.mask.nxv2i16.nxv2i8.i8(
806 define <vscale x 2 x i16> @intrinsic_vwsll_mask_vx_nxv2i16_nxv2i8(<vscale x 2 x i16> %0, <vscale x 2 x i8> %1, iXLen%2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
807 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv2i16_nxv2i8:
808 ; CHECK: # %bb.0: # %entry
809 ; CHECK-NEXT: vsetvli zero, a1, e8, mf4, ta, mu
810 ; CHECK-NEXT: vwsll.vx v8, v9, a0, v0.t
813 %a = call <vscale x 2 x i16> @llvm.riscv.vwsll.mask.nxv2i16.nxv2i8.i8(
814 <vscale x 2 x i16> %0,
815 <vscale x 2 x i8> %1,
817 <vscale x 2 x i1> %3,
820 ret <vscale x 2 x i16> %a
823 declare <vscale x 4 x i16> @llvm.riscv.vwsll.nxv4i16.nxv4i8(
829 define <vscale x 4 x i16> @intrinsic_vwsll_vx_nxv4i16_nxv4i8(<vscale x 4 x i8> %0, iXLen%1, iXLen %2) nounwind {
830 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv4i16_nxv4i8:
831 ; CHECK: # %bb.0: # %entry
832 ; CHECK-NEXT: vsetvli zero, a1, e8, mf2, ta, ma
833 ; CHECK-NEXT: vwsll.vx v9, v8, a0
834 ; CHECK-NEXT: vmv1r.v v8, v9
837 %a = call <vscale x 4 x i16> @llvm.riscv.vwsll.nxv4i16.nxv4i8(
838 <vscale x 4 x i16> undef,
839 <vscale x 4 x i8> %0,
843 ret <vscale x 4 x i16> %a
846 declare <vscale x 4 x i16> @llvm.riscv.vwsll.mask.nxv4i16.nxv4i8.i8(
854 define <vscale x 4 x i16> @intrinsic_vwsll_mask_vx_nxv4i16_nxv4i8(<vscale x 4 x i16> %0, <vscale x 4 x i8> %1, iXLen%2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
855 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv4i16_nxv4i8:
856 ; CHECK: # %bb.0: # %entry
857 ; CHECK-NEXT: vsetvli zero, a1, e8, mf2, ta, mu
858 ; CHECK-NEXT: vwsll.vx v8, v9, a0, v0.t
861 %a = call <vscale x 4 x i16> @llvm.riscv.vwsll.mask.nxv4i16.nxv4i8.i8(
862 <vscale x 4 x i16> %0,
863 <vscale x 4 x i8> %1,
865 <vscale x 4 x i1> %3,
868 ret <vscale x 4 x i16> %a
871 declare <vscale x 8 x i16> @llvm.riscv.vwsll.nxv8i16.nxv8i8(
877 define <vscale x 8 x i16> @intrinsic_vwsll_vx_nxv8i16_nxv8i8(<vscale x 8 x i8> %0, iXLen%1, iXLen %2) nounwind {
878 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv8i16_nxv8i8:
879 ; CHECK: # %bb.0: # %entry
880 ; CHECK-NEXT: vsetvli zero, a1, e8, m1, ta, ma
881 ; CHECK-NEXT: vwsll.vx v10, v8, a0
882 ; CHECK-NEXT: vmv2r.v v8, v10
885 %a = call <vscale x 8 x i16> @llvm.riscv.vwsll.nxv8i16.nxv8i8(
886 <vscale x 8 x i16> undef,
887 <vscale x 8 x i8> %0,
891 ret <vscale x 8 x i16> %a
894 declare <vscale x 8 x i16> @llvm.riscv.vwsll.mask.nxv8i16.nxv8i8.i8(
902 define <vscale x 8 x i16> @intrinsic_vwsll_mask_vx_nxv8i16_nxv8i8(<vscale x 8 x i16> %0, <vscale x 8 x i8> %1, iXLen%2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
903 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv8i16_nxv8i8:
904 ; CHECK: # %bb.0: # %entry
905 ; CHECK-NEXT: vsetvli zero, a1, e8, m1, ta, mu
906 ; CHECK-NEXT: vwsll.vx v8, v10, a0, v0.t
909 %a = call <vscale x 8 x i16> @llvm.riscv.vwsll.mask.nxv8i16.nxv8i8.i8(
910 <vscale x 8 x i16> %0,
911 <vscale x 8 x i8> %1,
913 <vscale x 8 x i1> %3,
916 ret <vscale x 8 x i16> %a
919 declare <vscale x 16 x i16> @llvm.riscv.vwsll.nxv16i16.nxv16i8(
925 define <vscale x 16 x i16> @intrinsic_vwsll_vx_nxv16i16_nxv16i8(<vscale x 16 x i8> %0, iXLen%1, iXLen %2) nounwind {
926 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv16i16_nxv16i8:
927 ; CHECK: # %bb.0: # %entry
928 ; CHECK-NEXT: vsetvli zero, a1, e8, m2, ta, ma
929 ; CHECK-NEXT: vwsll.vx v12, v8, a0
930 ; CHECK-NEXT: vmv4r.v v8, v12
933 %a = call <vscale x 16 x i16> @llvm.riscv.vwsll.nxv16i16.nxv16i8(
934 <vscale x 16 x i16> undef,
935 <vscale x 16 x i8> %0,
939 ret <vscale x 16 x i16> %a
942 declare <vscale x 16 x i16> @llvm.riscv.vwsll.mask.nxv16i16.nxv16i8.i8(
950 define <vscale x 16 x i16> @intrinsic_vwsll_mask_vx_nxv16i16_nxv16i8(<vscale x 16 x i16> %0, <vscale x 16 x i8> %1, iXLen%2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
951 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv16i16_nxv16i8:
952 ; CHECK: # %bb.0: # %entry
953 ; CHECK-NEXT: vsetvli zero, a1, e8, m2, ta, mu
954 ; CHECK-NEXT: vwsll.vx v8, v12, a0, v0.t
957 %a = call <vscale x 16 x i16> @llvm.riscv.vwsll.mask.nxv16i16.nxv16i8.i8(
958 <vscale x 16 x i16> %0,
959 <vscale x 16 x i8> %1,
961 <vscale x 16 x i1> %3,
964 ret <vscale x 16 x i16> %a
967 declare <vscale x 32 x i16> @llvm.riscv.vwsll.nxv32i16.nxv32i8(
973 define <vscale x 32 x i16> @intrinsic_vwsll_vx_nxv32i16_nxv32i8(<vscale x 32 x i8> %0, iXLen%1, iXLen %2) nounwind {
974 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv32i16_nxv32i8:
975 ; CHECK: # %bb.0: # %entry
976 ; CHECK-NEXT: vsetvli zero, a1, e8, m4, ta, ma
977 ; CHECK-NEXT: vwsll.vx v16, v8, a0
978 ; CHECK-NEXT: vmv8r.v v8, v16
981 %a = call <vscale x 32 x i16> @llvm.riscv.vwsll.nxv32i16.nxv32i8(
982 <vscale x 32 x i16> undef,
983 <vscale x 32 x i8> %0,
987 ret <vscale x 32 x i16> %a
990 declare <vscale x 32 x i16> @llvm.riscv.vwsll.mask.nxv32i16.nxv32i8.i8(
998 define <vscale x 32 x i16> @intrinsic_vwsll_mask_vx_nxv32i16_nxv32i8(<vscale x 32 x i16> %0, <vscale x 32 x i8> %1, iXLen%2, <vscale x 32 x i1> %3, iXLen %4) nounwind {
999 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv32i16_nxv32i8:
1000 ; CHECK: # %bb.0: # %entry
1001 ; CHECK-NEXT: vsetvli zero, a1, e8, m4, ta, mu
1002 ; CHECK-NEXT: vwsll.vx v8, v16, a0, v0.t
1005 %a = call <vscale x 32 x i16> @llvm.riscv.vwsll.mask.nxv32i16.nxv32i8.i8(
1006 <vscale x 32 x i16> %0,
1007 <vscale x 32 x i8> %1,
1009 <vscale x 32 x i1> %3,
1012 ret <vscale x 32 x i16> %a
1015 declare <vscale x 1 x i32> @llvm.riscv.vwsll.nxv1i32.nxv1i16(
1021 define <vscale x 1 x i32> @intrinsic_vwsll_vx_nxv1i32_nxv1i16(<vscale x 1 x i16> %0, iXLen%1, iXLen %2) nounwind {
1022 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv1i32_nxv1i16:
1023 ; CHECK: # %bb.0: # %entry
1024 ; CHECK-NEXT: vsetvli zero, a1, e16, mf4, ta, ma
1025 ; CHECK-NEXT: vwsll.vx v9, v8, a0
1026 ; CHECK-NEXT: vmv1r.v v8, v9
1029 %a = call <vscale x 1 x i32> @llvm.riscv.vwsll.nxv1i32.nxv1i16(
1030 <vscale x 1 x i32> undef,
1031 <vscale x 1 x i16> %0,
1035 ret <vscale x 1 x i32> %a
1038 declare <vscale x 1 x i32> @llvm.riscv.vwsll.mask.nxv1i32.nxv1i16.i16(
1046 define <vscale x 1 x i32> @intrinsic_vwsll_mask_vx_nxv1i32_nxv1i16(<vscale x 1 x i32> %0, <vscale x 1 x i16> %1, iXLen%2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
1047 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv1i32_nxv1i16:
1048 ; CHECK: # %bb.0: # %entry
1049 ; CHECK-NEXT: vsetvli zero, a1, e16, mf4, ta, mu
1050 ; CHECK-NEXT: vwsll.vx v8, v9, a0, v0.t
1053 %a = call <vscale x 1 x i32> @llvm.riscv.vwsll.mask.nxv1i32.nxv1i16.i16(
1054 <vscale x 1 x i32> %0,
1055 <vscale x 1 x i16> %1,
1057 <vscale x 1 x i1> %3,
1060 ret <vscale x 1 x i32> %a
1063 declare <vscale x 2 x i32> @llvm.riscv.vwsll.nxv2i32.nxv2i16(
1069 define <vscale x 2 x i32> @intrinsic_vwsll_vx_nxv2i32_nxv2i16(<vscale x 2 x i16> %0, iXLen%1, iXLen %2) nounwind {
1070 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv2i32_nxv2i16:
1071 ; CHECK: # %bb.0: # %entry
1072 ; CHECK-NEXT: vsetvli zero, a1, e16, mf2, ta, ma
1073 ; CHECK-NEXT: vwsll.vx v9, v8, a0
1074 ; CHECK-NEXT: vmv1r.v v8, v9
1077 %a = call <vscale x 2 x i32> @llvm.riscv.vwsll.nxv2i32.nxv2i16(
1078 <vscale x 2 x i32> undef,
1079 <vscale x 2 x i16> %0,
1083 ret <vscale x 2 x i32> %a
1086 declare <vscale x 2 x i32> @llvm.riscv.vwsll.mask.nxv2i32.nxv2i16.i16(
1094 define <vscale x 2 x i32> @intrinsic_vwsll_mask_vx_nxv2i32_nxv2i16(<vscale x 2 x i32> %0, <vscale x 2 x i16> %1, iXLen%2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
1095 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv2i32_nxv2i16:
1096 ; CHECK: # %bb.0: # %entry
1097 ; CHECK-NEXT: vsetvli zero, a1, e16, mf2, ta, mu
1098 ; CHECK-NEXT: vwsll.vx v8, v9, a0, v0.t
1101 %a = call <vscale x 2 x i32> @llvm.riscv.vwsll.mask.nxv2i32.nxv2i16.i16(
1102 <vscale x 2 x i32> %0,
1103 <vscale x 2 x i16> %1,
1105 <vscale x 2 x i1> %3,
1108 ret <vscale x 2 x i32> %a
1111 declare <vscale x 4 x i32> @llvm.riscv.vwsll.nxv4i32.nxv4i16(
1117 define <vscale x 4 x i32> @intrinsic_vwsll_vx_nxv4i32_nxv4i16(<vscale x 4 x i16> %0, iXLen%1, iXLen %2) nounwind {
1118 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv4i32_nxv4i16:
1119 ; CHECK: # %bb.0: # %entry
1120 ; CHECK-NEXT: vsetvli zero, a1, e16, m1, ta, ma
1121 ; CHECK-NEXT: vwsll.vx v10, v8, a0
1122 ; CHECK-NEXT: vmv2r.v v8, v10
1125 %a = call <vscale x 4 x i32> @llvm.riscv.vwsll.nxv4i32.nxv4i16(
1126 <vscale x 4 x i32> undef,
1127 <vscale x 4 x i16> %0,
1131 ret <vscale x 4 x i32> %a
1134 declare <vscale x 4 x i32> @llvm.riscv.vwsll.mask.nxv4i32.nxv4i16.i16(
1142 define <vscale x 4 x i32> @intrinsic_vwsll_mask_vx_nxv4i32_nxv4i16(<vscale x 4 x i32> %0, <vscale x 4 x i16> %1, iXLen%2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
1143 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv4i32_nxv4i16:
1144 ; CHECK: # %bb.0: # %entry
1145 ; CHECK-NEXT: vsetvli zero, a1, e16, m1, ta, mu
1146 ; CHECK-NEXT: vwsll.vx v8, v10, a0, v0.t
1149 %a = call <vscale x 4 x i32> @llvm.riscv.vwsll.mask.nxv4i32.nxv4i16.i16(
1150 <vscale x 4 x i32> %0,
1151 <vscale x 4 x i16> %1,
1153 <vscale x 4 x i1> %3,
1156 ret <vscale x 4 x i32> %a
1159 declare <vscale x 8 x i32> @llvm.riscv.vwsll.nxv8i32.nxv8i16(
1165 define <vscale x 8 x i32> @intrinsic_vwsll_vx_nxv8i32_nxv8i16(<vscale x 8 x i16> %0, iXLen%1, iXLen %2) nounwind {
1166 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv8i32_nxv8i16:
1167 ; CHECK: # %bb.0: # %entry
1168 ; CHECK-NEXT: vsetvli zero, a1, e16, m2, ta, ma
1169 ; CHECK-NEXT: vwsll.vx v12, v8, a0
1170 ; CHECK-NEXT: vmv4r.v v8, v12
1173 %a = call <vscale x 8 x i32> @llvm.riscv.vwsll.nxv8i32.nxv8i16(
1174 <vscale x 8 x i32> undef,
1175 <vscale x 8 x i16> %0,
1179 ret <vscale x 8 x i32> %a
1182 declare <vscale x 8 x i32> @llvm.riscv.vwsll.mask.nxv8i32.nxv8i16.i16(
1190 define <vscale x 8 x i32> @intrinsic_vwsll_mask_vx_nxv8i32_nxv8i16(<vscale x 8 x i32> %0, <vscale x 8 x i16> %1, iXLen%2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
1191 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv8i32_nxv8i16:
1192 ; CHECK: # %bb.0: # %entry
1193 ; CHECK-NEXT: vsetvli zero, a1, e16, m2, ta, mu
1194 ; CHECK-NEXT: vwsll.vx v8, v12, a0, v0.t
1197 %a = call <vscale x 8 x i32> @llvm.riscv.vwsll.mask.nxv8i32.nxv8i16.i16(
1198 <vscale x 8 x i32> %0,
1199 <vscale x 8 x i16> %1,
1201 <vscale x 8 x i1> %3,
1204 ret <vscale x 8 x i32> %a
1207 declare <vscale x 16 x i32> @llvm.riscv.vwsll.nxv16i32.nxv16i16(
1208 <vscale x 16 x i32>,
1209 <vscale x 16 x i16>,
1213 define <vscale x 16 x i32> @intrinsic_vwsll_vx_nxv16i32_nxv16i16(<vscale x 16 x i16> %0, iXLen%1, iXLen %2) nounwind {
1214 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv16i32_nxv16i16:
1215 ; CHECK: # %bb.0: # %entry
1216 ; CHECK-NEXT: vsetvli zero, a1, e16, m4, ta, ma
1217 ; CHECK-NEXT: vwsll.vx v16, v8, a0
1218 ; CHECK-NEXT: vmv8r.v v8, v16
1221 %a = call <vscale x 16 x i32> @llvm.riscv.vwsll.nxv16i32.nxv16i16(
1222 <vscale x 16 x i32> undef,
1223 <vscale x 16 x i16> %0,
1227 ret <vscale x 16 x i32> %a
1230 declare <vscale x 16 x i32> @llvm.riscv.vwsll.mask.nxv16i32.nxv16i16.i16(
1231 <vscale x 16 x i32>,
1232 <vscale x 16 x i16>,
1238 define <vscale x 16 x i32> @intrinsic_vwsll_mask_vx_nxv16i32_nxv16i16(<vscale x 16 x i32> %0, <vscale x 16 x i16> %1, iXLen%2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
1239 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv16i32_nxv16i16:
1240 ; CHECK: # %bb.0: # %entry
1241 ; CHECK-NEXT: vsetvli zero, a1, e16, m4, ta, mu
1242 ; CHECK-NEXT: vwsll.vx v8, v16, a0, v0.t
1245 %a = call <vscale x 16 x i32> @llvm.riscv.vwsll.mask.nxv16i32.nxv16i16.i16(
1246 <vscale x 16 x i32> %0,
1247 <vscale x 16 x i16> %1,
1249 <vscale x 16 x i1> %3,
1252 ret <vscale x 16 x i32> %a
1255 declare <vscale x 1 x i64> @llvm.riscv.vwsll.nxv1i64.nxv1i32(
1261 define <vscale x 1 x i64> @intrinsic_vwsll_vx_nxv1i64_nxv1i32(<vscale x 1 x i32> %0, iXLen%1, iXLen %2) nounwind {
1262 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv1i64_nxv1i32:
1263 ; CHECK: # %bb.0: # %entry
1264 ; CHECK-NEXT: vsetvli zero, a1, e32, mf2, ta, ma
1265 ; CHECK-NEXT: vwsll.vx v9, v8, a0
1266 ; CHECK-NEXT: vmv1r.v v8, v9
1269 %a = call <vscale x 1 x i64> @llvm.riscv.vwsll.nxv1i64.nxv1i32(
1270 <vscale x 1 x i64> undef,
1271 <vscale x 1 x i32> %0,
1275 ret <vscale x 1 x i64> %a
1278 declare <vscale x 1 x i64> @llvm.riscv.vwsll.mask.nxv1i64.nxv1i32.i32(
1286 define <vscale x 1 x i64> @intrinsic_vwsll_mask_vx_nxv1i64_nxv1i32(<vscale x 1 x i64> %0, <vscale x 1 x i32> %1, iXLen%2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
1287 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv1i64_nxv1i32:
1288 ; CHECK: # %bb.0: # %entry
1289 ; CHECK-NEXT: vsetvli zero, a1, e32, mf2, ta, mu
1290 ; CHECK-NEXT: vwsll.vx v8, v9, a0, v0.t
1293 %a = call <vscale x 1 x i64> @llvm.riscv.vwsll.mask.nxv1i64.nxv1i32.i32(
1294 <vscale x 1 x i64> %0,
1295 <vscale x 1 x i32> %1,
1297 <vscale x 1 x i1> %3,
1300 ret <vscale x 1 x i64> %a
1303 declare <vscale x 2 x i64> @llvm.riscv.vwsll.nxv2i64.nxv2i32(
1309 define <vscale x 2 x i64> @intrinsic_vwsll_vx_nxv2i64_nxv2i32(<vscale x 2 x i32> %0, iXLen%1, iXLen %2) nounwind {
1310 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv2i64_nxv2i32:
1311 ; CHECK: # %bb.0: # %entry
1312 ; CHECK-NEXT: vsetvli zero, a1, e32, m1, ta, ma
1313 ; CHECK-NEXT: vwsll.vx v10, v8, a0
1314 ; CHECK-NEXT: vmv2r.v v8, v10
1317 %a = call <vscale x 2 x i64> @llvm.riscv.vwsll.nxv2i64.nxv2i32(
1318 <vscale x 2 x i64> undef,
1319 <vscale x 2 x i32> %0,
1323 ret <vscale x 2 x i64> %a
1326 declare <vscale x 2 x i64> @llvm.riscv.vwsll.mask.nxv2i64.nxv2i32.i32(
1334 define <vscale x 2 x i64> @intrinsic_vwsll_mask_vx_nxv2i64_nxv2i32(<vscale x 2 x i64> %0, <vscale x 2 x i32> %1, iXLen%2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
1335 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv2i64_nxv2i32:
1336 ; CHECK: # %bb.0: # %entry
1337 ; CHECK-NEXT: vsetvli zero, a1, e32, m1, ta, mu
1338 ; CHECK-NEXT: vwsll.vx v8, v10, a0, v0.t
1341 %a = call <vscale x 2 x i64> @llvm.riscv.vwsll.mask.nxv2i64.nxv2i32.i32(
1342 <vscale x 2 x i64> %0,
1343 <vscale x 2 x i32> %1,
1345 <vscale x 2 x i1> %3,
1348 ret <vscale x 2 x i64> %a
1351 declare <vscale x 4 x i64> @llvm.riscv.vwsll.nxv4i64.nxv4i32(
1357 define <vscale x 4 x i64> @intrinsic_vwsll_vx_nxv4i64_nxv4i32(<vscale x 4 x i32> %0, iXLen%1, iXLen %2) nounwind {
1358 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv4i64_nxv4i32:
1359 ; CHECK: # %bb.0: # %entry
1360 ; CHECK-NEXT: vsetvli zero, a1, e32, m2, ta, ma
1361 ; CHECK-NEXT: vwsll.vx v12, v8, a0
1362 ; CHECK-NEXT: vmv4r.v v8, v12
1365 %a = call <vscale x 4 x i64> @llvm.riscv.vwsll.nxv4i64.nxv4i32(
1366 <vscale x 4 x i64> undef,
1367 <vscale x 4 x i32> %0,
1371 ret <vscale x 4 x i64> %a
1374 declare <vscale x 4 x i64> @llvm.riscv.vwsll.mask.nxv4i64.nxv4i32.i32(
1382 define <vscale x 4 x i64> @intrinsic_vwsll_mask_vx_nxv4i64_nxv4i32(<vscale x 4 x i64> %0, <vscale x 4 x i32> %1, iXLen%2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
1383 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv4i64_nxv4i32:
1384 ; CHECK: # %bb.0: # %entry
1385 ; CHECK-NEXT: vsetvli zero, a1, e32, m2, ta, mu
1386 ; CHECK-NEXT: vwsll.vx v8, v12, a0, v0.t
1389 %a = call <vscale x 4 x i64> @llvm.riscv.vwsll.mask.nxv4i64.nxv4i32.i32(
1390 <vscale x 4 x i64> %0,
1391 <vscale x 4 x i32> %1,
1393 <vscale x 4 x i1> %3,
1396 ret <vscale x 4 x i64> %a
1399 declare <vscale x 8 x i64> @llvm.riscv.vwsll.nxv8i64.nxv8i32(
1405 define <vscale x 8 x i64> @intrinsic_vwsll_vx_nxv8i64_nxv8i32(<vscale x 8 x i32> %0, iXLen%1, iXLen %2) nounwind {
1406 ; CHECK-LABEL: intrinsic_vwsll_vx_nxv8i64_nxv8i32:
1407 ; CHECK: # %bb.0: # %entry
1408 ; CHECK-NEXT: vsetvli zero, a1, e32, m4, ta, ma
1409 ; CHECK-NEXT: vwsll.vx v16, v8, a0
1410 ; CHECK-NEXT: vmv8r.v v8, v16
1413 %a = call <vscale x 8 x i64> @llvm.riscv.vwsll.nxv8i64.nxv8i32(
1414 <vscale x 8 x i64> undef,
1415 <vscale x 8 x i32> %0,
1419 ret <vscale x 8 x i64> %a
1422 declare <vscale x 8 x i64> @llvm.riscv.vwsll.mask.nxv8i64.nxv8i32.i32(
1430 define <vscale x 8 x i64> @intrinsic_vwsll_mask_vx_nxv8i64_nxv8i32(<vscale x 8 x i64> %0, <vscale x 8 x i32> %1, iXLen%2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
1431 ; CHECK-LABEL: intrinsic_vwsll_mask_vx_nxv8i64_nxv8i32:
1432 ; CHECK: # %bb.0: # %entry
1433 ; CHECK-NEXT: vsetvli zero, a1, e32, m4, ta, mu
1434 ; CHECK-NEXT: vwsll.vx v8, v16, a0, v0.t
1437 %a = call <vscale x 8 x i64> @llvm.riscv.vwsll.mask.nxv8i64.nxv8i32.i32(
1438 <vscale x 8 x i64> %0,
1439 <vscale x 8 x i32> %1,
1441 <vscale x 8 x i1> %3,
1444 ret <vscale x 8 x i64> %a
1447 define <vscale x 1 x i16> @intrinsic_vwsll_vi_nxv1i16_nxv1i8(<vscale x 1 x i8> %0, iXLen %1) nounwind {
1448 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv1i16_nxv1i8:
1449 ; CHECK: # %bb.0: # %entry
1450 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, ta, ma
1451 ; CHECK-NEXT: vwsll.vi v9, v8, 1
1452 ; CHECK-NEXT: vmv1r.v v8, v9
1455 %a = call <vscale x 1 x i16> @llvm.riscv.vwsll.nxv1i16.nxv1i8(
1456 <vscale x 1 x i16> undef,
1457 <vscale x 1 x i8> %0,
1461 ret <vscale x 1 x i16> %a
1464 define <vscale x 1 x i16> @intrinsic_vwsll_mask_vi_nxv1i16_nxv1i8(<vscale x 1 x i16> %0, <vscale x 1 x i8> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
1465 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv1i16_nxv1i8:
1466 ; CHECK: # %bb.0: # %entry
1467 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, ta, mu
1468 ; CHECK-NEXT: vwsll.vi v8, v9, 1, v0.t
1471 %a = call <vscale x 1 x i16> @llvm.riscv.vwsll.mask.nxv1i16.nxv1i8.i8(
1472 <vscale x 1 x i16> %0,
1473 <vscale x 1 x i8> %1,
1475 <vscale x 1 x i1> %2,
1478 ret <vscale x 1 x i16> %a
1481 define <vscale x 2 x i16> @intrinsic_vwsll_vi_nxv2i16_nxv2i8(<vscale x 2 x i8> %0, iXLen %1) nounwind {
1482 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv2i16_nxv2i8:
1483 ; CHECK: # %bb.0: # %entry
1484 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, ta, ma
1485 ; CHECK-NEXT: vwsll.vi v9, v8, 1
1486 ; CHECK-NEXT: vmv1r.v v8, v9
1489 %a = call <vscale x 2 x i16> @llvm.riscv.vwsll.nxv2i16.nxv2i8(
1490 <vscale x 2 x i16> undef,
1491 <vscale x 2 x i8> %0,
1495 ret <vscale x 2 x i16> %a
1498 define <vscale x 2 x i16> @intrinsic_vwsll_mask_vi_nxv2i16_nxv2i8(<vscale x 2 x i16> %0, <vscale x 2 x i8> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
1499 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv2i16_nxv2i8:
1500 ; CHECK: # %bb.0: # %entry
1501 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, ta, mu
1502 ; CHECK-NEXT: vwsll.vi v8, v9, 1, v0.t
1505 %a = call <vscale x 2 x i16> @llvm.riscv.vwsll.mask.nxv2i16.nxv2i8.i8(
1506 <vscale x 2 x i16> %0,
1507 <vscale x 2 x i8> %1,
1509 <vscale x 2 x i1> %2,
1512 ret <vscale x 2 x i16> %a
1515 define <vscale x 4 x i16> @intrinsic_vwsll_vi_nxv4i16_nxv4i8(<vscale x 4 x i8> %0, iXLen %1) nounwind {
1516 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv4i16_nxv4i8:
1517 ; CHECK: # %bb.0: # %entry
1518 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, ta, ma
1519 ; CHECK-NEXT: vwsll.vi v9, v8, 1
1520 ; CHECK-NEXT: vmv1r.v v8, v9
1523 %a = call <vscale x 4 x i16> @llvm.riscv.vwsll.nxv4i16.nxv4i8(
1524 <vscale x 4 x i16> undef,
1525 <vscale x 4 x i8> %0,
1529 ret <vscale x 4 x i16> %a
1532 define <vscale x 4 x i16> @intrinsic_vwsll_mask_vi_nxv4i16_nxv4i8(<vscale x 4 x i16> %0, <vscale x 4 x i8> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
1533 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv4i16_nxv4i8:
1534 ; CHECK: # %bb.0: # %entry
1535 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, ta, mu
1536 ; CHECK-NEXT: vwsll.vi v8, v9, 1, v0.t
1539 %a = call <vscale x 4 x i16> @llvm.riscv.vwsll.mask.nxv4i16.nxv4i8.i8(
1540 <vscale x 4 x i16> %0,
1541 <vscale x 4 x i8> %1,
1543 <vscale x 4 x i1> %2,
1546 ret <vscale x 4 x i16> %a
1549 define <vscale x 8 x i16> @intrinsic_vwsll_vi_nxv8i16_nxv8i8(<vscale x 8 x i8> %0, iXLen %1) nounwind {
1550 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv8i16_nxv8i8:
1551 ; CHECK: # %bb.0: # %entry
1552 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, ma
1553 ; CHECK-NEXT: vwsll.vi v10, v8, 1
1554 ; CHECK-NEXT: vmv2r.v v8, v10
1557 %a = call <vscale x 8 x i16> @llvm.riscv.vwsll.nxv8i16.nxv8i8(
1558 <vscale x 8 x i16> undef,
1559 <vscale x 8 x i8> %0,
1563 ret <vscale x 8 x i16> %a
1566 define <vscale x 8 x i16> @intrinsic_vwsll_mask_vi_nxv8i16_nxv8i8(<vscale x 8 x i16> %0, <vscale x 8 x i8> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
1567 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv8i16_nxv8i8:
1568 ; CHECK: # %bb.0: # %entry
1569 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, mu
1570 ; CHECK-NEXT: vwsll.vi v8, v10, 1, v0.t
1573 %a = call <vscale x 8 x i16> @llvm.riscv.vwsll.mask.nxv8i16.nxv8i8.i8(
1574 <vscale x 8 x i16> %0,
1575 <vscale x 8 x i8> %1,
1577 <vscale x 8 x i1> %2,
1580 ret <vscale x 8 x i16> %a
1583 define <vscale x 16 x i16> @intrinsic_vwsll_vi_nxv16i16_nxv16i8(<vscale x 16 x i8> %0, iXLen %1) nounwind {
1584 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv16i16_nxv16i8:
1585 ; CHECK: # %bb.0: # %entry
1586 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, ta, ma
1587 ; CHECK-NEXT: vwsll.vi v12, v8, 1
1588 ; CHECK-NEXT: vmv4r.v v8, v12
1591 %a = call <vscale x 16 x i16> @llvm.riscv.vwsll.nxv16i16.nxv16i8(
1592 <vscale x 16 x i16> undef,
1593 <vscale x 16 x i8> %0,
1597 ret <vscale x 16 x i16> %a
1600 define <vscale x 16 x i16> @intrinsic_vwsll_mask_vi_nxv16i16_nxv16i8(<vscale x 16 x i16> %0, <vscale x 16 x i8> %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
1601 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv16i16_nxv16i8:
1602 ; CHECK: # %bb.0: # %entry
1603 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, ta, mu
1604 ; CHECK-NEXT: vwsll.vi v8, v12, 1, v0.t
1607 %a = call <vscale x 16 x i16> @llvm.riscv.vwsll.mask.nxv16i16.nxv16i8.i8(
1608 <vscale x 16 x i16> %0,
1609 <vscale x 16 x i8> %1,
1611 <vscale x 16 x i1> %2,
1614 ret <vscale x 16 x i16> %a
1617 define <vscale x 32 x i16> @intrinsic_vwsll_vi_nxv32i16_nxv32i8(<vscale x 32 x i8> %0, iXLen %1) nounwind {
1618 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv32i16_nxv32i8:
1619 ; CHECK: # %bb.0: # %entry
1620 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, ta, ma
1621 ; CHECK-NEXT: vwsll.vi v16, v8, 1
1622 ; CHECK-NEXT: vmv8r.v v8, v16
1625 %a = call <vscale x 32 x i16> @llvm.riscv.vwsll.nxv32i16.nxv32i8(
1626 <vscale x 32 x i16> undef,
1627 <vscale x 32 x i8> %0,
1631 ret <vscale x 32 x i16> %a
1634 define <vscale x 32 x i16> @intrinsic_vwsll_mask_vi_nxv32i16_nxv32i8(<vscale x 32 x i16> %0, <vscale x 32 x i8> %1, <vscale x 32 x i1> %2, iXLen %3) nounwind {
1635 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv32i16_nxv32i8:
1636 ; CHECK: # %bb.0: # %entry
1637 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, ta, mu
1638 ; CHECK-NEXT: vwsll.vi v8, v16, 1, v0.t
1641 %a = call <vscale x 32 x i16> @llvm.riscv.vwsll.mask.nxv32i16.nxv32i8.i8(
1642 <vscale x 32 x i16> %0,
1643 <vscale x 32 x i8> %1,
1645 <vscale x 32 x i1> %2,
1648 ret <vscale x 32 x i16> %a
1651 define <vscale x 1 x i32> @intrinsic_vwsll_vi_nxv1i32_nxv1i16(<vscale x 1 x i16> %0, iXLen %1) nounwind {
1652 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv1i32_nxv1i16:
1653 ; CHECK: # %bb.0: # %entry
1654 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, ma
1655 ; CHECK-NEXT: vwsll.vi v9, v8, 1
1656 ; CHECK-NEXT: vmv1r.v v8, v9
1659 %a = call <vscale x 1 x i32> @llvm.riscv.vwsll.nxv1i32.nxv1i16(
1660 <vscale x 1 x i32> undef,
1661 <vscale x 1 x i16> %0,
1665 ret <vscale x 1 x i32> %a
1668 define <vscale x 1 x i32> @intrinsic_vwsll_mask_vi_nxv1i32_nxv1i16(<vscale x 1 x i32> %0, <vscale x 1 x i16> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
1669 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv1i32_nxv1i16:
1670 ; CHECK: # %bb.0: # %entry
1671 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, mu
1672 ; CHECK-NEXT: vwsll.vi v8, v9, 1, v0.t
1675 %a = call <vscale x 1 x i32> @llvm.riscv.vwsll.mask.nxv1i32.nxv1i16.i16(
1676 <vscale x 1 x i32> %0,
1677 <vscale x 1 x i16> %1,
1679 <vscale x 1 x i1> %2,
1682 ret <vscale x 1 x i32> %a
1685 define <vscale x 2 x i32> @intrinsic_vwsll_vi_nxv2i32_nxv2i16(<vscale x 2 x i16> %0, iXLen %1) nounwind {
1686 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv2i32_nxv2i16:
1687 ; CHECK: # %bb.0: # %entry
1688 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
1689 ; CHECK-NEXT: vwsll.vi v9, v8, 1
1690 ; CHECK-NEXT: vmv1r.v v8, v9
1693 %a = call <vscale x 2 x i32> @llvm.riscv.vwsll.nxv2i32.nxv2i16(
1694 <vscale x 2 x i32> undef,
1695 <vscale x 2 x i16> %0,
1699 ret <vscale x 2 x i32> %a
1702 define <vscale x 2 x i32> @intrinsic_vwsll_mask_vi_nxv2i32_nxv2i16(<vscale x 2 x i32> %0, <vscale x 2 x i16> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
1703 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv2i32_nxv2i16:
1704 ; CHECK: # %bb.0: # %entry
1705 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, mu
1706 ; CHECK-NEXT: vwsll.vi v8, v9, 1, v0.t
1709 %a = call <vscale x 2 x i32> @llvm.riscv.vwsll.mask.nxv2i32.nxv2i16.i16(
1710 <vscale x 2 x i32> %0,
1711 <vscale x 2 x i16> %1,
1713 <vscale x 2 x i1> %2,
1716 ret <vscale x 2 x i32> %a
1719 define <vscale x 4 x i32> @intrinsic_vwsll_vi_nxv4i32_nxv4i16(<vscale x 4 x i16> %0, iXLen %1) nounwind {
1720 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv4i32_nxv4i16:
1721 ; CHECK: # %bb.0: # %entry
1722 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, ma
1723 ; CHECK-NEXT: vwsll.vi v10, v8, 1
1724 ; CHECK-NEXT: vmv2r.v v8, v10
1727 %a = call <vscale x 4 x i32> @llvm.riscv.vwsll.nxv4i32.nxv4i16(
1728 <vscale x 4 x i32> undef,
1729 <vscale x 4 x i16> %0,
1733 ret <vscale x 4 x i32> %a
1736 define <vscale x 4 x i32> @intrinsic_vwsll_mask_vi_nxv4i32_nxv4i16(<vscale x 4 x i32> %0, <vscale x 4 x i16> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
1737 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv4i32_nxv4i16:
1738 ; CHECK: # %bb.0: # %entry
1739 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, mu
1740 ; CHECK-NEXT: vwsll.vi v8, v10, 1, v0.t
1743 %a = call <vscale x 4 x i32> @llvm.riscv.vwsll.mask.nxv4i32.nxv4i16.i16(
1744 <vscale x 4 x i32> %0,
1745 <vscale x 4 x i16> %1,
1747 <vscale x 4 x i1> %2,
1750 ret <vscale x 4 x i32> %a
1753 define <vscale x 8 x i32> @intrinsic_vwsll_vi_nxv8i32_nxv8i16(<vscale x 8 x i16> %0, iXLen %1) nounwind {
1754 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv8i32_nxv8i16:
1755 ; CHECK: # %bb.0: # %entry
1756 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, ma
1757 ; CHECK-NEXT: vwsll.vi v12, v8, 1
1758 ; CHECK-NEXT: vmv4r.v v8, v12
1761 %a = call <vscale x 8 x i32> @llvm.riscv.vwsll.nxv8i32.nxv8i16(
1762 <vscale x 8 x i32> undef,
1763 <vscale x 8 x i16> %0,
1767 ret <vscale x 8 x i32> %a
1770 define <vscale x 8 x i32> @intrinsic_vwsll_mask_vi_nxv8i32_nxv8i16(<vscale x 8 x i32> %0, <vscale x 8 x i16> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
1771 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv8i32_nxv8i16:
1772 ; CHECK: # %bb.0: # %entry
1773 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, mu
1774 ; CHECK-NEXT: vwsll.vi v8, v12, 1, v0.t
1777 %a = call <vscale x 8 x i32> @llvm.riscv.vwsll.mask.nxv8i32.nxv8i16.i16(
1778 <vscale x 8 x i32> %0,
1779 <vscale x 8 x i16> %1,
1781 <vscale x 8 x i1> %2,
1784 ret <vscale x 8 x i32> %a
1787 define <vscale x 16 x i32> @intrinsic_vwsll_vi_nxv16i32_nxv16i16(<vscale x 16 x i16> %0, iXLen %1) nounwind {
1788 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv16i32_nxv16i16:
1789 ; CHECK: # %bb.0: # %entry
1790 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, ma
1791 ; CHECK-NEXT: vwsll.vi v16, v8, 1
1792 ; CHECK-NEXT: vmv8r.v v8, v16
1795 %a = call <vscale x 16 x i32> @llvm.riscv.vwsll.nxv16i32.nxv16i16(
1796 <vscale x 16 x i32> undef,
1797 <vscale x 16 x i16> %0,
1801 ret <vscale x 16 x i32> %a
1804 define <vscale x 16 x i32> @intrinsic_vwsll_mask_vi_nxv16i32_nxv16i16(<vscale x 16 x i32> %0, <vscale x 16 x i16> %1, <vscale x 16 x i1> %2, iXLen %3) nounwind {
1805 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv16i32_nxv16i16:
1806 ; CHECK: # %bb.0: # %entry
1807 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, mu
1808 ; CHECK-NEXT: vwsll.vi v8, v16, 1, v0.t
1811 %a = call <vscale x 16 x i32> @llvm.riscv.vwsll.mask.nxv16i32.nxv16i16.i16(
1812 <vscale x 16 x i32> %0,
1813 <vscale x 16 x i16> %1,
1815 <vscale x 16 x i1> %2,
1818 ret <vscale x 16 x i32> %a
1821 define <vscale x 1 x i64> @intrinsic_vwsll_vi_nxv1i64_nxv1i32(<vscale x 1 x i32> %0, iXLen %1) nounwind {
1822 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv1i64_nxv1i32:
1823 ; CHECK: # %bb.0: # %entry
1824 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, ma
1825 ; CHECK-NEXT: vwsll.vi v9, v8, 1
1826 ; CHECK-NEXT: vmv1r.v v8, v9
1829 %a = call <vscale x 1 x i64> @llvm.riscv.vwsll.nxv1i64.nxv1i32(
1830 <vscale x 1 x i64> undef,
1831 <vscale x 1 x i32> %0,
1835 ret <vscale x 1 x i64> %a
1838 define <vscale x 1 x i64> @intrinsic_vwsll_mask_vi_nxv1i64_nxv1i32(<vscale x 1 x i64> %0, <vscale x 1 x i32> %1, <vscale x 1 x i1> %2, iXLen %3) nounwind {
1839 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv1i64_nxv1i32:
1840 ; CHECK: # %bb.0: # %entry
1841 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, mu
1842 ; CHECK-NEXT: vwsll.vi v8, v9, 1, v0.t
1845 %a = call <vscale x 1 x i64> @llvm.riscv.vwsll.mask.nxv1i64.nxv1i32.i32(
1846 <vscale x 1 x i64> %0,
1847 <vscale x 1 x i32> %1,
1849 <vscale x 1 x i1> %2,
1852 ret <vscale x 1 x i64> %a
1855 define <vscale x 2 x i64> @intrinsic_vwsll_vi_nxv2i64_nxv2i32(<vscale x 2 x i32> %0, iXLen %1) nounwind {
1856 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv2i64_nxv2i32:
1857 ; CHECK: # %bb.0: # %entry
1858 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
1859 ; CHECK-NEXT: vwsll.vi v10, v8, 1
1860 ; CHECK-NEXT: vmv2r.v v8, v10
1863 %a = call <vscale x 2 x i64> @llvm.riscv.vwsll.nxv2i64.nxv2i32(
1864 <vscale x 2 x i64> undef,
1865 <vscale x 2 x i32> %0,
1869 ret <vscale x 2 x i64> %a
1872 define <vscale x 2 x i64> @intrinsic_vwsll_mask_vi_nxv2i64_nxv2i32(<vscale x 2 x i64> %0, <vscale x 2 x i32> %1, <vscale x 2 x i1> %2, iXLen %3) nounwind {
1873 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv2i64_nxv2i32:
1874 ; CHECK: # %bb.0: # %entry
1875 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, mu
1876 ; CHECK-NEXT: vwsll.vi v8, v10, 1, v0.t
1879 %a = call <vscale x 2 x i64> @llvm.riscv.vwsll.mask.nxv2i64.nxv2i32.i32(
1880 <vscale x 2 x i64> %0,
1881 <vscale x 2 x i32> %1,
1883 <vscale x 2 x i1> %2,
1886 ret <vscale x 2 x i64> %a
1889 define <vscale x 4 x i64> @intrinsic_vwsll_vi_nxv4i64_nxv4i32(<vscale x 4 x i32> %0, iXLen %1) nounwind {
1890 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv4i64_nxv4i32:
1891 ; CHECK: # %bb.0: # %entry
1892 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
1893 ; CHECK-NEXT: vwsll.vi v12, v8, 1
1894 ; CHECK-NEXT: vmv4r.v v8, v12
1897 %a = call <vscale x 4 x i64> @llvm.riscv.vwsll.nxv4i64.nxv4i32(
1898 <vscale x 4 x i64> undef,
1899 <vscale x 4 x i32> %0,
1903 ret <vscale x 4 x i64> %a
1906 define <vscale x 4 x i64> @intrinsic_vwsll_mask_vi_nxv4i64_nxv4i32(<vscale x 4 x i64> %0, <vscale x 4 x i32> %1, <vscale x 4 x i1> %2, iXLen %3) nounwind {
1907 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv4i64_nxv4i32:
1908 ; CHECK: # %bb.0: # %entry
1909 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, mu
1910 ; CHECK-NEXT: vwsll.vi v8, v12, 1, v0.t
1913 %a = call <vscale x 4 x i64> @llvm.riscv.vwsll.mask.nxv4i64.nxv4i32.i32(
1914 <vscale x 4 x i64> %0,
1915 <vscale x 4 x i32> %1,
1917 <vscale x 4 x i1> %2,
1920 ret <vscale x 4 x i64> %a
1923 define <vscale x 8 x i64> @intrinsic_vwsll_vi_nxv8i64_nxv8i32(<vscale x 8 x i32> %0, iXLen %1) nounwind {
1924 ; CHECK-LABEL: intrinsic_vwsll_vi_nxv8i64_nxv8i32:
1925 ; CHECK: # %bb.0: # %entry
1926 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
1927 ; CHECK-NEXT: vwsll.vi v16, v8, 1
1928 ; CHECK-NEXT: vmv8r.v v8, v16
1931 %a = call <vscale x 8 x i64> @llvm.riscv.vwsll.nxv8i64.nxv8i32(
1932 <vscale x 8 x i64> undef,
1933 <vscale x 8 x i32> %0,
1937 ret <vscale x 8 x i64> %a
1940 define <vscale x 8 x i64> @intrinsic_vwsll_mask_vi_nxv8i64_nxv8i32(<vscale x 8 x i64> %0, <vscale x 8 x i32> %1, <vscale x 8 x i1> %2, iXLen %3) nounwind {
1941 ; CHECK-LABEL: intrinsic_vwsll_mask_vi_nxv8i64_nxv8i32:
1942 ; CHECK: # %bb.0: # %entry
1943 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, mu
1944 ; CHECK-NEXT: vwsll.vi v8, v16, 1, v0.t
1947 %a = call <vscale x 8 x i64> @llvm.riscv.vwsll.mask.nxv8i64.nxv8i32.i32(
1948 <vscale x 8 x i64> %0,
1949 <vscale x 8 x i32> %1,
1951 <vscale x 8 x i1> %2,
1954 ret <vscale x 8 x i64> %a