mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
interp: Handle invalid swizzle for vmin/vmax.
This commit is contained in:
parent
e8c060bb5f
commit
58573cd4b4
1 changed files with 3 additions and 3 deletions
|
@ -1767,6 +1767,7 @@ namespace MIPSInt
|
|||
}
|
||||
|
||||
void Int_Vminmax(MIPSOpcode op) {
|
||||
FloatBits s, t, d;
|
||||
int vt = _VT;
|
||||
int vs = _VS;
|
||||
int vd = _VD;
|
||||
|
@ -1774,9 +1775,6 @@ namespace MIPSInt
|
|||
VectorSize sz = GetVecSize(op);
|
||||
int numElements = GetNumVectorElements(sz);
|
||||
|
||||
FloatBits s;
|
||||
FloatBits t;
|
||||
FloatBits d;
|
||||
ReadVector(s.f, sz, vs);
|
||||
ApplySwizzleS(s.f, sz);
|
||||
ReadVector(t.f, sz, vt);
|
||||
|
@ -1822,6 +1820,7 @@ namespace MIPSInt
|
|||
EatPrefixes();
|
||||
return;
|
||||
}
|
||||
RetainInvalidSwizzleST(d.f, sz);
|
||||
ApplyPrefixD(d.f, sz);
|
||||
WriteVector(d.f, sz, vd);
|
||||
PC += 4;
|
||||
|
@ -2004,6 +2003,7 @@ namespace MIPSInt
|
|||
currentMIPS->vfpuCtrl[VFPU_CTRL_DPREFIX] = lastmask | lastsat;
|
||||
ApplyPrefixD(d, sz);
|
||||
} else {
|
||||
RetainInvalidSwizzleST(d, sz);
|
||||
ApplyPrefixD(d, sz);
|
||||
}
|
||||
WriteVector(d, sz, vd);
|
||||
|
|
Loading…
Add table
Reference in a new issue