You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After adding the zve extension it is not obvious for user whether if there is
any vector instructions available. Adding __riscv_vector will let the users
able to check this.
|__riscv_xlen | <ul><li>32 for rv32</li><li>64 for rv64</li><li>128 for rv128</ul> | Always defined. |
40
40
|__riscv_flen | <ul><li>32 if the F extension is available **or**</li><li>64 if `D` extension available **or**</li><li>128 if `Q` extension available</li></ul> |`F` extension is available. |
41
41
|__riscv_32e | 1 |`E` extension is available. |
42
+
|__riscv_vector | 1 | Implies that any of the vector extensions (`v` or `zve*`) is available |
42
43
43
44
### Architecture Extension Test Macro
44
45
@@ -104,7 +105,6 @@ For example:
104
105
|__riscv_fdiv | 1 |`F` extension is available and `-mno-fdiv` is not given.*[1]|`__riscv_f` or `__riscv_d`|
105
106
|__riscv_fsqrt | 1 |`F` extension is available and `-mno-fdiv` is not given.*[1]|`__riscv_f` or `__riscv_d`|
106
107
|__riscv_compressed | 1 |`C` extension is available. |`__riscv_c`|
107
-
|__riscv_vector | 1 |`V` extension is available. |`__riscv_v`|
108
108
109
109
*[1] Not all compilers provide `-mno-div` and `-mno-fdiv` option.
0 commit comments