]> Cypherpunks.ru repositories - gostls13.git/commitdiff
cmd/compile: regenerate rewriteRISCV64.go to match cl 528975
authorMark Ryan <markdryan@rivosinc.com>
Mon, 9 Oct 2023 13:49:44 +0000 (15:49 +0200)
committerGopher Robot <gobot@golang.org>
Mon, 9 Oct 2023 22:19:13 +0000 (22:19 +0000)
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>

src/cmd/compile/internal/ssa/rewriteRISCV64.go

index 7d16fe887f2cc6dbf32d8d2ec86cf3baf7fad88b..7eed0f1700016da47bb3a48595dfb1dd9373eebf 100644 (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
        }