From: Mark Ryan Date: Mon, 9 Oct 2023 13:49:44 +0000 (+0200) Subject: cmd/compile: regenerate rewriteRISCV64.go to match cl 528975 X-Git-Tag: go1.22rc1~641 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=fce6be15cc2f41f98edad3750c18f904de6520c5;p=gostls13.git cmd/compile: regenerate rewriteRISCV64.go to match cl 528975 The final revision of https://go-review.googlesource.com/c/go/+/528975 made a small change to the RISCV64.rules file but neglected to update the regenerated rewriteRISCV64.go file. Change-Id: I04599f4e3b0dac7102c54166c9bae6fc9b6621d1 Reviewed-on: https://go-review.googlesource.com/c/go/+/533815 Reviewed-by: Dmitri Shuralyov Run-TryBot: Cherry Mui TryBot-Result: Gopher Robot Reviewed-by: Cherry Mui Auto-Submit: Dmitri Shuralyov LUCI-TryBot-Result: Go LUCI --- diff --git a/src/cmd/compile/internal/ssa/rewriteRISCV64.go b/src/cmd/compile/internal/ssa/rewriteRISCV64.go index 7d16fe887f..7eed0f1700 100644 --- a/src/cmd/compile/internal/ssa/rewriteRISCV64.go +++ b/src/cmd/compile/internal/ssa/rewriteRISCV64.go @@ -6324,7 +6324,7 @@ func rewriteValueRISCV64_OpRISCV64SRL(v *Value) bool { func rewriteValueRISCV64_OpRISCV64SRLI(v *Value) bool { v_0 := v.Args[0] // match: (SRLI [x] (MOVWUreg y)) - // result: (SRLIW [x] y) + // result: (SRLIW [int64(x&31)] y) for { t := v.Type x := auxIntToInt64(v.AuxInt) @@ -6334,7 +6334,7 @@ func rewriteValueRISCV64_OpRISCV64SRLI(v *Value) bool { y := v_0.Args[0] v.reset(OpRISCV64SRLIW) v.Type = t - v.AuxInt = int64ToAuxInt(x) + v.AuxInt = int64ToAuxInt(int64(x & 31)) v.AddArg(y) return true }