mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-05 15:48:51 +00:00
[AArch64] Fix addzex.
This commit is contained in:
parent
84b90ad1c6
commit
6791a808b6
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue