[PATCH] x86-64/Intel: fix CALL/JMP with dword operand
H.J. Lu
hjl.tools@gmail.com
Tue Dec 3 17:47:00 GMT 2019
On Wed, Nov 27, 2019 at 2:35 AM Jan Beulich <jbeulich@suse.com> wrote:
>
> While dc2be329b950 ("i386: Only check suffix in instruction mnemonic")
> has made the assembler accept these in the first place (they were wrongly
> rejected before), the generated code was still wrong in that it lacked
> an operand size override. (In 64-bit code, other than in 16- and 32-bit
> ones, CALL and JMP with memory operands are all entirely unambiguous: No
> operand size can have two meanings.)
>
> gas/
> 2019-11-XX Jan Beulich <jbeulich@suse.com>
>
> * config/tc-i386-intel.c (i386_intel_operand): Also handle DWORD
> with 64-bit mode branches.
> * testsuite/gas/i386/x86-64-jump.s: Extend Intel syntax branch
> operand coverage.
> * testsuite/gas/i386/x86-64-jump.d: Adjust expectations.
>
OK.
Thanks.
--
H.J.
More information about the Binutils
mailing list