Skip to content

Commit 49726ee

Browse files
committed
8305690: [X86] Do not emit two REX prefixes in Assembler::prefix
Reviewed-by: kvn, thartmann
1 parent 445ebef commit 49726ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/cpu/x86/assembler_x86.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12547,7 +12547,7 @@ void Assembler::prefix(Register dst, Address adr, Prefix p) {
1254712547
if (adr.index_needs_rex()) {
1254812548
assert(false, "prefix(Register dst, Address adr, Prefix p) does not support handling of an X");
1254912549
} else {
12550-
prefix(REX_B);
12550+
p = (Prefix)(p | REX_B);
1255112551
}
1255212552
} else {
1255312553
if (adr.index_needs_rex()) {

0 commit comments

Comments
 (0)