[AArch64] Fix cmp

This commit is contained in:
Ryan Houdek 2015-01-25 03:16:29 -06:00
parent 0aef1d27aa
commit 84b90ad1c6
1 changed files with 8 additions and 3 deletions

View File

@ -377,13 +377,18 @@ void JitArm64::cmp(UGeckoInstruction inst)
} }
ARM64Reg WA = gpr.GetReg(); ARM64Reg WA = gpr.GetReg();
ARM64Reg WB = gpr.GetReg();
ARM64Reg XA = EncodeRegTo64(WA);
ARM64Reg XB = EncodeRegTo64(WB);
ARM64Reg RA = gpr.R(a); ARM64Reg RA = gpr.R(a);
ARM64Reg RB = gpr.R(b); ARM64Reg RB = gpr.R(b);
SXTW(XA, RA);
SXTW(XB, RB);
SUB(WA, RA, RB); SUB(XA, XA, XB);
ComputeRC(WA, crf); STR(INDEX_UNSIGNED, XA, X29, PPCSTATE_OFF(cr_val[0]) + (sizeof(PowerPC::ppcState.cr_val[0]) * crf));
gpr.Unlock(WA); gpr.Unlock(WA, WB);
} }
void JitArm64::cmpl(UGeckoInstruction inst) void JitArm64::cmpl(UGeckoInstruction inst)