mirror of https://github.com/PCSX2/pcsx2.git
pcsx2: Clarify calculation precedence for '>>' and '?'
(cppcheck)
This commit is contained in:
parent
3e4c3353ce
commit
345a538c84
|
@ -272,13 +272,13 @@ void recWritebackConstHILO(u64 res, int writed, int upper)
|
|||
if( g_pCurInstInfo->regs[XMMGPR_HI] & testlive ) {
|
||||
|
||||
if( !upper && (reghi = _allocCheckGPRtoMMX(g_pCurInstInfo, XMMGPR_HI, MODE_WRITE)) >= 0 ) {
|
||||
MOVQMtoR(reghi, (uptr)recGetImm64(res >> 63 ? -1 : 0, res >> 32));
|
||||
MOVQMtoR(reghi, (uptr)recGetImm64((res >> 63) ? -1 : 0, res >> 32));
|
||||
}
|
||||
else {
|
||||
reghi = _allocCheckGPRtoXMM(g_pCurInstInfo, XMMGPR_HI, MODE_WRITE|MODE_READ);
|
||||
|
||||
if( reghi >= 0 ) {
|
||||
u32* ptr = recGetImm64(res >> 63 ? -1 : 0, res >> 32);
|
||||
u32* ptr = recGetImm64((res >> 63) ? -1 : 0, res >> 32);
|
||||
if( upper ) SSE_MOVHPS_M64_to_XMM(reghi, (uptr)ptr);
|
||||
else SSE_MOVLPS_M64_to_XMM(reghi, (uptr)ptr);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue