irjit: Allow masked vneg.q.

This commit is contained in:
Unknown W. Brackets 2023-08-06 12:05:51 -07:00
parent 93e3d35f5d
commit 85ee7c85c1
2 changed files with 6 additions and 1 deletions

View File

@ -226,7 +226,8 @@ void IRFrontend::Comp_mxc1(MIPSOpcode op) {
UpdateRoundingMode();
ApplyRoundingMode();
} else {
Comp_Generic(op);
// Maybe not strictly invalid? But likely invalid.
INVALIDOP;
}
return;
default:

View File

@ -782,6 +782,10 @@ namespace MIPSComp {
if (optype == 0) {
if (js.HasUnknownPrefix() || !IsPrefixWithinSize(js.prefixS, op))
DISABLE;
} else if (optype == 1 || optype == 2) {
// D prefix is fine for these, and used sometimes.
if (js.HasUnknownPrefix() || js.HasSPrefix())
DISABLE;
} else {
// Many of these apply the D prefix strangely or override parts of the S prefix.
if (!js.HasNoPrefix())