Disable invalid-encoding checks iff VSIB instr (memory tests)
@@ -144,7 +144,10 @@ namespace Iced.UnitTests.Intel.DecoderTests {
int displSize = (int)ParseUInt32(parts[9].Trim());
var constantOffsets = ParseConstantOffsets(parts[10].Trim());
string encodedHexBytes = parts.Length > 11 ? parts[11].Trim() : hexBytes;
- var options = DecoderOptions.NoInvalidCheck;
+ var options = DecoderOptions.None;
+ // There are some invalid encodings so disable decoder's invalid-encoding checks
+ if (code == Code.EVEX_Vpscatterdd_vm32x_k1_xmm)
+ options |= DecoderOptions.NoInvalidCheck;
yield return new object[13] { hexBytes, code, register, prefixSeg, segReg, baseReg, indexReg, scale, displ, displSize, constantOffsets, encodedHexBytes, options };
}
