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 \
3 ; RUN: -verify-machineinstrs | FileCheck %s
4 ; RUN: sed 's/iXLen/i64/g' %s | llc -mtriple=riscv64 -mattr=+v \
5 ; RUN: -verify-machineinstrs | FileCheck %s
7 declare <vscale x 1 x i16> @llvm.riscv.vwsub.nxv1i16.nxv1i8.nxv1i8(
13 define <vscale x 1 x i16> @intrinsic_vwsub_vv_nxv1i16_nxv1i8_nxv1i8(<vscale x 1 x i8> %0, <vscale x 1 x i8> %1, iXLen %2) nounwind {
14 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv1i16_nxv1i8_nxv1i8:
15 ; CHECK: # %bb.0: # %entry
16 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, ta, ma
17 ; CHECK-NEXT: vwsub.vv v10, v8, v9
18 ; CHECK-NEXT: vmv1r.v v8, v10
21 %a = call <vscale x 1 x i16> @llvm.riscv.vwsub.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.vwsub.mask.nxv1i16.nxv1i8.nxv1i8(
38 define <vscale x 1 x i16> @intrinsic_vwsub_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_vwsub_mask_vv_nxv1i16_nxv1i8_nxv1i8:
40 ; CHECK: # %bb.0: # %entry
41 ; CHECK-NEXT: vsetvli zero, a0, e8, mf8, ta, mu
42 ; CHECK-NEXT: vwsub.vv v8, v9, v10, v0.t
45 %a = call <vscale x 1 x i16> @llvm.riscv.vwsub.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.vwsub.nxv2i16.nxv2i8.nxv2i8(
61 define <vscale x 2 x i16> @intrinsic_vwsub_vv_nxv2i16_nxv2i8_nxv2i8(<vscale x 2 x i8> %0, <vscale x 2 x i8> %1, iXLen %2) nounwind {
62 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv2i16_nxv2i8_nxv2i8:
63 ; CHECK: # %bb.0: # %entry
64 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, ta, ma
65 ; CHECK-NEXT: vwsub.vv v10, v8, v9
66 ; CHECK-NEXT: vmv1r.v v8, v10
69 %a = call <vscale x 2 x i16> @llvm.riscv.vwsub.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.vwsub.mask.nxv2i16.nxv2i8.nxv2i8(
86 define <vscale x 2 x i16> @intrinsic_vwsub_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_vwsub_mask_vv_nxv2i16_nxv2i8_nxv2i8:
88 ; CHECK: # %bb.0: # %entry
89 ; CHECK-NEXT: vsetvli zero, a0, e8, mf4, ta, mu
90 ; CHECK-NEXT: vwsub.vv v8, v9, v10, v0.t
93 %a = call <vscale x 2 x i16> @llvm.riscv.vwsub.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.vwsub.nxv4i16.nxv4i8.nxv4i8(
109 define <vscale x 4 x i16> @intrinsic_vwsub_vv_nxv4i16_nxv4i8_nxv4i8(<vscale x 4 x i8> %0, <vscale x 4 x i8> %1, iXLen %2) nounwind {
110 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv4i16_nxv4i8_nxv4i8:
111 ; CHECK: # %bb.0: # %entry
112 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, ta, ma
113 ; CHECK-NEXT: vwsub.vv v10, v8, v9
114 ; CHECK-NEXT: vmv1r.v v8, v10
117 %a = call <vscale x 4 x i16> @llvm.riscv.vwsub.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.vwsub.mask.nxv4i16.nxv4i8.nxv4i8(
134 define <vscale x 4 x i16> @intrinsic_vwsub_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_vwsub_mask_vv_nxv4i16_nxv4i8_nxv4i8:
136 ; CHECK: # %bb.0: # %entry
137 ; CHECK-NEXT: vsetvli zero, a0, e8, mf2, ta, mu
138 ; CHECK-NEXT: vwsub.vv v8, v9, v10, v0.t
141 %a = call <vscale x 4 x i16> @llvm.riscv.vwsub.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.vwsub.nxv8i16.nxv8i8.nxv8i8(
157 define <vscale x 8 x i16> @intrinsic_vwsub_vv_nxv8i16_nxv8i8_nxv8i8(<vscale x 8 x i8> %0, <vscale x 8 x i8> %1, iXLen %2) nounwind {
158 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv8i16_nxv8i8_nxv8i8:
159 ; CHECK: # %bb.0: # %entry
160 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, ma
161 ; CHECK-NEXT: vwsub.vv v10, v8, v9
162 ; CHECK-NEXT: vmv2r.v v8, v10
165 %a = call <vscale x 8 x i16> @llvm.riscv.vwsub.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.vwsub.mask.nxv8i16.nxv8i8.nxv8i8(
182 define <vscale x 8 x i16> @intrinsic_vwsub_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_vwsub_mask_vv_nxv8i16_nxv8i8_nxv8i8:
184 ; CHECK: # %bb.0: # %entry
185 ; CHECK-NEXT: vsetvli zero, a0, e8, m1, ta, mu
186 ; CHECK-NEXT: vwsub.vv v8, v10, v11, v0.t
189 %a = call <vscale x 8 x i16> @llvm.riscv.vwsub.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.vwsub.nxv16i16.nxv16i8.nxv16i8(
205 define <vscale x 16 x i16> @intrinsic_vwsub_vv_nxv16i16_nxv16i8_nxv16i8(<vscale x 16 x i8> %0, <vscale x 16 x i8> %1, iXLen %2) nounwind {
206 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv16i16_nxv16i8_nxv16i8:
207 ; CHECK: # %bb.0: # %entry
208 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, ta, ma
209 ; CHECK-NEXT: vwsub.vv v12, v8, v10
210 ; CHECK-NEXT: vmv4r.v v8, v12
213 %a = call <vscale x 16 x i16> @llvm.riscv.vwsub.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.vwsub.mask.nxv16i16.nxv16i8.nxv16i8(
230 define <vscale x 16 x i16> @intrinsic_vwsub_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_vwsub_mask_vv_nxv16i16_nxv16i8_nxv16i8:
232 ; CHECK: # %bb.0: # %entry
233 ; CHECK-NEXT: vsetvli zero, a0, e8, m2, ta, mu
234 ; CHECK-NEXT: vwsub.vv v8, v12, v14, v0.t
237 %a = call <vscale x 16 x i16> @llvm.riscv.vwsub.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.vwsub.nxv32i16.nxv32i8.nxv32i8(
253 define <vscale x 32 x i16> @intrinsic_vwsub_vv_nxv32i16_nxv32i8_nxv32i8(<vscale x 32 x i8> %0, <vscale x 32 x i8> %1, iXLen %2) nounwind {
254 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv32i16_nxv32i8_nxv32i8:
255 ; CHECK: # %bb.0: # %entry
256 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, ta, ma
257 ; CHECK-NEXT: vwsub.vv v16, v8, v12
258 ; CHECK-NEXT: vmv8r.v v8, v16
261 %a = call <vscale x 32 x i16> @llvm.riscv.vwsub.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.vwsub.mask.nxv32i16.nxv32i8.nxv32i8(
278 define <vscale x 32 x i16> @intrinsic_vwsub_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_vwsub_mask_vv_nxv32i16_nxv32i8_nxv32i8:
280 ; CHECK: # %bb.0: # %entry
281 ; CHECK-NEXT: vsetvli zero, a0, e8, m4, ta, mu
282 ; CHECK-NEXT: vwsub.vv v8, v16, v20, v0.t
285 %a = call <vscale x 32 x i16> @llvm.riscv.vwsub.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.vwsub.nxv1i32.nxv1i16.nxv1i16(
301 define <vscale x 1 x i32> @intrinsic_vwsub_vv_nxv1i32_nxv1i16_nxv1i16(<vscale x 1 x i16> %0, <vscale x 1 x i16> %1, iXLen %2) nounwind {
302 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv1i32_nxv1i16_nxv1i16:
303 ; CHECK: # %bb.0: # %entry
304 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, ma
305 ; CHECK-NEXT: vwsub.vv v10, v8, v9
306 ; CHECK-NEXT: vmv1r.v v8, v10
309 %a = call <vscale x 1 x i32> @llvm.riscv.vwsub.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.vwsub.mask.nxv1i32.nxv1i16.nxv1i16(
326 define <vscale x 1 x i32> @intrinsic_vwsub_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_vwsub_mask_vv_nxv1i32_nxv1i16_nxv1i16:
328 ; CHECK: # %bb.0: # %entry
329 ; CHECK-NEXT: vsetvli zero, a0, e16, mf4, ta, mu
330 ; CHECK-NEXT: vwsub.vv v8, v9, v10, v0.t
333 %a = call <vscale x 1 x i32> @llvm.riscv.vwsub.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.vwsub.nxv2i32.nxv2i16.nxv2i16(
349 define <vscale x 2 x i32> @intrinsic_vwsub_vv_nxv2i32_nxv2i16_nxv2i16(<vscale x 2 x i16> %0, <vscale x 2 x i16> %1, iXLen %2) nounwind {
350 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv2i32_nxv2i16_nxv2i16:
351 ; CHECK: # %bb.0: # %entry
352 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, ma
353 ; CHECK-NEXT: vwsub.vv v10, v8, v9
354 ; CHECK-NEXT: vmv1r.v v8, v10
357 %a = call <vscale x 2 x i32> @llvm.riscv.vwsub.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.vwsub.mask.nxv2i32.nxv2i16.nxv2i16(
374 define <vscale x 2 x i32> @intrinsic_vwsub_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_vwsub_mask_vv_nxv2i32_nxv2i16_nxv2i16:
376 ; CHECK: # %bb.0: # %entry
377 ; CHECK-NEXT: vsetvli zero, a0, e16, mf2, ta, mu
378 ; CHECK-NEXT: vwsub.vv v8, v9, v10, v0.t
381 %a = call <vscale x 2 x i32> @llvm.riscv.vwsub.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.vwsub.nxv4i32.nxv4i16.nxv4i16(
397 define <vscale x 4 x i32> @intrinsic_vwsub_vv_nxv4i32_nxv4i16_nxv4i16(<vscale x 4 x i16> %0, <vscale x 4 x i16> %1, iXLen %2) nounwind {
398 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv4i32_nxv4i16_nxv4i16:
399 ; CHECK: # %bb.0: # %entry
400 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, ma
401 ; CHECK-NEXT: vwsub.vv v10, v8, v9
402 ; CHECK-NEXT: vmv2r.v v8, v10
405 %a = call <vscale x 4 x i32> @llvm.riscv.vwsub.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.vwsub.mask.nxv4i32.nxv4i16.nxv4i16(
422 define <vscale x 4 x i32> @intrinsic_vwsub_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_vwsub_mask_vv_nxv4i32_nxv4i16_nxv4i16:
424 ; CHECK: # %bb.0: # %entry
425 ; CHECK-NEXT: vsetvli zero, a0, e16, m1, ta, mu
426 ; CHECK-NEXT: vwsub.vv v8, v10, v11, v0.t
429 %a = call <vscale x 4 x i32> @llvm.riscv.vwsub.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.vwsub.nxv8i32.nxv8i16.nxv8i16(
445 define <vscale x 8 x i32> @intrinsic_vwsub_vv_nxv8i32_nxv8i16_nxv8i16(<vscale x 8 x i16> %0, <vscale x 8 x i16> %1, iXLen %2) nounwind {
446 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv8i32_nxv8i16_nxv8i16:
447 ; CHECK: # %bb.0: # %entry
448 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, ma
449 ; CHECK-NEXT: vwsub.vv v12, v8, v10
450 ; CHECK-NEXT: vmv4r.v v8, v12
453 %a = call <vscale x 8 x i32> @llvm.riscv.vwsub.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.vwsub.mask.nxv8i32.nxv8i16.nxv8i16(
470 define <vscale x 8 x i32> @intrinsic_vwsub_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_vwsub_mask_vv_nxv8i32_nxv8i16_nxv8i16:
472 ; CHECK: # %bb.0: # %entry
473 ; CHECK-NEXT: vsetvli zero, a0, e16, m2, ta, mu
474 ; CHECK-NEXT: vwsub.vv v8, v12, v14, v0.t
477 %a = call <vscale x 8 x i32> @llvm.riscv.vwsub.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.vwsub.nxv16i32.nxv16i16.nxv16i16(
493 define <vscale x 16 x i32> @intrinsic_vwsub_vv_nxv16i32_nxv16i16_nxv16i16(<vscale x 16 x i16> %0, <vscale x 16 x i16> %1, iXLen %2) nounwind {
494 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv16i32_nxv16i16_nxv16i16:
495 ; CHECK: # %bb.0: # %entry
496 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, ma
497 ; CHECK-NEXT: vwsub.vv v16, v8, v12
498 ; CHECK-NEXT: vmv8r.v v8, v16
501 %a = call <vscale x 16 x i32> @llvm.riscv.vwsub.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.vwsub.mask.nxv16i32.nxv16i16.nxv16i16(
518 define <vscale x 16 x i32> @intrinsic_vwsub_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_vwsub_mask_vv_nxv16i32_nxv16i16_nxv16i16:
520 ; CHECK: # %bb.0: # %entry
521 ; CHECK-NEXT: vsetvli zero, a0, e16, m4, ta, mu
522 ; CHECK-NEXT: vwsub.vv v8, v16, v20, v0.t
525 %a = call <vscale x 16 x i32> @llvm.riscv.vwsub.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.vwsub.nxv1i64.nxv1i32.nxv1i32(
541 define <vscale x 1 x i64> @intrinsic_vwsub_vv_nxv1i64_nxv1i32_nxv1i32(<vscale x 1 x i32> %0, <vscale x 1 x i32> %1, iXLen %2) nounwind {
542 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv1i64_nxv1i32_nxv1i32:
543 ; CHECK: # %bb.0: # %entry
544 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, ma
545 ; CHECK-NEXT: vwsub.vv v10, v8, v9
546 ; CHECK-NEXT: vmv1r.v v8, v10
549 %a = call <vscale x 1 x i64> @llvm.riscv.vwsub.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.vwsub.mask.nxv1i64.nxv1i32.nxv1i32(
566 define <vscale x 1 x i64> @intrinsic_vwsub_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_vwsub_mask_vv_nxv1i64_nxv1i32_nxv1i32:
568 ; CHECK: # %bb.0: # %entry
569 ; CHECK-NEXT: vsetvli zero, a0, e32, mf2, ta, mu
570 ; CHECK-NEXT: vwsub.vv v8, v9, v10, v0.t
573 %a = call <vscale x 1 x i64> @llvm.riscv.vwsub.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.vwsub.nxv2i64.nxv2i32.nxv2i32(
589 define <vscale x 2 x i64> @intrinsic_vwsub_vv_nxv2i64_nxv2i32_nxv2i32(<vscale x 2 x i32> %0, <vscale x 2 x i32> %1, iXLen %2) nounwind {
590 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv2i64_nxv2i32_nxv2i32:
591 ; CHECK: # %bb.0: # %entry
592 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, ma
593 ; CHECK-NEXT: vwsub.vv v10, v8, v9
594 ; CHECK-NEXT: vmv2r.v v8, v10
597 %a = call <vscale x 2 x i64> @llvm.riscv.vwsub.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.vwsub.mask.nxv2i64.nxv2i32.nxv2i32(
614 define <vscale x 2 x i64> @intrinsic_vwsub_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_vwsub_mask_vv_nxv2i64_nxv2i32_nxv2i32:
616 ; CHECK: # %bb.0: # %entry
617 ; CHECK-NEXT: vsetvli zero, a0, e32, m1, ta, mu
618 ; CHECK-NEXT: vwsub.vv v8, v10, v11, v0.t
621 %a = call <vscale x 2 x i64> @llvm.riscv.vwsub.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.vwsub.nxv4i64.nxv4i32.nxv4i32(
637 define <vscale x 4 x i64> @intrinsic_vwsub_vv_nxv4i64_nxv4i32_nxv4i32(<vscale x 4 x i32> %0, <vscale x 4 x i32> %1, iXLen %2) nounwind {
638 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv4i64_nxv4i32_nxv4i32:
639 ; CHECK: # %bb.0: # %entry
640 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, ma
641 ; CHECK-NEXT: vwsub.vv v12, v8, v10
642 ; CHECK-NEXT: vmv4r.v v8, v12
645 %a = call <vscale x 4 x i64> @llvm.riscv.vwsub.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.vwsub.mask.nxv4i64.nxv4i32.nxv4i32(
662 define <vscale x 4 x i64> @intrinsic_vwsub_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_vwsub_mask_vv_nxv4i64_nxv4i32_nxv4i32:
664 ; CHECK: # %bb.0: # %entry
665 ; CHECK-NEXT: vsetvli zero, a0, e32, m2, ta, mu
666 ; CHECK-NEXT: vwsub.vv v8, v12, v14, v0.t
669 %a = call <vscale x 4 x i64> @llvm.riscv.vwsub.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.vwsub.nxv8i64.nxv8i32.nxv8i32(
685 define <vscale x 8 x i64> @intrinsic_vwsub_vv_nxv8i64_nxv8i32_nxv8i32(<vscale x 8 x i32> %0, <vscale x 8 x i32> %1, iXLen %2) nounwind {
686 ; CHECK-LABEL: intrinsic_vwsub_vv_nxv8i64_nxv8i32_nxv8i32:
687 ; CHECK: # %bb.0: # %entry
688 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, ma
689 ; CHECK-NEXT: vwsub.vv v16, v8, v12
690 ; CHECK-NEXT: vmv8r.v v8, v16
693 %a = call <vscale x 8 x i64> @llvm.riscv.vwsub.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.vwsub.mask.nxv8i64.nxv8i32.nxv8i32(
710 define <vscale x 8 x i64> @intrinsic_vwsub_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_vwsub_mask_vv_nxv8i64_nxv8i32_nxv8i32:
712 ; CHECK: # %bb.0: # %entry
713 ; CHECK-NEXT: vsetvli zero, a0, e32, m4, ta, mu
714 ; CHECK-NEXT: vwsub.vv v8, v16, v20, v0.t
717 %a = call <vscale x 8 x i64> @llvm.riscv.vwsub.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.vwsub.nxv1i16.nxv1i8.i8(
733 define <vscale x 1 x i16> @intrinsic_vwsub_vx_nxv1i16_nxv1i8_i8(<vscale x 1 x i8> %0, i8 %1, iXLen %2) nounwind {
734 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv1i16_nxv1i8_i8:
735 ; CHECK: # %bb.0: # %entry
736 ; CHECK-NEXT: vsetvli zero, a1, e8, mf8, ta, ma
737 ; CHECK-NEXT: vwsub.vx v9, v8, a0
738 ; CHECK-NEXT: vmv1r.v v8, v9
741 %a = call <vscale x 1 x i16> @llvm.riscv.vwsub.nxv1i16.nxv1i8.i8(
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.vwsub.mask.nxv1i16.nxv1i8.i8(
758 define <vscale x 1 x i16> @intrinsic_vwsub_mask_vx_nxv1i16_nxv1i8_i8(<vscale x 1 x i16> %0, <vscale x 1 x i8> %1, i8 %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
759 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv1i16_nxv1i8_i8:
760 ; CHECK: # %bb.0: # %entry
761 ; CHECK-NEXT: vsetvli zero, a1, e8, mf8, ta, mu
762 ; CHECK-NEXT: vwsub.vx v8, v9, a0, v0.t
765 %a = call <vscale x 1 x i16> @llvm.riscv.vwsub.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.vwsub.nxv2i16.nxv2i8.i8(
781 define <vscale x 2 x i16> @intrinsic_vwsub_vx_nxv2i16_nxv2i8_i8(<vscale x 2 x i8> %0, i8 %1, iXLen %2) nounwind {
782 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv2i16_nxv2i8_i8:
783 ; CHECK: # %bb.0: # %entry
784 ; CHECK-NEXT: vsetvli zero, a1, e8, mf4, ta, ma
785 ; CHECK-NEXT: vwsub.vx v9, v8, a0
786 ; CHECK-NEXT: vmv1r.v v8, v9
789 %a = call <vscale x 2 x i16> @llvm.riscv.vwsub.nxv2i16.nxv2i8.i8(
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.vwsub.mask.nxv2i16.nxv2i8.i8(
806 define <vscale x 2 x i16> @intrinsic_vwsub_mask_vx_nxv2i16_nxv2i8_i8(<vscale x 2 x i16> %0, <vscale x 2 x i8> %1, i8 %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
807 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv2i16_nxv2i8_i8:
808 ; CHECK: # %bb.0: # %entry
809 ; CHECK-NEXT: vsetvli zero, a1, e8, mf4, ta, mu
810 ; CHECK-NEXT: vwsub.vx v8, v9, a0, v0.t
813 %a = call <vscale x 2 x i16> @llvm.riscv.vwsub.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.vwsub.nxv4i16.nxv4i8.i8(
829 define <vscale x 4 x i16> @intrinsic_vwsub_vx_nxv4i16_nxv4i8_i8(<vscale x 4 x i8> %0, i8 %1, iXLen %2) nounwind {
830 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv4i16_nxv4i8_i8:
831 ; CHECK: # %bb.0: # %entry
832 ; CHECK-NEXT: vsetvli zero, a1, e8, mf2, ta, ma
833 ; CHECK-NEXT: vwsub.vx v9, v8, a0
834 ; CHECK-NEXT: vmv1r.v v8, v9
837 %a = call <vscale x 4 x i16> @llvm.riscv.vwsub.nxv4i16.nxv4i8.i8(
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.vwsub.mask.nxv4i16.nxv4i8.i8(
854 define <vscale x 4 x i16> @intrinsic_vwsub_mask_vx_nxv4i16_nxv4i8_i8(<vscale x 4 x i16> %0, <vscale x 4 x i8> %1, i8 %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
855 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv4i16_nxv4i8_i8:
856 ; CHECK: # %bb.0: # %entry
857 ; CHECK-NEXT: vsetvli zero, a1, e8, mf2, ta, mu
858 ; CHECK-NEXT: vwsub.vx v8, v9, a0, v0.t
861 %a = call <vscale x 4 x i16> @llvm.riscv.vwsub.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.vwsub.nxv8i16.nxv8i8.i8(
877 define <vscale x 8 x i16> @intrinsic_vwsub_vx_nxv8i16_nxv8i8_i8(<vscale x 8 x i8> %0, i8 %1, iXLen %2) nounwind {
878 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv8i16_nxv8i8_i8:
879 ; CHECK: # %bb.0: # %entry
880 ; CHECK-NEXT: vsetvli zero, a1, e8, m1, ta, ma
881 ; CHECK-NEXT: vwsub.vx v10, v8, a0
882 ; CHECK-NEXT: vmv2r.v v8, v10
885 %a = call <vscale x 8 x i16> @llvm.riscv.vwsub.nxv8i16.nxv8i8.i8(
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.vwsub.mask.nxv8i16.nxv8i8.i8(
902 define <vscale x 8 x i16> @intrinsic_vwsub_mask_vx_nxv8i16_nxv8i8_i8(<vscale x 8 x i16> %0, <vscale x 8 x i8> %1, i8 %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
903 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv8i16_nxv8i8_i8:
904 ; CHECK: # %bb.0: # %entry
905 ; CHECK-NEXT: vsetvli zero, a1, e8, m1, ta, mu
906 ; CHECK-NEXT: vwsub.vx v8, v10, a0, v0.t
909 %a = call <vscale x 8 x i16> @llvm.riscv.vwsub.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.vwsub.nxv16i16.nxv16i8.i8(
925 define <vscale x 16 x i16> @intrinsic_vwsub_vx_nxv16i16_nxv16i8_i8(<vscale x 16 x i8> %0, i8 %1, iXLen %2) nounwind {
926 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv16i16_nxv16i8_i8:
927 ; CHECK: # %bb.0: # %entry
928 ; CHECK-NEXT: vsetvli zero, a1, e8, m2, ta, ma
929 ; CHECK-NEXT: vwsub.vx v12, v8, a0
930 ; CHECK-NEXT: vmv4r.v v8, v12
933 %a = call <vscale x 16 x i16> @llvm.riscv.vwsub.nxv16i16.nxv16i8.i8(
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.vwsub.mask.nxv16i16.nxv16i8.i8(
950 define <vscale x 16 x i16> @intrinsic_vwsub_mask_vx_nxv16i16_nxv16i8_i8(<vscale x 16 x i16> %0, <vscale x 16 x i8> %1, i8 %2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
951 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv16i16_nxv16i8_i8:
952 ; CHECK: # %bb.0: # %entry
953 ; CHECK-NEXT: vsetvli zero, a1, e8, m2, ta, mu
954 ; CHECK-NEXT: vwsub.vx v8, v12, a0, v0.t
957 %a = call <vscale x 16 x i16> @llvm.riscv.vwsub.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.vwsub.nxv32i16.nxv32i8.i8(
973 define <vscale x 32 x i16> @intrinsic_vwsub_vx_nxv32i16_nxv32i8_i8(<vscale x 32 x i8> %0, i8 %1, iXLen %2) nounwind {
974 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv32i16_nxv32i8_i8:
975 ; CHECK: # %bb.0: # %entry
976 ; CHECK-NEXT: vsetvli zero, a1, e8, m4, ta, ma
977 ; CHECK-NEXT: vwsub.vx v16, v8, a0
978 ; CHECK-NEXT: vmv8r.v v8, v16
981 %a = call <vscale x 32 x i16> @llvm.riscv.vwsub.nxv32i16.nxv32i8.i8(
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.vwsub.mask.nxv32i16.nxv32i8.i8(
998 define <vscale x 32 x i16> @intrinsic_vwsub_mask_vx_nxv32i16_nxv32i8_i8(<vscale x 32 x i16> %0, <vscale x 32 x i8> %1, i8 %2, <vscale x 32 x i1> %3, iXLen %4) nounwind {
999 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv32i16_nxv32i8_i8:
1000 ; CHECK: # %bb.0: # %entry
1001 ; CHECK-NEXT: vsetvli zero, a1, e8, m4, ta, mu
1002 ; CHECK-NEXT: vwsub.vx v8, v16, a0, v0.t
1005 %a = call <vscale x 32 x i16> @llvm.riscv.vwsub.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.vwsub.nxv1i32.nxv1i16.i16(
1021 define <vscale x 1 x i32> @intrinsic_vwsub_vx_nxv1i32_nxv1i16_i16(<vscale x 1 x i16> %0, i16 %1, iXLen %2) nounwind {
1022 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv1i32_nxv1i16_i16:
1023 ; CHECK: # %bb.0: # %entry
1024 ; CHECK-NEXT: vsetvli zero, a1, e16, mf4, ta, ma
1025 ; CHECK-NEXT: vwsub.vx v9, v8, a0
1026 ; CHECK-NEXT: vmv1r.v v8, v9
1029 %a = call <vscale x 1 x i32> @llvm.riscv.vwsub.nxv1i32.nxv1i16.i16(
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.vwsub.mask.nxv1i32.nxv1i16.i16(
1046 define <vscale x 1 x i32> @intrinsic_vwsub_mask_vx_nxv1i32_nxv1i16_i16(<vscale x 1 x i32> %0, <vscale x 1 x i16> %1, i16 %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
1047 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv1i32_nxv1i16_i16:
1048 ; CHECK: # %bb.0: # %entry
1049 ; CHECK-NEXT: vsetvli zero, a1, e16, mf4, ta, mu
1050 ; CHECK-NEXT: vwsub.vx v8, v9, a0, v0.t
1053 %a = call <vscale x 1 x i32> @llvm.riscv.vwsub.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.vwsub.nxv2i32.nxv2i16.i16(
1069 define <vscale x 2 x i32> @intrinsic_vwsub_vx_nxv2i32_nxv2i16_i16(<vscale x 2 x i16> %0, i16 %1, iXLen %2) nounwind {
1070 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv2i32_nxv2i16_i16:
1071 ; CHECK: # %bb.0: # %entry
1072 ; CHECK-NEXT: vsetvli zero, a1, e16, mf2, ta, ma
1073 ; CHECK-NEXT: vwsub.vx v9, v8, a0
1074 ; CHECK-NEXT: vmv1r.v v8, v9
1077 %a = call <vscale x 2 x i32> @llvm.riscv.vwsub.nxv2i32.nxv2i16.i16(
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.vwsub.mask.nxv2i32.nxv2i16.i16(
1094 define <vscale x 2 x i32> @intrinsic_vwsub_mask_vx_nxv2i32_nxv2i16_i16(<vscale x 2 x i32> %0, <vscale x 2 x i16> %1, i16 %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
1095 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv2i32_nxv2i16_i16:
1096 ; CHECK: # %bb.0: # %entry
1097 ; CHECK-NEXT: vsetvli zero, a1, e16, mf2, ta, mu
1098 ; CHECK-NEXT: vwsub.vx v8, v9, a0, v0.t
1101 %a = call <vscale x 2 x i32> @llvm.riscv.vwsub.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.vwsub.nxv4i32.nxv4i16.i16(
1117 define <vscale x 4 x i32> @intrinsic_vwsub_vx_nxv4i32_nxv4i16_i16(<vscale x 4 x i16> %0, i16 %1, iXLen %2) nounwind {
1118 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv4i32_nxv4i16_i16:
1119 ; CHECK: # %bb.0: # %entry
1120 ; CHECK-NEXT: vsetvli zero, a1, e16, m1, ta, ma
1121 ; CHECK-NEXT: vwsub.vx v10, v8, a0
1122 ; CHECK-NEXT: vmv2r.v v8, v10
1125 %a = call <vscale x 4 x i32> @llvm.riscv.vwsub.nxv4i32.nxv4i16.i16(
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.vwsub.mask.nxv4i32.nxv4i16.i16(
1142 define <vscale x 4 x i32> @intrinsic_vwsub_mask_vx_nxv4i32_nxv4i16_i16(<vscale x 4 x i32> %0, <vscale x 4 x i16> %1, i16 %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
1143 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv4i32_nxv4i16_i16:
1144 ; CHECK: # %bb.0: # %entry
1145 ; CHECK-NEXT: vsetvli zero, a1, e16, m1, ta, mu
1146 ; CHECK-NEXT: vwsub.vx v8, v10, a0, v0.t
1149 %a = call <vscale x 4 x i32> @llvm.riscv.vwsub.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.vwsub.nxv8i32.nxv8i16.i16(
1165 define <vscale x 8 x i32> @intrinsic_vwsub_vx_nxv8i32_nxv8i16_i16(<vscale x 8 x i16> %0, i16 %1, iXLen %2) nounwind {
1166 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv8i32_nxv8i16_i16:
1167 ; CHECK: # %bb.0: # %entry
1168 ; CHECK-NEXT: vsetvli zero, a1, e16, m2, ta, ma
1169 ; CHECK-NEXT: vwsub.vx v12, v8, a0
1170 ; CHECK-NEXT: vmv4r.v v8, v12
1173 %a = call <vscale x 8 x i32> @llvm.riscv.vwsub.nxv8i32.nxv8i16.i16(
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.vwsub.mask.nxv8i32.nxv8i16.i16(
1190 define <vscale x 8 x i32> @intrinsic_vwsub_mask_vx_nxv8i32_nxv8i16_i16(<vscale x 8 x i32> %0, <vscale x 8 x i16> %1, i16 %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
1191 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv8i32_nxv8i16_i16:
1192 ; CHECK: # %bb.0: # %entry
1193 ; CHECK-NEXT: vsetvli zero, a1, e16, m2, ta, mu
1194 ; CHECK-NEXT: vwsub.vx v8, v12, a0, v0.t
1197 %a = call <vscale x 8 x i32> @llvm.riscv.vwsub.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.vwsub.nxv16i32.nxv16i16.i16(
1208 <vscale x 16 x i32>,
1209 <vscale x 16 x i16>,
1213 define <vscale x 16 x i32> @intrinsic_vwsub_vx_nxv16i32_nxv16i16_i16(<vscale x 16 x i16> %0, i16 %1, iXLen %2) nounwind {
1214 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv16i32_nxv16i16_i16:
1215 ; CHECK: # %bb.0: # %entry
1216 ; CHECK-NEXT: vsetvli zero, a1, e16, m4, ta, ma
1217 ; CHECK-NEXT: vwsub.vx v16, v8, a0
1218 ; CHECK-NEXT: vmv8r.v v8, v16
1221 %a = call <vscale x 16 x i32> @llvm.riscv.vwsub.nxv16i32.nxv16i16.i16(
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.vwsub.mask.nxv16i32.nxv16i16.i16(
1231 <vscale x 16 x i32>,
1232 <vscale x 16 x i16>,
1238 define <vscale x 16 x i32> @intrinsic_vwsub_mask_vx_nxv16i32_nxv16i16_i16(<vscale x 16 x i32> %0, <vscale x 16 x i16> %1, i16 %2, <vscale x 16 x i1> %3, iXLen %4) nounwind {
1239 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv16i32_nxv16i16_i16:
1240 ; CHECK: # %bb.0: # %entry
1241 ; CHECK-NEXT: vsetvli zero, a1, e16, m4, ta, mu
1242 ; CHECK-NEXT: vwsub.vx v8, v16, a0, v0.t
1245 %a = call <vscale x 16 x i32> @llvm.riscv.vwsub.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.vwsub.nxv1i64.nxv1i32.i32(
1261 define <vscale x 1 x i64> @intrinsic_vwsub_vx_nxv1i64_nxv1i32_i32(<vscale x 1 x i32> %0, i32 %1, iXLen %2) nounwind {
1262 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv1i64_nxv1i32_i32:
1263 ; CHECK: # %bb.0: # %entry
1264 ; CHECK-NEXT: vsetvli zero, a1, e32, mf2, ta, ma
1265 ; CHECK-NEXT: vwsub.vx v9, v8, a0
1266 ; CHECK-NEXT: vmv1r.v v8, v9
1269 %a = call <vscale x 1 x i64> @llvm.riscv.vwsub.nxv1i64.nxv1i32.i32(
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.vwsub.mask.nxv1i64.nxv1i32.i32(
1286 define <vscale x 1 x i64> @intrinsic_vwsub_mask_vx_nxv1i64_nxv1i32_i32(<vscale x 1 x i64> %0, <vscale x 1 x i32> %1, i32 %2, <vscale x 1 x i1> %3, iXLen %4) nounwind {
1287 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv1i64_nxv1i32_i32:
1288 ; CHECK: # %bb.0: # %entry
1289 ; CHECK-NEXT: vsetvli zero, a1, e32, mf2, ta, mu
1290 ; CHECK-NEXT: vwsub.vx v8, v9, a0, v0.t
1293 %a = call <vscale x 1 x i64> @llvm.riscv.vwsub.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.vwsub.nxv2i64.nxv2i32.i32(
1309 define <vscale x 2 x i64> @intrinsic_vwsub_vx_nxv2i64_nxv2i32_i32(<vscale x 2 x i32> %0, i32 %1, iXLen %2) nounwind {
1310 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv2i64_nxv2i32_i32:
1311 ; CHECK: # %bb.0: # %entry
1312 ; CHECK-NEXT: vsetvli zero, a1, e32, m1, ta, ma
1313 ; CHECK-NEXT: vwsub.vx v10, v8, a0
1314 ; CHECK-NEXT: vmv2r.v v8, v10
1317 %a = call <vscale x 2 x i64> @llvm.riscv.vwsub.nxv2i64.nxv2i32.i32(
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.vwsub.mask.nxv2i64.nxv2i32.i32(
1334 define <vscale x 2 x i64> @intrinsic_vwsub_mask_vx_nxv2i64_nxv2i32_i32(<vscale x 2 x i64> %0, <vscale x 2 x i32> %1, i32 %2, <vscale x 2 x i1> %3, iXLen %4) nounwind {
1335 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv2i64_nxv2i32_i32:
1336 ; CHECK: # %bb.0: # %entry
1337 ; CHECK-NEXT: vsetvli zero, a1, e32, m1, ta, mu
1338 ; CHECK-NEXT: vwsub.vx v8, v10, a0, v0.t
1341 %a = call <vscale x 2 x i64> @llvm.riscv.vwsub.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.vwsub.nxv4i64.nxv4i32.i32(
1357 define <vscale x 4 x i64> @intrinsic_vwsub_vx_nxv4i64_nxv4i32_i32(<vscale x 4 x i32> %0, i32 %1, iXLen %2) nounwind {
1358 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv4i64_nxv4i32_i32:
1359 ; CHECK: # %bb.0: # %entry
1360 ; CHECK-NEXT: vsetvli zero, a1, e32, m2, ta, ma
1361 ; CHECK-NEXT: vwsub.vx v12, v8, a0
1362 ; CHECK-NEXT: vmv4r.v v8, v12
1365 %a = call <vscale x 4 x i64> @llvm.riscv.vwsub.nxv4i64.nxv4i32.i32(
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.vwsub.mask.nxv4i64.nxv4i32.i32(
1382 define <vscale x 4 x i64> @intrinsic_vwsub_mask_vx_nxv4i64_nxv4i32_i32(<vscale x 4 x i64> %0, <vscale x 4 x i32> %1, i32 %2, <vscale x 4 x i1> %3, iXLen %4) nounwind {
1383 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv4i64_nxv4i32_i32:
1384 ; CHECK: # %bb.0: # %entry
1385 ; CHECK-NEXT: vsetvli zero, a1, e32, m2, ta, mu
1386 ; CHECK-NEXT: vwsub.vx v8, v12, a0, v0.t
1389 %a = call <vscale x 4 x i64> @llvm.riscv.vwsub.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.vwsub.nxv8i64.nxv8i32.i32(
1405 define <vscale x 8 x i64> @intrinsic_vwsub_vx_nxv8i64_nxv8i32_i32(<vscale x 8 x i32> %0, i32 %1, iXLen %2) nounwind {
1406 ; CHECK-LABEL: intrinsic_vwsub_vx_nxv8i64_nxv8i32_i32:
1407 ; CHECK: # %bb.0: # %entry
1408 ; CHECK-NEXT: vsetvli zero, a1, e32, m4, ta, ma
1409 ; CHECK-NEXT: vwsub.vx v16, v8, a0
1410 ; CHECK-NEXT: vmv8r.v v8, v16
1413 %a = call <vscale x 8 x i64> @llvm.riscv.vwsub.nxv8i64.nxv8i32.i32(
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.vwsub.mask.nxv8i64.nxv8i32.i32(
1430 define <vscale x 8 x i64> @intrinsic_vwsub_mask_vx_nxv8i64_nxv8i32_i32(<vscale x 8 x i64> %0, <vscale x 8 x i32> %1, i32 %2, <vscale x 8 x i1> %3, iXLen %4) nounwind {
1431 ; CHECK-LABEL: intrinsic_vwsub_mask_vx_nxv8i64_nxv8i32_i32:
1432 ; CHECK: # %bb.0: # %entry
1433 ; CHECK-NEXT: vsetvli zero, a1, e32, m4, ta, mu
1434 ; CHECK-NEXT: vwsub.vx v8, v16, a0, v0.t
1437 %a = call <vscale x 8 x i64> @llvm.riscv.vwsub.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