diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-07-28 03:41:16 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-07-28 03:55:53 -0700 |
commit | 1a02d6b0ff80048df106cbb776a550278f8c9d9c (patch) | |
tree | 75a0bfd9d3535aa8d3f27240e3385348e4fe34c7 /gas/doc | |
parent | 43d5901dedc7d0eefd7b677f555a4cbf470ee455 (diff) | |
download | gdb-1a02d6b0ff80048df106cbb776a550278f8c9d9c.zip gdb-1a02d6b0ff80048df106cbb776a550278f8c9d9c.tar.gz gdb-1a02d6b0ff80048df106cbb776a550278f8c9d9c.tar.bz2 |
x86: Handle {disp32} for (%bp)/(%ebp)/(%rbp)
Since (%bp)/(%ebp)/(%rbp) are encoded as 0(%bp)/0(%ebp)/0(%rbp), use
disp32/disp16 on 0(%bp)/0(%ebp)/0(%rbp) for {disp32}.
Note: Since there is no disp32 on 0(%bp), use disp16 instead.
PR gas/26305
* config/tc-i386.c (build_modrm_byte): Use disp32/disp16 on
(%bp)/(%ebp)/(%rbp) for {disp32}.
* doc/c-i386.texi: Update {disp32} documentation.
* testsuite/gas/i386/pseudos.s: Add (%bp)/(%ebp) tests.
* testsuite/gas/i386/x86-64-pseudos.s: Add (%ebp)/(%rbp) tests.
* testsuite/gas/i386/pseudos.d: Updated.
* testsuite/gas/i386/x86-64-pseudos.d: Likewise.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/c-i386.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/doc/c-i386.texi b/gas/doc/c-i386.texi index 3813f5e..8be708e 100644 --- a/gas/doc/c-i386.texi +++ b/gas/doc/c-i386.texi @@ -822,7 +822,7 @@ Different encoding options can be specified via pseudo prefixes: @samp{@{disp8@}} -- prefer 8-bit displacement. @item -@samp{@{disp32@}} -- prefer 32-bit displacement. +@samp{@{disp32@}} -- prefer 32-bit (16-bit in 16-bit mode) displacement. @item @samp{@{load@}} -- prefer load-form instruction. |