x86/iR5900: Fix incorrect blend in mfsa

This commit is contained in:
Connor McLaughlin 2022-12-30 00:11:31 +10:00 committed by refractionpcsx2
parent ea11bb61e3
commit d359e8420b
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ void recMFSA()
// have to zero out bits 63:32 // have to zero out bits 63:32
const int temp = _allocTempXMMreg(XMMT_INT); const int temp = _allocTempXMMreg(XMMT_INT);
xMOVSSZX(xRegisterSSE(temp), ptr32[&cpuRegs.sa]); xMOVSSZX(xRegisterSSE(temp), ptr32[&cpuRegs.sa]);
xBLEND.PD(xRegisterSSE(temp), xRegisterSSE(temp), 1); xBLEND.PD(xRegisterSSE(mmreg), xRegisterSSE(temp), 1);
_freeXMMreg(temp); _freeXMMreg(temp);
} }
else if (const int gprreg = _allocIfUsedGPRtoX86(_Rd_, MODE_WRITE); gprreg >= 0) else if (const int gprreg = _allocIfUsedGPRtoX86(_Rd_, MODE_WRITE); gprreg >= 0)