[AArch64] Fix addzex.

This commit is contained in:
Ryan Houdek 2015-01-25 03:16:57 -06:00
parent 84b90ad1c6
commit 6791a808b6
1 changed files with 4 additions and 2 deletions

View File

@ -659,11 +659,13 @@ void JitArm64::addzex(UGeckoInstruction inst)
gpr.BindToRegister(d, d == a);
ARM64Reg WA = gpr.GetReg();
LDRB(INDEX_UNSIGNED, WA, X29, PPCSTATE_OFF(xer_ca));
CMP(WA, 1);
CSINC(gpr.R(d), gpr.R(a), gpr.R(a), CC_NEQ);
CMP(WA, 0);
CSINC(gpr.R(d), gpr.R(a), gpr.R(a), CC_EQ);
CMP(gpr.R(d), 0);
gpr.Unlock(WA);
ComputeCarry();
if (inst.Rc)
ComputeRC(gpr.R(d), 0);
}
void JitArm64::subfx(UGeckoInstruction inst)