Skip to content

Commit

Permalink
Merge pull request #137 from Medard22/jitarm64-cmp-order
Browse files Browse the repository at this point in the history
"JitArm64: Fix special cases of cmp" by JosJuice
  • Loading branch information
Medard22 committed Feb 17, 2024
2 parents aed641f + 715b420 commit 5075c3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -584,13 +584,13 @@ void JitArm64::cmp(UGeckoInstruction inst)
}
else if (gpr.IsImm(a) && !gpr.GetImm(a))
{
NEG(EncodeRegTo32(CR), gpr.R(b));
SXTW(CR, EncodeRegTo32(CR));
SXTW(CR, gpr.R(b));
NEG(CR, CR);
}
else if (gpr.IsImm(a) && gpr.GetImm(a) == 0xFFFFFFFF)
{
MVN(EncodeRegTo32(CR), gpr.R(b));
SXTW(CR, EncodeRegTo32(CR));
SXTW(CR, gpr.R(b));
MVN(CR, CR);
}
else if (gpr.IsImm(b) && !gpr.GetImm(b))
{
Expand Down

0 comments on commit 5075c3f

Please sign in to comment.