Skip to content


Browse files Browse the repository at this point in the history
8299323: Allow extended registers for cmpw
Reviewed-by: sviswanathan, kvn
  • Loading branch information
fisk committed Jan 17, 2023
1 parent 07d5753 commit b7fb8ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hotspot/cpu/x86/assembler_x86.cpp
Expand Up @@ -1763,8 +1763,9 @@ void Assembler::cmpl_imm32(Address dst, int32_t imm32) {

void Assembler::cmpw(Address dst, int imm16) {
InstructionMark im(this);
assert(!dst.base_needs_rex() && !dst.index_needs_rex(), "no extended registers");
emit_int16(0x66, (unsigned char)0x81);
emit_int8((unsigned char)0x81);
emit_operand(rdi, dst, 2);
Expand Down

1 comment on commit b7fb8ef

Copy link

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.