diff --git a/Source/Core/Core/PowerPC/PPCAnalyst.cpp b/Source/Core/Core/PowerPC/PPCAnalyst.cpp index 0f317adb99..3761f9eb76 100644 --- a/Source/Core/Core/PowerPC/PPCAnalyst.cpp +++ b/Source/Core/Core/PowerPC/PPCAnalyst.cpp @@ -991,7 +991,7 @@ u32 PPCAnalyzer::Analyze(u32 address, CodeBlock* block, CodeBuffer* buffer, std: bitexact_inputs[op.inst.FC] = true; } - if (op.opinfo->type == OpType::SingleFP) + if (op.opinfo->type == OpType::SingleFP || !strncmp(op.opinfo->opname, "frsp", 4)) { fprIsSingle[op.fregOut] = true; fprIsDuplicated[op.fregOut] = true; @@ -1039,8 +1039,9 @@ u32 PPCAnalyzer::Analyze(u32 address, CodeBlock* block, CodeBuffer* buffer, std: // TODO: if we go directly from a load to a float instruction, and the value isn't used // for anything else, we can use fast single -> double conversion after the load. - fprIsStoreSafe[op.fregOut] = - (op.opinfo->type == OpType::SingleFP || op.opinfo->type == OpType::PS); + fprIsStoreSafe[op.fregOut] = op.opinfo->type == OpType::SingleFP || + op.opinfo->type == OpType::PS || + !strncmp(op.opinfo->opname, "frsp", 4); } } op.fprIsStoreSafeAfterInst = fprIsStoreSafe;