]> Cypherpunks repositories - gostls13.git/commit
runtime, math/big: allow R0 on s390x to contain values other than 0
authorMichael Munday <munday@ca.ibm.com>
Mon, 12 Sep 2016 17:33:00 +0000 (13:33 -0400)
committerMichael Munday <munday@ca.ibm.com>
Mon, 12 Sep 2016 18:06:01 +0000 (18:06 +0000)
commitf1515a01fd5d77b964194d3830d36ae006823ea3
tree227d76c14f9e173dbfb1d6e8d1e6bda4302b3eee
parent43bdfa9337c136f4e19122914c082f34045d9509
runtime, math/big: allow R0 on s390x to contain values other than 0

The new SSA backend for s390x can use R0 as a general purpose register.
This change modifies assembly code to either avoid using R0 entirely
or explicitly set R0 to 0.

R0 can still be safely used as 0 in address calculations.

Change-Id: I3efa723e9ef322a91a408bd8c31768d7858526c8
Reviewed-on: https://go-review.googlesource.com/28976
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/math/big/arith_s390x.s
src/runtime/asm_s390x.s
src/runtime/memclr_s390x.s