| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
|
| 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 |
} |