mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-01 13:26:47 +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:
parent
5f6b8397a4
commit
4454883ff0
@ -13601,31 +13601,25 @@ MOVSXD_Fixup (int bytemode, int sizeflag)
|
||||
switch (bytemode)
|
||||
{
|
||||
case movsxd_mode:
|
||||
if (intel_syntax)
|
||||
if (!intel_syntax)
|
||||
{
|
||||
*p++ = 'x';
|
||||
*p++ = 'd';
|
||||
goto skip;
|
||||
USED_REX (REX_W);
|
||||
if (rex & REX_W)
|
||||
{
|
||||
*p++ = 'l';
|
||||
*p++ = 'q';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
USED_REX (REX_W);
|
||||
if (rex & REX_W)
|
||||
{
|
||||
*p++ = 'l';
|
||||
*p++ = 'q';
|
||||
}
|
||||
else
|
||||
{
|
||||
*p++ = 'x';
|
||||
*p++ = 'd';
|
||||
}
|
||||
*p++ = 'x';
|
||||
*p++ = 'd';
|
||||
break;
|
||||
default:
|
||||
oappend (INTERNAL_DISASSEMBLER_ERROR);
|
||||
break;
|
||||
}
|
||||
|
||||
skip:
|
||||
mnemonicendp = p;
|
||||
*p = '\0';
|
||||
OP_E (bytemode, sizeflag);
|
||||
|
Loading…
Reference in New Issue
Block a user