]> Cypherpunks repositories - gostls13.git/commit
cmd/asm, cmd/internal/obj/s390x: improve add/multiply-immediate codegen
authorMichael Munday <munday@ca.ibm.com>
Mon, 26 Sep 2016 04:45:01 +0000 (00:45 -0400)
committerMichael Munday <munday@ca.ibm.com>
Tue, 27 Sep 2016 16:00:51 +0000 (16:00 +0000)
commit17a8ec2c4f702039652a4bc9630d233b454cfae8
tree8d557ec93b60fba26f0be7a3430820efbf3e3f64
parent3436f0776f4f373b5ba1aacf9f66689c833168b0
cmd/asm, cmd/internal/obj/s390x: improve add/multiply-immediate codegen

Use the A{,G}HI instructions where possible (4 bytes instead of 6 bytes
for A{,G}FI). Also, use 32-bit operations where appropriate for
multiplication.

Change-Id: I4041781cda26be52b54e4804a9e71552310762d0
Reviewed-on: https://go-review.googlesource.com/29733
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bill O'Farrell <billotosyr@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/asm/internal/asm/testdata/s390x.s
src/cmd/internal/obj/s390x/asmz.go