Backported "Fixed a wrong assert condition" from future branch

Commit on future: e6dbba0bd314680dda64ef34e56cd12046ae8a2d
This commit is contained in:
Joel Höner 2018-05-21 16:00:06 +02:00
parent 14eeda7cfc
commit 1aa5e648f1
No known key found for this signature in database
GPG Key ID: 414998BD0973F77E
1 changed files with 2 additions and 2 deletions

View File

@ -1999,11 +1999,11 @@ 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.reg && (instruction->avx.mask.mode == ZYDIS_MASK_MODE_MERGE) &&
!instruction->avx.mask.isControlMask)
{
ZYDIS_ASSERT(instruction->operandCount >= 2);
ZYDIS_ASSERT(instruction->operandCount >= 1);
switch (instruction->operands[0].action)
{
case ZYDIS_OPERAND_ACTION_WRITE: