Jit_Paired: ps_rsqrte
This commit is contained in:
parent
3fc3a55a9a
commit
66d9349643
|
@ -157,23 +157,21 @@ void Jit64::ps_rsqrte(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);
|
RCX64Reg Rb = fpr.Bind(b, RCMode::Read);
|
||||||
fpr.BindToRegister(b, true, false);
|
RCX64Reg Rd = fpr.Bind(d, RCMode::Write);
|
||||||
fpr.BindToRegister(d, false);
|
RegCache::Realize(scratch_guard, Rb, Rd);
|
||||||
|
|
||||||
MOVSD(XMM0, fpr.R(b));
|
MOVSD(XMM0, Rb);
|
||||||
CALL(asm_routines.frsqrte);
|
CALL(asm_routines.frsqrte);
|
||||||
MOVSD(fpr.R(d), XMM0);
|
MOVSD(Rd, XMM0);
|
||||||
|
|
||||||
MOVHLPS(XMM0, fpr.RX(b));
|
MOVHLPS(XMM0, Rb);
|
||||||
CALL(asm_routines.frsqrte);
|
CALL(asm_routines.frsqrte);
|
||||||
MOVLHPS(fpr.RX(d), XMM0);
|
MOVLHPS(Rd, XMM0);
|
||||||
|
|
||||||
ForceSinglePrecision(fpr.RX(d), fpr.R(d));
|
ForceSinglePrecision(Rd, Rd);
|
||||||
SetFPRFIfNeeded(fpr.RX(d));
|
SetFPRFIfNeeded(Rd);
|
||||||
fpr.UnlockAll();
|
|
||||||
gpr.UnlockAllX();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Jit64::ps_res(UGeckoInstruction inst)
|
void Jit64::ps_res(UGeckoInstruction inst)
|
||||||
|
|
Loading…
Reference in New Issue