Skip to content

Commit f4803dd

Browse files
randall77gopherbot
authored andcommitted
math/big: fix loong64 assembly for vet
Vet is failing on this code because some arguments of mulAddVWW got renamed in the go decl (CL 664895) but not the assembly accessors. Looks like the assembly got written before that CL but checked in after that CL. Change-Id: I270e8db5f8327aa2029c21a126fab1231a3506a1 Reviewed-on: https://go-review.googlesource.com/c/go/+/665717 Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Keith Randall <khr@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
1 parent 2869d55 commit f4803dd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/math/big/arith_loong64.s

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,19 @@ TEXT ·lshVU(SB),NOSPLIT,$0
9898
TEXT ·rshVU(SB),NOSPLIT,$0
9999
JMP ·rshVU_g(SB)
100100

101-
// func mulAddVWW(z, x []Word, y, r Word) (c Word)
101+
// func mulAddVWW(z, x []Word, m, a Word) (c Word)
102102
TEXT ·mulAddVWW(SB),NOSPLIT,$0
103103
// input:
104104
// R4: z
105105
// R5: z_len
106106
// R7: x
107-
// R10: y
108-
// R11: r
107+
// R10: m
108+
// R11: a
109109
MOVV z+0(FP), R4
110110
MOVV z_len+8(FP), R5
111111
MOVV x+24(FP), R7
112-
MOVV y+48(FP), R10
113-
MOVV r+56(FP), R11
112+
MOVV m+48(FP), R10
113+
MOVV a+56(FP), R11
114114
SLLV $3, R5
115115
MOVV $0, R6
116116
loop:

0 commit comments

Comments
 (0)