Skip to content

Commit

Permalink
Second attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Nov 3, 2024
1 parent 282bb95 commit d8aee19
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion src/Decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ static ZyanU8 ZydisCalcRegisterId(const ZydisDecoderContext* context,
{
return value;
}
return value | (context->vector_unified.B3 << 3);
return value | (context->vector_unified.B4 << 4) | (context->vector_unified.B3 << 3);
}
case ZYDIS_REG_ENCODING_IS4:
{
Expand Down
64 changes: 32 additions & 32 deletions src/Generated/DecoderTables.inc
Original file line number Diff line number Diff line change
Expand Up @@ -201,22 +201,22 @@ const ZydisDecoderTreeNode FILTERS_MODE_COMPACT[][2] =
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x15A) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x15A) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x15A) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x33), ZYDIS_DEFINITION(0x0, 0x5D4) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x34), ZYDIS_DEFINITION(0x0, 0x5D4) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x35), ZYDIS_DEFINITION(0x0, 0x5D4) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x36), ZYDIS_DEFINITION(0x0, 0x5D4) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x37), ZYDIS_DEFINITION(0x0, 0x5D4) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x38), ZYDIS_DEFINITION(0x0, 0x5D4) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x39), ZYDIS_DEFINITION(0x0, 0x5D4) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3A), ZYDIS_DEFINITION(0x0, 0x5D4) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3B), ZYDIS_DEFINITION(0x0, 0x527) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3C), ZYDIS_DEFINITION(0x0, 0x527) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3D), ZYDIS_DEFINITION(0x0, 0x527) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3E), ZYDIS_DEFINITION(0x0, 0x527) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3F), ZYDIS_DEFINITION(0x0, 0x527) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x40), ZYDIS_DEFINITION(0x0, 0x527) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x41), ZYDIS_DEFINITION(0x0, 0x527) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x42), ZYDIS_DEFINITION(0x0, 0x527) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x33), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x34), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x35), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x36), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x37), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x38), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x39), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3A), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3B), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3C), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3D), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3E), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x3F), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x40), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x41), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_REX_W, 0x42), ZYDIS_INVALID },
{ ZYDIS_INVALID, ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_OPERAND_SIZE, 0x2) },
{ ZYDIS_INVALID, ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_OPERAND_SIZE, 0x3) },
{ ZYDIS_INVALID, ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_OPERAND_SIZE, 0x4) },
Expand Down Expand Up @@ -6347,22 +6347,22 @@ const ZydisDecoderTreeNode FILTERS_REX_W[][2] =
{ ZYDIS_DEFINITION(0x1, 0x794), ZYDIS_DEFINITION(0x1, 0x795) },
{ ZYDIS_DEFINITION(0x1, 0x798), ZYDIS_DEFINITION(0x1, 0x799) },
{ ZYDIS_DEFINITION(0x1, 0x79C), ZYDIS_DEFINITION(0x1, 0x79D) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_INVALID, ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_DEFINITION(0x0, 0x5D4), ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_DEFINITION(0x0, 0x5D4), ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_DEFINITION(0x0, 0x5D4), ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_DEFINITION(0x0, 0x5D4), ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_DEFINITION(0x0, 0x5D4), ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_DEFINITION(0x0, 0x5D4), ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_DEFINITION(0x0, 0x5D4), ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_DEFINITION(0x0, 0x5D4), ZYDIS_DEFINITION(0x0, 0x5E0) },
{ ZYDIS_DEFINITION(0x0, 0x527), ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_DEFINITION(0x0, 0x527), ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_DEFINITION(0x0, 0x527), ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_DEFINITION(0x0, 0x527), ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_DEFINITION(0x0, 0x527), ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_DEFINITION(0x0, 0x527), ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_DEFINITION(0x0, 0x527), ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_DEFINITION(0x0, 0x527), ZYDIS_DEFINITION(0x0, 0x533) },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_EVEX_B, 0x0), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_EVEX_B, 0x1), ZYDIS_INVALID },
{ ZYDIS_FILTER(ZYDIS_NODETYPE_FILTER_EVEX_B, 0x2), ZYDIS_INVALID },
Expand Down

0 comments on commit d8aee19

Please sign in to comment.