]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
x86/APX: respect {vex}/{vex3}
authorJan Beulich <jbeulich@suse.com>
Fri, 1 Mar 2024 08:19:58 +0000 (09:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 1 Mar 2024 08:19:58 +0000 (09:19 +0100)
commiteb3f3841da4ea29dec13c84c241c17a7623d15ca
treed6b8277d309b211ce9a38998c02165c5a4dac9c5
parent932e5949a9f366d149b1b9093c49225502dee890
x86/APX: respect {vex}/{vex3}

Even when an EVEX encoding is available, use of such a prefix ought to
be respected (resulting in an error) rather than ignored. As requested
during review already, introduce a new encoding enumerator to record use
of eGPR-s, and update state transitions accordingly.

The optimize_encoding() change also addresses an internal assembler
error that was previously raised when respective memory operands used
eGPR-s for addressing.

While this results in a change of diagnostic issued for VEX-encoded
insns, the new one is at least no worse than the prior one.
gas/config/tc-i386-intel.c
gas/config/tc-i386.c
gas/testsuite/gas/i386/x86-64-apx-egpr-inval.l
gas/testsuite/gas/i386/x86-64-apx-egpr-inval.s