public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Continue if processor doesn't match
@ 2008-01-11 16:12 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2008-01-11 16:12 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-01-10 20:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-11 16:12 PATCH: Continue if processor doesn't match H.J. Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).