Core: Update CX86RecompilerOps::COP1_D_CVT_S and CX86RecompilerOps::COP1_D_CVT_W

This commit is contained in:
zilmar 2024-03-21 17:41:29 +10:30
parent 33d2722841
commit 2811b63ff0
1 changed files with 26 additions and 12 deletions

View File

@ -8641,6 +8641,12 @@ void CX86RecompilerOps::COP1_D_FLOOR_W()
}
void CX86RecompilerOps::COP1_D_CVT_S()
{
if (FpuExceptionInRecompiler())
{
COP1_S_CVT(CRegInfo::RoundDefault, CRegInfo::FPU_Double, CRegInfo::FPU_FloatLow);
}
else
{
CompileCop1Test();
if (m_RegWorkingSet.RegInStack(m_Opcode.fd, CRegInfo::FPU_Double) || m_RegWorkingSet.RegInStack(m_Opcode.fd, CRegInfo::FPU_Qword))
@ -8653,8 +8659,15 @@ void CX86RecompilerOps::COP1_D_CVT_S()
}
m_RegWorkingSet.ChangeFPURegFormat(m_Opcode.fd, CRegInfo::FPU_Double, CRegInfo::FPU_Float, CRegInfo::RoundDefault);
}
}
void CX86RecompilerOps::COP1_D_CVT_W()
{
if (FpuExceptionInRecompiler())
{
COP1_S_CVT(CRegInfo::RoundDefault, CRegInfo::FPU_Double, CRegInfo::FPU_Dword);
}
else
{
CompileCop1Test();
if (m_RegWorkingSet.RegInStack(m_Opcode.fs, CRegInfo::FPU_Double) || m_RegWorkingSet.RegInStack(m_Opcode.fs, CRegInfo::FPU_Qword))
@ -8667,6 +8680,7 @@ void CX86RecompilerOps::COP1_D_CVT_W()
}
m_RegWorkingSet.ChangeFPURegFormat(m_Opcode.fd, CRegInfo::FPU_Double, CRegInfo::FPU_Dword, CRegInfo::RoundDefault);
}
}
void CX86RecompilerOps::COP1_D_CVT_L()
{