[PATCH 5/6] x86/MPX: fix operand size handling
H.J. Lu
hjl.tools@gmail.com
Tue Oct 8 15:45:00 GMT 2013
On Tue, Oct 8, 2013 at 7:43 AM, Jan Beulich <JBeulich@suse.com> wrote:
> All MPX instructions in 64-bit mode ignore REX.W, which means we neither
> need to encode this bit nor should disassemble with 32-bit register
> operands.
>
> No MPX instructions would ever take a 16-bit register operand.
>
> gas/
> 2013-10-08 Jan Beulich <jbeulich@suse.com>
>
> * tc-i386.c (process_suffix): Warn about 32-bit register operands
> to MPX instructions in 64-bit mode.
I think it should be an error.
> opcodes/
> 2013-10-08 Jan Beulich <jbeulich@suse.com>
>
> * i386-dis.c (intel_operand_size): Move v_bnd_mode alongside the
> default case.
> (OP_E_register): Move v_bnd_mode alongside m_mode.
> * i386-opc.h (REGNAM_RAX): New.
> * i386-opc.tbl (bndcl, bndcu, bndcn): Drop Reg16. Add NoRex64.
> * i386-tbl.h: Re-generate.
>
Should we also remove Disp16?
--
H.J.
More information about the Binutils
mailing list