8299323: Allow extended registers for cmpw
Reviewed-by: sviswanathan, kvn
This commit is contained in:
parent
07d5753172
commit
b7fb8ef89e
@ -1763,8 +1763,9 @@ void Assembler::cmpl_imm32(Address dst, int32_t imm32) {
|
|||||||
|
|
||||||
void Assembler::cmpw(Address dst, int imm16) {
|
void Assembler::cmpw(Address dst, int imm16) {
|
||||||
InstructionMark im(this);
|
InstructionMark im(this);
|
||||||
assert(!dst.base_needs_rex() && !dst.index_needs_rex(), "no extended registers");
|
emit_int8(0x66);
|
||||||
emit_int16(0x66, (unsigned char)0x81);
|
prefix(dst);
|
||||||
|
emit_int8((unsigned char)0x81);
|
||||||
emit_operand(rdi, dst, 2);
|
emit_operand(rdi, dst, 2);
|
||||||
emit_int16(imm16);
|
emit_int16(imm16);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user