]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/sha1: replaced WORD with instruction REVB2W
authorXiaolin Zhao <zhaoxiaolin@loongson.cn>
Fri, 9 May 2025 01:56:15 +0000 (09:56 +0800)
committerabner chenc <chenguoqi@loongson.cn>
Mon, 12 May 2025 02:39:33 +0000 (19:39 -0700)
Change-Id: I37f3db37a318a72a9558c1a728be8099a41a8774
Reviewed-on: https://go-review.googlesource.com/c/go/+/671255
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: abner chenc <chenguoqi@loongson.cn>
src/crypto/sha1/sha1block_loong64.s

index 7e9d6e0933994e8abf5b2a1ccf8d4a5e71373ebd..b76b193ad0e3e5a3c2b00369e16143a01b471060 100644 (file)
@@ -29,7 +29,7 @@
 
 #define LOAD1(index) \
        MOVW    (index*4)(R5), REGTMP3; \
-       WORD    $0x3a73; \      // REVB2W REGTMP3, REGTMP3   to big-endian
+       REVB2W  REGTMP3, REGTMP3; \
        MOVW    REGTMP3, (index*4)(R3)
 
 #define LOAD(index) \