8279225: [arm32] C1 longs comparison operation destroys argument registers

Reviewed-by: haosun, aph
This commit is contained in:
Sergey Nazarkin 2021-12-28 11:29:12 +00:00 committed by Alexey Bakhtin
parent 4f607f2ada
commit 299022dfac

@ -1820,8 +1820,8 @@ void LIR_Assembler::comp_op(LIR_Condition condition, LIR_Opr opr1, LIR_Opr opr2,
__ teq(xhi, yhi);
__ teq(xlo, ylo, eq);
} else {
__ subs(xlo, xlo, ylo);
__ sbcs(xhi, xhi, yhi);
__ subs(Rtemp, xlo, ylo);
__ sbcs(Rtemp, xhi, yhi);
}
} else {
ShouldNotReachHere();