Skip to content

Commit 3011ec0

Browse files
authored
Merge pull request #79 from segmentio/gh-arm64
Add ARM64 GH runners
2 parents 52fc573 + 616556c commit 3011ec0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
- 1.17.x
1111
- 1.18.x
1212
os:
13+
- [self-hosted, linux, arm64, segment]
1314
- ubuntu-latest
1415

1516
runs-on: ${{ matrix.os }}

base64/decode_arm64.s

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,12 @@ loop:
130130
ADVANCE_LOOP(loop) // Store results and continue
131131

132132
done:
133-
RETURN()
133+
// RETURN() replacing the macro to please go vet.
134+
SUB R0, R3;
135+
SUB R1, R4;
136+
MOVD R3, ret+56(FP);
137+
MOVD R4, ret1+64(FP);
138+
RET
134139

135140

136141
// func decodeStdARM64(dst []byte, src []byte, lut *int8) (int, int)
@@ -145,7 +150,12 @@ loop:
145150
ADVANCE_LOOP(loop) // Store results and continue
146151

147152
done:
148-
RETURN()
153+
// RETURN() replacing the macro to please go vet.
154+
SUB R0, R3;
155+
SUB R1, R4;
156+
MOVD R3, ret+56(FP);
157+
MOVD R4, ret1+64(FP);
158+
RET
149159

150160

151161
DATA ·mask_lut+0x00(SB)/1, $0xa8

0 commit comments

Comments
 (0)