JitArm64: MultiplyImmediate - Handle 0
Multiplication by zero always gives zero. Before: 0x52800019 mov w25, #0x0 0x1b197f5b mul w27, w26, w25 After: Nothing!
This commit is contained in:
parent
080513284c
commit
51cb918aa5
|
@ -878,9 +878,21 @@ void JitArm64::addic(UGeckoInstruction inst)
|
|||
|
||||
bool JitArm64::MultiplyImmediate(u32 imm, int a, int d, bool rc)
|
||||
{
|
||||
if (imm == 0)
|
||||
{
|
||||
gpr.SetImmediate(d, 0);
|
||||
if (rc)
|
||||
ComputeRC0(gpr.GetImm(d));
|
||||
}
|
||||
else
|
||||
{
|
||||
// Immediate did not match any known special cases.
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void JitArm64::mulli(UGeckoInstruction inst)
|
||||
{
|
||||
INSTRUCTION_START
|
||||
|
|
Loading…
Reference in New Issue