Core: Ignore write in CX86RecompilerOps::SPECIAL_OR

This commit is contained in:
zilmar 2024-11-28 12:37:42 +10:30
parent 8d69671e93
commit 0de0bea07a
1 changed files with 4 additions and 0 deletions

View File

@ -5717,6 +5717,10 @@ void CX86RecompilerOps::SPECIAL_AND()
void CX86RecompilerOps::SPECIAL_OR()
{
if (m_Opcode.rd == 0)
{
return;
}
if (m_RegWorkingSet.IsKnown(m_Opcode.rt) && m_RegWorkingSet.IsKnown(m_Opcode.rs))
{
if (m_RegWorkingSet.IsConst(m_Opcode.rt) && m_RegWorkingSet.IsConst(m_Opcode.rs))