1
0
mirror of https://github.com/dolphin-emu/dolphin synced 2024-07-08 12:15:54 +00:00

Merge pull request #11564 from JosJuice/jitarm64-cmp-order

JitArm64: Fix special cases of cmp
This commit is contained in:
Admiral H. Curtiss 2023-02-14 20:19:07 +01:00 committed by GitHub
commit 661b74f4a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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))
{