Merge pull request #4783 from degasus/temp

JitArm64: Fix immediate versions of cmpl.
This commit is contained in:
Markus Wick 2017-01-30 09:22:56 +01:00 committed by GitHub
commit 2020928fd8

View File

@ -437,12 +437,12 @@ void JitArm64::cmpl(UGeckoInstruction inst)
if (gpr.IsImm(a) && gpr.IsImm(b)) if (gpr.IsImm(a) && gpr.IsImm(b))
{ {
ComputeRC(gpr.GetImm(a) - gpr.GetImm(b), crf); ComputeRC(static_cast<u64>(gpr.GetImm(a)) - static_cast<u64>(gpr.GetImm(b)), crf, false);
return; return;
} }
else if (gpr.IsImm(b) && !gpr.GetImm(b)) else if (gpr.IsImm(b) && !gpr.GetImm(b))
{ {
ComputeRC(gpr.R(a), crf); ComputeRC(gpr.R(a), crf, false);
return; return;
} }