x86: Check VEX/EVEX encoding before checking vector operands
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 20 Oct 2022 16:18:19 +0000 (09:18 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 20 Oct 2022 16:28:23 +0000 (09:28 -0700)
commit9bb4d860222f2ffd5395ce84fec5dee0eb1f28b0
treef519aa7bd7ef32f0e71d5e1b7330ef97b7136258
parent8a3b17063e86ba7687896de7b5de870006a02ef5
x86: Check VEX/EVEX encoding before checking vector operands

Since

commit 837e225ba1992f9745e5bbbd5e8443243a7f475f
Author: Jan Beulich <jbeulich@suse.com>
Date:   Thu Oct 20 10:01:12 2022 +0200

    x86: re-work AVX-VNNI support

moved AVX-VNNI after AVX512-VNNI, vector Disp8 is applied even when VEX
encoding is selected.  Check VEX/EVEX encoding before checking vector
operands to avoid vector Disp8 with VEX encoding.

PR gas/29708
* config/tc-i386.c (match_template): Check VEX/EVEX encoding
before checking vector operands.
* testsuite/gas/i386/avx-vnni.d: Updated.
* testsuite/gas/i386/x86-64-avx-vnni.d: Likewise.
* testsuite/gas/i386/avx-vnni.s: Add a Disp32 test.
* testsuite/gas/i386/x86-64-avx-vnni.s: Likewise.
gas/config/tc-i386.c
gas/testsuite/gas/i386/avx-vnni.d
gas/testsuite/gas/i386/avx-vnni.s
gas/testsuite/gas/i386/x86-64-avx-vnni.d
gas/testsuite/gas/i386/x86-64-avx-vnni.s