This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] x86/Intel: relax requirements for memory operands
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jan Beulich <JBeulich at suse dot com>
- Cc: binutils at sourceware dot org
- Date: Mon, 30 Jul 2012 08:59:22 -0700
- Subject: Re: [PATCH] x86/Intel: relax requirements for memory operands
- References: <500ED1D70200007800090396@nat28.tlf.novell.com>
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.