Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11292 from JosJuice/jit64-imm-ra-update
Jit64: Use MOV instead of ADD for updating imm Ra
  • Loading branch information
lioncash committed Nov 23, 2022
2 parents e573a0b + 4b6bad2 commit 677121b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp
Expand Up @@ -505,10 +505,10 @@ void Jit64::stX(UGeckoInstruction inst)
}
else
{
RCOpArg Ra = gpr.UseNoImm(a, RCMode::ReadWrite);
RCOpArg Ra = gpr.UseNoImm(a, RCMode::Write);
RegCache::Realize(Ra);
MemoryExceptionCheck();
ADD(32, Ra, Imm32((u32)offset));
MOV(32, Ra, Imm32(addr));
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp
Expand Up @@ -144,10 +144,10 @@ void Jit64::stfXXX(UGeckoInstruction inst)
}
else
{
RCOpArg Ra = gpr.UseNoImm(a, RCMode::ReadWrite);
RCOpArg Ra = gpr.UseNoImm(a, RCMode::Write);
RegCache::Realize(Ra);
MemoryExceptionCheck();
ADD(32, Ra, Imm32((u32)imm));
MOV(32, Ra, Imm32(addr));
}
}
return;
Expand Down

0 comments on commit 677121b

Please sign in to comment.