소스 검색

* x86: Made a check for BMI2 more explicit in the integer division code generator

J. Gareth "Curious Kit" Moreton 3 년 전
부모
커밋
63a2395e2c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      compiler/x86/nx86mat.pas

+ 1 - 1
compiler/x86/nx86mat.pas

@@ -572,7 +572,7 @@ interface
             DoMod: Boolean;
           begin
 {$ifndef i8086}
-            if (current_settings.cputype = cpu_core_avx2) then
+            IF (CPUX86_HAS_BMI2 in cpu_capabilities[current_settings.cputype]) then
               begin
                 { If BMI2 is available, use more efficient instructions }
                 DoBMI2ReciprocalDivision;