+ more Aarch64 cpu capability flags added

This commit is contained in:
florian 2021-11-07 11:06:01 +01:00
parent c1d43df4a1
commit f570b6cb7b
2 changed files with 13 additions and 1 deletions

View File

@ -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

View File

@ -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 =