Merge pull request #9588 from JosJuice/jitarm64-srawx-a-s

JitArm64: Improve srawx special case carry calculation
This commit is contained in:
Léo Lam 2021-03-16 10:40:10 +01:00 committed by GitHub
commit 3fcc018fa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -1401,13 +1401,14 @@ void JitArm64::srawx(UGeckoInstruction inst)
{ {
gpr.BindToRegister(a, a == s); gpr.BindToRegister(a, a == s);
ASR(gpr.R(a), gpr.R(s), 31);
if (js.op->wantsCA) if (js.op->wantsCA)
{ {
// Set the carry flag to the sign bit of s
CMN(gpr.R(s), gpr.R(s)); CMN(gpr.R(s), gpr.R(s));
ComputeCarry(); ComputeCarry();
} }
ASR(gpr.R(a), gpr.R(s), 31);
} }
else if (amount == 0) else if (amount == 0)
{ {