1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
2 // REQUIRES: riscv-registered-target
3 // RUN: %clang_cc1 -triple riscv64 -target-feature +f -target-feature +d \
4 // RUN: -target-feature +v -target-feature +zfh -target-feature +zvfh \
5 // RUN: -target-feature +xsfvcp \
6 // RUN: -fsyntax-only -verify %s
7
8 #include <sifive_vector.h>
9
10 #define p27_26 (0b11)
11 #define p26 (0b1)
12 #define p24_20 (0b11111)
13 #define p11_7 (0b11111)
14 #define simm5 (15)
15
16 #define p27_26_overflow (0b100)
17 #define p26_overflow (0b10)
18 #define p24_20_overflow (0b100000)
19 #define p11_7_overflow (0b100001)
20 #define simm5_overflow (16)
21
22 // sf_vc_x_se
23
test_sf_vc_x_se_u8mf8_p27_26_not_constant(uint8_t rs1,size_t vl,int index)24 void test_sf_vc_x_se_u8mf8_p27_26_not_constant(uint8_t rs1, size_t vl, int index) {
25 // expected-error@+1 {{argument to '__riscv_sf_vc_x_se' must be a constant integer}}
26 __riscv_sf_vc_x_se_u8mf8(index, p24_20, p11_7, rs1, vl);
27 }
28
test_sf_vc_x_se_u8mf8_24_20_not_constant(uint8_t rs1,size_t vl,int index)29 void test_sf_vc_x_se_u8mf8_24_20_not_constant(uint8_t rs1, size_t vl, int index) {
30 // expected-error@+1 {{argument to '__riscv_sf_vc_x_se' must be a constant integer}}
31 __riscv_sf_vc_x_se_u8mf8(p27_26, index, p11_7, rs1, vl);
32 }
33
test_sf_vc_x_se_u8mf8_11_7_not_constant(uint8_t rs1,size_t vl,int index)34 void test_sf_vc_x_se_u8mf8_11_7_not_constant(uint8_t rs1, size_t vl, int index) {
35 // expected-error@+1 {{argument to '__riscv_sf_vc_x_se' must be a constant integer}}
36 __riscv_sf_vc_x_se_u8mf8(p27_26, p24_20, index, rs1, vl);
37 }
38
test_sf_vc_x_se_u8mf8_p27_26_overflow(uint8_t rs1,size_t vl)39 void test_sf_vc_x_se_u8mf8_p27_26_overflow(uint8_t rs1, size_t vl) {
40 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
41 __riscv_sf_vc_x_se_u8mf8(p27_26_overflow, p24_20, p11_7, rs1, vl);
42 }
43
test_sf_vc_x_se_u8mf8_p24_20_overflow(uint8_t rs1,size_t vl)44 void test_sf_vc_x_se_u8mf8_p24_20_overflow(uint8_t rs1, size_t vl) {
45 // expected-error@+1 {{argument value 32 is outside the valid range [0, 31]}}
46 __riscv_sf_vc_x_se_u8mf8(p27_26, p24_20_overflow, p11_7, rs1, vl);
47 }
48
test_sf_vc_x_se_u8mf8_p11_7_overflow(uint8_t rs1,size_t vl)49 void test_sf_vc_x_se_u8mf8_p11_7_overflow(uint8_t rs1, size_t vl) {
50 // expected-error@+1 {{argument value 33 is outside the valid range [0, 31]}}
51 __riscv_sf_vc_x_se_u8mf8(p27_26, p24_20, p11_7_overflow, rs1, vl);
52 }
53
54 // sf_vc_i_se
55
test_sf_vc_i_se_u8mf8_p27_26_not_constant(size_t vl,int index)56 void test_sf_vc_i_se_u8mf8_p27_26_not_constant(size_t vl, int index) {
57 // expected-error@+1 {{argument to '__riscv_sf_vc_i_se' must be a constant integer}}
58 __riscv_sf_vc_i_se_u8mf8(index, p24_20, p11_7, simm5, vl);
59 }
60
test_sf_vc_i_se_u8mf8_24_20_not_constant(size_t vl,int index)61 void test_sf_vc_i_se_u8mf8_24_20_not_constant(size_t vl, int index) {
62 // expected-error@+1 {{argument to '__riscv_sf_vc_i_se' must be a constant integer}}
63 __riscv_sf_vc_i_se_u8mf8(p27_26, index, p11_7, simm5, vl);
64 }
65
test_sf_vc_i_se_u8mf8_11_7_not_constant(size_t vl,int index)66 void test_sf_vc_i_se_u8mf8_11_7_not_constant(size_t vl, int index) {
67 // expected-error@+1 {{argument to '__riscv_sf_vc_i_se' must be a constant integer}}
68 __riscv_sf_vc_i_se_u8mf8(p27_26, p24_20, index, simm5, vl);
69 }
70
test_sf_vc_i_se_u8mf8_simm5_not_constant(size_t vl,int index)71 void test_sf_vc_i_se_u8mf8_simm5_not_constant(size_t vl, int index) {
72 // expected-error@+1 {{argument to '__riscv_sf_vc_i_se' must be a constant integer}}
73 __riscv_sf_vc_i_se_u8mf8(p27_26, p24_20, p11_7, index, vl);
74 }
75
test_sf_vc_i_se_u8mf8_p27_26_overflow(size_t vl)76 void test_sf_vc_i_se_u8mf8_p27_26_overflow(size_t vl) {
77 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
78 __riscv_sf_vc_i_se_u8mf8(p27_26_overflow, p24_20, p11_7, simm5, vl);
79 }
80
test_sf_vc_i_se_u8mf8_p24_20_overflow(size_t vl)81 void test_sf_vc_i_se_u8mf8_p24_20_overflow(size_t vl) {
82 // expected-error@+1 {{argument value 32 is outside the valid range [0, 31]}}
83 __riscv_sf_vc_i_se_u8mf8(p27_26, p24_20_overflow, p11_7, simm5, vl);
84 }
85
test_sf_vc_i_se_u8mf8_p11_7_overflow(size_t vl)86 void test_sf_vc_i_se_u8mf8_p11_7_overflow(size_t vl) {
87 // expected-error@+1 {{argument value 33 is outside the valid range [0, 31]}}
88 __riscv_sf_vc_i_se_u8mf8(p27_26, p24_20, p11_7_overflow, simm5, vl);
89 }
90
test_sf_vc_i_se_u8mf8_simm5_overflow(size_t vl)91 void test_sf_vc_i_se_u8mf8_simm5_overflow(size_t vl) {
92 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
93 __riscv_sf_vc_i_se_u8mf8(p27_26, p24_20, p11_7, simm5_overflow, vl);
94 }
95
96 // sf_vc_v_x_se
97
test_sf_vc_v_x_se_u8mf8_p27_26_not_constant(uint8_t rs1,size_t vl,int index)98 vuint8mf8_t test_sf_vc_v_x_se_u8mf8_p27_26_not_constant(uint8_t rs1, size_t vl, int index) {
99 // expected-error@+1 {{argument to '__riscv_sf_vc_v_x_se_u8mf8' must be a constant integer}}
100 return __riscv_sf_vc_v_x_se_u8mf8(index, p24_20, rs1, vl);
101 }
102
test_sf_vc_v_x_se_u8mf8_p24_20_not_constant(uint8_t rs1,size_t vl,int index)103 vuint8mf8_t test_sf_vc_v_x_se_u8mf8_p24_20_not_constant(uint8_t rs1, size_t vl, int index) {
104 // expected-error@+1 {{argument to '__riscv_sf_vc_v_x_se_u8mf8' must be a constant integer}}
105 return __riscv_sf_vc_v_x_se_u8mf8(p27_26, index, rs1, vl);
106 }
107
test_sf_vc_v_x_se_u8mf8_p27_26_overflow(uint8_t rs1,size_t vl)108 vuint8mf8_t test_sf_vc_v_x_se_u8mf8_p27_26_overflow(uint8_t rs1, size_t vl) {
109 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
110 return __riscv_sf_vc_v_x_se_u8mf8(p27_26_overflow, p24_20, rs1, vl);
111 }
112
test_sf_vc_v_x_se_u8mf8_p24_20_overflow(uint8_t rs1,size_t vl)113 vuint8mf8_t test_sf_vc_v_x_se_u8mf8_p24_20_overflow(uint8_t rs1, size_t vl) {
114 // expected-error@+1 {{argument value 32 is outside the valid range [0, 31]}}
115 return __riscv_sf_vc_v_x_se_u8mf8(p27_26, p24_20_overflow, rs1, vl);
116 }
117
118 // sf_vc_v_x
119
test_sf_vc_v_x_u8mf8_p27_26_not_constant(uint8_t rs1,size_t vl,int index)120 vuint8mf8_t test_sf_vc_v_x_u8mf8_p27_26_not_constant(uint8_t rs1, size_t vl, int index) {
121 // expected-error@+1 {{argument to '__riscv_sf_vc_v_x_u8mf8' must be a constant integer}}
122 return __riscv_sf_vc_v_x_u8mf8(index, p24_20, rs1, vl);
123 }
124
test_sf_vc_v_x_u8mf8_p24_20_not_constant(uint8_t rs1,size_t vl,int index)125 vuint8mf8_t test_sf_vc_v_x_u8mf8_p24_20_not_constant(uint8_t rs1, size_t vl, int index) {
126 // expected-error@+1 {{argument to '__riscv_sf_vc_v_x_u8mf8' must be a constant integer}}
127 return __riscv_sf_vc_v_x_u8mf8(p27_26, index, rs1, vl);
128 }
129
test_sf_vc_v_x_u8mf8_p27_26_overflow(uint8_t rs1,size_t vl)130 vuint8mf8_t test_sf_vc_v_x_u8mf8_p27_26_overflow(uint8_t rs1, size_t vl) {
131 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
132 return __riscv_sf_vc_v_x_u8mf8(p27_26_overflow, p24_20, rs1, vl);
133 }
134
test_sf_vc_v_x_u8mf8_p24_20_overflow(uint8_t rs1,size_t vl)135 vuint8mf8_t test_sf_vc_v_x_u8mf8_p24_20_overflow(uint8_t rs1, size_t vl) {
136 // expected-error@+1 {{argument value 32 is outside the valid range [0, 31]}}
137 return __riscv_sf_vc_v_x_u8mf8(p27_26, p24_20_overflow, rs1, vl);
138 }
139
140 // sf_vc_v_i_se
141
test_sf_vc_v_i_se_u8mf8_p27_26_not_constant(size_t vl,int index)142 vuint8mf8_t test_sf_vc_v_i_se_u8mf8_p27_26_not_constant(size_t vl, int index) {
143 // expected-error@+1 {{argument to '__riscv_sf_vc_v_i_se_u8mf8' must be a constant integer}}
144 return __riscv_sf_vc_v_i_se_u8mf8(index, p24_20, simm5, vl);
145 }
146
test_sf_vc_v_i_se_u8mf8_p24_20_not_constant(size_t vl,int index)147 vuint8mf8_t test_sf_vc_v_i_se_u8mf8_p24_20_not_constant(size_t vl, int index) {
148 // expected-error@+1 {{argument to '__riscv_sf_vc_v_i_se_u8mf8' must be a constant integer}}
149 return __riscv_sf_vc_v_i_se_u8mf8(p27_26, index, simm5, vl);
150 }
151
test_sf_vc_v_i_se_u8mf8_simm5_not_constant(size_t vl,int index)152 vuint8mf8_t test_sf_vc_v_i_se_u8mf8_simm5_not_constant(size_t vl, int index) {
153 // expected-error@+1 {{argument to '__riscv_sf_vc_v_i_se_u8mf8' must be a constant integer}}
154 return __riscv_sf_vc_v_i_se_u8mf8(p27_26, p24_20, index, vl);
155 }
156
test_sf_vc_v_i_se_u8mf8_p27_26_overflow(size_t vl,int index)157 vuint8mf8_t test_sf_vc_v_i_se_u8mf8_p27_26_overflow(size_t vl, int index) {
158 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
159 return __riscv_sf_vc_v_i_se_u8mf8(p27_26_overflow, p24_20, simm5, vl);
160 }
161
test_sf_vc_v_i_se_u8mf8_p24_20_overflow(size_t vl)162 vuint8mf8_t test_sf_vc_v_i_se_u8mf8_p24_20_overflow(size_t vl) {
163 // expected-error@+1 {{argument value 32 is outside the valid range [0, 31]}}
164 return __riscv_sf_vc_v_i_se_u8mf8(p27_26, p24_20_overflow, simm5, vl);
165 }
166
test_sf_vc_v_i_se_u8mf8_simm5_overflow(size_t vl)167 vuint8mf8_t test_sf_vc_v_i_se_u8mf8_simm5_overflow(size_t vl) {
168 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
169 return __riscv_sf_vc_v_i_se_u8mf8(p27_26, p24_20, simm5_overflow, vl);
170 }
171
172 // sf_vc_v_i
173
test_sf_vc_v_i_u8mf8_p27_26_not_constant(size_t vl,int index)174 vuint8mf8_t test_sf_vc_v_i_u8mf8_p27_26_not_constant(size_t vl, int index) {
175 // expected-error@+1 {{argument to '__riscv_sf_vc_v_i_u8mf8' must be a constant integer}}
176 return __riscv_sf_vc_v_i_u8mf8(index, p24_20, simm5, vl);
177 }
178
test_sf_vc_v_i_u8mf8_p24_20_not_constant(size_t vl,int index)179 vuint8mf8_t test_sf_vc_v_i_u8mf8_p24_20_not_constant(size_t vl, int index) {
180 // expected-error@+1 {{argument to '__riscv_sf_vc_v_i_u8mf8' must be a constant integer}}
181 return __riscv_sf_vc_v_i_u8mf8(p27_26, index, simm5, vl);
182 }
183
test_sf_vc_v_i_u8mf8_simm5_not_constant(size_t vl,int index)184 vuint8mf8_t test_sf_vc_v_i_u8mf8_simm5_not_constant(size_t vl, int index) {
185 // expected-error@+1 {{argument to '__riscv_sf_vc_v_i_u8mf8' must be a constant integer}}
186 return __riscv_sf_vc_v_i_u8mf8(p27_26, p24_20, index, vl);
187 }
188
test_sf_vc_v_i_u8mf8_p27_26_overflow(size_t vl,int index)189 vuint8mf8_t test_sf_vc_v_i_u8mf8_p27_26_overflow(size_t vl, int index) {
190 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
191 return __riscv_sf_vc_v_i_u8mf8(p27_26_overflow, p24_20, simm5, vl);
192 }
193
test_sf_vc_v_i_u8mf8_p24_20_overflow(size_t vl)194 vuint8mf8_t test_sf_vc_v_i_u8mf8_p24_20_overflow(size_t vl) {
195 // expected-error@+1 {{argument value 32 is outside the valid range [0, 31]}}
196 return __riscv_sf_vc_v_i_u8mf8(p27_26, p24_20_overflow, simm5, vl);
197 }
198
test_sf_vc_v_i_u8mf8_simm5_overflow(size_t vl)199 vuint8mf8_t test_sf_vc_v_i_u8mf8_simm5_overflow(size_t vl) {
200 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
201 return __riscv_sf_vc_v_i_u8mf8(p27_26, p24_20, simm5_overflow, vl);
202 }
203
204 // sf_vc_vv_se
205
test_sf_vc_vv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)206 void test_sf_vc_vv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
207 // expected-error@+1 {{argument to '__riscv_sf_vc_vv_se_u8mf8' must be a constant integer}}
208 __riscv_sf_vc_vv_se_u8mf8(index, p11_7, vs2, vs1, vl);
209 }
210
test_sf_vc_vv_se_u8mf8_p11_7_not_constant(vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)211 void test_sf_vc_vv_se_u8mf8_p11_7_not_constant(vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
212 // expected-error@+1 {{argument to '__riscv_sf_vc_vv_se_u8mf8' must be a constant integer}}
213 __riscv_sf_vc_vv_se_u8mf8(p27_26, index, vs2, vs1, vl);
214 }
215
test_sf_vc_vv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)216 void test_sf_vc_vv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
217 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
218 __riscv_sf_vc_vv_se_u8mf8(p27_26_overflow, p11_7, vs2, vs1, vl);
219 }
220
test_sf_vc_vv_se_u8mf8_p11_7_overflow(vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)221 void test_sf_vc_vv_se_u8mf8_p11_7_overflow(vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
222 // expected-error@+1 {{argument value 33 is outside the valid range [0, 31]}}
223 __riscv_sf_vc_vv_se_u8mf8(p27_26, p11_7_overflow, vs2, vs1, vl);
224 }
225
226 // sf_vc_xv_se
227
test_sf_vc_xv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)228 void test_sf_vc_xv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
229 // expected-error@+1 {{argument to '__riscv_sf_vc_xv_se_u8mf8' must be a constant integer}}
230 __riscv_sf_vc_xv_se_u8mf8(index, p11_7, vs2, rs1, vl);
231 }
232
test_sf_vc_xv_se_u8mf8_p11_7_not_constant(vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)233 void test_sf_vc_xv_se_u8mf8_p11_7_not_constant(vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
234 // expected-error@+1 {{argument to '__riscv_sf_vc_xv_se_u8mf8' must be a constant integer}}
235 __riscv_sf_vc_xv_se_u8mf8(p27_26, index, vs2, rs1, vl);
236 }
237
test_sf_vc_xv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2,uint8_t rs1,size_t vl)238 void test_sf_vc_xv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
239 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
240 __riscv_sf_vc_xv_se_u8mf8(p27_26_overflow, p11_7, vs2, rs1, vl);
241 }
242
test_sf_vc_xv_se_u8mf8_p11_7_overflow(vuint8mf8_t vs2,uint8_t rs1,size_t vl)243 void test_sf_vc_xv_se_u8mf8_p11_7_overflow(vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
244 // expected-error@+1 {{argument value 33 is outside the valid range [0, 31]}}
245 __riscv_sf_vc_xv_se_u8mf8(p27_26, p11_7_overflow, vs2, rs1, vl);
246 }
247
248 // sf_vc_iv_se
249
test_sf_vc_iv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2,size_t vl,int index)250 void test_sf_vc_iv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2, size_t vl, int index) {
251 // expected-error@+1 {{argument to '__riscv_sf_vc_iv_se_u8mf8' must be a constant integer}}
252 __riscv_sf_vc_iv_se_u8mf8(index, p11_7, vs2, simm5, vl);
253 }
254
test_sf_vc_iv_se_u8mf8_p11_7_not_constant(vuint8mf8_t vs2,size_t vl,int index)255 void test_sf_vc_iv_se_u8mf8_p11_7_not_constant(vuint8mf8_t vs2, size_t vl, int index) {
256 // expected-error@+1 {{argument to '__riscv_sf_vc_iv_se_u8mf8' must be a constant integer}}
257 __riscv_sf_vc_iv_se_u8mf8(p27_26, index, vs2, simm5, vl);
258 }
259
test_sf_vc_iv_se_u8mf8_simm5_not_constant(vuint8mf8_t vs2,size_t vl,int index)260 void test_sf_vc_iv_se_u8mf8_simm5_not_constant(vuint8mf8_t vs2, size_t vl, int index) {
261 // expected-error@+1 {{argument to '__riscv_sf_vc_iv_se_u8mf8' must be a constant integer}}
262 __riscv_sf_vc_iv_se_u8mf8(p27_26, p11_7, vs2, index, vl);
263 }
264
test_sf_vc_iv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2,size_t vl)265 void test_sf_vc_iv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2, size_t vl) {
266 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
267 __riscv_sf_vc_iv_se_u8mf8(p27_26_overflow, p11_7, vs2, simm5, vl);
268 }
269
test_sf_vc_iv_se_u8mf8_p11_7_overflow(vuint8mf8_t vs2,size_t vl)270 void test_sf_vc_iv_se_u8mf8_p11_7_overflow(vuint8mf8_t vs2, size_t vl) {
271 // expected-error@+1 {{argument value 33 is outside the valid range [0, 31]}}
272 __riscv_sf_vc_iv_se_u8mf8(p27_26, p11_7_overflow, vs2, simm5, vl);
273 }
274
test_sf_vc_iv_se_u8mf8_simm5_overflow(vuint8mf8_t vs2,size_t vl)275 void test_sf_vc_iv_se_u8mf8_simm5_overflow(vuint8mf8_t vs2, size_t vl) {
276 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
277 __riscv_sf_vc_iv_se_u8mf8(p27_26, p11_7, vs2, simm5_overflow, vl);
278 }
279
280 // sf_vc_fv_se
281
test_sf_vc_fv_se_u16mf4_p26_not_constant(vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)282 void test_sf_vc_fv_se_u16mf4_p26_not_constant(vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
283 // expected-error@+1 {{argument to '__riscv_sf_vc_fv_se_u16mf4' must be a constant integer}}
284 __riscv_sf_vc_fv_se_u16mf4(index, p11_7, vs2, fs1, vl);
285 }
286
test_sf_vc_fv_se_u16mf4_p11_7_not_constant(vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)287 void test_sf_vc_fv_se_u16mf4_p11_7_not_constant(vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
288 // expected-error@+1 {{argument to '__riscv_sf_vc_fv_se_u16mf4' must be a constant integer}}
289 __riscv_sf_vc_fv_se_u16mf4(p26, index, vs2, fs1, vl);
290 }
291
test_sf_vc_fv_se_u16mf4_p26_overflow(vuint16mf4_t vs2,_Float16 fs1,size_t vl)292 void test_sf_vc_fv_se_u16mf4_p26_overflow(vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
293 // expected-error@+1 {{argument value 2 is outside the valid range [0, 1]}}
294 __riscv_sf_vc_fv_se_u16mf4(p26_overflow, p11_7, vs2, fs1, vl);
295 }
296
test_sf_vc_fv_se_u16mf4_p11_7_overflow(vuint16mf4_t vs2,_Float16 fs1,size_t vl)297 void test_sf_vc_fv_se_u16mf4_p11_7_overflow(vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
298 // expected-error@+1 {{argument value 33 is outside the valid range [0, 31]}}
299 __riscv_sf_vc_fv_se_u16mf4(p26, p11_7_overflow, vs2, fs1, vl);
300 }
301
302 // sf_vc_v_vv_se
303
test_sf_vc_v_vv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)304 vuint8mf8_t test_sf_vc_v_vv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
305 // expected-error@+1 {{argument to '__riscv_sf_vc_v_vv_se_u8mf8' must be a constant integer}}
306 return __riscv_sf_vc_v_vv_se_u8mf8(index, vs2, vs1, vl);
307 }
308
test_sf_vc_v_vv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)309 vuint8mf8_t test_sf_vc_v_vv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
310 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
311 return __riscv_sf_vc_v_vv_se_u8mf8(p27_26_overflow, vs2, vs1, vl);
312 }
313
314 // sf_vc_v_vv
315
test_sf_vc_v_vv_u8mf8_p27_26_not_constant(vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)316 vuint8mf8_t test_sf_vc_v_vv_u8mf8_p27_26_not_constant(vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
317 // expected-error@+1 {{argument to '__riscv_sf_vc_v_vv_u8mf8' must be a constant integer}}
318 return __riscv_sf_vc_v_vv_u8mf8(index, vs2, vs1, vl);
319 }
320
test_sf_vc_v_vv_u8mf8_p27_26_overflow(vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)321 vuint8mf8_t test_sf_vc_v_vv_u8mf8_p27_26_overflow(vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
322 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
323 return __riscv_sf_vc_v_vv_u8mf8(p27_26_overflow, vs2, vs1, vl);
324 }
325
326 // sf_vc_v_xv_se
327
test_sf_vc_v_xv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)328 vuint8mf8_t test_sf_vc_v_xv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
329 // expected-error@+1 {{argument to '__riscv_sf_vc_v_xv_se_u8mf8' must be a constant integer}}
330 return __riscv_sf_vc_v_xv_se_u8mf8(index, vs2, rs1, vl);
331 }
332
test_sf_vc_v_xv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2,uint8_t rs1,size_t vl)333 vuint8mf8_t test_sf_vc_v_xv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
334 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
335 return __riscv_sf_vc_v_xv_se_u8mf8(p27_26_overflow, vs2, rs1, vl);
336 }
337
338 // sf_vc_v_xv
339
test_sf_vc_v_xv_u8mf8_p27_26_not_constant(vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)340 vuint8mf8_t test_sf_vc_v_xv_u8mf8_p27_26_not_constant(vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
341 // expected-error@+1 {{argument to '__riscv_sf_vc_v_xv_u8mf8' must be a constant integer}}
342 return __riscv_sf_vc_v_xv_u8mf8(index, vs2, rs1, vl);
343 }
344
test_sf_vc_v_xv_u8mf8_p27_26_overflow(vuint8mf8_t vs2,uint8_t rs1,size_t vl)345 vuint8mf8_t test_sf_vc_v_xv_u8mf8_p27_26_overflow(vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
346 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
347 return __riscv_sf_vc_v_xv_u8mf8(p27_26_overflow, vs2, rs1, vl);
348 }
349
350 // sf_vc_v_iv_se
351
test_sf_vc_v_iv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2,size_t vl,int index)352 vuint8mf8_t test_sf_vc_v_iv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vs2, size_t vl, int index) {
353 // expected-error@+1 {{argument to '__riscv_sf_vc_v_iv_se_u8mf8' must be a constant integer}}
354 return __riscv_sf_vc_v_iv_se_u8mf8(index, vs2, simm5, vl);
355 }
356
test_sf_vc_v_iv_se_u8mf8_simm5_not_constant(vuint8mf8_t vs2,size_t vl,int index)357 vuint8mf8_t test_sf_vc_v_iv_se_u8mf8_simm5_not_constant(vuint8mf8_t vs2, size_t vl, int index) {
358 // expected-error@+1 {{argument to '__riscv_sf_vc_v_iv_se_u8mf8' must be a constant integer}}
359 return __riscv_sf_vc_v_iv_se_u8mf8(p27_26, vs2, index, vl);
360 }
361
test_sf_vc_v_iv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2,size_t vl)362 vuint8mf8_t test_sf_vc_v_iv_se_u8mf8_p27_26_overflow(vuint8mf8_t vs2, size_t vl) {
363 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
364 return __riscv_sf_vc_v_iv_se_u8mf8(p27_26_overflow, vs2, simm5, vl);
365 }
366
test_sf_vc_v_iv_se_u8mf8_simm5_overflow(vuint8mf8_t vs2,size_t vl)367 vuint8mf8_t test_sf_vc_v_iv_se_u8mf8_simm5_overflow(vuint8mf8_t vs2, size_t vl) {
368 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
369 return __riscv_sf_vc_v_iv_se_u8mf8(p27_26, vs2, simm5_overflow, vl);
370 }
371
372 // sf_vc_v_iv
373
test_sf_vc_v_iv_u8mf8_p27_26_not_constant(vuint8mf8_t vs2,size_t vl,int index)374 vuint8mf8_t test_sf_vc_v_iv_u8mf8_p27_26_not_constant(vuint8mf8_t vs2, size_t vl, int index) {
375 // expected-error@+1 {{argument to '__riscv_sf_vc_v_iv_u8mf8' must be a constant integer}}
376 return __riscv_sf_vc_v_iv_u8mf8(index, vs2, simm5, vl);
377 }
378
test_sf_vc_v_iv_u8mf8_simm5_not_constant(vuint8mf8_t vs2,size_t vl,int index)379 vuint8mf8_t test_sf_vc_v_iv_u8mf8_simm5_not_constant(vuint8mf8_t vs2, size_t vl, int index) {
380 // expected-error@+1 {{argument to '__riscv_sf_vc_v_iv_u8mf8' must be a constant integer}}
381 return __riscv_sf_vc_v_iv_u8mf8(p27_26, vs2, index, vl);
382 }
383
test_sf_vc_v_iv_u8mf8_p27_26_overflow(vuint8mf8_t vs2,size_t vl)384 vuint8mf8_t test_sf_vc_v_iv_u8mf8_p27_26_overflow(vuint8mf8_t vs2, size_t vl) {
385 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
386 return __riscv_sf_vc_v_iv_u8mf8(p27_26_overflow, vs2, simm5, vl);
387 }
388
test_sf_vc_v_iv_u8mf8_simm5_overflow(vuint8mf8_t vs2,size_t vl)389 vuint8mf8_t test_sf_vc_v_iv_u8mf8_simm5_overflow(vuint8mf8_t vs2, size_t vl) {
390 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
391 return __riscv_sf_vc_v_iv_u8mf8(p27_26, vs2, simm5_overflow, vl);
392 }
393
394 // sf_vc_v_fv_se
395
test_sf_vc_v_fv_se_u16mf4_p26_not_constant(vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)396 vuint16mf4_t test_sf_vc_v_fv_se_u16mf4_p26_not_constant(vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
397 //expected-error@+1 {{argument to '__riscv_sf_vc_v_fv_se_u16mf4' must be a constant integer}}
398 return __riscv_sf_vc_v_fv_se_u16mf4(index, vs2, fs1, vl);
399 }
400
test_sf_vc_v_fv_se_u16mf4_p26_overflow(vuint16mf4_t vs2,_Float16 fs1,size_t vl)401 vuint16mf4_t test_sf_vc_v_fv_se_u16mf4_p26_overflow(vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
402 // expected-error@+1 {{argument value 2 is outside the valid range [0, 1]}}
403 return __riscv_sf_vc_v_fv_se_u16mf4(p26_overflow, vs2, fs1, vl);
404 }
405
406 // sf_vc_v_fv
407
test_sf_vc_v_fv_u16mf4_p26_not_constant(vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)408 vuint16mf4_t test_sf_vc_v_fv_u16mf4_p26_not_constant(vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
409 // expected-error@+1 {{argument to '__riscv_sf_vc_v_fv_se_u16mf4' must be a constant integer}}
410 return __riscv_sf_vc_v_fv_se_u16mf4(index, vs2, fs1, vl);
411 }
412
test_sf_vc_v_fv_u16mf4_p26_overflow(vuint16mf4_t vs2,_Float16 fs1,size_t vl)413 vuint16mf4_t test_sf_vc_v_fv_u16mf4_p26_overflow(vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
414 // expected-error@+1 {{argument value 2 is outside the valid range [0, 1]}}
415 return __riscv_sf_vc_v_fv_u16mf4(p26_overflow, vs2, fs1, vl);
416 }
417
418 // sf_vc_vvv_se
419
test_sf_vc_vvv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)420 void test_sf_vc_vvv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
421 // expected-error@+1 {{argument to '__riscv_sf_vc_vvv_se_u8mf8' must be a constant integer}}
422 __riscv_sf_vc_vvv_se_u8mf8(index, vd, vs2, vs1, vl);
423 }
424
test_sf_vc_vvv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)425 void test_sf_vc_vvv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
426 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
427 __riscv_sf_vc_vvv_se_u8mf8(p27_26_overflow, vd, vs2, vs1, vl);
428 }
429
430 // sf_vc_xvv_se
431
test_sf_vc_xvv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)432 void test_sf_vc_xvv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
433 // expected-error@+1 {{argument to '__riscv_sf_vc_xvv_se_u8mf8' must be a constant integer}}
434 __riscv_sf_vc_xvv_se_u8mf8(index, vd, vs2, rs1, vl);
435 }
436
test_sf_vc_xvv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl)437 void test_sf_vc_xvv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
438 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
439 __riscv_sf_vc_xvv_se_u8mf8(p27_26_overflow, vd, vs2, rs1, vl);
440 }
441
442 // sf_vc_ivv_se
443
test_sf_vc_ivv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl,int index)444 void test_sf_vc_ivv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl, int index) {
445 // expected-error@+1 {{argument to '__riscv_sf_vc_ivv_se_u8mf8' must be a constant integer}}
446 __riscv_sf_vc_ivv_se_u8mf8(index, vd, vs2, simm5, vl);
447 }
448
test_sf_vc_ivv_se_u8mf8_simm5_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl,int index)449 void test_sf_vc_ivv_se_u8mf8_simm5_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl, int index) {
450 // expected-error@+1 {{argument to '__riscv_sf_vc_ivv_se_u8mf8' must be a constant integer}}
451 __riscv_sf_vc_ivv_se_u8mf8(p27_26, vd, vs2, index, vl);
452 }
453
test_sf_vc_ivv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl)454 void test_sf_vc_ivv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl) {
455 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
456 __riscv_sf_vc_ivv_se_u8mf8(p27_26_overflow, vd, vs2, simm5, vl);
457 }
458
test_sf_vc_ivv_se_u8mf8_simm5_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl)459 void test_sf_vc_ivv_se_u8mf8_simm5_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl) {
460 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
461 __riscv_sf_vc_ivv_se_u8mf8(p27_26, vd, vs2, simm5_overflow, vl);
462 }
463
464 // sf_vc_fvv_se
465
test_sf_vc_fvv_se_u16mf4_p26_not_constant(vuint16mf4_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)466 void test_sf_vc_fvv_se_u16mf4_p26_not_constant(vuint16mf4_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
467 // expected-error@+1 {{argument to '__riscv_sf_vc_fvv_se_u16mf4' must be a constant integer}}
468 __riscv_sf_vc_fvv_se_u16mf4(index, vd, vs2, fs1, vl);
469 }
470
test_sf_vc_fvv_se_u16mf4_p26_overflow(vuint16mf4_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl)471 void test_sf_vc_fvv_se_u16mf4_p26_overflow(vuint16mf4_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
472 // expected-error@+1 {{argument value 2 is outside the valid range [0, 1]}}
473 __riscv_sf_vc_fvv_se_u16mf4(p26_overflow, vd, vs2, fs1, vl);
474 }
475
476 // sf_vc_v_vvv_se
477
test_sf_vc_v_vvv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)478 vuint8mf8_t test_sf_vc_v_vvv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
479 // expected-error@+1 {{argument to '__riscv_sf_vc_v_vvv_se_u8mf8' must be a constant integer}}
480 return __riscv_sf_vc_v_vvv_se_u8mf8(index, vd, vs2, vs1, vl);
481 }
482
test_sf_vc_v_vvv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)483 vuint8mf8_t test_sf_vc_v_vvv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
484 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
485 return __riscv_sf_vc_v_vvv_se_u8mf8(p27_26_overflow, vd, vs2, vs1, vl);
486 }
487
488 // sf_vc_v_vvv
489
test_sf_vc_v_vvv_u8mf8_p27_26_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)490 vuint8mf8_t test_sf_vc_v_vvv_u8mf8_p27_26_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
491 // expected-error@+1 {{argument to '__riscv_sf_vc_v_vvv_u8mf8' must be a constant integer}}
492 return __riscv_sf_vc_v_vvv_u8mf8(index, vd, vs2, vs1, vl);
493 }
494
test_sf_vc_v_vvv_u8mf8_p27_26_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)495 vuint8mf8_t test_sf_vc_v_vvv_u8mf8_p27_26_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
496 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
497 return __riscv_sf_vc_v_vvv_u8mf8(p27_26_overflow, vd, vs2, vs1, vl);
498 }
499
500 // sf_vc_v_xvv_se
501
test_sf_vc_v_xvv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)502 vuint8mf8_t test_sf_vc_v_xvv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
503 // expected-error@+1 {{argument to '__riscv_sf_vc_v_xvv_se_u8mf8' must be a constant integer}}
504 return __riscv_sf_vc_v_xvv_se_u8mf8(index, vd, vs2, rs1, vl);
505 }
506
test_sf_vc_v_xvv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl)507 vuint8mf8_t test_sf_vc_v_xvv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
508 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
509 return __riscv_sf_vc_v_xvv_se_u8mf8(p27_26_overflow, vd, vs2, rs1, vl);
510 }
511
512 // sf_vc_v_xvv
513
test_sf_vc_v_xvv_u8mf8_p27_26_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)514 vuint8mf8_t test_sf_vc_v_xvv_u8mf8_p27_26_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
515 // expected-error@+1 {{argument to '__riscv_sf_vc_v_xvv_u8mf8' must be a constant integer}}
516 return __riscv_sf_vc_v_xvv_u8mf8(index, vd, vs2, rs1, vl);
517 }
518
test_sf_vc_v_xvv_u8mf8_p27_26_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl)519 vuint8mf8_t test_sf_vc_v_xvv_u8mf8_p27_26_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
520 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
521 return __riscv_sf_vc_v_xvv_u8mf8(p27_26_overflow, vd, vs2, rs1, vl);
522 }
523
524 // sf_vc_v_ivv_se
525
test_sf_vc_v_ivv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl,int index)526 vuint8mf8_t test_sf_vc_v_ivv_se_u8mf8_p27_26_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl, int index) {
527 // expected-error@+1 {{argument to '__riscv_sf_vc_v_ivv_se_u8mf8' must be a constant integer}}
528 return __riscv_sf_vc_v_ivv_se_u8mf8(index, vd, vs2, simm5, vl);
529 }
530
test_sf_vc_v_ivv_se_u8mf8_simm5_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl,int index)531 vuint8mf8_t test_sf_vc_v_ivv_se_u8mf8_simm5_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl, int index) {
532 // expected-error@+1 {{argument to '__riscv_sf_vc_v_ivv_se_u8mf8' must be a constant integer}}
533 return __riscv_sf_vc_v_ivv_se_u8mf8(p27_26, vd, vs2, index, vl);
534 }
535
test_sf_vc_v_ivv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl)536 vuint8mf8_t test_sf_vc_v_ivv_se_u8mf8_p27_26_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl) {
537 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
538 return __riscv_sf_vc_v_ivv_se_u8mf8(p27_26_overflow, vd, vs2, simm5, vl);
539 }
540
test_sf_vc_v_ivv_se_u8mf8_simm5_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl)541 vuint8mf8_t test_sf_vc_v_ivv_se_u8mf8_simm5_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl) {
542 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
543 return __riscv_sf_vc_v_ivv_se_u8mf8(p27_26, vd, vs2, simm5_overflow, vl);
544 }
545
546 // sf_vc_v_ivv
547
test_sf_vc_v_ivv_u8mf8_p27_26_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl,int index)548 vuint8mf8_t test_sf_vc_v_ivv_u8mf8_p27_26_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl, int index) {
549 // expected-error@+1 {{argument to '__riscv_sf_vc_v_ivv_u8mf8' must be a constant integer}}
550 return __riscv_sf_vc_v_ivv_u8mf8(index, vd, vs2, simm5, vl);
551 }
552
test_sf_vc_v_ivv_u8mf8_simm5_not_constant(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl,int index)553 vuint8mf8_t test_sf_vc_v_ivv_u8mf8_simm5_not_constant(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl, int index) {
554 // expected-error@+1 {{argument to '__riscv_sf_vc_v_ivv_u8mf8' must be a constant integer}}
555 return __riscv_sf_vc_v_ivv_u8mf8(p27_26, vd, vs2, index, vl);
556 }
557
test_sf_vc_v_ivv_u8mf8_p27_26_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl)558 vuint8mf8_t test_sf_vc_v_ivv_u8mf8_p27_26_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl) {
559 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
560 return __riscv_sf_vc_v_ivv_u8mf8(p27_26_overflow, vd, vs2, simm5, vl);
561 }
562
test_sf_vc_v_ivv_u8mf8_simm5_overflow(vuint8mf8_t vd,vuint8mf8_t vs2,size_t vl)563 vuint8mf8_t test_sf_vc_v_ivv_u8mf8_simm5_overflow(vuint8mf8_t vd, vuint8mf8_t vs2, size_t vl) {
564 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
565 return __riscv_sf_vc_v_ivv_u8mf8(p27_26, vd, vs2, simm5_overflow, vl);
566 }
567
568 // sf_vc_v_fvv_se
569
test_sf_vc_v_fvv_se_u16mf4_p26_not_constant(vuint16mf4_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)570 vuint16mf4_t test_sf_vc_v_fvv_se_u16mf4_p26_not_constant(vuint16mf4_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
571 // expected-error@+1 {{argument to '__riscv_sf_vc_v_fvv_se_u16mf4' must be a constant integer}}
572 return __riscv_sf_vc_v_fvv_se_u16mf4(index, vd, vs2, fs1, vl);
573 }
574
test_sf_vc_v_fvv_se_u16mf4_p26_overflow(vuint16mf4_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl)575 vuint16mf4_t test_sf_vc_v_fvv_se_u16mf4_p26_overflow(vuint16mf4_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
576 // expected-error@+1 {{argument value 2 is outside the valid range [0, 1]}}
577 return __riscv_sf_vc_v_fvv_se_u16mf4(p26_overflow, vd, vs2, fs1, vl);
578 }
579
580 // sf_vc_v_fvv
581
test_sf_vc_v_fvv_u16mf4_p26_not_constant(vuint16mf4_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)582 vuint16mf4_t test_sf_vc_v_fvv_u16mf4_p26_not_constant(vuint16mf4_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
583 // expected-error@+1 {{argument to '__riscv_sf_vc_v_fvv_u16mf4' must be a constant integer}}
584 return __riscv_sf_vc_v_fvv_u16mf4(index, vd, vs2, fs1, vl);
585 }
586
test_sf_vc_v_fvv_u16mf4_p26_overflow(vuint16mf4_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl)587 vuint16mf4_t test_sf_vc_v_fvv_u16mf4_p26_overflow(vuint16mf4_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
588 // expected-error@+1 {{argument value 2 is outside the valid range [0, 1]}}
589 return __riscv_sf_vc_v_fvv_u16mf4(p26_overflow, vd, vs2, fs1, vl);
590 }
591
592 // sf_vc_vvw_se
593
test_sf_vc_vvw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)594 void test_sf_vc_vvw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
595 // expected-error@+1 {{argument to '__riscv_sf_vc_vvw_se_u8mf8' must be a constant integer}}
596 __riscv_sf_vc_vvw_se_u8mf8(index, vd, vs2, vs1, vl);
597 }
598
test_sf_vc_vvw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)599 void test_sf_vc_vvw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
600 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
601 __riscv_sf_vc_vvw_se_u8mf8(p27_26_overflow, vd, vs2, vs1, vl);
602 }
603
604 // sf_vc_xvw_se
605
test_sf_vc_xvw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)606 void test_sf_vc_xvw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
607 // expected-error@+1 {{argument to '__riscv_sf_vc_xvw_se_u8mf8' must be a constant integer}}
608 __riscv_sf_vc_xvw_se_u8mf8(index, vd, vs2, rs1, vl);
609 }
610
test_sf_vc_xvw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl)611 void test_sf_vc_xvw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
612 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
613 __riscv_sf_vc_xvw_se_u8mf8(p27_26_overflow, vd, vs2, rs1, vl);
614 }
615
616 // sf_vc_ivw_se
617
test_sf_vc_ivw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl,int index)618 void test_sf_vc_ivw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl, int index) {
619 // expected-error@+1 {{argument to '__riscv_sf_vc_ivw_se_u8mf8' must be a constant integer}}
620 __riscv_sf_vc_ivw_se_u8mf8(index, vd, vs2, simm5, vl);
621 }
622
test_sf_vc_ivw_se_u8mf8_simm5_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl,int index)623 void test_sf_vc_ivw_se_u8mf8_simm5_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl, int index) {
624 // expected-error@+1 {{argument to '__riscv_sf_vc_ivw_se_u8mf8' must be a constant integer}}
625 __riscv_sf_vc_ivw_se_u8mf8(p27_26, vd, vs2, index, vl);
626 }
627
test_sf_vc_ivw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl)628 void test_sf_vc_ivw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl) {
629 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
630 __riscv_sf_vc_ivw_se_u8mf8(p27_26_overflow, vd, vs2, simm5, vl);
631 }
632
test_sf_vc_ivw_se_u8mf8_simm5_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl)633 void test_sf_vc_ivw_se_u8mf8_simm5_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl) {
634 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
635 __riscv_sf_vc_ivw_se_u8mf8(p27_26, vd, vs2, simm5_overflow, vl);
636 }
637
638 // sf_vc_fvw_se
639
test_sf_vc_fvw_se_u16mf4_p26_not_constant(vuint32mf2_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)640 void test_sf_vc_fvw_se_u16mf4_p26_not_constant(vuint32mf2_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
641 // expected-error@+1 {{argument to '__riscv_sf_vc_fvw_se_u16mf4' must be a constant integer}}
642 __riscv_sf_vc_fvw_se_u16mf4(index, vd, vs2, fs1, vl);
643 }
644
test_sf_vc_fvw_se_u16mf4_p26_overflow(vuint32mf2_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl)645 void test_sf_vc_fvw_se_u16mf4_p26_overflow(vuint32mf2_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
646 // expected-error@+1 {{argument value 2 is outside the valid range [0, 1]}}
647 __riscv_sf_vc_fvw_se_u16mf4(p26_overflow, vd, vs2, fs1, vl);
648 }
649
650 // sf_vc_v_vvw_se
651
test_sf_vc_v_vvw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)652 vuint16mf4_t test_sf_vc_v_vvw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
653 // expected-error@+1 {{argument to '__riscv_sf_vc_v_vvw_se_u8mf8' must be a constant integer}}
654 return __riscv_sf_vc_v_vvw_se_u8mf8(index, vd, vs2, vs1, vl);
655 }
656
test_sf_vc_v_vvw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)657 vuint16mf4_t test_sf_vc_v_vvw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
658 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
659 return __riscv_sf_vc_v_vvw_se_u8mf8(p27_26_overflow, vd, vs2, vs1, vl);
660 }
661
662 // sf_vc_v_vvw
663
test_sf_vc_v_vvw_u8mf8_p27_26_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl,int index)664 vuint16mf4_t test_sf_vc_v_vvw_u8mf8_p27_26_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl, int index) {
665 // expected-error@+1 {{argument to '__riscv_sf_vc_v_vvw_u8mf8' must be a constant integer}}
666 return __riscv_sf_vc_v_vvw_u8mf8(index, vd, vs2, vs1, vl);
667 }
668
test_sf_vc_v_vvw_u8mf8_p27_26_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,vuint8mf8_t vs1,size_t vl)669 vuint16mf4_t test_sf_vc_v_vvw_u8mf8_p27_26_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, vuint8mf8_t vs1, size_t vl) {
670 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
671 return __riscv_sf_vc_v_vvw_u8mf8(p27_26_overflow, vd, vs2, vs1, vl);
672 }
673
674 // sf_vc_v_xvw_se
675
test_sf_vc_v_xvw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)676 vuint16mf4_t test_sf_vc_v_xvw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
677 // expected-error@+1 {{argument to '__riscv_sf_vc_v_xvw_se_u8mf8' must be a constant integer}}
678 return __riscv_sf_vc_v_xvw_se_u8mf8(index, vd, vs2, rs1, vl);
679 }
680
test_sf_vc_v_xvw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl)681 vuint16mf4_t test_sf_vc_v_xvw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
682 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
683 return __riscv_sf_vc_v_xvw_se_u8mf8(p27_26_overflow, vd, vs2, rs1, vl);
684 }
685
686 // sf_vc_v_xvw
687
test_sf_vc_v_xvw_u8mf8_p27_26_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl,int index)688 vuint16mf4_t test_sf_vc_v_xvw_u8mf8_p27_26_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl, int index) {
689 // expected-error@+1 {{argument to '__riscv_sf_vc_v_xvw_u8mf8' must be a constant integer}}
690 return __riscv_sf_vc_v_xvw_u8mf8(index, vd, vs2, rs1, vl);
691 }
692
test_sf_vc_v_xvw_u8mf8_p27_26_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,uint8_t rs1,size_t vl)693 vuint16mf4_t test_sf_vc_v_xvw_u8mf8_p27_26_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, uint8_t rs1, size_t vl) {
694 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
695 return __riscv_sf_vc_v_xvw_u8mf8(p27_26_overflow, vd, vs2, rs1, vl);
696 }
697
698 // sf_vc_v_ivw_se
699
test_sf_vc_v_ivw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl,int index)700 vuint16mf4_t test_sf_vc_v_ivw_se_u8mf8_p27_26_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl, int index) {
701 // expected-error@+1 {{argument to '__riscv_sf_vc_v_ivw_se_u8mf8' must be a constant integer}}
702 return __riscv_sf_vc_v_ivw_se_u8mf8(index, vd, vs2, simm5, vl);
703 }
704
test_sf_vc_v_ivw_se_u8mf8_simm5_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl,int index)705 vuint16mf4_t test_sf_vc_v_ivw_se_u8mf8_simm5_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl, int index) {
706 // expected-error@+1 {{argument to '__riscv_sf_vc_v_ivw_se_u8mf8' must be a constant integer}}
707 return __riscv_sf_vc_v_ivw_se_u8mf8(p27_26, vd, vs2, index, vl);
708 }
709
test_sf_vc_v_ivw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl)710 vuint16mf4_t test_sf_vc_v_ivw_se_u8mf8_p27_26_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl) {
711 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
712 return __riscv_sf_vc_v_ivw_se_u8mf8(p27_26_overflow, vd, vs2, simm5, vl);
713 }
714
test_sf_vc_v_ivw_se_u8mf8_simm5_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl)715 vuint16mf4_t test_sf_vc_v_ivw_se_u8mf8_simm5_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl) {
716 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
717 return __riscv_sf_vc_v_ivw_se_u8mf8(p27_26, vd, vs2, simm5_overflow, vl);
718 }
719
720 // sf_vc_v_ivw
721
test_sf_vc_v_ivw_u8mf8_p27_26_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl,int index)722 vuint16mf4_t test_sf_vc_v_ivw_u8mf8_p27_26_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl, int index) {
723 // expected-error@+1 {{argument to '__riscv_sf_vc_v_ivw_u8mf8' must be a constant integer}}
724 return __riscv_sf_vc_v_ivw_u8mf8(index, vd, vs2, simm5, vl);
725 }
726
test_sf_vc_v_ivw_u8mf8_simm5_not_constant(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl,int index)727 vuint16mf4_t test_sf_vc_v_ivw_u8mf8_simm5_not_constant(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl, int index) {
728 // expected-error@+1 {{argument to '__riscv_sf_vc_v_ivw_u8mf8' must be a constant integer}}
729 return __riscv_sf_vc_v_ivw_u8mf8(p27_26, vd, vs2, index, vl);
730 }
731
test_sf_vc_v_ivw_u8mf8_p27_26_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl)732 vuint16mf4_t test_sf_vc_v_ivw_u8mf8_p27_26_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl) {
733 // expected-error@+1 {{argument value 4 is outside the valid range [0, 3]}}
734 return __riscv_sf_vc_v_ivw_u8mf8(p27_26_overflow, vd, vs2, simm5, vl);
735 }
736
test_sf_vc_v_ivw_u8mf8_simm5_overflow(vuint16mf4_t vd,vuint8mf8_t vs2,size_t vl)737 vuint16mf4_t test_sf_vc_v_ivw_u8mf8_simm5_overflow(vuint16mf4_t vd, vuint8mf8_t vs2, size_t vl) {
738 // expected-error@+1 {{argument value 16 is outside the valid range [-16, 15]}}
739 return __riscv_sf_vc_v_ivw_u8mf8(p27_26, vd, vs2, simm5_overflow, vl);
740 }
741
742 // sf_vc_v_fvw_se
743
test_sf_vc_v_fvw_se_u16mf4_p26_not_constant(vuint32mf2_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)744 vuint32mf2_t test_sf_vc_v_fvw_se_u16mf4_p26_not_constant(vuint32mf2_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
745 // expected-error@+1 {{argument to '__riscv_sf_vc_v_fvw_se_u16mf4' must be a constant integer}}
746 return __riscv_sf_vc_v_fvw_se_u16mf4(index, vd, vs2, fs1, vl);
747 }
748
test_sf_vc_v_fvw_se_u16mf4_p26_overflow(vuint32mf2_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl)749 vuint32mf2_t test_sf_vc_v_fvw_se_u16mf4_p26_overflow(vuint32mf2_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
750 // expected-error@+1 {{argument value 2 is outside the valid range [0, 1]}}
751 return __riscv_sf_vc_v_fvw_se_u16mf4(p26_overflow, vd, vs2, fs1, vl);
752 }
753
754 // sf_vc_v_fvw
755
test_sf_vc_v_fvw_u16mf4_p26_not_constant(vuint32mf2_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl,int index)756 vuint32mf2_t test_sf_vc_v_fvw_u16mf4_p26_not_constant(vuint32mf2_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl, int index) {
757 // expected-error@+1 {{argument to '__riscv_sf_vc_v_fvw_u16mf4' must be a constant integer}}
758 return __riscv_sf_vc_v_fvw_u16mf4(index, vd, vs2, fs1, vl);
759 }
760
test_sf_vc_v_fvw_u16mf4_p26_overflow(vuint32mf2_t vd,vuint16mf4_t vs2,_Float16 fs1,size_t vl)761 vuint32mf2_t test_sf_vc_v_fvw_u16mf4_p26_overflow(vuint32mf2_t vd, vuint16mf4_t vs2, _Float16 fs1, size_t vl) {
762 // expected-error@+1 {{argument value 2 is outside the valid range [0, 1]}}
763 return __riscv_sf_vc_v_fvw_u16mf4(p26_overflow, vd, vs2, fs1, vl);
764 }
765