]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: fix disassembly of invalid instructions
authorKeith Randall <khr@golang.org>
Sun, 19 Feb 2017 17:37:22 +0000 (09:37 -0800)
committerKeith Randall <khr@golang.org>
Wed, 1 Mar 2017 21:30:49 +0000 (21:30 +0000)
commit1eed80f09adc7641227ac80a9031fd3781e54d7d
tree84008be48a8e4899044e8b4d12d336d10cacd0ec
parentffe923f6f427f5ab47f4e1f4584369212add07e2
cmd/compile: fix disassembly of invalid instructions

Make sure that if we encode an explicit base register, we print it.
That will ensure that if we make an Addr with an auto variable but
a base that isn't SP, then it will be obvious from the disassembly.

Update #19184

Change-Id: If5556a5183f344d719ec7197aa935a0166061e6f
Reviewed-on: https://go-review.googlesource.com/37255
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/util.go