]> Cypherpunks repositories - gostls13.git/commit
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)
committerLynn Boger <laboger@linux.vnet.ibm.com>
Tue, 26 Sep 2017 14:06:06 +0000 (14:06 +0000)
commit3fda3765b8691de51d62ef6d68ce772f4eb0c601
tree76184ff179d5d0ec6ed3296cc5f40ee7fdcf0047
parent8e2d90dca8b5da00bf29cc6076b6b5a80aac7106
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>
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