]> Cypherpunks.ru repositories - gostls13.git/commit
[release-branch.go1.9] cmd/compile: fix regression in PPC64.rules move zero
authorLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 19 Sep 2017 21:36:57 +0000 (17:36 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 25 Oct 2017 20:23:08 +0000 (20:23 +0000)
commit0ab99b396df9fc45c5cf1ac412da4f1848c3462c
tree5b61fa7ed90a5670ea0e599f5ccfefd71aa9afdb
parent8d4279c11157a7f6b645f8085d23436f322ffb58
[release-branch.go1.9] cmd/compile: fix regression in PPC64.rules move zero

When a MOVDstorezero (8 bytes) is used the offset field
in the instruction must be a multiple of 4. This situation
had been corrected in the rules for other types of stores
but not for the zero case.

This also removes some of the special MOVDstorezero cases since
they can be handled by the general LowerZero case.

Updates made to the ssa test for lowering zero moves to
include cases where the target is not aligned to at least 4.

Fixes #21947

Change-Id: I7cceceb1be4898c77cd3b5e78b58dce0a7e28edd
Reviewed-on: https://go-review.googlesource.com/64970
Run-TryBot: Lynn Boger <laboger@linux.vnet.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Carlos Eduardo Seo <cseo@linux.vnet.ibm.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-on: https://go-review.googlesource.com/70978
Run-TryBot: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/testdata/gen/zeroGen.go
src/cmd/compile/internal/gc/testdata/zero.go
src/cmd/compile/internal/ssa/gen/PPC64.rules
src/cmd/compile/internal/ssa/rewritePPC64.go