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 <dmitshur@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Mark Ryan 2023-10-09 15:49:44 +02:00 committed by Gopher Robot
parent 025e8ad6e9
commit fce6be15cc
1 changed files with 2 additions and 2 deletions

View File

@ -6324,7 +6324,7 @@ func rewriteValueRISCV64_OpRISCV64SRL(v *Value) bool {
func rewriteValueRISCV64_OpRISCV64SRLI(v *Value) bool {
v_0 := v.Args[0]
// match: (SRLI <t> [x] (MOVWUreg y))
// result: (SRLIW <t> [x] y)
// result: (SRLIW <t> [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
}