From feae743bdbb7dc4b9d053117dbea494202d6a2de Mon Sep 17 00:00:00 2001 From: Xiaolin Zhao Date: Tue, 18 Nov 2025 13:00:15 +0800 Subject: cmd/compile: use 32x32->64 multiplies on loong64 Gets rid of some sign extensions, like arm64. Change-Id: I9fc37e15a82718bfcf53db8cab0c4e7baaa0a747 Reviewed-on: https://go-review.googlesource.com/c/go/+/721522 Reviewed-by: Keith Randall Reviewed-by: Keith Randall Reviewed-by: Meidan Li Reviewed-by: Mark Freeman Reviewed-by: abner chenc LUCI-TryBot-Result: Go LUCI --- test/codegen/arithmetic.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/codegen') diff --git a/test/codegen/arithmetic.go b/test/codegen/arithmetic.go index 29764bf817..7cc6cf77e1 100644 --- a/test/codegen/arithmetic.go +++ b/test/codegen/arithmetic.go @@ -335,11 +335,13 @@ func Fold2NegMul(a, b int) int { func Mul32(a, b int32) int64 { // arm64:"SMULL" -"MOVW" + // loong64:"MULWVW" -"MOVW" return int64(a) * int64(b) } func Mul32U(a, b uint32) uint64 { // arm64:"UMULL" -"MOVWU" + // loong64:"MULWVWU" -"MOVWU" return uint64(a) * uint64(b) } -- cgit v1.3-5-g45d5