mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Jit64: addx - Deduplicate branches part 2
No functional change, just simplify some repeated logic in the case where we're dealing with exactly one immediate and one simple register when overflow isn't needed.
This commit is contained in:
parent
72fbdf1a6b
commit
f1c3ab359d
@ -1339,13 +1339,11 @@ void Jit64::addx(UGeckoInstruction inst)
|
|||||||
{
|
{
|
||||||
LEA(32, Rd, MRegSum(Ra.GetSimpleReg(), Rb.GetSimpleReg()));
|
LEA(32, Rd, MRegSum(Ra.GetSimpleReg(), Rb.GetSimpleReg()));
|
||||||
}
|
}
|
||||||
else if (Ra.IsSimpleReg() && Rb.IsImm() && !inst.OE)
|
else if ((Ra.IsSimpleReg() || Rb.IsSimpleReg()) && (Ra.IsImm() || Rb.IsImm()) && !inst.OE)
|
||||||
{
|
{
|
||||||
LEA(32, Rd, MDisp(Ra.GetSimpleReg(), Rb.SImm32()));
|
RCOpArg& Rimm = Ra.IsImm() ? Ra : Rb;
|
||||||
}
|
RCOpArg& Rreg = Ra.IsImm() ? Rb : Ra;
|
||||||
else if (Rb.IsSimpleReg() && Ra.IsImm() && !inst.OE)
|
LEA(32, Rd, MDisp(Rreg.GetSimpleReg(), Rimm.SImm32()));
|
||||||
{
|
|
||||||
LEA(32, Rd, MDisp(Rb.GetSimpleReg(), Ra.SImm32()));
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user