1
0
mirror of https://github.com/golang/go synced 2024-11-06 06:36:20 -07:00
go/src/cmd/asm
Michael Munday 45b26a93f3 cmd/{asm,compile}: replace TESTB op with CMPWconst on s390x
TESTB was implemented as AND $0xff, Rx, REGTMP. Unfortunately there
is no 3-operand AND-with-immediate instruction and so it was emulated
by the assembler using two instructions.

This CL uses CMPW instead of AND and also optimizes CMPW to use
the chi instruction where possible.

Overall this CL reduces the size of the .text section of the
bin/go binary by ~2%.

Change-Id: Ic335c29fc1129378fcbb1265bfb10f5b744a0f3f
Reviewed-on: https://go-review.googlesource.com/30690
Run-TryBot: Michael Munday <munday@ca.ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-10-07 20:02:59 +00:00
..
internal cmd/{asm,compile}: replace TESTB op with CMPWconst on s390x 2016-10-07 20:02:59 +00:00
doc.go all: fix typos and spelling 2016-02-24 18:42:29 +00:00
main.go cmd/asm: close file before remove 2016-10-05 18:16:52 +00:00