x86: avoid cpu_flags_match() bogusly setting CPU_FLAGS_ARCH_MATCH
authorJan Beulich <jbeulich@novell.com>
Thu, 8 Mar 2018 07:44:12 +0000 (08:44 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 Mar 2018 07:44:12 +0000 (08:44 +0100)
gas/ChangeLog
gas/config/tc-i386.c

index 78fafb6615514d7934efcdb363c22e4278127287..683d1bce9a456d5b9ac2ea4fdefd8ba344d48fe1 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-08  Jan Beulich  <jbeulich@suse.com>
+
+       * config/tc-i386.c (cpu_flags_match): Drop "else" branches
+       setting CPU_FLAGS_ARCH_MATCH.
+
 2018-03-08  Jan Beulich  <jbeulich@suse.com>
 
        * config/tc-i386.c (md_assemble): Extend SSE check conditional.
index 4cf7b9daf5355b571342caee0517b0ed92e3d3cb..0c0b591cbfe24cc0f0a60e83d0e8d3c5d71adb96 100644 (file)
@@ -1740,8 +1740,6 @@ cpu_flags_match (const insn_template *t)
                        match |= CPU_FLAGS_PCLMUL_MATCH;
                    }
                }
-             else
-               match |= CPU_FLAGS_ARCH_MATCH;
            }
          else if (x.bitfield.cpuavx512vl)
            {
@@ -1752,11 +1750,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;
This page took 0.031579 seconds and 4 git commands to generate.