]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: allow R11 to be allocated on s390x
authorMichael Munday <mike.munday@ibm.com>
Mon, 30 Apr 2018 15:55:13 +0000 (16:55 +0100)
committerMichael Munday <mike.munday@ibm.com>
Tue, 1 May 2018 15:48:17 +0000 (15:48 +0000)
commit5d9c78201f0f226b0b8c7ece63f6731e168efb09
treeed2ab1a9ada76330532828828b055f30a4d96985
parentd29ec40e19fa0548292bb0bf2a4fb88920838877
cmd/compile: allow R11 to be allocated on s390x

R11 is only used as a temporary by a very small set of instructions
(DIV, MOD, MULH and extended MVC/XC instructions). By marking these
instructions as clobbering R11 we can allocate R11 in the general
case.

Change-Id: I0d4ffe80e57c164d42a5ea5ef6308756a5b0f742
Reviewed-on: https://go-review.googlesource.com/110255
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
src/cmd/compile/internal/ssa/regalloc.go
src/runtime/asm_s390x.s