From: Jan Beulich Date: Fri, 21 Jun 2024 06:36:03 +0000 (+0200) Subject: x86/APX: fix disassembly of byte register operands X-Git-Tag: binutils-2_43~328 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=87860ef6f4650d513530af4cb4e3e85a863139cf;p=thirdparty%2Fbinutils-gdb.git x86/APX: fix disassembly of byte register operands Like for REX/REX2, EVEX-prefixed insns access the low bytes of all registers; %ah...%bh are inaccessible. Reflect this correctly in output, by leveraging REX machinery we already have to this effect. --- diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 3a1afcc2fce..9c5063eb4cc 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -9004,6 +9004,7 @@ get_valid_dis386 (const struct dis386 *dp, instr_info *ins) ins->evex_type = evex_from_legacy; if (ins->address_mode != mode_64bit) return &bad_opcode; + ins->rex |= REX_OPCODE; break; case 0x5: vex_table_index = EVEX_MAP5;