From: H.J. Lu Date: Sat, 20 Dec 2008 18:20:16 +0000 (+0000) Subject: 2008-12-20 H.J. Lu X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=30a55f88b1e7c07ee714119a8ef53a847fe4b864;p=deliverable%2Fbinutils-gdb.git 2008-12-20 H.J. Lu * config/tc-i386.c (parse_insn): Optimize ".s" handling. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 4d9c5a0661..8e6d86c878 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,7 @@ +2008-12-20 H.J. Lu + + * config/tc-i386.c (parse_insn): Optimize ".s" handling. + 2008-12-20 H.J. Lu * config/tc-i386.c (_i386_insn): Add swap_operand. diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index d74c1c664d..5505d5cd51 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -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)