From a32ca8fa14755b7c1543ae3277a9705de1ec37c1 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Wed, 28 Aug 2024 13:52:34 +0800 Subject: [PATCH] internal/sm2ec: ppc64le, fix address issue --- internal/sm2ec/p256_asm_ppc64le.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/sm2ec/p256_asm_ppc64le.s b/internal/sm2ec/p256_asm_ppc64le.s index 8478566..b5fd9bf 100644 --- a/internal/sm2ec/p256_asm_ppc64le.s +++ b/internal/sm2ec/p256_asm_ppc64le.s @@ -128,9 +128,9 @@ GLOBL p256mul<>(SB), 8, $96 TEXT ·p256NegCond(SB), NOSPLIT, $0-16 MOVD val+0(FP), P1ptr MOVD $16, R16 - MOVD $48, R17 + MOVD $40, R17 - // cond is R1 + 16 (cond offset) + 32 + // cond is R1 + 8 (cond offset) + 32 LXVDSX (R1)(R17), SEL VSPLTISB $0, ZER // SEL controls whether to store a or b