This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ix86: allow HLE store of accumulator to absolute address
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Jan Beulich <JBeulich at suse dot com>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 21 Mar 2018 09:25:23 -0700
- Subject: Re: [PATCH] ix86: allow HLE store of accumulator to absolute address
- References: <5AB2291602000078001B4581@prv-mh.provo.novell.com>
On Wed, Mar 21, 2018 at 1:42 AM, Jan Beulich <JBeulich@suse.com> wrote:
> Since they're shorter to encode, the 0xa0...0xa3 encodings are preferred
> for moves between accumulator and absolute address outside of 64-bit
> mode. With HLE release semantics this encoding is unsupported though,
> with the assembler raising an error. The operation is valid though, we
> merely need to pick the longer encoding in that case.
>
> gas/
> 2018-03-21 Jan Beulich <jbeulich@suse.com>
>
> * config/tc-i386.c (match_template): Special case base opcode
> 0xa0 with HLE prefix.
> * testsuite/gas/i386/hle.s: Add mov-accumulator-to-disp cases.
> * testsuite/gas/i386/hle.d, testsuite/gas/i386/hle-intel.d:
> Adjust expectations.
>
> ---
> I'd be more than happy to learn of a way to avoid adding another special
> case in the middle of match_template(); I couldn't think of one, though.
>
OK.
Thanks.
--
H.J.