interp: Use vfpu_dot for vdet as well.

Improves test accuracy here too.  Also keep neg sign on NAN for vdiv.

Disabled by default via compile-time flag.
This commit is contained in:
Unknown W. Brackets committed 2019-08-04 21:21:21 -07:00
1 parent d2f7594dc5
commit ed4f0896db
1 file changed
+9 -3
+9 -3
View File
@@ -1419,8 +1419,14 @@ namespace MIPSInt
u32 tprefixAdd = VFPU_SWIZZLE(1, 0, 0, 0);
ApplyPrefixST(t, VFPURewritePrefix(VFPU_CTRL_TPREFIX, tprefixRemove, tprefixAdd), V_Quad);
d[0] = s[0] * t[0] - s[1] * t[1];
d[0] += s[2] * t[2] + s[3] * t[3];
if (USE_VFPU_DOT) {
s[1] = -s[1];
d[0] = vfpu_dot(s, t);
} else {
d[0] = s[0] * t[0] - s[1] * t[1];
d[0] += s[2] * t[2] + s[3] * t[3];
}
ApplyPrefixD(d, sz);
WriteVector(d, V_Single, vd);
PC += 4;
@@ -2092,7 +2098,7 @@ namespace MIPSInt
if (USE_VFPU_DOT) {
if (my_isnan(d.f[i])) {
d.u[i] = 0x7f800001;
d.u[i] = (d.u[i] & 0xff800001) | 1;
} else if ((d.u[i] & 0x7F800000) == 0) {
d.u[i] &= 0xFF800000;
}