]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/s390x: replace 4-byte NOP with a 2-byte NOP on s390x
authorRuixin(Peter) Bao <ruixin.bao@ibm.com>
Thu, 22 Aug 2019 13:53:54 +0000 (09:53 -0400)
committerMichael Munday <mike.munday@ibm.com>
Wed, 11 Sep 2019 12:19:26 +0000 (12:19 +0000)
commit11c2411c5031235c709c351b65898427dcf7496c
treef514f7b23421ab6ff9e97e9e57266ec627b82492
parentb25ec50b693eae68de1f020a9566fa14dea47888
cmd/compile/internal/s390x: replace 4-byte NOP with a 2-byte NOP on s390x

Added a new instruction, NOPH, with the encoding [0x0700](i.e: bcr 0, 0) and
replace the current 4-byte nop that was encoded using the WORD instruction.

This reduces the size of .text section in go binary by around 17KB and make
generated code easier to read.

Change-Id: I6a756df39e93c4415ea6d038ba4af001b8ccb286
Reviewed-on: https://go-review.googlesource.com/c/go/+/194344
Reviewed-by: Michael Munday <mike.munday@ibm.com>
Run-TryBot: Michael Munday <mike.munday@ibm.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/asm/testdata/s390x.s
src/cmd/compile/internal/s390x/ggen.go
src/cmd/internal/obj/s390x/a.out.go
src/cmd/internal/obj/s390x/anames.go
src/cmd/internal/obj/s390x/asmz.go