From dc5c7205f028daa3cf7cd297b4737b56ecc1776f Mon Sep 17 00:00:00 2001 From: Emman Date: Thu, 23 Dec 2021 11:27:51 +0800 Subject: [PATCH] change to use t1 --- sm2/p256_asm_arm64.s | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sm2/p256_asm_arm64.s b/sm2/p256_asm_arm64.s index 37d5d91..4133a0c 100644 --- a/sm2/p256_asm_arm64.s +++ b/sm2/p256_asm_arm64.s @@ -1231,17 +1231,17 @@ TEXT ·p256PointAddAffineAsm(SB),0,$264-96 MOVD in2+48(FP), b_ptr MOVD sign+72(FP), hlp0 MOVD sel+80(FP), hlp1 - MOVD zero+88(FP), x2 + MOVD zero+88(FP), t1 MOVD $1, t0 - CMP $0, x2 - CSEL EQ, ZR, t0, x2 + CMP $0, t1 + CSEL EQ, ZR, t0, t1 CMP $0, hlp1 CSEL EQ, ZR, t0, hlp1 LDP p256p<>+0x00(SB), (const0, const1) LDP p256p<>+0x10(SB), (const2, const3) - EOR x2<<1, hlp1 + EOR t1<<1, hlp1 // Negate y2in based on sign LDP 2*16(b_ptr), (y0, y1)