]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix constant propagation through s390x MOVDNE instructions
authorMichael Munday <munday@ca.ibm.com>
Sat, 21 Jan 2017 03:03:13 +0000 (22:03 -0500)
committerMichael Munday <munday@ca.ibm.com>
Sat, 21 Jan 2017 03:20:55 +0000 (03:20 +0000)
commit4cce27a3fa0cc1f13afa6ffa358efa07144e00ec
tree4331a94c93af866061389b8281bc13625f833561
parent1be957d703832aa10952c4dc799dcc3a39f48aff
cmd/compile: fix constant propagation through s390x MOVDNE instructions

The constant propagation rules selected the wrong operand to
propagate. So MOVDNE (move if not equal) propagated operands as if
it were a MOVDEQ (move if equal).

Fixes #18735.

Change-Id: I87ac469172f9df7d5aabaf7106e2936ce54ae202
Reviewed-on: https://go-review.googlesource.com/35498
Run-TryBot: Michael Munday <munday@ca.ibm.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/gen/S390X.rules
src/cmd/compile/internal/ssa/rewriteS390X.go