Skip to content

Commit 3107fa9

Browse files
abner-chencsophie-zhao
authored andcommitted
runtime: make duff device as ABIInternal for loong64
Update #40724 Co-authored-by: Xiaolin Zhao <[email protected]> Change-Id: I243e60489dc5fd162ad91d6426bf32cf0e13d9e2 Reviewed-on: https://go-review.googlesource.com/c/go/+/521782 Reviewed-by: Meidan Li <[email protected]> Reviewed-by: David Chase <[email protected]> Run-TryBot: David Chase <[email protected]> Reviewed-by: Cherry Mui <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: David Chase <[email protected]>
1 parent 6b77d1b commit 3107fa9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/runtime/duff_loong64.s

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
#include "textflag.h"
66

7-
TEXT runtime·duffzero(SB), NOSPLIT|NOFRAME, $0-0
7+
TEXT runtime·duffzero<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0
88
MOVV R0, (R20)
99
ADDV $8, R20
1010
MOVV R0, (R20)
@@ -263,7 +263,7 @@ TEXT runtime·duffzero(SB), NOSPLIT|NOFRAME, $0-0
263263
ADDV $8, R20
264264
RET
265265

266-
TEXT runtime·duffcopy(SB), NOSPLIT|NOFRAME, $0-0
266+
TEXT runtime·duffcopy<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0
267267
MOVV (R20), R30
268268
ADDV $8, R20
269269
MOVV R30, (R21)

src/runtime/mkduff.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func zeroLOONG64(w io.Writer) {
181181
// R0: always zero
182182
// R19 (aka REGRT1): ptr to memory to be zeroed
183183
// On return, R19 points to the last zeroed dword.
184-
fmt.Fprintln(w, "TEXT runtime·duffzero(SB), NOSPLIT|NOFRAME, $0-0")
184+
fmt.Fprintln(w, "TEXT runtime·duffzero<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0")
185185
for i := 0; i < 128; i++ {
186186
fmt.Fprintln(w, "\tMOVV\tR0, (R20)")
187187
fmt.Fprintln(w, "\tADDV\t$8, R20")
@@ -190,7 +190,7 @@ func zeroLOONG64(w io.Writer) {
190190
}
191191

192192
func copyLOONG64(w io.Writer) {
193-
fmt.Fprintln(w, "TEXT runtime·duffcopy(SB), NOSPLIT|NOFRAME, $0-0")
193+
fmt.Fprintln(w, "TEXT runtime·duffcopy<ABIInternal>(SB), NOSPLIT|NOFRAME, $0-0")
194194
for i := 0; i < 128; i++ {
195195
fmt.Fprintln(w, "\tMOVV\t(R20), R30")
196196
fmt.Fprintln(w, "\tADDV\t$8, R20")

0 commit comments

Comments
 (0)