Jit_FloatingPoint: frsqrtex
This commit is contained in:
parent
68bbd56c01
commit
e812a62879
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue