Skip to content

Commit

Permalink
Use MD_PushRelElementExpand for broadcast operations.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpd002 committed Dec 19, 2024
1 parent ca1b749 commit 1656b0a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Source/ee/VUShared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@ void VUShared::PushBcElement(CMipsJitter* codeGen, size_t offset)
{
codeGen->MD_PushCstExpand(1.0f);
}
else if(
(offset >= offsetof(CMIPS, m_State.nCOP2[1].nV0)) &&
(offset <= offsetof(CMIPS, m_State.nCOP2[31].nV3)))
{
size_t vectorOffset = offset & ~(sizeof(uint128) - 1);
size_t vectorElem = (offset - offsetof(CMIPS, m_State.nCOP2[0].nV0)) % sizeof(uint128);
codeGen->MD_PushRelElementExpand(vectorOffset, vectorElem / 4);
}
else
{
codeGen->MD_PushRelExpand(offset);
Expand Down

0 comments on commit 1656b0a

Please sign in to comment.