Skip to content

Commit

Permalink
Update instruction definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
flobernd committed Oct 29, 2024
1 parent a5c5c33 commit 7e0ec6f
Show file tree
Hide file tree
Showing 10 changed files with 19,021 additions and 12,969 deletions.
2 changes: 1 addition & 1 deletion include/Zydis/Generated/EnumISAExt.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ typedef enum ZydisISAExt_
ZYDIS_ISA_EXT_AMD3DNOW,
ZYDIS_ISA_EXT_AMD3DNOW_PREFETCH,
ZYDIS_ISA_EXT_AMD_INVLPGB,
ZYDIS_ISA_EXT_AMX_BF16,
ZYDIS_ISA_EXT_AMX_FP16,
ZYDIS_ISA_EXT_AMX_INT8,
ZYDIS_ISA_EXT_AMX_TILE,
Expand All @@ -34,7 +35,6 @@ typedef enum ZydisISAExt_
ZYDIS_ISA_EXT_CLFSH,
ZYDIS_ISA_EXT_CLWB,
ZYDIS_ISA_EXT_CLZERO,
ZYDIS_ISA_EXT_CMPCCXADD,
ZYDIS_ISA_EXT_ENQCMD,
ZYDIS_ISA_EXT_F16C,
ZYDIS_ISA_EXT_FMA,
Expand Down
11 changes: 3 additions & 8 deletions include/Zydis/Generated/EnumISASet.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ typedef enum ZydisISASet_
ZYDIS_ISA_SET_AMD3DNOW,
ZYDIS_ISA_SET_AMD_INVLPGB,
ZYDIS_ISA_SET_AMX_BF16,
ZYDIS_ISA_SET_AMX_COMPLEX,
ZYDIS_ISA_SET_AMX_FP16,
ZYDIS_ISA_SET_AMX_INT8,
ZYDIS_ISA_SET_AMX_TILE,
Expand All @@ -23,8 +22,6 @@ typedef enum ZydisISASet_
ZYDIS_ISA_SET_APX_F_CMPCCXADD,
ZYDIS_ISA_SET_APX_F_ENQCMD,
ZYDIS_ISA_SET_APX_F_INVPCID,
ZYDIS_ISA_SET_APX_F_KEYLOCKER,
ZYDIS_ISA_SET_APX_F_KEYLOCKER_WIDE,
ZYDIS_ISA_SET_APX_F_KOPB,
ZYDIS_ISA_SET_APX_F_KOPD,
ZYDIS_ISA_SET_APX_F_KOPQ,
Expand All @@ -33,8 +30,8 @@ typedef enum ZydisISASet_
ZYDIS_ISA_SET_APX_F_MOVBE,
ZYDIS_ISA_SET_APX_F_MOVDIR64B,
ZYDIS_ISA_SET_APX_F_MOVDIRI,
ZYDIS_ISA_SET_APX_F_POPCNT,
ZYDIS_ISA_SET_APX_F_RAO_INT,
ZYDIS_ISA_SET_APX_F_SHA,
ZYDIS_ISA_SET_APX_F_USER_MSR,
ZYDIS_ISA_SET_APX_F_VMX,
ZYDIS_ISA_SET_AVX,
Expand All @@ -60,7 +57,7 @@ typedef enum ZydisISASet_
ZYDIS_ISA_SET_AVX512F_128N,
ZYDIS_ISA_SET_AVX512F_256,
ZYDIS_ISA_SET_AVX512F_512,
ZYDIS_ISA_SET_AVX512F_KOPW,
ZYDIS_ISA_SET_AVX512F_KOP,
ZYDIS_ISA_SET_AVX512F_SCALAR,
ZYDIS_ISA_SET_AVX512PF_512,
ZYDIS_ISA_SET_AVX512_4FMAPS_512,
Expand Down Expand Up @@ -120,7 +117,6 @@ typedef enum ZydisISASet_
ZYDIS_ISA_SET_CLWB,
ZYDIS_ISA_SET_CLZERO,
ZYDIS_ISA_SET_CMOV,
ZYDIS_ISA_SET_CMPCCXADD,
ZYDIS_ISA_SET_CMPXCHG16B,
ZYDIS_ISA_SET_ENQCMD,
ZYDIS_ISA_SET_F16C,
Expand Down Expand Up @@ -160,8 +156,7 @@ typedef enum ZydisISASet_
ZYDIS_ISA_SET_MONITOR,
ZYDIS_ISA_SET_MONITORX,
ZYDIS_ISA_SET_MOVBE,
ZYDIS_ISA_SET_MOVDIR64B,
ZYDIS_ISA_SET_MOVDIRI,
ZYDIS_ISA_SET_MOVDIR,
ZYDIS_ISA_SET_MPX,
ZYDIS_ISA_SET_MSRLIST,
ZYDIS_ISA_SET_PADLOCK_ACE,
Expand Down
19 changes: 17 additions & 2 deletions include/Zydis/Generated/EnumMnemonic.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ typedef enum ZydisMnemonic_
ZYDIS_MNEMONIC_HSUBPS,
ZYDIS_MNEMONIC_IDIV,
ZYDIS_MNEMONIC_IMUL,
ZYDIS_MNEMONIC_IMULZU,
ZYDIS_MNEMONIC_IN,
ZYDIS_MNEMONIC_INC,
ZYDIS_MNEMONIC_INCSSPD,
Expand Down Expand Up @@ -814,6 +815,22 @@ typedef enum ZydisMnemonic_
ZYDIS_MNEMONIC_SETS,
ZYDIS_MNEMONIC_SETSSBSY,
ZYDIS_MNEMONIC_SETZ,
ZYDIS_MNEMONIC_SETZUB,
ZYDIS_MNEMONIC_SETZUBE,
ZYDIS_MNEMONIC_SETZUL,
ZYDIS_MNEMONIC_SETZULE,
ZYDIS_MNEMONIC_SETZUNB,
ZYDIS_MNEMONIC_SETZUNBE,
ZYDIS_MNEMONIC_SETZUNL,
ZYDIS_MNEMONIC_SETZUNLE,
ZYDIS_MNEMONIC_SETZUNO,
ZYDIS_MNEMONIC_SETZUNP,
ZYDIS_MNEMONIC_SETZUNS,
ZYDIS_MNEMONIC_SETZUNZ,
ZYDIS_MNEMONIC_SETZUO,
ZYDIS_MNEMONIC_SETZUP,
ZYDIS_MNEMONIC_SETZUS,
ZYDIS_MNEMONIC_SETZUZ,
ZYDIS_MNEMONIC_SFENCE,
ZYDIS_MNEMONIC_SGDT,
ZYDIS_MNEMONIC_SHA1MSG1,
Expand Down Expand Up @@ -865,8 +882,6 @@ typedef enum ZydisMnemonic_
ZYDIS_MNEMONIC_SYSEXIT,
ZYDIS_MNEMONIC_SYSRET,
ZYDIS_MNEMONIC_T1MSKC,
ZYDIS_MNEMONIC_TCMMIMFP16PS,
ZYDIS_MNEMONIC_TCMMRLFP16PS,
ZYDIS_MNEMONIC_TDCALL,
ZYDIS_MNEMONIC_TDPBF16PS,
ZYDIS_MNEMONIC_TDPBSSD,
Expand Down
3 changes: 0 additions & 3 deletions src/Decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -5156,9 +5156,6 @@ static ZyanStatus ZydisDecodeInstruction(ZydisDecoderState* state,
case ZYDIS_NODETYPE_FILTER_REX2_PREFIX:
index = !!(instruction->attributes & ZYDIS_ATTRIB_HAS_REX2);
break;
case ZYDIS_NODETYPE_FILTER_MODE_UD0_COMPAT:
index = !!(state->decoder->decoder_mode & (1 << ZYDIS_DECODER_MODE_UD0_COMPAT));
break;
default:
if (node_type & ZYDIS_NODETYPE_DEFINITION_MASK)
{
Expand Down
14,084 changes: 8,833 additions & 5,251 deletions src/Generated/DecoderTables.inc

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Generated/EnumISAExt.inc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ static const char* STR_ISAEXT[] =
"AMD3DNOW",
"AMD3DNOW_PREFETCH",
"AMD_INVLPGB",
"AMX_BF16",
"AMX_FP16",
"AMX_INT8",
"AMX_TILE",
Expand All @@ -31,7 +32,6 @@ static const char* STR_ISAEXT[] =
"CLFSH",
"CLWB",
"CLZERO",
"CMPCCXADD",
"ENQCMD",
"F16C",
"FMA",
Expand Down
11 changes: 3 additions & 8 deletions src/Generated/EnumISASet.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ static const char* STR_ISASET[] =
"AMD3DNOW",
"AMD_INVLPGB",
"AMX_BF16",
"AMX_COMPLEX",
"AMX_FP16",
"AMX_INT8",
"AMX_TILE",
Expand All @@ -20,8 +19,6 @@ static const char* STR_ISASET[] =
"APX_F_CMPCCXADD",
"APX_F_ENQCMD",
"APX_F_INVPCID",
"APX_F_KEYLOCKER",
"APX_F_KEYLOCKER_WIDE",
"APX_F_KOPB",
"APX_F_KOPD",
"APX_F_KOPQ",
Expand All @@ -30,8 +27,8 @@ static const char* STR_ISASET[] =
"APX_F_MOVBE",
"APX_F_MOVDIR64B",
"APX_F_MOVDIRI",
"APX_F_POPCNT",
"APX_F_RAO_INT",
"APX_F_SHA",
"APX_F_USER_MSR",
"APX_F_VMX",
"AVX",
Expand All @@ -57,7 +54,7 @@ static const char* STR_ISASET[] =
"AVX512F_128N",
"AVX512F_256",
"AVX512F_512",
"AVX512F_KOPW",
"AVX512F_KOP",
"AVX512F_SCALAR",
"AVX512PF_512",
"AVX512_4FMAPS_512",
Expand Down Expand Up @@ -117,7 +114,6 @@ static const char* STR_ISASET[] =
"CLWB",
"CLZERO",
"CMOV",
"CMPCCXADD",
"CMPXCHG16B",
"ENQCMD",
"F16C",
Expand Down Expand Up @@ -157,8 +153,7 @@ static const char* STR_ISASET[] =
"MONITOR",
"MONITORX",
"MOVBE",
"MOVDIR64B",
"MOVDIRI",
"MOVDIR",
"MPX",
"MSRLIST",
"PADLOCK_ACE",
Expand Down
19 changes: 17 additions & 2 deletions src/Generated/EnumMnemonic.inc
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ static const ZydisShortString STR_MNEMONIC[] =
ZYDIS_MAKE_SHORTSTRING("hsubps"),
ZYDIS_MAKE_SHORTSTRING("idiv"),
ZYDIS_MAKE_SHORTSTRING("imul"),
ZYDIS_MAKE_SHORTSTRING("imulzu"),
ZYDIS_MAKE_SHORTSTRING("in"),
ZYDIS_MAKE_SHORTSTRING("inc"),
ZYDIS_MAKE_SHORTSTRING("incsspd"),
Expand Down Expand Up @@ -811,6 +812,22 @@ static const ZydisShortString STR_MNEMONIC[] =
ZYDIS_MAKE_SHORTSTRING("sets"),
ZYDIS_MAKE_SHORTSTRING("setssbsy"),
ZYDIS_MAKE_SHORTSTRING("setz"),
ZYDIS_MAKE_SHORTSTRING("setzub"),
ZYDIS_MAKE_SHORTSTRING("setzube"),
ZYDIS_MAKE_SHORTSTRING("setzul"),
ZYDIS_MAKE_SHORTSTRING("setzule"),
ZYDIS_MAKE_SHORTSTRING("setzunb"),
ZYDIS_MAKE_SHORTSTRING("setzunbe"),
ZYDIS_MAKE_SHORTSTRING("setzunl"),
ZYDIS_MAKE_SHORTSTRING("setzunle"),
ZYDIS_MAKE_SHORTSTRING("setzuno"),
ZYDIS_MAKE_SHORTSTRING("setzunp"),
ZYDIS_MAKE_SHORTSTRING("setzuns"),
ZYDIS_MAKE_SHORTSTRING("setzunz"),
ZYDIS_MAKE_SHORTSTRING("setzuo"),
ZYDIS_MAKE_SHORTSTRING("setzup"),
ZYDIS_MAKE_SHORTSTRING("setzus"),
ZYDIS_MAKE_SHORTSTRING("setzuz"),
ZYDIS_MAKE_SHORTSTRING("sfence"),
ZYDIS_MAKE_SHORTSTRING("sgdt"),
ZYDIS_MAKE_SHORTSTRING("sha1msg1"),
Expand Down Expand Up @@ -862,8 +879,6 @@ static const ZydisShortString STR_MNEMONIC[] =
ZYDIS_MAKE_SHORTSTRING("sysexit"),
ZYDIS_MAKE_SHORTSTRING("sysret"),
ZYDIS_MAKE_SHORTSTRING("t1mskc"),
ZYDIS_MAKE_SHORTSTRING("tcmmimfp16ps"),
ZYDIS_MAKE_SHORTSTRING("tcmmrlfp16ps"),
ZYDIS_MAKE_SHORTSTRING("tdcall"),
ZYDIS_MAKE_SHORTSTRING("tdpbf16ps"),
ZYDIS_MAKE_SHORTSTRING("tdpbssd"),
Expand Down
Loading

0 comments on commit 7e0ec6f

Please sign in to comment.