public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PATCH: Re-order suffix check in x86 assembler
@ 2007-11-09 13:52 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2007-11-09 13:52 UTC (permalink / raw)
  To: binutils

I am checking this patch to re-order suffix check in x86 assembler.


H.J.
---
2007-11-09  H.J. Lu  <hongjiu.lu@intel.com>

	* config/tc-i386.c (match_template): Re-order suffix check.

--- gas/config/tc-i386.c.short	2007-11-01 17:30:30.000000000 -0700
+++ gas/config/tc-i386.c	2007-11-09 05:49:22.000000000 -0800
@@ -3011,13 +3011,13 @@ match_template (void)
 	continue;
 
       /* Check the suffix, except for some instructions in intel mode.  */
-      if (((t->opcode_modifier.no_bsuf & suffix_check.no_bsuf)
-	   || (t->opcode_modifier.no_wsuf & suffix_check.no_wsuf)
-	   || (t->opcode_modifier.no_lsuf & suffix_check.no_lsuf)
-	   || (t->opcode_modifier.no_ssuf & suffix_check.no_ssuf)
-	   || (t->opcode_modifier.no_qsuf & suffix_check.no_qsuf)
-	   || (t->opcode_modifier.no_ldsuf & suffix_check.no_ldsuf))
-	  && !(intel_syntax && t->opcode_modifier.ignoresize))
+      if ((!intel_syntax || !t->opcode_modifier.ignoresize)
+	  && ((t->opcode_modifier.no_bsuf && suffix_check.no_bsuf)
+	      || (t->opcode_modifier.no_wsuf && suffix_check.no_wsuf)
+	      || (t->opcode_modifier.no_lsuf && suffix_check.no_lsuf)
+	      || (t->opcode_modifier.no_ssuf && suffix_check.no_ssuf)
+	      || (t->opcode_modifier.no_qsuf && suffix_check.no_qsuf)
+	      || (t->opcode_modifier.no_ldsuf && suffix_check.no_ldsuf)))
 	continue;
 
       for (j = 0; j < MAX_OPERANDS; j++)

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

only message in thread, other threads:[~2007-11-09 13:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-09 13:52 PATCH: Re-order suffix check in x86 assembler 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).