This is the mail archive of the binutils-cvs@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]

[binutils-gdb] x86: drop CPU_FLAGS_32BIT_MATCH


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=db12e14ea0f35738dbde263a8d37610995227853

commit db12e14ea0f35738dbde263a8d37610995227853
Author: Jan Beulich <jbeulich@novell.com>
Date:   Thu Mar 8 08:45:25 2018 +0100

    x86: drop CPU_FLAGS_32BIT_MATCH
    
    It has become a plain alias of CPU_FLAGS_ARCH_MATCH now.

Diff:
---
 gas/ChangeLog        | 6 ++++++
 gas/config/tc-i386.c | 9 ++++-----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index 6046011..144edef 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,11 @@
 2018-03-08  Jan Beulich  <jbeulich@suse.com>
 
+	* config/tc-i386.c (CPU_FLAGS_32BIT_MATCH): Delete.
+	(cpu_flags_match): Use CPU_FLAGS_ARCH_MATCH instead of
+	CPU_FLAGS_32BIT_MATCH.
+
+2018-03-08  Jan Beulich  <jbeulich@suse.com>
+
 	* config/tc-i386.c (CPU_FLAGS_AES_MATCH, CPU_FLAGS_AVX_MATCH,
 	CPU_FLAGS_PCLMUL_MATCH): Delete.
 	(CPU_FLAGS_32BIT_MATCH): Drop uses of deleted CPU_FLAGS_*_MATCH.
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 818281c..dee3644 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -1688,9 +1688,8 @@ cpu_flags_and_not (i386_cpu_flags x, i386_cpu_flags y)
 #define CPU_FLAGS_ARCH_MATCH		0x1
 #define CPU_FLAGS_64BIT_MATCH		0x2
 
-#define CPU_FLAGS_32BIT_MATCH CPU_FLAGS_ARCH_MATCH
 #define CPU_FLAGS_PERFECT_MATCH \
-  (CPU_FLAGS_32BIT_MATCH | CPU_FLAGS_64BIT_MATCH)
+  (CPU_FLAGS_ARCH_MATCH | CPU_FLAGS_64BIT_MATCH)
 
 /* Return CPU flags match bits. */
 
@@ -1706,7 +1705,7 @@ cpu_flags_match (const insn_template *t)
   if (cpu_flags_all_zero (&x))
     {
       /* This instruction is available on all archs.  */
-      match |= CPU_FLAGS_32BIT_MATCH;
+      match |= CPU_FLAGS_ARCH_MATCH;
     }
   else
     {
@@ -1733,11 +1732,11 @@ cpu_flags_match (const insn_template *t)
 		  /* Need another match.  */
 		  cpu.bitfield.cpuavx512vl = 0;
 		  if (!cpu_flags_all_zero (&cpu))
-		    match |= CPU_FLAGS_32BIT_MATCH;
+		    match |= CPU_FLAGS_ARCH_MATCH;
 		}
 	    }
 	  else
-	    match |= CPU_FLAGS_32BIT_MATCH;
+	    match |= CPU_FLAGS_ARCH_MATCH;
 	}
     }
   return match;


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