Skip to content
Permalink
Browse files

Fix static analysis warning about access outside array (d[ins] = s[in…

…s * 4] * t[0])
  • Loading branch information...
hrydgard committed Jun 17, 2019
1 parent 3cb1c33 commit 379113680c451a8769057ba077939303b78185f2
Showing with 4 additions and 1 deletion.
  1. +4 −1 Core/MIPS/MIPSIntVFPU.cpp
@@ -363,6 +363,9 @@ namespace MIPSInt
case 7:
sprefixAdd = VFPU_MAKE_CONSTANTS(VFPUConst::ONE, VFPUConst::ONE, VFPUConst::ONE, VFPUConst::ONE);
break;
default:
_dbg_assert_msg_(CPU, 0, "Unknown matrix init op");
break;
}
ApplyPrefixST(&prefixed[off * 4], VFPURewritePrefix(VFPU_CTRL_SPREFIX, sprefixRemove, sprefixAdd), V_Quad);
WriteMatrix(prefixed, sz, vd);
@@ -1562,7 +1565,7 @@ namespace MIPSInt
int vd = _VD;
int vs = _VS;
int vt = _VT;
int ins = (op >> 23) & 7;
int ins = (op >> 23) & 3;

VectorSize sz = (VectorSize)(ins + 1);
MatrixSize msz = (MatrixSize)(ins + 1);

0 comments on commit 3791136

Please sign in to comment.
You can’t perform that action at this time.