]> Cypherpunks repositories - gostls13.git/commit
cmd/objdump: fix disassembly suffixes
authorKeith Randall <khr@golang.org>
Wed, 1 Jun 2016 21:18:00 +0000 (14:18 -0700)
committerKeith Randall <khr@golang.org>
Thu, 23 Jun 2016 02:28:18 +0000 (02:28 +0000)
commit0dae2fd149537a0385b48bbd1564b3cfefa1c85b
tree1abe23990119dbc631cd7bd2844ba70ec4c97eed
parent395f6ebaf9fd2954f5db3da4c7ad2817b0aa7252
cmd/objdump: fix disassembly suffixes

MOVB $1, (AX) was being disassembled as MOVL $1, (AX).

Use the memory size to override the standard size.
Fix the tests.

Fixes #15922

Change-Id: If92fe74c33a21e5427c8c5cc97dd15e087edb860
Reviewed-on: https://go-review.googlesource.com/23608
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/vendor/golang.org/x/arch/x86/x86asm/plan9x.go
src/cmd/vendor/golang.org/x/arch/x86/x86asm/testdata/decode.txt