]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: reduce per-architecture opcode space
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 17 Jun 2016 19:30:27 +0000 (12:30 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 16 Aug 2016 22:53:48 +0000 (22:53 +0000)
commit9b88fac00cdbb4025a24fd20e87be121785da579
treec2ae5c9703e44c8b929ca6005b730f99fe947f5a
parentb4e9f70412671c7ac06b4852c38a0ab82d94ddf5
cmd/internal/obj: reduce per-architecture opcode space

s390x took up the last available chunk of int16 opcodes.
There are RISC-V and sparc64 ports in progress out of tree,
and there will likely be other architectures.
Reduce the opcode space to allow more architectures to
fit without increasing to int32.

This is the smallest power of two that accomodates all
existing architectures. All else being equal, smaller is
better--smaller numbers are easier to generate immediates
for and easier on the eyes when debugging.

Change-Id: I4d0824b28913892fbd0579d3f90bea34e44c8946
Reviewed-on: https://go-review.googlesource.com/24223
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Minux Ma <minux@golang.org>
src/cmd/internal/obj/link.go