Bläddra i källkod

+ more x86 cpu flags

git-svn-id: trunk@26513 -
florian 11 år sedan
förälder
incheckning
a752e3542d
2 ändrade filer med 13 tillägg och 6 borttagningar
  1. 7 3
      compiler/i386/cpuinfo.pas
  2. 6 3
      compiler/x86_64/cpuinfo.pas

+ 7 - 3
compiler/i386/cpuinfo.pas

@@ -130,7 +130,10 @@ Const
 type
    tcpuflags =
       (CPUX86_HAS_BMI1,
-       CPUX86_HAS_BMI2
+       CPUX86_HAS_BMI2,
+       CPUX86_HAS_POPCNT,
+       CPUX86_HAS_LZCNT,
+       CPUX86_HAS_MOVBE
       );
 
  const
@@ -142,10 +145,11 @@ type
      { cpu_Pentium3  } [],
      { cpu_Pentium4  } [],
      { cpu_PentiumM  } [],
-     { cpu_core_avx  } [],
-     { cpu_core_avx2 } [CPUX86_HAS_BMI1,CPUX86_HAS_BMI2]
+     { cpu_core_avx  } [CPUX86_HAS_POPCNT],
+     { cpu_core_avx2 } [CPUX86_HAS_POPCNT,CPUX86_HAS_BMI1,CPUX86_HAS_BMI2,CPUX86_HAS_LZCNT,CPUX86_HAS_MOVBE]
    );
 
+
 Implementation
 
 end.

+ 6 - 3
compiler/x86_64/cpuinfo.pas

@@ -118,15 +118,18 @@ Const
 type
    tcpuflags =
       (CPUX86_HAS_BMI1,
-       CPUX86_HAS_BMI2
+       CPUX86_HAS_BMI2,
+       CPUX86_HAS_POPCNT,
+       CPUX86_HAS_LZCNT,
+       CPUX86_HAS_MOVBE
       );
 
  const
    cpu_capabilities : array[tcputype] of set of tcpuflags = (
      { cpu_none      } [],
      { Athlon64      } [],
-     { cpu_core_avx  } [],
-     { cpu_core_avx2 } [CPUX86_HAS_BMI1,CPUX86_HAS_BMI2]
+     { cpu_core_avx  } [CPUX86_HAS_POPCNT],
+     { cpu_core_avx2 } [CPUX86_HAS_POPCNT,CPUX86_HAS_BMI1,CPUX86_HAS_BMI2,CPUX86_HAS_LZCNT,CPUX86_HAS_MOVBE]
    );
 
 Implementation