Fixed operand-action for EVEX/MVEX instructions with write-mask (again)

This commit is contained in:
flobernd 2017-06-26 03:20:26 +02:00
parent a1551af657
commit 920d62d699
1 changed files with 1 additions and 0 deletions

View File

@ -1921,6 +1921,7 @@ FinalizeOperand:
// Fix operand-action for EVEX instructions with merge-mask // Fix operand-action for EVEX instructions with merge-mask
if ((info->encoding == ZYDIS_INSTRUCTION_ENCODING_EVEX) && if ((info->encoding == ZYDIS_INSTRUCTION_ENCODING_EVEX) &&
(info->avx.maskMode == ZYDIS_MASK_MODE_MERGE) && (info->avx.maskMode == ZYDIS_MASK_MODE_MERGE) &&
(info->operandCount >= 3) &&
(info->operands[1].type == ZYDIS_OPERAND_TYPE_REGISTER) && (info->operands[1].type == ZYDIS_OPERAND_TYPE_REGISTER) &&
(info->operands[1].reg >= ZYDIS_REGISTER_K1) && (info->operands[1].reg >= ZYDIS_REGISTER_K1) &&
(info->operands[1].reg <= ZYDIS_REGISTER_K7)) (info->operands[1].reg <= ZYDIS_REGISTER_K7))