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 1/6] x86: avoid cpu_flags_match() bogusly setting CPU_FLAGS_ARCH_MATCH


gas/
2018-03-07  Jan Beulich  <jbeulich@suse.com>

	* config/tc-i386.c (cpu_flags_match): Drop "else" branches
	setting CPU_FLAGS_ARCH_MATCH.

--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1738,8 +1738,6 @@ cpu_flags_match (const insn_template *t)
 			match |= CPU_FLAGS_PCLMUL_MATCH;
 		    }
 		}
-	      else
-		match |= CPU_FLAGS_ARCH_MATCH;
 	    }
 	  else if (x.bitfield.cpuavx512vl)
 	    {
@@ -1750,11 +1748,7 @@ cpu_flags_match (const insn_template *t)
 		  cpu.bitfield.cpuavx512vl = 0;
 		  if (!cpu_flags_all_zero (&cpu))
 		    match |= CPU_FLAGS_32BIT_MATCH;
-		  else
-		    match |= CPU_FLAGS_ARCH_MATCH;
 		}
-	      else
-		match |= CPU_FLAGS_ARCH_MATCH;
 	    }
 	  else
 	    match |= CPU_FLAGS_32BIT_MATCH;




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