8206107: [x86_32] jck tests for ldc2_w bytecode fail

Reviewed-by: dsamersoff
This commit is contained in:
Boris Ulasevich 2018-12-25 18:35:42 +03:00
parent ead8577920
commit b38a53de3f

View File

@ -582,8 +582,9 @@ void TemplateTable::condy_helper(Label& Done) {
__ cmpl(flags, ltos); __ cmpl(flags, ltos);
__ jcc(Assembler::notEqual, notLong); __ jcc(Assembler::notEqual, notLong);
// ltos // ltos
__ movptr(rax, field); // Loading high word first because movptr clobbers rax
NOT_LP64(__ movptr(rdx, field.plus_disp(4))); NOT_LP64(__ movptr(rdx, field.plus_disp(4)));
__ movptr(rax, field);
__ push(ltos); __ push(ltos);
__ jmp(Done); __ jmp(Done);