Skip to content
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/internal/obj: legal instruction denied by amd64 assembler but accepted by 386 #28070

Closed
benshi001 opened this issue Oct 8, 2018 · 1 comment

Comments

@benshi001
Copy link
Member

"ADDL runtime.m0+8(SB)(BX*4), AX" is accepted by the 386 assembler, but denied by the amd64 assembler. With error message,

Building Go cmd/dist using /usr/lib/go-1.6.
Building Go toolchain1 using /usr/lib/go-1.6.
Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1.
asm: invalid instruction: 00175 (/home/local/SPREADTRUM/ben.shi/Desktop/go-old/src/runtime/asm_amd64.s:74)	ADDL	runtime.m0+8(SB)(BX*4), AX
asm: assembly failed

go tool dist: FAILED: /home/local/SPREADTRUM/ben.shi/Desktop/go-old/pkg/tool/linux_amd64/asm -I /tmp/go-tool-dist-417590703/runtime -I /home/local/SPREADTRUM/ben.shi/Desktop/go-old/pkg/include -D GOOS_linux -D GOARCH_amd64 -D GOOS_GOARCH_linux_amd64 -o /tmp/go-tool-dist-417590703/runtime/asm_amd64.o /home/local/SPREADTRUM/ben.shi/Desktop/go-old/src/runtime/asm_amd64.s: exit status 1
go tool dist: open /tmp/go-tool-dist-417590703/runtime/asm_amd64.o: no such file or directory

But there is no error if the instruction is added to src/runtime/asm_386.s

@benshi001
Copy link
Member Author

Sorry for my confusion.

@golang golang locked and limited conversation to collaborators Oct 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants