8255550: x86: Assembler::cmpq(Address dst, Register src) encoding is incorrect

Reviewed-by: kvn, eosterlund
This commit is contained in:
Aleksey Shipilev 2020-10-29 14:19:56 +00:00
parent 5b185585e8
commit 9e5bbff51d

View File

@ -9803,7 +9803,7 @@ void Assembler::cmpq(Register dst, int32_t imm32) {
void Assembler::cmpq(Address dst, Register src) {
InstructionMark im(this);
emit_int16(get_prefixq(dst, src), 0x3B);
emit_int16(get_prefixq(dst, src), 0x39);
emit_operand(src, dst);
}