]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/amd64: Use 32-bit operands for byte operations
authorIlya Tocar <ilya.tocar@intel.com>
Tue, 29 Mar 2016 10:53:34 +0000 (13:53 +0300)
committerKeith Randall <khr@golang.org>
Tue, 5 Apr 2016 15:15:19 +0000 (15:15 +0000)
commit036d09d5bff8b9da789ba0c914e5966055d9d7fe
tree1ad0604274f9969a19e6956d34d12844d43f2f1a
parentffbd31e9f79ad8b6aaeceac1397678e237581064
cmd/compile/internal/amd64: Use 32-bit operands for byte operations

We already generate ADDL for byte operations, reflect this in code.
This also allows inc/dec for +-1 operation, which are 1-byte shorter,
and enables lea for 3-operand addition/subtraction.

Change-Id: Ibfdfee50667ca4cd3c28f72e3dece0c6d114d3ae
Reviewed-on: https://go-review.googlesource.com/21251
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Ilya Tocar <ilya.tocar@intel.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/amd64/ssa.go