iflaggen.h 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /* This file is auto-generated. Don't edit. */
  2. #ifndef NASM_IFLAGGEN_H
  3. #define NASM_IFLAGGEN_H 1
  4. #define IF_SM 0 /* Size match */
  5. #define IF_SM2 1 /* Size match first two operands */
  6. #define IF_SB 2 /* Unsized operands can't be non-byte */
  7. #define IF_SW 3 /* Unsized operands can't be non-word */
  8. #define IF_SD 4 /* Unsized operands can't be non-dword */
  9. #define IF_SQ 5 /* Unsized operands can't be non-qword */
  10. #define IF_SO 6 /* Unsized operands can't be non-oword */
  11. #define IF_SY 7 /* Unsized operands can't be non-yword */
  12. #define IF_SZ 8 /* Unsized operands can't be non-zword */
  13. #define IF_SIZE 9 /* Unsized operands must match the bitsize */
  14. #define IF_SX 10 /* Unsized operands not allowed */
  15. #define IF_AR0 11 /* SB, SW, SD applies to argument 0 */
  16. #define IF_AR1 12 /* SB, SW, SD applies to argument 1 */
  17. #define IF_AR2 13 /* SB, SW, SD applies to argument 2 */
  18. #define IF_AR3 14 /* SB, SW, SD applies to argument 3 */
  19. #define IF_AR4 15 /* SB, SW, SD applies to argument 4 */
  20. #define IF_OPT 16 /* Optimizing assembly only */
  21. /* 17...31 unused */
  22. #define IF_PRIV 32 /* Privileged instruction */
  23. #define IF_SMM 33 /* Only valid in SMM */
  24. #define IF_PROT 34 /* Protected mode only */
  25. #define IF_LOCK 35 /* Lockable if operand 0 is memory */
  26. #define IF_NOLONG 36 /* Not available in long mode */
  27. #define IF_LONG 37 /* Long mode */
  28. #define IF_NOHLE 38 /* HLE prefixes forbidden */
  29. #define IF_MIB 39 /* disassemble with split EA */
  30. #define IF_BND 40 /* BND (0xF2) prefix available */
  31. #define IF_UNDOC 41 /* Undocumented */
  32. #define IF_HLE 42 /* HLE prefixed */
  33. #define IF_FPU 43 /* FPU */
  34. #define IF_MMX 44 /* MMX */
  35. #define IF_3DNOW 45 /* 3DNow! */
  36. #define IF_SSE 46 /* SSE (KNI, MMX2) */
  37. #define IF_SSE2 47 /* SSE2 */
  38. #define IF_SSE3 48 /* SSE3 (PNI) */
  39. #define IF_VMX 49 /* VMX */
  40. #define IF_SSSE3 50 /* SSSE3 */
  41. #define IF_SSE4A 51 /* AMD SSE4a */
  42. #define IF_SSE41 52 /* SSE4.1 */
  43. #define IF_SSE42 53 /* SSE4.2 */
  44. #define IF_SSE5 54 /* SSE5 */
  45. #define IF_AVX 55 /* AVX (256-bit floating point) */
  46. #define IF_AVX2 56 /* AVX2 (256-bit integer) */
  47. #define IF_FMA 57 /* */
  48. #define IF_BMI1 58 /* */
  49. #define IF_BMI2 59 /* */
  50. #define IF_TBM 60 /* */
  51. #define IF_RTM 61 /* */
  52. #define IF_INVPCID 62 /* */
  53. #define IF_AVX512 63 /* AVX-512F (512-bit base architecture) */
  54. #define IF_AVX512CD 64 /* AVX-512 Conflict Detection */
  55. #define IF_AVX512ER 65 /* AVX-512 Exponential and Reciprocal */
  56. #define IF_AVX512PF 66 /* AVX-512 Prefetch */
  57. #define IF_MPX 67 /* MPX */
  58. #define IF_SHA 68 /* SHA */
  59. #define IF_PREFETCHWT1 69 /* PREFETCHWT1 */
  60. #define IF_AVX512VL 70 /* AVX-512 Vector Length Orthogonality */
  61. #define IF_AVX512DQ 71 /* AVX-512 Dword and Qword */
  62. #define IF_AVX512BW 72 /* AVX-512 Byte and Word */
  63. #define IF_AVX512IFMA 73 /* AVX-512 IFMA instructions */
  64. #define IF_AVX512VBMI 74 /* AVX-512 VBMI instructions */
  65. #define IF_AES 75 /* AES instructions */
  66. #define IF_VAES 76 /* AES AVX instructions */
  67. #define IF_VPCLMULQDQ 77 /* AVX Carryless Multiplication */
  68. #define IF_GFNI 78 /* Galois Field instructions */
  69. #define IF_AVX512VBMI2 79 /* AVX-512 VBMI2 instructions */
  70. #define IF_AVX512VNNI 80 /* AVX-512 VNNI instructions */
  71. #define IF_AVX512BITALG 81 /* AVX-512 Bit Algorithm instructions */
  72. #define IF_AVX512VPOPCNTDQ 82 /* AVX-512 VPOPCNTD/VPOPCNTQ */
  73. #define IF_AVX5124FMAPS 83 /* AVX-512 4-iteration multiply-add */
  74. #define IF_AVX5124VNNIW 84 /* AVX-512 4-iteration dot product */
  75. #define IF_SGX 85 /* Intel Software Guard Extensions (SGX) */
  76. #define IF_OBSOLETE 86 /* Instruction removed from architecture */
  77. #define IF_VEX 87 /* VEX or XOP encoded instruction */
  78. #define IF_EVEX 88 /* EVEX encoded instruction */
  79. /* 89...95 unused */
  80. #define IF_8086 96 /* 8086 */
  81. #define IF_186 97 /* 186+ */
  82. #define IF_286 98 /* 286+ */
  83. #define IF_386 99 /* 386+ */
  84. #define IF_486 100 /* 486+ */
  85. #define IF_PENT 101 /* Pentium */
  86. #define IF_P6 102 /* P6 */
  87. #define IF_KATMAI 103 /* Katmai */
  88. #define IF_WILLAMETTE 104 /* Willamette */
  89. #define IF_PRESCOTT 105 /* Prescott */
  90. #define IF_X86_64 106 /* x86-64 (long or legacy mode) */
  91. #define IF_NEHALEM 107 /* Nehalem */
  92. #define IF_WESTMERE 108 /* Westmere */
  93. #define IF_SANDYBRIDGE 109 /* Sandy Bridge */
  94. #define IF_FUTURE 110 /* Future processor (not yet disclosed) */
  95. #define IF_IA64 111 /* IA64 (in x86 mode) */
  96. #define IF_CYRIX 112 /* Cyrix-specific */
  97. #define IF_AMD 113 /* AMD-specific */
  98. #define IF_FIELD_COUNT 4
  99. typedef struct {
  100. uint32_t field[IF_FIELD_COUNT];
  101. } iflag_t;
  102. extern const iflag_t insns_flags[263];
  103. #endif /* NASM_IFLAGGEN_H */