Fixed incorrect assert condition
@@ -4335,7 +4335,8 @@ static ZyanStatus ZydisCheckErrorConditions(ZydisDecoderContext* context,
break;
case ZYDIS_INSTRUCTION_ENCODING_EVEX:
case ZYDIS_INSTRUCTION_ENCODING_MVEX:
- ZYAN_ASSERT((constr_REG == ZYDIS_REG_CONSTRAINTS_NONE) &&
+ ZYAN_ASSERT(((constr_REG == ZYDIS_REG_CONSTRAINTS_UNUSED) ||
+ (constr_REG == ZYDIS_REG_CONSTRAINTS_NONE)) &&
(constr_RM == ZYDIS_REG_CONSTRAINTS_VSIB) &&
(constr_NDSNDD == ZYDIS_REG_CONSTRAINTS_UNUSED));
break;
