]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: cast riscv64 rewrite shifts to unsigned int
authorJoel Sing <joel@sing.id.au>
Wed, 1 Jun 2022 19:09:09 +0000 (05:09 +1000)
committerJoel Sing <joel@sing.id.au>
Mon, 6 Jun 2022 19:03:15 +0000 (19:03 +0000)
commit95547aee8c6377e73919d6f0b99484152fb3de04
treef22156cfcf183c7b8a752503e4b91e55ce185826
parentd43ddc1f3fb25b4338433435caae7e6f4b3138a9
cmd/compile: cast riscv64 rewrite shifts to unsigned int

This appeases Go 1.4, making it possible to bootstrap GOARCH=riscv64 with
a Go 1.4 compiler.

Fixes #52583

Change-Id: Ib13c2afeb095b2bb1464dcd7f1502574209bc7ab
Reviewed-on: https://go-review.googlesource.com/c/go/+/409974
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Joel Sing <joel@sing.id.au>
Reviewed-by: Bryan Mills <bcmills@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/ssa/gen/RISCV64.rules
src/cmd/compile/internal/ssa/rewriteRISCV64.go