| 1 |
/* Builtins macros for RISC-V 'V' Extension for GNU compiler. |
| 2 |
Copyright (C) 2022-2025 Free Software Foundation, Inc. |
| 3 |
Contributed by Ju-Zhe Zhong ([email protected]), RiVAI Technologies Ltd. |
| 4 |
|
| 5 |
This file is part of GCC. |
| 6 |
|
| 7 |
GCC is free software; you can redistribute it and/or modify |
| 8 |
it under the terms of the GNU General Public License as published by |
| 9 |
the Free Software Foundation; either version 3, or (at your option) |
| 10 |
any later version. |
| 11 |
|
| 12 |
GCC is distributed in the hope that it will be useful, |
| 13 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 |
GNU General Public License for more details. |
| 16 |
|
| 17 |
You should have received a copy of the GNU General Public License |
| 18 |
along with GCC; see the file COPYING3. If not see |
| 19 |
<http://www.gnu.org/licenses/>. */ |
| 20 |
|
| 21 |
/* Use "DEF_RVV_TYPE" macro to define RVV datatype builtins. |
| 22 |
1.The 'NAME' argument is the name exposed to users. |
| 23 |
For example, "vint32m1_t". |
| 24 |
2.The 'NCHARS' argument is the length of ABI-name. |
| 25 |
For example, length of "__rvv_int32m1_t" is 15. |
| 26 |
3.The 'ABI_NAME' argument is the ABI-name. For example, "__rvv_int32m1_t". |
| 27 |
4.The 'SCALAR_TYPE' argument is associated scalar type which is used in |
| 28 |
"build_vector_type_for_mode". For "vint32m1_t", we use "intSI_type_node" in |
| 29 |
RV64. Otherwise, we use "long_integer_type_node". |
| 30 |
5.The 'VECTOR_MODE' is the machine modes of corresponding RVV type used |
| 31 |
in "build_vector_type_for_mode". |
| 32 |
For example: VECTOR_MODE = RVVM1SImode for "vint32m1_t". |
| 33 |
6.The 'VECTOR_SUFFIX' define mode suffix for vector type. |
| 34 |
For example: type_suffixes[VECTOR_TYPE_vin32m1_t].vector = i32m1. |
| 35 |
7.The 'SCALAR_SUFFIX' define mode suffix for scalar type. |
| 36 |
For example: type_suffixes[VECTOR_TYPE_vin32m1_t].scalar = i32. |
| 37 |
8.The 'VSETVL_SUFFIX' define mode suffix for vsetvli instruction. |
| 38 |
For example: type_suffixes[VECTOR_TYPE_vin32m1_t].vsetvl = e32m1. |
| 39 |
*/ |
| 40 |
|
| 41 |
#ifndef DEF_RVV_TYPE |
| 42 |
#define DEF_RVV_TYPE(NAME, NCHARS, ABI_NAME, SCALAR_TYPE, VECTOR_MODE, \ |
| 43 |
VECTOR_SUFFIX, SCALAR_SUFFIX, VSETVL_SUFFIX) |
| 44 |
#endif |
| 45 |
|
| 46 |
#ifndef DEF_RVV_TUPLE_TYPE |
| 47 |
#define DEF_RVV_TUPLE_TYPE(NAME, NCHARS, ABI_NAME, SUBPART_TYPE, SCALAR_TYPE, \ |
| 48 |
NF, VECTOR_SUFFIX) |
| 49 |
#endif |
| 50 |
|
| 51 |
/* Use "DEF_RVV_OP_TYPE" macro to define RVV operand types. |
| 52 |
The 'NAME' will be concatenated into intrinsic function name. */ |
| 53 |
#ifndef DEF_RVV_OP_TYPE |
| 54 |
#define DEF_RVV_OP_TYPE(NAME) |
| 55 |
#endif |
| 56 |
|
| 57 |
/* Use "DEF_RVV_PRED_TYPE" macro to define RVV predication types. |
| 58 |
The 'NAME' will be concatenated into intrinsic function name. */ |
| 59 |
#ifndef DEF_RVV_PRED_TYPE |
| 60 |
#define DEF_RVV_PRED_TYPE(NAME) |
| 61 |
#endif |
| 62 |
|
| 63 |
/* Use "DEF_RVV_BASE_TYPE" macro to define RVV base types. |
| 64 |
The 'NAME' will be concatenated into intrinsic function name. */ |
| 65 |
#ifndef DEF_RVV_BASE_TYPE |
| 66 |
#define DEF_RVV_BASE_TYPE(NAME, TYPE) |
| 67 |
#endif |
| 68 |
|
| 69 |
/* Use "DEF_RVV_TYPE_INDEX" macro to define RVV function types. */ |
| 70 |
#ifndef DEF_RVV_TYPE_INDEX |
| 71 |
#define DEF_RVV_TYPE_INDEX( \ |
| 72 |
VECTOR, MASK, SIGNED, UNSIGNED, SIGNED_EEW8_INDEX, EEW8_INDEX, EEW16_INDEX, \ |
| 73 |
EEW32_INDEX, EEW64_INDEX, SHIFT, DOUBLE_TRUNC, QUAD_TRUNC, QUAD_EMUL, \ |
| 74 |
QUAD_EMUL_SIGNED, QUAD_EMUL_UNSIGNED, QUAD_FIX, QUAD_FIX_SIGNED, \ |
| 75 |
QUAD_FIX_UNSIGNED, OCT_TRUNC, DOUBLE_TRUNC_SCALAR, DOUBLE_TRUNC_SIGNED, \ |
| 76 |
DOUBLE_TRUNC_UNSIGNED, DOUBLE_TRUNC_UNSIGNED_SCALAR, \ |
| 77 |
DOUBLE_TRUNC_BFLOAT_SCALAR, DOUBLE_TRUNC_BFLOAT, DOUBLE_TRUNC_FLOAT, FLOAT, \ |
| 78 |
LMUL1, WLMUL1, QLMUL1, QLMUL1_SIGNED, QLMUL1_UNSIGNED, XFQF, EEW8_INTERPRET, \ |
| 79 |
EEW16_INTERPRET, EEW32_INTERPRET, EEW64_INTERPRET, BOOL1_INTERPRET, \ |
| 80 |
BOOL2_INTERPRET, BOOL4_INTERPRET, BOOL8_INTERPRET, BOOL16_INTERPRET, \ |
| 81 |
BOOL32_INTERPRET, BOOL64_INTERPRET, SIGNED_EEW8_LMUL1_INTERPRET, \ |
| 82 |
SIGNED_EEW16_LMUL1_INTERPRET, SIGNED_EEW32_LMUL1_INTERPRET, \ |
| 83 |
SIGNED_EEW64_LMUL1_INTERPRET, UNSIGNED_EEW8_LMUL1_INTERPRET, \ |
| 84 |
UNSIGNED_EEW16_LMUL1_INTERPRET, UNSIGNED_EEW32_LMUL1_INTERPRET, \ |
| 85 |
UNSIGNED_EEW64_LMUL1_INTERPRET, X2_VLMUL_EXT, X4_VLMUL_EXT, X8_VLMUL_EXT, \ |
| 86 |
X16_VLMUL_EXT, X32_VLMUL_EXT, X64_VLMUL_EXT, TUPLE_SUBPART) |
| 87 |
#endif |
| 88 |
|
| 89 |
/* Define RVV_VXRM rounding mode enum for fixed-point intrinsics. */ |
| 90 |
#ifndef DEF_RVV_VXRM_ENUM |
| 91 |
#define DEF_RVV_VXRM_ENUM(NAME, VALUE) |
| 92 |
#endif |
| 93 |
|
| 94 |
/* Define RVV_FRM rounding mode enum for floating-point intrinsics. */ |
| 95 |
#ifndef DEF_RVV_FRM_ENUM |
| 96 |
#define DEF_RVV_FRM_ENUM(NAME, VALUE) |
| 97 |
#endif |
| 98 |
|
| 99 |
/* SEW/LMUL = 64: |
| 100 |
Only enable when TARGET_MIN_VLEN > 32. |
| 101 |
Machine mode = RVVMF64BImode. */ |
| 102 |
DEF_RVV_TYPE (vbool64_t, 14, __rvv_bool64_t, boolean, RVVMF64BI, _b64, , ) |
| 103 |
/* SEW/LMUL = 32: |
| 104 |
Machine mode = RVVMF32BImode. */ |
| 105 |
DEF_RVV_TYPE (vbool32_t, 14, __rvv_bool32_t, boolean, RVVMF32BI, _b32, , ) |
| 106 |
/* SEW/LMUL = 16: |
| 107 |
Machine mode = RVVMF16BImode. */ |
| 108 |
DEF_RVV_TYPE (vbool16_t, 14, __rvv_bool16_t, boolean, RVVMF16BI, _b16, , ) |
| 109 |
/* SEW/LMUL = 8: |
| 110 |
Machine mode = RVVMF8BImode. */ |
| 111 |
DEF_RVV_TYPE (vbool8_t, 13, __rvv_bool8_t, boolean, RVVMF8BI, _b8, , ) |
| 112 |
/* SEW/LMUL = 4: |
| 113 |
Machine mode = RVVMF4BImode. */ |
| 114 |
DEF_RVV_TYPE (vbool4_t, 13, __rvv_bool4_t, boolean, RVVMF4BI, _b4, , ) |
| 115 |
/* SEW/LMUL = 2: |
| 116 |
Machine mode = RVVMF2BImode. */ |
| 117 |
DEF_RVV_TYPE (vbool2_t, 13, __rvv_bool2_t, boolean, RVVMF2BI, _b2, , ) |
| 118 |
/* SEW/LMUL = 1: |
| 119 |
Machine mode = RVVM1BImode. */ |
| 120 |
DEF_RVV_TYPE (vbool1_t, 13, __rvv_bool1_t, boolean, RVVM1BI, _b1, , ) |
| 121 |
|
| 122 |
/* LMUL = 1/8: |
| 123 |
Only enable when TARGET_MIN_VLEN > 32. |
| 124 |
Machine mode = RVVMF8QImode. */ |
| 125 |
DEF_RVV_TYPE (vint8mf8_t, 15, __rvv_int8mf8_t, int8, RVVMF8QI, _i8mf8, _i8, |
| 126 |
_e8mf8) |
| 127 |
DEF_RVV_TYPE (vuint8mf8_t, 16, __rvv_uint8mf8_t, uint8, RVVMF8QI, _u8mf8, _u8, |
| 128 |
_e8mf8) |
| 129 |
/* Define tuple types for SEW = 8, LMUL = MF8. */ |
| 130 |
DEF_RVV_TUPLE_TYPE (vint8mf8x2_t, 17, __rvv_int8mf8x2_t, vint8mf8_t, int8, 2, _i8mf8x2) |
| 131 |
DEF_RVV_TUPLE_TYPE (vuint8mf8x2_t, 18, __rvv_uint8mf8x2_t, vuint8mf8_t, uint8, 2, _u8mf8x2) |
| 132 |
DEF_RVV_TUPLE_TYPE (vint8mf8x3_t, 17, __rvv_int8mf8x3_t, vint8mf8_t, int8, 3, _i8mf8x3) |
| 133 |
DEF_RVV_TUPLE_TYPE (vuint8mf8x3_t, 18, __rvv_uint8mf8x3_t, vuint8mf8_t, uint8, 3, _u8mf8x3) |
| 134 |
DEF_RVV_TUPLE_TYPE (vint8mf8x4_t, 17, __rvv_int8mf8x4_t, vint8mf8_t, int8, 4, _i8mf8x4) |
| 135 |
DEF_RVV_TUPLE_TYPE (vuint8mf8x4_t, 18, __rvv_uint8mf8x4_t, vuint8mf8_t, uint8, 4, _u8mf8x4) |
| 136 |
DEF_RVV_TUPLE_TYPE (vint8mf8x5_t, 17, __rvv_int8mf8x5_t, vint8mf8_t, int8, 5, _i8mf8x5) |
| 137 |
DEF_RVV_TUPLE_TYPE (vuint8mf8x5_t, 18, __rvv_uint8mf8x5_t, vuint8mf8_t, uint8, 5, _u8mf8x5) |
| 138 |
DEF_RVV_TUPLE_TYPE (vint8mf8x6_t, 17, __rvv_int8mf8x6_t, vint8mf8_t, int8, 6, _i8mf8x6) |
| 139 |
DEF_RVV_TUPLE_TYPE (vuint8mf8x6_t, 18, __rvv_uint8mf8x6_t, vuint8mf8_t, uint8, 6, _u8mf8x6) |
| 140 |
DEF_RVV_TUPLE_TYPE (vint8mf8x7_t, 17, __rvv_int8mf8x7_t, vint8mf8_t, int8, 7, _i8mf8x7) |
| 141 |
DEF_RVV_TUPLE_TYPE (vuint8mf8x7_t, 18, __rvv_uint8mf8x7_t, vuint8mf8_t, uint8, 7, _u8mf8x7) |
| 142 |
DEF_RVV_TUPLE_TYPE (vint8mf8x8_t, 17, __rvv_int8mf8x8_t, vint8mf8_t, int8, 8, _i8mf8x8) |
| 143 |
DEF_RVV_TUPLE_TYPE (vuint8mf8x8_t, 18, __rvv_uint8mf8x8_t, vuint8mf8_t, uint8, 8, _u8mf8x8) |
| 144 |
/* LMUL = 1/4: |
| 145 |
Machine mode = RVVMF4QImode. */ |
| 146 |
DEF_RVV_TYPE (vint8mf4_t, 15, __rvv_int8mf4_t, int8, RVVMF4QI, _i8mf4, _i8, |
| 147 |
_e8mf4) |
| 148 |
DEF_RVV_TYPE (vuint8mf4_t, 16, __rvv_uint8mf4_t, uint8, RVVMF4QI, _u8mf4, _u8, |
| 149 |
_e8mf4) |
| 150 |
/* Define tuple types for SEW = 8, LMUL = MF4. */ |
| 151 |
DEF_RVV_TUPLE_TYPE (vint8mf4x2_t, 17, __rvv_int8mf4x2_t, vint8mf4_t, int8, 2, _i8mf4x2) |
| 152 |
DEF_RVV_TUPLE_TYPE (vuint8mf4x2_t, 18, __rvv_uint8mf4x2_t, vuint8mf4_t, uint8, 2, _u8mf4x2) |
| 153 |
DEF_RVV_TUPLE_TYPE (vint8mf4x3_t, 17, __rvv_int8mf4x3_t, vint8mf4_t, int8, 3, _i8mf4x3) |
| 154 |
DEF_RVV_TUPLE_TYPE (vuint8mf4x3_t, 18, __rvv_uint8mf4x3_t, vuint8mf4_t, uint8, 3, _u8mf4x3) |
| 155 |
DEF_RVV_TUPLE_TYPE (vint8mf4x4_t, 17, __rvv_int8mf4x4_t, vint8mf4_t, int8, 4, _i8mf4x4) |
| 156 |
DEF_RVV_TUPLE_TYPE (vuint8mf4x4_t, 18, __rvv_uint8mf4x4_t, vuint8mf4_t, uint8, 4, _u8mf4x4) |
| 157 |
DEF_RVV_TUPLE_TYPE (vint8mf4x5_t, 17, __rvv_int8mf4x5_t, vint8mf4_t, int8, 5, _i8mf4x5) |
| 158 |
DEF_RVV_TUPLE_TYPE (vuint8mf4x5_t, 18, __rvv_uint8mf4x5_t, vuint8mf4_t, uint8, 5, _u8mf4x5) |
| 159 |
DEF_RVV_TUPLE_TYPE (vint8mf4x6_t, 17, __rvv_int8mf4x6_t, vint8mf4_t, int8, 6, _i8mf4x6) |
| 160 |
DEF_RVV_TUPLE_TYPE (vuint8mf4x6_t, 18, __rvv_uint8mf4x6_t, vuint8mf4_t, uint8, 6, _u8mf4x6) |
| 161 |
DEF_RVV_TUPLE_TYPE (vint8mf4x7_t, 17, __rvv_int8mf4x7_t, vint8mf4_t, int8, 7, _i8mf4x7) |
| 162 |
DEF_RVV_TUPLE_TYPE (vuint8mf4x7_t, 18, __rvv_uint8mf4x7_t, vuint8mf4_t, uint8, 7, _u8mf4x7) |
| 163 |
DEF_RVV_TUPLE_TYPE (vint8mf4x8_t, 17, __rvv_int8mf4x8_t, vint8mf4_t, int8, 8, _i8mf4x8) |
| 164 |
DEF_RVV_TUPLE_TYPE (vuint8mf4x8_t, 18, __rvv_uint8mf4x8_t, vuint8mf4_t, uint8, 8, _u8mf4x8) |
| 165 |
/* LMUL = 1/2: |
| 166 |
Machine mode = RVVMF2QImode. */ |
| 167 |
DEF_RVV_TYPE (vint8mf2_t, 15, __rvv_int8mf2_t, int8, RVVMF2QI, _i8mf2, _i8, |
| 168 |
_e8mf2) |
| 169 |
DEF_RVV_TYPE (vuint8mf2_t, 16, __rvv_uint8mf2_t, uint8, RVVMF2QI, _u8mf2, _u8, |
| 170 |
_e8mf2) |
| 171 |
/* Define tuple types for SEW = 8, LMUL = MF2. */ |
| 172 |
DEF_RVV_TUPLE_TYPE (vint8mf2x2_t, 17, __rvv_int8mf2x2_t, vint8mf2_t, int8, 2, _i8mf2x2) |
| 173 |
DEF_RVV_TUPLE_TYPE (vuint8mf2x2_t, 18, __rvv_uint8mf2x2_t, vuint8mf2_t, uint8, 2, _u8mf2x2) |
| 174 |
DEF_RVV_TUPLE_TYPE (vint8mf2x3_t, 17, __rvv_int8mf2x3_t, vint8mf2_t, int8, 3, _i8mf2x3) |
| 175 |
DEF_RVV_TUPLE_TYPE (vuint8mf2x3_t, 18, __rvv_uint8mf2x3_t, vuint8mf2_t, uint8, 3, _u8mf2x3) |
| 176 |
DEF_RVV_TUPLE_TYPE (vint8mf2x4_t, 17, __rvv_int8mf2x4_t, vint8mf2_t, int8, 4, _i8mf2x4) |
| 177 |
DEF_RVV_TUPLE_TYPE (vuint8mf2x4_t, 18, __rvv_uint8mf2x4_t, vuint8mf2_t, uint8, 4, _u8mf2x4) |
| 178 |
DEF_RVV_TUPLE_TYPE (vint8mf2x5_t, 17, __rvv_int8mf2x5_t, vint8mf2_t, int8, 5, _i8mf2x5) |
| 179 |
DEF_RVV_TUPLE_TYPE (vuint8mf2x5_t, 18, __rvv_uint8mf2x5_t, vuint8mf2_t, uint8, 5, _u8mf2x5) |
| 180 |
DEF_RVV_TUPLE_TYPE (vint8mf2x6_t, 17, __rvv_int8mf2x6_t, vint8mf2_t, int8, 6, _i8mf2x6) |
| 181 |
DEF_RVV_TUPLE_TYPE (vuint8mf2x6_t, 18, __rvv_uint8mf2x6_t, vuint8mf2_t, uint8, 6, _u8mf2x6) |
| 182 |
DEF_RVV_TUPLE_TYPE (vint8mf2x7_t, 17, __rvv_int8mf2x7_t, vint8mf2_t, int8, 7, _i8mf2x7) |
| 183 |
DEF_RVV_TUPLE_TYPE (vuint8mf2x7_t, 18, __rvv_uint8mf2x7_t, vuint8mf2_t, uint8, 7, _u8mf2x7) |
| 184 |
DEF_RVV_TUPLE_TYPE (vint8mf2x8_t, 17, __rvv_int8mf2x8_t, vint8mf2_t, int8, 8, _i8mf2x8) |
| 185 |
DEF_RVV_TUPLE_TYPE (vuint8mf2x8_t, 18, __rvv_uint8mf2x8_t, vuint8mf2_t, uint8, 8, _u8mf2x8) |
| 186 |
/* LMUL = 1: |
| 187 |
Machine mode = RVVM1QImode. */ |
| 188 |
DEF_RVV_TYPE (vint8m1_t, 14, __rvv_int8m1_t, int8, RVVM1QI, _i8m1, _i8, _e8m1) |
| 189 |
DEF_RVV_TYPE (vuint8m1_t, 15, __rvv_uint8m1_t, uint8, RVVM1QI, _u8m1, _u8, |
| 190 |
_e8m1) |
| 191 |
/* Define tuple types for SEW = 8, LMUL = M1. */ |
| 192 |
DEF_RVV_TUPLE_TYPE (vint8m1x2_t, 16, __rvv_int8m1x2_t, vint8m1_t, int8, 2, _i8m1x2) |
| 193 |
DEF_RVV_TUPLE_TYPE (vuint8m1x2_t, 17, __rvv_uint8m1x2_t, vuint8m1_t, uint8, 2, _u8m1x2) |
| 194 |
DEF_RVV_TUPLE_TYPE (vint8m1x3_t, 16, __rvv_int8m1x3_t, vint8m1_t, int8, 3, _i8m1x3) |
| 195 |
DEF_RVV_TUPLE_TYPE (vuint8m1x3_t, 17, __rvv_uint8m1x3_t, vuint8m1_t, uint8, 3, _u8m1x3) |
| 196 |
DEF_RVV_TUPLE_TYPE (vint8m1x4_t, 16, __rvv_int8m1x4_t, vint8m1_t, int8, 4, _i8m1x4) |
| 197 |
DEF_RVV_TUPLE_TYPE (vuint8m1x4_t, 17, __rvv_uint8m1x4_t, vuint8m1_t, uint8, 4, _u8m1x4) |
| 198 |
DEF_RVV_TUPLE_TYPE (vint8m1x5_t, 16, __rvv_int8m1x5_t, vint8m1_t, int8, 5, _i8m1x5) |
| 199 |
DEF_RVV_TUPLE_TYPE (vuint8m1x5_t, 17, __rvv_uint8m1x5_t, vuint8m1_t, uint8, 5, _u8m1x5) |
| 200 |
DEF_RVV_TUPLE_TYPE (vint8m1x6_t, 16, __rvv_int8m1x6_t, vint8m1_t, int8, 6, _i8m1x6) |
| 201 |
DEF_RVV_TUPLE_TYPE (vuint8m1x6_t, 17, __rvv_uint8m1x6_t, vuint8m1_t, uint8, 6, _u8m1x6) |
| 202 |
DEF_RVV_TUPLE_TYPE (vint8m1x7_t, 16, __rvv_int8m1x7_t, vint8m1_t, int8, 7, _i8m1x7) |
| 203 |
DEF_RVV_TUPLE_TYPE (vuint8m1x7_t, 17, __rvv_uint8m1x7_t, vuint8m1_t, uint8, 7, _u8m1x7) |
| 204 |
DEF_RVV_TUPLE_TYPE (vint8m1x8_t, 16, __rvv_int8m1x8_t, vint8m1_t, int8, 8, _i8m1x8) |
| 205 |
DEF_RVV_TUPLE_TYPE (vuint8m1x8_t, 17, __rvv_uint8m1x8_t, vuint8m1_t, uint8, 8, _u8m1x8) |
| 206 |
/* LMUL = 2: |
| 207 |
Machine mode = RVVM2QImode. */ |
| 208 |
DEF_RVV_TYPE (vint8m2_t, 14, __rvv_int8m2_t, int8, RVVM2QI, _i8m2, _i8, _e8m2) |
| 209 |
DEF_RVV_TYPE (vuint8m2_t, 15, __rvv_uint8m2_t, uint8, RVVM2QI, _u8m2, _u8, |
| 210 |
_e8m2) |
| 211 |
/* Define tuple types for SEW = 8, LMUL = M2. */ |
| 212 |
DEF_RVV_TUPLE_TYPE (vint8m2x2_t, 16, __rvv_int8m2x2_t, vint8m2_t, int8, 2, _i8m2x2) |
| 213 |
DEF_RVV_TUPLE_TYPE (vuint8m2x2_t, 17, __rvv_uint8m2x2_t, vuint8m2_t, uint8, 2, _u8m2x2) |
| 214 |
DEF_RVV_TUPLE_TYPE (vint8m2x3_t, 16, __rvv_int8m2x3_t, vint8m2_t, int8, 3, _i8m2x3) |
| 215 |
DEF_RVV_TUPLE_TYPE (vuint8m2x3_t, 17, __rvv_uint8m2x3_t, vuint8m2_t, uint8, 3, _u8m2x3) |
| 216 |
DEF_RVV_TUPLE_TYPE (vint8m2x4_t, 16, __rvv_int8m2x4_t, vint8m2_t, int8, 4, _i8m2x4) |
| 217 |
DEF_RVV_TUPLE_TYPE (vuint8m2x4_t, 17, __rvv_uint8m2x4_t, vuint8m2_t, uint8, 4, _u8m2x4) |
| 218 |
/* LMUL = 4: |
| 219 |
Machine mode = RVVM4QImode. */ |
| 220 |
DEF_RVV_TYPE (vint8m4_t, 14, __rvv_int8m4_t, int8, RVVM4QI, _i8m4, _i8, _e8m4) |
| 221 |
DEF_RVV_TYPE (vuint8m4_t, 15, __rvv_uint8m4_t, uint8, RVVM4QI, _u8m4, _u8, |
| 222 |
_e8m4) |
| 223 |
/* Define tuple types for SEW = 8, LMUL = M4. */ |
| 224 |
DEF_RVV_TUPLE_TYPE (vint8m4x2_t, 16, __rvv_int8m4x2_t, vint8m4_t, int8, 2, _i8m4x2) |
| 225 |
DEF_RVV_TUPLE_TYPE (vuint8m4x2_t, 17, __rvv_uint8m4x2_t, vuint8m4_t, uint8, 2, _u8m4x2) |
| 226 |
/* LMUL = 8: |
| 227 |
Machine mode = RVVM8QImode. */ |
| 228 |
DEF_RVV_TYPE (vint8m8_t, 14, __rvv_int8m8_t, int8, RVVM8QI, _i8m8, _i8, _e8m8) |
| 229 |
DEF_RVV_TYPE (vuint8m8_t, 15, __rvv_uint8m8_t, uint8, RVVM8QI, _u8m8, _u8, |
| 230 |
_e8m8) |
| 231 |
|
| 232 |
/* LMUL = 1/4: |
| 233 |
Only enable when TARGET_MIN_VLEN > 32. |
| 234 |
Machine mode = RVVMF4HImode. */ |
| 235 |
DEF_RVV_TYPE (vint16mf4_t, 16, __rvv_int16mf4_t, int16, RVVMF4HI, _i16mf4, _i16, |
| 236 |
_e16mf4) |
| 237 |
DEF_RVV_TYPE (vuint16mf4_t, 17, __rvv_uint16mf4_t, uint16, RVVMF4HI, _u16mf4, |
| 238 |
_u16, _e16mf4) |
| 239 |
/* Define tuple types for SEW = 16, LMUL = MF4. */ |
| 240 |
DEF_RVV_TUPLE_TYPE (vint16mf4x2_t, 18, __rvv_int16mf4x2_t, vint16mf4_t, int16, 2, _i16mf4x2) |
| 241 |
DEF_RVV_TUPLE_TYPE (vuint16mf4x2_t, 19, __rvv_uint16mf4x2_t, vuint16mf4_t, uint16, 2, _u16mf4x2) |
| 242 |
DEF_RVV_TUPLE_TYPE (vint16mf4x3_t, 18, __rvv_int16mf4x3_t, vint16mf4_t, int16, 3, _i16mf4x3) |
| 243 |
DEF_RVV_TUPLE_TYPE (vuint16mf4x3_t, 19, __rvv_uint16mf4x3_t, vuint16mf4_t, uint16, 3, _u16mf4x3) |
| 244 |
DEF_RVV_TUPLE_TYPE (vint16mf4x4_t, 18, __rvv_int16mf4x4_t, vint16mf4_t, int16, 4, _i16mf4x4) |
| 245 |
DEF_RVV_TUPLE_TYPE (vuint16mf4x4_t, 19, __rvv_uint16mf4x4_t, vuint16mf4_t, uint16, 4, _u16mf4x4) |
| 246 |
DEF_RVV_TUPLE_TYPE (vint16mf4x5_t, 18, __rvv_int16mf4x5_t, vint16mf4_t, int16, 5, _i16mf4x5) |
| 247 |
DEF_RVV_TUPLE_TYPE (vuint16mf4x5_t, 19, __rvv_uint16mf4x5_t, vuint16mf4_t, uint16, 5, _u16mf4x5) |
| 248 |
DEF_RVV_TUPLE_TYPE (vint16mf4x6_t, 18, __rvv_int16mf4x6_t, vint16mf4_t, int16, 6, _i16mf4x6) |
| 249 |
DEF_RVV_TUPLE_TYPE (vuint16mf4x6_t, 19, __rvv_uint16mf4x6_t, vuint16mf4_t, uint16, 6, _u16mf4x6) |
| 250 |
DEF_RVV_TUPLE_TYPE (vint16mf4x7_t, 18, __rvv_int16mf4x7_t, vint16mf4_t, int16, 7, _i16mf4x7) |
| 251 |
DEF_RVV_TUPLE_TYPE (vuint16mf4x7_t, 19, __rvv_uint16mf4x7_t, vuint16mf4_t, uint16, 7, _u16mf4x7) |
| 252 |
DEF_RVV_TUPLE_TYPE (vint16mf4x8_t, 18, __rvv_int16mf4x8_t, vint16mf4_t, int16, 8, _i16mf4x8) |
| 253 |
DEF_RVV_TUPLE_TYPE (vuint16mf4x8_t, 19, __rvv_uint16mf4x8_t, vuint16mf4_t, uint16, 8, _u16mf4x8) |
| 254 |
/* LMUL = 1/2: |
| 255 |
Machine mode = RVVMF2HImode. */ |
| 256 |
DEF_RVV_TYPE (vint16mf2_t, 16, __rvv_int16mf2_t, int16, RVVMF2HI, _i16mf2, _i16, |
| 257 |
_e16mf2) |
| 258 |
DEF_RVV_TYPE (vuint16mf2_t, 17, __rvv_uint16mf2_t, uint16, RVVMF2HI, _u16mf2, |
| 259 |
_u16, _e16mf2) |
| 260 |
/* Define tuple types for SEW = 16, LMUL = MF2. */ |
| 261 |
DEF_RVV_TUPLE_TYPE (vint16mf2x2_t, 18, __rvv_int16mf2x2_t, vint16mf2_t, int16, 2, _i16mf2x2) |
| 262 |
DEF_RVV_TUPLE_TYPE (vuint16mf2x2_t, 19, __rvv_uint16mf2x2_t, vuint16mf2_t, uint16, 2, _u16mf2x2) |
| 263 |
DEF_RVV_TUPLE_TYPE (vint16mf2x3_t, 18, __rvv_int16mf2x3_t, vint16mf2_t, int16, 3, _i16mf2x3) |
| 264 |
DEF_RVV_TUPLE_TYPE (vuint16mf2x3_t, 19, __rvv_uint16mf2x3_t, vuint16mf2_t, uint16, 3, _u16mf2x3) |
| 265 |
DEF_RVV_TUPLE_TYPE (vint16mf2x4_t, 18, __rvv_int16mf2x4_t, vint16mf2_t, int16, 4, _i16mf2x4) |
| 266 |
DEF_RVV_TUPLE_TYPE (vuint16mf2x4_t, 19, __rvv_uint16mf2x4_t, vuint16mf2_t, uint16, 4, _u16mf2x4) |
| 267 |
DEF_RVV_TUPLE_TYPE (vint16mf2x5_t, 18, __rvv_int16mf2x5_t, vint16mf2_t, int16, 5, _i16mf2x5) |
| 268 |
DEF_RVV_TUPLE_TYPE (vuint16mf2x5_t, 19, __rvv_uint16mf2x5_t, vuint16mf2_t, uint16, 5, _u16mf2x5) |
| 269 |
DEF_RVV_TUPLE_TYPE (vint16mf2x6_t, 18, __rvv_int16mf2x6_t, vint16mf2_t, int16, 6, _i16mf2x6) |
| 270 |
DEF_RVV_TUPLE_TYPE (vuint16mf2x6_t, 19, __rvv_uint16mf2x6_t, vuint16mf2_t, uint16, 6, _u16mf2x6) |
| 271 |
DEF_RVV_TUPLE_TYPE (vint16mf2x7_t, 18, __rvv_int16mf2x7_t, vint16mf2_t, int16, 7, _i16mf2x7) |
| 272 |
DEF_RVV_TUPLE_TYPE (vuint16mf2x7_t, 19, __rvv_uint16mf2x7_t, vuint16mf2_t, uint16, 7, _u16mf2x7) |
| 273 |
DEF_RVV_TUPLE_TYPE (vint16mf2x8_t, 18, __rvv_int16mf2x8_t, vint16mf2_t, int16, 8, _i16mf2x8) |
| 274 |
DEF_RVV_TUPLE_TYPE (vuint16mf2x8_t, 19, __rvv_uint16mf2x8_t, vuint16mf2_t, uint16, 8, _u16mf2x8) |
| 275 |
/* LMUL = 1: |
| 276 |
Machine mode = RVVM1HImode. */ |
| 277 |
DEF_RVV_TYPE (vint16m1_t, 15, __rvv_int16m1_t, int16, RVVM1HI, _i16m1, _i16, |
| 278 |
_e16m1) |
| 279 |
DEF_RVV_TYPE (vuint16m1_t, 16, __rvv_uint16m1_t, uint16, RVVM1HI, _u16m1, _u16, |
| 280 |
_e16m1) |
| 281 |
/* Define tuple types for SEW = 16, LMUL = M1. */ |
| 282 |
DEF_RVV_TUPLE_TYPE (vint16m1x2_t, 17, __rvv_int16m1x2_t, vint16m1_t, int16, 2, _i16m1x2) |
| 283 |
DEF_RVV_TUPLE_TYPE (vuint16m1x2_t, 18, __rvv_uint16m1x2_t, vuint16m1_t, uint16, 2, _u16m1x2) |
| 284 |
DEF_RVV_TUPLE_TYPE (vint16m1x3_t, 17, __rvv_int16m1x3_t, vint16m1_t, int16, 3, _i16m1x3) |
| 285 |
DEF_RVV_TUPLE_TYPE (vuint16m1x3_t, 18, __rvv_uint16m1x3_t, vuint16m1_t, uint16, 3, _u16m1x3) |
| 286 |
DEF_RVV_TUPLE_TYPE (vint16m1x4_t, 17, __rvv_int16m1x4_t, vint16m1_t, int16, 4, _i16m1x4) |
| 287 |
DEF_RVV_TUPLE_TYPE (vuint16m1x4_t, 18, __rvv_uint16m1x4_t, vuint16m1_t, uint16, 4, _u16m1x4) |
| 288 |
DEF_RVV_TUPLE_TYPE (vint16m1x5_t, 17, __rvv_int16m1x5_t, vint16m1_t, int16, 5, _i16m1x5) |
| 289 |
DEF_RVV_TUPLE_TYPE (vuint16m1x5_t, 18, __rvv_uint16m1x5_t, vuint16m1_t, uint16, 5, _u16m1x5) |
| 290 |
DEF_RVV_TUPLE_TYPE (vint16m1x6_t, 17, __rvv_int16m1x6_t, vint16m1_t, int16, 6, _i16m1x6) |
| 291 |
DEF_RVV_TUPLE_TYPE (vuint16m1x6_t, 18, __rvv_uint16m1x6_t, vuint16m1_t, uint16, 6, _u16m1x6) |
| 292 |
DEF_RVV_TUPLE_TYPE (vint16m1x7_t, 17, __rvv_int16m1x7_t, vint16m1_t, int16, 7, _i16m1x7) |
| 293 |
DEF_RVV_TUPLE_TYPE (vuint16m1x7_t, 18, __rvv_uint16m1x7_t, vuint16m1_t, uint16, 7, _u16m1x7) |
| 294 |
DEF_RVV_TUPLE_TYPE (vint16m1x8_t, 17, __rvv_int16m1x8_t, vint16m1_t, int16, 8, _i16m1x8) |
| 295 |
DEF_RVV_TUPLE_TYPE (vuint16m1x8_t, 18, __rvv_uint16m1x8_t, vuint16m1_t, uint16, 8, _u16m1x8) |
| 296 |
/* LMUL = 2: |
| 297 |
Machine mode = RVVM1H2mode. */ |
| 298 |
DEF_RVV_TYPE (vint16m2_t, 15, __rvv_int16m2_t, int16, RVVM2HI, _i16m2, _i16, |
| 299 |
_e16m2) |
| 300 |
DEF_RVV_TYPE (vuint16m2_t, 16, __rvv_uint16m2_t, uint16, RVVM2HI, _u16m2, _u16, |
| 301 |
_e16m2) |
| 302 |
/* Define tuple types for SEW = 16, LMUL = M2. */ |
| 303 |
DEF_RVV_TUPLE_TYPE (vint16m2x2_t, 17, __rvv_int16m2x2_t, vint16m2_t, int16, 2, _i16m2x2) |
| 304 |
DEF_RVV_TUPLE_TYPE (vuint16m2x2_t, 18, __rvv_uint16m2x2_t, vuint16m2_t, uint16, 2, _u16m2x2) |
| 305 |
DEF_RVV_TUPLE_TYPE (vint16m2x3_t, 17, __rvv_int16m2x3_t, vint16m2_t, int16, 3, _i16m2x3) |
| 306 |
DEF_RVV_TUPLE_TYPE (vuint16m2x3_t, 18, __rvv_uint16m2x3_t, vuint16m2_t, uint16, 3, _u16m2x3) |
| 307 |
DEF_RVV_TUPLE_TYPE (vint16m2x4_t, 17, __rvv_int16m2x4_t, vint16m2_t, int16, 4, _i16m2x4) |
| 308 |
DEF_RVV_TUPLE_TYPE (vuint16m2x4_t, 18, __rvv_uint16m2x4_t, vuint16m2_t, uint16, 4, _u16m2x4) |
| 309 |
/* LMUL = 4: |
| 310 |
Machine mode = RVVM4HImode. */ |
| 311 |
DEF_RVV_TYPE (vint16m4_t, 15, __rvv_int16m4_t, int16, RVVM4HI, _i16m4, _i16, |
| 312 |
_e16m4) |
| 313 |
DEF_RVV_TYPE (vuint16m4_t, 16, __rvv_uint16m4_t, uint16, RVVM4HI, _u16m4, _u16, |
| 314 |
_e16m4) |
| 315 |
/* Define tuple types for SEW = 16, LMUL = M4. */ |
| 316 |
DEF_RVV_TUPLE_TYPE (vint16m4x2_t, 17, __rvv_int16m4x2_t, vint16m4_t, int16, 2, _i16m4x2) |
| 317 |
DEF_RVV_TUPLE_TYPE (vuint16m4x2_t, 18, __rvv_uint16m4x2_t, vuint16m4_t, uint16, 2, _u16m4x2) |
| 318 |
/* LMUL = 8: |
| 319 |
Machine mode = RVVM8HImode. */ |
| 320 |
DEF_RVV_TYPE (vint16m8_t, 15, __rvv_int16m8_t, int16, RVVM8HI, _i16m8, _i16, |
| 321 |
_e16m8) |
| 322 |
DEF_RVV_TYPE (vuint16m8_t, 16, __rvv_uint16m8_t, uint16, RVVM8HI, _u16m8, _u16, |
| 323 |
_e16m8) |
| 324 |
|
| 325 |
/* LMUL = 1/2: |
| 326 |
Only enable when TARGET_MIN_VLEN > 32. |
| 327 |
Machine mode = RVVMF2SImode. */ |
| 328 |
DEF_RVV_TYPE (vint32mf2_t, 16, __rvv_int32mf2_t, int32, RVVMF2SI, _i32mf2, _i32, |
| 329 |
_e32mf2) |
| 330 |
DEF_RVV_TYPE (vuint32mf2_t, 17, __rvv_uint32mf2_t, uint32, RVVMF2SI, _u32mf2, |
| 331 |
_u32, _e32mf2) |
| 332 |
/* Define tuple types for SEW = 32, LMUL = MF2. */ |
| 333 |
DEF_RVV_TUPLE_TYPE (vint32mf2x2_t, 18, __rvv_int32mf2x2_t, vint32mf2_t, int32, 2, _i32mf2x2) |
| 334 |
DEF_RVV_TUPLE_TYPE (vuint32mf2x2_t, 19, __rvv_uint32mf2x2_t, vuint32mf2_t, uint32, 2, _u32mf2x2) |
| 335 |
DEF_RVV_TUPLE_TYPE (vint32mf2x3_t, 18, __rvv_int32mf2x3_t, vint32mf2_t, int32, 3, _i32mf2x3) |
| 336 |
DEF_RVV_TUPLE_TYPE (vuint32mf2x3_t, 19, __rvv_uint32mf2x3_t, vuint32mf2_t, uint32, 3, _u32mf2x3) |
| 337 |
DEF_RVV_TUPLE_TYPE (vint32mf2x4_t, 18, __rvv_int32mf2x4_t, vint32mf2_t, int32, 4, _i32mf2x4) |
| 338 |
DEF_RVV_TUPLE_TYPE (vuint32mf2x4_t, 19, __rvv_uint32mf2x4_t, vuint32mf2_t, uint32, 4, _u32mf2x4) |
| 339 |
DEF_RVV_TUPLE_TYPE (vint32mf2x5_t, 18, __rvv_int32mf2x5_t, vint32mf2_t, int32, 5, _i32mf2x5) |
| 340 |
DEF_RVV_TUPLE_TYPE (vuint32mf2x5_t, 19, __rvv_uint32mf2x5_t, vuint32mf2_t, uint32, 5, _u32mf2x5) |
| 341 |
DEF_RVV_TUPLE_TYPE (vint32mf2x6_t, 18, __rvv_int32mf2x6_t, vint32mf2_t, int32, 6, _i32mf2x6) |
| 342 |
DEF_RVV_TUPLE_TYPE (vuint32mf2x6_t, 19, __rvv_uint32mf2x6_t, vuint32mf2_t, uint32, 6, _u32mf2x6) |
| 343 |
DEF_RVV_TUPLE_TYPE (vint32mf2x7_t, 18, __rvv_int32mf2x7_t, vint32mf2_t, int32, 7, _i32mf2x7) |
| 344 |
DEF_RVV_TUPLE_TYPE (vuint32mf2x7_t, 19, __rvv_uint32mf2x7_t, vuint32mf2_t, uint32, 7, _u32mf2x7) |
| 345 |
DEF_RVV_TUPLE_TYPE (vint32mf2x8_t, 18, __rvv_int32mf2x8_t, vint32mf2_t, int32, 8, _i32mf2x8) |
| 346 |
DEF_RVV_TUPLE_TYPE (vuint32mf2x8_t, 19, __rvv_uint32mf2x8_t, vuint32mf2_t, uint32, 8, _u32mf2x8) |
| 347 |
/* LMUL = 1: |
| 348 |
Machine mode = RVVM1SImode. */ |
| 349 |
DEF_RVV_TYPE (vint32m1_t, 15, __rvv_int32m1_t, int32, RVVM1SI, _i32m1, _i32, |
| 350 |
_e32m1) |
| 351 |
DEF_RVV_TYPE (vuint32m1_t, 16, __rvv_uint32m1_t, uint32, RVVM1SI, _u32m1, _u32, |
| 352 |
_e32m1) |
| 353 |
/* Define tuple types for SEW = 32, LMUL = M1. */ |
| 354 |
DEF_RVV_TUPLE_TYPE (vint32m1x2_t, 17, __rvv_int32m1x2_t, vint32m1_t, int32, 2, _i32m1x2) |
| 355 |
DEF_RVV_TUPLE_TYPE (vuint32m1x2_t, 18, __rvv_uint32m1x2_t, vuint32m1_t, uint32, 2, _u32m1x2) |
| 356 |
DEF_RVV_TUPLE_TYPE (vint32m1x3_t, 17, __rvv_int32m1x3_t, vint32m1_t, int32, 3, _i32m1x3) |
| 357 |
DEF_RVV_TUPLE_TYPE (vuint32m1x3_t, 18, __rvv_uint32m1x3_t, vuint32m1_t, uint32, 3, _u32m1x3) |
| 358 |
DEF_RVV_TUPLE_TYPE (vint32m1x4_t, 17, __rvv_int32m1x4_t, vint32m1_t, int32, 4, _i32m1x4) |
| 359 |
DEF_RVV_TUPLE_TYPE (vuint32m1x4_t, 18, __rvv_uint32m1x4_t, vuint32m1_t, uint32, 4, _u32m1x4) |
| 360 |
DEF_RVV_TUPLE_TYPE (vint32m1x5_t, 17, __rvv_int32m1x5_t, vint32m1_t, int32, 5, _i32m1x5) |
| 361 |
DEF_RVV_TUPLE_TYPE (vuint32m1x5_t, 18, __rvv_uint32m1x5_t, vuint32m1_t, uint32, 5, _u32m1x5) |
| 362 |
DEF_RVV_TUPLE_TYPE (vint32m1x6_t, 17, __rvv_int32m1x6_t, vint32m1_t, int32, 6, _i32m1x6) |
| 363 |
DEF_RVV_TUPLE_TYPE (vuint32m1x6_t, 18, __rvv_uint32m1x6_t, vuint32m1_t, uint32, 6, _u32m1x6) |
| 364 |
DEF_RVV_TUPLE_TYPE (vint32m1x7_t, 17, __rvv_int32m1x7_t, vint32m1_t, int32, 7, _i32m1x7) |
| 365 |
DEF_RVV_TUPLE_TYPE (vuint32m1x7_t, 18, __rvv_uint32m1x7_t, vuint32m1_t, uint32, 7, _u32m1x7) |
| 366 |
DEF_RVV_TUPLE_TYPE (vint32m1x8_t, 17, __rvv_int32m1x8_t, vint32m1_t, int32, 8, _i32m1x8) |
| 367 |
DEF_RVV_TUPLE_TYPE (vuint32m1x8_t, 18, __rvv_uint32m1x8_t, vuint32m1_t, uint32, 8, _u32m1x8) |
| 368 |
/* LMUL = 2: |
| 369 |
Machine mode = RVVM2SImode. */ |
| 370 |
DEF_RVV_TYPE (vint32m2_t, 15, __rvv_int32m2_t, int32, RVVM2SI, _i32m2, _i32, |
| 371 |
_e32m2) |
| 372 |
DEF_RVV_TYPE (vuint32m2_t, 16, __rvv_uint32m2_t, uint32, RVVM2SI, _u32m2, _u32, |
| 373 |
_e32m2) |
| 374 |
/* Define tuple types for SEW = 32, LMUL = M2. */ |
| 375 |
DEF_RVV_TUPLE_TYPE (vint32m2x2_t, 17, __rvv_int32m2x2_t, vint32m2_t, int32, 2, _i32m2x2) |
| 376 |
DEF_RVV_TUPLE_TYPE (vuint32m2x2_t, 18, __rvv_uint32m2x2_t, vuint32m2_t, uint32, 2, _u32m2x2) |
| 377 |
DEF_RVV_TUPLE_TYPE (vint32m2x3_t, 17, __rvv_int32m2x3_t, vint32m2_t, int32, 3, _i32m2x3) |
| 378 |
DEF_RVV_TUPLE_TYPE (vuint32m2x3_t, 18, __rvv_uint32m2x3_t, vuint32m2_t, uint32, 3, _u32m2x3) |
| 379 |
DEF_RVV_TUPLE_TYPE (vint32m2x4_t, 17, __rvv_int32m2x4_t, vint32m2_t, int32, 4, _i32m2x4) |
| 380 |
DEF_RVV_TUPLE_TYPE (vuint32m2x4_t, 18, __rvv_uint32m2x4_t, vuint32m2_t, uint32, 4, _u32m2x4) |
| 381 |
/* LMUL = 4: |
| 382 |
Machine mode = RVVM4SImode. */ |
| 383 |
DEF_RVV_TYPE (vint32m4_t, 15, __rvv_int32m4_t, int32, RVVM4SI, _i32m4, _i32, |
| 384 |
_e32m4) |
| 385 |
DEF_RVV_TYPE (vuint32m4_t, 16, __rvv_uint32m4_t, uint32, RVVM4SI, _u32m4, _u32, |
| 386 |
_e32m4) |
| 387 |
/* Define tuple types for SEW = 32, LMUL = M4. */ |
| 388 |
DEF_RVV_TUPLE_TYPE (vint32m4x2_t, 17, __rvv_int32m4x2_t, vint32m4_t, int32, 2, _i32m4x2) |
| 389 |
DEF_RVV_TUPLE_TYPE (vuint32m4x2_t, 18, __rvv_uint32m4x2_t, vuint32m4_t, uint32, 2, _u32m4x2) |
| 390 |
/* LMUL = 8: |
| 391 |
Machine mode = RVVM8SImode. */ |
| 392 |
DEF_RVV_TYPE (vint32m8_t, 15, __rvv_int32m8_t, int32, RVVM8SI, _i32m8, _i32, |
| 393 |
_e32m8) |
| 394 |
DEF_RVV_TYPE (vuint32m8_t, 16, __rvv_uint32m8_t, uint32, RVVM8SI, _u32m8, _u32, |
| 395 |
_e32m8) |
| 396 |
|
| 397 |
/* SEW = 64: |
| 398 |
Disable when !TARGET_VECTOR_ELEN_64. */ |
| 399 |
DEF_RVV_TYPE (vint64m1_t, 15, __rvv_int64m1_t, int64, RVVM1DI, _i64m1, _i64, |
| 400 |
_e64m1) |
| 401 |
DEF_RVV_TYPE (vuint64m1_t, 16, __rvv_uint64m1_t, uint64, RVVM1DI, _u64m1, _u64, |
| 402 |
_e64m1) |
| 403 |
/* Define tuple types for SEW = 64, LMUL = M1. */ |
| 404 |
DEF_RVV_TUPLE_TYPE (vint64m1x2_t, 17, __rvv_int64m1x2_t, vint64m1_t, int64, 2, _i64m1x2) |
| 405 |
DEF_RVV_TUPLE_TYPE (vuint64m1x2_t, 18, __rvv_uint64m1x2_t, vuint64m1_t, uint64, 2, _u64m1x2) |
| 406 |
DEF_RVV_TUPLE_TYPE (vint64m1x3_t, 17, __rvv_int64m1x3_t, vint64m1_t, int64, 3, _i64m1x3) |
| 407 |
DEF_RVV_TUPLE_TYPE (vuint64m1x3_t, 18, __rvv_uint64m1x3_t, vuint64m1_t, uint64, 3, _u64m1x3) |
| 408 |
DEF_RVV_TUPLE_TYPE (vint64m1x4_t, 17, __rvv_int64m1x4_t, vint64m1_t, int64, 4, _i64m1x4) |
| 409 |
DEF_RVV_TUPLE_TYPE (vuint64m1x4_t, 18, __rvv_uint64m1x4_t, vuint64m1_t, uint64, 4, _u64m1x4) |
| 410 |
DEF_RVV_TUPLE_TYPE (vint64m1x5_t, 17, __rvv_int64m1x5_t, vint64m1_t, int64, 5, _i64m1x5) |
| 411 |
DEF_RVV_TUPLE_TYPE (vuint64m1x5_t, 18, __rvv_uint64m1x5_t, vuint64m1_t, uint64, 5, _u64m1x5) |
| 412 |
DEF_RVV_TUPLE_TYPE (vint64m1x6_t, 17, __rvv_int64m1x6_t, vint64m1_t, int64, 6, _i64m1x6) |
| 413 |
DEF_RVV_TUPLE_TYPE (vuint64m1x6_t, 18, __rvv_uint64m1x6_t, vuint64m1_t, uint64, 6, _u64m1x6) |
| 414 |
DEF_RVV_TUPLE_TYPE (vint64m1x7_t, 17, __rvv_int64m1x7_t, vint64m1_t, int64, 7, _i64m1x7) |
| 415 |
DEF_RVV_TUPLE_TYPE (vuint64m1x7_t, 18, __rvv_uint64m1x7_t, vuint64m1_t, uint64, 7, _u64m1x7) |
| 416 |
DEF_RVV_TUPLE_TYPE (vint64m1x8_t, 17, __rvv_int64m1x8_t, vint64m1_t, int64, 8, _i64m1x8) |
| 417 |
DEF_RVV_TUPLE_TYPE (vuint64m1x8_t, 18, __rvv_uint64m1x8_t, vuint64m1_t, uint64, 8, _u64m1x8) |
| 418 |
DEF_RVV_TYPE (vint64m2_t, 15, __rvv_int64m2_t, int64, RVVM2DI, _i64m2, _i64, |
| 419 |
_e64m2) |
| 420 |
DEF_RVV_TYPE (vuint64m2_t, 16, __rvv_uint64m2_t, uint64, RVVM2DI, _u64m2, _u64, |
| 421 |
_e64m2) |
| 422 |
/* Define tuple types for SEW = 64, LMUL = M2. */ |
| 423 |
DEF_RVV_TUPLE_TYPE (vint64m2x2_t, 17, __rvv_int64m2x2_t, vint64m2_t, int64, 2, _i64m2x2) |
| 424 |
DEF_RVV_TUPLE_TYPE (vuint64m2x2_t, 18, __rvv_uint64m2x2_t, vuint64m2_t, uint64, 2, _u64m2x2) |
| 425 |
DEF_RVV_TUPLE_TYPE (vint64m2x3_t, 17, __rvv_int64m2x3_t, vint64m2_t, int64, 3, _i64m2x3) |
| 426 |
DEF_RVV_TUPLE_TYPE (vuint64m2x3_t, 18, __rvv_uint64m2x3_t, vuint64m2_t, uint64, 3, _u64m2x3) |
| 427 |
DEF_RVV_TUPLE_TYPE (vint64m2x4_t, 17, __rvv_int64m2x4_t, vint64m2_t, int64, 4, _i64m2x4) |
| 428 |
DEF_RVV_TUPLE_TYPE (vuint64m2x4_t, 18, __rvv_uint64m2x4_t, vuint64m2_t, uint64, 4, _u64m2x4) |
| 429 |
DEF_RVV_TYPE (vint64m4_t, 15, __rvv_int64m4_t, int64, RVVM4DI, _i64m4, _i64, |
| 430 |
_e64m4) |
| 431 |
DEF_RVV_TYPE (vuint64m4_t, 16, __rvv_uint64m4_t, uint64, RVVM4DI, _u64m4, _u64, |
| 432 |
_e64m4) |
| 433 |
/* Define tuple types for SEW = 64, LMUL = M4. */ |
| 434 |
DEF_RVV_TUPLE_TYPE (vint64m4x2_t, 17, __rvv_int64m4x2_t, vint64m4_t, int64, 2, _i64m4x2) |
| 435 |
DEF_RVV_TUPLE_TYPE (vuint64m4x2_t, 18, __rvv_uint64m4x2_t, vuint64m4_t, uint64, 2, _u64m4x2) |
| 436 |
DEF_RVV_TYPE (vint64m8_t, 15, __rvv_int64m8_t, int64, RVVM8DI, _i64m8, _i64, |
| 437 |
_e64m8) |
| 438 |
DEF_RVV_TYPE (vuint64m8_t, 16, __rvv_uint64m8_t, uint64, RVVM8DI, _u64m8, _u64, |
| 439 |
_e64m8) |
| 440 |
|
| 441 |
/* Enabled if TARGET_VECTOR_ELEN_BF_16 && (TARGET_ZVFBFMIN or TARGET_ZVFBFWMA). */ |
| 442 |
/* LMUL = 1/4. */ |
| 443 |
DEF_RVV_TYPE (vbfloat16mf4_t, 19, __rvv_bfloat16mf4_t, bfloat16, RVVMF4BF, _bf16mf4, |
| 444 |
_bf16, _e16mf4) |
| 445 |
/* Define tuple types for SEW = 16, LMUL = MF4. */ |
| 446 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf4x2_t, 21, __rvv_bfloat16mf4x2_t, vbfloat16mf4_t, bfloat16, 2, _bf16mf4x2) |
| 447 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf4x3_t, 21, __rvv_bfloat16mf4x3_t, vbfloat16mf4_t, bfloat16, 3, _bf16mf4x3) |
| 448 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf4x4_t, 21, __rvv_bfloat16mf4x4_t, vbfloat16mf4_t, bfloat16, 4, _bf16mf4x4) |
| 449 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf4x5_t, 21, __rvv_bfloat16mf4x5_t, vbfloat16mf4_t, bfloat16, 5, _bf16mf4x5) |
| 450 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf4x6_t, 21, __rvv_bfloat16mf4x6_t, vbfloat16mf4_t, bfloat16, 6, _bf16mf4x6) |
| 451 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf4x7_t, 21, __rvv_bfloat16mf4x7_t, vbfloat16mf4_t, bfloat16, 7, _bf16mf4x7) |
| 452 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf4x8_t, 21, __rvv_bfloat16mf4x8_t, vbfloat16mf4_t, bfloat16, 8, _bf16mf4x8) |
| 453 |
/* LMUL = 1/2. */ |
| 454 |
DEF_RVV_TYPE (vbfloat16mf2_t, 19, __rvv_bfloat16mf2_t, bfloat16, RVVMF2BF, _bf16mf2, |
| 455 |
_bf16, _e16mf2) |
| 456 |
/* Define tuple types for SEW = 16, LMUL = MF2. */ |
| 457 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf2x2_t, 21, __rvv_bfloat16mf2x2_t, vbfloat16mf2_t, bfloat16, 2, _bf16mf2x2) |
| 458 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf2x3_t, 21, __rvv_bfloat16mf2x3_t, vbfloat16mf2_t, bfloat16, 3, _bf16mf2x3) |
| 459 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf2x4_t, 21, __rvv_bfloat16mf2x4_t, vbfloat16mf2_t, bfloat16, 4, _bf16mf2x4) |
| 460 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf2x5_t, 21, __rvv_bfloat16mf2x5_t, vbfloat16mf2_t, bfloat16, 5, _bf16mf2x5) |
| 461 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf2x6_t, 21, __rvv_bfloat16mf2x6_t, vbfloat16mf2_t, bfloat16, 6, _bf16mf2x6) |
| 462 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf2x7_t, 21, __rvv_bfloat16mf2x7_t, vbfloat16mf2_t, bfloat16, 7, _bf16mf2x7) |
| 463 |
DEF_RVV_TUPLE_TYPE (vbfloat16mf2x8_t, 21, __rvv_bfloat16mf2x8_t, vbfloat16mf2_t, bfloat16, 8, _bf16mf2x8) |
| 464 |
/* LMUL = 1. */ |
| 465 |
DEF_RVV_TYPE (vbfloat16m1_t, 18, __rvv_bfloat16m1_t, bfloat16, RVVM1BF, _bf16m1, |
| 466 |
_bf16, _e16m1) |
| 467 |
/* Define tuple types for SEW = 16, LMUL = M1. */ |
| 468 |
DEF_RVV_TUPLE_TYPE (vbfloat16m1x2_t, 20, __rvv_bfloat16m1x2_t, vbfloat16m1_t, bfloat16, 2, _bf16m1x2) |
| 469 |
DEF_RVV_TUPLE_TYPE (vbfloat16m1x3_t, 20, __rvv_bfloat16m1x3_t, vbfloat16m1_t, bfloat16, 3, _bf16m1x3) |
| 470 |
DEF_RVV_TUPLE_TYPE (vbfloat16m1x4_t, 20, __rvv_bfloat16m1x4_t, vbfloat16m1_t, bfloat16, 4, _bf16m1x4) |
| 471 |
DEF_RVV_TUPLE_TYPE (vbfloat16m1x5_t, 20, __rvv_bfloat16m1x5_t, vbfloat16m1_t, bfloat16, 5, _bf16m1x5) |
| 472 |
DEF_RVV_TUPLE_TYPE (vbfloat16m1x6_t, 20, __rvv_bfloat16m1x6_t, vbfloat16m1_t, bfloat16, 6, _bf16m1x6) |
| 473 |
DEF_RVV_TUPLE_TYPE (vbfloat16m1x7_t, 20, __rvv_bfloat16m1x7_t, vbfloat16m1_t, bfloat16, 7, _bf16m1x7) |
| 474 |
DEF_RVV_TUPLE_TYPE (vbfloat16m1x8_t, 20, __rvv_bfloat16m1x8_t, vbfloat16m1_t, bfloat16, 8, _bf16m1x8) |
| 475 |
/* LMUL = 2. */ |
| 476 |
DEF_RVV_TYPE (vbfloat16m2_t, 18, __rvv_bfloat16m2_t, bfloat16, RVVM2BF, _bf16m2, |
| 477 |
_bf16, _e16m2) |
| 478 |
/* Define tuple types for SEW = 16, LMUL = M2. */ |
| 479 |
DEF_RVV_TUPLE_TYPE (vbfloat16m2x2_t, 20, __rvv_bfloat16m2x2_t, vbfloat16m2_t, bfloat16, 2, _bf16m2x2) |
| 480 |
DEF_RVV_TUPLE_TYPE (vbfloat16m2x3_t, 20, __rvv_bfloat16m2x3_t, vbfloat16m2_t, bfloat16, 3, _bf16m2x3) |
| 481 |
DEF_RVV_TUPLE_TYPE (vbfloat16m2x4_t, 20, __rvv_bfloat16m2x4_t, vbfloat16m2_t, bfloat16, 4, _bf16m2x4) |
| 482 |
/* LMUL = 4. */ |
| 483 |
DEF_RVV_TYPE (vbfloat16m4_t, 18, __rvv_bfloat16m4_t, bfloat16, RVVM4BF, _bf16m4, |
| 484 |
_bf16, _e16m4) |
| 485 |
/* Define tuple types for SEW = 16, LMUL = M4. */ |
| 486 |
DEF_RVV_TUPLE_TYPE (vbfloat16m4x2_t, 20, __rvv_bfloat16m4x2_t, vbfloat16m4_t, bfloat16, 2, _bf16m4x2) |
| 487 |
/* LMUL = 8. */ |
| 488 |
DEF_RVV_TYPE (vbfloat16m8_t, 18, __rvv_bfloat16m8_t, bfloat16, RVVM8BF, _bf16m8, |
| 489 |
_bf16, _e16m8) |
| 490 |
|
| 491 |
/* Enabled if TARGET_VECTOR_ELEN_FP_16 && (TARGET_ZVFH or TARGET_ZVFHMIN). */ |
| 492 |
/* LMUL = 1/4. */ |
| 493 |
DEF_RVV_TYPE (vfloat16mf4_t, 18, __rvv_float16mf4_t, float16, RVVMF4HF, _f16mf4, |
| 494 |
_f16, _e16mf4) |
| 495 |
/* Define tuple types for SEW = 16, LMUL = MF4. */ |
| 496 |
DEF_RVV_TUPLE_TYPE (vfloat16mf4x2_t, 20, __rvv_float16mf4x2_t, vfloat16mf4_t, float16, 2, _f16mf4x2) |
| 497 |
DEF_RVV_TUPLE_TYPE (vfloat16mf4x3_t, 20, __rvv_float16mf4x3_t, vfloat16mf4_t, float16, 3, _f16mf4x3) |
| 498 |
DEF_RVV_TUPLE_TYPE (vfloat16mf4x4_t, 20, __rvv_float16mf4x4_t, vfloat16mf4_t, float16, 4, _f16mf4x4) |
| 499 |
DEF_RVV_TUPLE_TYPE (vfloat16mf4x5_t, 20, __rvv_float16mf4x5_t, vfloat16mf4_t, float16, 5, _f16mf4x5) |
| 500 |
DEF_RVV_TUPLE_TYPE (vfloat16mf4x6_t, 20, __rvv_float16mf4x6_t, vfloat16mf4_t, float16, 6, _f16mf4x6) |
| 501 |
DEF_RVV_TUPLE_TYPE (vfloat16mf4x7_t, 20, __rvv_float16mf4x7_t, vfloat16mf4_t, float16, 7, _f16mf4x7) |
| 502 |
DEF_RVV_TUPLE_TYPE (vfloat16mf4x8_t, 20, __rvv_float16mf4x8_t, vfloat16mf4_t, float16, 8, _f16mf4x8) |
| 503 |
/* LMUL = 1/2. */ |
| 504 |
DEF_RVV_TYPE (vfloat16mf2_t, 18, __rvv_float16mf2_t, float16, RVVMF2HF, _f16mf2, |
| 505 |
_f16, _e16mf2) |
| 506 |
/* Define tuple types for SEW = 16, LMUL = MF2. */ |
| 507 |
DEF_RVV_TUPLE_TYPE (vfloat16mf2x2_t, 20, __rvv_float16mf2x2_t, vfloat16mf2_t, float16, 2, _f16mf2x2) |
| 508 |
DEF_RVV_TUPLE_TYPE (vfloat16mf2x3_t, 20, __rvv_float16mf2x3_t, vfloat16mf2_t, float16, 3, _f16mf2x3) |
| 509 |
DEF_RVV_TUPLE_TYPE (vfloat16mf2x4_t, 20, __rvv_float16mf2x4_t, vfloat16mf2_t, float16, 4, _f16mf2x4) |
| 510 |
DEF_RVV_TUPLE_TYPE (vfloat16mf2x5_t, 20, __rvv_float16mf2x5_t, vfloat16mf2_t, float16, 5, _f16mf2x5) |
| 511 |
DEF_RVV_TUPLE_TYPE (vfloat16mf2x6_t, 20, __rvv_float16mf2x6_t, vfloat16mf2_t, float16, 6, _f16mf2x6) |
| 512 |
DEF_RVV_TUPLE_TYPE (vfloat16mf2x7_t, 20, __rvv_float16mf2x7_t, vfloat16mf2_t, float16, 7, _f16mf2x7) |
| 513 |
DEF_RVV_TUPLE_TYPE (vfloat16mf2x8_t, 20, __rvv_float16mf2x8_t, vfloat16mf2_t, float16, 8, _f16mf2x8) |
| 514 |
/* LMUL = 1. */ |
| 515 |
DEF_RVV_TYPE (vfloat16m1_t, 17, __rvv_float16m1_t, float16, RVVM1HF, _f16m1, |
| 516 |
_f16, _e16m1) |
| 517 |
/* Define tuple types for SEW = 16, LMUL = M1. */ |
| 518 |
DEF_RVV_TUPLE_TYPE (vfloat16m1x2_t, 19, __rvv_float16m1x2_t, vfloat16m1_t, float16, 2, _f16m1x2) |
| 519 |
DEF_RVV_TUPLE_TYPE (vfloat16m1x3_t, 19, __rvv_float16m1x3_t, vfloat16m1_t, float16, 3, _f16m1x3) |
| 520 |
DEF_RVV_TUPLE_TYPE (vfloat16m1x4_t, 19, __rvv_float16m1x4_t, vfloat16m1_t, float16, 4, _f16m1x4) |
| 521 |
DEF_RVV_TUPLE_TYPE (vfloat16m1x5_t, 19, __rvv_float16m1x5_t, vfloat16m1_t, float16, 5, _f16m1x5) |
| 522 |
DEF_RVV_TUPLE_TYPE (vfloat16m1x6_t, 19, __rvv_float16m1x6_t, vfloat16m1_t, float16, 6, _f16m1x6) |
| 523 |
DEF_RVV_TUPLE_TYPE (vfloat16m1x7_t, 19, __rvv_float16m1x7_t, vfloat16m1_t, float16, 7, _f16m1x7) |
| 524 |
DEF_RVV_TUPLE_TYPE (vfloat16m1x8_t, 19, __rvv_float16m1x8_t, vfloat16m1_t, float16, 8, _f16m1x8) |
| 525 |
/* LMUL = 2. */ |
| 526 |
DEF_RVV_TYPE (vfloat16m2_t, 17, __rvv_float16m2_t, float16, RVVM2HF, _f16m2, |
| 527 |
_f16, _e16m2) |
| 528 |
/* Define tuple types for SEW = 16, LMUL = M2. */ |
| 529 |
DEF_RVV_TUPLE_TYPE (vfloat16m2x2_t, 19, __rvv_float16m2x2_t, vfloat16m2_t, float16, 2, _f16m2x2) |
| 530 |
DEF_RVV_TUPLE_TYPE (vfloat16m2x3_t, 19, __rvv_float16m2x3_t, vfloat16m2_t, float16, 3, _f16m2x3) |
| 531 |
DEF_RVV_TUPLE_TYPE (vfloat16m2x4_t, 19, __rvv_float16m2x4_t, vfloat16m2_t, float16, 4, _f16m2x4) |
| 532 |
/* LMUL = 4. */ |
| 533 |
DEF_RVV_TYPE (vfloat16m4_t, 17, __rvv_float16m4_t, float16, RVVM4HF, _f16m4, |
| 534 |
_f16, _e16m4) |
| 535 |
/* Define tuple types for SEW = 16, LMUL = M4. */ |
| 536 |
DEF_RVV_TUPLE_TYPE (vfloat16m4x2_t, 19, __rvv_float16m4x2_t, vfloat16m4_t, float16, 2, _f16m4x2) |
| 537 |
/* LMUL = 8. */ |
| 538 |
DEF_RVV_TYPE (vfloat16m8_t, 17, __rvv_float16m8_t, float16, RVVM8HF, _f16m8, |
| 539 |
_f16, _e16m8) |
| 540 |
|
| 541 |
/* Disable all when !TARGET_VECTOR_ELEN_FP_32. */ |
| 542 |
/* LMUL = 1/2: |
| 543 |
Only enable when TARGET_MIN_VLEN > 32. |
| 544 |
Machine mode = RVVMF2SFmode. */ |
| 545 |
DEF_RVV_TYPE (vfloat32mf2_t, 18, __rvv_float32mf2_t, float, RVVMF2SF, _f32mf2, |
| 546 |
_f32, _e32mf2) |
| 547 |
/* Define tuple types for SEW = 32, LMUL = MF2. */ |
| 548 |
DEF_RVV_TUPLE_TYPE (vfloat32mf2x2_t, 20, __rvv_float32mf2x2_t, vfloat32mf2_t, float, 2, _f32mf2x2) |
| 549 |
DEF_RVV_TUPLE_TYPE (vfloat32mf2x3_t, 20, __rvv_float32mf2x3_t, vfloat32mf2_t, float, 3, _f32mf2x3) |
| 550 |
DEF_RVV_TUPLE_TYPE (vfloat32mf2x4_t, 20, __rvv_float32mf2x4_t, vfloat32mf2_t, float, 4, _f32mf2x4) |
| 551 |
DEF_RVV_TUPLE_TYPE (vfloat32mf2x5_t, 20, __rvv_float32mf2x5_t, vfloat32mf2_t, float, 5, _f32mf2x5) |
| 552 |
DEF_RVV_TUPLE_TYPE (vfloat32mf2x6_t, 20, __rvv_float32mf2x6_t, vfloat32mf2_t, float, 6, _f32mf2x6) |
| 553 |
DEF_RVV_TUPLE_TYPE (vfloat32mf2x7_t, 20, __rvv_float32mf2x7_t, vfloat32mf2_t, float, 7, _f32mf2x7) |
| 554 |
DEF_RVV_TUPLE_TYPE (vfloat32mf2x8_t, 20, __rvv_float32mf2x8_t, vfloat32mf2_t, float, 8, _f32mf2x8) |
| 555 |
/* LMUL = 1: |
| 556 |
Machine mode = RVVM1SFmode. */ |
| 557 |
DEF_RVV_TYPE (vfloat32m1_t, 17, __rvv_float32m1_t, float, RVVM1SF, _f32m1, _f32, |
| 558 |
_e32m1) |
| 559 |
/* Define tuple types for SEW = 32, LMUL = M1. */ |
| 560 |
DEF_RVV_TUPLE_TYPE (vfloat32m1x2_t, 19, __rvv_float32m1x2_t, vfloat32m1_t, float, 2, _f32m1x2) |
| 561 |
DEF_RVV_TUPLE_TYPE (vfloat32m1x3_t, 19, __rvv_float32m1x3_t, vfloat32m1_t, float, 3, _f32m1x3) |
| 562 |
DEF_RVV_TUPLE_TYPE (vfloat32m1x4_t, 19, __rvv_float32m1x4_t, vfloat32m1_t, float, 4, _f32m1x4) |
| 563 |
DEF_RVV_TUPLE_TYPE (vfloat32m1x5_t, 19, __rvv_float32m1x5_t, vfloat32m1_t, float, 5, _f32m1x5) |
| 564 |
DEF_RVV_TUPLE_TYPE (vfloat32m1x6_t, 19, __rvv_float32m1x6_t, vfloat32m1_t, float, 6, _f32m1x6) |
| 565 |
DEF_RVV_TUPLE_TYPE (vfloat32m1x7_t, 19, __rvv_float32m1x7_t, vfloat32m1_t, float, 7, _f32m1x7) |
| 566 |
DEF_RVV_TUPLE_TYPE (vfloat32m1x8_t, 19, __rvv_float32m1x8_t, vfloat32m1_t, float, 8, _f32m1x8) |
| 567 |
/* LMUL = 2: |
| 568 |
Machine mode = RVVM2SFmode. */ |
| 569 |
DEF_RVV_TYPE (vfloat32m2_t, 17, __rvv_float32m2_t, float, RVVM2SF, _f32m2, _f32, |
| 570 |
_e32m2) |
| 571 |
/* Define tuple types for SEW = 32, LMUL = M2. */ |
| 572 |
DEF_RVV_TUPLE_TYPE (vfloat32m2x2_t, 19, __rvv_float32m2x2_t, vfloat32m2_t, float, 2, _f32m2x2) |
| 573 |
DEF_RVV_TUPLE_TYPE (vfloat32m2x3_t, 19, __rvv_float32m2x3_t, vfloat32m2_t, float, 3, _f32m2x3) |
| 574 |
DEF_RVV_TUPLE_TYPE (vfloat32m2x4_t, 19, __rvv_float32m2x4_t, vfloat32m2_t, float, 4, _f32m2x4) |
| 575 |
/* LMUL = 4: |
| 576 |
Machine mode = RVVM4SFmode. */ |
| 577 |
DEF_RVV_TYPE (vfloat32m4_t, 17, __rvv_float32m4_t, float, RVVM4SF, _f32m4, _f32, |
| 578 |
_e32m4) |
| 579 |
/* Define tuple types for SEW = 32, LMUL = M4. */ |
| 580 |
DEF_RVV_TUPLE_TYPE (vfloat32m4x2_t, 19, __rvv_float32m4x2_t, vfloat32m4_t, float, 2, _f32m4x2) |
| 581 |
/* LMUL = 8: |
| 582 |
Machine mode = RVVM8SFmode. */ |
| 583 |
DEF_RVV_TYPE (vfloat32m8_t, 17, __rvv_float32m8_t, float, RVVM8SF, _f32m8, _f32, |
| 584 |
_e32m8) |
| 585 |
|
| 586 |
/* SEW = 64: |
| 587 |
Disable when !TARGET_VECTOR_ELEN_FP_64. */ |
| 588 |
DEF_RVV_TYPE (vfloat64m1_t, 17, __rvv_float64m1_t, double, RVVM1DF, _f64m1, |
| 589 |
_f64, _e64m1) |
| 590 |
/* Define tuple types for SEW = 64, LMUL = M1. */ |
| 591 |
DEF_RVV_TUPLE_TYPE (vfloat64m1x2_t, 19, __rvv_float64m1x2_t, vfloat64m1_t, double, 2, _f64m1x2) |
| 592 |
DEF_RVV_TUPLE_TYPE (vfloat64m1x3_t, 19, __rvv_float64m1x3_t, vfloat64m1_t, double, 3, _f64m1x3) |
| 593 |
DEF_RVV_TUPLE_TYPE (vfloat64m1x4_t, 19, __rvv_float64m1x4_t, vfloat64m1_t, double, 4, _f64m1x4) |
| 594 |
DEF_RVV_TUPLE_TYPE (vfloat64m1x5_t, 19, __rvv_float64m1x5_t, vfloat64m1_t, double, 5, _f64m1x5) |
| 595 |
DEF_RVV_TUPLE_TYPE (vfloat64m1x6_t, 19, __rvv_float64m1x6_t, vfloat64m1_t, double, 6, _f64m1x6) |
| 596 |
DEF_RVV_TUPLE_TYPE (vfloat64m1x7_t, 19, __rvv_float64m1x7_t, vfloat64m1_t, double, 7, _f64m1x7) |
| 597 |
DEF_RVV_TUPLE_TYPE (vfloat64m1x8_t, 19, __rvv_float64m1x8_t, vfloat64m1_t, double, 8, _f64m1x8) |
| 598 |
DEF_RVV_TYPE (vfloat64m2_t, 17, __rvv_float64m2_t, double, RVVM2DF, _f64m2, |
| 599 |
_f64, _e64m2) |
| 600 |
/* Define tuple types for SEW = 64, LMUL = M2. */ |
| 601 |
DEF_RVV_TUPLE_TYPE (vfloat64m2x2_t, 19, __rvv_float64m2x2_t, vfloat64m2_t, double, 2, _f64m2x2) |
| 602 |
DEF_RVV_TUPLE_TYPE (vfloat64m2x3_t, 19, __rvv_float64m2x3_t, vfloat64m2_t, double, 3, _f64m2x3) |
| 603 |
DEF_RVV_TUPLE_TYPE (vfloat64m2x4_t, 19, __rvv_float64m2x4_t, vfloat64m2_t, double, 4, _f64m2x4) |
| 604 |
DEF_RVV_TYPE (vfloat64m4_t, 17, __rvv_float64m4_t, double, RVVM4DF, _f64m4, |
| 605 |
_f64, _e64m4) |
| 606 |
/* Define tuple types for SEW = 64, LMUL = M4. */ |
| 607 |
DEF_RVV_TUPLE_TYPE (vfloat64m4x2_t, 19, __rvv_float64m4x2_t, vfloat64m4_t, double, 2, _f64m4x2) |
| 608 |
DEF_RVV_TYPE (vfloat64m8_t, 17, __rvv_float64m8_t, double, RVVM8DF, _f64m8, |
| 609 |
_f64, _e64m8) |
| 610 |
|
| 611 |
DEF_RVV_OP_TYPE (vv) |
| 612 |
DEF_RVV_OP_TYPE (vx) |
| 613 |
DEF_RVV_OP_TYPE (vi) |
| 614 |
DEF_RVV_OP_TYPE (v) |
| 615 |
DEF_RVV_OP_TYPE (wv) |
| 616 |
DEF_RVV_OP_TYPE (wx) |
| 617 |
DEF_RVV_OP_TYPE (x_v) |
| 618 |
DEF_RVV_OP_TYPE (vf2) |
| 619 |
DEF_RVV_OP_TYPE (vf4) |
| 620 |
DEF_RVV_OP_TYPE (vf8) |
| 621 |
DEF_RVV_OP_TYPE (vvm) |
| 622 |
DEF_RVV_OP_TYPE (vxm) |
| 623 |
DEF_RVV_OP_TYPE (x_w) |
| 624 |
DEF_RVV_OP_TYPE (x) |
| 625 |
DEF_RVV_OP_TYPE (vs) |
| 626 |
DEF_RVV_OP_TYPE (mm) |
| 627 |
DEF_RVV_OP_TYPE (m) |
| 628 |
DEF_RVV_OP_TYPE (vf) |
| 629 |
DEF_RVV_OP_TYPE (vm) |
| 630 |
DEF_RVV_OP_TYPE (wf) |
| 631 |
DEF_RVV_OP_TYPE (vfm) |
| 632 |
DEF_RVV_OP_TYPE (f) |
| 633 |
DEF_RVV_OP_TYPE (f_v) |
| 634 |
DEF_RVV_OP_TYPE (xu_v) |
| 635 |
DEF_RVV_OP_TYPE (f_w) |
| 636 |
DEF_RVV_OP_TYPE (xu_w) |
| 637 |
DEF_RVV_OP_TYPE (s) |
| 638 |
DEF_RVV_OP_TYPE (4x8x4) |
| 639 |
DEF_RVV_OP_TYPE (2x8x2) |
| 640 |
|
| 641 |
DEF_RVV_PRED_TYPE (ta) |
| 642 |
DEF_RVV_PRED_TYPE (tu) |
| 643 |
DEF_RVV_PRED_TYPE (ma) |
| 644 |
DEF_RVV_PRED_TYPE (mu) |
| 645 |
DEF_RVV_PRED_TYPE (tama) |
| 646 |
DEF_RVV_PRED_TYPE (tamu) |
| 647 |
DEF_RVV_PRED_TYPE (tuma) |
| 648 |
DEF_RVV_PRED_TYPE (tumu) |
| 649 |
DEF_RVV_PRED_TYPE (m) |
| 650 |
DEF_RVV_PRED_TYPE (tam) |
| 651 |
DEF_RVV_PRED_TYPE (tum) |
| 652 |
|
| 653 |
DEF_RVV_BASE_TYPE (vector, builtin_types[type_idx].vector) |
| 654 |
DEF_RVV_BASE_TYPE (scalar, builtin_types[type_idx].scalar) |
| 655 |
DEF_RVV_BASE_TYPE (mask, get_vector_type (type_idx)) |
| 656 |
DEF_RVV_BASE_TYPE (signed_vector, get_vector_type (type_idx)) |
| 657 |
DEF_RVV_BASE_TYPE (unsigned_vector, get_vector_type (type_idx)) |
| 658 |
/* According to riscv-vector-builtins-types.def, the unsigned |
| 659 |
type is always the signed type + 1 (They have same SEW and LMUL). |
| 660 |
For example 'vuint8mf8_t' enum = 'vint8mf8_t' enum + 1. |
| 661 |
Note: We don't allow type_idx to be unsigned type. */ |
| 662 |
DEF_RVV_BASE_TYPE (unsigned_scalar, builtin_types[type_idx + 1].scalar) |
| 663 |
DEF_RVV_BASE_TYPE (vector_ptr, builtin_types[type_idx].vector_ptr) |
| 664 |
/* According to the latest rvv-intrinsic-doc, it defines vsm.v intrinsic: |
| 665 |
__riscv_vsm (uint8_t *base, vbool1_t value, size_t vl). */ |
| 666 |
DEF_RVV_BASE_TYPE (scalar_ptr, get_scalar_ptr_type (type_idx)) |
| 667 |
/* According to the latest rvv-intrinsic-doc, it defines vlm.v intrinsic: |
| 668 |
__riscv_vlm_v_b1 (const uint8_t *base, size_t vl). */ |
| 669 |
DEF_RVV_BASE_TYPE (scalar_const_ptr, get_scalar_const_ptr_type (type_idx)) |
| 670 |
DEF_RVV_BASE_TYPE (void, void_type_node) |
| 671 |
DEF_RVV_BASE_TYPE (size, size_type_node) |
| 672 |
DEF_RVV_BASE_TYPE (ptrdiff, ptrdiff_type_node) |
| 673 |
DEF_RVV_BASE_TYPE (unsigned_long, long_unsigned_type_node) |
| 674 |
DEF_RVV_BASE_TYPE (long, long_integer_type_node) |
| 675 |
DEF_RVV_BASE_TYPE (signed_eew8_index, get_vector_type (type_idx)) |
| 676 |
DEF_RVV_BASE_TYPE (eew8_index, get_vector_type (type_idx)) |
| 677 |
DEF_RVV_BASE_TYPE (eew16_index, get_vector_type (type_idx)) |
| 678 |
DEF_RVV_BASE_TYPE (eew32_index, get_vector_type (type_idx)) |
| 679 |
DEF_RVV_BASE_TYPE (eew64_index, get_vector_type (type_idx)) |
| 680 |
DEF_RVV_BASE_TYPE (shift_vector, get_vector_type (type_idx)) |
| 681 |
DEF_RVV_BASE_TYPE (double_trunc_vector, get_vector_type (type_idx)) |
| 682 |
DEF_RVV_BASE_TYPE (quad_trunc_vector, get_vector_type (type_idx)) |
| 683 |
DEF_RVV_BASE_TYPE (quad_emul_vector, get_vector_type (type_idx)) |
| 684 |
DEF_RVV_BASE_TYPE (quad_emul_signed_vector, get_vector_type (type_idx)) |
| 685 |
DEF_RVV_BASE_TYPE (quad_emul_unsigned_vector, get_vector_type (type_idx)) |
| 686 |
DEF_RVV_BASE_TYPE (quad_fixed_vector, get_vector_type (type_idx)) |
| 687 |
DEF_RVV_BASE_TYPE (quad_fixed_signed_vector, get_vector_type (type_idx)) |
| 688 |
DEF_RVV_BASE_TYPE (quad_fixed_unsigned_vector, get_vector_type (type_idx)) |
| 689 |
DEF_RVV_BASE_TYPE (oct_trunc_vector, get_vector_type (type_idx)) |
| 690 |
DEF_RVV_BASE_TYPE (double_trunc_scalar, get_scalar_type (type_idx)) |
| 691 |
DEF_RVV_BASE_TYPE (double_trunc_signed_vector, get_vector_type (type_idx)) |
| 692 |
DEF_RVV_BASE_TYPE (double_trunc_unsigned_vector, get_vector_type (type_idx)) |
| 693 |
DEF_RVV_BASE_TYPE (double_trunc_unsigned_scalar, get_scalar_type (type_idx)) |
| 694 |
DEF_RVV_BASE_TYPE (double_trunc_bfloat_scalar, get_scalar_type (type_idx)) |
| 695 |
DEF_RVV_BASE_TYPE (double_trunc_bfloat_vector, get_vector_type (type_idx)) |
| 696 |
DEF_RVV_BASE_TYPE (double_trunc_float_vector, get_vector_type (type_idx)) |
| 697 |
DEF_RVV_BASE_TYPE (float_vector, get_vector_type (type_idx)) |
| 698 |
DEF_RVV_BASE_TYPE (lmul1_vector, get_vector_type (type_idx)) |
| 699 |
DEF_RVV_BASE_TYPE (widen_lmul1_vector, get_vector_type (type_idx)) |
| 700 |
DEF_RVV_BASE_TYPE (quad_lmul1_vector, get_vector_type (type_idx)) |
| 701 |
DEF_RVV_BASE_TYPE (quad_lmul1_signed_vector, get_vector_type (type_idx)) |
| 702 |
DEF_RVV_BASE_TYPE (quad_lmul1_unsigned_vector, get_vector_type (type_idx)) |
| 703 |
DEF_RVV_BASE_TYPE (xfqf_vector, get_vector_type (type_idx)) |
| 704 |
DEF_RVV_BASE_TYPE (eew8_interpret, get_vector_type (type_idx)) |
| 705 |
DEF_RVV_BASE_TYPE (eew16_interpret, get_vector_type (type_idx)) |
| 706 |
DEF_RVV_BASE_TYPE (eew32_interpret, get_vector_type (type_idx)) |
| 707 |
DEF_RVV_BASE_TYPE (eew64_interpret, get_vector_type (type_idx)) |
| 708 |
DEF_RVV_BASE_TYPE (bool1_interpret, get_vector_type (type_idx)) |
| 709 |
DEF_RVV_BASE_TYPE (bool2_interpret, get_vector_type (type_idx)) |
| 710 |
DEF_RVV_BASE_TYPE (bool4_interpret, get_vector_type (type_idx)) |
| 711 |
DEF_RVV_BASE_TYPE (bool8_interpret, get_vector_type (type_idx)) |
| 712 |
DEF_RVV_BASE_TYPE (bool16_interpret, get_vector_type (type_idx)) |
| 713 |
DEF_RVV_BASE_TYPE (bool32_interpret, get_vector_type (type_idx)) |
| 714 |
DEF_RVV_BASE_TYPE (bool64_interpret, get_vector_type (type_idx)) |
| 715 |
DEF_RVV_BASE_TYPE (signed_eew8_lmul1_interpret, get_vector_type (type_idx)) |
| 716 |
DEF_RVV_BASE_TYPE (signed_eew16_lmul1_interpret, get_vector_type (type_idx)) |
| 717 |
DEF_RVV_BASE_TYPE (signed_eew32_lmul1_interpret, get_vector_type (type_idx)) |
| 718 |
DEF_RVV_BASE_TYPE (signed_eew64_lmul1_interpret, get_vector_type (type_idx)) |
| 719 |
DEF_RVV_BASE_TYPE (unsigned_eew8_lmul1_interpret, get_vector_type (type_idx)) |
| 720 |
DEF_RVV_BASE_TYPE (unsigned_eew16_lmul1_interpret, get_vector_type (type_idx)) |
| 721 |
DEF_RVV_BASE_TYPE (unsigned_eew32_lmul1_interpret, get_vector_type (type_idx)) |
| 722 |
DEF_RVV_BASE_TYPE (unsigned_eew64_lmul1_interpret, get_vector_type (type_idx)) |
| 723 |
DEF_RVV_BASE_TYPE (vlmul_ext_x2, get_vector_type (type_idx)) |
| 724 |
DEF_RVV_BASE_TYPE (vlmul_ext_x4, get_vector_type (type_idx)) |
| 725 |
DEF_RVV_BASE_TYPE (vlmul_ext_x8, get_vector_type (type_idx)) |
| 726 |
DEF_RVV_BASE_TYPE (vlmul_ext_x16, get_vector_type (type_idx)) |
| 727 |
DEF_RVV_BASE_TYPE (vlmul_ext_x32, get_vector_type (type_idx)) |
| 728 |
DEF_RVV_BASE_TYPE (vlmul_ext_x64, get_vector_type (type_idx)) |
| 729 |
DEF_RVV_BASE_TYPE (size_ptr, build_pointer_type (size_type_node)) |
| 730 |
DEF_RVV_BASE_TYPE (tuple_subpart, get_tuple_subpart_type (type_idx)) |
| 731 |
DEF_RVV_BASE_TYPE (xfqf_float, get_xfqf_float_type (type_idx)) |
| 732 |
|
| 733 |
DEF_RVV_VXRM_ENUM (RNU, VXRM_RNU) |
| 734 |
DEF_RVV_VXRM_ENUM (RNE, VXRM_RNE) |
| 735 |
DEF_RVV_VXRM_ENUM (RDN, VXRM_RDN) |
| 736 |
DEF_RVV_VXRM_ENUM (ROD, VXRM_ROD) |
| 737 |
|
| 738 |
DEF_RVV_FRM_ENUM (RNE, FRM_RNE) |
| 739 |
DEF_RVV_FRM_ENUM (RTZ, FRM_RTZ) |
| 740 |
DEF_RVV_FRM_ENUM (RDN, FRM_RDN) |
| 741 |
DEF_RVV_FRM_ENUM (RUP, FRM_RUP) |
| 742 |
DEF_RVV_FRM_ENUM (RMM, FRM_RMM) |
| 743 |
|
| 744 |
#include "riscv-vector-type-indexer.gen.def" |
| 745 |
|
| 746 |
#undef DEF_RVV_PRED_TYPE |
| 747 |
#undef DEF_RVV_OP_TYPE |
| 748 |
#undef DEF_RVV_TYPE |
| 749 |
#undef DEF_RVV_TUPLE_TYPE |
| 750 |
#undef DEF_RVV_BASE_TYPE |
| 751 |
#undef DEF_RVV_TYPE_INDEX |
| 752 |
#undef DEF_RVV_VXRM_ENUM |
| 753 |
#undef DEF_RVV_FRM_ENUM |