8267531: [x86] Assembler::andb(Address,Register) encoding is incorrect

Reviewed-by: azeemj, vlivanov, jiefu
This commit is contained in:
Aleksey Shipilev 2021-05-22 15:13:06 +00:00
parent 4023646ed1
commit 71e2fa25f7

View file

@ -1471,7 +1471,7 @@ void Assembler::vaesenclast(XMMRegister dst, XMMRegister nds, XMMRegister src, i
void Assembler::andb(Address dst, Register src) { void Assembler::andb(Address dst, Register src) {
InstructionMark im(this); InstructionMark im(this);
prefix(dst, src); prefix(dst, src, true);
emit_int8(0x20); emit_int8(0x20);
emit_operand(src, dst); emit_operand(src, dst);
} }