Skip to content

Commit 34ce6c7

Browse files
authored
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>
1 parent 7722b44 commit 34ce6c7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

riscv-c-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ https://creativecommons.org/licenses/by/4.0/.
2727
| __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. |
2828
| __riscv_v_elen | <N> (see [__riscv_v_elen](#__riscv_v_elen)) | The `V` extension or one of the `Zve*` extensions is available. |
2929
| __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}) |
3333

3434
### __riscv_v_min_vlen
3535

@@ -84,7 +84,7 @@ If none of the rules apply, `__riscv_v_elen_fp` is undefined.
8484
### __riscv_misaligned_{fast,slow,avoid}
8585

8686
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.
8888
A typical compiler could (but not necessarily) map fast variant to -mno-strict-align
8989
and avoid to -mstrict-align, if specified.
9090
Perhaps obvious, but these are mutually exclusive, so only one is defined at a time

0 commit comments

Comments
 (0)