Skip to content

Commit 744d785

Browse files
committed
8279225: [arm32] C1 longs comparison operation destroys argument registers
Backport-of: 299022dfacbcb49e3bc5beca8ff9b1fca1101493
1 parent 3de6b2c commit 744d785

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/cpu/arm/c1_LIRAssembler_arm.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1825,8 +1825,8 @@ void LIR_Assembler::comp_op(LIR_Condition condition, LIR_Opr opr1, LIR_Opr opr2,
18251825
__ teq(xhi, yhi);
18261826
__ teq(xlo, ylo, eq);
18271827
} else {
1828-
__ subs(xlo, xlo, ylo);
1829-
__ sbcs(xhi, xhi, yhi);
1828+
__ subs(Rtemp, xlo, ylo);
1829+
__ sbcs(Rtemp, xhi, yhi);
18301830
}
18311831
} else {
18321832
ShouldNotReachHere();

0 commit comments

Comments
 (0)