]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: mark LAA and LAAG as clobbering flags on s390x
authorMichael Munday <mike.munday@ibm.com>
Mon, 19 Mar 2018 17:11:16 +0000 (13:11 -0400)
committerMichael Munday <mike.munday@ibm.com>
Tue, 20 Mar 2018 09:44:50 +0000 (09:44 +0000)
commitae10914e67e6e99fec94b3d190558131a24ecd8e
tree233409f33e198acf0745a70bd062affa9bd562df
parent9c312245ac53f9d5a3f42eae10abb15f881da216
cmd/compile: mark LAA and LAAG as clobbering flags on s390x

The atomic add instructions modify the condition code and so need to
be marked as clobbering flags.

Fixes #24449.

Change-Id: Ic69c8d775fbdbfb2a56c5e0cfca7a49c0d7f6897
Reviewed-on: https://go-review.googlesource.com/101455
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/ssa/gen/S390XOps.go
src/cmd/compile/internal/ssa/opGen.go
test/fixedbugs/issue24449.go [new file with mode: 0644]