diff --git a/Iced.UnitTests/Intel/DecoderTests/DecoderTest.cs b/Iced.UnitTests/Intel/DecoderTests/DecoderTest.cs index 6ffc6981f..cc555be0b 100644 --- a/Iced.UnitTests/Intel/DecoderTests/DecoderTest.cs +++ b/Iced.UnitTests/Intel/DecoderTests/DecoderTest.cs @@ -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 }; }