mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
x86: fold duplicate code in MOVSXD_Fixup()
There's no need to have two paths printing the "xd" mnemonic suffix.
This commit is contained in:
@ -13601,31 +13601,25 @@ MOVSXD_Fixup (int bytemode, int sizeflag)
|
|||||||
switch (bytemode)
|
switch (bytemode)
|
||||||
{
|
{
|
||||||
case movsxd_mode:
|
case movsxd_mode:
|
||||||
if (intel_syntax)
|
if (!intel_syntax)
|
||||||
{
|
{
|
||||||
*p++ = 'x';
|
USED_REX (REX_W);
|
||||||
*p++ = 'd';
|
if (rex & REX_W)
|
||||||
goto skip;
|
{
|
||||||
|
*p++ = 'l';
|
||||||
|
*p++ = 'q';
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
USED_REX (REX_W);
|
*p++ = 'x';
|
||||||
if (rex & REX_W)
|
*p++ = 'd';
|
||||||
{
|
|
||||||
*p++ = 'l';
|
|
||||||
*p++ = 'q';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
*p++ = 'x';
|
|
||||||
*p++ = 'd';
|
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
oappend (INTERNAL_DISASSEMBLER_ERROR);
|
oappend (INTERNAL_DISASSEMBLER_ERROR);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
skip:
|
|
||||||
mnemonicendp = p;
|
mnemonicendp = p;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
OP_E (bytemode, sizeflag);
|
OP_E (bytemode, sizeflag);
|
||||||
|
Reference in New Issue
Block a user