[openssl/openssl] 160f48: Add system guessing for linux64-loongarch64 target

Zhu Chen noreply at github.com
Tue Aug 1 17:44:22 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 160f48941d143cf2682df4e938ba953c96ac3c7a
      https://github.com/openssl/openssl/commit/160f48941d143cf2682df4e938ba953c96ac3c7a
  Author: Xi Ruoyao <xry111 at xry111.site>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M util/perl/OpenSSL/config.pm

  Log Message:
  -----------
  Add system guessing for linux64-loongarch64 target

Now the default is linux-generic32, it's not good for loongarch64.

We can also test if the assembler supports vector instructions here and
disable asm if not.

Closes #21340.

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


  Commit: 780ce3849f9efc5404d94464e0eeff966bebbbf1
      https://github.com/openssl/openssl/commit/780ce3849f9efc5404d94464e0eeff966bebbbf1
  Author: zhuchen <zhuchen at loongson.cn>
  Date:   2023-08-01 (Tue, 01 Aug 2023)

  Changed paths:
    M crypto/aes/asm/vpaes-loongarch64.pl

  Log Message:
  -----------
  Fixed incorrect usage of vshuf.b instruction

In the definition of the latest revised LoongArch64 vector instruction manual,
it is clearly pointed out that the undefined upper three bits of each byte in
the control register of the vshuf.b instruction should not be used, otherwise
uncertain results may be obtained. Therefore, it is necessary to correct the
use of the vshuf.b instruction in the existing vpaes-loongarch64.pl code to
avoid erroneous calculation results in future LoongArch64 processors.

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


Compare: https://github.com/openssl/openssl/compare/eb2ff04cc759...780ce3849f9e


More information about the openssl-commits mailing list