Skip to content

Commit 299022d

Browse files
Sergey NazarkinAlexey Bakhtin
Sergey Nazarkin
authored and
Alexey Bakhtin
committed
8279225: [arm32] C1 longs comparison operation destroys argument registers
Reviewed-by: haosun, aph
1 parent 4f607f2 commit 299022d

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
@@ -1820,8 +1820,8 @@ void LIR_Assembler::comp_op(LIR_Condition condition, LIR_Opr opr1, LIR_Opr opr2,
18201820
__ teq(xhi, yhi);
18211821
__ teq(xlo, ylo, eq);
18221822
} else {
1823-
__ subs(xlo, xlo, ylo);
1824-
__ sbcs(xhi, xhi, yhi);
1823+
__ subs(Rtemp, xlo, ylo);
1824+
__ sbcs(Rtemp, xhi, yhi);
18251825
}
18261826
} else {
18271827
ShouldNotReachHere();

0 commit comments

Comments
 (0)