[AArch64] Fix addzex.
This commit is contained in:
parent
84b90ad1c6
commit
6791a808b6
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue