瀏覽代碼

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

J. Gareth "Curious Kit" Moreton 2 年之前
父節點
當前提交
a1ea1dd98e
共有 1 個文件被更改,包括 2 次插入2 次删除
  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