mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8299323: Allow extended registers for cmpw
Reviewed-by: sviswanathan, kvn
This commit is contained in:
parent
07d5753172
commit
b7fb8ef89e
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue