JitArm64: Add rlwinmx case for only shifting

Small optimization.
This commit is contained in:
JosJuice 2023-12-16 17:34:33 +01:00
parent f87a4f0385
commit b5a95b7804
1 changed files with 4 additions and 0 deletions

View File

@ -784,6 +784,10 @@ void JitArm64::rlwinmx(UGeckoInstruction inst)
// Immediate mask
AND(gpr.R(a), gpr.R(s), LogicalImm(mask, 32));
}
else if (mask == 0xFFFFFFFF)
{
ROR(gpr.R(a), gpr.R(s), 32 - inst.SH);
}
else if (inst.ME == 31 && 31 < inst.SH + inst.MB)
{
// Bit select of the upper part