Add LoongArch64 cpuid and OPENSSL_loongarchcap_P
authorzhuchen <zhuchen@loongson.cn>
Thu, 29 Sep 2022 11:50:52 +0000 (19:50 +0800)
committerPauli <pauli@openssl.org>
Wed, 12 Oct 2022 07:02:12 +0000 (18:02 +1100)
commit7f2d6188c7b16ef7a4deeeedb56f42014156b9f8
treeae1c24c61748f8b9c70dda5f65467a86e22cffba
parente1e93f7a07dfc7a8dddd4ddbb79d1d9bc9760d32
Add LoongArch64 cpuid and OPENSSL_loongarchcap_P

Loongarch64 architecture defines 128 bit vector extension lsx and 256 bit
vector extension lasx. The cpucfg instruction can be used to obtain whether
the CPU has a corresponding extension. This part of code is added to prepare
for the subsequent addition of corresponding vector instruction optimization.

Signed-off-by: zhuchen <zhuchen@loongson.cn>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19364)
Configurations/10-main.conf
crypto/build.info
crypto/loongarch64cpuid.pl [new file with mode: 0644]
crypto/loongarch_arch.h [new file with mode: 0644]
crypto/loongarchcap.c [new file with mode: 0644]