Skip to content

Commit cd013fc

Browse files
authored
Merge pull request #50 from riscv-non-isa/kitoc/opt-vec-strict-align
Add -m[no-][scalar|vector]-strict-align
2 parents 0ea1e16 + 8b45411 commit cd013fc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.mkd

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,18 @@ NOTE: The compiler may generate misaligned access if the program violates the
422422
alignment assumption.
423423
NOTE: This option does not affect inline assembly.
424424

425+
426+
### `-mscalar-strict-align`/`-mno-scalar-strict-align`/`-mvector-strict-align`/`-mno-vector-strict-align`
427+
428+
`-mscalar-strict-align`/`-mno-scalar-strict-align`: Similar to
429+
`-mstrict-align`/`-mno-strict-align` but applied to scalar memory access only.
430+
431+
`-mvector-strict-align`/`-mno-vector-strict-align`: Similar to
432+
`-mstrict-align`/`-mno-strict-align` but applied to vector memory access only.
433+
434+
The precedence among `-m[no]-scalar-strict-align`, `-m[no-]vector-strict-align`,
435+
and `-m[no-]strict-align` is determined by the last one specified.
436+
425437
## TODO
426438

427439
* `-mdiv`, `-mno-div`, `-mfdiv`, `-mno-fdiv`, `-msave-restore`,

0 commit comments

Comments
 (0)