From 6acdd8771133ebbc66eb791f47e8d58ba5963498 Mon Sep 17 00:00:00 2001 From: Emman Date: Tue, 21 Dec 2021 08:50:16 +0800 Subject: [PATCH] try arm64-graviton2 --- .travis.yml | 2 +- sm2/p256_asm_arm64.s | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index d9839ef..42986a8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ sudo: false arch: - amd64 - - arm64 + - arm64-graviton2 os: - linux diff --git a/sm2/p256_asm_arm64.s b/sm2/p256_asm_arm64.s index ec15251..997c5bd 100644 --- a/sm2/p256_asm_arm64.s +++ b/sm2/p256_asm_arm64.s @@ -134,10 +134,9 @@ TEXT ·p256NegCond(SB),NOSPLIT,$0 MOVD cond+24(FP), hlp0 MOVD a_ptr, res_ptr // acc = poly - MOVD p256p<>+0x00(SB), acc0 - MOVD p256p<>+0x08(SB), acc1 - MOVD p256p<>+0x10(SB), acc2 - MOVD p256p<>+0x18(SB), acc3 + LDP p256p<>+0x00(SB), (acc0, acc1) + LDP p256p<>+0x10(SB), (acc2, acc3) + // Load the original value LDP 0*16(a_ptr), (t0, t1) LDP 1*16(a_ptr), (t2, t3)