Debian Codegraph @

x86/iflaggen.h

raw
1 /* This file is auto-generated. Don't edit. */
2 #ifndef NASM_IFLAGGEN_H
3 #define NASM_IFLAGGEN_H 1
4
5 #define IF_SM0 0 /* Size match operand 0 */
6 #define IF_SM1 1 /* Size match operand 1 */
7 #define IF_SM2 2 /* Size match operand 2 */
8 #define IF_SM3 3 /* Size match operand 3 */
9 #define IF_SM4 4 /* Size match operand 4 */
10 #define IF_AR0 5 /* SB, SW, SD applies to operand 0 */
11 #define IF_AR1 6 /* SB, SW, SD applies to operand 1 */
12 #define IF_AR2 7 /* SB, SW, SD applies to operand 2 */
13 #define IF_AR3 8 /* SB, SW, SD applies to operand 3 */
14 #define IF_AR4 9 /* SB, SW, SD applies to operand 4 */
15 #define IF_SB 10 /* Unsized operands can't be non-byte */
16 #define IF_SW 11 /* Unsized operands can't be non-word */
17 #define IF_SD 12 /* Unsized operands can't be non-dword */
18 #define IF_SQ 13 /* Unsized operands can't be non-qword */
19 #define IF_ST 14 /* Unsized operands can't be non-tword */
20 #define IF_SO 15 /* Unsized operands can't be non-oword */
21 #define IF_SY 16 /* Unsized operands can't be non-yword */
22 #define IF_SZ 17 /* Unsized operands can't be non-zword */
23 #define IF_NWSIZE 18 /* Operand size defaults to 64 in 64-bit mode */
24 #define IF_OSIZE 19 /* Unsized operands must match the operand size */
25 #define IF_ASIZE 20 /* Unsized operands must match the address size */
26 #define IF_ANYSIZE 21 /* Ignore operand size even if explicit */
27 #define IF_SX 22 /* Unsized operands not allowed */
28 #define IF_SDWORD 23 /* Strict sdword64 matching */
29 #define IF_PSEUDO 24 /* Pseudo-instruction (directive) */
30 #define IF_JMP_RELAX 25 /* Relaxable jump instruction */
31 #define IF_JCC_HINT 26 /* Hintable jump instruction */
32 #define IF_OPT 27 /* Optimizing assembly only */
33 #define IF_LATEVEX 28 /* Only if EVEX instructions are disabled */
34 #define IF_NOREX 29 /* Instruction does not support REX encoding */
35 #define IF_NOAPX 30 /* Instruction does not support APX registers or REX2 */
36 #define IF_NF 31 /* Instruction supports the {nf} prefix */
37 #define IF_NF_R 32 /* Instruction requires the {nf} prefix */
38 #define IF_NF_N 33 /* Instruction doesn't allow the {nf} prefix */
39 #define IF_NF_E 34 /* EVEX.NF set with {nf} prefix */
40 #define IF_ZU 35 /* Instruction supports the {zu} prefix */
41 #define IF_ZU_R 36 /* Instruction requires the {zu} prefix */
42 #define IF_ZU_E 37 /* EVEX.ND set with {zu} prefix */
43 #define IF_LIG 38 /* Ignore VEX/EVEX L field */
44 #define IF_WIG 39 /* Ignore VEX/EVEX W field */
45 #define IF_WW 40 /* VEX/EVEX W is REX.W */
46 #define IF_SIB 41 /* SIB encoding required */
47 #define IF_LOCK 42 /* Lockable if operand 0 is memory */
48 #define IF_LOCK1 43 /* Lockable if operand 1 is memory */
49 #define IF_NOLONG 44 /* Not available in long mode */
50 #define IF_LONG 45 /* Long mode */
51 #define IF_NOHLE 46 /* HLE prefixes forbidden */
52 #define IF_MIB 47 /* split base/index EA */
53 #define IF_BND 48 /* BND (0xF2) prefix available */
54 #define IF_REX2 49 /* REX2 encoding required */
55 #define IF_HLE 50 /* HLE prefixed */
56 #define IF_FL 51 /* Instruction modifies the flags */
57 #define IF_MOPVEC 52 /* M operand is a vector */
58 #define IF_SCC 53 /* EVEX[27:24] is special condition code */
59 #define IF_BESTDIS 54 /* Preferred disassembly pattern */
60 #define IF_DFV 55 /* Destination flag values */
61 /* 55...63 reserved */
62 #define IF_VEX 64 /* VEX or XOP encoded instruction */
63 #define IF_EVEX 65 /* EVEX encoded instruction */
64 #define IF_PRIV 66 /* Privileged instruction */
65 #define IF_SMM 67 /* Only valid in SMM */
66 #define IF_PROT 68 /* Protected mode only */
67 #define IF_UNDOC 69 /* Undocumented */
68 #define IF_FPU 70 /* FPU */
69 #define IF_MMX 71 /* MMX */
70 #define IF_3DNOW 72 /* 3DNow! */
71 #define IF_SSE 73 /* SSE (KNI, MMX2) */
72 #define IF_SSE2 74 /* SSE2 */
73 #define IF_SSE3 75 /* SSE3 (PNI) */
74 #define IF_VMX 76 /* VMX */
75 #define IF_SSSE3 77 /* SSSE3 */
76 #define IF_SSE4A 78 /* AMD SSE4a */
77 #define IF_SSE41 79 /* SSE4.1 */
78 #define IF_SSE42 80 /* SSE4.2 */
79 #define IF_SSE5 81 /* SSE5 */
80 #define IF_AVX 82 /* AVX (256-bit floating point) */
81 #define IF_AVX2 83 /* AVX2 (256-bit integer) */
82 #define IF_FMA 84 /* Fused multiply-add */
83 #define IF_BMI1 85 /* Bit manipulation instructions 1 */
84 #define IF_BMI2 86 /* Bit manipulation instructions 2 */
85 #define IF_TBM 87 /* */
86 #define IF_RTM 88 /* */
87 #define IF_AVX512 89 /* AVX-512 */
88 #define IF_AVX512F 90 /* AVX-512F (base architecture) */
89 #define IF_AVX512CD 91 /* AVX-512 Conflict Detection */
90 #define IF_AVX512ER 92 /* AVX-512 Exponential and Reciprocal */
91 #define IF_AVX512PF 93 /* AVX-512 Prefetch */
92 #define IF_MPX 94 /* MPX */
93 #define IF_SHA 95 /* SHA */
94 #define IF_AVX512VL 96 /* AVX-512 Vector Length Orthogonality */
95 #define IF_AVX512DQ 97 /* AVX-512 Dword and Qword */
96 #define IF_AVX512BW 98 /* AVX-512 Byte and Word */
97 #define IF_AVX512IFMA 99 /* AVX-512 IFMA instructions */
98 #define IF_AVX512VBMI 100 /* AVX-512 VBMI instructions */
99 #define IF_AES 101 /* AES instructions */
100 #define IF_VAES 102 /* AES AVX instructions */
101 #define IF_VPCLMULQDQ 103 /* AVX Carryless Multiplication */
102 #define IF_GFNI 104 /* Galois Field instructions */
103 #define IF_AVX512VBMI2 105 /* AVX-512 VBMI2 instructions */
104 #define IF_AVX512VNNI 106 /* AVX-512 VNNI instructions */
105 #define IF_AVX512BITALG 107 /* AVX-512 Bit Algorithm instructions */
106 #define IF_AVX512VPOPCNTDQ 108 /* AVX-512 VPOPCNTD/VPOPCNTQ */
107 #define IF_AVX5124FMAPS 109 /* AVX-512 4-iteration multiply-add */
108 #define IF_AVX5124VNNIW 110 /* AVX-512 4-iteration dot product */
109 #define IF_AVX512FP16 111 /* AVX-512 FP16 instructions */
110 #define IF_F16C 112 /* F16C instructions */
111 #define IF_SGX 113 /* Intel Software Guard Extensions (SGX) */
112 #define IF_CET 114 /* Intel Control-Flow Enforcement Technology (CET) */
113 #define IF_ENQCMD 115 /* Enqueue command instructions */
114 #define IF_TSXLDTRK 116 /* TSX suspend load address tracking */
115 #define IF_AVX512BF16 117 /* AVX-512 bfloat16 */
116 #define IF_AVX512VP2INTERSECT 118 /* AVX-512 VP2INTERSECT instructions */
117 #define IF_AMXTILE 119 /* AMX tile configuration instructions */
118 #define IF_AMXBF16 120 /* AMX bfloat16 multiplication */
119 #define IF_AMXFP16 121 /* AMX FP16 multiplication */
120 #define IF_AMXFP8 122 /* AMX FP8 instructions */
121 #define IF_AMXTF32 123 /* AMX TF32 multiplication */
122 #define IF_AMXINT8 124 /* AMX 8-bit integer multiplication */
123 #define IF_AMXCOMPLEX 125 /* AMX float16 complex multiplication */
124 #define IF_AMXAVX512 126 /* EVEX zmm<-tmm conversion instructions */
125 #define IF_AMXMOVRS 127 /* AMX loads with MOVRS hint */
126 #define IF_AMXTRANSPOSE 128 /* AMX transpose instructions */
127 #define IF_FRED 129 /* Flexible Return and Exception Delivery (FRED) */
128 #define IF_RAOINT 130 /* Remote atomic operations (RAO-INT) */
129 #define IF_UINTR 131 /* User interrupts */
130 #define IF_CMPCCXADD 132 /* CMPccXADD instructions */
131 #define IF_PREFETCHI 133 /* PREFETCHI0 and PREFETCHI1 */
132 #define IF_MSRLIST 134 /* RDMSRLIST and WRMSRLIST */
133 #define IF_AVXNECONVERT 135 /* AVX exceptionless floating-point conversions */
134 #define IF_AVXVNNI 136 /* AVX Vector Neural Network instructions */
135 #define IF_AVXVNNIINT8 137 /* AVX Vector Neural Network 8-bit integer instructions */
136 #define IF_AVXVNNIINT16 138 /* AVX Vector Neural Network 16-bit integer instructions */
137 #define IF_AVXIFMA 139 /* AVX integer multiply and add */
138 #define IF_HRESET 140 /* History reset */
139 #define IF_SMAP 141 /* Supervisor Mode Access Prevention (SMAP) */
140 #define IF_SHA512 142 /* SHA512 instructions */
141 #define IF_HSM3 143 /* SM3 hash instructions */
142 #define IF_HSM4 144 /* SM4 hash instructions */
143 #define IF_APX 145 /* Advanced Performance Extensions (APX) */
144 #define IF_AVX10_1 146 /* AVX 10.1 instructions */
145 #define IF_AVX10_2 147 /* AVX 10.2 instructions */
146 #define IF_AVX10_VNNIINT 148 /* AVX Vector Neural Network integer instructions */
147 #define IF_ADX 149 /* ADCX and ADOX instructions */
148 #define IF_PKU 150 /* Protection key for user mode */
149 #define IF_MONITOR 151 /* MONITOR and MWAIT */
150 #define IF_MONITORX 152 /* MONITORX and MWAITX */
151 #define IF_WAITPKG 153 /* User wait instruction package */
152 #define IF_MSR_IMM 154 /* Immediate RDMSR/WRMSRNS instructions */
153 #define IF_AESKLE 155 /* AES key locker */
154 #define IF_AESKLEWIDE_KL 156 /* AES wide key locker */
155 #define IF_INVPCID 157 /* INVPCID instruction */
156 #define IF_PREFETCHWT1 158 /* PREFETCHWT1 instruction */
157 #define IF_PBNDKB 159 /* PBNDKB instruction */
158 #define IF_PCONFIG 160 /* PCONFIG instruction */
159 #define IF_WBNOINVD 161 /* WBNOINVD instruction */
160 #define IF_SERIALIZE 162 /* SERIALIZE instruction */
161 #define IF_LKGS 163 /* LKGS instruction */
162 #define IF_WRMSRNS 164 /* WRMSRNS instruction */
163 #define IF_CLFLUSHOPT 165 /* CLFLUSHOPT instruction */
164 #define IF_CLWB 166 /* CLWB instruction */
165 #define IF_RDRAND 167 /* RDRAND instruction */
166 #define IF_RDSEED 168 /* RDSEED instruction */
167 #define IF_RDPID 169 /* RDPID instruction */
168 #define IF_LZCNT 170 /* LZCNT instruction */
169 #define IF_PTWRITE 171 /* PTWRITE instruction */
170 #define IF_CLDEMOTE 172 /* CLDEMOTE instruction */
171 #define IF_MOVDIRI 173 /* MOVDIRI instruction */
172 #define IF_MOVDIR64B 174 /* MOVDIR64B instruction */
173 #define IF_CLZERO 175 /* CLZERO instruction */
174 #define IF_MOVBE 176 /* MOVBE instruction */
175 #define IF_MOVRS 177 /* MOVRS instruction */
176 #define IF_OBSOLETE 178 /* Instruction removed from architecture */
177 #define IF_NEVER 179 /* Instruction never implemented */
178 #define IF_NOP 180 /* Instruction is always a (nonintentional) NOP */
179 /* 180...191 reserved */
180 #define IF_8086 192 /* 8086 */
181 #define IF_186 193 /* 186+ */
182 #define IF_286 194 /* 286+ */
183 #define IF_386 195 /* 386+ */
184 #define IF_486 196 /* 486+ */
185 #define IF_PENT 197 /* Pentium */
186 #define IF_P6 198 /* P6 */
187 #define IF_KATMAI 199 /* Katmai */
188 #define IF_WILLAMETTE 200 /* Willamette */
189 #define IF_PRESCOTT 201 /* Prescott */
190 #define IF_IA64 202 /* IA64 (in x86 mode) */
191 #define IF_X86_64 203 /* x86-64 (long or legacy mode) */
192 #define IF_NEHALEM 204 /* Nehalem */
193 #define IF_WESTMERE 205 /* Westmere */
194 #define IF_SANDYBRIDGE 206 /* Sandy Bridge */
195 #define IF_FUTURE 207 /* Ivy Bridge or newer */
196 #define IF_DEFAULT 208 /* Default CPU level */
197 #define IF_ANY 209 /* Allow any known instruction */
198 #define IF_CYRIX 210 /* Cyrix-specific */
199 #define IF_AMD 211 /* AMD-specific */
200 /* 211...223 reserved */
201
202 /* Mask bits for field 0 : 0...31 */
203 #define IFM_SM0 UINT32_C(0x00000001) /* 0 */
204 #define IFM_SM1 UINT32_C(0x00000002) /* 1 */
205 #define IFM_SM2 UINT32_C(0x00000004) /* 2 */
206 #define IFM_SM3 UINT32_C(0x00000008) /* 3 */
207 #define IFM_SM4 UINT32_C(0x00000010) /* 4 */
208 #define IFM_AR0 UINT32_C(0x00000020) /* 5 */
209 #define IFM_AR1 UINT32_C(0x00000040) /* 6 */
210 #define IFM_AR2 UINT32_C(0x00000080) /* 7 */
211 #define IFM_AR3 UINT32_C(0x00000100) /* 8 */
212 #define IFM_AR4 UINT32_C(0x00000200) /* 9 */
213 #define IFM_SB UINT32_C(0x00000400) /* 10 */
214 #define IFM_SW UINT32_C(0x00000800) /* 11 */
215 #define IFM_SD UINT32_C(0x00001000) /* 12 */
216 #define IFM_SQ UINT32_C(0x00002000) /* 13 */
217 #define IFM_ST UINT32_C(0x00004000) /* 14 */
218 #define IFM_SO UINT32_C(0x00008000) /* 15 */
219 #define IFM_SY UINT32_C(0x00010000) /* 16 */
220 #define IFM_SZ UINT32_C(0x00020000) /* 17 */
221 #define IFM_NWSIZE UINT32_C(0x00040000) /* 18 */
222 #define IFM_OSIZE UINT32_C(0x00080000) /* 19 */
223 #define IFM_ASIZE UINT32_C(0x00100000) /* 20 */
224 #define IFM_ANYSIZE UINT32_C(0x00200000) /* 21 */
225 #define IFM_SX UINT32_C(0x00400000) /* 22 */
226 #define IFM_SDWORD UINT32_C(0x00800000) /* 23 */
227 #define IFM_PSEUDO UINT32_C(0x01000000) /* 24 */
228 #define IFM_JMP_RELAX UINT32_C(0x02000000) /* 25 */
229 #define IFM_JCC_HINT UINT32_C(0x04000000) /* 26 */
230 #define IFM_OPT UINT32_C(0x08000000) /* 27 */
231 #define IFM_LATEVEX UINT32_C(0x10000000) /* 28 */
232 #define IFM_NOREX UINT32_C(0x20000000) /* 29 */
233 #define IFM_NOAPX UINT32_C(0x40000000) /* 30 */
234 #define IFM_NF UINT32_C(0x80000000) /* 31 */
235 /* Mask bits for field 1 : 32...63 */
236 #define IFM_NF_R UINT32_C(0x00000001) /* 32 */
237 #define IFM_NF_N UINT32_C(0x00000002) /* 33 */
238 #define IFM_NF_E UINT32_C(0x00000004) /* 34 */
239 #define IFM_ZU UINT32_C(0x00000008) /* 35 */
240 #define IFM_ZU_R UINT32_C(0x00000010) /* 36 */
241 #define IFM_ZU_E UINT32_C(0x00000020) /* 37 */
242 #define IFM_LIG UINT32_C(0x00000040) /* 38 */
243 #define IFM_WIG UINT32_C(0x00000080) /* 39 */
244 #define IFM_WW UINT32_C(0x00000100) /* 40 */
245 #define IFM_SIB UINT32_C(0x00000200) /* 41 */
246 #define IFM_LOCK UINT32_C(0x00000400) /* 42 */
247 #define IFM_LOCK1 UINT32_C(0x00000800) /* 43 */
248 #define IFM_NOLONG UINT32_C(0x00001000) /* 44 */
249 #define IFM_LONG UINT32_C(0x00002000) /* 45 */
250 #define IFM_NOHLE UINT32_C(0x00004000) /* 46 */
251 #define IFM_MIB UINT32_C(0x00008000) /* 47 */
252 #define IFM_BND UINT32_C(0x00010000) /* 48 */
253 #define IFM_REX2 UINT32_C(0x00020000) /* 49 */
254 #define IFM_HLE UINT32_C(0x00040000) /* 50 */
255 #define IFM_FL UINT32_C(0x00080000) /* 51 */
256 #define IFM_MOPVEC UINT32_C(0x00100000) /* 52 */
257 #define IFM_SCC UINT32_C(0x00200000) /* 53 */
258 #define IFM_BESTDIS UINT32_C(0x00400000) /* 54 */
259 #define IFM_DFV UINT32_C(0x00800000) /* 55 */
260 /* Mask bits for field 2 : 64...95 */
261 #define IFM_VEX UINT32_C(0x00000001) /* 64 */
262 #define IFM_EVEX UINT32_C(0x00000002) /* 65 */
263 #define IFM_PRIV UINT32_C(0x00000004) /* 66 */
264 #define IFM_SMM UINT32_C(0x00000008) /* 67 */
265 #define IFM_PROT UINT32_C(0x00000010) /* 68 */
266 #define IFM_UNDOC UINT32_C(0x00000020) /* 69 */
267 #define IFM_FPU UINT32_C(0x00000040) /* 70 */
268 #define IFM_MMX UINT32_C(0x00000080) /* 71 */
269 #define IFM_3DNOW UINT32_C(0x00000100) /* 72 */
270 #define IFM_SSE UINT32_C(0x00000200) /* 73 */
271 #define IFM_SSE2 UINT32_C(0x00000400) /* 74 */
272 #define IFM_SSE3 UINT32_C(0x00000800) /* 75 */
273 #define IFM_VMX UINT32_C(0x00001000) /* 76 */
274 #define IFM_SSSE3 UINT32_C(0x00002000) /* 77 */
275 #define IFM_SSE4A UINT32_C(0x00004000) /* 78 */
276 #define IFM_SSE41 UINT32_C(0x00008000) /* 79 */
277 #define IFM_SSE42 UINT32_C(0x00010000) /* 80 */
278 #define IFM_SSE5 UINT32_C(0x00020000) /* 81 */
279 #define IFM_AVX UINT32_C(0x00040000) /* 82 */
280 #define IFM_AVX2 UINT32_C(0x00080000) /* 83 */
281 #define IFM_FMA UINT32_C(0x00100000) /* 84 */
282 #define IFM_BMI1 UINT32_C(0x00200000) /* 85 */
283 #define IFM_BMI2 UINT32_C(0x00400000) /* 86 */
284 #define IFM_TBM UINT32_C(0x00800000) /* 87 */
285 #define IFM_RTM UINT32_C(0x01000000) /* 88 */
286 #define IFM_AVX512 UINT32_C(0x02000000) /* 89 */
287 #define IFM_AVX512F UINT32_C(0x04000000) /* 90 */
288 #define IFM_AVX512CD UINT32_C(0x08000000) /* 91 */
289 #define IFM_AVX512ER UINT32_C(0x10000000) /* 92 */
290 #define IFM_AVX512PF UINT32_C(0x20000000) /* 93 */
291 #define IFM_MPX UINT32_C(0x40000000) /* 94 */
292 #define IFM_SHA UINT32_C(0x80000000) /* 95 */
293 /* Mask bits for field 3 : 96...127 */
294 #define IFM_AVX512VL UINT32_C(0x00000001) /* 96 */
295 #define IFM_AVX512DQ UINT32_C(0x00000002) /* 97 */
296 #define IFM_AVX512BW UINT32_C(0x00000004) /* 98 */
297 #define IFM_AVX512IFMA UINT32_C(0x00000008) /* 99 */
298 #define IFM_AVX512VBMI UINT32_C(0x00000010) /* 100 */
299 #define IFM_AES UINT32_C(0x00000020) /* 101 */
300 #define IFM_VAES UINT32_C(0x00000040) /* 102 */
301 #define IFM_VPCLMULQDQ UINT32_C(0x00000080) /* 103 */
302 #define IFM_GFNI UINT32_C(0x00000100) /* 104 */
303 #define IFM_AVX512VBMI2 UINT32_C(0x00000200) /* 105 */
304 #define IFM_AVX512VNNI UINT32_C(0x00000400) /* 106 */
305 #define IFM_AVX512BITALG UINT32_C(0x00000800) /* 107 */
306 #define IFM_AVX512VPOPCNTDQ UINT32_C(0x00001000) /* 108 */
307 #define IFM_AVX5124FMAPS UINT32_C(0x00002000) /* 109 */
308 #define IFM_AVX5124VNNIW UINT32_C(0x00004000) /* 110 */
309 #define IFM_AVX512FP16 UINT32_C(0x00008000) /* 111 */
310 #define IFM_F16C UINT32_C(0x00010000) /* 112 */
311 #define IFM_SGX UINT32_C(0x00020000) /* 113 */
312 #define IFM_CET UINT32_C(0x00040000) /* 114 */
313 #define IFM_ENQCMD UINT32_C(0x00080000) /* 115 */
314 #define IFM_TSXLDTRK UINT32_C(0x00100000) /* 116 */
315 #define IFM_AVX512BF16 UINT32_C(0x00200000) /* 117 */
316 #define IFM_AVX512VP2INTERSECT UINT32_C(0x00400000) /* 118 */
317 #define IFM_AMXTILE UINT32_C(0x00800000) /* 119 */
318 #define IFM_AMXBF16 UINT32_C(0x01000000) /* 120 */
319 #define IFM_AMXFP16 UINT32_C(0x02000000) /* 121 */
320 #define IFM_AMXFP8 UINT32_C(0x04000000) /* 122 */
321 #define IFM_AMXTF32 UINT32_C(0x08000000) /* 123 */
322 #define IFM_AMXINT8 UINT32_C(0x10000000) /* 124 */
323 #define IFM_AMXCOMPLEX UINT32_C(0x20000000) /* 125 */
324 #define IFM_AMXAVX512 UINT32_C(0x40000000) /* 126 */
325 #define IFM_AMXMOVRS UINT32_C(0x80000000) /* 127 */
326 /* Mask bits for field 4 : 128...159 */
327 #define IFM_AMXTRANSPOSE UINT32_C(0x00000001) /* 128 */
328 #define IFM_FRED UINT32_C(0x00000002) /* 129 */
329 #define IFM_RAOINT UINT32_C(0x00000004) /* 130 */
330 #define IFM_UINTR UINT32_C(0x00000008) /* 131 */
331 #define IFM_CMPCCXADD UINT32_C(0x00000010) /* 132 */
332 #define IFM_PREFETCHI UINT32_C(0x00000020) /* 133 */
333 #define IFM_MSRLIST UINT32_C(0x00000040) /* 134 */
334 #define IFM_AVXNECONVERT UINT32_C(0x00000080) /* 135 */
335 #define IFM_AVXVNNI UINT32_C(0x00000100) /* 136 */
336 #define IFM_AVXVNNIINT8 UINT32_C(0x00000200) /* 137 */
337 #define IFM_AVXVNNIINT16 UINT32_C(0x00000400) /* 138 */
338 #define IFM_AVXIFMA UINT32_C(0x00000800) /* 139 */
339 #define IFM_HRESET UINT32_C(0x00001000) /* 140 */
340 #define IFM_SMAP UINT32_C(0x00002000) /* 141 */
341 #define IFM_SHA512 UINT32_C(0x00004000) /* 142 */
342 #define IFM_HSM3 UINT32_C(0x00008000) /* 143 */
343 #define IFM_HSM4 UINT32_C(0x00010000) /* 144 */
344 #define IFM_APX UINT32_C(0x00020000) /* 145 */
345 #define IFM_AVX10_1 UINT32_C(0x00040000) /* 146 */
346 #define IFM_AVX10_2 UINT32_C(0x00080000) /* 147 */
347 #define IFM_AVX10_VNNIINT UINT32_C(0x00100000) /* 148 */
348 #define IFM_ADX UINT32_C(0x00200000) /* 149 */
349 #define IFM_PKU UINT32_C(0x00400000) /* 150 */
350 #define IFM_MONITOR UINT32_C(0x00800000) /* 151 */
351 #define IFM_MONITORX UINT32_C(0x01000000) /* 152 */
352 #define IFM_WAITPKG UINT32_C(0x02000000) /* 153 */
353 #define IFM_MSR_IMM UINT32_C(0x04000000) /* 154 */
354 #define IFM_AESKLE UINT32_C(0x08000000) /* 155 */
355 #define IFM_AESKLEWIDE_KL UINT32_C(0x10000000) /* 156 */
356 #define IFM_INVPCID UINT32_C(0x20000000) /* 157 */
357 #define IFM_PREFETCHWT1 UINT32_C(0x40000000) /* 158 */
358 #define IFM_PBNDKB UINT32_C(0x80000000) /* 159 */
359 /* Mask bits for field 5 : 160...191 */
360 #define IFM_PCONFIG UINT32_C(0x00000001) /* 160 */
361 #define IFM_WBNOINVD UINT32_C(0x00000002) /* 161 */
362 #define IFM_SERIALIZE UINT32_C(0x00000004) /* 162 */
363 #define IFM_LKGS UINT32_C(0x00000008) /* 163 */
364 #define IFM_WRMSRNS UINT32_C(0x00000010) /* 164 */
365 #define IFM_CLFLUSHOPT UINT32_C(0x00000020) /* 165 */
366 #define IFM_CLWB UINT32_C(0x00000040) /* 166 */
367 #define IFM_RDRAND UINT32_C(0x00000080) /* 167 */
368 #define IFM_RDSEED UINT32_C(0x00000100) /* 168 */
369 #define IFM_RDPID UINT32_C(0x00000200) /* 169 */
370 #define IFM_LZCNT UINT32_C(0x00000400) /* 170 */
371 #define IFM_PTWRITE UINT32_C(0x00000800) /* 171 */
372 #define IFM_CLDEMOTE UINT32_C(0x00001000) /* 172 */
373 #define IFM_MOVDIRI UINT32_C(0x00002000) /* 173 */
374 #define IFM_MOVDIR64B UINT32_C(0x00004000) /* 174 */
375 #define IFM_CLZERO UINT32_C(0x00008000) /* 175 */
376 #define IFM_MOVBE UINT32_C(0x00010000) /* 176 */
377 #define IFM_MOVRS UINT32_C(0x00020000) /* 177 */
378 #define IFM_OBSOLETE UINT32_C(0x00040000) /* 178 */
379 #define IFM_NEVER UINT32_C(0x00080000) /* 179 */
380 #define IFM_NOP UINT32_C(0x00100000) /* 180 */
381 /* Mask bits for field 6 : 192...223 */
382 #define IFM_8086 UINT32_C(0x00000001) /* 192 */
383 #define IFM_186 UINT32_C(0x00000002) /* 193 */
384 #define IFM_286 UINT32_C(0x00000004) /* 194 */
385 #define IFM_386 UINT32_C(0x00000008) /* 195 */
386 #define IFM_486 UINT32_C(0x00000010) /* 196 */
387 #define IFM_PENT UINT32_C(0x00000020) /* 197 */
388 #define IFM_P6 UINT32_C(0x00000040) /* 198 */
389 #define IFM_KATMAI UINT32_C(0x00000080) /* 199 */
390 #define IFM_WILLAMETTE UINT32_C(0x00000100) /* 200 */
391 #define IFM_PRESCOTT UINT32_C(0x00000200) /* 201 */
392 #define IFM_IA64 UINT32_C(0x00000400) /* 202 */
393 #define IFM_X86_64 UINT32_C(0x00000800) /* 203 */
394 #define IFM_NEHALEM UINT32_C(0x00001000) /* 204 */
395 #define IFM_WESTMERE UINT32_C(0x00002000) /* 205 */
396 #define IFM_SANDYBRIDGE UINT32_C(0x00004000) /* 206 */
397 #define IFM_FUTURE UINT32_C(0x00008000) /* 207 */
398 #define IFM_DEFAULT UINT32_C(0x00010000) /* 208 */
399 #define IFM_ANY UINT32_C(0x00020000) /* 209 */
400 #define IFM_CYRIX UINT32_C(0x00040000) /* 210 */
401 #define IFM_AMD UINT32_C(0x00080000) /* 211 */
402
403 /* IF_SM0 (0) ... IF_DFV (55) */
404 #define IF_IGEN_FIRST 0
405 #define IF_IGEN_COUNT 56
406 #define IF_IGEN_FIELD 0
407 #define IF_IGEN_NFIELDS 2
408
409 /* IF_VEX (64) ... IF_NOP (180) */
410 #define IF_FEATURE_FIRST 64
411 #define IF_FEATURE_COUNT 117
412 #define IF_FEATURE_FIELD 2
413 #define IF_FEATURE_NFIELDS 4
414
415 /* IF_8086 (192) ... IF_AMD (211) */
416 #define IF_CPU_FIRST 192
417 #define IF_CPU_COUNT 20
418 #define IF_CPU_FIELD 6
419 #define IF_CPU_NFIELDS 1
420
421 #define IF_FIELD_COUNT 7
422 typedef struct {
423 uint32_t field[IF_FIELD_COUNT];
424 } iflag_t;
425
426 /* All combinations of instruction flags used in instruction patterns */
427 extern const iflag_t insns_flags[655];
428
429 #endif /* NASM_IFLAGGEN_H */