Jit_FloatingPoint: frsqrtex

This commit is contained in:
MerryMage 2018-10-15 21:02:03 +01:00
parent 68bbd56c01
commit e812a62879
1 changed files with 8 additions and 8 deletions

View File

@ -657,15 +657,15 @@ void Jit64::frsqrtex(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);
fpr.BindToRegister(d); RCX64Reg Rd = fpr.Bind(d, RCMode::Write);
MOVAPD(XMM0, fpr.R(b)); RegCache::Realize(scratch_guard, Rb, Rd);
MOVAPD(XMM0, Rb);
CALL(asm_routines.frsqrte); CALL(asm_routines.frsqrte);
MOVSD(fpr.R(d), XMM0); MOVSD(Rd, XMM0);
SetFPRFIfNeeded(fpr.RX(d)); SetFPRFIfNeeded(Rd);
fpr.UnlockAll();
gpr.UnlockAllX();
} }
void Jit64::fresx(UGeckoInstruction inst) void Jit64::fresx(UGeckoInstruction inst)