Skip to content

Commit 8b45411

Browse files
committed
Add -m[no-][scalar|vector]-strict-align
Add two new option `-m[no-]scalar-strict-align` for alias of `-m[no-]-strict-align` and `-m[no-][vector]-strict-align` for vector misaligned access.
1 parent 0ea1e16 commit 8b45411

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)