Skip to content
Permalink
Browse files
Merge pull request #5962 from degasus/arm-fixes
JitArm64: Fix rlwinmx.
  • Loading branch information
degasus committed Aug 22, 2017
2 parents 81a4fd9 + b00c606 commit 3094d65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
@@ -4057,7 +4057,7 @@ void ARM64XEmitter::ANDI2R(ARM64Reg Rd, ARM64Reg Rn, u64 imm, ARM64Reg scratch)
else
{
_assert_msg_(DYNA_REC, scratch != INVALID_REG,
"ANDSI2R - failed to construct logical immediate value from %08x, need scratch",
"ANDI2R - failed to construct logical immediate value from %08x, need scratch",
(u32)imm);
MOVI2R(scratch, imm);
AND(Rd, Rn, scratch);
@@ -532,7 +532,12 @@ void JitArm64::rlwinmx(UGeckoInstruction inst)

gpr.BindToRegister(a, a == s);

if (!inst.SH)
if (!inst.SH && mask == 0xFFFFFFFF)
{
if (a != s)
MOV(gpr.R(a), gpr.R(s));
}
else if (!inst.SH)
{
// Immediate mask
ANDI2R(gpr.R(a), gpr.R(s), mask);

0 comments on commit 3094d65

Please sign in to comment.