mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-24 06:51:17 +01:00
Merge pull request #9845 from Sintendo/jit64mtfsfx
Jit64: mtfsfx - Optimized masking
This commit is contained in:
commit
52fb2fad40
@ -792,10 +792,13 @@ void Jit64::mtfsfx(UGeckoInstruction inst)
|
||||
else
|
||||
MOV(32, R(RSCRATCH), Rb);
|
||||
|
||||
if (mask != 0xFFFFFFFF)
|
||||
{
|
||||
MOV(32, R(RSCRATCH2), PPCSTATE(fpscr));
|
||||
AND(32, R(RSCRATCH), Imm32(mask));
|
||||
AND(32, R(RSCRATCH2), Imm32(~mask));
|
||||
OR(32, R(RSCRATCH), R(RSCRATCH2));
|
||||
}
|
||||
MOV(32, PPCSTATE(fpscr), R(RSCRATCH));
|
||||
|
||||
if (inst.FM & 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user