]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: fix ppc64 merging of (CLRLSLDI (SRD ...))
authorPaul E. Murphy <murp@ibm.com>
Mon, 20 May 2024 19:44:21 +0000 (14:44 -0500)
committerPaul Murphy <murp@ibm.com>
Tue, 21 May 2024 18:53:43 +0000 (18:53 +0000)
commitc6d142c4a7c0fa9fc11ad511de8f7d7412b662f7
tree6415496dcdf6d029231dad0bb35670b04bfe1199
parent3bcefa5276c4ec5475df62cfd1fde9315b121d1c
cmd/compile/internal/ssa: fix ppc64 merging of (CLRLSLDI (SRD ...))

The rotate value was not correctly converted from a 64 bit to 32
bit rotate. This caused a miscompile of
golang.org/x/text/unicode/runenames.Names.

Fixes #67526

Change-Id: Ief56fbab27ccc71cd4c01117909bfee7f60a2ea1
Reviewed-on: https://go-review.googlesource.com/c/go/+/586915
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Reviewed-by: Carlos Amedee <carlos@golang.org>
src/cmd/compile/internal/ssa/rewrite.go
test/codegen/shift.go