New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/objdump: bad disassembly for 8-bit operations #15595
Labels
Milestone
Comments
I looked into the problem a little bit and this is what I found:
|
I am not able to reproduce this on either linux/amd64 or linux/386 using go1.7 (or tip). I was able to repro using go1.6.3. Here is the output of my various attempts in case I've missed something. Note that go1.6.3 decodes the instruction as linux/amd64
linux/386
|
I concur. This looks fixed. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The disassembly for some 8-bit operations is wrong. (The code is correct, just the disassembler is wrong.)
Test file:
Then run:
gives:
The MOVL at the end should be a MOVB. Notice that the register is named AL (correctly? AX would also a fine name there).
The bug doesn't happen for 16-bit stores, it generates
MOVW AX, 0x10(SP)
correctly.The text was updated successfully, but these errors were encountered: