changeset 54145:e15792cdcc00

8206107: [x86_32] jck tests for ldc2_w bytecode fail Reviewed-by: dsamersoff
author bulasevich
date Tue, 25 Dec 2018 18:35:42 +0300
parents abe21b82ff7c
children 35530ca3e0b2
files src/hotspot/cpu/x86/templateTable_x86.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/hotspot/cpu/x86/templateTable_x86.cpp	Mon Dec 24 12:18:40 2018 +0530
+++ b/src/hotspot/cpu/x86/templateTable_x86.cpp	Tue Dec 25 18:35:42 2018 +0300
@@ -582,8 +582,9 @@
       __ cmpl(flags, ltos);
       __ jcc(Assembler::notEqual, notLong);
       // ltos
+      // Loading high word first because movptr clobbers rax
+      NOT_LP64(__ movptr(rdx, field.plus_disp(4)));
       __ movptr(rax, field);
-      NOT_LP64(__ movptr(rdx, field.plus_disp(4)));
       __ push(ltos);
       __ jmp(Done);