cmd/asm: amd64 MOVBQZX instructions referring to upper-byte registers are not rejected #50882
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Haven't checked
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Consider this simple program
main.go
and the asm implementation ---
asmfun_amd64.s
What did you expect to see?
I'd expect the assembler to reject invalid code, as referencing the upper-byte
registers is impossible.
What did you see instead?
The text was updated successfully, but these errors were encountered: