src/hotspot/cpu/x86/templateTable_x86.cpp
changeset 53101 e15792cdcc00
parent 51996 84743156e780
child 53746 bdccafc038a2
--- 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);