From ff1031cba9a5db71442308f5f90a7b8a2a395914 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Tue, 14 Oct 2025 13:33:58 +0800 Subject: [PATCH] internal/sm2ec: loong64 fix sm2P256Subinternal --- internal/sm2ec/p256_asm_loong64.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/sm2ec/p256_asm_loong64.s b/internal/sm2ec/p256_asm_loong64.s index e0eb593..9625b59 100644 --- a/internal/sm2ec/p256_asm_loong64.s +++ b/internal/sm2ec/p256_asm_loong64.s @@ -1344,7 +1344,7 @@ TEXT sm2P256Subinternal<>(SB),NOSPLIT,$0 SGTU t1, acc0, t4 SUBV t1, acc0, x0 - ADDV t1, t3, t3 // no carry + ADDV t4, t3, t3 // no carry SGTU t3, acc1, t1 SUBV t3, acc1, x1 SGTU t1, acc2, t4