We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CL59630 introduced additional offset overflow checks for AMD64.
This issue reports regression in error message quality.
Assemble this file with go tool asm on AMD64 platform:
go tool asm
TEXT badOffset(SB), 0, $0 MOVL 999999999999(AX), AX RET
Error about offset (displacement) overflow. Something like "offset too large".
Generic "invalid instruction" error.
go tool asm foo.s asm: invalid instruction: 00000 (foo.s:2) MOVL 999999999999(AX), AX asm: assembly failed
Note: it works on GOARCH=386 as expected:
GOARCH=386
GOARCH=386 go tool asm foo.s asm: offset too large in 00018 (foo.s:2) MOVL 999999999999(AX), AX asm: assembly failed
Related to #21860.
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/107116 mentions this issue: cmd/internal/obj/x86: better error msg for offset overflow on AMD64
cmd/internal/obj/x86: better error msg for offset overflow on AMD64
Sorry, something went wrong.
@randall77
58b18cf
No branches or pull requests
CL59630 introduced additional offset overflow checks for AMD64.
This issue reports regression in error message quality.
What did you do?
Assemble this file with
go tool asm
on AMD64 platform:What did you expect to see?
Error about offset (displacement) overflow.
Something like "offset too large".
What did you see instead?
Generic "invalid instruction" error.
Note: it works on
GOARCH=386
as expected:Related to #21860.
The text was updated successfully, but these errors were encountered: