summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
index d32d75bb88..1bc4ef5c35 100644
--- a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
+++ b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp
@@ -1983,6 +1983,11 @@ void Jit64::srawx(UGeckoInstruction inst)
FinalizeCarry(CC_NZ);
}
}
+ else if (gpr.IsImm(s) && gpr.Imm32(s) == 0)
+ {
+ gpr.SetImmediate32(a, 0);
+ FinalizeCarry(false);
+ }
else
{
RCX64Reg ecx = gpr.Scratch(ECX); // no register choice