Browse Source

* x86: Changed BMI2 check to BMI1 for ordinal ANDN optimisation

J. Gareth "Curious Kit" Moreton 2 years ago
parent
commit
a1ea1dd98e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/x86/nx86add.pas

+ 2 - 2
compiler/x86/nx86add.pas

@@ -1944,9 +1944,9 @@ unit nx86add;
        opsize:=def_cgsize(left.resultdef);
 
 {$ifndef i8086}
-       { Bit-manipulation optimisations }
+       { BMI1 optimisations }
        if (cs_opt_level2 in current_settings.optimizerswitches) and
-         (CPUX86_HAS_BMI2 in cpu_capabilities[current_settings.cputype]) then
+         (CPUX86_HAS_BMI1 in cpu_capabilities[current_settings.cputype]) then
          begin
            { Can we turn "x and (not y)" into an ANDN instruction instead? }
            if (nodetype = andn) and