From a0a32b33300f4857d734081a89cdd2287275376d Mon Sep 17 00:00:00 2001 From: Emman Date: Thu, 23 Dec 2021 11:22:56 +0800 Subject: [PATCH] fix error --- .travis.yml | 1 + sm2/p256_asm_arm64.s | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6d536cb..849e0be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,7 @@ go: jobs: include: - arch: ppc64le + go: 1.17.x - arch: arm64-graviton2 virt: vm os: linux diff --git a/sm2/p256_asm_arm64.s b/sm2/p256_asm_arm64.s index 55f2731..37d5d91 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), t2 + MOVD zero+88(FP), x2 MOVD $1, t0 - CMP $0, t2 - CSEL EQ, ZR, t0, t2 + CMP $0, x2 + CSEL EQ, ZR, t0, x2 CMP $0, hlp1 CSEL EQ, ZR, t0, hlp1 LDP p256p<>+0x00(SB), (const0, const1) LDP p256p<>+0x10(SB), (const2, const3) - EOR t2<<1, hlp1 + EOR x2<<1, hlp1 // Negate y2in based on sign LDP 2*16(b_ptr), (y0, y1)