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
Update __riscv_misaligned_* macros to refer to scalar only (#80)
* Update __riscv_misaligned_* macros to refer to scalar only
This seems to the direction we're moving -mstrict-align/-mno-strict-align towards.
Signed-off-by: Craig Topper <craig.topper@sifive.com>
* fixup! fix typo
---------
Signed-off-by: Craig Topper <craig.topper@sifive.com>
|__riscv_v_min_vlen | <N> (see [__riscv_v_min_vlen](#__riscv_v_min_vlen)) | The `V` extension or one of the `Zve*` extensions is available. |
28
28
|__riscv_v_elen | <N> (see [__riscv_v_elen](#__riscv_v_elen)) | The `V` extension or one of the `Zve*` extensions is available. |
29
29
|__riscv_v_elen_fp | <N> (see [__riscv_v_elen_fp](#__riscv_v_elen_fp)) | The `V` extension or one of the `Zve*` extensions is available. |
30
-
|__riscv_misaligned_fast | 1 |Misaligned accesses are fast. |
31
-
|__riscv_misaligned_slow | 1 |Misaligned accesses are supported, but may be substantially slower than aligned accesses. |
32
-
|__riscv_misaligned_avoid | 1 |Misaligned accesses are not supported and could trap. (see [__riscv_misaligned_{fast,slow,avoid}](#__riscv_misaligned_{fast,slow,avoid})|
30
+
|__riscv_misaligned_fast | 1 |Scalar misaligned accesses are fast. |
31
+
|__riscv_misaligned_slow | 1 |Scalar misaligned accesses are supported, but may be substantially slower than aligned accesses. |
32
+
|__riscv_misaligned_avoid | 1 |Scalar misaligned accesses are not supported and could trap. (see [__riscv_misaligned_{fast,slow,avoid}](#__riscv_misaligned_{fast,slow,avoid})|
33
33
34
34
### __riscv_v_min_vlen
35
35
@@ -84,7 +84,7 @@ If none of the rules apply, `__riscv_v_elen_fp` is undefined.
84
84
### __riscv_misaligned_{fast,slow,avoid}
85
85
86
86
These can be used in common library code to compile time segregate code which relies
87
-
on misaligned access being fast or not.
87
+
on scalar misaligned access being fast or not.
88
88
A typical compiler could (but not necessarily) map fast variant to -mno-strict-align
89
89
and avoid to -mstrict-align, if specified.
90
90
Perhaps obvious, but these are mutually exclusive, so only one is defined at a time
0 commit comments