[openssl/openssl] 7f2d61: Add LoongArch64 cpuid and OPENSSL_loongarchcap_P

zhuchen1911 noreply at github.com
Wed Oct 12 07:05:39 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 7f2d6188c7b16ef7a4deeeedb56f42014156b9f8
      https://github.com/openssl/openssl/commit/7f2d6188c7b16ef7a4deeeedb56f42014156b9f8
  Author: zhuchen <zhuchen at loongson.cn>
  Date:   2022-10-12 (Wed, 12 Oct 2022)

  Changed paths:
    M Configurations/10-main.conf
    M crypto/build.info
    A crypto/loongarch64cpuid.pl
    A crypto/loongarch_arch.h
    A crypto/loongarchcap.c

  Log Message:
  -----------
  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 at loongson.cn>

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19364)


  Commit: ef917549f5867d269d359155ff67b8ccb5e66a76
      https://github.com/openssl/openssl/commit/ef917549f5867d269d359155ff67b8ccb5e66a76
  Author: zhuchen <zhuchen at loongson.cn>
  Date:   2022-10-12 (Wed, 12 Oct 2022)

  Changed paths:
    A crypto/aes/asm/vpaes-loongarch64.pl
    M crypto/aes/build.info
    M include/crypto/aes_platform.h

  Log Message:
  -----------
  Add vpaes-loongarch64.pl module.

Add 128 bit lsx vector expansion optimization code of Loongarch64 architecture
to AES. The test result on the 3A5000 improves performance by about 40%~50%.

Signed-off-by: zhuchen <zhuchen at loongson.cn>

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19364)


Compare: https://github.com/openssl/openssl/compare/e1e93f7a07df...ef917549f586


More information about the openssl-commits mailing list