Browse Source

+ more Aarch64 cpu capability flags added

florian 3 years ago
parent
commit
f570b6cb7b
2 changed files with 13 additions and 1 deletions
  1. 8 0
      compiler/aarch64/agcpugas.pas
  2. 5 1
      compiler/aarch64/cpuinfo.pas

+ 8 - 0
compiler/aarch64/agcpugas.pas

@@ -107,8 +107,16 @@ unit agcpugas;
         for cf in cpu_capabilities[current_settings.cputype] do
           begin
             case cf of
+              CPUAARCH64_HAS_DOTPROD:
+                Result:=Result+'+dotprod';
+              CPUAARCH64_HAS_AES:
+                Result:=Result+'+aes';
               CPUAARCH64_HAS_SHA2:
                 Result:=Result+'+sha2';
+              CPUAARCH64_HAS_SHA3:
+                Result:=Result+'+sha3';
+              CPUAARCH64_HAS_SM4:
+                Result:=Result+'+sm4';
               else
                 ;
             end

+ 5 - 1
compiler/aarch64/cpuinfo.pas

@@ -136,7 +136,11 @@ Const
 type
    tcpuflags =
      (CPUAARCH64_HAS_LSE,     { CPU supports Large System Extensions }
-      CPUAARCH64_HAS_SHA2     { CPU supports SHA2 extension }
+      CPUAARCH64_HAS_DOTPROD, { CPU supports dotprod extension }
+      CPUAARCH64_HAS_AES,     { CPU supports AES extension }
+      CPUAARCH64_HAS_SHA2,    { CPU supports SHA2 extension }
+      CPUAARCH64_HAS_SHA3,    { CPU supports SHA3 extension }
+      CPUAARCH64_HAS_SM4      { CPU supports SM3 and SM4 extension }
      );
 
    tfpuflags =