]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fixed incorrect usage of vshuf.b instruction
authorzhuchen <zhuchen@loongson.cn>
Mon, 24 Jul 2023 08:03:29 +0000 (16:03 +0800)
committerTomas Mraz <tomas@openssl.org>
Tue, 1 Aug 2023 17:42:58 +0000 (19:42 +0200)
commit780ce3849f9efc5404d94464e0eeff966bebbbf1
tree2c1e1400f446b9490af9cd5417f0319590be7d56
parent160f48941d143cf2682df4e938ba953c96ac3c7a
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@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21530)
crypto/aes/asm/vpaes-loongarch64.pl