mirror of https://github.com/golang/go.git
cmd/asm: fix format string so vet doesn't complain
Fixes #70309 Change-Id: I4a3e27e89bdfda66d64f2efbb4c08a5ddde34a52 Reviewed-on: https://go-review.googlesource.com/c/go/+/626040 Reviewed-by: Meidan Li <limeidan@loongson.cn> Reviewed-by: abner chenc <chenguoqi@loongson.cn> Auto-Submit: Keith Randall <khr@golang.org> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Russ Cox <rsc@golang.org> Reviewed-by: Keith Randall <khr@golang.org> Reviewed-by: Keith Randall <khr@google.com>
This commit is contained in:
parent
84e58c84fd
commit
2bbc6a4512
|
|
@ -88,7 +88,7 @@ func Loong64RegisterExtension(a *obj.Addr, ext string, reg, num int16, isAmount,
|
|||
case reg >= loong64.REG_X0 && reg <= loong64.REG_X31:
|
||||
simd_type = loong64.LASX
|
||||
default:
|
||||
return errors.New("Loong64 extension: invalid LSX/LASX register: " + fmt.Sprintf("%p", reg))
|
||||
return errors.New("Loong64 extension: invalid LSX/LASX register: " + fmt.Sprintf("%d", reg))
|
||||
}
|
||||
|
||||
if isIndex {
|
||||
|
|
|
|||
Loading…
Reference in New Issue