Skip to content

Commit e3f2e9a

Browse files
committed
internal/bytealg: fix riscv64 offset names
Vet caught that these were incorrect. Updates #37022 Change-Id: I7b5cd8032ea95eb8e0729f6a4f386aec613c71d8 Reviewed-on: https://go-review.googlesource.com/c/go/+/217777 Run-TryBot: Josh Bleecher Snyder <[email protected]> Reviewed-by: Cherry Zhang <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent a744be4 commit e3f2e9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/internal/bytealg/indexbyte_riscv64.s

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
#include "textflag.h"
77

88
TEXT ·IndexByte(SB),NOSPLIT,$0-40
9-
MOV s+0(FP), A1
10-
MOV s_len+8(FP), A2
9+
MOV b_base+0(FP), A1
10+
MOV b_len+8(FP), A2
1111
MOVBU c+24(FP), A3 // byte to find
1212
MOV A1, A4 // store base for later
1313
ADD A1, A2 // end
@@ -29,8 +29,8 @@ notfound:
2929
RET
3030

3131
TEXT ·IndexByteString(SB),NOSPLIT,$0-32
32-
MOV p+0(FP), A1
33-
MOV b_len+8(FP), A2
32+
MOV s_base+0(FP), A1
33+
MOV s_len+8(FP), A2
3434
MOVBU c+16(FP), A3 // byte to find
3535
MOV A1, A4 // store base for later
3636
ADD A1, A2 // end

0 commit comments

Comments
 (0)