This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] x86: correct operand size match checks for BMI/BMI2 insns
- 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, 7 Mar 2018 05:44:24 -0800
- Subject: Re: [PATCH] x86: correct operand size match checks for BMI/BMI2 insns
- Authentication-results: sourceware.org; auth=none
- References: <5A9FFA0302000078001AF6C8@prv-mh.provo.novell.com>
On Wed, Mar 7, 2018 at 5:41 AM, Jan Beulich <JBeulich@suse.com> wrote:
> Some BMI/BMI2 insns allow their middle operands to be a memory one. In
> such a case, matching register types between operands 0 and 1 as well as
> 1 and 2 won't help - operands 0 and 2 also need to be checked.
>
> gas/
> 2018-03-07 Jan Beulich <jbeulich@suse.com>
>
> * config/tc-i386.c (match_template): Also match register
> operands 0 and 2 for 3-operand forms.
> * testsuite/gas/i386/unspec64.l, testsuite/gas/i386/unspec64.s:
> New.
> * testsuite/gas/i386/i386.exp: Run new test.
OK.
Thanks.
--
H.J.