[PATCH] x86/Intel: relax requirements for memory operands

H.J. Lu hjl.tools@gmail.com
Mon Jul 30 15:59:00 GMT 2012


On Tue, Jul 24, 2012 at 7:48 AM, Jan Beulich <JBeulich@suse.com> wrote:
> MASM accepts ESP/RSP being specified second in a memory address
> operand, by silently making it the base register despite not being
> specified first.
>
> Consequently, we also permit an xmm/ymm index to be specified first
> (possibly alone), nevertheless putting it in as index register.
>
> 2012-07-24  Jan Beulich <jbeulich@suse.com>
>
>         * config/tc-i386-intel.c (i386_intel_simplify_register): Handle
>         xmm/ymm index register being specified first as well as esp/rsp
>         base register being specified last in a memory operand.
>

This caused:

FAIL: i386 inval-equ-2

on Linux/x86.



-- 
H.J.



More information about the Binutils mailing list