Jit_Integer: rlwnmx: Use RotateLeft

This commit is contained in:
MerryMage 2020-12-28 11:48:23 +00:00
parent e509353eb0
commit 4e0a688076
1 changed files with 1 additions and 5 deletions

View File

@ -1771,11 +1771,7 @@ void Jit64::rlwnmx(UGeckoInstruction inst)
RCOpArg Rs = gpr.Use(s, RCMode::Read);
RegCache::Realize(Ra, Rs);
if (a != s)
MOV(32, Ra, Rs);
if (amount)
ROL(32, Ra, Imm8(amount));
RotateLeft(32, Ra, Rs, amount);
// we need flags if we're merging the branch
if (inst.Rc && CheckMergedBranch(0))