mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:54:41 +08:00
2008-12-20 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (parse_insn): Optimize ".s" handling.
This commit is contained in:
parent
b6169b206a
commit
30a55f88b1
@ -1,3 +1,7 @@
|
||||
2008-12-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* config/tc-i386.c (parse_insn): Optimize ".s" handling.
|
||||
|
||||
2008-12-20 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* config/tc-i386.c (_i386_insn): Add swap_operand.
|
||||
|
@ -2994,19 +2994,16 @@ parse_insn (char *line, char *mnemonic)
|
||||
break;
|
||||
}
|
||||
|
||||
if (!current_templates && dot_p)
|
||||
if (!current_templates)
|
||||
{
|
||||
if (mnem_p - 2 == dot_p)
|
||||
{
|
||||
/* Check if we should swap operand in encoding. */
|
||||
if (dot_p[1] == 's')
|
||||
i.swap_operand = 1;
|
||||
else
|
||||
goto check_suffix;
|
||||
mnem_p = dot_p;
|
||||
*dot_p = '\0';
|
||||
current_templates = hash_find (op_hash, mnemonic);
|
||||
}
|
||||
/* Check if we should swap operand in encoding. */
|
||||
if (mnem_p - 2 == dot_p && dot_p[1] == 's')
|
||||
i.swap_operand = 1;
|
||||
else
|
||||
goto check_suffix;
|
||||
mnem_p = dot_p;
|
||||
*dot_p = '\0';
|
||||
current_templates = hash_find (op_hash, mnemonic);
|
||||
}
|
||||
|
||||
if (!current_templates)
|
||||
|
Loading…
Reference in New Issue
Block a user