Fixed a wrong assert condition
@@ -2037,10 +2037,10 @@ FinalizeOperand:
}
#if !defined(ZYDIS_DISABLE_EVEX) || !defined(ZYDIS_DISABLE_MVEX)
- // Fix operand-action for EVEX instructions with merge-mask
+ // Fix operand-action for EVEX/MVEX instructions with merge-mask
if (instruction->avx.mask.mode == ZYDIS_MASK_MODE_MERGE)
{
- ZYAN_ASSERT(instruction->operand_count >= 2);
+ ZYAN_ASSERT(instruction->operand_count >= 1);
switch (instruction->operands[0].action)
{
case ZYDIS_OPERAND_ACTION_WRITE:
