cmd/asm: accepts MOVB (BX)(R8*4), AH incorrectly #14288
Labels
compiler/runtime
Issues related to the Go compiler and/or runtime.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
MOVB (BX)(R8*4), AH
The assembler accepts this instruction but silently misassembles it to:
MOVB (BX)(R8*4), SP
This is because we need the RAX prefix for the indexed address, but then the RAX prefix also forces the use of standard register naming instead of the weird *H register naming.
gas rejects this instruction
movb (%rbx,%r8,4),%ah
withcan't encode register '%ah' in an instruction requiring REX prefix.
@rsc
The text was updated successfully, but these errors were encountered: