This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Continue if processor doesn't match
- From: "H.J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Thu, 10 Jan 2008 12:51:52 -0800
- Subject: PATCH: Continue if processor doesn't match
There is no need to match operands if processor doesn't match. I
am checking in this patch to implement it.
H.J.
---
2008-01-10 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (match_template): Continue if processor
doesn't match.
--- gas/config/tc-i386.c.skip 2008-01-10 10:16:03.000000000 -0800
+++ gas/config/tc-i386.c 2008-01-10 12:46:49.000000000 -0800
@@ -3056,13 +3056,11 @@ match_template (void)
else
{
found_cpu_match = cpu_flags_match (t->cpu_flags) == 3;
+ if (!found_cpu_match)
+ continue;
if (!t->operands)
- {
- if (!found_cpu_match)
- continue;
- /* We've found a match; break out of loop. */
- break;
- }
+ /* We've found a match; break out of loop. */
+ break;
}
/* Address size prefix will turn Disp64/Disp32/Disp16 operand