Skip to content

Commit

Permalink
Jit_SystemRegisters: mtfsfx
Browse files Browse the repository at this point in the history
  • Loading branch information
MerryMage committed Oct 28, 2018
1 parent 192f8ba commit 6248414
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Source/Core/Core/PowerPC/Jit64/Jit_SystemRegisters.cpp
Expand Up @@ -753,10 +753,14 @@ void Jit64::mtfsfx(UGeckoInstruction inst)
}

int b = inst.FB;
if (fpr.R(b).IsSimpleReg())
MOVQ_xmm(R(RSCRATCH), fpr.RX(b));

RCOpArg Rb = fpr.Use(b, RCMode::Read);
RegCache::Realize(Rb);

if (Rb.IsSimpleReg())
MOVQ_xmm(R(RSCRATCH), Rb.GetSimpleReg());
else
MOV(32, R(RSCRATCH), fpr.R(b));
MOV(32, R(RSCRATCH), Rb);

MOV(32, R(RSCRATCH2), PPCSTATE(fpscr));
AND(32, R(RSCRATCH), Imm32(mask));
Expand Down

0 comments on commit 6248414

Please sign in to comment.