8206107: [x86_32] jck tests for ldc2_w bytecode fail
authorbulasevich
Tue, 25 Dec 2018 18:35:42 +0300
changeset 53101 e15792cdcc00
parent 53100 abe21b82ff7c
child 53102 35530ca3e0b2
8206107: [x86_32] jck tests for ldc2_w bytecode fail Reviewed-by: dsamersoff
src/hotspot/cpu/x86/templateTable_x86.cpp
--- 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);