8305690: [X86] Do not emit two REX prefixes in Assembler::prefix

Reviewed-by: kvn, thartmann
This commit is contained in:
Guoxiong Li 2023-04-18 08:01:32 +00:00
parent 445ebef437
commit 49726ee3a9

@ -12547,7 +12547,7 @@ void Assembler::prefix(Register dst, Address adr, Prefix p) {
if (adr.index_needs_rex()) {
assert(false, "prefix(Register dst, Address adr, Prefix p) does not support handling of an X");
} else {
prefix(REX_B);
p = (Prefix)(p | REX_B);
}
} else {
if (adr.index_needs_rex()) {