mirror of
https://github.com/mupen64plus/mupen64plus-rsp-cxd4.git
synced 2024-05-28 16:57:57 -04:00
Fix VRCPL and VRSQL ops
Removed the unsigned cast for DivIn, now passes all tests of this test rom -> https://github.com/PeterLemon/N64/tree/master/RSPTest/CP2/VRCPL
This commit is contained in:
parent
f74f987b55
commit
11acc78f6e
|
@ -1156,7 +1156,7 @@ VECTOR_OPERATION VRCPL(v16 vs, v16 vt)
|
|||
const unsigned int element = (inst_word >> 21) & 0x7;
|
||||
|
||||
DivIn &= DPH;
|
||||
DivIn |= (u16)VR[target][element];
|
||||
DivIn |= VR[target][element];
|
||||
do_div(DivIn, SP_DIV_SQRT_NO, DPH);
|
||||
#ifdef ARCH_MIN_SSE2
|
||||
*(v16 *)VACC_L = vt;
|
||||
|
@ -1256,7 +1256,7 @@ VECTOR_OPERATION VRSQL(v16 vs, v16 vt)
|
|||
const unsigned int element = (inst_word >> 21) & 0x7;
|
||||
|
||||
DivIn &= DPH;
|
||||
DivIn |= (u16)VR[target][element];
|
||||
DivIn |= VR[target][element];
|
||||
do_div(DivIn, SP_DIV_SQRT_YES, DPH);
|
||||
#ifdef ARCH_MIN_SSE2
|
||||
*(v16 *)VACC_L = vt;
|
||||
|
|
Loading…
Reference in a new issue