mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-08 15:20:45 +01:00
JitArm64: Handle rlwinmx with zero mask
No games seem to use this, so this isn't useful as a performance optimization, but it's required for correctness because the (sh == 0) case of our implementation doesn't handle zero masks.
This commit is contained in:
parent
c528a70e64
commit
6384ea97f1
@ -765,6 +765,14 @@ void JitArm64::rlwinmx_internal(UGeckoInstruction inst, u32 sh)
|
||||
return;
|
||||
}
|
||||
|
||||
if (mask == 0)
|
||||
{
|
||||
gpr.SetImmediate(a, 0);
|
||||
if (inst.Rc)
|
||||
ComputeRC0(0);
|
||||
return;
|
||||
}
|
||||
|
||||
gpr.BindToRegister(a, a == s);
|
||||
|
||||
if (sh == 0 && mask == 0xFFFFFFFF)
|
||||
|
Loading…
Reference in New Issue
Block a user