PATCH: Continue if processor doesn't match

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

PATCH: Continue if processor doesn't match

H.J. Lu-27
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  <[hidden email]>

        * 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