Jit_FloatingPoint: fresx

This commit is contained in:
MerryMage 2018-10-15 21:02:04 +01:00
parent e812a62879
commit 0a96da578e

View File

@ -676,13 +676,13 @@ void Jit64::fresx(UGeckoInstruction inst)
int b = inst.FB; int b = inst.FB;
int d = inst.FD; int d = inst.FD;
gpr.FlushLockX(RSCRATCH_EXTRA); RCX64Reg scratch_guard = gpr.Scratch(RSCRATCH_EXTRA);
fpr.Lock(b, d); RCOpArg Rb = fpr.Use(b, RCMode::Read);
MOVAPD(XMM0, fpr.R(b)); RCX64Reg Rd = fpr.Bind(d, RCMode::Write);
fpr.BindToRegister(d, false); RegCache::Realize(scratch_guard, Rb, Rd);
MOVAPD(XMM0, Rb);
CALL(asm_routines.fres); CALL(asm_routines.fres);
MOVDDUP(fpr.RX(d), R(XMM0)); MOVDDUP(Rd, R(XMM0));
SetFPRFIfNeeded(fpr.RX(d)); SetFPRFIfNeeded(Rd);
fpr.UnlockAll();
gpr.UnlockAllX();
} }