Debian Codegraph @

clang/test/CodeGen/RISCV/rvv-intrinsics-autogenerated/policy/overloaded/vcpopv.c

raw
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 2
2 // REQUIRES: riscv-registered-target
3 // RUN: %clang_cc1 -triple riscv64 -target-feature +v -target-feature +zvl512b \
4 // RUN: -target-feature +zvbb \
5 // RUN: -target-feature +zvbc \
6 // RUN: -target-feature +zvkb \
7 // RUN: -target-feature +zvkg \
8 // RUN: -target-feature +zvkned \
9 // RUN: -target-feature +zvknhb \
10 // RUN: -target-feature +zvksed \
11 // RUN: -target-feature +zvksh \
12 // RUN: -target-feature +experimental \
13 // RUN: -disable-O0-optnone \
14 // RUN: -emit-llvm %s -o - | opt -S -passes=mem2reg | \
15 // RUN: FileCheck %s
16
17 #include <riscv_vector.h>
18
19 // CHECK-LABEL: @test_vcpop_v_u8mf8_tu(
20 // CHECK-NEXT: entry:
21 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.vcpopv.nxv1i8.i64(<vscale x 1 x i8> [[MASKEDOFF:%.*]], <vscale x 1 x i8> [[VS2:%.*]], i64 [[VL:%.*]])
22 // CHECK-NEXT: ret <vscale x 1 x i8> [[TMP0]]
23 //
24 vuint8mf8_t test_vcpop_v_u8mf8_tu(vuint8mf8_t maskedoff, vuint8mf8_t vs2, size_t vl) {
25 return __riscv_vcpop_tu(maskedoff, vs2, vl);
26 }
27
28 // CHECK-LABEL: @test_vcpop_v_u8mf4_tu(
29 // CHECK-NEXT: entry:
30 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vcpopv.nxv2i8.i64(<vscale x 2 x i8> [[MASKEDOFF:%.*]], <vscale x 2 x i8> [[VS2:%.*]], i64 [[VL:%.*]])
31 // CHECK-NEXT: ret <vscale x 2 x i8> [[TMP0]]
32 //
33 vuint8mf4_t test_vcpop_v_u8mf4_tu(vuint8mf4_t maskedoff, vuint8mf4_t vs2, size_t vl) {
34 return __riscv_vcpop_tu(maskedoff, vs2, vl);
35 }
36
37 // CHECK-LABEL: @test_vcpop_v_u8mf2_tu(
38 // CHECK-NEXT: entry:
39 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vcpopv.nxv4i8.i64(<vscale x 4 x i8> [[MASKEDOFF:%.*]], <vscale x 4 x i8> [[VS2:%.*]], i64 [[VL:%.*]])
40 // CHECK-NEXT: ret <vscale x 4 x i8> [[TMP0]]
41 //
42 vuint8mf2_t test_vcpop_v_u8mf2_tu(vuint8mf2_t maskedoff, vuint8mf2_t vs2, size_t vl) {
43 return __riscv_vcpop_tu(maskedoff, vs2, vl);
44 }
45
46 // CHECK-LABEL: @test_vcpop_v_u8m1_tu(
47 // CHECK-NEXT: entry:
48 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vcpopv.nxv8i8.i64(<vscale x 8 x i8> [[MASKEDOFF:%.*]], <vscale x 8 x i8> [[VS2:%.*]], i64 [[VL:%.*]])
49 // CHECK-NEXT: ret <vscale x 8 x i8> [[TMP0]]
50 //
51 vuint8m1_t test_vcpop_v_u8m1_tu(vuint8m1_t maskedoff, vuint8m1_t vs2, size_t vl) {
52 return __riscv_vcpop_tu(maskedoff, vs2, vl);
53 }
54
55 // CHECK-LABEL: @test_vcpop_v_u8m2_tu(
56 // CHECK-NEXT: entry:
57 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vcpopv.nxv16i8.i64(<vscale x 16 x i8> [[MASKEDOFF:%.*]], <vscale x 16 x i8> [[VS2:%.*]], i64 [[VL:%.*]])
58 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
59 //
60 vuint8m2_t test_vcpop_v_u8m2_tu(vuint8m2_t maskedoff, vuint8m2_t vs2, size_t vl) {
61 return __riscv_vcpop_tu(maskedoff, vs2, vl);
62 }
63
64 // CHECK-LABEL: @test_vcpop_v_u8m4_tu(
65 // CHECK-NEXT: entry:
66 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vcpopv.nxv32i8.i64(<vscale x 32 x i8> [[MASKEDOFF:%.*]], <vscale x 32 x i8> [[VS2:%.*]], i64 [[VL:%.*]])
67 // CHECK-NEXT: ret <vscale x 32 x i8> [[TMP0]]
68 //
69 vuint8m4_t test_vcpop_v_u8m4_tu(vuint8m4_t maskedoff, vuint8m4_t vs2, size_t vl) {
70 return __riscv_vcpop_tu(maskedoff, vs2, vl);
71 }
72
73 // CHECK-LABEL: @test_vcpop_v_u8m8_tu(
74 // CHECK-NEXT: entry:
75 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vcpopv.nxv64i8.i64(<vscale x 64 x i8> [[MASKEDOFF:%.*]], <vscale x 64 x i8> [[VS2:%.*]], i64 [[VL:%.*]])
76 // CHECK-NEXT: ret <vscale x 64 x i8> [[TMP0]]
77 //
78 vuint8m8_t test_vcpop_v_u8m8_tu(vuint8m8_t maskedoff, vuint8m8_t vs2, size_t vl) {
79 return __riscv_vcpop_tu(maskedoff, vs2, vl);
80 }
81
82 // CHECK-LABEL: @test_vcpop_v_u16mf4_tu(
83 // CHECK-NEXT: entry:
84 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.vcpopv.nxv1i16.i64(<vscale x 1 x i16> [[MASKEDOFF:%.*]], <vscale x 1 x i16> [[VS2:%.*]], i64 [[VL:%.*]])
85 // CHECK-NEXT: ret <vscale x 1 x i16> [[TMP0]]
86 //
87 vuint16mf4_t test_vcpop_v_u16mf4_tu(vuint16mf4_t maskedoff, vuint16mf4_t vs2, size_t vl) {
88 return __riscv_vcpop_tu(maskedoff, vs2, vl);
89 }
90
91 // CHECK-LABEL: @test_vcpop_v_u16mf2_tu(
92 // CHECK-NEXT: entry:
93 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.vcpopv.nxv2i16.i64(<vscale x 2 x i16> [[MASKEDOFF:%.*]], <vscale x 2 x i16> [[VS2:%.*]], i64 [[VL:%.*]])
94 // CHECK-NEXT: ret <vscale x 2 x i16> [[TMP0]]
95 //
96 vuint16mf2_t test_vcpop_v_u16mf2_tu(vuint16mf2_t maskedoff, vuint16mf2_t vs2, size_t vl) {
97 return __riscv_vcpop_tu(maskedoff, vs2, vl);
98 }
99
100 // CHECK-LABEL: @test_vcpop_v_u16m1_tu(
101 // CHECK-NEXT: entry:
102 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.vcpopv.nxv4i16.i64(<vscale x 4 x i16> [[MASKEDOFF:%.*]], <vscale x 4 x i16> [[VS2:%.*]], i64 [[VL:%.*]])
103 // CHECK-NEXT: ret <vscale x 4 x i16> [[TMP0]]
104 //
105 vuint16m1_t test_vcpop_v_u16m1_tu(vuint16m1_t maskedoff, vuint16m1_t vs2, size_t vl) {
106 return __riscv_vcpop_tu(maskedoff, vs2, vl);
107 }
108
109 // CHECK-LABEL: @test_vcpop_v_u16m2_tu(
110 // CHECK-NEXT: entry:
111 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.vcpopv.nxv8i16.i64(<vscale x 8 x i16> [[MASKEDOFF:%.*]], <vscale x 8 x i16> [[VS2:%.*]], i64 [[VL:%.*]])
112 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
113 //
114 vuint16m2_t test_vcpop_v_u16m2_tu(vuint16m2_t maskedoff, vuint16m2_t vs2, size_t vl) {
115 return __riscv_vcpop_tu(maskedoff, vs2, vl);
116 }
117
118 // CHECK-LABEL: @test_vcpop_v_u16m4_tu(
119 // CHECK-NEXT: entry:
120 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.vcpopv.nxv16i16.i64(<vscale x 16 x i16> [[MASKEDOFF:%.*]], <vscale x 16 x i16> [[VS2:%.*]], i64 [[VL:%.*]])
121 // CHECK-NEXT: ret <vscale x 16 x i16> [[TMP0]]
122 //
123 vuint16m4_t test_vcpop_v_u16m4_tu(vuint16m4_t maskedoff, vuint16m4_t vs2, size_t vl) {
124 return __riscv_vcpop_tu(maskedoff, vs2, vl);
125 }
126
127 // CHECK-LABEL: @test_vcpop_v_u16m8_tu(
128 // CHECK-NEXT: entry:
129 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.vcpopv.nxv32i16.i64(<vscale x 32 x i16> [[MASKEDOFF:%.*]], <vscale x 32 x i16> [[VS2:%.*]], i64 [[VL:%.*]])
130 // CHECK-NEXT: ret <vscale x 32 x i16> [[TMP0]]
131 //
132 vuint16m8_t test_vcpop_v_u16m8_tu(vuint16m8_t maskedoff, vuint16m8_t vs2, size_t vl) {
133 return __riscv_vcpop_tu(maskedoff, vs2, vl);
134 }
135
136 // CHECK-LABEL: @test_vcpop_v_u32mf2_tu(
137 // CHECK-NEXT: entry:
138 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.vcpopv.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF:%.*]], <vscale x 1 x i32> [[VS2:%.*]], i64 [[VL:%.*]])
139 // CHECK-NEXT: ret <vscale x 1 x i32> [[TMP0]]
140 //
141 vuint32mf2_t test_vcpop_v_u32mf2_tu(vuint32mf2_t maskedoff, vuint32mf2_t vs2, size_t vl) {
142 return __riscv_vcpop_tu(maskedoff, vs2, vl);
143 }
144
145 // CHECK-LABEL: @test_vcpop_v_u32m1_tu(
146 // CHECK-NEXT: entry:
147 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.vcpopv.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF:%.*]], <vscale x 2 x i32> [[VS2:%.*]], i64 [[VL:%.*]])
148 // CHECK-NEXT: ret <vscale x 2 x i32> [[TMP0]]
149 //
150 vuint32m1_t test_vcpop_v_u32m1_tu(vuint32m1_t maskedoff, vuint32m1_t vs2, size_t vl) {
151 return __riscv_vcpop_tu(maskedoff, vs2, vl);
152 }
153
154 // CHECK-LABEL: @test_vcpop_v_u32m2_tu(
155 // CHECK-NEXT: entry:
156 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.vcpopv.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF:%.*]], <vscale x 4 x i32> [[VS2:%.*]], i64 [[VL:%.*]])
157 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
158 //
159 vuint32m2_t test_vcpop_v_u32m2_tu(vuint32m2_t maskedoff, vuint32m2_t vs2, size_t vl) {
160 return __riscv_vcpop_tu(maskedoff, vs2, vl);
161 }
162
163 // CHECK-LABEL: @test_vcpop_v_u32m4_tu(
164 // CHECK-NEXT: entry:
165 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.vcpopv.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF:%.*]], <vscale x 8 x i32> [[VS2:%.*]], i64 [[VL:%.*]])
166 // CHECK-NEXT: ret <vscale x 8 x i32> [[TMP0]]
167 //
168 vuint32m4_t test_vcpop_v_u32m4_tu(vuint32m4_t maskedoff, vuint32m4_t vs2, size_t vl) {
169 return __riscv_vcpop_tu(maskedoff, vs2, vl);
170 }
171
172 // CHECK-LABEL: @test_vcpop_v_u32m8_tu(
173 // CHECK-NEXT: entry:
174 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.vcpopv.nxv16i32.i64(<vscale x 16 x i32> [[MASKEDOFF:%.*]], <vscale x 16 x i32> [[VS2:%.*]], i64 [[VL:%.*]])
175 // CHECK-NEXT: ret <vscale x 16 x i32> [[TMP0]]
176 //
177 vuint32m8_t test_vcpop_v_u32m8_tu(vuint32m8_t maskedoff, vuint32m8_t vs2, size_t vl) {
178 return __riscv_vcpop_tu(maskedoff, vs2, vl);
179 }
180
181 // CHECK-LABEL: @test_vcpop_v_u64m1_tu(
182 // CHECK-NEXT: entry:
183 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.vcpopv.nxv1i64.i64(<vscale x 1 x i64> [[MASKEDOFF:%.*]], <vscale x 1 x i64> [[VS2:%.*]], i64 [[VL:%.*]])
184 // CHECK-NEXT: ret <vscale x 1 x i64> [[TMP0]]
185 //
186 vuint64m1_t test_vcpop_v_u64m1_tu(vuint64m1_t maskedoff, vuint64m1_t vs2, size_t vl) {
187 return __riscv_vcpop_tu(maskedoff, vs2, vl);
188 }
189
190 // CHECK-LABEL: @test_vcpop_v_u64m2_tu(
191 // CHECK-NEXT: entry:
192 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.vcpopv.nxv2i64.i64(<vscale x 2 x i64> [[MASKEDOFF:%.*]], <vscale x 2 x i64> [[VS2:%.*]], i64 [[VL:%.*]])
193 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
194 //
195 vuint64m2_t test_vcpop_v_u64m2_tu(vuint64m2_t maskedoff, vuint64m2_t vs2, size_t vl) {
196 return __riscv_vcpop_tu(maskedoff, vs2, vl);
197 }
198
199 // CHECK-LABEL: @test_vcpop_v_u64m4_tu(
200 // CHECK-NEXT: entry:
201 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.vcpopv.nxv4i64.i64(<vscale x 4 x i64> [[MASKEDOFF:%.*]], <vscale x 4 x i64> [[VS2:%.*]], i64 [[VL:%.*]])
202 // CHECK-NEXT: ret <vscale x 4 x i64> [[TMP0]]
203 //
204 vuint64m4_t test_vcpop_v_u64m4_tu(vuint64m4_t maskedoff, vuint64m4_t vs2, size_t vl) {
205 return __riscv_vcpop_tu(maskedoff, vs2, vl);
206 }
207
208 // CHECK-LABEL: @test_vcpop_v_u64m8_tu(
209 // CHECK-NEXT: entry:
210 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.vcpopv.nxv8i64.i64(<vscale x 8 x i64> [[MASKEDOFF:%.*]], <vscale x 8 x i64> [[VS2:%.*]], i64 [[VL:%.*]])
211 // CHECK-NEXT: ret <vscale x 8 x i64> [[TMP0]]
212 //
213 vuint64m8_t test_vcpop_v_u64m8_tu(vuint64m8_t maskedoff, vuint64m8_t vs2, size_t vl) {
214 return __riscv_vcpop_tu(maskedoff, vs2, vl);
215 }
216
217 // CHECK-LABEL: @test_vcpop_v_u8mf8_tum(
218 // CHECK-NEXT: entry:
219 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.vcpopv.mask.nxv1i8.i64(<vscale x 1 x i8> [[MASKEDOFF:%.*]], <vscale x 1 x i8> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
220 // CHECK-NEXT: ret <vscale x 1 x i8> [[TMP0]]
221 //
222 vuint8mf8_t test_vcpop_v_u8mf8_tum(vbool64_t mask, vuint8mf8_t maskedoff, vuint8mf8_t vs2, size_t vl) {
223 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
224 }
225
226 // CHECK-LABEL: @test_vcpop_v_u8mf4_tum(
227 // CHECK-NEXT: entry:
228 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vcpopv.mask.nxv2i8.i64(<vscale x 2 x i8> [[MASKEDOFF:%.*]], <vscale x 2 x i8> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
229 // CHECK-NEXT: ret <vscale x 2 x i8> [[TMP0]]
230 //
231 vuint8mf4_t test_vcpop_v_u8mf4_tum(vbool32_t mask, vuint8mf4_t maskedoff, vuint8mf4_t vs2, size_t vl) {
232 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
233 }
234
235 // CHECK-LABEL: @test_vcpop_v_u8mf2_tum(
236 // CHECK-NEXT: entry:
237 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vcpopv.mask.nxv4i8.i64(<vscale x 4 x i8> [[MASKEDOFF:%.*]], <vscale x 4 x i8> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
238 // CHECK-NEXT: ret <vscale x 4 x i8> [[TMP0]]
239 //
240 vuint8mf2_t test_vcpop_v_u8mf2_tum(vbool16_t mask, vuint8mf2_t maskedoff, vuint8mf2_t vs2, size_t vl) {
241 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
242 }
243
244 // CHECK-LABEL: @test_vcpop_v_u8m1_tum(
245 // CHECK-NEXT: entry:
246 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vcpopv.mask.nxv8i8.i64(<vscale x 8 x i8> [[MASKEDOFF:%.*]], <vscale x 8 x i8> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
247 // CHECK-NEXT: ret <vscale x 8 x i8> [[TMP0]]
248 //
249 vuint8m1_t test_vcpop_v_u8m1_tum(vbool8_t mask, vuint8m1_t maskedoff, vuint8m1_t vs2, size_t vl) {
250 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
251 }
252
253 // CHECK-LABEL: @test_vcpop_v_u8m2_tum(
254 // CHECK-NEXT: entry:
255 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vcpopv.mask.nxv16i8.i64(<vscale x 16 x i8> [[MASKEDOFF:%.*]], <vscale x 16 x i8> [[VS2:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
256 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
257 //
258 vuint8m2_t test_vcpop_v_u8m2_tum(vbool4_t mask, vuint8m2_t maskedoff, vuint8m2_t vs2, size_t vl) {
259 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
260 }
261
262 // CHECK-LABEL: @test_vcpop_v_u8m4_tum(
263 // CHECK-NEXT: entry:
264 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vcpopv.mask.nxv32i8.i64(<vscale x 32 x i8> [[MASKEDOFF:%.*]], <vscale x 32 x i8> [[VS2:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
265 // CHECK-NEXT: ret <vscale x 32 x i8> [[TMP0]]
266 //
267 vuint8m4_t test_vcpop_v_u8m4_tum(vbool2_t mask, vuint8m4_t maskedoff, vuint8m4_t vs2, size_t vl) {
268 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
269 }
270
271 // CHECK-LABEL: @test_vcpop_v_u8m8_tum(
272 // CHECK-NEXT: entry:
273 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vcpopv.mask.nxv64i8.i64(<vscale x 64 x i8> [[MASKEDOFF:%.*]], <vscale x 64 x i8> [[VS2:%.*]], <vscale x 64 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
274 // CHECK-NEXT: ret <vscale x 64 x i8> [[TMP0]]
275 //
276 vuint8m8_t test_vcpop_v_u8m8_tum(vbool1_t mask, vuint8m8_t maskedoff, vuint8m8_t vs2, size_t vl) {
277 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
278 }
279
280 // CHECK-LABEL: @test_vcpop_v_u16mf4_tum(
281 // CHECK-NEXT: entry:
282 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.vcpopv.mask.nxv1i16.i64(<vscale x 1 x i16> [[MASKEDOFF:%.*]], <vscale x 1 x i16> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
283 // CHECK-NEXT: ret <vscale x 1 x i16> [[TMP0]]
284 //
285 vuint16mf4_t test_vcpop_v_u16mf4_tum(vbool64_t mask, vuint16mf4_t maskedoff, vuint16mf4_t vs2, size_t vl) {
286 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
287 }
288
289 // CHECK-LABEL: @test_vcpop_v_u16mf2_tum(
290 // CHECK-NEXT: entry:
291 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.vcpopv.mask.nxv2i16.i64(<vscale x 2 x i16> [[MASKEDOFF:%.*]], <vscale x 2 x i16> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
292 // CHECK-NEXT: ret <vscale x 2 x i16> [[TMP0]]
293 //
294 vuint16mf2_t test_vcpop_v_u16mf2_tum(vbool32_t mask, vuint16mf2_t maskedoff, vuint16mf2_t vs2, size_t vl) {
295 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
296 }
297
298 // CHECK-LABEL: @test_vcpop_v_u16m1_tum(
299 // CHECK-NEXT: entry:
300 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.vcpopv.mask.nxv4i16.i64(<vscale x 4 x i16> [[MASKEDOFF:%.*]], <vscale x 4 x i16> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
301 // CHECK-NEXT: ret <vscale x 4 x i16> [[TMP0]]
302 //
303 vuint16m1_t test_vcpop_v_u16m1_tum(vbool16_t mask, vuint16m1_t maskedoff, vuint16m1_t vs2, size_t vl) {
304 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
305 }
306
307 // CHECK-LABEL: @test_vcpop_v_u16m2_tum(
308 // CHECK-NEXT: entry:
309 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.vcpopv.mask.nxv8i16.i64(<vscale x 8 x i16> [[MASKEDOFF:%.*]], <vscale x 8 x i16> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
310 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
311 //
312 vuint16m2_t test_vcpop_v_u16m2_tum(vbool8_t mask, vuint16m2_t maskedoff, vuint16m2_t vs2, size_t vl) {
313 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
314 }
315
316 // CHECK-LABEL: @test_vcpop_v_u16m4_tum(
317 // CHECK-NEXT: entry:
318 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.vcpopv.mask.nxv16i16.i64(<vscale x 16 x i16> [[MASKEDOFF:%.*]], <vscale x 16 x i16> [[VS2:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
319 // CHECK-NEXT: ret <vscale x 16 x i16> [[TMP0]]
320 //
321 vuint16m4_t test_vcpop_v_u16m4_tum(vbool4_t mask, vuint16m4_t maskedoff, vuint16m4_t vs2, size_t vl) {
322 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
323 }
324
325 // CHECK-LABEL: @test_vcpop_v_u16m8_tum(
326 // CHECK-NEXT: entry:
327 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.vcpopv.mask.nxv32i16.i64(<vscale x 32 x i16> [[MASKEDOFF:%.*]], <vscale x 32 x i16> [[VS2:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
328 // CHECK-NEXT: ret <vscale x 32 x i16> [[TMP0]]
329 //
330 vuint16m8_t test_vcpop_v_u16m8_tum(vbool2_t mask, vuint16m8_t maskedoff, vuint16m8_t vs2, size_t vl) {
331 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
332 }
333
334 // CHECK-LABEL: @test_vcpop_v_u32mf2_tum(
335 // CHECK-NEXT: entry:
336 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.vcpopv.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF:%.*]], <vscale x 1 x i32> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
337 // CHECK-NEXT: ret <vscale x 1 x i32> [[TMP0]]
338 //
339 vuint32mf2_t test_vcpop_v_u32mf2_tum(vbool64_t mask, vuint32mf2_t maskedoff, vuint32mf2_t vs2, size_t vl) {
340 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
341 }
342
343 // CHECK-LABEL: @test_vcpop_v_u32m1_tum(
344 // CHECK-NEXT: entry:
345 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.vcpopv.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF:%.*]], <vscale x 2 x i32> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
346 // CHECK-NEXT: ret <vscale x 2 x i32> [[TMP0]]
347 //
348 vuint32m1_t test_vcpop_v_u32m1_tum(vbool32_t mask, vuint32m1_t maskedoff, vuint32m1_t vs2, size_t vl) {
349 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
350 }
351
352 // CHECK-LABEL: @test_vcpop_v_u32m2_tum(
353 // CHECK-NEXT: entry:
354 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.vcpopv.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF:%.*]], <vscale x 4 x i32> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
355 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
356 //
357 vuint32m2_t test_vcpop_v_u32m2_tum(vbool16_t mask, vuint32m2_t maskedoff, vuint32m2_t vs2, size_t vl) {
358 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
359 }
360
361 // CHECK-LABEL: @test_vcpop_v_u32m4_tum(
362 // CHECK-NEXT: entry:
363 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.vcpopv.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF:%.*]], <vscale x 8 x i32> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
364 // CHECK-NEXT: ret <vscale x 8 x i32> [[TMP0]]
365 //
366 vuint32m4_t test_vcpop_v_u32m4_tum(vbool8_t mask, vuint32m4_t maskedoff, vuint32m4_t vs2, size_t vl) {
367 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
368 }
369
370 // CHECK-LABEL: @test_vcpop_v_u32m8_tum(
371 // CHECK-NEXT: entry:
372 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.vcpopv.mask.nxv16i32.i64(<vscale x 16 x i32> [[MASKEDOFF:%.*]], <vscale x 16 x i32> [[VS2:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
373 // CHECK-NEXT: ret <vscale x 16 x i32> [[TMP0]]
374 //
375 vuint32m8_t test_vcpop_v_u32m8_tum(vbool4_t mask, vuint32m8_t maskedoff, vuint32m8_t vs2, size_t vl) {
376 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
377 }
378
379 // CHECK-LABEL: @test_vcpop_v_u64m1_tum(
380 // CHECK-NEXT: entry:
381 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.vcpopv.mask.nxv1i64.i64(<vscale x 1 x i64> [[MASKEDOFF:%.*]], <vscale x 1 x i64> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
382 // CHECK-NEXT: ret <vscale x 1 x i64> [[TMP0]]
383 //
384 vuint64m1_t test_vcpop_v_u64m1_tum(vbool64_t mask, vuint64m1_t maskedoff, vuint64m1_t vs2, size_t vl) {
385 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
386 }
387
388 // CHECK-LABEL: @test_vcpop_v_u64m2_tum(
389 // CHECK-NEXT: entry:
390 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.vcpopv.mask.nxv2i64.i64(<vscale x 2 x i64> [[MASKEDOFF:%.*]], <vscale x 2 x i64> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
391 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
392 //
393 vuint64m2_t test_vcpop_v_u64m2_tum(vbool32_t mask, vuint64m2_t maskedoff, vuint64m2_t vs2, size_t vl) {
394 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
395 }
396
397 // CHECK-LABEL: @test_vcpop_v_u64m4_tum(
398 // CHECK-NEXT: entry:
399 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.vcpopv.mask.nxv4i64.i64(<vscale x 4 x i64> [[MASKEDOFF:%.*]], <vscale x 4 x i64> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
400 // CHECK-NEXT: ret <vscale x 4 x i64> [[TMP0]]
401 //
402 vuint64m4_t test_vcpop_v_u64m4_tum(vbool16_t mask, vuint64m4_t maskedoff, vuint64m4_t vs2, size_t vl) {
403 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
404 }
405
406 // CHECK-LABEL: @test_vcpop_v_u64m8_tum(
407 // CHECK-NEXT: entry:
408 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.vcpopv.mask.nxv8i64.i64(<vscale x 8 x i64> [[MASKEDOFF:%.*]], <vscale x 8 x i64> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 2)
409 // CHECK-NEXT: ret <vscale x 8 x i64> [[TMP0]]
410 //
411 vuint64m8_t test_vcpop_v_u64m8_tum(vbool8_t mask, vuint64m8_t maskedoff, vuint64m8_t vs2, size_t vl) {
412 return __riscv_vcpop_tum(mask, maskedoff, vs2, vl);
413 }
414
415 // CHECK-LABEL: @test_vcpop_v_u8mf8_tumu(
416 // CHECK-NEXT: entry:
417 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.vcpopv.mask.nxv1i8.i64(<vscale x 1 x i8> [[MASKEDOFF:%.*]], <vscale x 1 x i8> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
418 // CHECK-NEXT: ret <vscale x 1 x i8> [[TMP0]]
419 //
420 vuint8mf8_t test_vcpop_v_u8mf8_tumu(vbool64_t mask, vuint8mf8_t maskedoff, vuint8mf8_t vs2, size_t vl) {
421 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
422 }
423
424 // CHECK-LABEL: @test_vcpop_v_u8mf4_tumu(
425 // CHECK-NEXT: entry:
426 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vcpopv.mask.nxv2i8.i64(<vscale x 2 x i8> [[MASKEDOFF:%.*]], <vscale x 2 x i8> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
427 // CHECK-NEXT: ret <vscale x 2 x i8> [[TMP0]]
428 //
429 vuint8mf4_t test_vcpop_v_u8mf4_tumu(vbool32_t mask, vuint8mf4_t maskedoff, vuint8mf4_t vs2, size_t vl) {
430 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
431 }
432
433 // CHECK-LABEL: @test_vcpop_v_u8mf2_tumu(
434 // CHECK-NEXT: entry:
435 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vcpopv.mask.nxv4i8.i64(<vscale x 4 x i8> [[MASKEDOFF:%.*]], <vscale x 4 x i8> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
436 // CHECK-NEXT: ret <vscale x 4 x i8> [[TMP0]]
437 //
438 vuint8mf2_t test_vcpop_v_u8mf2_tumu(vbool16_t mask, vuint8mf2_t maskedoff, vuint8mf2_t vs2, size_t vl) {
439 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
440 }
441
442 // CHECK-LABEL: @test_vcpop_v_u8m1_tumu(
443 // CHECK-NEXT: entry:
444 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vcpopv.mask.nxv8i8.i64(<vscale x 8 x i8> [[MASKEDOFF:%.*]], <vscale x 8 x i8> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
445 // CHECK-NEXT: ret <vscale x 8 x i8> [[TMP0]]
446 //
447 vuint8m1_t test_vcpop_v_u8m1_tumu(vbool8_t mask, vuint8m1_t maskedoff, vuint8m1_t vs2, size_t vl) {
448 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
449 }
450
451 // CHECK-LABEL: @test_vcpop_v_u8m2_tumu(
452 // CHECK-NEXT: entry:
453 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vcpopv.mask.nxv16i8.i64(<vscale x 16 x i8> [[MASKEDOFF:%.*]], <vscale x 16 x i8> [[VS2:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
454 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
455 //
456 vuint8m2_t test_vcpop_v_u8m2_tumu(vbool4_t mask, vuint8m2_t maskedoff, vuint8m2_t vs2, size_t vl) {
457 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
458 }
459
460 // CHECK-LABEL: @test_vcpop_v_u8m4_tumu(
461 // CHECK-NEXT: entry:
462 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vcpopv.mask.nxv32i8.i64(<vscale x 32 x i8> [[MASKEDOFF:%.*]], <vscale x 32 x i8> [[VS2:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
463 // CHECK-NEXT: ret <vscale x 32 x i8> [[TMP0]]
464 //
465 vuint8m4_t test_vcpop_v_u8m4_tumu(vbool2_t mask, vuint8m4_t maskedoff, vuint8m4_t vs2, size_t vl) {
466 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
467 }
468
469 // CHECK-LABEL: @test_vcpop_v_u8m8_tumu(
470 // CHECK-NEXT: entry:
471 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vcpopv.mask.nxv64i8.i64(<vscale x 64 x i8> [[MASKEDOFF:%.*]], <vscale x 64 x i8> [[VS2:%.*]], <vscale x 64 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
472 // CHECK-NEXT: ret <vscale x 64 x i8> [[TMP0]]
473 //
474 vuint8m8_t test_vcpop_v_u8m8_tumu(vbool1_t mask, vuint8m8_t maskedoff, vuint8m8_t vs2, size_t vl) {
475 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
476 }
477
478 // CHECK-LABEL: @test_vcpop_v_u16mf4_tumu(
479 // CHECK-NEXT: entry:
480 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.vcpopv.mask.nxv1i16.i64(<vscale x 1 x i16> [[MASKEDOFF:%.*]], <vscale x 1 x i16> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
481 // CHECK-NEXT: ret <vscale x 1 x i16> [[TMP0]]
482 //
483 vuint16mf4_t test_vcpop_v_u16mf4_tumu(vbool64_t mask, vuint16mf4_t maskedoff, vuint16mf4_t vs2, size_t vl) {
484 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
485 }
486
487 // CHECK-LABEL: @test_vcpop_v_u16mf2_tumu(
488 // CHECK-NEXT: entry:
489 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.vcpopv.mask.nxv2i16.i64(<vscale x 2 x i16> [[MASKEDOFF:%.*]], <vscale x 2 x i16> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
490 // CHECK-NEXT: ret <vscale x 2 x i16> [[TMP0]]
491 //
492 vuint16mf2_t test_vcpop_v_u16mf2_tumu(vbool32_t mask, vuint16mf2_t maskedoff, vuint16mf2_t vs2, size_t vl) {
493 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
494 }
495
496 // CHECK-LABEL: @test_vcpop_v_u16m1_tumu(
497 // CHECK-NEXT: entry:
498 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.vcpopv.mask.nxv4i16.i64(<vscale x 4 x i16> [[MASKEDOFF:%.*]], <vscale x 4 x i16> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
499 // CHECK-NEXT: ret <vscale x 4 x i16> [[TMP0]]
500 //
501 vuint16m1_t test_vcpop_v_u16m1_tumu(vbool16_t mask, vuint16m1_t maskedoff, vuint16m1_t vs2, size_t vl) {
502 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
503 }
504
505 // CHECK-LABEL: @test_vcpop_v_u16m2_tumu(
506 // CHECK-NEXT: entry:
507 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.vcpopv.mask.nxv8i16.i64(<vscale x 8 x i16> [[MASKEDOFF:%.*]], <vscale x 8 x i16> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
508 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
509 //
510 vuint16m2_t test_vcpop_v_u16m2_tumu(vbool8_t mask, vuint16m2_t maskedoff, vuint16m2_t vs2, size_t vl) {
511 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
512 }
513
514 // CHECK-LABEL: @test_vcpop_v_u16m4_tumu(
515 // CHECK-NEXT: entry:
516 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.vcpopv.mask.nxv16i16.i64(<vscale x 16 x i16> [[MASKEDOFF:%.*]], <vscale x 16 x i16> [[VS2:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
517 // CHECK-NEXT: ret <vscale x 16 x i16> [[TMP0]]
518 //
519 vuint16m4_t test_vcpop_v_u16m4_tumu(vbool4_t mask, vuint16m4_t maskedoff, vuint16m4_t vs2, size_t vl) {
520 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
521 }
522
523 // CHECK-LABEL: @test_vcpop_v_u16m8_tumu(
524 // CHECK-NEXT: entry:
525 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.vcpopv.mask.nxv32i16.i64(<vscale x 32 x i16> [[MASKEDOFF:%.*]], <vscale x 32 x i16> [[VS2:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
526 // CHECK-NEXT: ret <vscale x 32 x i16> [[TMP0]]
527 //
528 vuint16m8_t test_vcpop_v_u16m8_tumu(vbool2_t mask, vuint16m8_t maskedoff, vuint16m8_t vs2, size_t vl) {
529 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
530 }
531
532 // CHECK-LABEL: @test_vcpop_v_u32mf2_tumu(
533 // CHECK-NEXT: entry:
534 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.vcpopv.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF:%.*]], <vscale x 1 x i32> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
535 // CHECK-NEXT: ret <vscale x 1 x i32> [[TMP0]]
536 //
537 vuint32mf2_t test_vcpop_v_u32mf2_tumu(vbool64_t mask, vuint32mf2_t maskedoff, vuint32mf2_t vs2, size_t vl) {
538 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
539 }
540
541 // CHECK-LABEL: @test_vcpop_v_u32m1_tumu(
542 // CHECK-NEXT: entry:
543 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.vcpopv.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF:%.*]], <vscale x 2 x i32> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
544 // CHECK-NEXT: ret <vscale x 2 x i32> [[TMP0]]
545 //
546 vuint32m1_t test_vcpop_v_u32m1_tumu(vbool32_t mask, vuint32m1_t maskedoff, vuint32m1_t vs2, size_t vl) {
547 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
548 }
549
550 // CHECK-LABEL: @test_vcpop_v_u32m2_tumu(
551 // CHECK-NEXT: entry:
552 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.vcpopv.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF:%.*]], <vscale x 4 x i32> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
553 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
554 //
555 vuint32m2_t test_vcpop_v_u32m2_tumu(vbool16_t mask, vuint32m2_t maskedoff, vuint32m2_t vs2, size_t vl) {
556 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
557 }
558
559 // CHECK-LABEL: @test_vcpop_v_u32m4_tumu(
560 // CHECK-NEXT: entry:
561 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.vcpopv.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF:%.*]], <vscale x 8 x i32> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
562 // CHECK-NEXT: ret <vscale x 8 x i32> [[TMP0]]
563 //
564 vuint32m4_t test_vcpop_v_u32m4_tumu(vbool8_t mask, vuint32m4_t maskedoff, vuint32m4_t vs2, size_t vl) {
565 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
566 }
567
568 // CHECK-LABEL: @test_vcpop_v_u32m8_tumu(
569 // CHECK-NEXT: entry:
570 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.vcpopv.mask.nxv16i32.i64(<vscale x 16 x i32> [[MASKEDOFF:%.*]], <vscale x 16 x i32> [[VS2:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
571 // CHECK-NEXT: ret <vscale x 16 x i32> [[TMP0]]
572 //
573 vuint32m8_t test_vcpop_v_u32m8_tumu(vbool4_t mask, vuint32m8_t maskedoff, vuint32m8_t vs2, size_t vl) {
574 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
575 }
576
577 // CHECK-LABEL: @test_vcpop_v_u64m1_tumu(
578 // CHECK-NEXT: entry:
579 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.vcpopv.mask.nxv1i64.i64(<vscale x 1 x i64> [[MASKEDOFF:%.*]], <vscale x 1 x i64> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
580 // CHECK-NEXT: ret <vscale x 1 x i64> [[TMP0]]
581 //
582 vuint64m1_t test_vcpop_v_u64m1_tumu(vbool64_t mask, vuint64m1_t maskedoff, vuint64m1_t vs2, size_t vl) {
583 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
584 }
585
586 // CHECK-LABEL: @test_vcpop_v_u64m2_tumu(
587 // CHECK-NEXT: entry:
588 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.vcpopv.mask.nxv2i64.i64(<vscale x 2 x i64> [[MASKEDOFF:%.*]], <vscale x 2 x i64> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
589 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
590 //
591 vuint64m2_t test_vcpop_v_u64m2_tumu(vbool32_t mask, vuint64m2_t maskedoff, vuint64m2_t vs2, size_t vl) {
592 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
593 }
594
595 // CHECK-LABEL: @test_vcpop_v_u64m4_tumu(
596 // CHECK-NEXT: entry:
597 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.vcpopv.mask.nxv4i64.i64(<vscale x 4 x i64> [[MASKEDOFF:%.*]], <vscale x 4 x i64> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
598 // CHECK-NEXT: ret <vscale x 4 x i64> [[TMP0]]
599 //
600 vuint64m4_t test_vcpop_v_u64m4_tumu(vbool16_t mask, vuint64m4_t maskedoff, vuint64m4_t vs2, size_t vl) {
601 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
602 }
603
604 // CHECK-LABEL: @test_vcpop_v_u64m8_tumu(
605 // CHECK-NEXT: entry:
606 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.vcpopv.mask.nxv8i64.i64(<vscale x 8 x i64> [[MASKEDOFF:%.*]], <vscale x 8 x i64> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 0)
607 // CHECK-NEXT: ret <vscale x 8 x i64> [[TMP0]]
608 //
609 vuint64m8_t test_vcpop_v_u64m8_tumu(vbool8_t mask, vuint64m8_t maskedoff, vuint64m8_t vs2, size_t vl) {
610 return __riscv_vcpop_tumu(mask, maskedoff, vs2, vl);
611 }
612
613 // CHECK-LABEL: @test_vcpop_v_u8mf8_mu(
614 // CHECK-NEXT: entry:
615 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i8> @llvm.riscv.vcpopv.mask.nxv1i8.i64(<vscale x 1 x i8> [[MASKEDOFF:%.*]], <vscale x 1 x i8> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
616 // CHECK-NEXT: ret <vscale x 1 x i8> [[TMP0]]
617 //
618 vuint8mf8_t test_vcpop_v_u8mf8_mu(vbool64_t mask, vuint8mf8_t maskedoff, vuint8mf8_t vs2, size_t vl) {
619 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
620 }
621
622 // CHECK-LABEL: @test_vcpop_v_u8mf4_mu(
623 // CHECK-NEXT: entry:
624 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i8> @llvm.riscv.vcpopv.mask.nxv2i8.i64(<vscale x 2 x i8> [[MASKEDOFF:%.*]], <vscale x 2 x i8> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
625 // CHECK-NEXT: ret <vscale x 2 x i8> [[TMP0]]
626 //
627 vuint8mf4_t test_vcpop_v_u8mf4_mu(vbool32_t mask, vuint8mf4_t maskedoff, vuint8mf4_t vs2, size_t vl) {
628 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
629 }
630
631 // CHECK-LABEL: @test_vcpop_v_u8mf2_mu(
632 // CHECK-NEXT: entry:
633 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i8> @llvm.riscv.vcpopv.mask.nxv4i8.i64(<vscale x 4 x i8> [[MASKEDOFF:%.*]], <vscale x 4 x i8> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
634 // CHECK-NEXT: ret <vscale x 4 x i8> [[TMP0]]
635 //
636 vuint8mf2_t test_vcpop_v_u8mf2_mu(vbool16_t mask, vuint8mf2_t maskedoff, vuint8mf2_t vs2, size_t vl) {
637 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
638 }
639
640 // CHECK-LABEL: @test_vcpop_v_u8m1_mu(
641 // CHECK-NEXT: entry:
642 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i8> @llvm.riscv.vcpopv.mask.nxv8i8.i64(<vscale x 8 x i8> [[MASKEDOFF:%.*]], <vscale x 8 x i8> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
643 // CHECK-NEXT: ret <vscale x 8 x i8> [[TMP0]]
644 //
645 vuint8m1_t test_vcpop_v_u8m1_mu(vbool8_t mask, vuint8m1_t maskedoff, vuint8m1_t vs2, size_t vl) {
646 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
647 }
648
649 // CHECK-LABEL: @test_vcpop_v_u8m2_mu(
650 // CHECK-NEXT: entry:
651 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i8> @llvm.riscv.vcpopv.mask.nxv16i8.i64(<vscale x 16 x i8> [[MASKEDOFF:%.*]], <vscale x 16 x i8> [[VS2:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
652 // CHECK-NEXT: ret <vscale x 16 x i8> [[TMP0]]
653 //
654 vuint8m2_t test_vcpop_v_u8m2_mu(vbool4_t mask, vuint8m2_t maskedoff, vuint8m2_t vs2, size_t vl) {
655 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
656 }
657
658 // CHECK-LABEL: @test_vcpop_v_u8m4_mu(
659 // CHECK-NEXT: entry:
660 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i8> @llvm.riscv.vcpopv.mask.nxv32i8.i64(<vscale x 32 x i8> [[MASKEDOFF:%.*]], <vscale x 32 x i8> [[VS2:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
661 // CHECK-NEXT: ret <vscale x 32 x i8> [[TMP0]]
662 //
663 vuint8m4_t test_vcpop_v_u8m4_mu(vbool2_t mask, vuint8m4_t maskedoff, vuint8m4_t vs2, size_t vl) {
664 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
665 }
666
667 // CHECK-LABEL: @test_vcpop_v_u8m8_mu(
668 // CHECK-NEXT: entry:
669 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 64 x i8> @llvm.riscv.vcpopv.mask.nxv64i8.i64(<vscale x 64 x i8> [[MASKEDOFF:%.*]], <vscale x 64 x i8> [[VS2:%.*]], <vscale x 64 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
670 // CHECK-NEXT: ret <vscale x 64 x i8> [[TMP0]]
671 //
672 vuint8m8_t test_vcpop_v_u8m8_mu(vbool1_t mask, vuint8m8_t maskedoff, vuint8m8_t vs2, size_t vl) {
673 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
674 }
675
676 // CHECK-LABEL: @test_vcpop_v_u16mf4_mu(
677 // CHECK-NEXT: entry:
678 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i16> @llvm.riscv.vcpopv.mask.nxv1i16.i64(<vscale x 1 x i16> [[MASKEDOFF:%.*]], <vscale x 1 x i16> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
679 // CHECK-NEXT: ret <vscale x 1 x i16> [[TMP0]]
680 //
681 vuint16mf4_t test_vcpop_v_u16mf4_mu(vbool64_t mask, vuint16mf4_t maskedoff, vuint16mf4_t vs2, size_t vl) {
682 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
683 }
684
685 // CHECK-LABEL: @test_vcpop_v_u16mf2_mu(
686 // CHECK-NEXT: entry:
687 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i16> @llvm.riscv.vcpopv.mask.nxv2i16.i64(<vscale x 2 x i16> [[MASKEDOFF:%.*]], <vscale x 2 x i16> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
688 // CHECK-NEXT: ret <vscale x 2 x i16> [[TMP0]]
689 //
690 vuint16mf2_t test_vcpop_v_u16mf2_mu(vbool32_t mask, vuint16mf2_t maskedoff, vuint16mf2_t vs2, size_t vl) {
691 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
692 }
693
694 // CHECK-LABEL: @test_vcpop_v_u16m1_mu(
695 // CHECK-NEXT: entry:
696 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i16> @llvm.riscv.vcpopv.mask.nxv4i16.i64(<vscale x 4 x i16> [[MASKEDOFF:%.*]], <vscale x 4 x i16> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
697 // CHECK-NEXT: ret <vscale x 4 x i16> [[TMP0]]
698 //
699 vuint16m1_t test_vcpop_v_u16m1_mu(vbool16_t mask, vuint16m1_t maskedoff, vuint16m1_t vs2, size_t vl) {
700 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
701 }
702
703 // CHECK-LABEL: @test_vcpop_v_u16m2_mu(
704 // CHECK-NEXT: entry:
705 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i16> @llvm.riscv.vcpopv.mask.nxv8i16.i64(<vscale x 8 x i16> [[MASKEDOFF:%.*]], <vscale x 8 x i16> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
706 // CHECK-NEXT: ret <vscale x 8 x i16> [[TMP0]]
707 //
708 vuint16m2_t test_vcpop_v_u16m2_mu(vbool8_t mask, vuint16m2_t maskedoff, vuint16m2_t vs2, size_t vl) {
709 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
710 }
711
712 // CHECK-LABEL: @test_vcpop_v_u16m4_mu(
713 // CHECK-NEXT: entry:
714 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i16> @llvm.riscv.vcpopv.mask.nxv16i16.i64(<vscale x 16 x i16> [[MASKEDOFF:%.*]], <vscale x 16 x i16> [[VS2:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
715 // CHECK-NEXT: ret <vscale x 16 x i16> [[TMP0]]
716 //
717 vuint16m4_t test_vcpop_v_u16m4_mu(vbool4_t mask, vuint16m4_t maskedoff, vuint16m4_t vs2, size_t vl) {
718 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
719 }
720
721 // CHECK-LABEL: @test_vcpop_v_u16m8_mu(
722 // CHECK-NEXT: entry:
723 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 32 x i16> @llvm.riscv.vcpopv.mask.nxv32i16.i64(<vscale x 32 x i16> [[MASKEDOFF:%.*]], <vscale x 32 x i16> [[VS2:%.*]], <vscale x 32 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
724 // CHECK-NEXT: ret <vscale x 32 x i16> [[TMP0]]
725 //
726 vuint16m8_t test_vcpop_v_u16m8_mu(vbool2_t mask, vuint16m8_t maskedoff, vuint16m8_t vs2, size_t vl) {
727 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
728 }
729
730 // CHECK-LABEL: @test_vcpop_v_u32mf2_mu(
731 // CHECK-NEXT: entry:
732 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i32> @llvm.riscv.vcpopv.mask.nxv1i32.i64(<vscale x 1 x i32> [[MASKEDOFF:%.*]], <vscale x 1 x i32> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
733 // CHECK-NEXT: ret <vscale x 1 x i32> [[TMP0]]
734 //
735 vuint32mf2_t test_vcpop_v_u32mf2_mu(vbool64_t mask, vuint32mf2_t maskedoff, vuint32mf2_t vs2, size_t vl) {
736 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
737 }
738
739 // CHECK-LABEL: @test_vcpop_v_u32m1_mu(
740 // CHECK-NEXT: entry:
741 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i32> @llvm.riscv.vcpopv.mask.nxv2i32.i64(<vscale x 2 x i32> [[MASKEDOFF:%.*]], <vscale x 2 x i32> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
742 // CHECK-NEXT: ret <vscale x 2 x i32> [[TMP0]]
743 //
744 vuint32m1_t test_vcpop_v_u32m1_mu(vbool32_t mask, vuint32m1_t maskedoff, vuint32m1_t vs2, size_t vl) {
745 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
746 }
747
748 // CHECK-LABEL: @test_vcpop_v_u32m2_mu(
749 // CHECK-NEXT: entry:
750 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i32> @llvm.riscv.vcpopv.mask.nxv4i32.i64(<vscale x 4 x i32> [[MASKEDOFF:%.*]], <vscale x 4 x i32> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
751 // CHECK-NEXT: ret <vscale x 4 x i32> [[TMP0]]
752 //
753 vuint32m2_t test_vcpop_v_u32m2_mu(vbool16_t mask, vuint32m2_t maskedoff, vuint32m2_t vs2, size_t vl) {
754 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
755 }
756
757 // CHECK-LABEL: @test_vcpop_v_u32m4_mu(
758 // CHECK-NEXT: entry:
759 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i32> @llvm.riscv.vcpopv.mask.nxv8i32.i64(<vscale x 8 x i32> [[MASKEDOFF:%.*]], <vscale x 8 x i32> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
760 // CHECK-NEXT: ret <vscale x 8 x i32> [[TMP0]]
761 //
762 vuint32m4_t test_vcpop_v_u32m4_mu(vbool8_t mask, vuint32m4_t maskedoff, vuint32m4_t vs2, size_t vl) {
763 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
764 }
765
766 // CHECK-LABEL: @test_vcpop_v_u32m8_mu(
767 // CHECK-NEXT: entry:
768 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 16 x i32> @llvm.riscv.vcpopv.mask.nxv16i32.i64(<vscale x 16 x i32> [[MASKEDOFF:%.*]], <vscale x 16 x i32> [[VS2:%.*]], <vscale x 16 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
769 // CHECK-NEXT: ret <vscale x 16 x i32> [[TMP0]]
770 //
771 vuint32m8_t test_vcpop_v_u32m8_mu(vbool4_t mask, vuint32m8_t maskedoff, vuint32m8_t vs2, size_t vl) {
772 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
773 }
774
775 // CHECK-LABEL: @test_vcpop_v_u64m1_mu(
776 // CHECK-NEXT: entry:
777 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 1 x i64> @llvm.riscv.vcpopv.mask.nxv1i64.i64(<vscale x 1 x i64> [[MASKEDOFF:%.*]], <vscale x 1 x i64> [[VS2:%.*]], <vscale x 1 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
778 // CHECK-NEXT: ret <vscale x 1 x i64> [[TMP0]]
779 //
780 vuint64m1_t test_vcpop_v_u64m1_mu(vbool64_t mask, vuint64m1_t maskedoff, vuint64m1_t vs2, size_t vl) {
781 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
782 }
783
784 // CHECK-LABEL: @test_vcpop_v_u64m2_mu(
785 // CHECK-NEXT: entry:
786 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 2 x i64> @llvm.riscv.vcpopv.mask.nxv2i64.i64(<vscale x 2 x i64> [[MASKEDOFF:%.*]], <vscale x 2 x i64> [[VS2:%.*]], <vscale x 2 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
787 // CHECK-NEXT: ret <vscale x 2 x i64> [[TMP0]]
788 //
789 vuint64m2_t test_vcpop_v_u64m2_mu(vbool32_t mask, vuint64m2_t maskedoff, vuint64m2_t vs2, size_t vl) {
790 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
791 }
792
793 // CHECK-LABEL: @test_vcpop_v_u64m4_mu(
794 // CHECK-NEXT: entry:
795 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 4 x i64> @llvm.riscv.vcpopv.mask.nxv4i64.i64(<vscale x 4 x i64> [[MASKEDOFF:%.*]], <vscale x 4 x i64> [[VS2:%.*]], <vscale x 4 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
796 // CHECK-NEXT: ret <vscale x 4 x i64> [[TMP0]]
797 //
798 vuint64m4_t test_vcpop_v_u64m4_mu(vbool16_t mask, vuint64m4_t maskedoff, vuint64m4_t vs2, size_t vl) {
799 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
800 }
801
802 // CHECK-LABEL: @test_vcpop_v_u64m8_mu(
803 // CHECK-NEXT: entry:
804 // CHECK-NEXT: [[TMP0:%.*]] = call <vscale x 8 x i64> @llvm.riscv.vcpopv.mask.nxv8i64.i64(<vscale x 8 x i64> [[MASKEDOFF:%.*]], <vscale x 8 x i64> [[VS2:%.*]], <vscale x 8 x i1> [[MASK:%.*]], i64 [[VL:%.*]], i64 1)
805 // CHECK-NEXT: ret <vscale x 8 x i64> [[TMP0]]
806 //
807 vuint64m8_t test_vcpop_v_u64m8_mu(vbool8_t mask, vuint64m8_t maskedoff, vuint64m8_t vs2, size_t vl) {
808 return __riscv_vcpop_mu(mask, maskedoff, vs2, vl);
809 }
810