PATCH: Continue if processor doesn't match
H.J. Lu
hjl@lucon.org
Fri Jan 11 16:12:00 GMT 2008
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
More information about the Binutils
mailing list