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: Re-order suffix check in x86 assembler


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++)


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