]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/ssa: optimize (AND (MOVDconst [-1] x)) on PPC64
authorPaul E. Murphy <murp@ibm.com>
Mon, 18 Sep 2023 16:29:20 +0000 (11:29 -0500)
committerPaul Murphy <murp@ibm.com>
Fri, 22 Sep 2023 14:09:29 +0000 (14:09 +0000)
commitc8caad423cafcca7c39dbaf64b428aaf0e8ac80c
treece3fb1000a10b6bca7174941e3eb21b42b9b35ca
parent795414d1c628f763defa43199ab51ea3dc3241d8
cmd/compile/internal/ssa: optimize (AND (MOVDconst [-1] x)) on PPC64

This sequence can show up in the lowering pass on PPC64. If it
makes it to the latelower pass, it will cause an error because
it looks like it can be turned into RLDICL, but -1 isn't an
accepted mask.

Also, print more debug info if panic is called from
encodePPC64RotateMask.

Fixes #62698

Change-Id: I0f3322e2205357abe7fc28f96e05e3f7ad65567c
Reviewed-on: https://go-review.googlesource.com/c/go/+/529195
Reviewed-by: Lynn Boger <laboger@linux.vnet.ibm.com>
Run-TryBot: Paul Murphy <murp@ibm.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/cmd/compile/internal/ssa/_gen/PPC64.rules
src/cmd/compile/internal/ssa/rewrite.go
src/cmd/compile/internal/ssa/rewritePPC64.go
test/codegen/copy.go