]> Cypherpunks repositories - gostls13.git/commitdiff
test/codegen: add Mul test for riscv64
authorMeng Zhuo <mzh@golangcn.org>
Wed, 22 May 2024 07:55:04 +0000 (15:55 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 23 May 2024 18:51:17 +0000 (18:51 +0000)
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>

test/codegen/mathbits.go

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