1
0
mirror of https://github.com/golang/go synced 2024-11-25 02:27:56 -07:00

test/codegen: add Mul test for riscv64

Change-Id: I51e9832317e5dee1e3fe0772e7592b3dae95a625
Reviewed-on: https://go-review.googlesource.com/c/go/+/586797
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Meng Zhuo 2024-05-22 15:55:04 +08:00 committed by Gopher Robot
parent 128a99decd
commit 019353d532

View File

@ -827,6 +827,7 @@ func Mul(x, y uint) (hi, lo uint) {
// ppc64x:"MULHDU","MULLD" // ppc64x:"MULHDU","MULLD"
// s390x:"MLGR" // s390x:"MLGR"
// mips64: "MULVU" // mips64: "MULVU"
// riscv64:"MULHU","MUL"
return bits.Mul(x, y) return bits.Mul(x, y)
} }