This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]