diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2019-12-12 11:57:03 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2019-12-12 12:03:45 -0800 |
commit | 76cf450b4ce818b298451619e80e041e6eb4ec24 (patch) | |
tree | a98323a4931de9b690d0607773ee3df61c19df44 /gas/doc | |
parent | e379e5f385f874adb0b414f917adb1fc50e20de9 (diff) | |
download | binutils-gdb-76cf450b4ce818b298451619e80e041e6eb4ec24.tar.gz |
i386: Add -mbranches-within-32B-boundaries
Add -mbranches-within-32B-boundaries to enable
-malign-branch-boundary=32
-malign-branch=jcc+fused+jmp
-malign-branch-prefix-size=5
* config/tc-i386.c (OPTION_MBRANCHES_WITH_32B_BOUNDARIES): New.
(md_longopts): Add -mbranches-within-32B-boundaries.
(md_parse_option): Handle -mbranches-within-32B-boundaries.
(md_show_usage): Add -mbranches-within-32B-boundaries.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/c-i386.texi | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi index 74296e61f69..08f139cc150 100644 --- a/gas/doc/c-i386.texi +++ b/gas/doc/c-i386.texi @@ -449,6 +449,17 @@ This option specifies the maximum number of prefixes on an instruction to align branches. @var{NUM} should be between 0 and 5. The default @var{NUM} is 5. +@cindex @samp{-mbranches-within-32B-boundaries} option, i386 +@cindex @samp{-mbranches-within-32B-boundaries} option, x86-64 +@item -mbranches-within-32B-boundaries +This option aligns conditional jumps, fused conditional jumps and +unconditional jumps within 32 byte boundary with up to 5 segment prefixes +on an instruction. It is equivalent to +@option{-malign-branch-boundary=32} +@option{-malign-branch=jcc+fused+jmp} +@option{-malign-branch-prefix-size=5}. +The default doesn't align branches. + @cindex @samp{-mx86-used-note=} option, i386 @cindex @samp{-mx86-used-note=} option, x86-64 @item -mx86-used-note=@var{no} |