From 28c498bbf46e83c5c43c55e3c326c8688be39e5c Mon Sep 17 00:00:00 2001 From: Julien Fabre Date: Thu, 28 Apr 2022 22:06:09 -0600 Subject: [PATCH 1/2] Add arm64 GH runners --- .github/workflows/go.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c5b2bc6..f3ae3bf 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -10,6 +10,7 @@ jobs: - 1.17.x - 1.18.x os: + - [self-hosted, linux, arm64, segment] - ubuntu-latest runs-on: ${{ matrix.os }} From 616556c03eb80f05fce3ddcbdb26c4573a6cfcc9 Mon Sep 17 00:00:00 2001 From: Julien Fabre Date: Mon, 2 May 2022 12:15:13 -0600 Subject: [PATCH 2/2] replacing the macro to please go vet --- base64/decode_arm64.s | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/base64/decode_arm64.s b/base64/decode_arm64.s index 4374d5c..67d206f 100644 --- a/base64/decode_arm64.s +++ b/base64/decode_arm64.s @@ -130,7 +130,12 @@ loop: ADVANCE_LOOP(loop) // Store results and continue done: - RETURN() + // RETURN() replacing the macro to please go vet. + SUB R0, R3; + SUB R1, R4; + MOVD R3, ret+56(FP); + MOVD R4, ret1+64(FP); + RET // func decodeStdARM64(dst []byte, src []byte, lut *int8) (int, int) @@ -145,7 +150,12 @@ loop: ADVANCE_LOOP(loop) // Store results and continue done: - RETURN() + // RETURN() replacing the macro to please go vet. + SUB R0, R3; + SUB R1, R4; + MOVD R3, ret+56(FP); + MOVD R4, ret1+64(FP); + RET DATA ·mask_lut+0x00(SB)/1, $0xa8