diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp index d7fea23464..333956b202 100644 --- a/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp +++ b/Source/Core/Core/PowerPC/Jit64/Jit_Integer.cpp @@ -304,8 +304,8 @@ void Jit64::reg_imm(UGeckoInstruction inst) case 15: // addis regimmop(d, a, false, (u32)inst.SIMM_16 << 16, Add, &XEmitter::ADD); break; - case 24: // ori - if (a == 0 && s == 0 && inst.UIMM == 0 && !inst.Rc) // check for nop + case 24: // ori + if (a == s && inst.UIMM == 0) // check for nop { // Make the nop visible in the generated code. not much use but interesting if we see one. NOP(); diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp index 14a9562568..e78c9e984c 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp @@ -121,8 +121,9 @@ void JitArm64::arith_imm(UGeckoInstruction inst) switch (inst.OPCD) { - case 24: // ori - if (a == 0 && s == 0 && inst.UIMM == 0 && !inst.Rc) // check for nop + case 24: // ori + // check for nop + if (a == s && inst.UIMM == 0) { // NOP return;