Skip to content

Commit

Permalink
remove unnecessary check EVEX.V' field
Browse files Browse the repository at this point in the history
We have  already checked this condition above no need to check again
  • Loading branch information
OptionalAssistant committed Apr 3, 2024
1 parent 1ad8a15 commit 1db5c71
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -598,10 +598,7 @@ static ZyanStatus ZydisDecodeEVEX(ZydisDecoderContext* context,
context->vector_unified.vvvv = 0x0F & ~instruction->raw.evex.vvvv;
context->vector_unified.mask = instruction->raw.evex.aaa;

if (!instruction->raw.evex.V2 && (instruction->machine_mode != ZYDIS_MACHINE_MODE_LONG_64))
{
return ZYDIS_STATUS_MALFORMED_EVEX;
}

if (!instruction->raw.evex.b && (context->vector_unified.LL == 3))
{
// LL = 3 is only valid for instructions with embedded rounding control
Expand Down

0 comments on commit 1db5c71

Please sign in to comment.