aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2008-01-10 21:59:46 +0000
committerH.J. Lu <hjl.tools@gmail.com>2008-01-10 21:59:46 +0000
commit50aecf8c5f9168952bbe9362f2d7d130089d6286 (patch)
treeee564d10969a10cecb0046832f9ff019919c401f /gas/config
parent2dbab7d57298a8e3b7567bc3ae5158b83ec22a3f (diff)
downloadbinutils-50aecf8c5f9168952bbe9362f2d7d130089d6286.zip
binutils-50aecf8c5f9168952bbe9362f2d7d130089d6286.tar.gz
binutils-50aecf8c5f9168952bbe9362f2d7d130089d6286.tar.bz2
2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (match_template): Check processor support first.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-i386.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 4d2c7c5..1d884b6 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -3000,6 +3000,11 @@ match_template (void)
if (i.operands != t->operands)
continue;
+ /* Check processor support. */
+ found_cpu_match = cpu_flags_match (t->cpu_flags) == 3;
+ if (!found_cpu_match)
+ continue;
+
/* Check old gcc support. */
if (!old_gcc && t->opcode_modifier.oldgcc)
continue;
@@ -3053,11 +3058,8 @@ match_template (void)
continue;
/* Do not verify operands when there are none. */
- else
+ else
{
- found_cpu_match = cpu_flags_match (t->cpu_flags) == 3;
- if (!found_cpu_match)
- continue;
if (!t->operands)
/* We've found a match; break out of loop. */
break;