[PATCH] x86: correct operand size match checks for BMI/BMI2 insns
H.J. Lu
hjl.tools@gmail.com
Wed Mar 7 13:44:00 GMT 2018
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.
More information about the Binutils
mailing list