Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8255550: x86: Assembler::cmpq(Address dst, Register src) encoding is …
…incorrect

Reviewed-by: kvn, eosterlund
  • Loading branch information
shipilev committed Oct 29, 2020
1 parent 5b18558 commit 9e5bbff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/cpu/x86/assembler_x86.cpp
Expand Up @@ -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);
}

Expand Down

1 comment on commit 9e5bbff

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on 9e5bbff Oct 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.