x86-64: refuse "high" 8-bit regs with .insn and VEX/XOP/EVEX encodings
authorJan Beulich <jbeulich@suse.com>
Fri, 22 Dec 2023 08:34:10 +0000 (09:34 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 22 Dec 2023 08:34:10 +0000 (09:34 +0100)
commit3e4a511bee874d73f9f749cc8cf3bc748b4d47b5
treeef60a2e3f33f6e5ceabe27ffcdc316ed47d24ba9
parentce7056886a6e52a4fc91b5e3b28da2c0735d0b19
x86-64: refuse "high" 8-bit regs with .insn and VEX/XOP/EVEX encodings

Much like REX, those encodings - if permitting 8-bit regs at all, i.e.
only starting with APX - permit use of "new" 8-bit registers only. %ah,
%ch, %dh, and %bh cannot be encoded and hence should be rejected.

Permit their use outside of 64-bit code though, as "new" registers
simply don't exist there.
gas/config/tc-i386.c