[PATCH] x86: Handle {disp32} for (%bp)/(%ebp)/(%rbp)
H.J. Lu
hjl.tools@gmail.com
Tue Jul 28 10:39:52 GMT 2020
On Mon, Jul 27, 2020 at 4:23 PM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> 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}.
> * 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.
I am checking in this and will backport it to 2.35 branch.
--
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-x86-Handle-disp32-for-bp-ebp-rbp.patch
Type: text/x-patch
Size: 7995 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20200728/4184fda8/attachment.bin>
More information about the Binutils
mailing list