mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
PPCAnalyst: Treat frspx output as single
This commit is contained in:
parent
77afb0f4c3
commit
66e912a252
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user