Merge pull request #13238 from JosJuice/jitarm64-rlwinmx-imm-mask

JitArm64: Handle rlwinmx with zero mask
This commit is contained in:
Admiral H. Curtiss 2025-01-10 04:44:22 +01:00 committed by GitHub
commit d10cb9dfc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 0 deletions

View File

@ -765,6 +765,14 @@ void JitArm64::rlwinmx_internal(UGeckoInstruction inst, u32 sh)
return; return;
} }
if (mask == 0)
{
gpr.SetImmediate(a, 0);
if (inst.Rc)
ComputeRC0(0);
return;
}
gpr.BindToRegister(a, a == s); gpr.BindToRegister(a, a == s);
if (sh == 0 && mask == 0xFFFFFFFF) if (sh == 0 && mask == 0xFFFFFFFF)