Skip to content

Commit 6a84974

Browse files
lgxbslgxDamonFool
authored andcommitted
8305690: [X86] Do not emit two REX prefixes in Assembler::prefix
Backport-of: 49726ee3a95023a912aacad0e3714eae146eed21
1 parent 3a0aff2 commit 6a84974

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
@@ -9683,7 +9683,7 @@ void Assembler::prefix(Register dst, Address adr, Prefix p) {
96839683
if (adr.index_needs_rex()) {
96849684
assert(false, "prefix(Register dst, Address adr, Prefix p) does not support handling of an X");
96859685
} else {
9686-
prefix(REX_B);
9686+
p = (Prefix)(p | REX_B);
96879687
}
96889688
} else {
96899689
if (adr.index_needs_rex()) {

0 commit comments

Comments
 (0)