Skip to content

Commit e1ee008

Browse files
committed
8279225: [arm32] C1 longs comparison operation destroys argument registers
Backport-of: 299022dfacbcb49e3bc5beca8ff9b1fca1101493
1 parent 7e7043e commit e1ee008

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
@@ -2396,8 +2396,8 @@ void LIR_Assembler::comp_op(LIR_Condition condition, LIR_Opr opr1, LIR_Opr opr2,
23962396
__ teq(xhi, yhi);
23972397
__ teq(xlo, ylo, eq);
23982398
} else {
2399-
__ subs(xlo, xlo, ylo);
2400-
__ sbcs(xhi, xhi, yhi);
2399+
__ subs(Rtemp, xlo, ylo);
2400+
__ sbcs(Rtemp, xhi, yhi);
24012401
}
24022402
} else {
24032403
ShouldNotReachHere();

0 commit comments

Comments
 (0)