Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9588 from JosJuice/jitarm64-srawx-a-s
JitArm64: Improve srawx special case carry calculation
  • Loading branch information
leoetlino committed Mar 16, 2021
2 parents f36b1cb + c0f8405 commit 3fcc018
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp
Expand Up @@ -1401,13 +1401,14 @@ void JitArm64::srawx(UGeckoInstruction inst)
{
gpr.BindToRegister(a, a == s);

ASR(gpr.R(a), gpr.R(s), 31);

if (js.op->wantsCA)
{
// Set the carry flag to the sign bit of s
CMN(gpr.R(s), gpr.R(s));
ComputeCarry();
}

ASR(gpr.R(a), gpr.R(s), 31);
}
else if (amount == 0)
{
Expand Down

0 comments on commit 3fcc018

Please sign in to comment.