[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); gpr.BindToRegister(d, d == a);
ARM64Reg WA = gpr.GetReg(); ARM64Reg WA = gpr.GetReg();
LDRB(INDEX_UNSIGNED, WA, X29, PPCSTATE_OFF(xer_ca)); LDRB(INDEX_UNSIGNED, WA, X29, PPCSTATE_OFF(xer_ca));
CMP(WA, 1); CMP(WA, 0);
CSINC(gpr.R(d), gpr.R(a), gpr.R(a), CC_NEQ); CSINC(gpr.R(d), gpr.R(a), gpr.R(a), CC_EQ);
CMP(gpr.R(d), 0); CMP(gpr.R(d), 0);
gpr.Unlock(WA); gpr.Unlock(WA);
ComputeCarry(); ComputeCarry();
if (inst.Rc)
ComputeRC(gpr.R(d), 0);
} }
void JitArm64::subfx(UGeckoInstruction inst) void JitArm64::subfx(UGeckoInstruction inst)