JitArm64: mulli - Use MultiplyImmediate

This commit is contained in:
Bram Speeckaert 2022-11-01 19:04:50 +01:00
parent 4aa0c0133a
commit 53a8cd1563
1 changed files with 4 additions and 0 deletions

View File

@ -893,6 +893,10 @@ void JitArm64::mulli(UGeckoInstruction inst)
s32 i = (s32)gpr.GetImm(a);
gpr.SetImmediate(d, i * inst.SIMM_16);
}
else if (MultiplyImmediate((u32)(s32)inst.SIMM_16, a, d, false))
{
// Code is generated inside MultiplyImmediate, nothing to be done here.
}
else
{
gpr.BindToRegister(d, d == a);