From b38a53de3fa3fea2178d6c7feb7638285a001f5f Mon Sep 17 00:00:00 2001 From: Boris Ulasevich Date: Tue, 25 Dec 2018 18:35:42 +0300 Subject: [PATCH] 8206107: [x86_32] jck tests for ldc2_w bytecode fail Reviewed-by: dsamersoff --- src/hotspot/cpu/x86/templateTable_x86.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hotspot/cpu/x86/templateTable_x86.cpp b/src/hotspot/cpu/x86/templateTable_x86.cpp index b794d28f344..432ba6624a9 100644 --- a/src/hotspot/cpu/x86/templateTable_x86.cpp +++ b/src/hotspot/cpu/x86/templateTable_x86.cpp @@ -582,8 +582,9 @@ void TemplateTable::condy_helper(Label& Done) { __ cmpl(flags, ltos); __ jcc(Assembler::notEqual, notLong); // ltos - __ movptr(rax, field); + // Loading high word first because movptr clobbers rax NOT_LP64(__ movptr(rdx, field.plus_disp(4))); + __ movptr(rax, field); __ push(ltos); __ jmp(Done);