From 16026279a86dbe92b8d7256df1ea86a3b38b3eb8 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Thu, 16 Oct 2025 17:03:30 +0800 Subject: [PATCH] internal/sm2ec: loong64 fix VMOVQ usage issue --- internal/sm2ec/p256_asm_loong64.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/sm2ec/p256_asm_loong64.s b/internal/sm2ec/p256_asm_loong64.s index ed2d0e8..27414d1 100644 --- a/internal/sm2ec/p256_asm_loong64.s +++ b/internal/sm2ec/p256_asm_loong64.s @@ -1301,7 +1301,7 @@ TEXT ·p256Select(SB),NOSPLIT,$0 MOVV $1, t0 VMOVQ t0, V0.V2 // broadcast 1 to all lanes - VMOVQ V0, V1 + VMOVQ t0, V1.V2 VMOVQ const0, V2.V2 // broadcast idx to all lanes VXORV V3, V3, V3 // zero @@ -1439,7 +1439,7 @@ TEXT ·p256SelectAffine(SB),NOSPLIT,$0 MOVV $1, t2 VMOVQ t2, V0.V2 // broadcast 1 to all lanes - VMOVQ V0, V1 + VMOVQ t2, V1.V2 VMOVQ t0, V2.V2 // broadcast idx to all lanes VXORV V3, V3, V3 // zero