x86: Remove unnecessary vex.w check for xh_mode in disassembler

For all the xh_mode usage in table, they are all using %XH, which will
print "{bad}" while EVEX.W=1. This makes this vex.w check unnecessary.

opcodes/ChangeLog:

	* i386-dis.c (OP_E_memory): Remove vex.w check for xh_mode.
This commit is contained in:
Haochen Jiang 2022-12-05 10:32:00 +08:00 committed by Cui,Lili
parent da16cc96f3
commit 40849d84cb

View file

@ -12206,24 +12206,19 @@ OP_E_memory (instr_info *ins, int bytemode, int sizeflag)
{ {
if (bytemode == xh_mode) if (bytemode == xh_mode)
{ {
if (ins->vex.w) switch (ins->vex.length)
oappend (ins, "{bad}");
else
{ {
switch (ins->vex.length) case 128:
{ oappend (ins, "{1to8}");
case 128: break;
oappend (ins, "{1to8}"); case 256:
break; oappend (ins, "{1to16}");
case 256: break;
oappend (ins, "{1to16}"); case 512:
break; oappend (ins, "{1to32}");
case 512: break;
oappend (ins, "{1to32}"); default:
break; abort ();
default:
abort ();
}
} }
} }
else if (bytemode == q_mode else if (bytemode == q_mode