Don't clear cpu64 nor cpuno64
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 27 May 2016 11:56:05 +0000 (04:56 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 27 May 2016 11:56:05 +0000 (04:56 -0700)
No need to clear cpu64 nor cpuno64 since they will be cleared by
cpu_flags_and.

* config/tc-i386.c (cpu_flags_match): Don't clear cpu64 nor
cpuno64.

gas/ChangeLog
gas/config/tc-i386.c

index 2d132c5bb15cccaf25b7cec0be6de49e023690ef..0411e675dd246ab872fed0a8fcb12e8f7269ec64 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-27  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/tc-i386.c (cpu_flags_match): Don't clear cpu64 nor
+       cpuno64.
+
 2016-05-26  Peter Bergner <bergner@vnet.ibm.com>
 
        * testsuite/gas/ppc/altivec3.d <vmsumudm>: Add test.
index af94f72d7e63107397a42482448ef972c9c6bda0..fb3f369dc73b5b3b92021e8d88ec09bd3b4cfd0e 100644 (file)
@@ -1537,8 +1537,6 @@ cpu_flags_match (const insn_template *t)
       /* This instruction is available only on some archs.  */
       i386_cpu_flags cpu = cpu_arch_flags;
 
-      cpu.bitfield.cpu64 = 0;
-      cpu.bitfield.cpuno64 = 0;
       cpu = cpu_flags_and (x, cpu);
       if (!cpu_flags_all_zero (&cpu))
        {