From 9e5bbff51d5f2c305a3bac04d4daf3a9ed319d32 Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Thu, 29 Oct 2020 14:19:56 +0000 Subject: [PATCH] 8255550: x86: Assembler::cmpq(Address dst, Register src) encoding is incorrect Reviewed-by: kvn, eosterlund --- src/hotspot/cpu/x86/assembler_x86.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotspot/cpu/x86/assembler_x86.cpp b/src/hotspot/cpu/x86/assembler_x86.cpp index 1f6b196d3ce..3933bac000f 100644 --- a/src/hotspot/cpu/x86/assembler_x86.cpp +++ b/src/hotspot/cpu/x86/assembler_x86.cpp @@ -9803,7 +9803,7 @@ void Assembler::cmpq(Register dst, int32_t imm32) { void Assembler::cmpq(Address dst, Register src) { InstructionMark im(this); - emit_int16(get_prefixq(dst, src), 0x3B); + emit_int16(get_prefixq(dst, src), 0x39); emit_operand(src, dst); }