Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* Print i386 instructions for GDB, the GNU debugger. |
2571583a | 2 | Copyright (C) 1988-2017 Free Software Foundation, Inc. |
252b5132 | 3 | |
9b201bb5 | 4 | This file is part of the GNU opcodes library. |
20f0a1fc | 5 | |
9b201bb5 | 6 | This library is free software; you can redistribute it and/or modify |
20f0a1fc | 7 | it under the terms of the GNU General Public License as published by |
9b201bb5 NC |
8 | the Free Software Foundation; either version 3, or (at your option) |
9 | any later version. | |
20f0a1fc | 10 | |
9b201bb5 NC |
11 | It is distributed in the hope that it will be useful, but WITHOUT |
12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
13 | or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
14 | License for more details. | |
20f0a1fc NC |
15 | |
16 | You should have received a copy of the GNU General Public License | |
17 | along with this program; if not, write to the Free Software | |
9b201bb5 NC |
18 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
19 | MA 02110-1301, USA. */ | |
20 | ||
20f0a1fc NC |
21 | |
22 | /* 80386 instruction printer by Pace Willisson (pace@prep.ai.mit.edu) | |
23 | July 1988 | |
24 | modified by John Hassey (hassey@dg-rtp.dg.com) | |
25 | x86-64 support added by Jan Hubicka (jh@suse.cz) | |
26 | VIA PadLock support by Michal Ludvig (mludvig@suse.cz). */ | |
27 | ||
28 | /* The main tables describing the instructions is essentially a copy | |
29 | of the "Opcode Map" chapter (Appendix A) of the Intel 80386 | |
30 | Programmers Manual. Usually, there is a capital letter, followed | |
31 | by a small letter. The capital letter tell the addressing mode, | |
32 | and the small letter tells about the operand size. Refer to | |
33 | the Intel manual for details. */ | |
252b5132 | 34 | |
252b5132 | 35 | #include "sysdep.h" |
88c1242d | 36 | #include "disassemble.h" |
252b5132 | 37 | #include "opintl.h" |
0b1cf022 | 38 | #include "opcode/i386.h" |
85f10a01 | 39 | #include "libiberty.h" |
252b5132 RH |
40 | |
41 | #include <setjmp.h> | |
42 | ||
26ca5450 AJ |
43 | static int print_insn (bfd_vma, disassemble_info *); |
44 | static void dofloat (int); | |
45 | static void OP_ST (int, int); | |
46 | static void OP_STi (int, int); | |
47 | static int putop (const char *, int); | |
48 | static void oappend (const char *); | |
49 | static void append_seg (void); | |
50 | static void OP_indirE (int, int); | |
51 | static void print_operand_value (char *, int, bfd_vma); | |
c0f3af97 | 52 | static void OP_E_register (int, int); |
c1e679ec | 53 | static void OP_E_memory (int, int); |
5d669648 | 54 | static void print_displacement (char *, bfd_vma); |
26ca5450 AJ |
55 | static void OP_E (int, int); |
56 | static void OP_G (int, int); | |
57 | static bfd_vma get64 (void); | |
58 | static bfd_signed_vma get32 (void); | |
59 | static bfd_signed_vma get32s (void); | |
60 | static int get16 (void); | |
61 | static void set_op (bfd_vma, int); | |
b844680a | 62 | static void OP_Skip_MODRM (int, int); |
26ca5450 AJ |
63 | static void OP_REG (int, int); |
64 | static void OP_IMREG (int, int); | |
65 | static void OP_I (int, int); | |
66 | static void OP_I64 (int, int); | |
67 | static void OP_sI (int, int); | |
68 | static void OP_J (int, int); | |
69 | static void OP_SEG (int, int); | |
70 | static void OP_DIR (int, int); | |
71 | static void OP_OFF (int, int); | |
72 | static void OP_OFF64 (int, int); | |
73 | static void ptr_reg (int, int); | |
74 | static void OP_ESreg (int, int); | |
75 | static void OP_DSreg (int, int); | |
76 | static void OP_C (int, int); | |
77 | static void OP_D (int, int); | |
78 | static void OP_T (int, int); | |
6f74c397 | 79 | static void OP_R (int, int); |
26ca5450 AJ |
80 | static void OP_MMX (int, int); |
81 | static void OP_XMM (int, int); | |
82 | static void OP_EM (int, int); | |
83 | static void OP_EX (int, int); | |
4d9567e0 MM |
84 | static void OP_EMC (int,int); |
85 | static void OP_MXC (int,int); | |
26ca5450 AJ |
86 | static void OP_MS (int, int); |
87 | static void OP_XS (int, int); | |
cc0ec051 | 88 | static void OP_M (int, int); |
c0f3af97 L |
89 | static void OP_VEX (int, int); |
90 | static void OP_EX_Vex (int, int); | |
922d8de8 | 91 | static void OP_EX_VexW (int, int); |
a683cc34 | 92 | static void OP_EX_VexImmW (int, int); |
c0f3af97 | 93 | static void OP_XMM_Vex (int, int); |
922d8de8 | 94 | static void OP_XMM_VexW (int, int); |
43234a1e | 95 | static void OP_Rounding (int, int); |
c0f3af97 L |
96 | static void OP_REG_VexI4 (int, int); |
97 | static void PCLMUL_Fixup (int, int); | |
c0f3af97 L |
98 | static void VZERO_Fixup (int, int); |
99 | static void VCMP_Fixup (int, int); | |
43234a1e | 100 | static void VPCMP_Fixup (int, int); |
be92cb14 | 101 | static void VPCOM_Fixup (int, int); |
cc0ec051 | 102 | static void OP_0f07 (int, int); |
b844680a L |
103 | static void OP_Monitor (int, int); |
104 | static void OP_Mwait (int, int); | |
9916071f | 105 | static void OP_Mwaitx (int, int); |
46e883c5 L |
106 | static void NOP_Fixup1 (int, int); |
107 | static void NOP_Fixup2 (int, int); | |
26ca5450 | 108 | static void OP_3DNowSuffix (int, int); |
ad19981d | 109 | static void CMP_Fixup (int, int); |
26ca5450 | 110 | static void BadOp (void); |
35c52694 | 111 | static void REP_Fixup (int, int); |
7e8b059b | 112 | static void BND_Fixup (int, int); |
04ef582a | 113 | static void NOTRACK_Fixup (int, int); |
42164a71 L |
114 | static void HLE_Fixup1 (int, int); |
115 | static void HLE_Fixup2 (int, int); | |
116 | static void HLE_Fixup3 (int, int); | |
f5804c90 | 117 | static void CMPXCHG8B_Fixup (int, int); |
42903f7f | 118 | static void XMM_Fixup (int, int); |
381d071f | 119 | static void CRC32_Fixup (int, int); |
eacc9c89 | 120 | static void FXSAVE_Fixup (int, int); |
15c7c1d8 | 121 | static void PCMPESTR_Fixup (int, int); |
f88c9eb0 SP |
122 | static void OP_LWPCB_E (int, int); |
123 | static void OP_LWP_E (int, int); | |
5dd85c99 SP |
124 | static void OP_Vex_2src_1 (int, int); |
125 | static void OP_Vex_2src_2 (int, int); | |
c1e679ec | 126 | |
f1f8f695 | 127 | static void MOVBE_Fixup (int, int); |
252b5132 | 128 | |
43234a1e L |
129 | static void OP_Mask (int, int); |
130 | ||
6608db57 | 131 | struct dis_private { |
252b5132 RH |
132 | /* Points to first byte not fetched. */ |
133 | bfd_byte *max_fetched; | |
0b1cf022 | 134 | bfd_byte the_buffer[MAX_MNEM_SIZE]; |
252b5132 | 135 | bfd_vma insn_start; |
e396998b | 136 | int orig_sizeflag; |
8df14d78 | 137 | OPCODES_SIGJMP_BUF bailout; |
252b5132 RH |
138 | }; |
139 | ||
cb712a9e L |
140 | enum address_mode |
141 | { | |
142 | mode_16bit, | |
143 | mode_32bit, | |
144 | mode_64bit | |
145 | }; | |
146 | ||
147 | enum address_mode address_mode; | |
52b15da3 | 148 | |
5076851f ILT |
149 | /* Flags for the prefixes for the current instruction. See below. */ |
150 | static int prefixes; | |
151 | ||
52b15da3 JH |
152 | /* REX prefix the current instruction. See below. */ |
153 | static int rex; | |
154 | /* Bits of REX we've already used. */ | |
155 | static int rex_used; | |
d869730d | 156 | /* REX bits in original REX prefix ignored. */ |
c0f3af97 | 157 | static int rex_ignored; |
52b15da3 JH |
158 | /* Mark parts used in the REX prefix. When we are testing for |
159 | empty prefix (for 8bit register REX extension), just mask it | |
160 | out. Otherwise test for REX bit is excuse for existence of REX | |
161 | only in case value is nonzero. */ | |
162 | #define USED_REX(value) \ | |
163 | { \ | |
164 | if (value) \ | |
161a04f6 L |
165 | { \ |
166 | if ((rex & value)) \ | |
167 | rex_used |= (value) | REX_OPCODE; \ | |
168 | } \ | |
52b15da3 | 169 | else \ |
161a04f6 | 170 | rex_used |= REX_OPCODE; \ |
52b15da3 JH |
171 | } |
172 | ||
7d421014 ILT |
173 | /* Flags for prefixes which we somehow handled when printing the |
174 | current instruction. */ | |
175 | static int used_prefixes; | |
176 | ||
5076851f ILT |
177 | /* Flags stored in PREFIXES. */ |
178 | #define PREFIX_REPZ 1 | |
179 | #define PREFIX_REPNZ 2 | |
180 | #define PREFIX_LOCK 4 | |
181 | #define PREFIX_CS 8 | |
182 | #define PREFIX_SS 0x10 | |
183 | #define PREFIX_DS 0x20 | |
184 | #define PREFIX_ES 0x40 | |
185 | #define PREFIX_FS 0x80 | |
186 | #define PREFIX_GS 0x100 | |
187 | #define PREFIX_DATA 0x200 | |
188 | #define PREFIX_ADDR 0x400 | |
189 | #define PREFIX_FWAIT 0x800 | |
190 | ||
252b5132 RH |
191 | /* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive) |
192 | to ADDR (exclusive) are valid. Returns 1 for success, longjmps | |
193 | on error. */ | |
194 | #define FETCH_DATA(info, addr) \ | |
6608db57 | 195 | ((addr) <= ((struct dis_private *) (info->private_data))->max_fetched \ |
252b5132 RH |
196 | ? 1 : fetch_data ((info), (addr))) |
197 | ||
198 | static int | |
26ca5450 | 199 | fetch_data (struct disassemble_info *info, bfd_byte *addr) |
252b5132 RH |
200 | { |
201 | int status; | |
6608db57 | 202 | struct dis_private *priv = (struct dis_private *) info->private_data; |
252b5132 RH |
203 | bfd_vma start = priv->insn_start + (priv->max_fetched - priv->the_buffer); |
204 | ||
0b1cf022 | 205 | if (addr <= priv->the_buffer + MAX_MNEM_SIZE) |
272c9217 JB |
206 | status = (*info->read_memory_func) (start, |
207 | priv->max_fetched, | |
208 | addr - priv->max_fetched, | |
209 | info); | |
210 | else | |
211 | status = -1; | |
252b5132 RH |
212 | if (status != 0) |
213 | { | |
7d421014 | 214 | /* If we did manage to read at least one byte, then |
db6eb5be AM |
215 | print_insn_i386 will do something sensible. Otherwise, print |
216 | an error. We do that here because this is where we know | |
217 | STATUS. */ | |
7d421014 | 218 | if (priv->max_fetched == priv->the_buffer) |
5076851f | 219 | (*info->memory_error_func) (status, start, info); |
8df14d78 | 220 | OPCODES_SIGLONGJMP (priv->bailout, 1); |
252b5132 RH |
221 | } |
222 | else | |
223 | priv->max_fetched = addr; | |
224 | return 1; | |
225 | } | |
226 | ||
bf890a93 | 227 | /* Possible values for prefix requirement. */ |
507bd325 L |
228 | #define PREFIX_IGNORED_SHIFT 16 |
229 | #define PREFIX_IGNORED_REPZ (PREFIX_REPZ << PREFIX_IGNORED_SHIFT) | |
230 | #define PREFIX_IGNORED_REPNZ (PREFIX_REPNZ << PREFIX_IGNORED_SHIFT) | |
231 | #define PREFIX_IGNORED_DATA (PREFIX_DATA << PREFIX_IGNORED_SHIFT) | |
232 | #define PREFIX_IGNORED_ADDR (PREFIX_ADDR << PREFIX_IGNORED_SHIFT) | |
233 | #define PREFIX_IGNORED_LOCK (PREFIX_LOCK << PREFIX_IGNORED_SHIFT) | |
234 | ||
235 | /* Opcode prefixes. */ | |
236 | #define PREFIX_OPCODE (PREFIX_REPZ \ | |
237 | | PREFIX_REPNZ \ | |
238 | | PREFIX_DATA) | |
239 | ||
240 | /* Prefixes ignored. */ | |
241 | #define PREFIX_IGNORED (PREFIX_IGNORED_REPZ \ | |
242 | | PREFIX_IGNORED_REPNZ \ | |
243 | | PREFIX_IGNORED_DATA) | |
bf890a93 | 244 | |
ce518a5f | 245 | #define XX { NULL, 0 } |
507bd325 | 246 | #define Bad_Opcode NULL, { { NULL, 0 } }, 0 |
ce518a5f L |
247 | |
248 | #define Eb { OP_E, b_mode } | |
7e8b059b | 249 | #define Ebnd { OP_E, bnd_mode } |
b6169b20 | 250 | #define EbS { OP_E, b_swap_mode } |
ce518a5f | 251 | #define Ev { OP_E, v_mode } |
7e8b059b | 252 | #define Ev_bnd { OP_E, v_bnd_mode } |
b6169b20 | 253 | #define EvS { OP_E, v_swap_mode } |
ce518a5f L |
254 | #define Ed { OP_E, d_mode } |
255 | #define Edq { OP_E, dq_mode } | |
256 | #define Edqw { OP_E, dqw_mode } | |
42903f7f | 257 | #define Edqb { OP_E, dqb_mode } |
1ba585e8 IT |
258 | #define Edb { OP_E, db_mode } |
259 | #define Edw { OP_E, dw_mode } | |
42903f7f | 260 | #define Edqd { OP_E, dqd_mode } |
09335d05 | 261 | #define Eq { OP_E, q_mode } |
07f5af7d | 262 | #define indirEv { OP_indirE, indir_v_mode } |
ce518a5f L |
263 | #define indirEp { OP_indirE, f_mode } |
264 | #define stackEv { OP_E, stack_v_mode } | |
265 | #define Em { OP_E, m_mode } | |
266 | #define Ew { OP_E, w_mode } | |
267 | #define M { OP_M, 0 } /* lea, lgdt, etc. */ | |
34b772a6 | 268 | #define Ma { OP_M, a_mode } |
b844680a | 269 | #define Mb { OP_M, b_mode } |
d9a5e5e5 | 270 | #define Md { OP_M, d_mode } |
f1f8f695 | 271 | #define Mo { OP_M, o_mode } |
ce518a5f L |
272 | #define Mp { OP_M, f_mode } /* 32 or 48 bit memory operand for LDS, LES etc */ |
273 | #define Mq { OP_M, q_mode } | |
4ee52178 | 274 | #define Mx { OP_M, x_mode } |
c0f3af97 | 275 | #define Mxmm { OP_M, xmm_mode } |
ce518a5f | 276 | #define Gb { OP_G, b_mode } |
7e8b059b | 277 | #define Gbnd { OP_G, bnd_mode } |
ce518a5f L |
278 | #define Gv { OP_G, v_mode } |
279 | #define Gd { OP_G, d_mode } | |
280 | #define Gdq { OP_G, dq_mode } | |
281 | #define Gm { OP_G, m_mode } | |
282 | #define Gw { OP_G, w_mode } | |
6f74c397 | 283 | #define Rd { OP_R, d_mode } |
43234a1e | 284 | #define Rdq { OP_R, dq_mode } |
6f74c397 | 285 | #define Rm { OP_R, m_mode } |
ce518a5f L |
286 | #define Ib { OP_I, b_mode } |
287 | #define sIb { OP_sI, b_mode } /* sign extened byte */ | |
e3949f17 | 288 | #define sIbT { OP_sI, b_T_mode } /* sign extened byte like 'T' */ |
ce518a5f | 289 | #define Iv { OP_I, v_mode } |
7bb15c6f | 290 | #define sIv { OP_sI, v_mode } |
ce518a5f L |
291 | #define Iq { OP_I, q_mode } |
292 | #define Iv64 { OP_I64, v_mode } | |
293 | #define Iw { OP_I, w_mode } | |
294 | #define I1 { OP_I, const_1_mode } | |
295 | #define Jb { OP_J, b_mode } | |
296 | #define Jv { OP_J, v_mode } | |
297 | #define Cm { OP_C, m_mode } | |
298 | #define Dm { OP_D, m_mode } | |
299 | #define Td { OP_T, d_mode } | |
b844680a | 300 | #define Skip_MODRM { OP_Skip_MODRM, 0 } |
ce518a5f L |
301 | |
302 | #define RMeAX { OP_REG, eAX_reg } | |
303 | #define RMeBX { OP_REG, eBX_reg } | |
304 | #define RMeCX { OP_REG, eCX_reg } | |
305 | #define RMeDX { OP_REG, eDX_reg } | |
306 | #define RMeSP { OP_REG, eSP_reg } | |
307 | #define RMeBP { OP_REG, eBP_reg } | |
308 | #define RMeSI { OP_REG, eSI_reg } | |
309 | #define RMeDI { OP_REG, eDI_reg } | |
310 | #define RMrAX { OP_REG, rAX_reg } | |
311 | #define RMrBX { OP_REG, rBX_reg } | |
312 | #define RMrCX { OP_REG, rCX_reg } | |
313 | #define RMrDX { OP_REG, rDX_reg } | |
314 | #define RMrSP { OP_REG, rSP_reg } | |
315 | #define RMrBP { OP_REG, rBP_reg } | |
316 | #define RMrSI { OP_REG, rSI_reg } | |
317 | #define RMrDI { OP_REG, rDI_reg } | |
318 | #define RMAL { OP_REG, al_reg } | |
ce518a5f L |
319 | #define RMCL { OP_REG, cl_reg } |
320 | #define RMDL { OP_REG, dl_reg } | |
321 | #define RMBL { OP_REG, bl_reg } | |
322 | #define RMAH { OP_REG, ah_reg } | |
323 | #define RMCH { OP_REG, ch_reg } | |
324 | #define RMDH { OP_REG, dh_reg } | |
325 | #define RMBH { OP_REG, bh_reg } | |
326 | #define RMAX { OP_REG, ax_reg } | |
327 | #define RMDX { OP_REG, dx_reg } | |
328 | ||
329 | #define eAX { OP_IMREG, eAX_reg } | |
330 | #define eBX { OP_IMREG, eBX_reg } | |
331 | #define eCX { OP_IMREG, eCX_reg } | |
332 | #define eDX { OP_IMREG, eDX_reg } | |
333 | #define eSP { OP_IMREG, eSP_reg } | |
334 | #define eBP { OP_IMREG, eBP_reg } | |
335 | #define eSI { OP_IMREG, eSI_reg } | |
336 | #define eDI { OP_IMREG, eDI_reg } | |
337 | #define AL { OP_IMREG, al_reg } | |
338 | #define CL { OP_IMREG, cl_reg } | |
339 | #define DL { OP_IMREG, dl_reg } | |
340 | #define BL { OP_IMREG, bl_reg } | |
341 | #define AH { OP_IMREG, ah_reg } | |
342 | #define CH { OP_IMREG, ch_reg } | |
343 | #define DH { OP_IMREG, dh_reg } | |
344 | #define BH { OP_IMREG, bh_reg } | |
345 | #define AX { OP_IMREG, ax_reg } | |
346 | #define DX { OP_IMREG, dx_reg } | |
347 | #define zAX { OP_IMREG, z_mode_ax_reg } | |
348 | #define indirDX { OP_IMREG, indir_dx_reg } | |
349 | ||
350 | #define Sw { OP_SEG, w_mode } | |
351 | #define Sv { OP_SEG, v_mode } | |
352 | #define Ap { OP_DIR, 0 } | |
353 | #define Ob { OP_OFF64, b_mode } | |
354 | #define Ov { OP_OFF64, v_mode } | |
355 | #define Xb { OP_DSreg, eSI_reg } | |
356 | #define Xv { OP_DSreg, eSI_reg } | |
357 | #define Xz { OP_DSreg, eSI_reg } | |
358 | #define Yb { OP_ESreg, eDI_reg } | |
359 | #define Yv { OP_ESreg, eDI_reg } | |
360 | #define DSBX { OP_DSreg, eBX_reg } | |
361 | ||
362 | #define es { OP_REG, es_reg } | |
363 | #define ss { OP_REG, ss_reg } | |
364 | #define cs { OP_REG, cs_reg } | |
365 | #define ds { OP_REG, ds_reg } | |
366 | #define fs { OP_REG, fs_reg } | |
367 | #define gs { OP_REG, gs_reg } | |
368 | ||
369 | #define MX { OP_MMX, 0 } | |
370 | #define XM { OP_XMM, 0 } | |
539f890d | 371 | #define XMScalar { OP_XMM, scalar_mode } |
6c30d220 | 372 | #define XMGatherQ { OP_XMM, vex_vsib_q_w_dq_mode } |
c0f3af97 | 373 | #define XMM { OP_XMM, xmm_mode } |
43234a1e | 374 | #define XMxmmq { OP_XMM, xmmq_mode } |
ce518a5f | 375 | #define EM { OP_EM, v_mode } |
b6169b20 | 376 | #define EMS { OP_EM, v_swap_mode } |
09a2c6cf | 377 | #define EMd { OP_EM, d_mode } |
14051056 | 378 | #define EMx { OP_EM, x_mode } |
53467f57 | 379 | #define EXbScalar { OP_EX, b_scalar_mode } |
8976381e | 380 | #define EXw { OP_EX, w_mode } |
53467f57 | 381 | #define EXwScalar { OP_EX, w_scalar_mode } |
09a2c6cf | 382 | #define EXd { OP_EX, d_mode } |
539f890d | 383 | #define EXdScalar { OP_EX, d_scalar_mode } |
fa99fab2 | 384 | #define EXdS { OP_EX, d_swap_mode } |
43234a1e | 385 | #define EXdScalarS { OP_EX, d_scalar_swap_mode } |
09a2c6cf | 386 | #define EXq { OP_EX, q_mode } |
539f890d L |
387 | #define EXqScalar { OP_EX, q_scalar_mode } |
388 | #define EXqScalarS { OP_EX, q_scalar_swap_mode } | |
b6169b20 | 389 | #define EXqS { OP_EX, q_swap_mode } |
09a2c6cf | 390 | #define EXx { OP_EX, x_mode } |
b6169b20 | 391 | #define EXxS { OP_EX, x_swap_mode } |
c0f3af97 | 392 | #define EXxmm { OP_EX, xmm_mode } |
43234a1e | 393 | #define EXymm { OP_EX, ymm_mode } |
c0f3af97 | 394 | #define EXxmmq { OP_EX, xmmq_mode } |
43234a1e | 395 | #define EXEvexHalfBcstXmmq { OP_EX, evex_half_bcst_xmmq_mode } |
6c30d220 L |
396 | #define EXxmm_mb { OP_EX, xmm_mb_mode } |
397 | #define EXxmm_mw { OP_EX, xmm_mw_mode } | |
398 | #define EXxmm_md { OP_EX, xmm_md_mode } | |
399 | #define EXxmm_mq { OP_EX, xmm_mq_mode } | |
43234a1e | 400 | #define EXxmm_mdq { OP_EX, xmm_mdq_mode } |
6c30d220 L |
401 | #define EXxmmdw { OP_EX, xmmdw_mode } |
402 | #define EXxmmqd { OP_EX, xmmqd_mode } | |
c0f3af97 | 403 | #define EXymmq { OP_EX, ymmq_mode } |
0bfee649 | 404 | #define EXVexWdq { OP_EX, vex_w_dq_mode } |
1c480963 | 405 | #define EXVexWdqScalar { OP_EX, vex_scalar_w_dq_mode } |
43234a1e L |
406 | #define EXEvexXGscat { OP_EX, evex_x_gscat_mode } |
407 | #define EXEvexXNoBcst { OP_EX, evex_x_nobcst_mode } | |
ce518a5f L |
408 | #define MS { OP_MS, v_mode } |
409 | #define XS { OP_XS, v_mode } | |
09335d05 | 410 | #define EMCq { OP_EMC, q_mode } |
ce518a5f | 411 | #define MXC { OP_MXC, 0 } |
ce518a5f | 412 | #define OPSUF { OP_3DNowSuffix, 0 } |
ad19981d | 413 | #define CMP { CMP_Fixup, 0 } |
42903f7f | 414 | #define XMM0 { XMM_Fixup, 0 } |
eacc9c89 | 415 | #define FXSAVE { FXSAVE_Fixup, 0 } |
5dd85c99 SP |
416 | #define Vex_2src_1 { OP_Vex_2src_1, 0 } |
417 | #define Vex_2src_2 { OP_Vex_2src_2, 0 } | |
252b5132 | 418 | |
c0f3af97 | 419 | #define Vex { OP_VEX, vex_mode } |
539f890d | 420 | #define VexScalar { OP_VEX, vex_scalar_mode } |
6c30d220 | 421 | #define VexGatherQ { OP_VEX, vex_vsib_q_w_dq_mode } |
c0f3af97 L |
422 | #define Vex128 { OP_VEX, vex128_mode } |
423 | #define Vex256 { OP_VEX, vex256_mode } | |
cb21baef | 424 | #define VexGdq { OP_VEX, dq_mode } |
c0f3af97 | 425 | #define EXdVex { OP_EX_Vex, d_mode } |
fa99fab2 | 426 | #define EXdVexS { OP_EX_Vex, d_swap_mode } |
539f890d | 427 | #define EXdVexScalarS { OP_EX_Vex, d_scalar_swap_mode } |
c0f3af97 | 428 | #define EXqVex { OP_EX_Vex, q_mode } |
fa99fab2 | 429 | #define EXqVexS { OP_EX_Vex, q_swap_mode } |
539f890d | 430 | #define EXqVexScalarS { OP_EX_Vex, q_scalar_swap_mode } |
922d8de8 DR |
431 | #define EXVexW { OP_EX_VexW, x_mode } |
432 | #define EXdVexW { OP_EX_VexW, d_mode } | |
433 | #define EXqVexW { OP_EX_VexW, q_mode } | |
a683cc34 | 434 | #define EXVexImmW { OP_EX_VexImmW, x_mode } |
c0f3af97 | 435 | #define XMVex { OP_XMM_Vex, 0 } |
539f890d | 436 | #define XMVexScalar { OP_XMM_Vex, scalar_mode } |
922d8de8 | 437 | #define XMVexW { OP_XMM_VexW, 0 } |
c0f3af97 L |
438 | #define XMVexI4 { OP_REG_VexI4, x_mode } |
439 | #define PCLMUL { PCLMUL_Fixup, 0 } | |
440 | #define VZERO { VZERO_Fixup, 0 } | |
441 | #define VCMP { VCMP_Fixup, 0 } | |
43234a1e | 442 | #define VPCMP { VPCMP_Fixup, 0 } |
be92cb14 | 443 | #define VPCOM { VPCOM_Fixup, 0 } |
43234a1e L |
444 | |
445 | #define EXxEVexR { OP_Rounding, evex_rounding_mode } | |
446 | #define EXxEVexS { OP_Rounding, evex_sae_mode } | |
447 | ||
448 | #define XMask { OP_Mask, mask_mode } | |
449 | #define MaskG { OP_G, mask_mode } | |
450 | #define MaskE { OP_E, mask_mode } | |
1ba585e8 | 451 | #define MaskBDE { OP_E, mask_bd_mode } |
43234a1e L |
452 | #define MaskR { OP_R, mask_mode } |
453 | #define MaskVex { OP_VEX, mask_mode } | |
c0f3af97 | 454 | |
6c30d220 | 455 | #define MVexVSIBDWpX { OP_M, vex_vsib_d_w_dq_mode } |
5fc35d96 | 456 | #define MVexVSIBDQWpX { OP_M, vex_vsib_d_w_d_mode } |
6c30d220 | 457 | #define MVexVSIBQWpX { OP_M, vex_vsib_q_w_dq_mode } |
5fc35d96 | 458 | #define MVexVSIBQDWpX { OP_M, vex_vsib_q_w_d_mode } |
6c30d220 | 459 | |
35c52694 | 460 | /* Used handle "rep" prefix for string instructions. */ |
ce518a5f L |
461 | #define Xbr { REP_Fixup, eSI_reg } |
462 | #define Xvr { REP_Fixup, eSI_reg } | |
463 | #define Ybr { REP_Fixup, eDI_reg } | |
464 | #define Yvr { REP_Fixup, eDI_reg } | |
465 | #define Yzr { REP_Fixup, eDI_reg } | |
466 | #define indirDXr { REP_Fixup, indir_dx_reg } | |
467 | #define ALr { REP_Fixup, al_reg } | |
468 | #define eAXr { REP_Fixup, eAX_reg } | |
469 | ||
42164a71 L |
470 | /* Used handle HLE prefix for lockable instructions. */ |
471 | #define Ebh1 { HLE_Fixup1, b_mode } | |
472 | #define Evh1 { HLE_Fixup1, v_mode } | |
473 | #define Ebh2 { HLE_Fixup2, b_mode } | |
474 | #define Evh2 { HLE_Fixup2, v_mode } | |
475 | #define Ebh3 { HLE_Fixup3, b_mode } | |
476 | #define Evh3 { HLE_Fixup3, v_mode } | |
477 | ||
7e8b059b | 478 | #define BND { BND_Fixup, 0 } |
04ef582a | 479 | #define NOTRACK { NOTRACK_Fixup, 0 } |
7e8b059b | 480 | |
ce518a5f L |
481 | #define cond_jump_flag { NULL, cond_jump_mode } |
482 | #define loop_jcxz_flag { NULL, loop_jcxz_mode } | |
3ffd33cf | 483 | |
252b5132 | 484 | /* bits in sizeflag */ |
252b5132 | 485 | #define SUFFIX_ALWAYS 4 |
252b5132 RH |
486 | #define AFLAG 2 |
487 | #define DFLAG 1 | |
488 | ||
51e7da1b L |
489 | enum |
490 | { | |
491 | /* byte operand */ | |
492 | b_mode = 1, | |
493 | /* byte operand with operand swapped */ | |
3873ba12 | 494 | b_swap_mode, |
e3949f17 L |
495 | /* byte operand, sign extend like 'T' suffix */ |
496 | b_T_mode, | |
51e7da1b | 497 | /* operand size depends on prefixes */ |
3873ba12 | 498 | v_mode, |
51e7da1b | 499 | /* operand size depends on prefixes with operand swapped */ |
3873ba12 | 500 | v_swap_mode, |
51e7da1b | 501 | /* word operand */ |
3873ba12 | 502 | w_mode, |
51e7da1b | 503 | /* double word operand */ |
3873ba12 | 504 | d_mode, |
51e7da1b | 505 | /* double word operand with operand swapped */ |
3873ba12 | 506 | d_swap_mode, |
51e7da1b | 507 | /* quad word operand */ |
3873ba12 | 508 | q_mode, |
51e7da1b | 509 | /* quad word operand with operand swapped */ |
3873ba12 | 510 | q_swap_mode, |
51e7da1b | 511 | /* ten-byte operand */ |
3873ba12 | 512 | t_mode, |
43234a1e L |
513 | /* 16-byte XMM, 32-byte YMM or 64-byte ZMM operand. In EVEX with |
514 | broadcast enabled. */ | |
3873ba12 | 515 | x_mode, |
43234a1e L |
516 | /* Similar to x_mode, but with different EVEX mem shifts. */ |
517 | evex_x_gscat_mode, | |
518 | /* Similar to x_mode, but with disabled broadcast. */ | |
519 | evex_x_nobcst_mode, | |
520 | /* Similar to x_mode, but with operands swapped and disabled broadcast | |
521 | in EVEX. */ | |
3873ba12 | 522 | x_swap_mode, |
51e7da1b | 523 | /* 16-byte XMM operand */ |
3873ba12 | 524 | xmm_mode, |
43234a1e L |
525 | /* XMM, XMM or YMM register operand, or quad word, xmmword or ymmword |
526 | memory operand (depending on vector length). Broadcast isn't | |
527 | allowed. */ | |
3873ba12 | 528 | xmmq_mode, |
43234a1e L |
529 | /* Same as xmmq_mode, but broadcast is allowed. */ |
530 | evex_half_bcst_xmmq_mode, | |
6c30d220 L |
531 | /* XMM register or byte memory operand */ |
532 | xmm_mb_mode, | |
533 | /* XMM register or word memory operand */ | |
534 | xmm_mw_mode, | |
535 | /* XMM register or double word memory operand */ | |
536 | xmm_md_mode, | |
537 | /* XMM register or quad word memory operand */ | |
538 | xmm_mq_mode, | |
43234a1e L |
539 | /* XMM register or double/quad word memory operand, depending on |
540 | VEX.W. */ | |
541 | xmm_mdq_mode, | |
542 | /* 16-byte XMM, word, double word or quad word operand. */ | |
6c30d220 | 543 | xmmdw_mode, |
43234a1e | 544 | /* 16-byte XMM, double word, quad word operand or xmm word operand. */ |
6c30d220 | 545 | xmmqd_mode, |
43234a1e L |
546 | /* 32-byte YMM operand */ |
547 | ymm_mode, | |
548 | /* quad word, ymmword or zmmword memory operand. */ | |
3873ba12 | 549 | ymmq_mode, |
6c30d220 L |
550 | /* 32-byte YMM or 16-byte word operand */ |
551 | ymmxmm_mode, | |
51e7da1b | 552 | /* d_mode in 32bit, q_mode in 64bit mode. */ |
3873ba12 | 553 | m_mode, |
51e7da1b | 554 | /* pair of v_mode operands */ |
3873ba12 L |
555 | a_mode, |
556 | cond_jump_mode, | |
557 | loop_jcxz_mode, | |
7e8b059b | 558 | v_bnd_mode, |
51e7da1b | 559 | /* operand size depends on REX prefixes. */ |
3873ba12 | 560 | dq_mode, |
51e7da1b | 561 | /* registers like dq_mode, memory like w_mode. */ |
3873ba12 | 562 | dqw_mode, |
7e8b059b | 563 | bnd_mode, |
51e7da1b | 564 | /* 4- or 6-byte pointer operand */ |
3873ba12 L |
565 | f_mode, |
566 | const_1_mode, | |
07f5af7d L |
567 | /* v_mode for indirect branch opcodes. */ |
568 | indir_v_mode, | |
51e7da1b | 569 | /* v_mode for stack-related opcodes. */ |
3873ba12 | 570 | stack_v_mode, |
51e7da1b | 571 | /* non-quad operand size depends on prefixes */ |
3873ba12 | 572 | z_mode, |
51e7da1b | 573 | /* 16-byte operand */ |
3873ba12 | 574 | o_mode, |
51e7da1b | 575 | /* registers like dq_mode, memory like b_mode. */ |
3873ba12 | 576 | dqb_mode, |
1ba585e8 IT |
577 | /* registers like d_mode, memory like b_mode. */ |
578 | db_mode, | |
579 | /* registers like d_mode, memory like w_mode. */ | |
580 | dw_mode, | |
51e7da1b | 581 | /* registers like dq_mode, memory like d_mode. */ |
3873ba12 | 582 | dqd_mode, |
51e7da1b | 583 | /* normal vex mode */ |
3873ba12 | 584 | vex_mode, |
51e7da1b | 585 | /* 128bit vex mode */ |
3873ba12 | 586 | vex128_mode, |
51e7da1b | 587 | /* 256bit vex mode */ |
3873ba12 | 588 | vex256_mode, |
51e7da1b | 589 | /* operand size depends on the VEX.W bit. */ |
3873ba12 | 590 | vex_w_dq_mode, |
d55ee72f | 591 | |
6c30d220 L |
592 | /* Similar to vex_w_dq_mode, with VSIB dword indices. */ |
593 | vex_vsib_d_w_dq_mode, | |
5fc35d96 IT |
594 | /* Similar to vex_vsib_d_w_dq_mode, with smaller memory. */ |
595 | vex_vsib_d_w_d_mode, | |
6c30d220 L |
596 | /* Similar to vex_w_dq_mode, with VSIB qword indices. */ |
597 | vex_vsib_q_w_dq_mode, | |
5fc35d96 IT |
598 | /* Similar to vex_vsib_q_w_dq_mode, with smaller memory. */ |
599 | vex_vsib_q_w_d_mode, | |
6c30d220 | 600 | |
539f890d L |
601 | /* scalar, ignore vector length. */ |
602 | scalar_mode, | |
53467f57 IT |
603 | /* like b_mode, ignore vector length. */ |
604 | b_scalar_mode, | |
605 | /* like w_mode, ignore vector length. */ | |
606 | w_scalar_mode, | |
539f890d L |
607 | /* like d_mode, ignore vector length. */ |
608 | d_scalar_mode, | |
609 | /* like d_swap_mode, ignore vector length. */ | |
610 | d_scalar_swap_mode, | |
611 | /* like q_mode, ignore vector length. */ | |
612 | q_scalar_mode, | |
613 | /* like q_swap_mode, ignore vector length. */ | |
614 | q_scalar_swap_mode, | |
615 | /* like vex_mode, ignore vector length. */ | |
616 | vex_scalar_mode, | |
1c480963 L |
617 | /* like vex_w_dq_mode, ignore vector length. */ |
618 | vex_scalar_w_dq_mode, | |
539f890d | 619 | |
43234a1e L |
620 | /* Static rounding. */ |
621 | evex_rounding_mode, | |
622 | /* Supress all exceptions. */ | |
623 | evex_sae_mode, | |
624 | ||
625 | /* Mask register operand. */ | |
626 | mask_mode, | |
1ba585e8 IT |
627 | /* Mask register operand. */ |
628 | mask_bd_mode, | |
43234a1e | 629 | |
3873ba12 L |
630 | es_reg, |
631 | cs_reg, | |
632 | ss_reg, | |
633 | ds_reg, | |
634 | fs_reg, | |
635 | gs_reg, | |
d55ee72f | 636 | |
3873ba12 L |
637 | eAX_reg, |
638 | eCX_reg, | |
639 | eDX_reg, | |
640 | eBX_reg, | |
641 | eSP_reg, | |
642 | eBP_reg, | |
643 | eSI_reg, | |
644 | eDI_reg, | |
d55ee72f | 645 | |
3873ba12 L |
646 | al_reg, |
647 | cl_reg, | |
648 | dl_reg, | |
649 | bl_reg, | |
650 | ah_reg, | |
651 | ch_reg, | |
652 | dh_reg, | |
653 | bh_reg, | |
d55ee72f | 654 | |
3873ba12 L |
655 | ax_reg, |
656 | cx_reg, | |
657 | dx_reg, | |
658 | bx_reg, | |
659 | sp_reg, | |
660 | bp_reg, | |
661 | si_reg, | |
662 | di_reg, | |
d55ee72f | 663 | |
3873ba12 L |
664 | rAX_reg, |
665 | rCX_reg, | |
666 | rDX_reg, | |
667 | rBX_reg, | |
668 | rSP_reg, | |
669 | rBP_reg, | |
670 | rSI_reg, | |
671 | rDI_reg, | |
d55ee72f | 672 | |
3873ba12 L |
673 | z_mode_ax_reg, |
674 | indir_dx_reg | |
51e7da1b | 675 | }; |
252b5132 | 676 | |
51e7da1b L |
677 | enum |
678 | { | |
679 | FLOATCODE = 1, | |
3873ba12 L |
680 | USE_REG_TABLE, |
681 | USE_MOD_TABLE, | |
682 | USE_RM_TABLE, | |
683 | USE_PREFIX_TABLE, | |
684 | USE_X86_64_TABLE, | |
685 | USE_3BYTE_TABLE, | |
f88c9eb0 | 686 | USE_XOP_8F_TABLE, |
3873ba12 L |
687 | USE_VEX_C4_TABLE, |
688 | USE_VEX_C5_TABLE, | |
9e30b8e0 | 689 | USE_VEX_LEN_TABLE, |
43234a1e L |
690 | USE_VEX_W_TABLE, |
691 | USE_EVEX_TABLE | |
51e7da1b | 692 | }; |
6439fc28 | 693 | |
bf890a93 | 694 | #define FLOAT NULL, { { NULL, FLOATCODE } }, 0 |
4efba78c | 695 | |
bf890a93 IT |
696 | #define DIS386(T, I) NULL, { { NULL, (T)}, { NULL, (I) } }, 0 |
697 | #define DIS386_PREFIX(T, I, P) NULL, { { NULL, (T)}, { NULL, (I) } }, P | |
1ceb70f8 L |
698 | #define REG_TABLE(I) DIS386 (USE_REG_TABLE, (I)) |
699 | #define MOD_TABLE(I) DIS386 (USE_MOD_TABLE, (I)) | |
700 | #define RM_TABLE(I) DIS386 (USE_RM_TABLE, (I)) | |
701 | #define PREFIX_TABLE(I) DIS386 (USE_PREFIX_TABLE, (I)) | |
4e7d34a6 L |
702 | #define X86_64_TABLE(I) DIS386 (USE_X86_64_TABLE, (I)) |
703 | #define THREE_BYTE_TABLE(I) DIS386 (USE_3BYTE_TABLE, (I)) | |
bf890a93 | 704 | #define THREE_BYTE_TABLE_PREFIX(I, P) DIS386_PREFIX (USE_3BYTE_TABLE, (I), P) |
f88c9eb0 | 705 | #define XOP_8F_TABLE(I) DIS386 (USE_XOP_8F_TABLE, (I)) |
c0f3af97 L |
706 | #define VEX_C4_TABLE(I) DIS386 (USE_VEX_C4_TABLE, (I)) |
707 | #define VEX_C5_TABLE(I) DIS386 (USE_VEX_C5_TABLE, (I)) | |
708 | #define VEX_LEN_TABLE(I) DIS386 (USE_VEX_LEN_TABLE, (I)) | |
9e30b8e0 | 709 | #define VEX_W_TABLE(I) DIS386 (USE_VEX_W_TABLE, (I)) |
43234a1e | 710 | #define EVEX_TABLE(I) DIS386 (USE_EVEX_TABLE, (I)) |
1ceb70f8 | 711 | |
51e7da1b L |
712 | enum |
713 | { | |
714 | REG_80 = 0, | |
3873ba12 | 715 | REG_81, |
7148c369 | 716 | REG_83, |
3873ba12 L |
717 | REG_8F, |
718 | REG_C0, | |
719 | REG_C1, | |
720 | REG_C6, | |
721 | REG_C7, | |
722 | REG_D0, | |
723 | REG_D1, | |
724 | REG_D2, | |
725 | REG_D3, | |
726 | REG_F6, | |
727 | REG_F7, | |
728 | REG_FE, | |
729 | REG_FF, | |
730 | REG_0F00, | |
731 | REG_0F01, | |
732 | REG_0F0D, | |
733 | REG_0F18, | |
603555e5 | 734 | REG_0F1E_MOD_3, |
3873ba12 L |
735 | REG_0F71, |
736 | REG_0F72, | |
737 | REG_0F73, | |
738 | REG_0FA6, | |
739 | REG_0FA7, | |
740 | REG_0FAE, | |
741 | REG_0FBA, | |
742 | REG_0FC7, | |
592a252b L |
743 | REG_VEX_0F71, |
744 | REG_VEX_0F72, | |
745 | REG_VEX_0F73, | |
746 | REG_VEX_0FAE, | |
f12dc422 | 747 | REG_VEX_0F38F3, |
f88c9eb0 | 748 | REG_XOP_LWPCB, |
2a2a0f38 QN |
749 | REG_XOP_LWP, |
750 | REG_XOP_TBM_01, | |
43234a1e L |
751 | REG_XOP_TBM_02, |
752 | ||
1ba585e8 | 753 | REG_EVEX_0F71, |
43234a1e L |
754 | REG_EVEX_0F72, |
755 | REG_EVEX_0F73, | |
756 | REG_EVEX_0F38C6, | |
757 | REG_EVEX_0F38C7 | |
51e7da1b | 758 | }; |
1ceb70f8 | 759 | |
51e7da1b L |
760 | enum |
761 | { | |
762 | MOD_8D = 0, | |
42164a71 L |
763 | MOD_C6_REG_7, |
764 | MOD_C7_REG_7, | |
4a357820 MZ |
765 | MOD_FF_REG_3, |
766 | MOD_FF_REG_5, | |
3873ba12 L |
767 | MOD_0F01_REG_0, |
768 | MOD_0F01_REG_1, | |
769 | MOD_0F01_REG_2, | |
770 | MOD_0F01_REG_3, | |
8eab4136 | 771 | MOD_0F01_REG_5, |
3873ba12 L |
772 | MOD_0F01_REG_7, |
773 | MOD_0F12_PREFIX_0, | |
774 | MOD_0F13, | |
775 | MOD_0F16_PREFIX_0, | |
776 | MOD_0F17, | |
777 | MOD_0F18_REG_0, | |
778 | MOD_0F18_REG_1, | |
779 | MOD_0F18_REG_2, | |
780 | MOD_0F18_REG_3, | |
d7189fa5 RM |
781 | MOD_0F18_REG_4, |
782 | MOD_0F18_REG_5, | |
783 | MOD_0F18_REG_6, | |
784 | MOD_0F18_REG_7, | |
7e8b059b L |
785 | MOD_0F1A_PREFIX_0, |
786 | MOD_0F1B_PREFIX_0, | |
787 | MOD_0F1B_PREFIX_1, | |
603555e5 | 788 | MOD_0F1E_PREFIX_1, |
3873ba12 L |
789 | MOD_0F24, |
790 | MOD_0F26, | |
791 | MOD_0F2B_PREFIX_0, | |
792 | MOD_0F2B_PREFIX_1, | |
793 | MOD_0F2B_PREFIX_2, | |
794 | MOD_0F2B_PREFIX_3, | |
795 | MOD_0F51, | |
796 | MOD_0F71_REG_2, | |
797 | MOD_0F71_REG_4, | |
798 | MOD_0F71_REG_6, | |
799 | MOD_0F72_REG_2, | |
800 | MOD_0F72_REG_4, | |
801 | MOD_0F72_REG_6, | |
802 | MOD_0F73_REG_2, | |
803 | MOD_0F73_REG_3, | |
804 | MOD_0F73_REG_6, | |
805 | MOD_0F73_REG_7, | |
806 | MOD_0FAE_REG_0, | |
807 | MOD_0FAE_REG_1, | |
808 | MOD_0FAE_REG_2, | |
809 | MOD_0FAE_REG_3, | |
810 | MOD_0FAE_REG_4, | |
811 | MOD_0FAE_REG_5, | |
812 | MOD_0FAE_REG_6, | |
813 | MOD_0FAE_REG_7, | |
814 | MOD_0FB2, | |
815 | MOD_0FB4, | |
816 | MOD_0FB5, | |
a8484f96 | 817 | MOD_0FC3, |
963f3586 IT |
818 | MOD_0FC7_REG_3, |
819 | MOD_0FC7_REG_4, | |
820 | MOD_0FC7_REG_5, | |
3873ba12 L |
821 | MOD_0FC7_REG_6, |
822 | MOD_0FC7_REG_7, | |
823 | MOD_0FD7, | |
824 | MOD_0FE7_PREFIX_2, | |
825 | MOD_0FF0_PREFIX_3, | |
826 | MOD_0F382A_PREFIX_2, | |
603555e5 L |
827 | MOD_0F38F5_PREFIX_2, |
828 | MOD_0F38F6_PREFIX_0, | |
3873ba12 L |
829 | MOD_62_32BIT, |
830 | MOD_C4_32BIT, | |
831 | MOD_C5_32BIT, | |
592a252b L |
832 | MOD_VEX_0F12_PREFIX_0, |
833 | MOD_VEX_0F13, | |
834 | MOD_VEX_0F16_PREFIX_0, | |
835 | MOD_VEX_0F17, | |
836 | MOD_VEX_0F2B, | |
ab4e4ed5 AF |
837 | MOD_VEX_W_0_0F41_P_0_LEN_1, |
838 | MOD_VEX_W_1_0F41_P_0_LEN_1, | |
839 | MOD_VEX_W_0_0F41_P_2_LEN_1, | |
840 | MOD_VEX_W_1_0F41_P_2_LEN_1, | |
841 | MOD_VEX_W_0_0F42_P_0_LEN_1, | |
842 | MOD_VEX_W_1_0F42_P_0_LEN_1, | |
843 | MOD_VEX_W_0_0F42_P_2_LEN_1, | |
844 | MOD_VEX_W_1_0F42_P_2_LEN_1, | |
845 | MOD_VEX_W_0_0F44_P_0_LEN_1, | |
846 | MOD_VEX_W_1_0F44_P_0_LEN_1, | |
847 | MOD_VEX_W_0_0F44_P_2_LEN_1, | |
848 | MOD_VEX_W_1_0F44_P_2_LEN_1, | |
849 | MOD_VEX_W_0_0F45_P_0_LEN_1, | |
850 | MOD_VEX_W_1_0F45_P_0_LEN_1, | |
851 | MOD_VEX_W_0_0F45_P_2_LEN_1, | |
852 | MOD_VEX_W_1_0F45_P_2_LEN_1, | |
853 | MOD_VEX_W_0_0F46_P_0_LEN_1, | |
854 | MOD_VEX_W_1_0F46_P_0_LEN_1, | |
855 | MOD_VEX_W_0_0F46_P_2_LEN_1, | |
856 | MOD_VEX_W_1_0F46_P_2_LEN_1, | |
857 | MOD_VEX_W_0_0F47_P_0_LEN_1, | |
858 | MOD_VEX_W_1_0F47_P_0_LEN_1, | |
859 | MOD_VEX_W_0_0F47_P_2_LEN_1, | |
860 | MOD_VEX_W_1_0F47_P_2_LEN_1, | |
861 | MOD_VEX_W_0_0F4A_P_0_LEN_1, | |
862 | MOD_VEX_W_1_0F4A_P_0_LEN_1, | |
863 | MOD_VEX_W_0_0F4A_P_2_LEN_1, | |
864 | MOD_VEX_W_1_0F4A_P_2_LEN_1, | |
865 | MOD_VEX_W_0_0F4B_P_0_LEN_1, | |
866 | MOD_VEX_W_1_0F4B_P_0_LEN_1, | |
867 | MOD_VEX_W_0_0F4B_P_2_LEN_1, | |
592a252b L |
868 | MOD_VEX_0F50, |
869 | MOD_VEX_0F71_REG_2, | |
870 | MOD_VEX_0F71_REG_4, | |
871 | MOD_VEX_0F71_REG_6, | |
872 | MOD_VEX_0F72_REG_2, | |
873 | MOD_VEX_0F72_REG_4, | |
874 | MOD_VEX_0F72_REG_6, | |
875 | MOD_VEX_0F73_REG_2, | |
876 | MOD_VEX_0F73_REG_3, | |
877 | MOD_VEX_0F73_REG_6, | |
878 | MOD_VEX_0F73_REG_7, | |
ab4e4ed5 AF |
879 | MOD_VEX_W_0_0F91_P_0_LEN_0, |
880 | MOD_VEX_W_1_0F91_P_0_LEN_0, | |
881 | MOD_VEX_W_0_0F91_P_2_LEN_0, | |
882 | MOD_VEX_W_1_0F91_P_2_LEN_0, | |
883 | MOD_VEX_W_0_0F92_P_0_LEN_0, | |
884 | MOD_VEX_W_0_0F92_P_2_LEN_0, | |
885 | MOD_VEX_W_0_0F92_P_3_LEN_0, | |
886 | MOD_VEX_W_1_0F92_P_3_LEN_0, | |
887 | MOD_VEX_W_0_0F93_P_0_LEN_0, | |
888 | MOD_VEX_W_0_0F93_P_2_LEN_0, | |
889 | MOD_VEX_W_0_0F93_P_3_LEN_0, | |
890 | MOD_VEX_W_1_0F93_P_3_LEN_0, | |
891 | MOD_VEX_W_0_0F98_P_0_LEN_0, | |
892 | MOD_VEX_W_1_0F98_P_0_LEN_0, | |
893 | MOD_VEX_W_0_0F98_P_2_LEN_0, | |
894 | MOD_VEX_W_1_0F98_P_2_LEN_0, | |
895 | MOD_VEX_W_0_0F99_P_0_LEN_0, | |
896 | MOD_VEX_W_1_0F99_P_0_LEN_0, | |
897 | MOD_VEX_W_0_0F99_P_2_LEN_0, | |
898 | MOD_VEX_W_1_0F99_P_2_LEN_0, | |
592a252b L |
899 | MOD_VEX_0FAE_REG_2, |
900 | MOD_VEX_0FAE_REG_3, | |
901 | MOD_VEX_0FD7_PREFIX_2, | |
902 | MOD_VEX_0FE7_PREFIX_2, | |
903 | MOD_VEX_0FF0_PREFIX_3, | |
592a252b L |
904 | MOD_VEX_0F381A_PREFIX_2, |
905 | MOD_VEX_0F382A_PREFIX_2, | |
906 | MOD_VEX_0F382C_PREFIX_2, | |
907 | MOD_VEX_0F382D_PREFIX_2, | |
908 | MOD_VEX_0F382E_PREFIX_2, | |
6c30d220 L |
909 | MOD_VEX_0F382F_PREFIX_2, |
910 | MOD_VEX_0F385A_PREFIX_2, | |
911 | MOD_VEX_0F388C_PREFIX_2, | |
912 | MOD_VEX_0F388E_PREFIX_2, | |
ab4e4ed5 AF |
913 | MOD_VEX_W_0_0F3A30_P_2_LEN_0, |
914 | MOD_VEX_W_1_0F3A30_P_2_LEN_0, | |
915 | MOD_VEX_W_0_0F3A31_P_2_LEN_0, | |
916 | MOD_VEX_W_1_0F3A31_P_2_LEN_0, | |
917 | MOD_VEX_W_0_0F3A32_P_2_LEN_0, | |
918 | MOD_VEX_W_1_0F3A32_P_2_LEN_0, | |
919 | MOD_VEX_W_0_0F3A33_P_2_LEN_0, | |
920 | MOD_VEX_W_1_0F3A33_P_2_LEN_0, | |
43234a1e L |
921 | |
922 | MOD_EVEX_0F10_PREFIX_1, | |
923 | MOD_EVEX_0F10_PREFIX_3, | |
924 | MOD_EVEX_0F11_PREFIX_1, | |
925 | MOD_EVEX_0F11_PREFIX_3, | |
926 | MOD_EVEX_0F12_PREFIX_0, | |
927 | MOD_EVEX_0F16_PREFIX_0, | |
928 | MOD_EVEX_0F38C6_REG_1, | |
929 | MOD_EVEX_0F38C6_REG_2, | |
930 | MOD_EVEX_0F38C6_REG_5, | |
931 | MOD_EVEX_0F38C6_REG_6, | |
932 | MOD_EVEX_0F38C7_REG_1, | |
933 | MOD_EVEX_0F38C7_REG_2, | |
934 | MOD_EVEX_0F38C7_REG_5, | |
935 | MOD_EVEX_0F38C7_REG_6 | |
51e7da1b | 936 | }; |
1ceb70f8 | 937 | |
51e7da1b L |
938 | enum |
939 | { | |
42164a71 L |
940 | RM_C6_REG_7 = 0, |
941 | RM_C7_REG_7, | |
942 | RM_0F01_REG_0, | |
3873ba12 L |
943 | RM_0F01_REG_1, |
944 | RM_0F01_REG_2, | |
945 | RM_0F01_REG_3, | |
8eab4136 | 946 | RM_0F01_REG_5, |
3873ba12 | 947 | RM_0F01_REG_7, |
603555e5 | 948 | RM_0F1E_MOD_3_REG_7, |
3873ba12 L |
949 | RM_0FAE_REG_6, |
950 | RM_0FAE_REG_7 | |
51e7da1b | 951 | }; |
1ceb70f8 | 952 | |
51e7da1b L |
953 | enum |
954 | { | |
955 | PREFIX_90 = 0, | |
603555e5 | 956 | PREFIX_MOD_0_0F01_REG_5, |
2234eee6 | 957 | PREFIX_MOD_3_0F01_REG_5_RM_0, |
603555e5 | 958 | PREFIX_MOD_3_0F01_REG_5_RM_2, |
3873ba12 L |
959 | PREFIX_0F10, |
960 | PREFIX_0F11, | |
961 | PREFIX_0F12, | |
962 | PREFIX_0F16, | |
7e8b059b L |
963 | PREFIX_0F1A, |
964 | PREFIX_0F1B, | |
603555e5 | 965 | PREFIX_0F1E, |
3873ba12 L |
966 | PREFIX_0F2A, |
967 | PREFIX_0F2B, | |
968 | PREFIX_0F2C, | |
969 | PREFIX_0F2D, | |
970 | PREFIX_0F2E, | |
971 | PREFIX_0F2F, | |
972 | PREFIX_0F51, | |
973 | PREFIX_0F52, | |
974 | PREFIX_0F53, | |
975 | PREFIX_0F58, | |
976 | PREFIX_0F59, | |
977 | PREFIX_0F5A, | |
978 | PREFIX_0F5B, | |
979 | PREFIX_0F5C, | |
980 | PREFIX_0F5D, | |
981 | PREFIX_0F5E, | |
982 | PREFIX_0F5F, | |
983 | PREFIX_0F60, | |
984 | PREFIX_0F61, | |
985 | PREFIX_0F62, | |
986 | PREFIX_0F6C, | |
987 | PREFIX_0F6D, | |
988 | PREFIX_0F6F, | |
989 | PREFIX_0F70, | |
990 | PREFIX_0F73_REG_3, | |
991 | PREFIX_0F73_REG_7, | |
992 | PREFIX_0F78, | |
993 | PREFIX_0F79, | |
994 | PREFIX_0F7C, | |
995 | PREFIX_0F7D, | |
996 | PREFIX_0F7E, | |
997 | PREFIX_0F7F, | |
c7b8aa3a L |
998 | PREFIX_0FAE_REG_0, |
999 | PREFIX_0FAE_REG_1, | |
1000 | PREFIX_0FAE_REG_2, | |
1001 | PREFIX_0FAE_REG_3, | |
6b40c462 L |
1002 | PREFIX_MOD_0_0FAE_REG_4, |
1003 | PREFIX_MOD_3_0FAE_REG_4, | |
603555e5 | 1004 | PREFIX_MOD_0_0FAE_REG_5, |
2234eee6 | 1005 | PREFIX_MOD_3_0FAE_REG_5, |
c5e7287a | 1006 | PREFIX_0FAE_REG_6, |
963f3586 | 1007 | PREFIX_0FAE_REG_7, |
3873ba12 | 1008 | PREFIX_0FB8, |
f12dc422 | 1009 | PREFIX_0FBC, |
3873ba12 L |
1010 | PREFIX_0FBD, |
1011 | PREFIX_0FC2, | |
a8484f96 | 1012 | PREFIX_MOD_0_0FC3, |
f24bcbaa L |
1013 | PREFIX_MOD_0_0FC7_REG_6, |
1014 | PREFIX_MOD_3_0FC7_REG_6, | |
1015 | PREFIX_MOD_3_0FC7_REG_7, | |
3873ba12 L |
1016 | PREFIX_0FD0, |
1017 | PREFIX_0FD6, | |
1018 | PREFIX_0FE6, | |
1019 | PREFIX_0FE7, | |
1020 | PREFIX_0FF0, | |
1021 | PREFIX_0FF7, | |
1022 | PREFIX_0F3810, | |
1023 | PREFIX_0F3814, | |
1024 | PREFIX_0F3815, | |
1025 | PREFIX_0F3817, | |
1026 | PREFIX_0F3820, | |
1027 | PREFIX_0F3821, | |
1028 | PREFIX_0F3822, | |
1029 | PREFIX_0F3823, | |
1030 | PREFIX_0F3824, | |
1031 | PREFIX_0F3825, | |
1032 | PREFIX_0F3828, | |
1033 | PREFIX_0F3829, | |
1034 | PREFIX_0F382A, | |
1035 | PREFIX_0F382B, | |
1036 | PREFIX_0F3830, | |
1037 | PREFIX_0F3831, | |
1038 | PREFIX_0F3832, | |
1039 | PREFIX_0F3833, | |
1040 | PREFIX_0F3834, | |
1041 | PREFIX_0F3835, | |
1042 | PREFIX_0F3837, | |
1043 | PREFIX_0F3838, | |
1044 | PREFIX_0F3839, | |
1045 | PREFIX_0F383A, | |
1046 | PREFIX_0F383B, | |
1047 | PREFIX_0F383C, | |
1048 | PREFIX_0F383D, | |
1049 | PREFIX_0F383E, | |
1050 | PREFIX_0F383F, | |
1051 | PREFIX_0F3840, | |
1052 | PREFIX_0F3841, | |
1053 | PREFIX_0F3880, | |
1054 | PREFIX_0F3881, | |
6c30d220 | 1055 | PREFIX_0F3882, |
a0046408 L |
1056 | PREFIX_0F38C8, |
1057 | PREFIX_0F38C9, | |
1058 | PREFIX_0F38CA, | |
1059 | PREFIX_0F38CB, | |
1060 | PREFIX_0F38CC, | |
1061 | PREFIX_0F38CD, | |
48521003 | 1062 | PREFIX_0F38CF, |
3873ba12 L |
1063 | PREFIX_0F38DB, |
1064 | PREFIX_0F38DC, | |
1065 | PREFIX_0F38DD, | |
1066 | PREFIX_0F38DE, | |
1067 | PREFIX_0F38DF, | |
1068 | PREFIX_0F38F0, | |
1069 | PREFIX_0F38F1, | |
603555e5 | 1070 | PREFIX_0F38F5, |
e2e1fcde | 1071 | PREFIX_0F38F6, |
3873ba12 L |
1072 | PREFIX_0F3A08, |
1073 | PREFIX_0F3A09, | |
1074 | PREFIX_0F3A0A, | |
1075 | PREFIX_0F3A0B, | |
1076 | PREFIX_0F3A0C, | |
1077 | PREFIX_0F3A0D, | |
1078 | PREFIX_0F3A0E, | |
1079 | PREFIX_0F3A14, | |
1080 | PREFIX_0F3A15, | |
1081 | PREFIX_0F3A16, | |
1082 | PREFIX_0F3A17, | |
1083 | PREFIX_0F3A20, | |
1084 | PREFIX_0F3A21, | |
1085 | PREFIX_0F3A22, | |
1086 | PREFIX_0F3A40, | |
1087 | PREFIX_0F3A41, | |
1088 | PREFIX_0F3A42, | |
1089 | PREFIX_0F3A44, | |
1090 | PREFIX_0F3A60, | |
1091 | PREFIX_0F3A61, | |
1092 | PREFIX_0F3A62, | |
1093 | PREFIX_0F3A63, | |
a0046408 | 1094 | PREFIX_0F3ACC, |
48521003 IT |
1095 | PREFIX_0F3ACE, |
1096 | PREFIX_0F3ACF, | |
3873ba12 | 1097 | PREFIX_0F3ADF, |
592a252b L |
1098 | PREFIX_VEX_0F10, |
1099 | PREFIX_VEX_0F11, | |
1100 | PREFIX_VEX_0F12, | |
1101 | PREFIX_VEX_0F16, | |
1102 | PREFIX_VEX_0F2A, | |
1103 | PREFIX_VEX_0F2C, | |
1104 | PREFIX_VEX_0F2D, | |
1105 | PREFIX_VEX_0F2E, | |
1106 | PREFIX_VEX_0F2F, | |
43234a1e L |
1107 | PREFIX_VEX_0F41, |
1108 | PREFIX_VEX_0F42, | |
1109 | PREFIX_VEX_0F44, | |
1110 | PREFIX_VEX_0F45, | |
1111 | PREFIX_VEX_0F46, | |
1112 | PREFIX_VEX_0F47, | |
1ba585e8 | 1113 | PREFIX_VEX_0F4A, |
43234a1e | 1114 | PREFIX_VEX_0F4B, |
592a252b L |
1115 | PREFIX_VEX_0F51, |
1116 | PREFIX_VEX_0F52, | |
1117 | PREFIX_VEX_0F53, | |
1118 | PREFIX_VEX_0F58, | |
1119 | PREFIX_VEX_0F59, | |
1120 | PREFIX_VEX_0F5A, | |
1121 | PREFIX_VEX_0F5B, | |
1122 | PREFIX_VEX_0F5C, | |
1123 | PREFIX_VEX_0F5D, | |
1124 | PREFIX_VEX_0F5E, | |
1125 | PREFIX_VEX_0F5F, | |
1126 | PREFIX_VEX_0F60, | |
1127 | PREFIX_VEX_0F61, | |
1128 | PREFIX_VEX_0F62, | |
1129 | PREFIX_VEX_0F63, | |
1130 | PREFIX_VEX_0F64, | |
1131 | PREFIX_VEX_0F65, | |
1132 | PREFIX_VEX_0F66, | |
1133 | PREFIX_VEX_0F67, | |
1134 | PREFIX_VEX_0F68, | |
1135 | PREFIX_VEX_0F69, | |
1136 | PREFIX_VEX_0F6A, | |
1137 | PREFIX_VEX_0F6B, | |
1138 | PREFIX_VEX_0F6C, | |
1139 | PREFIX_VEX_0F6D, | |
1140 | PREFIX_VEX_0F6E, | |
1141 | PREFIX_VEX_0F6F, | |
1142 | PREFIX_VEX_0F70, | |
1143 | PREFIX_VEX_0F71_REG_2, | |
1144 | PREFIX_VEX_0F71_REG_4, | |
1145 | PREFIX_VEX_0F71_REG_6, | |
1146 | PREFIX_VEX_0F72_REG_2, | |
1147 | PREFIX_VEX_0F72_REG_4, | |
1148 | PREFIX_VEX_0F72_REG_6, | |
1149 | PREFIX_VEX_0F73_REG_2, | |
1150 | PREFIX_VEX_0F73_REG_3, | |
1151 | PREFIX_VEX_0F73_REG_6, | |
1152 | PREFIX_VEX_0F73_REG_7, | |
1153 | PREFIX_VEX_0F74, | |
1154 | PREFIX_VEX_0F75, | |
1155 | PREFIX_VEX_0F76, | |
1156 | PREFIX_VEX_0F77, | |
1157 | PREFIX_VEX_0F7C, | |
1158 | PREFIX_VEX_0F7D, | |
1159 | PREFIX_VEX_0F7E, | |
1160 | PREFIX_VEX_0F7F, | |
43234a1e L |
1161 | PREFIX_VEX_0F90, |
1162 | PREFIX_VEX_0F91, | |
1163 | PREFIX_VEX_0F92, | |
1164 | PREFIX_VEX_0F93, | |
1165 | PREFIX_VEX_0F98, | |
1ba585e8 | 1166 | PREFIX_VEX_0F99, |
592a252b L |
1167 | PREFIX_VEX_0FC2, |
1168 | PREFIX_VEX_0FC4, | |
1169 | PREFIX_VEX_0FC5, | |
1170 | PREFIX_VEX_0FD0, | |
1171 | PREFIX_VEX_0FD1, | |
1172 | PREFIX_VEX_0FD2, | |
1173 | PREFIX_VEX_0FD3, | |
1174 | PREFIX_VEX_0FD4, | |
1175 | PREFIX_VEX_0FD5, | |
1176 | PREFIX_VEX_0FD6, | |
1177 | PREFIX_VEX_0FD7, | |
1178 | PREFIX_VEX_0FD8, | |
1179 | PREFIX_VEX_0FD9, | |
1180 | PREFIX_VEX_0FDA, | |
1181 | PREFIX_VEX_0FDB, | |
1182 | PREFIX_VEX_0FDC, | |
1183 | PREFIX_VEX_0FDD, | |
1184 | PREFIX_VEX_0FDE, | |
1185 | PREFIX_VEX_0FDF, | |
1186 | PREFIX_VEX_0FE0, | |
1187 | PREFIX_VEX_0FE1, | |
1188 | PREFIX_VEX_0FE2, | |
1189 | PREFIX_VEX_0FE3, | |
1190 | PREFIX_VEX_0FE4, | |
1191 | PREFIX_VEX_0FE5, | |
1192 | PREFIX_VEX_0FE6, | |
1193 | PREFIX_VEX_0FE7, | |
1194 | PREFIX_VEX_0FE8, | |
1195 | PREFIX_VEX_0FE9, | |
1196 | PREFIX_VEX_0FEA, | |
1197 | PREFIX_VEX_0FEB, | |
1198 | PREFIX_VEX_0FEC, | |
1199 | PREFIX_VEX_0FED, | |
1200 | PREFIX_VEX_0FEE, | |
1201 | PREFIX_VEX_0FEF, | |
1202 | PREFIX_VEX_0FF0, | |
1203 | PREFIX_VEX_0FF1, | |
1204 | PREFIX_VEX_0FF2, | |
1205 | PREFIX_VEX_0FF3, | |
1206 | PREFIX_VEX_0FF4, | |
1207 | PREFIX_VEX_0FF5, | |
1208 | PREFIX_VEX_0FF6, | |
1209 | PREFIX_VEX_0FF7, | |
1210 | PREFIX_VEX_0FF8, | |
1211 | PREFIX_VEX_0FF9, | |
1212 | PREFIX_VEX_0FFA, | |
1213 | PREFIX_VEX_0FFB, | |
1214 | PREFIX_VEX_0FFC, | |
1215 | PREFIX_VEX_0FFD, | |
1216 | PREFIX_VEX_0FFE, | |
1217 | PREFIX_VEX_0F3800, | |
1218 | PREFIX_VEX_0F3801, | |
1219 | PREFIX_VEX_0F3802, | |
1220 | PREFIX_VEX_0F3803, | |
1221 | PREFIX_VEX_0F3804, | |
1222 | PREFIX_VEX_0F3805, | |
1223 | PREFIX_VEX_0F3806, | |
1224 | PREFIX_VEX_0F3807, | |
1225 | PREFIX_VEX_0F3808, | |
1226 | PREFIX_VEX_0F3809, | |
1227 | PREFIX_VEX_0F380A, | |
1228 | PREFIX_VEX_0F380B, | |
1229 | PREFIX_VEX_0F380C, | |
1230 | PREFIX_VEX_0F380D, | |
1231 | PREFIX_VEX_0F380E, | |
1232 | PREFIX_VEX_0F380F, | |
1233 | PREFIX_VEX_0F3813, | |
6c30d220 | 1234 | PREFIX_VEX_0F3816, |
592a252b L |
1235 | PREFIX_VEX_0F3817, |
1236 | PREFIX_VEX_0F3818, | |
1237 | PREFIX_VEX_0F3819, | |
1238 | PREFIX_VEX_0F381A, | |
1239 | PREFIX_VEX_0F381C, | |
1240 | PREFIX_VEX_0F381D, | |
1241 | PREFIX_VEX_0F381E, | |
1242 | PREFIX_VEX_0F3820, | |
1243 | PREFIX_VEX_0F3821, | |
1244 | PREFIX_VEX_0F3822, | |
1245 | PREFIX_VEX_0F3823, | |
1246 | PREFIX_VEX_0F3824, | |
1247 | PREFIX_VEX_0F3825, | |
1248 | PREFIX_VEX_0F3828, | |
1249 | PREFIX_VEX_0F3829, | |
1250 | PREFIX_VEX_0F382A, | |
1251 | PREFIX_VEX_0F382B, | |
1252 | PREFIX_VEX_0F382C, | |
1253 | PREFIX_VEX_0F382D, | |
1254 | PREFIX_VEX_0F382E, | |
1255 | PREFIX_VEX_0F382F, | |
1256 | PREFIX_VEX_0F3830, | |
1257 | PREFIX_VEX_0F3831, | |
1258 | PREFIX_VEX_0F3832, | |
1259 | PREFIX_VEX_0F3833, | |
1260 | PREFIX_VEX_0F3834, | |
1261 | PREFIX_VEX_0F3835, | |
6c30d220 | 1262 | PREFIX_VEX_0F3836, |
592a252b L |
1263 | PREFIX_VEX_0F3837, |
1264 | PREFIX_VEX_0F3838, | |
1265 | PREFIX_VEX_0F3839, | |
1266 | PREFIX_VEX_0F383A, | |
1267 | PREFIX_VEX_0F383B, | |
1268 | PREFIX_VEX_0F383C, | |
1269 | PREFIX_VEX_0F383D, | |
1270 | PREFIX_VEX_0F383E, | |
1271 | PREFIX_VEX_0F383F, | |
1272 | PREFIX_VEX_0F3840, | |
1273 | PREFIX_VEX_0F3841, | |
6c30d220 L |
1274 | PREFIX_VEX_0F3845, |
1275 | PREFIX_VEX_0F3846, | |
1276 | PREFIX_VEX_0F3847, | |
1277 | PREFIX_VEX_0F3858, | |
1278 | PREFIX_VEX_0F3859, | |
1279 | PREFIX_VEX_0F385A, | |
1280 | PREFIX_VEX_0F3878, | |
1281 | PREFIX_VEX_0F3879, | |
1282 | PREFIX_VEX_0F388C, | |
1283 | PREFIX_VEX_0F388E, | |
1284 | PREFIX_VEX_0F3890, | |
1285 | PREFIX_VEX_0F3891, | |
1286 | PREFIX_VEX_0F3892, | |
1287 | PREFIX_VEX_0F3893, | |
592a252b L |
1288 | PREFIX_VEX_0F3896, |
1289 | PREFIX_VEX_0F3897, | |
1290 | PREFIX_VEX_0F3898, | |
1291 | PREFIX_VEX_0F3899, | |
1292 | PREFIX_VEX_0F389A, | |
1293 | PREFIX_VEX_0F389B, | |
1294 | PREFIX_VEX_0F389C, | |
1295 | PREFIX_VEX_0F389D, | |
1296 | PREFIX_VEX_0F389E, | |
1297 | PREFIX_VEX_0F389F, | |
1298 | PREFIX_VEX_0F38A6, | |
1299 | PREFIX_VEX_0F38A7, | |
1300 | PREFIX_VEX_0F38A8, | |
1301 | PREFIX_VEX_0F38A9, | |
1302 | PREFIX_VEX_0F38AA, | |
1303 | PREFIX_VEX_0F38AB, | |
1304 | PREFIX_VEX_0F38AC, | |
1305 | PREFIX_VEX_0F38AD, | |
1306 | PREFIX_VEX_0F38AE, | |
1307 | PREFIX_VEX_0F38AF, | |
1308 | PREFIX_VEX_0F38B6, | |
1309 | PREFIX_VEX_0F38B7, | |
1310 | PREFIX_VEX_0F38B8, | |
1311 | PREFIX_VEX_0F38B9, | |
1312 | PREFIX_VEX_0F38BA, | |
1313 | PREFIX_VEX_0F38BB, | |
1314 | PREFIX_VEX_0F38BC, | |
1315 | PREFIX_VEX_0F38BD, | |
1316 | PREFIX_VEX_0F38BE, | |
1317 | PREFIX_VEX_0F38BF, | |
48521003 | 1318 | PREFIX_VEX_0F38CF, |
592a252b L |
1319 | PREFIX_VEX_0F38DB, |
1320 | PREFIX_VEX_0F38DC, | |
1321 | PREFIX_VEX_0F38DD, | |
1322 | PREFIX_VEX_0F38DE, | |
1323 | PREFIX_VEX_0F38DF, | |
f12dc422 L |
1324 | PREFIX_VEX_0F38F2, |
1325 | PREFIX_VEX_0F38F3_REG_1, | |
1326 | PREFIX_VEX_0F38F3_REG_2, | |
1327 | PREFIX_VEX_0F38F3_REG_3, | |
6c30d220 L |
1328 | PREFIX_VEX_0F38F5, |
1329 | PREFIX_VEX_0F38F6, | |
f12dc422 | 1330 | PREFIX_VEX_0F38F7, |
6c30d220 L |
1331 | PREFIX_VEX_0F3A00, |
1332 | PREFIX_VEX_0F3A01, | |
1333 | PREFIX_VEX_0F3A02, | |
592a252b L |
1334 | PREFIX_VEX_0F3A04, |
1335 | PREFIX_VEX_0F3A05, | |
1336 | PREFIX_VEX_0F3A06, | |
1337 | PREFIX_VEX_0F3A08, | |
1338 | PREFIX_VEX_0F3A09, | |
1339 | PREFIX_VEX_0F3A0A, | |
1340 | PREFIX_VEX_0F3A0B, | |
1341 | PREFIX_VEX_0F3A0C, | |
1342 | PREFIX_VEX_0F3A0D, | |
1343 | PREFIX_VEX_0F3A0E, | |
1344 | PREFIX_VEX_0F3A0F, | |
1345 | PREFIX_VEX_0F3A14, | |
1346 | PREFIX_VEX_0F3A15, | |
1347 | PREFIX_VEX_0F3A16, | |
1348 | PREFIX_VEX_0F3A17, | |
1349 | PREFIX_VEX_0F3A18, | |
1350 | PREFIX_VEX_0F3A19, | |
1351 | PREFIX_VEX_0F3A1D, | |
1352 | PREFIX_VEX_0F3A20, | |
1353 | PREFIX_VEX_0F3A21, | |
1354 | PREFIX_VEX_0F3A22, | |
43234a1e | 1355 | PREFIX_VEX_0F3A30, |
1ba585e8 | 1356 | PREFIX_VEX_0F3A31, |
43234a1e | 1357 | PREFIX_VEX_0F3A32, |
1ba585e8 | 1358 | PREFIX_VEX_0F3A33, |
6c30d220 L |
1359 | PREFIX_VEX_0F3A38, |
1360 | PREFIX_VEX_0F3A39, | |
592a252b L |
1361 | PREFIX_VEX_0F3A40, |
1362 | PREFIX_VEX_0F3A41, | |
1363 | PREFIX_VEX_0F3A42, | |
1364 | PREFIX_VEX_0F3A44, | |
6c30d220 | 1365 | PREFIX_VEX_0F3A46, |
592a252b L |
1366 | PREFIX_VEX_0F3A48, |
1367 | PREFIX_VEX_0F3A49, | |
1368 | PREFIX_VEX_0F3A4A, | |
1369 | PREFIX_VEX_0F3A4B, | |
1370 | PREFIX_VEX_0F3A4C, | |
1371 | PREFIX_VEX_0F3A5C, | |
1372 | PREFIX_VEX_0F3A5D, | |
1373 | PREFIX_VEX_0F3A5E, | |
1374 | PREFIX_VEX_0F3A5F, | |
1375 | PREFIX_VEX_0F3A60, | |
1376 | PREFIX_VEX_0F3A61, | |
1377 | PREFIX_VEX_0F3A62, | |
1378 | PREFIX_VEX_0F3A63, | |
1379 | PREFIX_VEX_0F3A68, | |
1380 | PREFIX_VEX_0F3A69, | |
1381 | PREFIX_VEX_0F3A6A, | |
1382 | PREFIX_VEX_0F3A6B, | |
1383 | PREFIX_VEX_0F3A6C, | |
1384 | PREFIX_VEX_0F3A6D, | |
1385 | PREFIX_VEX_0F3A6E, | |
1386 | PREFIX_VEX_0F3A6F, | |
1387 | PREFIX_VEX_0F3A78, | |
1388 | PREFIX_VEX_0F3A79, | |
1389 | PREFIX_VEX_0F3A7A, | |
1390 | PREFIX_VEX_0F3A7B, | |
1391 | PREFIX_VEX_0F3A7C, | |
1392 | PREFIX_VEX_0F3A7D, | |
1393 | PREFIX_VEX_0F3A7E, | |
1394 | PREFIX_VEX_0F3A7F, | |
48521003 IT |
1395 | PREFIX_VEX_0F3ACE, |
1396 | PREFIX_VEX_0F3ACF, | |
6c30d220 | 1397 | PREFIX_VEX_0F3ADF, |
43234a1e L |
1398 | PREFIX_VEX_0F3AF0, |
1399 | ||
1400 | PREFIX_EVEX_0F10, | |
1401 | PREFIX_EVEX_0F11, | |
1402 | PREFIX_EVEX_0F12, | |
1403 | PREFIX_EVEX_0F13, | |
1404 | PREFIX_EVEX_0F14, | |
1405 | PREFIX_EVEX_0F15, | |
1406 | PREFIX_EVEX_0F16, | |
1407 | PREFIX_EVEX_0F17, | |
1408 | PREFIX_EVEX_0F28, | |
1409 | PREFIX_EVEX_0F29, | |
1410 | PREFIX_EVEX_0F2A, | |
1411 | PREFIX_EVEX_0F2B, | |
1412 | PREFIX_EVEX_0F2C, | |
1413 | PREFIX_EVEX_0F2D, | |
1414 | PREFIX_EVEX_0F2E, | |
1415 | PREFIX_EVEX_0F2F, | |
1416 | PREFIX_EVEX_0F51, | |
90a915bf IT |
1417 | PREFIX_EVEX_0F54, |
1418 | PREFIX_EVEX_0F55, | |
1419 | PREFIX_EVEX_0F56, | |
1420 | PREFIX_EVEX_0F57, | |
43234a1e L |
1421 | PREFIX_EVEX_0F58, |
1422 | PREFIX_EVEX_0F59, | |
1423 | PREFIX_EVEX_0F5A, | |
1424 | PREFIX_EVEX_0F5B, | |
1425 | PREFIX_EVEX_0F5C, | |
1426 | PREFIX_EVEX_0F5D, | |
1427 | PREFIX_EVEX_0F5E, | |
1428 | PREFIX_EVEX_0F5F, | |
1ba585e8 IT |
1429 | PREFIX_EVEX_0F60, |
1430 | PREFIX_EVEX_0F61, | |
43234a1e | 1431 | PREFIX_EVEX_0F62, |
1ba585e8 IT |
1432 | PREFIX_EVEX_0F63, |
1433 | PREFIX_EVEX_0F64, | |
1434 | PREFIX_EVEX_0F65, | |
43234a1e | 1435 | PREFIX_EVEX_0F66, |
1ba585e8 IT |
1436 | PREFIX_EVEX_0F67, |
1437 | PREFIX_EVEX_0F68, | |
1438 | PREFIX_EVEX_0F69, | |
43234a1e | 1439 | PREFIX_EVEX_0F6A, |
1ba585e8 | 1440 | PREFIX_EVEX_0F6B, |
43234a1e L |
1441 | PREFIX_EVEX_0F6C, |
1442 | PREFIX_EVEX_0F6D, | |
1443 | PREFIX_EVEX_0F6E, | |
1444 | PREFIX_EVEX_0F6F, | |
1445 | PREFIX_EVEX_0F70, | |
1ba585e8 IT |
1446 | PREFIX_EVEX_0F71_REG_2, |
1447 | PREFIX_EVEX_0F71_REG_4, | |
1448 | PREFIX_EVEX_0F71_REG_6, | |
43234a1e L |
1449 | PREFIX_EVEX_0F72_REG_0, |
1450 | PREFIX_EVEX_0F72_REG_1, | |
1451 | PREFIX_EVEX_0F72_REG_2, | |
1452 | PREFIX_EVEX_0F72_REG_4, | |
1453 | PREFIX_EVEX_0F72_REG_6, | |
1454 | PREFIX_EVEX_0F73_REG_2, | |
1ba585e8 | 1455 | PREFIX_EVEX_0F73_REG_3, |
43234a1e | 1456 | PREFIX_EVEX_0F73_REG_6, |
1ba585e8 IT |
1457 | PREFIX_EVEX_0F73_REG_7, |
1458 | PREFIX_EVEX_0F74, | |
1459 | PREFIX_EVEX_0F75, | |
43234a1e L |
1460 | PREFIX_EVEX_0F76, |
1461 | PREFIX_EVEX_0F78, | |
1462 | PREFIX_EVEX_0F79, | |
1463 | PREFIX_EVEX_0F7A, | |
1464 | PREFIX_EVEX_0F7B, | |
1465 | PREFIX_EVEX_0F7E, | |
1466 | PREFIX_EVEX_0F7F, | |
1467 | PREFIX_EVEX_0FC2, | |
1ba585e8 IT |
1468 | PREFIX_EVEX_0FC4, |
1469 | PREFIX_EVEX_0FC5, | |
43234a1e | 1470 | PREFIX_EVEX_0FC6, |
1ba585e8 | 1471 | PREFIX_EVEX_0FD1, |
43234a1e L |
1472 | PREFIX_EVEX_0FD2, |
1473 | PREFIX_EVEX_0FD3, | |
1474 | PREFIX_EVEX_0FD4, | |
1ba585e8 | 1475 | PREFIX_EVEX_0FD5, |
43234a1e | 1476 | PREFIX_EVEX_0FD6, |
1ba585e8 IT |
1477 | PREFIX_EVEX_0FD8, |
1478 | PREFIX_EVEX_0FD9, | |
1479 | PREFIX_EVEX_0FDA, | |
43234a1e | 1480 | PREFIX_EVEX_0FDB, |
1ba585e8 IT |
1481 | PREFIX_EVEX_0FDC, |
1482 | PREFIX_EVEX_0FDD, | |
1483 | PREFIX_EVEX_0FDE, | |
43234a1e | 1484 | PREFIX_EVEX_0FDF, |
1ba585e8 IT |
1485 | PREFIX_EVEX_0FE0, |
1486 | PREFIX_EVEX_0FE1, | |
43234a1e | 1487 | PREFIX_EVEX_0FE2, |
1ba585e8 IT |
1488 | PREFIX_EVEX_0FE3, |
1489 | PREFIX_EVEX_0FE4, | |
1490 | PREFIX_EVEX_0FE5, | |
43234a1e L |
1491 | PREFIX_EVEX_0FE6, |
1492 | PREFIX_EVEX_0FE7, | |
1ba585e8 IT |
1493 | PREFIX_EVEX_0FE8, |
1494 | PREFIX_EVEX_0FE9, | |
1495 | PREFIX_EVEX_0FEA, | |
43234a1e | 1496 | PREFIX_EVEX_0FEB, |
1ba585e8 IT |
1497 | PREFIX_EVEX_0FEC, |
1498 | PREFIX_EVEX_0FED, | |
1499 | PREFIX_EVEX_0FEE, | |
43234a1e | 1500 | PREFIX_EVEX_0FEF, |
1ba585e8 | 1501 | PREFIX_EVEX_0FF1, |
43234a1e L |
1502 | PREFIX_EVEX_0FF2, |
1503 | PREFIX_EVEX_0FF3, | |
1504 | PREFIX_EVEX_0FF4, | |
1ba585e8 IT |
1505 | PREFIX_EVEX_0FF5, |
1506 | PREFIX_EVEX_0FF6, | |
1507 | PREFIX_EVEX_0FF8, | |
1508 | PREFIX_EVEX_0FF9, | |
43234a1e L |
1509 | PREFIX_EVEX_0FFA, |
1510 | PREFIX_EVEX_0FFB, | |
1ba585e8 IT |
1511 | PREFIX_EVEX_0FFC, |
1512 | PREFIX_EVEX_0FFD, | |
43234a1e | 1513 | PREFIX_EVEX_0FFE, |
1ba585e8 IT |
1514 | PREFIX_EVEX_0F3800, |
1515 | PREFIX_EVEX_0F3804, | |
1516 | PREFIX_EVEX_0F380B, | |
43234a1e L |
1517 | PREFIX_EVEX_0F380C, |
1518 | PREFIX_EVEX_0F380D, | |
1ba585e8 | 1519 | PREFIX_EVEX_0F3810, |
43234a1e L |
1520 | PREFIX_EVEX_0F3811, |
1521 | PREFIX_EVEX_0F3812, | |
1522 | PREFIX_EVEX_0F3813, | |
1523 | PREFIX_EVEX_0F3814, | |
1524 | PREFIX_EVEX_0F3815, | |
1525 | PREFIX_EVEX_0F3816, | |
1526 | PREFIX_EVEX_0F3818, | |
1527 | PREFIX_EVEX_0F3819, | |
1528 | PREFIX_EVEX_0F381A, | |
1529 | PREFIX_EVEX_0F381B, | |
1ba585e8 IT |
1530 | PREFIX_EVEX_0F381C, |
1531 | PREFIX_EVEX_0F381D, | |
43234a1e L |
1532 | PREFIX_EVEX_0F381E, |
1533 | PREFIX_EVEX_0F381F, | |
1ba585e8 | 1534 | PREFIX_EVEX_0F3820, |
43234a1e L |
1535 | PREFIX_EVEX_0F3821, |
1536 | PREFIX_EVEX_0F3822, | |
1537 | PREFIX_EVEX_0F3823, | |
1538 | PREFIX_EVEX_0F3824, | |
1539 | PREFIX_EVEX_0F3825, | |
1ba585e8 | 1540 | PREFIX_EVEX_0F3826, |
43234a1e L |
1541 | PREFIX_EVEX_0F3827, |
1542 | PREFIX_EVEX_0F3828, | |
1543 | PREFIX_EVEX_0F3829, | |
1544 | PREFIX_EVEX_0F382A, | |
1ba585e8 | 1545 | PREFIX_EVEX_0F382B, |
43234a1e L |
1546 | PREFIX_EVEX_0F382C, |
1547 | PREFIX_EVEX_0F382D, | |
1ba585e8 | 1548 | PREFIX_EVEX_0F3830, |
43234a1e L |
1549 | PREFIX_EVEX_0F3831, |
1550 | PREFIX_EVEX_0F3832, | |
1551 | PREFIX_EVEX_0F3833, | |
1552 | PREFIX_EVEX_0F3834, | |
1553 | PREFIX_EVEX_0F3835, | |
1554 | PREFIX_EVEX_0F3836, | |
1555 | PREFIX_EVEX_0F3837, | |
1ba585e8 | 1556 | PREFIX_EVEX_0F3838, |
43234a1e L |
1557 | PREFIX_EVEX_0F3839, |
1558 | PREFIX_EVEX_0F383A, | |
1559 | PREFIX_EVEX_0F383B, | |
1ba585e8 | 1560 | PREFIX_EVEX_0F383C, |
43234a1e | 1561 | PREFIX_EVEX_0F383D, |
1ba585e8 | 1562 | PREFIX_EVEX_0F383E, |
43234a1e L |
1563 | PREFIX_EVEX_0F383F, |
1564 | PREFIX_EVEX_0F3840, | |
1565 | PREFIX_EVEX_0F3842, | |
1566 | PREFIX_EVEX_0F3843, | |
1567 | PREFIX_EVEX_0F3844, | |
1568 | PREFIX_EVEX_0F3845, | |
1569 | PREFIX_EVEX_0F3846, | |
1570 | PREFIX_EVEX_0F3847, | |
1571 | PREFIX_EVEX_0F384C, | |
1572 | PREFIX_EVEX_0F384D, | |
1573 | PREFIX_EVEX_0F384E, | |
1574 | PREFIX_EVEX_0F384F, | |
8cfcb765 IT |
1575 | PREFIX_EVEX_0F3850, |
1576 | PREFIX_EVEX_0F3851, | |
47acf0bd IT |
1577 | PREFIX_EVEX_0F3852, |
1578 | PREFIX_EVEX_0F3853, | |
ee6872be | 1579 | PREFIX_EVEX_0F3854, |
620214f7 | 1580 | PREFIX_EVEX_0F3855, |
43234a1e L |
1581 | PREFIX_EVEX_0F3858, |
1582 | PREFIX_EVEX_0F3859, | |
1583 | PREFIX_EVEX_0F385A, | |
1584 | PREFIX_EVEX_0F385B, | |
53467f57 IT |
1585 | PREFIX_EVEX_0F3862, |
1586 | PREFIX_EVEX_0F3863, | |
43234a1e L |
1587 | PREFIX_EVEX_0F3864, |
1588 | PREFIX_EVEX_0F3865, | |
1ba585e8 | 1589 | PREFIX_EVEX_0F3866, |
53467f57 IT |
1590 | PREFIX_EVEX_0F3870, |
1591 | PREFIX_EVEX_0F3871, | |
1592 | PREFIX_EVEX_0F3872, | |
1593 | PREFIX_EVEX_0F3873, | |
1ba585e8 | 1594 | PREFIX_EVEX_0F3875, |
43234a1e L |
1595 | PREFIX_EVEX_0F3876, |
1596 | PREFIX_EVEX_0F3877, | |
1ba585e8 IT |
1597 | PREFIX_EVEX_0F3878, |
1598 | PREFIX_EVEX_0F3879, | |
1599 | PREFIX_EVEX_0F387A, | |
1600 | PREFIX_EVEX_0F387B, | |
43234a1e | 1601 | PREFIX_EVEX_0F387C, |
1ba585e8 | 1602 | PREFIX_EVEX_0F387D, |
43234a1e L |
1603 | PREFIX_EVEX_0F387E, |
1604 | PREFIX_EVEX_0F387F, | |
14f195c9 | 1605 | PREFIX_EVEX_0F3883, |
43234a1e L |
1606 | PREFIX_EVEX_0F3888, |
1607 | PREFIX_EVEX_0F3889, | |
1608 | PREFIX_EVEX_0F388A, | |
1609 | PREFIX_EVEX_0F388B, | |
1ba585e8 | 1610 | PREFIX_EVEX_0F388D, |
ee6872be | 1611 | PREFIX_EVEX_0F388F, |
43234a1e L |
1612 | PREFIX_EVEX_0F3890, |
1613 | PREFIX_EVEX_0F3891, | |
1614 | PREFIX_EVEX_0F3892, | |
1615 | PREFIX_EVEX_0F3893, | |
1616 | PREFIX_EVEX_0F3896, | |
1617 | PREFIX_EVEX_0F3897, | |
1618 | PREFIX_EVEX_0F3898, | |
1619 | PREFIX_EVEX_0F3899, | |
1620 | PREFIX_EVEX_0F389A, | |
1621 | PREFIX_EVEX_0F389B, | |
1622 | PREFIX_EVEX_0F389C, | |
1623 | PREFIX_EVEX_0F389D, | |
1624 | PREFIX_EVEX_0F389E, | |
1625 | PREFIX_EVEX_0F389F, | |
1626 | PREFIX_EVEX_0F38A0, | |
1627 | PREFIX_EVEX_0F38A1, | |
1628 | PREFIX_EVEX_0F38A2, | |
1629 | PREFIX_EVEX_0F38A3, | |
1630 | PREFIX_EVEX_0F38A6, | |
1631 | PREFIX_EVEX_0F38A7, | |
1632 | PREFIX_EVEX_0F38A8, | |
1633 | PREFIX_EVEX_0F38A9, | |
1634 | PREFIX_EVEX_0F38AA, | |
1635 | PREFIX_EVEX_0F38AB, | |
1636 | PREFIX_EVEX_0F38AC, | |
1637 | PREFIX_EVEX_0F38AD, | |
1638 | PREFIX_EVEX_0F38AE, | |
1639 | PREFIX_EVEX_0F38AF, | |
2cc1b5aa IT |
1640 | PREFIX_EVEX_0F38B4, |
1641 | PREFIX_EVEX_0F38B5, | |
43234a1e L |
1642 | PREFIX_EVEX_0F38B6, |
1643 | PREFIX_EVEX_0F38B7, | |
1644 | PREFIX_EVEX_0F38B8, | |
1645 | PREFIX_EVEX_0F38B9, | |
1646 | PREFIX_EVEX_0F38BA, | |
1647 | PREFIX_EVEX_0F38BB, | |
1648 | PREFIX_EVEX_0F38BC, | |
1649 | PREFIX_EVEX_0F38BD, | |
1650 | PREFIX_EVEX_0F38BE, | |
1651 | PREFIX_EVEX_0F38BF, | |
1652 | PREFIX_EVEX_0F38C4, | |
1653 | PREFIX_EVEX_0F38C6_REG_1, | |
1654 | PREFIX_EVEX_0F38C6_REG_2, | |
1655 | PREFIX_EVEX_0F38C6_REG_5, | |
1656 | PREFIX_EVEX_0F38C6_REG_6, | |
1657 | PREFIX_EVEX_0F38C7_REG_1, | |
1658 | PREFIX_EVEX_0F38C7_REG_2, | |
1659 | PREFIX_EVEX_0F38C7_REG_5, | |
1660 | PREFIX_EVEX_0F38C7_REG_6, | |
1661 | PREFIX_EVEX_0F38C8, | |
1662 | PREFIX_EVEX_0F38CA, | |
1663 | PREFIX_EVEX_0F38CB, | |
1664 | PREFIX_EVEX_0F38CC, | |
1665 | PREFIX_EVEX_0F38CD, | |
48521003 | 1666 | PREFIX_EVEX_0F38CF, |
8dcf1fad IT |
1667 | PREFIX_EVEX_0F38DC, |
1668 | PREFIX_EVEX_0F38DD, | |
1669 | PREFIX_EVEX_0F38DE, | |
1670 | PREFIX_EVEX_0F38DF, | |
43234a1e L |
1671 | |
1672 | PREFIX_EVEX_0F3A00, | |
1673 | PREFIX_EVEX_0F3A01, | |
1674 | PREFIX_EVEX_0F3A03, | |
1675 | PREFIX_EVEX_0F3A04, | |
1676 | PREFIX_EVEX_0F3A05, | |
1677 | PREFIX_EVEX_0F3A08, | |
1678 | PREFIX_EVEX_0F3A09, | |
1679 | PREFIX_EVEX_0F3A0A, | |
1680 | PREFIX_EVEX_0F3A0B, | |
1ba585e8 IT |
1681 | PREFIX_EVEX_0F3A0F, |
1682 | PREFIX_EVEX_0F3A14, | |
1683 | PREFIX_EVEX_0F3A15, | |
90a915bf | 1684 | PREFIX_EVEX_0F3A16, |
43234a1e L |
1685 | PREFIX_EVEX_0F3A17, |
1686 | PREFIX_EVEX_0F3A18, | |
1687 | PREFIX_EVEX_0F3A19, | |
1688 | PREFIX_EVEX_0F3A1A, | |
1689 | PREFIX_EVEX_0F3A1B, | |
1690 | PREFIX_EVEX_0F3A1D, | |
1691 | PREFIX_EVEX_0F3A1E, | |
1692 | PREFIX_EVEX_0F3A1F, | |
1ba585e8 | 1693 | PREFIX_EVEX_0F3A20, |
43234a1e | 1694 | PREFIX_EVEX_0F3A21, |
90a915bf | 1695 | PREFIX_EVEX_0F3A22, |
43234a1e L |
1696 | PREFIX_EVEX_0F3A23, |
1697 | PREFIX_EVEX_0F3A25, | |
1698 | PREFIX_EVEX_0F3A26, | |
1699 | PREFIX_EVEX_0F3A27, | |
1700 | PREFIX_EVEX_0F3A38, | |
1701 | PREFIX_EVEX_0F3A39, | |
1702 | PREFIX_EVEX_0F3A3A, | |
1703 | PREFIX_EVEX_0F3A3B, | |
1ba585e8 IT |
1704 | PREFIX_EVEX_0F3A3E, |
1705 | PREFIX_EVEX_0F3A3F, | |
1706 | PREFIX_EVEX_0F3A42, | |
43234a1e | 1707 | PREFIX_EVEX_0F3A43, |
ff1982d5 | 1708 | PREFIX_EVEX_0F3A44, |
90a915bf IT |
1709 | PREFIX_EVEX_0F3A50, |
1710 | PREFIX_EVEX_0F3A51, | |
43234a1e | 1711 | PREFIX_EVEX_0F3A54, |
90a915bf IT |
1712 | PREFIX_EVEX_0F3A55, |
1713 | PREFIX_EVEX_0F3A56, | |
1714 | PREFIX_EVEX_0F3A57, | |
1715 | PREFIX_EVEX_0F3A66, | |
53467f57 IT |
1716 | PREFIX_EVEX_0F3A67, |
1717 | PREFIX_EVEX_0F3A70, | |
1718 | PREFIX_EVEX_0F3A71, | |
1719 | PREFIX_EVEX_0F3A72, | |
48521003 IT |
1720 | PREFIX_EVEX_0F3A73, |
1721 | PREFIX_EVEX_0F3ACE, | |
1722 | PREFIX_EVEX_0F3ACF | |
51e7da1b | 1723 | }; |
4e7d34a6 | 1724 | |
51e7da1b L |
1725 | enum |
1726 | { | |
1727 | X86_64_06 = 0, | |
3873ba12 L |
1728 | X86_64_07, |
1729 | X86_64_0D, | |
1730 | X86_64_16, | |
1731 | X86_64_17, | |
1732 | X86_64_1E, | |
1733 | X86_64_1F, | |
1734 | X86_64_27, | |
1735 | X86_64_2F, | |
1736 | X86_64_37, | |
1737 | X86_64_3F, | |
1738 | X86_64_60, | |
1739 | X86_64_61, | |
1740 | X86_64_62, | |
1741 | X86_64_63, | |
1742 | X86_64_6D, | |
1743 | X86_64_6F, | |
d039fef3 | 1744 | X86_64_82, |
3873ba12 L |
1745 | X86_64_9A, |
1746 | X86_64_C4, | |
1747 | X86_64_C5, | |
1748 | X86_64_CE, | |
1749 | X86_64_D4, | |
1750 | X86_64_D5, | |
a72d2af2 L |
1751 | X86_64_E8, |
1752 | X86_64_E9, | |
3873ba12 L |
1753 | X86_64_EA, |
1754 | X86_64_0F01_REG_0, | |
1755 | X86_64_0F01_REG_1, | |
1756 | X86_64_0F01_REG_2, | |
1757 | X86_64_0F01_REG_3 | |
51e7da1b | 1758 | }; |
4e7d34a6 | 1759 | |
51e7da1b L |
1760 | enum |
1761 | { | |
1762 | THREE_BYTE_0F38 = 0, | |
1f334aeb | 1763 | THREE_BYTE_0F3A |
51e7da1b | 1764 | }; |
4e7d34a6 | 1765 | |
f88c9eb0 SP |
1766 | enum |
1767 | { | |
5dd85c99 SP |
1768 | XOP_08 = 0, |
1769 | XOP_09, | |
f88c9eb0 SP |
1770 | XOP_0A |
1771 | }; | |
1772 | ||
51e7da1b L |
1773 | enum |
1774 | { | |
1775 | VEX_0F = 0, | |
3873ba12 L |
1776 | VEX_0F38, |
1777 | VEX_0F3A | |
51e7da1b | 1778 | }; |
c0f3af97 | 1779 | |
43234a1e L |
1780 | enum |
1781 | { | |
1782 | EVEX_0F = 0, | |
1783 | EVEX_0F38, | |
1784 | EVEX_0F3A | |
1785 | }; | |
1786 | ||
51e7da1b L |
1787 | enum |
1788 | { | |
592a252b L |
1789 | VEX_LEN_0F10_P_1 = 0, |
1790 | VEX_LEN_0F10_P_3, | |
1791 | VEX_LEN_0F11_P_1, | |
1792 | VEX_LEN_0F11_P_3, | |
1793 | VEX_LEN_0F12_P_0_M_0, | |
1794 | VEX_LEN_0F12_P_0_M_1, | |
1795 | VEX_LEN_0F12_P_2, | |
1796 | VEX_LEN_0F13_M_0, | |
1797 | VEX_LEN_0F16_P_0_M_0, | |
1798 | VEX_LEN_0F16_P_0_M_1, | |
1799 | VEX_LEN_0F16_P_2, | |
1800 | VEX_LEN_0F17_M_0, | |
1801 | VEX_LEN_0F2A_P_1, | |
1802 | VEX_LEN_0F2A_P_3, | |
1803 | VEX_LEN_0F2C_P_1, | |
1804 | VEX_LEN_0F2C_P_3, | |
1805 | VEX_LEN_0F2D_P_1, | |
1806 | VEX_LEN_0F2D_P_3, | |
1807 | VEX_LEN_0F2E_P_0, | |
1808 | VEX_LEN_0F2E_P_2, | |
1809 | VEX_LEN_0F2F_P_0, | |
1810 | VEX_LEN_0F2F_P_2, | |
43234a1e | 1811 | VEX_LEN_0F41_P_0, |
1ba585e8 | 1812 | VEX_LEN_0F41_P_2, |
43234a1e | 1813 | VEX_LEN_0F42_P_0, |
1ba585e8 | 1814 | VEX_LEN_0F42_P_2, |
43234a1e | 1815 | VEX_LEN_0F44_P_0, |
1ba585e8 | 1816 | VEX_LEN_0F44_P_2, |
43234a1e | 1817 | VEX_LEN_0F45_P_0, |
1ba585e8 | 1818 | VEX_LEN_0F45_P_2, |
43234a1e | 1819 | VEX_LEN_0F46_P_0, |
1ba585e8 | 1820 | VEX_LEN_0F46_P_2, |
43234a1e | 1821 | VEX_LEN_0F47_P_0, |
1ba585e8 IT |
1822 | VEX_LEN_0F47_P_2, |
1823 | VEX_LEN_0F4A_P_0, | |
1824 | VEX_LEN_0F4A_P_2, | |
1825 | VEX_LEN_0F4B_P_0, | |
43234a1e | 1826 | VEX_LEN_0F4B_P_2, |
592a252b L |
1827 | VEX_LEN_0F51_P_1, |
1828 | VEX_LEN_0F51_P_3, | |
1829 | VEX_LEN_0F52_P_1, | |
1830 | VEX_LEN_0F53_P_1, | |
1831 | VEX_LEN_0F58_P_1, | |
1832 | VEX_LEN_0F58_P_3, | |
1833 | VEX_LEN_0F59_P_1, | |
1834 | VEX_LEN_0F59_P_3, | |
1835 | VEX_LEN_0F5A_P_1, | |
1836 | VEX_LEN_0F5A_P_3, | |
1837 | VEX_LEN_0F5C_P_1, | |
1838 | VEX_LEN_0F5C_P_3, | |
1839 | VEX_LEN_0F5D_P_1, | |
1840 | VEX_LEN_0F5D_P_3, | |
1841 | VEX_LEN_0F5E_P_1, | |
1842 | VEX_LEN_0F5E_P_3, | |
1843 | VEX_LEN_0F5F_P_1, | |
1844 | VEX_LEN_0F5F_P_3, | |
592a252b | 1845 | VEX_LEN_0F6E_P_2, |
592a252b L |
1846 | VEX_LEN_0F7E_P_1, |
1847 | VEX_LEN_0F7E_P_2, | |
43234a1e | 1848 | VEX_LEN_0F90_P_0, |
1ba585e8 | 1849 | VEX_LEN_0F90_P_2, |
43234a1e | 1850 | VEX_LEN_0F91_P_0, |
1ba585e8 | 1851 | VEX_LEN_0F91_P_2, |
43234a1e | 1852 | VEX_LEN_0F92_P_0, |
90a915bf | 1853 | VEX_LEN_0F92_P_2, |
1ba585e8 | 1854 | VEX_LEN_0F92_P_3, |
43234a1e | 1855 | VEX_LEN_0F93_P_0, |
90a915bf | 1856 | VEX_LEN_0F93_P_2, |
1ba585e8 | 1857 | VEX_LEN_0F93_P_3, |
43234a1e | 1858 | VEX_LEN_0F98_P_0, |
1ba585e8 IT |
1859 | VEX_LEN_0F98_P_2, |
1860 | VEX_LEN_0F99_P_0, | |
1861 | VEX_LEN_0F99_P_2, | |
592a252b L |
1862 | VEX_LEN_0FAE_R_2_M_0, |
1863 | VEX_LEN_0FAE_R_3_M_0, | |
1864 | VEX_LEN_0FC2_P_1, | |
1865 | VEX_LEN_0FC2_P_3, | |
1866 | VEX_LEN_0FC4_P_2, | |
1867 | VEX_LEN_0FC5_P_2, | |
592a252b | 1868 | VEX_LEN_0FD6_P_2, |
592a252b | 1869 | VEX_LEN_0FF7_P_2, |
6c30d220 L |
1870 | VEX_LEN_0F3816_P_2, |
1871 | VEX_LEN_0F3819_P_2, | |
592a252b | 1872 | VEX_LEN_0F381A_P_2_M_0, |
6c30d220 | 1873 | VEX_LEN_0F3836_P_2, |
592a252b | 1874 | VEX_LEN_0F3841_P_2, |
6c30d220 | 1875 | VEX_LEN_0F385A_P_2_M_0, |
592a252b | 1876 | VEX_LEN_0F38DB_P_2, |
f12dc422 L |
1877 | VEX_LEN_0F38F2_P_0, |
1878 | VEX_LEN_0F38F3_R_1_P_0, | |
1879 | VEX_LEN_0F38F3_R_2_P_0, | |
1880 | VEX_LEN_0F38F3_R_3_P_0, | |
6c30d220 L |
1881 | VEX_LEN_0F38F5_P_0, |
1882 | VEX_LEN_0F38F5_P_1, | |
1883 | VEX_LEN_0F38F5_P_3, | |
1884 | VEX_LEN_0F38F6_P_3, | |
f12dc422 | 1885 | VEX_LEN_0F38F7_P_0, |
6c30d220 L |
1886 | VEX_LEN_0F38F7_P_1, |
1887 | VEX_LEN_0F38F7_P_2, | |
1888 | VEX_LEN_0F38F7_P_3, | |
1889 | VEX_LEN_0F3A00_P_2, | |
1890 | VEX_LEN_0F3A01_P_2, | |
592a252b L |
1891 | VEX_LEN_0F3A06_P_2, |
1892 | VEX_LEN_0F3A0A_P_2, | |
1893 | VEX_LEN_0F3A0B_P_2, | |
592a252b L |
1894 | VEX_LEN_0F3A14_P_2, |
1895 | VEX_LEN_0F3A15_P_2, | |
1896 | VEX_LEN_0F3A16_P_2, | |
1897 | VEX_LEN_0F3A17_P_2, | |
1898 | VEX_LEN_0F3A18_P_2, | |
1899 | VEX_LEN_0F3A19_P_2, | |
1900 | VEX_LEN_0F3A20_P_2, | |
1901 | VEX_LEN_0F3A21_P_2, | |
1902 | VEX_LEN_0F3A22_P_2, | |
43234a1e | 1903 | VEX_LEN_0F3A30_P_2, |
1ba585e8 | 1904 | VEX_LEN_0F3A31_P_2, |
43234a1e | 1905 | VEX_LEN_0F3A32_P_2, |
1ba585e8 | 1906 | VEX_LEN_0F3A33_P_2, |
6c30d220 L |
1907 | VEX_LEN_0F3A38_P_2, |
1908 | VEX_LEN_0F3A39_P_2, | |
592a252b | 1909 | VEX_LEN_0F3A41_P_2, |
6c30d220 | 1910 | VEX_LEN_0F3A46_P_2, |
592a252b L |
1911 | VEX_LEN_0F3A60_P_2, |
1912 | VEX_LEN_0F3A61_P_2, | |
1913 | VEX_LEN_0F3A62_P_2, | |
1914 | VEX_LEN_0F3A63_P_2, | |
1915 | VEX_LEN_0F3A6A_P_2, | |
1916 | VEX_LEN_0F3A6B_P_2, | |
1917 | VEX_LEN_0F3A6E_P_2, | |
1918 | VEX_LEN_0F3A6F_P_2, | |
1919 | VEX_LEN_0F3A7A_P_2, | |
1920 | VEX_LEN_0F3A7B_P_2, | |
1921 | VEX_LEN_0F3A7E_P_2, | |
1922 | VEX_LEN_0F3A7F_P_2, | |
1923 | VEX_LEN_0F3ADF_P_2, | |
6c30d220 | 1924 | VEX_LEN_0F3AF0_P_3, |
ff688e1f L |
1925 | VEX_LEN_0FXOP_08_CC, |
1926 | VEX_LEN_0FXOP_08_CD, | |
1927 | VEX_LEN_0FXOP_08_CE, | |
1928 | VEX_LEN_0FXOP_08_CF, | |
1929 | VEX_LEN_0FXOP_08_EC, | |
1930 | VEX_LEN_0FXOP_08_ED, | |
1931 | VEX_LEN_0FXOP_08_EE, | |
1932 | VEX_LEN_0FXOP_08_EF, | |
592a252b L |
1933 | VEX_LEN_0FXOP_09_80, |
1934 | VEX_LEN_0FXOP_09_81 | |
51e7da1b | 1935 | }; |
c0f3af97 | 1936 | |
9e30b8e0 L |
1937 | enum |
1938 | { | |
592a252b L |
1939 | VEX_W_0F10_P_0 = 0, |
1940 | VEX_W_0F10_P_1, | |
1941 | VEX_W_0F10_P_2, | |
1942 | VEX_W_0F10_P_3, | |
1943 | VEX_W_0F11_P_0, | |
1944 | VEX_W_0F11_P_1, | |
1945 | VEX_W_0F11_P_2, | |
1946 | VEX_W_0F11_P_3, | |
1947 | VEX_W_0F12_P_0_M_0, | |
1948 | VEX_W_0F12_P_0_M_1, | |
1949 | VEX_W_0F12_P_1, | |
1950 | VEX_W_0F12_P_2, | |
1951 | VEX_W_0F12_P_3, | |
1952 | VEX_W_0F13_M_0, | |
1953 | VEX_W_0F14, | |
1954 | VEX_W_0F15, | |
1955 | VEX_W_0F16_P_0_M_0, | |
1956 | VEX_W_0F16_P_0_M_1, | |
1957 | VEX_W_0F16_P_1, | |
1958 | VEX_W_0F16_P_2, | |
1959 | VEX_W_0F17_M_0, | |
1960 | VEX_W_0F28, | |
1961 | VEX_W_0F29, | |
1962 | VEX_W_0F2B_M_0, | |
1963 | VEX_W_0F2E_P_0, | |
1964 | VEX_W_0F2E_P_2, | |
1965 | VEX_W_0F2F_P_0, | |
1966 | VEX_W_0F2F_P_2, | |
43234a1e | 1967 | VEX_W_0F41_P_0_LEN_1, |
1ba585e8 | 1968 | VEX_W_0F41_P_2_LEN_1, |
43234a1e | 1969 | VEX_W_0F42_P_0_LEN_1, |
1ba585e8 | 1970 | VEX_W_0F42_P_2_LEN_1, |
43234a1e | 1971 | VEX_W_0F44_P_0_LEN_0, |
1ba585e8 | 1972 | VEX_W_0F44_P_2_LEN_0, |
43234a1e | 1973 | VEX_W_0F45_P_0_LEN_1, |
1ba585e8 | 1974 | VEX_W_0F45_P_2_LEN_1, |
43234a1e | 1975 | VEX_W_0F46_P_0_LEN_1, |
1ba585e8 | 1976 | VEX_W_0F46_P_2_LEN_1, |
43234a1e | 1977 | VEX_W_0F47_P_0_LEN_1, |
1ba585e8 IT |
1978 | VEX_W_0F47_P_2_LEN_1, |
1979 | VEX_W_0F4A_P_0_LEN_1, | |
1980 | VEX_W_0F4A_P_2_LEN_1, | |
1981 | VEX_W_0F4B_P_0_LEN_1, | |
43234a1e | 1982 | VEX_W_0F4B_P_2_LEN_1, |
592a252b L |
1983 | VEX_W_0F50_M_0, |
1984 | VEX_W_0F51_P_0, | |
1985 | VEX_W_0F51_P_1, | |
1986 | VEX_W_0F51_P_2, | |
1987 | VEX_W_0F51_P_3, | |
1988 | VEX_W_0F52_P_0, | |
1989 | VEX_W_0F52_P_1, | |
1990 | VEX_W_0F53_P_0, | |
1991 | VEX_W_0F53_P_1, | |
1992 | VEX_W_0F58_P_0, | |
1993 | VEX_W_0F58_P_1, | |
1994 | VEX_W_0F58_P_2, | |
1995 | VEX_W_0F58_P_3, | |
1996 | VEX_W_0F59_P_0, | |
1997 | VEX_W_0F59_P_1, | |
1998 | VEX_W_0F59_P_2, | |
1999 | VEX_W_0F59_P_3, | |
2000 | VEX_W_0F5A_P_0, | |
2001 | VEX_W_0F5A_P_1, | |
2002 | VEX_W_0F5A_P_3, | |
2003 | VEX_W_0F5B_P_0, | |
2004 | VEX_W_0F5B_P_1, | |
2005 | VEX_W_0F5B_P_2, | |
2006 | VEX_W_0F5C_P_0, | |
2007 | VEX_W_0F5C_P_1, | |
2008 | VEX_W_0F5C_P_2, | |
2009 | VEX_W_0F5C_P_3, | |
2010 | VEX_W_0F5D_P_0, | |
2011 | VEX_W_0F5D_P_1, | |
2012 | VEX_W_0F5D_P_2, | |
2013 | VEX_W_0F5D_P_3, | |
2014 | VEX_W_0F5E_P_0, | |
2015 | VEX_W_0F5E_P_1, | |
2016 | VEX_W_0F5E_P_2, | |
2017 | VEX_W_0F5E_P_3, | |
2018 | VEX_W_0F5F_P_0, | |
2019 | VEX_W_0F5F_P_1, | |
2020 | VEX_W_0F5F_P_2, | |
2021 | VEX_W_0F5F_P_3, | |
2022 | VEX_W_0F60_P_2, | |
2023 | VEX_W_0F61_P_2, | |
2024 | VEX_W_0F62_P_2, | |
2025 | VEX_W_0F63_P_2, | |
2026 | VEX_W_0F64_P_2, | |
2027 | VEX_W_0F65_P_2, | |
2028 | VEX_W_0F66_P_2, | |
2029 | VEX_W_0F67_P_2, | |
2030 | VEX_W_0F68_P_2, | |
2031 | VEX_W_0F69_P_2, | |
2032 | VEX_W_0F6A_P_2, | |
2033 | VEX_W_0F6B_P_2, | |
2034 | VEX_W_0F6C_P_2, | |
2035 | VEX_W_0F6D_P_2, | |
2036 | VEX_W_0F6F_P_1, | |
2037 | VEX_W_0F6F_P_2, | |
2038 | VEX_W_0F70_P_1, | |
2039 | VEX_W_0F70_P_2, | |
2040 | VEX_W_0F70_P_3, | |
2041 | VEX_W_0F71_R_2_P_2, | |
2042 | VEX_W_0F71_R_4_P_2, | |
2043 | VEX_W_0F71_R_6_P_2, | |
2044 | VEX_W_0F72_R_2_P_2, | |
2045 | VEX_W_0F72_R_4_P_2, | |
2046 | VEX_W_0F72_R_6_P_2, | |
2047 | VEX_W_0F73_R_2_P_2, | |
2048 | VEX_W_0F73_R_3_P_2, | |
2049 | VEX_W_0F73_R_6_P_2, | |
2050 | VEX_W_0F73_R_7_P_2, | |
2051 | VEX_W_0F74_P_2, | |
2052 | VEX_W_0F75_P_2, | |
2053 | VEX_W_0F76_P_2, | |
2054 | VEX_W_0F77_P_0, | |
2055 | VEX_W_0F7C_P_2, | |
2056 | VEX_W_0F7C_P_3, | |
2057 | VEX_W_0F7D_P_2, | |
2058 | VEX_W_0F7D_P_3, | |
2059 | VEX_W_0F7E_P_1, | |
2060 | VEX_W_0F7F_P_1, | |
2061 | VEX_W_0F7F_P_2, | |
43234a1e | 2062 | VEX_W_0F90_P_0_LEN_0, |
1ba585e8 | 2063 | VEX_W_0F90_P_2_LEN_0, |
43234a1e | 2064 | VEX_W_0F91_P_0_LEN_0, |
1ba585e8 | 2065 | VEX_W_0F91_P_2_LEN_0, |
43234a1e | 2066 | VEX_W_0F92_P_0_LEN_0, |
90a915bf | 2067 | VEX_W_0F92_P_2_LEN_0, |
1ba585e8 | 2068 | VEX_W_0F92_P_3_LEN_0, |
43234a1e | 2069 | VEX_W_0F93_P_0_LEN_0, |
90a915bf | 2070 | VEX_W_0F93_P_2_LEN_0, |
1ba585e8 | 2071 | VEX_W_0F93_P_3_LEN_0, |
43234a1e | 2072 | VEX_W_0F98_P_0_LEN_0, |
1ba585e8 IT |
2073 | VEX_W_0F98_P_2_LEN_0, |
2074 | VEX_W_0F99_P_0_LEN_0, | |
2075 | VEX_W_0F99_P_2_LEN_0, | |
592a252b L |
2076 | VEX_W_0FAE_R_2_M_0, |
2077 | VEX_W_0FAE_R_3_M_0, | |
2078 | VEX_W_0FC2_P_0, | |
2079 | VEX_W_0FC2_P_1, | |
2080 | VEX_W_0FC2_P_2, | |
2081 | VEX_W_0FC2_P_3, | |
2082 | VEX_W_0FC4_P_2, | |
2083 | VEX_W_0FC5_P_2, | |
2084 | VEX_W_0FD0_P_2, | |
2085 | VEX_W_0FD0_P_3, | |
2086 | VEX_W_0FD1_P_2, | |
2087 | VEX_W_0FD2_P_2, | |
2088 | VEX_W_0FD3_P_2, | |
2089 | VEX_W_0FD4_P_2, | |
2090 | VEX_W_0FD5_P_2, | |
2091 | VEX_W_0FD6_P_2, | |
2092 | VEX_W_0FD7_P_2_M_1, | |
2093 | VEX_W_0FD8_P_2, | |
2094 | VEX_W_0FD9_P_2, | |
2095 | VEX_W_0FDA_P_2, | |
2096 | VEX_W_0FDB_P_2, | |
2097 | VEX_W_0FDC_P_2, | |
2098 | VEX_W_0FDD_P_2, | |
2099 | VEX_W_0FDE_P_2, | |
2100 | VEX_W_0FDF_P_2, | |
2101 | VEX_W_0FE0_P_2, | |
2102 | VEX_W_0FE1_P_2, | |
2103 | VEX_W_0FE2_P_2, | |
2104 | VEX_W_0FE3_P_2, | |
2105 | VEX_W_0FE4_P_2, | |
2106 | VEX_W_0FE5_P_2, | |
2107 | VEX_W_0FE6_P_1, | |
2108 | VEX_W_0FE6_P_2, | |
2109 | VEX_W_0FE6_P_3, | |
2110 | VEX_W_0FE7_P_2_M_0, | |
2111 | VEX_W_0FE8_P_2, | |
2112 | VEX_W_0FE9_P_2, | |
2113 | VEX_W_0FEA_P_2, | |
2114 | VEX_W_0FEB_P_2, | |
2115 | VEX_W_0FEC_P_2, | |
2116 | VEX_W_0FED_P_2, | |
2117 | VEX_W_0FEE_P_2, | |
2118 | VEX_W_0FEF_P_2, | |
2119 | VEX_W_0FF0_P_3_M_0, | |
2120 | VEX_W_0FF1_P_2, | |
2121 | VEX_W_0FF2_P_2, | |
2122 | VEX_W_0FF3_P_2, | |
2123 | VEX_W_0FF4_P_2, | |
2124 | VEX_W_0FF5_P_2, | |
2125 | VEX_W_0FF6_P_2, | |
2126 | VEX_W_0FF7_P_2, | |
2127 | VEX_W_0FF8_P_2, | |
2128 | VEX_W_0FF9_P_2, | |
2129 | VEX_W_0FFA_P_2, | |
2130 | VEX_W_0FFB_P_2, | |
2131 | VEX_W_0FFC_P_2, | |
2132 | VEX_W_0FFD_P_2, | |
2133 | VEX_W_0FFE_P_2, | |
2134 | VEX_W_0F3800_P_2, | |
2135 | VEX_W_0F3801_P_2, | |
2136 | VEX_W_0F3802_P_2, | |
2137 | VEX_W_0F3803_P_2, | |
2138 | VEX_W_0F3804_P_2, | |
2139 | VEX_W_0F3805_P_2, | |
2140 | VEX_W_0F3806_P_2, | |
2141 | VEX_W_0F3807_P_2, | |
2142 | VEX_W_0F3808_P_2, | |
2143 | VEX_W_0F3809_P_2, | |
2144 | VEX_W_0F380A_P_2, | |
2145 | VEX_W_0F380B_P_2, | |
2146 | VEX_W_0F380C_P_2, | |
2147 | VEX_W_0F380D_P_2, | |
2148 | VEX_W_0F380E_P_2, | |
2149 | VEX_W_0F380F_P_2, | |
6c30d220 | 2150 | VEX_W_0F3816_P_2, |
592a252b | 2151 | VEX_W_0F3817_P_2, |
6c30d220 L |
2152 | VEX_W_0F3818_P_2, |
2153 | VEX_W_0F3819_P_2, | |
592a252b L |
2154 | VEX_W_0F381A_P_2_M_0, |
2155 | VEX_W_0F381C_P_2, | |
2156 | VEX_W_0F381D_P_2, | |
2157 | VEX_W_0F381E_P_2, | |
2158 | VEX_W_0F3820_P_2, | |
2159 | VEX_W_0F3821_P_2, | |
2160 | VEX_W_0F3822_P_2, | |
2161 | VEX_W_0F3823_P_2, | |
2162 | VEX_W_0F3824_P_2, | |
2163 | VEX_W_0F3825_P_2, | |
2164 | VEX_W_0F3828_P_2, | |
2165 | VEX_W_0F3829_P_2, | |
2166 | VEX_W_0F382A_P_2_M_0, | |
2167 | VEX_W_0F382B_P_2, | |
2168 | VEX_W_0F382C_P_2_M_0, | |
2169 | VEX_W_0F382D_P_2_M_0, | |
2170 | VEX_W_0F382E_P_2_M_0, | |
2171 | VEX_W_0F382F_P_2_M_0, | |
2172 | VEX_W_0F3830_P_2, | |
2173 | VEX_W_0F3831_P_2, | |
2174 | VEX_W_0F3832_P_2, | |
2175 | VEX_W_0F3833_P_2, | |
2176 | VEX_W_0F3834_P_2, | |
2177 | VEX_W_0F3835_P_2, | |
6c30d220 | 2178 | VEX_W_0F3836_P_2, |
592a252b L |
2179 | VEX_W_0F3837_P_2, |
2180 | VEX_W_0F3838_P_2, | |
2181 | VEX_W_0F3839_P_2, | |
2182 | VEX_W_0F383A_P_2, | |
2183 | VEX_W_0F383B_P_2, | |
2184 | VEX_W_0F383C_P_2, | |
2185 | VEX_W_0F383D_P_2, | |
2186 | VEX_W_0F383E_P_2, | |
2187 | VEX_W_0F383F_P_2, | |
2188 | VEX_W_0F3840_P_2, | |
2189 | VEX_W_0F3841_P_2, | |
6c30d220 L |
2190 | VEX_W_0F3846_P_2, |
2191 | VEX_W_0F3858_P_2, | |
2192 | VEX_W_0F3859_P_2, | |
2193 | VEX_W_0F385A_P_2_M_0, | |
2194 | VEX_W_0F3878_P_2, | |
2195 | VEX_W_0F3879_P_2, | |
48521003 | 2196 | VEX_W_0F38CF_P_2, |
592a252b | 2197 | VEX_W_0F38DB_P_2, |
6c30d220 L |
2198 | VEX_W_0F3A00_P_2, |
2199 | VEX_W_0F3A01_P_2, | |
2200 | VEX_W_0F3A02_P_2, | |
592a252b L |
2201 | VEX_W_0F3A04_P_2, |
2202 | VEX_W_0F3A05_P_2, | |
2203 | VEX_W_0F3A06_P_2, | |
2204 | VEX_W_0F3A08_P_2, | |
2205 | VEX_W_0F3A09_P_2, | |
2206 | VEX_W_0F3A0A_P_2, | |
2207 | VEX_W_0F3A0B_P_2, | |
2208 | VEX_W_0F3A0C_P_2, | |
2209 | VEX_W_0F3A0D_P_2, | |
2210 | VEX_W_0F3A0E_P_2, | |
2211 | VEX_W_0F3A0F_P_2, | |
2212 | VEX_W_0F3A14_P_2, | |
2213 | VEX_W_0F3A15_P_2, | |
2214 | VEX_W_0F3A18_P_2, | |
2215 | VEX_W_0F3A19_P_2, | |
2216 | VEX_W_0F3A20_P_2, | |
2217 | VEX_W_0F3A21_P_2, | |
43234a1e | 2218 | VEX_W_0F3A30_P_2_LEN_0, |
1ba585e8 | 2219 | VEX_W_0F3A31_P_2_LEN_0, |
43234a1e | 2220 | VEX_W_0F3A32_P_2_LEN_0, |
1ba585e8 | 2221 | VEX_W_0F3A33_P_2_LEN_0, |
6c30d220 L |
2222 | VEX_W_0F3A38_P_2, |
2223 | VEX_W_0F3A39_P_2, | |
592a252b L |
2224 | VEX_W_0F3A40_P_2, |
2225 | VEX_W_0F3A41_P_2, | |
2226 | VEX_W_0F3A42_P_2, | |
6c30d220 | 2227 | VEX_W_0F3A46_P_2, |
592a252b L |
2228 | VEX_W_0F3A48_P_2, |
2229 | VEX_W_0F3A49_P_2, | |
2230 | VEX_W_0F3A4A_P_2, | |
2231 | VEX_W_0F3A4B_P_2, | |
2232 | VEX_W_0F3A4C_P_2, | |
592a252b L |
2233 | VEX_W_0F3A62_P_2, |
2234 | VEX_W_0F3A63_P_2, | |
48521003 IT |
2235 | VEX_W_0F3ACE_P_2, |
2236 | VEX_W_0F3ACF_P_2, | |
43234a1e L |
2237 | VEX_W_0F3ADF_P_2, |
2238 | ||
2239 | EVEX_W_0F10_P_0, | |
2240 | EVEX_W_0F10_P_1_M_0, | |
2241 | EVEX_W_0F10_P_1_M_1, | |
2242 | EVEX_W_0F10_P_2, | |
2243 | EVEX_W_0F10_P_3_M_0, | |
2244 | EVEX_W_0F10_P_3_M_1, | |
2245 | EVEX_W_0F11_P_0, | |
2246 | EVEX_W_0F11_P_1_M_0, | |
2247 | EVEX_W_0F11_P_1_M_1, | |
2248 | EVEX_W_0F11_P_2, | |
2249 | EVEX_W_0F11_P_3_M_0, | |
2250 | EVEX_W_0F11_P_3_M_1, | |
2251 | EVEX_W_0F12_P_0_M_0, | |
2252 | EVEX_W_0F12_P_0_M_1, | |
2253 | EVEX_W_0F12_P_1, | |
2254 | EVEX_W_0F12_P_2, | |
2255 | EVEX_W_0F12_P_3, | |
2256 | EVEX_W_0F13_P_0, | |
2257 | EVEX_W_0F13_P_2, | |
2258 | EVEX_W_0F14_P_0, | |
2259 | EVEX_W_0F14_P_2, | |
2260 | EVEX_W_0F15_P_0, | |
2261 | EVEX_W_0F15_P_2, | |
2262 | EVEX_W_0F16_P_0_M_0, | |
2263 | EVEX_W_0F16_P_0_M_1, | |
2264 | EVEX_W_0F16_P_1, | |
2265 | EVEX_W_0F16_P_2, | |
2266 | EVEX_W_0F17_P_0, | |
2267 | EVEX_W_0F17_P_2, | |
2268 | EVEX_W_0F28_P_0, | |
2269 | EVEX_W_0F28_P_2, | |
2270 | EVEX_W_0F29_P_0, | |
2271 | EVEX_W_0F29_P_2, | |
2272 | EVEX_W_0F2A_P_1, | |
2273 | EVEX_W_0F2A_P_3, | |
2274 | EVEX_W_0F2B_P_0, | |
2275 | EVEX_W_0F2B_P_2, | |
2276 | EVEX_W_0F2E_P_0, | |
2277 | EVEX_W_0F2E_P_2, | |
2278 | EVEX_W_0F2F_P_0, | |
2279 | EVEX_W_0F2F_P_2, | |
2280 | EVEX_W_0F51_P_0, | |
2281 | EVEX_W_0F51_P_1, | |
2282 | EVEX_W_0F51_P_2, | |
2283 | EVEX_W_0F51_P_3, | |
90a915bf IT |
2284 | EVEX_W_0F54_P_0, |
2285 | EVEX_W_0F54_P_2, | |
2286 | EVEX_W_0F55_P_0, | |
2287 | EVEX_W_0F55_P_2, | |
2288 | EVEX_W_0F56_P_0, | |
2289 | EVEX_W_0F56_P_2, | |
2290 | EVEX_W_0F57_P_0, | |
2291 | EVEX_W_0F57_P_2, | |
43234a1e L |
2292 | EVEX_W_0F58_P_0, |
2293 | EVEX_W_0F58_P_1, | |
2294 | EVEX_W_0F58_P_2, | |
2295 | EVEX_W_0F58_P_3, | |
2296 | EVEX_W_0F59_P_0, | |
2297 | EVEX_W_0F59_P_1, | |
2298 | EVEX_W_0F59_P_2, | |
2299 | EVEX_W_0F59_P_3, | |
2300 | EVEX_W_0F5A_P_0, | |
2301 | EVEX_W_0F5A_P_1, | |
2302 | EVEX_W_0F5A_P_2, | |
2303 | EVEX_W_0F5A_P_3, | |
2304 | EVEX_W_0F5B_P_0, | |
2305 | EVEX_W_0F5B_P_1, | |
2306 | EVEX_W_0F5B_P_2, | |
2307 | EVEX_W_0F5C_P_0, | |
2308 | EVEX_W_0F5C_P_1, | |
2309 | EVEX_W_0F5C_P_2, | |
2310 | EVEX_W_0F5C_P_3, | |
2311 | EVEX_W_0F5D_P_0, | |
2312 | EVEX_W_0F5D_P_1, | |
2313 | EVEX_W_0F5D_P_2, | |
2314 | EVEX_W_0F5D_P_3, | |
2315 | EVEX_W_0F5E_P_0, | |
2316 | EVEX_W_0F5E_P_1, | |
2317 | EVEX_W_0F5E_P_2, | |
2318 | EVEX_W_0F5E_P_3, | |
2319 | EVEX_W_0F5F_P_0, | |
2320 | EVEX_W_0F5F_P_1, | |
2321 | EVEX_W_0F5F_P_2, | |
2322 | EVEX_W_0F5F_P_3, | |
2323 | EVEX_W_0F62_P_2, | |
2324 | EVEX_W_0F66_P_2, | |
2325 | EVEX_W_0F6A_P_2, | |
1ba585e8 | 2326 | EVEX_W_0F6B_P_2, |
43234a1e L |
2327 | EVEX_W_0F6C_P_2, |
2328 | EVEX_W_0F6D_P_2, | |
2329 | EVEX_W_0F6E_P_2, | |
2330 | EVEX_W_0F6F_P_1, | |
2331 | EVEX_W_0F6F_P_2, | |
1ba585e8 | 2332 | EVEX_W_0F6F_P_3, |
43234a1e L |
2333 | EVEX_W_0F70_P_2, |
2334 | EVEX_W_0F72_R_2_P_2, | |
2335 | EVEX_W_0F72_R_6_P_2, | |
2336 | EVEX_W_0F73_R_2_P_2, | |
2337 | EVEX_W_0F73_R_6_P_2, | |
2338 | EVEX_W_0F76_P_2, | |
2339 | EVEX_W_0F78_P_0, | |
90a915bf | 2340 | EVEX_W_0F78_P_2, |
43234a1e | 2341 | EVEX_W_0F79_P_0, |
90a915bf | 2342 | EVEX_W_0F79_P_2, |
43234a1e | 2343 | EVEX_W_0F7A_P_1, |
90a915bf | 2344 | EVEX_W_0F7A_P_2, |
43234a1e L |
2345 | EVEX_W_0F7A_P_3, |
2346 | EVEX_W_0F7B_P_1, | |
90a915bf | 2347 | EVEX_W_0F7B_P_2, |
43234a1e L |
2348 | EVEX_W_0F7B_P_3, |
2349 | EVEX_W_0F7E_P_1, | |
2350 | EVEX_W_0F7E_P_2, | |
2351 | EVEX_W_0F7F_P_1, | |
2352 | EVEX_W_0F7F_P_2, | |
1ba585e8 | 2353 | EVEX_W_0F7F_P_3, |
43234a1e L |
2354 | EVEX_W_0FC2_P_0, |
2355 | EVEX_W_0FC2_P_1, | |
2356 | EVEX_W_0FC2_P_2, | |
2357 | EVEX_W_0FC2_P_3, | |
2358 | EVEX_W_0FC6_P_0, | |
2359 | EVEX_W_0FC6_P_2, | |
2360 | EVEX_W_0FD2_P_2, | |
2361 | EVEX_W_0FD3_P_2, | |
2362 | EVEX_W_0FD4_P_2, | |
2363 | EVEX_W_0FD6_P_2, | |
2364 | EVEX_W_0FE6_P_1, | |
2365 | EVEX_W_0FE6_P_2, | |
2366 | EVEX_W_0FE6_P_3, | |
2367 | EVEX_W_0FE7_P_2, | |
2368 | EVEX_W_0FF2_P_2, | |
2369 | EVEX_W_0FF3_P_2, | |
2370 | EVEX_W_0FF4_P_2, | |
2371 | EVEX_W_0FFA_P_2, | |
2372 | EVEX_W_0FFB_P_2, | |
2373 | EVEX_W_0FFE_P_2, | |
2374 | EVEX_W_0F380C_P_2, | |
2375 | EVEX_W_0F380D_P_2, | |
1ba585e8 IT |
2376 | EVEX_W_0F3810_P_1, |
2377 | EVEX_W_0F3810_P_2, | |
43234a1e | 2378 | EVEX_W_0F3811_P_1, |
1ba585e8 | 2379 | EVEX_W_0F3811_P_2, |
43234a1e | 2380 | EVEX_W_0F3812_P_1, |
1ba585e8 | 2381 | EVEX_W_0F3812_P_2, |
43234a1e L |
2382 | EVEX_W_0F3813_P_1, |
2383 | EVEX_W_0F3813_P_2, | |
2384 | EVEX_W_0F3814_P_1, | |
2385 | EVEX_W_0F3815_P_1, | |
2386 | EVEX_W_0F3818_P_2, | |
2387 | EVEX_W_0F3819_P_2, | |
2388 | EVEX_W_0F381A_P_2, | |
2389 | EVEX_W_0F381B_P_2, | |
2390 | EVEX_W_0F381E_P_2, | |
2391 | EVEX_W_0F381F_P_2, | |
1ba585e8 | 2392 | EVEX_W_0F3820_P_1, |
43234a1e L |
2393 | EVEX_W_0F3821_P_1, |
2394 | EVEX_W_0F3822_P_1, | |
2395 | EVEX_W_0F3823_P_1, | |
2396 | EVEX_W_0F3824_P_1, | |
2397 | EVEX_W_0F3825_P_1, | |
2398 | EVEX_W_0F3825_P_2, | |
1ba585e8 IT |
2399 | EVEX_W_0F3826_P_1, |
2400 | EVEX_W_0F3826_P_2, | |
2401 | EVEX_W_0F3828_P_1, | |
43234a1e | 2402 | EVEX_W_0F3828_P_2, |
1ba585e8 | 2403 | EVEX_W_0F3829_P_1, |
43234a1e L |
2404 | EVEX_W_0F3829_P_2, |
2405 | EVEX_W_0F382A_P_1, | |
2406 | EVEX_W_0F382A_P_2, | |
1ba585e8 IT |
2407 | EVEX_W_0F382B_P_2, |
2408 | EVEX_W_0F3830_P_1, | |
43234a1e L |
2409 | EVEX_W_0F3831_P_1, |
2410 | EVEX_W_0F3832_P_1, | |
2411 | EVEX_W_0F3833_P_1, | |
2412 | EVEX_W_0F3834_P_1, | |
2413 | EVEX_W_0F3835_P_1, | |
2414 | EVEX_W_0F3835_P_2, | |
2415 | EVEX_W_0F3837_P_2, | |
90a915bf IT |
2416 | EVEX_W_0F3838_P_1, |
2417 | EVEX_W_0F3839_P_1, | |
43234a1e L |
2418 | EVEX_W_0F383A_P_1, |
2419 | EVEX_W_0F3840_P_2, | |
ee6872be | 2420 | EVEX_W_0F3854_P_2, |
620214f7 | 2421 | EVEX_W_0F3855_P_2, |
43234a1e L |
2422 | EVEX_W_0F3858_P_2, |
2423 | EVEX_W_0F3859_P_2, | |
2424 | EVEX_W_0F385A_P_2, | |
2425 | EVEX_W_0F385B_P_2, | |
53467f57 IT |
2426 | EVEX_W_0F3862_P_2, |
2427 | EVEX_W_0F3863_P_2, | |
1ba585e8 | 2428 | EVEX_W_0F3866_P_2, |
53467f57 IT |
2429 | EVEX_W_0F3870_P_2, |
2430 | EVEX_W_0F3871_P_2, | |
2431 | EVEX_W_0F3872_P_2, | |
2432 | EVEX_W_0F3873_P_2, | |
1ba585e8 IT |
2433 | EVEX_W_0F3875_P_2, |
2434 | EVEX_W_0F3878_P_2, | |
2435 | EVEX_W_0F3879_P_2, | |
2436 | EVEX_W_0F387A_P_2, | |
2437 | EVEX_W_0F387B_P_2, | |
2438 | EVEX_W_0F387D_P_2, | |
14f195c9 | 2439 | EVEX_W_0F3883_P_2, |
1ba585e8 | 2440 | EVEX_W_0F388D_P_2, |
43234a1e L |
2441 | EVEX_W_0F3891_P_2, |
2442 | EVEX_W_0F3893_P_2, | |
2443 | EVEX_W_0F38A1_P_2, | |
2444 | EVEX_W_0F38A3_P_2, | |
2445 | EVEX_W_0F38C7_R_1_P_2, | |
2446 | EVEX_W_0F38C7_R_2_P_2, | |
2447 | EVEX_W_0F38C7_R_5_P_2, | |
2448 | EVEX_W_0F38C7_R_6_P_2, | |
2449 | ||
2450 | EVEX_W_0F3A00_P_2, | |
2451 | EVEX_W_0F3A01_P_2, | |
2452 | EVEX_W_0F3A04_P_2, | |
2453 | EVEX_W_0F3A05_P_2, | |
2454 | EVEX_W_0F3A08_P_2, | |
2455 | EVEX_W_0F3A09_P_2, | |
2456 | EVEX_W_0F3A0A_P_2, | |
2457 | EVEX_W_0F3A0B_P_2, | |
90a915bf | 2458 | EVEX_W_0F3A16_P_2, |
43234a1e L |
2459 | EVEX_W_0F3A18_P_2, |
2460 | EVEX_W_0F3A19_P_2, | |
2461 | EVEX_W_0F3A1A_P_2, | |
2462 | EVEX_W_0F3A1B_P_2, | |
2463 | EVEX_W_0F3A1D_P_2, | |
2464 | EVEX_W_0F3A21_P_2, | |
90a915bf | 2465 | EVEX_W_0F3A22_P_2, |
43234a1e L |
2466 | EVEX_W_0F3A23_P_2, |
2467 | EVEX_W_0F3A38_P_2, | |
2468 | EVEX_W_0F3A39_P_2, | |
2469 | EVEX_W_0F3A3A_P_2, | |
2470 | EVEX_W_0F3A3B_P_2, | |
1ba585e8 IT |
2471 | EVEX_W_0F3A3E_P_2, |
2472 | EVEX_W_0F3A3F_P_2, | |
2473 | EVEX_W_0F3A42_P_2, | |
90a915bf IT |
2474 | EVEX_W_0F3A43_P_2, |
2475 | EVEX_W_0F3A50_P_2, | |
2476 | EVEX_W_0F3A51_P_2, | |
2477 | EVEX_W_0F3A56_P_2, | |
2478 | EVEX_W_0F3A57_P_2, | |
2479 | EVEX_W_0F3A66_P_2, | |
53467f57 IT |
2480 | EVEX_W_0F3A67_P_2, |
2481 | EVEX_W_0F3A70_P_2, | |
2482 | EVEX_W_0F3A71_P_2, | |
2483 | EVEX_W_0F3A72_P_2, | |
48521003 IT |
2484 | EVEX_W_0F3A73_P_2, |
2485 | EVEX_W_0F3ACE_P_2, | |
2486 | EVEX_W_0F3ACF_P_2 | |
9e30b8e0 L |
2487 | }; |
2488 | ||
26ca5450 | 2489 | typedef void (*op_rtn) (int bytemode, int sizeflag); |
252b5132 RH |
2490 | |
2491 | struct dis386 { | |
2da11e11 | 2492 | const char *name; |
ce518a5f L |
2493 | struct |
2494 | { | |
2495 | op_rtn rtn; | |
2496 | int bytemode; | |
2497 | } op[MAX_OPERANDS]; | |
bf890a93 | 2498 | unsigned int prefix_requirement; |
252b5132 RH |
2499 | }; |
2500 | ||
2501 | /* Upper case letters in the instruction names here are macros. | |
2502 | 'A' => print 'b' if no register operands or suffix_always is true | |
2503 | 'B' => print 'b' if suffix_always is true | |
9306ca4a | 2504 | 'C' => print 's' or 'l' ('w' or 'd' in Intel mode) depending on operand |
98b528ac | 2505 | size prefix |
ed7841b3 | 2506 | 'D' => print 'w' if no register operands or 'w', 'l' or 'q', if |
98b528ac | 2507 | suffix_always is true |
252b5132 | 2508 | 'E' => print 'e' if 32-bit form of jcxz |
3ffd33cf | 2509 | 'F' => print 'w' or 'l' depending on address size prefix (loop insns) |
52fd6d94 | 2510 | 'G' => print 'w' or 'l' depending on operand size prefix (i/o insns) |
5dd0794d | 2511 | 'H' => print ",pt" or ",pn" branch hint |
9306ca4a | 2512 | 'I' => honor following macro letter even in Intel mode (implemented only |
98b528ac | 2513 | for some of the macro letters) |
9306ca4a | 2514 | 'J' => print 'l' |
42903f7f | 2515 | 'K' => print 'd' or 'q' if rex prefix is present. |
252b5132 | 2516 | 'L' => print 'l' if suffix_always is true |
9d141669 | 2517 | 'M' => print 'r' if intel_mnemonic is false. |
252b5132 | 2518 | 'N' => print 'n' if instruction has no wait "prefix" |
a35ca55a | 2519 | 'O' => print 'd' or 'o' (or 'q' in Intel mode) |
52b15da3 | 2520 | 'P' => print 'w', 'l' or 'q' if instruction has an operand size prefix, |
98b528ac L |
2521 | or suffix_always is true. print 'q' if rex prefix is present. |
2522 | 'Q' => print 'w', 'l' or 'q' for memory operand or suffix_always | |
2523 | is true | |
a35ca55a | 2524 | 'R' => print 'w', 'l' or 'q' ('d' for 'l' and 'e' in Intel mode) |
52b15da3 | 2525 | 'S' => print 'w', 'l' or 'q' if suffix_always is true |
a72d2af2 L |
2526 | 'T' => print 'q' in 64bit mode if instruction has no operand size |
2527 | prefix and behave as 'P' otherwise | |
2528 | 'U' => print 'q' in 64bit mode if instruction has no operand size | |
2529 | prefix and behave as 'Q' otherwise | |
2530 | 'V' => print 'q' in 64bit mode if instruction has no operand size | |
2531 | prefix and behave as 'S' otherwise | |
a35ca55a | 2532 | 'W' => print 'b', 'w' or 'l' ('d' in Intel mode) |
9306ca4a | 2533 | 'X' => print 's', 'd' depending on data16 prefix (for XMM) |
8a72226a L |
2534 | 'Y' => 'q' if instruction has an REX 64bit overwrite prefix and |
2535 | suffix_always is true. | |
6dd5059a | 2536 | 'Z' => print 'q' in 64bit mode and behave as 'L' otherwise |
9d141669 | 2537 | '!' => change condition from true to false or from false to true. |
98b528ac | 2538 | '%' => add 1 upper case letter to the macro. |
a72d2af2 L |
2539 | '^' => print 'w' or 'l' depending on operand size prefix or |
2540 | suffix_always is true (lcall/ljmp). | |
5db04b09 L |
2541 | '@' => print 'q' for Intel64 ISA, 'w' or 'q' for AMD64 ISA depending |
2542 | on operand size prefix. | |
07f5af7d L |
2543 | '&' => print 'q' in 64bit mode for Intel64 ISA or if instruction |
2544 | has no operand size prefix for AMD64 ISA, behave as 'P' | |
2545 | otherwise | |
98b528ac L |
2546 | |
2547 | 2 upper case letter macros: | |
04d824a4 JB |
2548 | "XY" => print 'x' or 'y' if suffix_always is true or no register |
2549 | operands and no broadcast. | |
2550 | "XZ" => print 'x', 'y', or 'z' if suffix_always is true or no | |
2551 | register operands and no broadcast. | |
4b06377f L |
2552 | "XW" => print 's', 'd' depending on the VEX.W bit (for FMA) |
2553 | "LQ" => print 'l' ('d' in Intel mode) or 'q' for memory operand | |
98b528ac | 2554 | or suffix_always is true |
4b06377f L |
2555 | "LB" => print "abs" in 64bit mode and behave as 'B' otherwise |
2556 | "LS" => print "abs" in 64bit mode and behave as 'S' otherwise | |
2557 | "LV" => print "abs" for 64bit operand and behave as 'S' otherwise | |
6c30d220 | 2558 | "LW" => print 'd', 'q' depending on the VEX.W bit |
4b4c407a L |
2559 | "LP" => print 'w' or 'l' ('d' in Intel mode) if instruction has |
2560 | an operand size prefix, or suffix_always is true. print | |
2561 | 'q' if rex prefix is present. | |
52b15da3 | 2562 | |
6439fc28 AM |
2563 | Many of the above letters print nothing in Intel mode. See "putop" |
2564 | for the details. | |
52b15da3 | 2565 | |
6439fc28 | 2566 | Braces '{' and '}', and vertical bars '|', indicate alternative |
7c52e0e8 | 2567 | mnemonic strings for AT&T and Intel. */ |
252b5132 | 2568 | |
6439fc28 | 2569 | static const struct dis386 dis386[] = { |
252b5132 | 2570 | /* 00 */ |
bf890a93 IT |
2571 | { "addB", { Ebh1, Gb }, 0 }, |
2572 | { "addS", { Evh1, Gv }, 0 }, | |
2573 | { "addB", { Gb, EbS }, 0 }, | |
2574 | { "addS", { Gv, EvS }, 0 }, | |
2575 | { "addB", { AL, Ib }, 0 }, | |
2576 | { "addS", { eAX, Iv }, 0 }, | |
4e7d34a6 L |
2577 | { X86_64_TABLE (X86_64_06) }, |
2578 | { X86_64_TABLE (X86_64_07) }, | |
252b5132 | 2579 | /* 08 */ |
bf890a93 IT |
2580 | { "orB", { Ebh1, Gb }, 0 }, |
2581 | { "orS", { Evh1, Gv }, 0 }, | |
2582 | { "orB", { Gb, EbS }, 0 }, | |
2583 | { "orS", { Gv, EvS }, 0 }, | |
2584 | { "orB", { AL, Ib }, 0 }, | |
2585 | { "orS", { eAX, Iv }, 0 }, | |
4e7d34a6 | 2586 | { X86_64_TABLE (X86_64_0D) }, |
592d1631 | 2587 | { Bad_Opcode }, /* 0x0f extended opcode escape */ |
252b5132 | 2588 | /* 10 */ |
bf890a93 IT |
2589 | { "adcB", { Ebh1, Gb }, 0 }, |
2590 | { "adcS", { Evh1, Gv }, 0 }, | |
2591 | { "adcB", { Gb, EbS }, 0 }, | |
2592 | { "adcS", { Gv, EvS }, 0 }, | |
2593 | { "adcB", { AL, Ib }, 0 }, | |
2594 | { "adcS", { eAX, Iv }, 0 }, | |
4e7d34a6 L |
2595 | { X86_64_TABLE (X86_64_16) }, |
2596 | { X86_64_TABLE (X86_64_17) }, | |
252b5132 | 2597 | /* 18 */ |
bf890a93 IT |
2598 | { "sbbB", { Ebh1, Gb }, 0 }, |
2599 | { "sbbS", { Evh1, Gv }, 0 }, | |
2600 | { "sbbB", { Gb, EbS }, 0 }, | |
2601 | { "sbbS", { Gv, EvS }, 0 }, | |
2602 | { "sbbB", { AL, Ib }, 0 }, | |
2603 | { "sbbS", { eAX, Iv }, 0 }, | |
4e7d34a6 L |
2604 | { X86_64_TABLE (X86_64_1E) }, |
2605 | { X86_64_TABLE (X86_64_1F) }, | |
252b5132 | 2606 | /* 20 */ |
bf890a93 IT |
2607 | { "andB", { Ebh1, Gb }, 0 }, |
2608 | { "andS", { Evh1, Gv }, 0 }, | |
2609 | { "andB", { Gb, EbS }, 0 }, | |
2610 | { "andS", { Gv, EvS }, 0 }, | |
2611 | { "andB", { AL, Ib }, 0 }, | |
2612 | { "andS", { eAX, Iv }, 0 }, | |
592d1631 | 2613 | { Bad_Opcode }, /* SEG ES prefix */ |
4e7d34a6 | 2614 | { X86_64_TABLE (X86_64_27) }, |
252b5132 | 2615 | /* 28 */ |
bf890a93 IT |
2616 | { "subB", { Ebh1, Gb }, 0 }, |
2617 | { "subS", { Evh1, Gv }, 0 }, | |
2618 | { "subB", { Gb, EbS }, 0 }, | |
2619 | { "subS", { Gv, EvS }, 0 }, | |
2620 | { "subB", { AL, Ib }, 0 }, | |
2621 | { "subS", { eAX, Iv }, 0 }, | |
592d1631 | 2622 | { Bad_Opcode }, /* SEG CS prefix */ |
4e7d34a6 | 2623 | { X86_64_TABLE (X86_64_2F) }, |
252b5132 | 2624 | /* 30 */ |
bf890a93 IT |
2625 | { "xorB", { Ebh1, Gb }, 0 }, |
2626 | { "xorS", { Evh1, Gv }, 0 }, | |
2627 | { "xorB", { Gb, EbS }, 0 }, | |
2628 | { "xorS", { Gv, EvS }, 0 }, | |
2629 | { "xorB", { AL, Ib }, 0 }, | |
2630 | { "xorS", { eAX, Iv }, 0 }, | |
592d1631 | 2631 | { Bad_Opcode }, /* SEG SS prefix */ |
4e7d34a6 | 2632 | { X86_64_TABLE (X86_64_37) }, |
252b5132 | 2633 | /* 38 */ |
bf890a93 IT |
2634 | { "cmpB", { Eb, Gb }, 0 }, |
2635 | { "cmpS", { Ev, Gv }, 0 }, | |
2636 | { "cmpB", { Gb, EbS }, 0 }, | |
2637 | { "cmpS", { Gv, EvS }, 0 }, | |
2638 | { "cmpB", { AL, Ib }, 0 }, | |
2639 | { "cmpS", { eAX, Iv }, 0 }, | |
592d1631 | 2640 | { Bad_Opcode }, /* SEG DS prefix */ |
4e7d34a6 | 2641 | { X86_64_TABLE (X86_64_3F) }, |
252b5132 | 2642 | /* 40 */ |
bf890a93 IT |
2643 | { "inc{S|}", { RMeAX }, 0 }, |
2644 | { "inc{S|}", { RMeCX }, 0 }, | |
2645 | { "inc{S|}", { RMeDX }, 0 }, | |
2646 | { "inc{S|}", { RMeBX }, 0 }, | |
2647 | { "inc{S|}", { RMeSP }, 0 }, | |
2648 | { "inc{S|}", { RMeBP }, 0 }, | |
2649 | { "inc{S|}", { RMeSI }, 0 }, | |
2650 | { "inc{S|}", { RMeDI }, 0 }, | |
252b5132 | 2651 | /* 48 */ |
bf890a93 IT |
2652 | { "dec{S|}", { RMeAX }, 0 }, |
2653 | { "dec{S|}", { RMeCX }, 0 }, | |
2654 | { "dec{S|}", { RMeDX }, 0 }, | |
2655 | { "dec{S|}", { RMeBX }, 0 }, | |
2656 | { "dec{S|}", { RMeSP }, 0 }, | |
2657 | { "dec{S|}", { RMeBP }, 0 }, | |
2658 | { "dec{S|}", { RMeSI }, 0 }, | |
2659 | { "dec{S|}", { RMeDI }, 0 }, | |
252b5132 | 2660 | /* 50 */ |
bf890a93 IT |
2661 | { "pushV", { RMrAX }, 0 }, |
2662 | { "pushV", { RMrCX }, 0 }, | |
2663 | { "pushV", { RMrDX }, 0 }, | |
2664 | { "pushV", { RMrBX }, 0 }, | |
2665 | { "pushV", { RMrSP }, 0 }, | |
2666 | { "pushV", { RMrBP }, 0 }, | |
2667 | { "pushV", { RMrSI }, 0 }, | |
2668 | { "pushV", { RMrDI }, 0 }, | |
252b5132 | 2669 | /* 58 */ |
bf890a93 IT |
2670 | { "popV", { RMrAX }, 0 }, |
2671 | { "popV", { RMrCX }, 0 }, | |
2672 | { "popV", { RMrDX }, 0 }, | |
2673 | { "popV", { RMrBX }, 0 }, | |
2674 | { "popV", { RMrSP }, 0 }, | |
2675 | { "popV", { RMrBP }, 0 }, | |
2676 | { "popV", { RMrSI }, 0 }, | |
2677 | { "popV", { RMrDI }, 0 }, | |
252b5132 | 2678 | /* 60 */ |
4e7d34a6 L |
2679 | { X86_64_TABLE (X86_64_60) }, |
2680 | { X86_64_TABLE (X86_64_61) }, | |
2681 | { X86_64_TABLE (X86_64_62) }, | |
2682 | { X86_64_TABLE (X86_64_63) }, | |
592d1631 L |
2683 | { Bad_Opcode }, /* seg fs */ |
2684 | { Bad_Opcode }, /* seg gs */ | |
2685 | { Bad_Opcode }, /* op size prefix */ | |
2686 | { Bad_Opcode }, /* adr size prefix */ | |
252b5132 | 2687 | /* 68 */ |
bf890a93 IT |
2688 | { "pushT", { sIv }, 0 }, |
2689 | { "imulS", { Gv, Ev, Iv }, 0 }, | |
2690 | { "pushT", { sIbT }, 0 }, | |
2691 | { "imulS", { Gv, Ev, sIb }, 0 }, | |
2692 | { "ins{b|}", { Ybr, indirDX }, 0 }, | |
4e7d34a6 | 2693 | { X86_64_TABLE (X86_64_6D) }, |
bf890a93 | 2694 | { "outs{b|}", { indirDXr, Xb }, 0 }, |
4e7d34a6 | 2695 | { X86_64_TABLE (X86_64_6F) }, |
252b5132 | 2696 | /* 70 */ |
bf890a93 IT |
2697 | { "joH", { Jb, BND, cond_jump_flag }, 0 }, |
2698 | { "jnoH", { Jb, BND, cond_jump_flag }, 0 }, | |
2699 | { "jbH", { Jb, BND, cond_jump_flag }, 0 }, | |
2700 | { "jaeH", { Jb, BND, cond_jump_flag }, 0 }, | |
2701 | { "jeH", { Jb, BND, cond_jump_flag }, 0 }, | |
2702 | { "jneH", { Jb, BND, cond_jump_flag }, 0 }, | |
2703 | { "jbeH", { Jb, BND, cond_jump_flag }, 0 }, | |
2704 | { "jaH", { Jb, BND, cond_jump_flag }, 0 }, | |
252b5132 | 2705 | /* 78 */ |
bf890a93 IT |
2706 | { "jsH", { Jb, BND, cond_jump_flag }, 0 }, |
2707 | { "jnsH", { Jb, BND, cond_jump_flag }, 0 }, | |
2708 | { "jpH", { Jb, BND, cond_jump_flag }, 0 }, | |
2709 | { "jnpH", { Jb, BND, cond_jump_flag }, 0 }, | |
2710 | { "jlH", { Jb, BND, cond_jump_flag }, 0 }, | |
2711 | { "jgeH", { Jb, BND, cond_jump_flag }, 0 }, | |
2712 | { "jleH", { Jb, BND, cond_jump_flag }, 0 }, | |
2713 | { "jgH", { Jb, BND, cond_jump_flag }, 0 }, | |
252b5132 | 2714 | /* 80 */ |
1ceb70f8 L |
2715 | { REG_TABLE (REG_80) }, |
2716 | { REG_TABLE (REG_81) }, | |
d039fef3 | 2717 | { X86_64_TABLE (X86_64_82) }, |
7148c369 | 2718 | { REG_TABLE (REG_83) }, |
bf890a93 IT |
2719 | { "testB", { Eb, Gb }, 0 }, |
2720 | { "testS", { Ev, Gv }, 0 }, | |
2721 | { "xchgB", { Ebh2, Gb }, 0 }, | |
2722 | { "xchgS", { Evh2, Gv }, 0 }, | |
252b5132 | 2723 | /* 88 */ |
bf890a93 IT |
2724 | { "movB", { Ebh3, Gb }, 0 }, |
2725 | { "movS", { Evh3, Gv }, 0 }, | |
2726 | { "movB", { Gb, EbS }, 0 }, | |
2727 | { "movS", { Gv, EvS }, 0 }, | |
2728 | { "movD", { Sv, Sw }, 0 }, | |
1ceb70f8 | 2729 | { MOD_TABLE (MOD_8D) }, |
bf890a93 | 2730 | { "movD", { Sw, Sv }, 0 }, |
1ceb70f8 | 2731 | { REG_TABLE (REG_8F) }, |
252b5132 | 2732 | /* 90 */ |
1ceb70f8 | 2733 | { PREFIX_TABLE (PREFIX_90) }, |
bf890a93 IT |
2734 | { "xchgS", { RMeCX, eAX }, 0 }, |
2735 | { "xchgS", { RMeDX, eAX }, 0 }, | |
2736 | { "xchgS", { RMeBX, eAX }, 0 }, | |
2737 | { "xchgS", { RMeSP, eAX }, 0 }, | |
2738 | { "xchgS", { RMeBP, eAX }, 0 }, | |
2739 | { "xchgS", { RMeSI, eAX }, 0 }, | |
2740 | { "xchgS", { RMeDI, eAX }, 0 }, | |
252b5132 | 2741 | /* 98 */ |
bf890a93 IT |
2742 | { "cW{t|}R", { XX }, 0 }, |
2743 | { "cR{t|}O", { XX }, 0 }, | |
4e7d34a6 | 2744 | { X86_64_TABLE (X86_64_9A) }, |
592d1631 | 2745 | { Bad_Opcode }, /* fwait */ |
bf890a93 IT |
2746 | { "pushfT", { XX }, 0 }, |
2747 | { "popfT", { XX }, 0 }, | |
2748 | { "sahf", { XX }, 0 }, | |
2749 | { "lahf", { XX }, 0 }, | |
252b5132 | 2750 | /* a0 */ |
bf890a93 IT |
2751 | { "mov%LB", { AL, Ob }, 0 }, |
2752 | { "mov%LS", { eAX, Ov }, 0 }, | |
2753 | { "mov%LB", { Ob, AL }, 0 }, | |
2754 | { "mov%LS", { Ov, eAX }, 0 }, | |
2755 | { "movs{b|}", { Ybr, Xb }, 0 }, | |
2756 | { "movs{R|}", { Yvr, Xv }, 0 }, | |
2757 | { "cmps{b|}", { Xb, Yb }, 0 }, | |
2758 | { "cmps{R|}", { Xv, Yv }, 0 }, | |
252b5132 | 2759 | /* a8 */ |
bf890a93 IT |
2760 | { "testB", { AL, Ib }, 0 }, |
2761 | { "testS", { eAX, Iv }, 0 }, | |
2762 | { "stosB", { Ybr, AL }, 0 }, | |
2763 | { "stosS", { Yvr, eAX }, 0 }, | |
2764 | { "lodsB", { ALr, Xb }, 0 }, | |
2765 | { "lodsS", { eAXr, Xv }, 0 }, | |
2766 | { "scasB", { AL, Yb }, 0 }, | |
2767 | { "scasS", { eAX, Yv }, 0 }, | |
252b5132 | 2768 | /* b0 */ |
bf890a93 IT |
2769 | { "movB", { RMAL, Ib }, 0 }, |
2770 | { "movB", { RMCL, Ib }, 0 }, | |
2771 | { "movB", { RMDL, Ib }, 0 }, | |
2772 | { "movB", { RMBL, Ib }, 0 }, | |
2773 | { "movB", { RMAH, Ib }, 0 }, | |
2774 | { "movB", { RMCH, Ib }, 0 }, | |
2775 | { "movB", { RMDH, Ib }, 0 }, | |
2776 | { "movB", { RMBH, Ib }, 0 }, | |
252b5132 | 2777 | /* b8 */ |
bf890a93 IT |
2778 | { "mov%LV", { RMeAX, Iv64 }, 0 }, |
2779 | { "mov%LV", { RMeCX, Iv64 }, 0 }, | |
2780 | { "mov%LV", { RMeDX, Iv64 }, 0 }, | |
2781 | { "mov%LV", { RMeBX, Iv64 }, 0 }, | |
2782 | { "mov%LV", { RMeSP, Iv64 }, 0 }, | |
2783 | { "mov%LV", { RMeBP, Iv64 }, 0 }, | |
2784 | { "mov%LV", { RMeSI, Iv64 }, 0 }, | |
2785 | { "mov%LV", { RMeDI, Iv64 }, 0 }, | |
252b5132 | 2786 | /* c0 */ |
1ceb70f8 L |
2787 | { REG_TABLE (REG_C0) }, |
2788 | { REG_TABLE (REG_C1) }, | |
bf890a93 IT |
2789 | { "retT", { Iw, BND }, 0 }, |
2790 | { "retT", { BND }, 0 }, | |
4e7d34a6 L |
2791 | { X86_64_TABLE (X86_64_C4) }, |
2792 | { X86_64_TABLE (X86_64_C5) }, | |
1ceb70f8 L |
2793 | { REG_TABLE (REG_C6) }, |
2794 | { REG_TABLE (REG_C7) }, | |
252b5132 | 2795 | /* c8 */ |
bf890a93 IT |
2796 | { "enterT", { Iw, Ib }, 0 }, |
2797 | { "leaveT", { XX }, 0 }, | |
2798 | { "Jret{|f}P", { Iw }, 0 }, | |
2799 | { "Jret{|f}P", { XX }, 0 }, | |
2800 | { "int3", { XX }, 0 }, | |
2801 | { "int", { Ib }, 0 }, | |
4e7d34a6 | 2802 | { X86_64_TABLE (X86_64_CE) }, |
bf890a93 | 2803 | { "iret%LP", { XX }, 0 }, |
252b5132 | 2804 | /* d0 */ |
1ceb70f8 L |
2805 | { REG_TABLE (REG_D0) }, |
2806 | { REG_TABLE (REG_D1) }, | |
2807 | { REG_TABLE (REG_D2) }, | |
2808 | { REG_TABLE (REG_D3) }, | |
4e7d34a6 L |
2809 | { X86_64_TABLE (X86_64_D4) }, |
2810 | { X86_64_TABLE (X86_64_D5) }, | |
592d1631 | 2811 | { Bad_Opcode }, |
bf890a93 | 2812 | { "xlat", { DSBX }, 0 }, |
252b5132 RH |
2813 | /* d8 */ |
2814 | { FLOAT }, | |
2815 | { FLOAT }, | |
2816 | { FLOAT }, | |
2817 | { FLOAT }, | |
2818 | { FLOAT }, | |
2819 | { FLOAT }, | |
2820 | { FLOAT }, | |
2821 | { FLOAT }, | |
2822 | /* e0 */ | |
bf890a93 IT |
2823 | { "loopneFH", { Jb, XX, loop_jcxz_flag }, 0 }, |
2824 | { "loopeFH", { Jb, XX, loop_jcxz_flag }, 0 }, | |
2825 | { "loopFH", { Jb, XX, loop_jcxz_flag }, 0 }, | |
2826 | { "jEcxzH", { Jb, XX, loop_jcxz_flag }, 0 }, | |
2827 | { "inB", { AL, Ib }, 0 }, | |
2828 | { "inG", { zAX, Ib }, 0 }, | |
2829 | { "outB", { Ib, AL }, 0 }, | |
2830 | { "outG", { Ib, zAX }, 0 }, | |
252b5132 | 2831 | /* e8 */ |
a72d2af2 L |
2832 | { X86_64_TABLE (X86_64_E8) }, |
2833 | { X86_64_TABLE (X86_64_E9) }, | |
4e7d34a6 | 2834 | { X86_64_TABLE (X86_64_EA) }, |
bf890a93 IT |
2835 | { "jmp", { Jb, BND }, 0 }, |
2836 | { "inB", { AL, indirDX }, 0 }, | |
2837 | { "inG", { zAX, indirDX }, 0 }, | |
2838 | { "outB", { indirDX, AL }, 0 }, | |
2839 | { "outG", { indirDX, zAX }, 0 }, | |
252b5132 | 2840 | /* f0 */ |
592d1631 | 2841 | { Bad_Opcode }, /* lock prefix */ |
bf890a93 | 2842 | { "icebp", { XX }, 0 }, |
592d1631 L |
2843 | { Bad_Opcode }, /* repne */ |
2844 | { Bad_Opcode }, /* repz */ | |
bf890a93 IT |
2845 | { "hlt", { XX }, 0 }, |
2846 | { "cmc", { XX }, 0 }, | |
1ceb70f8 L |
2847 | { REG_TABLE (REG_F6) }, |
2848 | { REG_TABLE (REG_F7) }, | |
252b5132 | 2849 | /* f8 */ |
bf890a93 IT |
2850 | { "clc", { XX }, 0 }, |
2851 | { "stc", { XX }, 0 }, | |
2852 | { "cli", { XX }, 0 }, | |
2853 | { "sti", { XX }, 0 }, | |
2854 | { "cld", { XX }, 0 }, | |
2855 | { "std", { XX }, 0 }, | |
1ceb70f8 L |
2856 | { REG_TABLE (REG_FE) }, |
2857 | { REG_TABLE (REG_FF) }, | |
252b5132 RH |
2858 | }; |
2859 | ||
6439fc28 | 2860 | static const struct dis386 dis386_twobyte[] = { |
252b5132 | 2861 | /* 00 */ |
1ceb70f8 L |
2862 | { REG_TABLE (REG_0F00 ) }, |
2863 | { REG_TABLE (REG_0F01 ) }, | |
bf890a93 IT |
2864 | { "larS", { Gv, Ew }, 0 }, |
2865 | { "lslS", { Gv, Ew }, 0 }, | |
592d1631 | 2866 | { Bad_Opcode }, |
bf890a93 IT |
2867 | { "syscall", { XX }, 0 }, |
2868 | { "clts", { XX }, 0 }, | |
2869 | { "sysret%LP", { XX }, 0 }, | |
252b5132 | 2870 | /* 08 */ |
bf890a93 IT |
2871 | { "invd", { XX }, 0 }, |
2872 | { "wbinvd", { XX }, 0 }, | |
592d1631 | 2873 | { Bad_Opcode }, |
bf890a93 | 2874 | { "ud2", { XX }, 0 }, |
592d1631 | 2875 | { Bad_Opcode }, |
b5b1fc4f | 2876 | { REG_TABLE (REG_0F0D) }, |
bf890a93 IT |
2877 | { "femms", { XX }, 0 }, |
2878 | { "", { MX, EM, OPSUF }, 0 }, /* See OP_3DNowSuffix. */ | |
252b5132 | 2879 | /* 10 */ |
1ceb70f8 L |
2880 | { PREFIX_TABLE (PREFIX_0F10) }, |
2881 | { PREFIX_TABLE (PREFIX_0F11) }, | |
2882 | { PREFIX_TABLE (PREFIX_0F12) }, | |
2883 | { MOD_TABLE (MOD_0F13) }, | |
507bd325 L |
2884 | { "unpcklpX", { XM, EXx }, PREFIX_OPCODE }, |
2885 | { "unpckhpX", { XM, EXx }, PREFIX_OPCODE }, | |
1ceb70f8 L |
2886 | { PREFIX_TABLE (PREFIX_0F16) }, |
2887 | { MOD_TABLE (MOD_0F17) }, | |
252b5132 | 2888 | /* 18 */ |
1ceb70f8 | 2889 | { REG_TABLE (REG_0F18) }, |
bf890a93 | 2890 | { "nopQ", { Ev }, 0 }, |
7e8b059b L |
2891 | { PREFIX_TABLE (PREFIX_0F1A) }, |
2892 | { PREFIX_TABLE (PREFIX_0F1B) }, | |
bf890a93 IT |
2893 | { "nopQ", { Ev }, 0 }, |
2894 | { "nopQ", { Ev }, 0 }, | |
603555e5 | 2895 | { PREFIX_TABLE (PREFIX_0F1E) }, |
bf890a93 | 2896 | { "nopQ", { Ev }, 0 }, |
252b5132 | 2897 | /* 20 */ |
bf890a93 IT |
2898 | { "movZ", { Rm, Cm }, 0 }, |
2899 | { "movZ", { Rm, Dm }, 0 }, | |
2900 | { "movZ", { Cm, Rm }, 0 }, | |
2901 | { "movZ", { Dm, Rm }, 0 }, | |
1ceb70f8 | 2902 | { MOD_TABLE (MOD_0F24) }, |
592d1631 | 2903 | { Bad_Opcode }, |
1ceb70f8 | 2904 | { MOD_TABLE (MOD_0F26) }, |
592d1631 | 2905 | { Bad_Opcode }, |
252b5132 | 2906 | /* 28 */ |
507bd325 L |
2907 | { "movapX", { XM, EXx }, PREFIX_OPCODE }, |
2908 | { "movapX", { EXxS, XM }, PREFIX_OPCODE }, | |
1ceb70f8 L |
2909 | { PREFIX_TABLE (PREFIX_0F2A) }, |
2910 | { PREFIX_TABLE (PREFIX_0F2B) }, | |
2911 | { PREFIX_TABLE (PREFIX_0F2C) }, | |
2912 | { PREFIX_TABLE (PREFIX_0F2D) }, | |
2913 | { PREFIX_TABLE (PREFIX_0F2E) }, | |
2914 | { PREFIX_TABLE (PREFIX_0F2F) }, | |
252b5132 | 2915 | /* 30 */ |
bf890a93 IT |
2916 | { "wrmsr", { XX }, 0 }, |
2917 | { "rdtsc", { XX }, 0 }, | |
2918 | { "rdmsr", { XX }, 0 }, | |
2919 | { "rdpmc", { XX }, 0 }, | |
2920 | { "sysenter", { XX }, 0 }, | |
2921 | { "sysexit", { XX }, 0 }, | |
592d1631 | 2922 | { Bad_Opcode }, |
bf890a93 | 2923 | { "getsec", { XX }, 0 }, |
252b5132 | 2924 | /* 38 */ |
507bd325 | 2925 | { THREE_BYTE_TABLE_PREFIX (THREE_BYTE_0F38, PREFIX_OPCODE) }, |
592d1631 | 2926 | { Bad_Opcode }, |
507bd325 | 2927 | { THREE_BYTE_TABLE_PREFIX (THREE_BYTE_0F3A, PREFIX_OPCODE) }, |
592d1631 L |
2928 | { Bad_Opcode }, |
2929 | { Bad_Opcode }, | |
2930 | { Bad_Opcode }, | |
2931 | { Bad_Opcode }, | |
2932 | { Bad_Opcode }, | |
252b5132 | 2933 | /* 40 */ |
bf890a93 IT |
2934 | { "cmovoS", { Gv, Ev }, 0 }, |
2935 | { "cmovnoS", { Gv, Ev }, 0 }, | |
2936 | { "cmovbS", { Gv, Ev }, 0 }, | |
2937 | { "cmovaeS", { Gv, Ev }, 0 }, | |
2938 | { "cmoveS", { Gv, Ev }, 0 }, | |
2939 | { "cmovneS", { Gv, Ev }, 0 }, | |
2940 | { "cmovbeS", { Gv, Ev }, 0 }, | |
2941 | { "cmovaS", { Gv, Ev }, 0 }, | |
252b5132 | 2942 | /* 48 */ |
bf890a93 IT |
2943 | { "cmovsS", { Gv, Ev }, 0 }, |
2944 | { "cmovnsS", { Gv, Ev }, 0 }, | |
2945 | { "cmovpS", { Gv, Ev }, 0 }, | |
2946 | { "cmovnpS", { Gv, Ev }, 0 }, | |
2947 | { "cmovlS", { Gv, Ev }, 0 }, | |
2948 | { "cmovgeS", { Gv, Ev }, 0 }, | |
2949 | { "cmovleS", { Gv, Ev }, 0 }, | |
2950 | { "cmovgS", { Gv, Ev }, 0 }, | |
252b5132 | 2951 | /* 50 */ |
75c135a8 | 2952 | { MOD_TABLE (MOD_0F51) }, |
1ceb70f8 L |
2953 | { PREFIX_TABLE (PREFIX_0F51) }, |
2954 | { PREFIX_TABLE (PREFIX_0F52) }, | |
2955 | { PREFIX_TABLE (PREFIX_0F53) }, | |
507bd325 L |
2956 | { "andpX", { XM, EXx }, PREFIX_OPCODE }, |
2957 | { "andnpX", { XM, EXx }, PREFIX_OPCODE }, | |
2958 | { "orpX", { XM, EXx }, PREFIX_OPCODE }, | |
2959 | { "xorpX", { XM, EXx }, PREFIX_OPCODE }, | |
252b5132 | 2960 | /* 58 */ |
1ceb70f8 L |
2961 | { PREFIX_TABLE (PREFIX_0F58) }, |
2962 | { PREFIX_TABLE (PREFIX_0F59) }, | |
2963 | { PREFIX_TABLE (PREFIX_0F5A) }, | |
2964 | { PREFIX_TABLE (PREFIX_0F5B) }, | |
2965 | { PREFIX_TABLE (PREFIX_0F5C) }, | |
2966 | { PREFIX_TABLE (PREFIX_0F5D) }, | |
2967 | { PREFIX_TABLE (PREFIX_0F5E) }, | |
2968 | { PREFIX_TABLE (PREFIX_0F5F) }, | |
252b5132 | 2969 | /* 60 */ |
1ceb70f8 L |
2970 | { PREFIX_TABLE (PREFIX_0F60) }, |
2971 | { PREFIX_TABLE (PREFIX_0F61) }, | |
2972 | { PREFIX_TABLE (PREFIX_0F62) }, | |
507bd325 L |
2973 | { "packsswb", { MX, EM }, PREFIX_OPCODE }, |
2974 | { "pcmpgtb", { MX, EM }, PREFIX_OPCODE }, | |
2975 | { "pcmpgtw", { MX, EM }, PREFIX_OPCODE }, | |
2976 | { "pcmpgtd", { MX, EM }, PREFIX_OPCODE }, | |
2977 | { "packuswb", { MX, EM }, PREFIX_OPCODE }, | |
252b5132 | 2978 | /* 68 */ |
507bd325 L |
2979 | { "punpckhbw", { MX, EM }, PREFIX_OPCODE }, |
2980 | { "punpckhwd", { MX, EM }, PREFIX_OPCODE }, | |
2981 | { "punpckhdq", { MX, EM }, PREFIX_OPCODE }, | |
2982 | { "packssdw", { MX, EM }, PREFIX_OPCODE }, | |
1ceb70f8 L |
2983 | { PREFIX_TABLE (PREFIX_0F6C) }, |
2984 | { PREFIX_TABLE (PREFIX_0F6D) }, | |
507bd325 | 2985 | { "movK", { MX, Edq }, PREFIX_OPCODE }, |
1ceb70f8 | 2986 | { PREFIX_TABLE (PREFIX_0F6F) }, |
252b5132 | 2987 | /* 70 */ |
1ceb70f8 L |
2988 | { PREFIX_TABLE (PREFIX_0F70) }, |
2989 | { REG_TABLE (REG_0F71) }, | |
2990 | { REG_TABLE (REG_0F72) }, | |
2991 | { REG_TABLE (REG_0F73) }, | |
507bd325 L |
2992 | { "pcmpeqb", { MX, EM }, PREFIX_OPCODE }, |
2993 | { "pcmpeqw", { MX, EM }, PREFIX_OPCODE }, | |
2994 | { "pcmpeqd", { MX, EM }, PREFIX_OPCODE }, | |
2995 | { "emms", { XX }, PREFIX_OPCODE }, | |
252b5132 | 2996 | /* 78 */ |
1ceb70f8 L |
2997 | { PREFIX_TABLE (PREFIX_0F78) }, |
2998 | { PREFIX_TABLE (PREFIX_0F79) }, | |
1f334aeb | 2999 | { Bad_Opcode }, |
592d1631 | 3000 | { Bad_Opcode }, |
1ceb70f8 L |
3001 | { PREFIX_TABLE (PREFIX_0F7C) }, |
3002 | { PREFIX_TABLE (PREFIX_0F7D) }, | |
3003 | { PREFIX_TABLE (PREFIX_0F7E) }, | |
3004 | { PREFIX_TABLE (PREFIX_0F7F) }, | |
252b5132 | 3005 | /* 80 */ |
bf890a93 IT |
3006 | { "joH", { Jv, BND, cond_jump_flag }, 0 }, |
3007 | { "jnoH", { Jv, BND, cond_jump_flag }, 0 }, | |
3008 | { "jbH", { Jv, BND, cond_jump_flag }, 0 }, | |
3009 | { "jaeH", { Jv, BND, cond_jump_flag }, 0 }, | |
3010 | { "jeH", { Jv, BND, cond_jump_flag }, 0 }, | |
3011 | { "jneH", { Jv, BND, cond_jump_flag }, 0 }, | |
3012 | { "jbeH", { Jv, BND, cond_jump_flag }, 0 }, | |
3013 | { "jaH", { Jv, BND, cond_jump_flag }, 0 }, | |
252b5132 | 3014 | /* 88 */ |
bf890a93 IT |
3015 | { "jsH", { Jv, BND, cond_jump_flag }, 0 }, |
3016 | { "jnsH", { Jv, BND, cond_jump_flag }, 0 }, | |
3017 | { "jpH", { Jv, BND, cond_jump_flag }, 0 }, | |
3018 | { "jnpH", { Jv, BND, cond_jump_flag }, 0 }, | |
3019 | { "jlH", { Jv, BND, cond_jump_flag }, 0 }, | |
3020 | { "jgeH", { Jv, BND, cond_jump_flag }, 0 }, | |
3021 | { "jleH", { Jv, BND, cond_jump_flag }, 0 }, | |
3022 | { "jgH", { Jv, BND, cond_jump_flag }, 0 }, | |
252b5132 | 3023 | /* 90 */ |
bf890a93 IT |
3024 | { "seto", { Eb }, 0 }, |
3025 | { "setno", { Eb }, 0 }, | |
3026 | { "setb", { Eb }, 0 }, | |
3027 | { "setae", { Eb }, 0 }, | |
3028 | { "sete", { Eb }, 0 }, | |
3029 | { "setne", { Eb }, 0 }, | |
3030 | { "setbe", { Eb }, 0 }, | |
3031 | { "seta", { Eb }, 0 }, | |
252b5132 | 3032 | /* 98 */ |
bf890a93 IT |
3033 | { "sets", { Eb }, 0 }, |
3034 | { "setns", { Eb }, 0 }, | |
3035 | { "setp", { Eb }, 0 }, | |
3036 | { "setnp", { Eb }, 0 }, | |
3037 | { "setl", { Eb }, 0 }, | |
3038 | { "setge", { Eb }, 0 }, | |
3039 | { "setle", { Eb }, 0 }, | |
3040 | { "setg", { Eb }, 0 }, | |
252b5132 | 3041 | /* a0 */ |
bf890a93 IT |
3042 | { "pushT", { fs }, 0 }, |
3043 | { "popT", { fs }, 0 }, | |
3044 | { "cpuid", { XX }, 0 }, | |
3045 | { "btS", { Ev, Gv }, 0 }, | |
3046 | { "shldS", { Ev, Gv, Ib }, 0 }, | |
3047 | { "shldS", { Ev, Gv, CL }, 0 }, | |
1ceb70f8 L |
3048 | { REG_TABLE (REG_0FA6) }, |
3049 | { REG_TABLE (REG_0FA7) }, | |
252b5132 | 3050 | /* a8 */ |
bf890a93 IT |
3051 | { "pushT", { gs }, 0 }, |
3052 | { "popT", { gs }, 0 }, | |
3053 | { "rsm", { XX }, 0 }, | |
3054 | { "btsS", { Evh1, Gv }, 0 }, | |
3055 | { "shrdS", { Ev, Gv, Ib }, 0 }, | |
3056 | { "shrdS", { Ev, Gv, CL }, 0 }, | |
1ceb70f8 | 3057 | { REG_TABLE (REG_0FAE) }, |
bf890a93 | 3058 | { "imulS", { Gv, Ev }, 0 }, |
252b5132 | 3059 | /* b0 */ |
bf890a93 IT |
3060 | { "cmpxchgB", { Ebh1, Gb }, 0 }, |
3061 | { "cmpxchgS", { Evh1, Gv }, 0 }, | |
1ceb70f8 | 3062 | { MOD_TABLE (MOD_0FB2) }, |
bf890a93 | 3063 | { "btrS", { Evh1, Gv }, 0 }, |
1ceb70f8 L |
3064 | { MOD_TABLE (MOD_0FB4) }, |
3065 | { MOD_TABLE (MOD_0FB5) }, | |
bf890a93 IT |
3066 | { "movz{bR|x}", { Gv, Eb }, 0 }, |
3067 | { "movz{wR|x}", { Gv, Ew }, 0 }, /* yes, there really is movzww ! */ | |
252b5132 | 3068 | /* b8 */ |
1ceb70f8 | 3069 | { PREFIX_TABLE (PREFIX_0FB8) }, |
66f1eba0 | 3070 | { "ud1S", { Gv, Ev }, 0 }, |
1ceb70f8 | 3071 | { REG_TABLE (REG_0FBA) }, |
bf890a93 | 3072 | { "btcS", { Evh1, Gv }, 0 }, |
f12dc422 | 3073 | { PREFIX_TABLE (PREFIX_0FBC) }, |
1ceb70f8 | 3074 | { PREFIX_TABLE (PREFIX_0FBD) }, |
bf890a93 IT |
3075 | { "movs{bR|x}", { Gv, Eb }, 0 }, |
3076 | { "movs{wR|x}", { Gv, Ew }, 0 }, /* yes, there really is movsww ! */ | |
252b5132 | 3077 | /* c0 */ |
bf890a93 IT |
3078 | { "xaddB", { Ebh1, Gb }, 0 }, |
3079 | { "xaddS", { Evh1, Gv }, 0 }, | |
1ceb70f8 | 3080 | { PREFIX_TABLE (PREFIX_0FC2) }, |
a8484f96 | 3081 | { MOD_TABLE (MOD_0FC3) }, |
507bd325 L |
3082 | { "pinsrw", { MX, Edqw, Ib }, PREFIX_OPCODE }, |
3083 | { "pextrw", { Gdq, MS, Ib }, PREFIX_OPCODE }, | |
3084 | { "shufpX", { XM, EXx, Ib }, PREFIX_OPCODE }, | |
1ceb70f8 | 3085 | { REG_TABLE (REG_0FC7) }, |
252b5132 | 3086 | /* c8 */ |
bf890a93 IT |
3087 | { "bswap", { RMeAX }, 0 }, |
3088 | { "bswap", { RMeCX }, 0 }, | |
3089 | { "bswap", { RMeDX }, 0 }, | |
3090 | { "bswap", { RMeBX }, 0 }, | |
3091 | { "bswap", { RMeSP }, 0 }, | |
3092 | { "bswap", { RMeBP }, 0 }, | |
3093 | { "bswap", { RMeSI }, 0 }, | |
3094 | { "bswap", { RMeDI }, 0 }, | |
252b5132 | 3095 | /* d0 */ |
1ceb70f8 | 3096 | { PREFIX_TABLE (PREFIX_0FD0) }, |
507bd325 L |
3097 | { "psrlw", { MX, EM }, PREFIX_OPCODE }, |
3098 | { "psrld", { MX, EM }, PREFIX_OPCODE }, | |
3099 | { "psrlq", { MX, EM }, PREFIX_OPCODE }, | |
3100 | { "paddq", { MX, EM }, PREFIX_OPCODE }, | |
3101 | { "pmullw", { MX, EM }, PREFIX_OPCODE }, | |
1ceb70f8 | 3102 | { PREFIX_TABLE (PREFIX_0FD6) }, |
75c135a8 | 3103 | { MOD_TABLE (MOD_0FD7) }, |
252b5132 | 3104 | /* d8 */ |
507bd325 L |
3105 | { "psubusb", { MX, EM }, PREFIX_OPCODE }, |
3106 | { "psubusw", { MX, EM }, PREFIX_OPCODE }, | |
3107 | { "pminub", { MX, EM }, PREFIX_OPCODE }, | |
3108 | { "pand", { MX, EM }, PREFIX_OPCODE }, | |
3109 | { "paddusb", { MX, EM }, PREFIX_OPCODE }, | |
3110 | { "paddusw", { MX, EM }, PREFIX_OPCODE }, | |
3111 | { "pmaxub", { MX, EM }, PREFIX_OPCODE }, | |
3112 | { "pandn", { MX, EM }, PREFIX_OPCODE }, | |
252b5132 | 3113 | /* e0 */ |
507bd325 L |
3114 | { "pavgb", { MX, EM }, PREFIX_OPCODE }, |
3115 | { "psraw", { MX, EM }, PREFIX_OPCODE }, | |
3116 | { "psrad", { MX, EM }, PREFIX_OPCODE }, | |
3117 | { "pavgw", { MX, EM }, PREFIX_OPCODE }, | |
3118 | { "pmulhuw", { MX, EM }, PREFIX_OPCODE }, | |
3119 | { "pmulhw", { MX, EM }, PREFIX_OPCODE }, | |
1ceb70f8 L |
3120 | { PREFIX_TABLE (PREFIX_0FE6) }, |
3121 | { PREFIX_TABLE (PREFIX_0FE7) }, | |
252b5132 | 3122 | /* e8 */ |
507bd325 L |
3123 | { "psubsb", { MX, EM }, PREFIX_OPCODE }, |
3124 | { "psubsw", { MX, EM }, PREFIX_OPCODE }, | |
3125 | { "pminsw", { MX, EM }, PREFIX_OPCODE }, | |
3126 | { "por", { MX, EM }, PREFIX_OPCODE }, | |
3127 | { "paddsb", { MX, EM }, PREFIX_OPCODE }, | |
3128 | { "paddsw", { MX, EM }, PREFIX_OPCODE }, | |
3129 | { "pmaxsw", { MX, EM }, PREFIX_OPCODE }, | |
3130 | { "pxor", { MX, EM }, PREFIX_OPCODE }, | |
252b5132 | 3131 | /* f0 */ |
1ceb70f8 | 3132 | { PREFIX_TABLE (PREFIX_0FF0) }, |
507bd325 L |
3133 | { "psllw", { MX, EM }, PREFIX_OPCODE }, |
3134 | { "pslld", { MX, EM }, PREFIX_OPCODE }, | |
3135 | { "psllq", { MX, EM }, PREFIX_OPCODE }, | |
3136 | { "pmuludq", { MX, EM }, PREFIX_OPCODE }, | |
3137 | { "pmaddwd", { MX, EM }, PREFIX_OPCODE }, | |
3138 | { "psadbw", { MX, EM }, PREFIX_OPCODE }, | |
1ceb70f8 | 3139 | { PREFIX_TABLE (PREFIX_0FF7) }, |
252b5132 | 3140 | /* f8 */ |
507bd325 L |
3141 | { "psubb", { MX, EM }, PREFIX_OPCODE }, |
3142 | { "psubw", { MX, EM }, PREFIX_OPCODE }, | |
3143 | { "psubd", { MX, EM }, PREFIX_OPCODE }, | |
3144 | { "psubq", { MX, EM }, PREFIX_OPCODE }, | |
3145 | { "paddb", { MX, EM }, PREFIX_OPCODE }, | |
3146 | { "paddw", { MX, EM }, PREFIX_OPCODE }, | |
3147 | { "paddd", { MX, EM }, PREFIX_OPCODE }, | |
66f1eba0 | 3148 | { "ud0S", { Gv, Ev }, 0 }, |
252b5132 RH |
3149 | }; |
3150 | ||
3151 | static const unsigned char onebyte_has_modrm[256] = { | |
c608c12e AM |
3152 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ |
3153 | /* ------------------------------- */ | |
3154 | /* 00 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 00 */ | |
3155 | /* 10 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 10 */ | |
3156 | /* 20 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 20 */ | |
3157 | /* 30 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 30 */ | |
3158 | /* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 40 */ | |
3159 | /* 50 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 50 */ | |
3160 | /* 60 */ 0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0, /* 60 */ | |
3161 | /* 70 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 70 */ | |
3162 | /* 80 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 80 */ | |
3163 | /* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 90 */ | |
3164 | /* a0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* a0 */ | |
3165 | /* b0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* b0 */ | |
3166 | /* c0 */ 1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0, /* c0 */ | |
3167 | /* d0 */ 1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1, /* d0 */ | |
3168 | /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* e0 */ | |
3169 | /* f0 */ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1 /* f0 */ | |
3170 | /* ------------------------------- */ | |
3171 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ | |
252b5132 RH |
3172 | }; |
3173 | ||
3174 | static const unsigned char twobyte_has_modrm[256] = { | |
c608c12e AM |
3175 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ |
3176 | /* ------------------------------- */ | |
252b5132 | 3177 | /* 00 */ 1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,1, /* 0f */ |
b5b1fc4f | 3178 | /* 10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 1f */ |
85f10a01 | 3179 | /* 20 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 2f */ |
331d2d0d | 3180 | /* 30 */ 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0, /* 3f */ |
252b5132 | 3181 | /* 40 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 4f */ |
4bba6815 AM |
3182 | /* 50 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 5f */ |
3183 | /* 60 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 6f */ | |
85f10a01 | 3184 | /* 70 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 7f */ |
252b5132 RH |
3185 | /* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */ |
3186 | /* 90 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 9f */ | |
30d1c836 | 3187 | /* a0 */ 0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1, /* af */ |
66f1eba0 | 3188 | /* b0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* bf */ |
252b5132 | 3189 | /* c0 */ 1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* cf */ |
ca164297 | 3190 | /* d0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* df */ |
4bba6815 | 3191 | /* e0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ef */ |
66f1eba0 | 3192 | /* f0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 /* ff */ |
c608c12e AM |
3193 | /* ------------------------------- */ |
3194 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ | |
3195 | }; | |
3196 | ||
252b5132 RH |
3197 | static char obuf[100]; |
3198 | static char *obufp; | |
ea397f5b | 3199 | static char *mnemonicendp; |
252b5132 RH |
3200 | static char scratchbuf[100]; |
3201 | static unsigned char *start_codep; | |
3202 | static unsigned char *insn_codep; | |
3203 | static unsigned char *codep; | |
285ca992 | 3204 | static unsigned char *end_codep; |
f16cd0d5 L |
3205 | static int last_lock_prefix; |
3206 | static int last_repz_prefix; | |
3207 | static int last_repnz_prefix; | |
3208 | static int last_data_prefix; | |
3209 | static int last_addr_prefix; | |
3210 | static int last_rex_prefix; | |
3211 | static int last_seg_prefix; | |
d9949a36 | 3212 | static int fwait_prefix; |
285ca992 L |
3213 | /* The active segment register prefix. */ |
3214 | static int active_seg_prefix; | |
f16cd0d5 L |
3215 | #define MAX_CODE_LENGTH 15 |
3216 | /* We can up to 14 prefixes since the maximum instruction length is | |
3217 | 15bytes. */ | |
3218 | static int all_prefixes[MAX_CODE_LENGTH - 1]; | |
252b5132 | 3219 | static disassemble_info *the_info; |
7967e09e L |
3220 | static struct |
3221 | { | |
3222 | int mod; | |
7967e09e | 3223 | int reg; |
484c222e | 3224 | int rm; |
7967e09e L |
3225 | } |
3226 | modrm; | |
4bba6815 | 3227 | static unsigned char need_modrm; |
dfc8cf43 L |
3228 | static struct |
3229 | { | |
3230 | int scale; | |
3231 | int index; | |
3232 | int base; | |
3233 | } | |
3234 | sib; | |
c0f3af97 L |
3235 | static struct |
3236 | { | |
3237 | int register_specifier; | |
3238 | int length; | |
3239 | int prefix; | |
3240 | int w; | |
43234a1e L |
3241 | int evex; |
3242 | int r; | |
3243 | int v; | |
3244 | int mask_register_specifier; | |
3245 | int zeroing; | |
3246 | int ll; | |
3247 | int b; | |
c0f3af97 L |
3248 | } |
3249 | vex; | |
3250 | static unsigned char need_vex; | |
3251 | static unsigned char need_vex_reg; | |
dae39acc | 3252 | static unsigned char vex_w_done; |
252b5132 | 3253 | |
ea397f5b L |
3254 | struct op |
3255 | { | |
3256 | const char *name; | |
3257 | unsigned int len; | |
3258 | }; | |
3259 | ||
4bba6815 AM |
3260 | /* If we are accessing mod/rm/reg without need_modrm set, then the |
3261 | values are stale. Hitting this abort likely indicates that you | |
3262 | need to update onebyte_has_modrm or twobyte_has_modrm. */ | |
3263 | #define MODRM_CHECK if (!need_modrm) abort () | |
3264 | ||
d708bcba AM |
3265 | static const char **names64; |
3266 | static const char **names32; | |
3267 | static const char **names16; | |
3268 | static const char **names8; | |
3269 | static const char **names8rex; | |
3270 | static const char **names_seg; | |
db51cc60 L |
3271 | static const char *index64; |
3272 | static const char *index32; | |
d708bcba | 3273 | static const char **index16; |
7e8b059b | 3274 | static const char **names_bnd; |
d708bcba AM |
3275 | |
3276 | static const char *intel_names64[] = { | |
3277 | "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi", | |
3278 | "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15" | |
3279 | }; | |
3280 | static const char *intel_names32[] = { | |
3281 | "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi", | |
3282 | "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d" | |
3283 | }; | |
3284 | static const char *intel_names16[] = { | |
3285 | "ax", "cx", "dx", "bx", "sp", "bp", "si", "di", | |
3286 | "r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w" | |
3287 | }; | |
3288 | static const char *intel_names8[] = { | |
3289 | "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh", | |
3290 | }; | |
3291 | static const char *intel_names8rex[] = { | |
3292 | "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil", | |
3293 | "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b" | |
3294 | }; | |
3295 | static const char *intel_names_seg[] = { | |
3296 | "es", "cs", "ss", "ds", "fs", "gs", "?", "?", | |
3297 | }; | |
db51cc60 L |
3298 | static const char *intel_index64 = "riz"; |
3299 | static const char *intel_index32 = "eiz"; | |
d708bcba AM |
3300 | static const char *intel_index16[] = { |
3301 | "bx+si", "bx+di", "bp+si", "bp+di", "si", "di", "bp", "bx" | |
3302 | }; | |
3303 | ||
3304 | static const char *att_names64[] = { | |
3305 | "%rax", "%rcx", "%rdx", "%rbx", "%rsp", "%rbp", "%rsi", "%rdi", | |
52b15da3 JH |
3306 | "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15" |
3307 | }; | |
d708bcba AM |
3308 | static const char *att_names32[] = { |
3309 | "%eax", "%ecx", "%edx", "%ebx", "%esp", "%ebp", "%esi", "%edi", | |
52b15da3 | 3310 | "%r8d", "%r9d", "%r10d", "%r11d", "%r12d", "%r13d", "%r14d", "%r15d" |
252b5132 | 3311 | }; |
d708bcba AM |
3312 | static const char *att_names16[] = { |
3313 | "%ax", "%cx", "%dx", "%bx", "%sp", "%bp", "%si", "%di", | |
52b15da3 | 3314 | "%r8w", "%r9w", "%r10w", "%r11w", "%r12w", "%r13w", "%r14w", "%r15w" |
252b5132 | 3315 | }; |
d708bcba AM |
3316 | static const char *att_names8[] = { |
3317 | "%al", "%cl", "%dl", "%bl", "%ah", "%ch", "%dh", "%bh", | |
252b5132 | 3318 | }; |
d708bcba AM |
3319 | static const char *att_names8rex[] = { |
3320 | "%al", "%cl", "%dl", "%bl", "%spl", "%bpl", "%sil", "%dil", | |
52b15da3 JH |
3321 | "%r8b", "%r9b", "%r10b", "%r11b", "%r12b", "%r13b", "%r14b", "%r15b" |
3322 | }; | |
d708bcba AM |
3323 | static const char *att_names_seg[] = { |
3324 | "%es", "%cs", "%ss", "%ds", "%fs", "%gs", "%?", "%?", | |
252b5132 | 3325 | }; |
db51cc60 L |
3326 | static const char *att_index64 = "%riz"; |
3327 | static const char *att_index32 = "%eiz"; | |
d708bcba AM |
3328 | static const char *att_index16[] = { |
3329 | "%bx,%si", "%bx,%di", "%bp,%si", "%bp,%di", "%si", "%di", "%bp", "%bx" | |
252b5132 RH |
3330 | }; |
3331 | ||
b9733481 L |
3332 | static const char **names_mm; |
3333 | static const char *intel_names_mm[] = { | |
3334 | "mm0", "mm1", "mm2", "mm3", | |
3335 | "mm4", "mm5", "mm6", "mm7" | |
3336 | }; | |
3337 | static const char *att_names_mm[] = { | |
3338 | "%mm0", "%mm1", "%mm2", "%mm3", | |
3339 | "%mm4", "%mm5", "%mm6", "%mm7" | |
3340 | }; | |
3341 | ||
7e8b059b L |
3342 | static const char *intel_names_bnd[] = { |
3343 | "bnd0", "bnd1", "bnd2", "bnd3" | |
3344 | }; | |
3345 | ||
3346 | static const char *att_names_bnd[] = { | |
3347 | "%bnd0", "%bnd1", "%bnd2", "%bnd3" | |
3348 | }; | |
3349 | ||
b9733481 L |
3350 | static const char **names_xmm; |
3351 | static const char *intel_names_xmm[] = { | |
3352 | "xmm0", "xmm1", "xmm2", "xmm3", | |
3353 | "xmm4", "xmm5", "xmm6", "xmm7", | |
3354 | "xmm8", "xmm9", "xmm10", "xmm11", | |
43234a1e L |
3355 | "xmm12", "xmm13", "xmm14", "xmm15", |
3356 | "xmm16", "xmm17", "xmm18", "xmm19", | |
3357 | "xmm20", "xmm21", "xmm22", "xmm23", | |
3358 | "xmm24", "xmm25", "xmm26", "xmm27", | |
3359 | "xmm28", "xmm29", "xmm30", "xmm31" | |
b9733481 L |
3360 | }; |
3361 | static const char *att_names_xmm[] = { | |
3362 | "%xmm0", "%xmm1", "%xmm2", "%xmm3", | |
3363 | "%xmm4", "%xmm5", "%xmm6", "%xmm7", | |
3364 | "%xmm8", "%xmm9", "%xmm10", "%xmm11", | |
43234a1e L |
3365 | "%xmm12", "%xmm13", "%xmm14", "%xmm15", |
3366 | "%xmm16", "%xmm17", "%xmm18", "%xmm19", | |
3367 | "%xmm20", "%xmm21", "%xmm22", "%xmm23", | |
3368 | "%xmm24", "%xmm25", "%xmm26", "%xmm27", | |
3369 | "%xmm28", "%xmm29", "%xmm30", "%xmm31" | |
b9733481 L |
3370 | }; |
3371 | ||
3372 | static const char **names_ymm; | |
3373 | static const char *intel_names_ymm[] = { | |
3374 | "ymm0", "ymm1", "ymm2", "ymm3", | |
3375 | "ymm4", "ymm5", "ymm6", "ymm7", | |
3376 | "ymm8", "ymm9", "ymm10", "ymm11", | |
43234a1e L |
3377 | "ymm12", "ymm13", "ymm14", "ymm15", |
3378 | "ymm16", "ymm17", "ymm18", "ymm19", | |
3379 | "ymm20", "ymm21", "ymm22", "ymm23", | |
3380 | "ymm24", "ymm25", "ymm26", "ymm27", | |
3381 | "ymm28", "ymm29", "ymm30", "ymm31" | |
b9733481 L |
3382 | }; |
3383 | static const char *att_names_ymm[] = { | |
3384 | "%ymm0", "%ymm1", "%ymm2", "%ymm3", | |
3385 | "%ymm4", "%ymm5", "%ymm6", "%ymm7", | |
3386 | "%ymm8", "%ymm9", "%ymm10", "%ymm11", | |
43234a1e L |
3387 | "%ymm12", "%ymm13", "%ymm14", "%ymm15", |
3388 | "%ymm16", "%ymm17", "%ymm18", "%ymm19", | |
3389 | "%ymm20", "%ymm21", "%ymm22", "%ymm23", | |
3390 | "%ymm24", "%ymm25", "%ymm26", "%ymm27", | |
3391 | "%ymm28", "%ymm29", "%ymm30", "%ymm31" | |
3392 | }; | |
3393 | ||
3394 | static const char **names_zmm; | |
3395 | static const char *intel_names_zmm[] = { | |
3396 | "zmm0", "zmm1", "zmm2", "zmm3", | |
3397 | "zmm4", "zmm5", "zmm6", "zmm7", | |
3398 | "zmm8", "zmm9", "zmm10", "zmm11", | |
3399 | "zmm12", "zmm13", "zmm14", "zmm15", | |
3400 | "zmm16", "zmm17", "zmm18", "zmm19", | |
3401 | "zmm20", "zmm21", "zmm22", "zmm23", | |
3402 | "zmm24", "zmm25", "zmm26", "zmm27", | |
3403 | "zmm28", "zmm29", "zmm30", "zmm31" | |
3404 | }; | |
3405 | static const char *att_names_zmm[] = { | |
3406 | "%zmm0", "%zmm1", "%zmm2", "%zmm3", | |
3407 | "%zmm4", "%zmm5", "%zmm6", "%zmm7", | |
3408 | "%zmm8", "%zmm9", "%zmm10", "%zmm11", | |
3409 | "%zmm12", "%zmm13", "%zmm14", "%zmm15", | |
3410 | "%zmm16", "%zmm17", "%zmm18", "%zmm19", | |
3411 | "%zmm20", "%zmm21", "%zmm22", "%zmm23", | |
3412 | "%zmm24", "%zmm25", "%zmm26", "%zmm27", | |
3413 | "%zmm28", "%zmm29", "%zmm30", "%zmm31" | |
3414 | }; | |
3415 | ||
3416 | static const char **names_mask; | |
3417 | static const char *intel_names_mask[] = { | |
3418 | "k0", "k1", "k2", "k3", "k4", "k5", "k6", "k7" | |
3419 | }; | |
3420 | static const char *att_names_mask[] = { | |
3421 | "%k0", "%k1", "%k2", "%k3", "%k4", "%k5", "%k6", "%k7" | |
3422 | }; | |
3423 | ||
3424 | static const char *names_rounding[] = | |
3425 | { | |
3426 | "{rn-sae}", | |
3427 | "{rd-sae}", | |
3428 | "{ru-sae}", | |
3429 | "{rz-sae}" | |
b9733481 L |
3430 | }; |
3431 | ||
1ceb70f8 L |
3432 | static const struct dis386 reg_table[][8] = { |
3433 | /* REG_80 */ | |
252b5132 | 3434 | { |
bf890a93 IT |
3435 | { "addA", { Ebh1, Ib }, 0 }, |
3436 | { "orA", { Ebh1, Ib }, 0 }, | |
3437 | { "adcA", { Ebh1, Ib }, 0 }, | |
3438 | { "sbbA", { Ebh1, Ib }, 0 }, | |
3439 | { "andA", { Ebh1, Ib }, 0 }, | |
3440 | { "subA", { Ebh1, Ib }, 0 }, | |
3441 | { "xorA", { Ebh1, Ib }, 0 }, | |
3442 | { "cmpA", { Eb, Ib }, 0 }, | |
252b5132 | 3443 | }, |
1ceb70f8 | 3444 | /* REG_81 */ |
252b5132 | 3445 | { |
bf890a93 IT |
3446 | { "addQ", { Evh1, Iv }, 0 }, |
3447 | { "orQ", { Evh1, Iv }, 0 }, | |
3448 | { "adcQ", { Evh1, Iv }, 0 }, | |
3449 | { "sbbQ", { Evh1, Iv }, 0 }, | |
3450 | { "andQ", { Evh1, Iv }, 0 }, | |
3451 | { "subQ", { Evh1, Iv }, 0 }, | |
3452 | { "xorQ", { Evh1, Iv }, 0 }, | |
3453 | { "cmpQ", { Ev, Iv }, 0 }, | |
252b5132 | 3454 | }, |
7148c369 | 3455 | /* REG_83 */ |
252b5132 | 3456 | { |
bf890a93 IT |
3457 | { "addQ", { Evh1, sIb }, 0 }, |
3458 | { "orQ", { Evh1, sIb }, 0 }, | |
3459 | { "adcQ", { Evh1, sIb }, 0 }, | |
3460 | { "sbbQ", { Evh1, sIb }, 0 }, | |
3461 | { "andQ", { Evh1, sIb }, 0 }, | |
3462 | { "subQ", { Evh1, sIb }, 0 }, | |
3463 | { "xorQ", { Evh1, sIb }, 0 }, | |
3464 | { "cmpQ", { Ev, sIb }, 0 }, | |
252b5132 | 3465 | }, |
1ceb70f8 | 3466 | /* REG_8F */ |
4e7d34a6 | 3467 | { |
bf890a93 | 3468 | { "popU", { stackEv }, 0 }, |
c48244a5 | 3469 | { XOP_8F_TABLE (XOP_09) }, |
592d1631 L |
3470 | { Bad_Opcode }, |
3471 | { Bad_Opcode }, | |
3472 | { Bad_Opcode }, | |
f88c9eb0 | 3473 | { XOP_8F_TABLE (XOP_09) }, |
4e7d34a6 | 3474 | }, |
1ceb70f8 | 3475 | /* REG_C0 */ |
252b5132 | 3476 | { |
bf890a93 IT |
3477 | { "rolA", { Eb, Ib }, 0 }, |
3478 | { "rorA", { Eb, Ib }, 0 }, | |
3479 | { "rclA", { Eb, Ib }, 0 }, | |
3480 | { "rcrA", { Eb, Ib }, 0 }, | |
3481 | { "shlA", { Eb, Ib }, 0 }, | |
3482 | { "shrA", { Eb, Ib }, 0 }, | |
e4bdd679 | 3483 | { "shlA", { Eb, Ib }, 0 }, |
bf890a93 | 3484 | { "sarA", { Eb, Ib }, 0 }, |
252b5132 | 3485 | }, |
1ceb70f8 | 3486 | /* REG_C1 */ |
252b5132 | 3487 | { |
bf890a93 IT |
3488 | { "rolQ", { Ev, Ib }, 0 }, |
3489 | { "rorQ", { Ev, Ib }, 0 }, | |
3490 | { "rclQ", { Ev, Ib }, 0 }, | |
3491 | { "rcrQ", { Ev, Ib }, 0 }, | |
3492 | { "shlQ", { Ev, Ib }, 0 }, | |
3493 | { "shrQ", { Ev, Ib }, 0 }, | |
e4bdd679 | 3494 | { "shlQ", { Ev, Ib }, 0 }, |
bf890a93 | 3495 | { "sarQ", { Ev, Ib }, 0 }, |
252b5132 | 3496 | }, |
1ceb70f8 | 3497 | /* REG_C6 */ |
4e7d34a6 | 3498 | { |
bf890a93 | 3499 | { "movA", { Ebh3, Ib }, 0 }, |
42164a71 L |
3500 | { Bad_Opcode }, |
3501 | { Bad_Opcode }, | |
3502 | { Bad_Opcode }, | |
3503 | { Bad_Opcode }, | |
3504 | { Bad_Opcode }, | |
3505 | { Bad_Opcode }, | |
3506 | { MOD_TABLE (MOD_C6_REG_7) }, | |
4e7d34a6 | 3507 | }, |
1ceb70f8 | 3508 | /* REG_C7 */ |
4e7d34a6 | 3509 | { |
bf890a93 | 3510 | { "movQ", { Evh3, Iv }, 0 }, |
42164a71 L |
3511 | { Bad_Opcode }, |
3512 | { Bad_Opcode }, | |
3513 | { Bad_Opcode }, | |
3514 | { Bad_Opcode }, | |
3515 | { Bad_Opcode }, | |
3516 | { Bad_Opcode }, | |
3517 | { MOD_TABLE (MOD_C7_REG_7) }, | |
4e7d34a6 | 3518 | }, |
1ceb70f8 | 3519 | /* REG_D0 */ |
252b5132 | 3520 | { |
bf890a93 IT |
3521 | { "rolA", { Eb, I1 }, 0 }, |
3522 | { "rorA", { Eb, I1 }, 0 }, | |
3523 | { "rclA", { Eb, I1 }, 0 }, | |
3524 | { "rcrA", { Eb, I1 }, 0 }, | |
3525 | { "shlA", { Eb, I1 }, 0 }, | |
3526 | { "shrA", { Eb, I1 }, 0 }, | |
e4bdd679 | 3527 | { "shlA", { Eb, I1 }, 0 }, |
bf890a93 | 3528 | { "sarA", { Eb, I1 }, 0 }, |
252b5132 | 3529 | }, |
1ceb70f8 | 3530 | /* REG_D1 */ |
252b5132 | 3531 | { |
bf890a93 IT |
3532 | { "rolQ", { Ev, I1 }, 0 }, |
3533 | { "rorQ", { Ev, I1 }, 0 }, | |
3534 | { "rclQ", { Ev, I1 }, 0 }, | |
3535 | { "rcrQ", { Ev, I1 }, 0 }, | |
3536 | { "shlQ", { Ev, I1 }, 0 }, | |
3537 | { "shrQ", { Ev, I1 }, 0 }, | |
e4bdd679 | 3538 | { "shlQ", { Ev, I1 }, 0 }, |
bf890a93 | 3539 | { "sarQ", { Ev, I1 }, 0 }, |
252b5132 | 3540 | }, |
1ceb70f8 | 3541 | /* REG_D2 */ |
252b5132 | 3542 | { |
bf890a93 IT |
3543 | { "rolA", { Eb, CL }, 0 }, |
3544 | { "rorA", { Eb, CL }, 0 }, | |
3545 | { "rclA", { Eb, CL }, 0 }, | |
3546 | { "rcrA", { Eb, CL }, 0 }, | |
3547 | { "shlA", { Eb, CL }, 0 }, | |
3548 | { "shrA", { Eb, CL }, 0 }, | |
e4bdd679 | 3549 | { "shlA", { Eb, CL }, 0 }, |
bf890a93 | 3550 | { "sarA", { Eb, CL }, 0 }, |
252b5132 | 3551 | }, |
1ceb70f8 | 3552 | /* REG_D3 */ |
252b5132 | 3553 | { |
bf890a93 IT |
3554 | { "rolQ", { Ev, CL }, 0 }, |
3555 | { "rorQ", { Ev, CL }, 0 }, | |
3556 | { "rclQ", { Ev, CL }, 0 }, | |
3557 | { "rcrQ", { Ev, CL }, 0 }, | |
3558 | { "shlQ", { Ev, CL }, 0 }, | |
3559 | { "shrQ", { Ev, CL }, 0 }, | |
e4bdd679 | 3560 | { "shlQ", { Ev, CL }, 0 }, |
bf890a93 | 3561 | { "sarQ", { Ev, CL }, 0 }, |
252b5132 | 3562 | }, |
1ceb70f8 | 3563 | /* REG_F6 */ |
252b5132 | 3564 | { |
bf890a93 | 3565 | { "testA", { Eb, Ib }, 0 }, |
7db2c588 | 3566 | { "testA", { Eb, Ib }, 0 }, |
bf890a93 IT |
3567 | { "notA", { Ebh1 }, 0 }, |
3568 | { "negA", { Ebh1 }, 0 }, | |
3569 | { "mulA", { Eb }, 0 }, /* Don't print the implicit %al register, */ | |
3570 | { "imulA", { Eb }, 0 }, /* to distinguish these opcodes from other */ | |
3571 | { "divA", { Eb }, 0 }, /* mul/imul opcodes. Do the same for div */ | |
3572 | { "idivA", { Eb }, 0 }, /* and idiv for consistency. */ | |
252b5132 | 3573 | }, |
1ceb70f8 | 3574 | /* REG_F7 */ |
252b5132 | 3575 | { |
bf890a93 | 3576 | { "testQ", { Ev, Iv }, 0 }, |
7db2c588 | 3577 | { "testQ", { Ev, Iv }, 0 }, |
bf890a93 IT |
3578 | { "notQ", { Evh1 }, 0 }, |
3579 | { "negQ", { Evh1 }, 0 }, | |
3580 | { "mulQ", { Ev }, 0 }, /* Don't print the implicit register. */ | |
3581 | { "imulQ", { Ev }, 0 }, | |
3582 | { "divQ", { Ev }, 0 }, | |
3583 | { "idivQ", { Ev }, 0 }, | |
252b5132 | 3584 | }, |
1ceb70f8 | 3585 | /* REG_FE */ |
252b5132 | 3586 | { |
bf890a93 IT |
3587 | { "incA", { Ebh1 }, 0 }, |
3588 | { "decA", { Ebh1 }, 0 }, | |
252b5132 | 3589 | }, |
1ceb70f8 | 3590 | /* REG_FF */ |
252b5132 | 3591 | { |
bf890a93 IT |
3592 | { "incQ", { Evh1 }, 0 }, |
3593 | { "decQ", { Evh1 }, 0 }, | |
9fef80d6 | 3594 | { "call{&|}", { NOTRACK, indirEv, BND }, 0 }, |
4a357820 | 3595 | { MOD_TABLE (MOD_FF_REG_3) }, |
9fef80d6 | 3596 | { "jmp{&|}", { NOTRACK, indirEv, BND }, 0 }, |
4a357820 | 3597 | { MOD_TABLE (MOD_FF_REG_5) }, |
bf890a93 | 3598 | { "pushU", { stackEv }, 0 }, |
592d1631 | 3599 | { Bad_Opcode }, |
252b5132 | 3600 | }, |
1ceb70f8 | 3601 | /* REG_0F00 */ |
252b5132 | 3602 | { |
bf890a93 IT |
3603 | { "sldtD", { Sv }, 0 }, |
3604 | { "strD", { Sv }, 0 }, | |
3605 | { "lldt", { Ew }, 0 }, | |
3606 | { "ltr", { Ew }, 0 }, | |
3607 | { "verr", { Ew }, 0 }, | |
3608 | { "verw", { Ew }, 0 }, | |
592d1631 L |
3609 | { Bad_Opcode }, |
3610 | { Bad_Opcode }, | |
252b5132 | 3611 | }, |
1ceb70f8 | 3612 | /* REG_0F01 */ |
252b5132 | 3613 | { |
1ceb70f8 L |
3614 | { MOD_TABLE (MOD_0F01_REG_0) }, |
3615 | { MOD_TABLE (MOD_0F01_REG_1) }, | |
3616 | { MOD_TABLE (MOD_0F01_REG_2) }, | |
3617 | { MOD_TABLE (MOD_0F01_REG_3) }, | |
bf890a93 | 3618 | { "smswD", { Sv }, 0 }, |
8eab4136 | 3619 | { MOD_TABLE (MOD_0F01_REG_5) }, |
bf890a93 | 3620 | { "lmsw", { Ew }, 0 }, |
1ceb70f8 | 3621 | { MOD_TABLE (MOD_0F01_REG_7) }, |
252b5132 | 3622 | }, |
b5b1fc4f | 3623 | /* REG_0F0D */ |
252b5132 | 3624 | { |
bf890a93 IT |
3625 | { "prefetch", { Mb }, 0 }, |
3626 | { "prefetchw", { Mb }, 0 }, | |
3627 | { "prefetchwt1", { Mb }, 0 }, | |
3628 | { "prefetch", { Mb }, 0 }, | |
3629 | { "prefetch", { Mb }, 0 }, | |
3630 | { "prefetch", { Mb }, 0 }, | |
3631 | { "prefetch", { Mb }, 0 }, | |
3632 | { "prefetch", { Mb }, 0 }, | |
252b5132 | 3633 | }, |
1ceb70f8 | 3634 | /* REG_0F18 */ |
252b5132 | 3635 | { |
1ceb70f8 L |
3636 | { MOD_TABLE (MOD_0F18_REG_0) }, |
3637 | { MOD_TABLE (MOD_0F18_REG_1) }, | |
3638 | { MOD_TABLE (MOD_0F18_REG_2) }, | |
3639 | { MOD_TABLE (MOD_0F18_REG_3) }, | |
d7189fa5 RM |
3640 | { MOD_TABLE (MOD_0F18_REG_4) }, |
3641 | { MOD_TABLE (MOD_0F18_REG_5) }, | |
3642 | { MOD_TABLE (MOD_0F18_REG_6) }, | |
3643 | { MOD_TABLE (MOD_0F18_REG_7) }, | |
252b5132 | 3644 | }, |
603555e5 L |
3645 | /* REG_0F1E_MOD_3 */ |
3646 | { | |
3647 | { "nopQ", { Ev }, 0 }, | |
3648 | { "rdsspK", { Rdq }, PREFIX_OPCODE }, | |
3649 | { "nopQ", { Ev }, 0 }, | |
3650 | { "nopQ", { Ev }, 0 }, | |
3651 | { "nopQ", { Ev }, 0 }, | |
3652 | { "nopQ", { Ev }, 0 }, | |
3653 | { "nopQ", { Ev }, 0 }, | |
3654 | { RM_TABLE (RM_0F1E_MOD_3_REG_7) }, | |
3655 | }, | |
1ceb70f8 | 3656 | /* REG_0F71 */ |
a6bd098c | 3657 | { |
592d1631 L |
3658 | { Bad_Opcode }, |
3659 | { Bad_Opcode }, | |
1ceb70f8 | 3660 | { MOD_TABLE (MOD_0F71_REG_2) }, |
592d1631 | 3661 | { Bad_Opcode }, |
1ceb70f8 | 3662 | { MOD_TABLE (MOD_0F71_REG_4) }, |
592d1631 | 3663 | { Bad_Opcode }, |
1ceb70f8 | 3664 | { MOD_TABLE (MOD_0F71_REG_6) }, |
a6bd098c | 3665 | }, |
1ceb70f8 | 3666 | /* REG_0F72 */ |
a6bd098c | 3667 | { |
592d1631 L |
3668 | { Bad_Opcode }, |
3669 | { Bad_Opcode }, | |
1ceb70f8 | 3670 | { MOD_TABLE (MOD_0F72_REG_2) }, |
592d1631 | 3671 | { Bad_Opcode }, |
1ceb70f8 | 3672 | { MOD_TABLE (MOD_0F72_REG_4) }, |
592d1631 | 3673 | { Bad_Opcode }, |
1ceb70f8 | 3674 | { MOD_TABLE (MOD_0F72_REG_6) }, |
a6bd098c | 3675 | }, |
1ceb70f8 | 3676 | /* REG_0F73 */ |
252b5132 | 3677 | { |
592d1631 L |
3678 | { Bad_Opcode }, |
3679 | { Bad_Opcode }, | |
1ceb70f8 L |
3680 | { MOD_TABLE (MOD_0F73_REG_2) }, |
3681 | { MOD_TABLE (MOD_0F73_REG_3) }, | |
592d1631 L |
3682 | { Bad_Opcode }, |
3683 | { Bad_Opcode }, | |
1ceb70f8 L |
3684 | { MOD_TABLE (MOD_0F73_REG_6) }, |
3685 | { MOD_TABLE (MOD_0F73_REG_7) }, | |
252b5132 | 3686 | }, |
1ceb70f8 | 3687 | /* REG_0FA6 */ |
252b5132 | 3688 | { |
bf890a93 IT |
3689 | { "montmul", { { OP_0f07, 0 } }, 0 }, |
3690 | { "xsha1", { { OP_0f07, 0 } }, 0 }, | |
3691 | { "xsha256", { { OP_0f07, 0 } }, 0 }, | |
4e7d34a6 | 3692 | }, |
1ceb70f8 | 3693 | /* REG_0FA7 */ |
4e7d34a6 | 3694 | { |
bf890a93 IT |
3695 | { "xstore-rng", { { OP_0f07, 0 } }, 0 }, |
3696 | { "xcrypt-ecb", { { OP_0f07, 0 } }, 0 }, | |
3697 | { "xcrypt-cbc", { { OP_0f07, 0 } }, 0 }, | |
3698 | { "xcrypt-ctr", { { OP_0f07, 0 } }, 0 }, | |
3699 | { "xcrypt-cfb", { { OP_0f07, 0 } }, 0 }, | |
3700 | { "xcrypt-ofb", { { OP_0f07, 0 } }, 0 }, | |
4e7d34a6 | 3701 | }, |
1ceb70f8 | 3702 | /* REG_0FAE */ |
4e7d34a6 | 3703 | { |
1ceb70f8 L |
3704 | { MOD_TABLE (MOD_0FAE_REG_0) }, |
3705 | { MOD_TABLE (MOD_0FAE_REG_1) }, | |
3706 | { MOD_TABLE (MOD_0FAE_REG_2) }, | |
3707 | { MOD_TABLE (MOD_0FAE_REG_3) }, | |
475a2301 | 3708 | { MOD_TABLE (MOD_0FAE_REG_4) }, |
1ceb70f8 L |
3709 | { MOD_TABLE (MOD_0FAE_REG_5) }, |
3710 | { MOD_TABLE (MOD_0FAE_REG_6) }, | |
3711 | { MOD_TABLE (MOD_0FAE_REG_7) }, | |
252b5132 | 3712 | }, |
1ceb70f8 | 3713 | /* REG_0FBA */ |
252b5132 | 3714 | { |
592d1631 L |
3715 | { Bad_Opcode }, |
3716 | { Bad_Opcode }, | |
3717 | { Bad_Opcode }, | |
3718 | { Bad_Opcode }, | |
bf890a93 IT |
3719 | { "btQ", { Ev, Ib }, 0 }, |
3720 | { "btsQ", { Evh1, Ib }, 0 }, | |
3721 | { "btrQ", { Evh1, Ib }, 0 }, | |
3722 | { "btcQ", { Evh1, Ib }, 0 }, | |
c608c12e | 3723 | }, |
1ceb70f8 | 3724 | /* REG_0FC7 */ |
c608c12e | 3725 | { |
592d1631 | 3726 | { Bad_Opcode }, |
bf890a93 | 3727 | { "cmpxchg8b", { { CMPXCHG8B_Fixup, q_mode } }, 0 }, |
592d1631 | 3728 | { Bad_Opcode }, |
963f3586 IT |
3729 | { MOD_TABLE (MOD_0FC7_REG_3) }, |
3730 | { MOD_TABLE (MOD_0FC7_REG_4) }, | |
3731 | { MOD_TABLE (MOD_0FC7_REG_5) }, | |
1ceb70f8 L |
3732 | { MOD_TABLE (MOD_0FC7_REG_6) }, |
3733 | { MOD_TABLE (MOD_0FC7_REG_7) }, | |
252b5132 | 3734 | }, |
592a252b | 3735 | /* REG_VEX_0F71 */ |
c0f3af97 | 3736 | { |
592d1631 L |
3737 | { Bad_Opcode }, |
3738 | { Bad_Opcode }, | |
592a252b | 3739 | { MOD_TABLE (MOD_VEX_0F71_REG_2) }, |
592d1631 | 3740 | { Bad_Opcode }, |
592a252b | 3741 | { MOD_TABLE (MOD_VEX_0F71_REG_4) }, |
592d1631 | 3742 | { Bad_Opcode }, |
592a252b | 3743 | { MOD_TABLE (MOD_VEX_0F71_REG_6) }, |
c0f3af97 | 3744 | }, |
592a252b | 3745 | /* REG_VEX_0F72 */ |
c0f3af97 | 3746 | { |
592d1631 L |
3747 | { Bad_Opcode }, |
3748 | { Bad_Opcode }, | |
592a252b | 3749 | { MOD_TABLE (MOD_VEX_0F72_REG_2) }, |
592d1631 | 3750 | { Bad_Opcode }, |
592a252b | 3751 | { MOD_TABLE (MOD_VEX_0F72_REG_4) }, |
592d1631 | 3752 | { Bad_Opcode }, |
592a252b | 3753 | { MOD_TABLE (MOD_VEX_0F72_REG_6) }, |
c0f3af97 | 3754 | }, |
592a252b | 3755 | /* REG_VEX_0F73 */ |
c0f3af97 | 3756 | { |
592d1631 L |
3757 | { Bad_Opcode }, |
3758 | { Bad_Opcode }, | |
592a252b L |
3759 | { MOD_TABLE (MOD_VEX_0F73_REG_2) }, |
3760 | { MOD_TABLE (MOD_VEX_0F73_REG_3) }, | |
592d1631 L |
3761 | { Bad_Opcode }, |
3762 | { Bad_Opcode }, | |
592a252b L |
3763 | { MOD_TABLE (MOD_VEX_0F73_REG_6) }, |
3764 | { MOD_TABLE (MOD_VEX_0F73_REG_7) }, | |
c0f3af97 | 3765 | }, |
592a252b | 3766 | /* REG_VEX_0FAE */ |
c0f3af97 | 3767 | { |
592d1631 L |
3768 | { Bad_Opcode }, |
3769 | { Bad_Opcode }, | |
592a252b L |
3770 | { MOD_TABLE (MOD_VEX_0FAE_REG_2) }, |
3771 | { MOD_TABLE (MOD_VEX_0FAE_REG_3) }, | |
c0f3af97 | 3772 | }, |
f12dc422 L |
3773 | /* REG_VEX_0F38F3 */ |
3774 | { | |
3775 | { Bad_Opcode }, | |
3776 | { PREFIX_TABLE (PREFIX_VEX_0F38F3_REG_1) }, | |
3777 | { PREFIX_TABLE (PREFIX_VEX_0F38F3_REG_2) }, | |
3778 | { PREFIX_TABLE (PREFIX_VEX_0F38F3_REG_3) }, | |
3779 | }, | |
f88c9eb0 SP |
3780 | /* REG_XOP_LWPCB */ |
3781 | { | |
bf890a93 IT |
3782 | { "llwpcb", { { OP_LWPCB_E, 0 } }, 0 }, |
3783 | { "slwpcb", { { OP_LWPCB_E, 0 } }, 0 }, | |
f88c9eb0 SP |
3784 | }, |
3785 | /* REG_XOP_LWP */ | |
3786 | { | |
bf890a93 IT |
3787 | { "lwpins", { { OP_LWP_E, 0 }, Ed, Iq }, 0 }, |
3788 | { "lwpval", { { OP_LWP_E, 0 }, Ed, Iq }, 0 }, | |
f88c9eb0 | 3789 | }, |
2a2a0f38 QN |
3790 | /* REG_XOP_TBM_01 */ |
3791 | { | |
3792 | { Bad_Opcode }, | |
bf890a93 IT |
3793 | { "blcfill", { { OP_LWP_E, 0 }, Ev }, 0 }, |
3794 | { "blsfill", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3795 | { "blcs", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3796 | { "tzmsk", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3797 | { "blcic", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3798 | { "blsic", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3799 | { "t1mskc", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
2a2a0f38 QN |
3800 | }, |
3801 | /* REG_XOP_TBM_02 */ | |
3802 | { | |
3803 | { Bad_Opcode }, | |
bf890a93 | 3804 | { "blcmsk", { { OP_LWP_E, 0 }, Ev }, 0 }, |
2a2a0f38 QN |
3805 | { Bad_Opcode }, |
3806 | { Bad_Opcode }, | |
3807 | { Bad_Opcode }, | |
3808 | { Bad_Opcode }, | |
bf890a93 | 3809 | { "blci", { { OP_LWP_E, 0 }, Ev }, 0 }, |
2a2a0f38 | 3810 | }, |
43234a1e L |
3811 | #define NEED_REG_TABLE |
3812 | #include "i386-dis-evex.h" | |
3813 | #undef NEED_REG_TABLE | |
4e7d34a6 L |
3814 | }; |
3815 | ||
1ceb70f8 L |
3816 | static const struct dis386 prefix_table[][4] = { |
3817 | /* PREFIX_90 */ | |
252b5132 | 3818 | { |
bf890a93 IT |
3819 | { "xchgS", { { NOP_Fixup1, eAX_reg }, { NOP_Fixup2, eAX_reg } }, 0 }, |
3820 | { "pause", { XX }, 0 }, | |
3821 | { "xchgS", { { NOP_Fixup1, eAX_reg }, { NOP_Fixup2, eAX_reg } }, 0 }, | |
507bd325 | 3822 | { NULL, { { NULL, 0 } }, PREFIX_IGNORED } |
0f10071e | 3823 | }, |
4e7d34a6 | 3824 | |
603555e5 L |
3825 | /* PREFIX_MOD_0_0F01_REG_5 */ |
3826 | { | |
3827 | { Bad_Opcode }, | |
3828 | { "rstorssp", { Mq }, PREFIX_OPCODE }, | |
3829 | }, | |
3830 | ||
2234eee6 | 3831 | /* PREFIX_MOD_3_0F01_REG_5_RM_0 */ |
603555e5 L |
3832 | { |
3833 | { Bad_Opcode }, | |
2234eee6 | 3834 | { "setssbsy", { Skip_MODRM }, PREFIX_OPCODE }, |
603555e5 L |
3835 | }, |
3836 | ||
3837 | /* PREFIX_MOD_3_0F01_REG_5_RM_2 */ | |
3838 | { | |
3839 | { Bad_Opcode }, | |
c2f76402 | 3840 | { "saveprevssp", { Skip_MODRM }, PREFIX_OPCODE }, |
603555e5 L |
3841 | }, |
3842 | ||
1ceb70f8 | 3843 | /* PREFIX_0F10 */ |
cc0ec051 | 3844 | { |
507bd325 L |
3845 | { "movups", { XM, EXx }, PREFIX_OPCODE }, |
3846 | { "movss", { XM, EXd }, PREFIX_OPCODE }, | |
3847 | { "movupd", { XM, EXx }, PREFIX_OPCODE }, | |
3848 | { "movsd", { XM, EXq }, PREFIX_OPCODE }, | |
30d1c836 | 3849 | }, |
4e7d34a6 | 3850 | |
1ceb70f8 | 3851 | /* PREFIX_0F11 */ |
30d1c836 | 3852 | { |
507bd325 L |
3853 | { "movups", { EXxS, XM }, PREFIX_OPCODE }, |
3854 | { "movss", { EXdS, XM }, PREFIX_OPCODE }, | |
3855 | { "movupd", { EXxS, XM }, PREFIX_OPCODE }, | |
3856 | { "movsd", { EXqS, XM }, PREFIX_OPCODE }, | |
4e7d34a6 | 3857 | }, |
252b5132 | 3858 | |
1ceb70f8 | 3859 | /* PREFIX_0F12 */ |
c608c12e | 3860 | { |
1ceb70f8 | 3861 | { MOD_TABLE (MOD_0F12_PREFIX_0) }, |
507bd325 L |
3862 | { "movsldup", { XM, EXx }, PREFIX_OPCODE }, |
3863 | { "movlpd", { XM, EXq }, PREFIX_OPCODE }, | |
3864 | { "movddup", { XM, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3865 | }, |
4e7d34a6 | 3866 | |
1ceb70f8 | 3867 | /* PREFIX_0F16 */ |
c608c12e | 3868 | { |
1ceb70f8 | 3869 | { MOD_TABLE (MOD_0F16_PREFIX_0) }, |
507bd325 L |
3870 | { "movshdup", { XM, EXx }, PREFIX_OPCODE }, |
3871 | { "movhpd", { XM, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3872 | }, |
4e7d34a6 | 3873 | |
7e8b059b L |
3874 | /* PREFIX_0F1A */ |
3875 | { | |
3876 | { MOD_TABLE (MOD_0F1A_PREFIX_0) }, | |
bf890a93 IT |
3877 | { "bndcl", { Gbnd, Ev_bnd }, 0 }, |
3878 | { "bndmov", { Gbnd, Ebnd }, 0 }, | |
3879 | { "bndcu", { Gbnd, Ev_bnd }, 0 }, | |
7e8b059b L |
3880 | }, |
3881 | ||
3882 | /* PREFIX_0F1B */ | |
3883 | { | |
3884 | { MOD_TABLE (MOD_0F1B_PREFIX_0) }, | |
3885 | { MOD_TABLE (MOD_0F1B_PREFIX_1) }, | |
bf890a93 IT |
3886 | { "bndmov", { Ebnd, Gbnd }, 0 }, |
3887 | { "bndcn", { Gbnd, Ev_bnd }, 0 }, | |
7e8b059b L |
3888 | }, |
3889 | ||
603555e5 L |
3890 | /* PREFIX_0F1E */ |
3891 | { | |
3892 | { "nopQ", { Ev }, PREFIX_OPCODE }, | |
3893 | { MOD_TABLE (MOD_0F1E_PREFIX_1) }, | |
3894 | { "nopQ", { Ev }, PREFIX_OPCODE }, | |
3895 | { "nopQ", { Ev }, PREFIX_OPCODE }, | |
3896 | }, | |
3897 | ||
1ceb70f8 | 3898 | /* PREFIX_0F2A */ |
c608c12e | 3899 | { |
507bd325 L |
3900 | { "cvtpi2ps", { XM, EMCq }, PREFIX_OPCODE }, |
3901 | { "cvtsi2ss%LQ", { XM, Ev }, PREFIX_OPCODE }, | |
3902 | { "cvtpi2pd", { XM, EMCq }, PREFIX_OPCODE }, | |
bf890a93 | 3903 | { "cvtsi2sd%LQ", { XM, Ev }, 0 }, |
c608c12e | 3904 | }, |
4e7d34a6 | 3905 | |
1ceb70f8 | 3906 | /* PREFIX_0F2B */ |
c608c12e | 3907 | { |
75c135a8 L |
3908 | { MOD_TABLE (MOD_0F2B_PREFIX_0) }, |
3909 | { MOD_TABLE (MOD_0F2B_PREFIX_1) }, | |
3910 | { MOD_TABLE (MOD_0F2B_PREFIX_2) }, | |
3911 | { MOD_TABLE (MOD_0F2B_PREFIX_3) }, | |
c608c12e | 3912 | }, |
4e7d34a6 | 3913 | |
1ceb70f8 | 3914 | /* PREFIX_0F2C */ |
c608c12e | 3915 | { |
507bd325 L |
3916 | { "cvttps2pi", { MXC, EXq }, PREFIX_OPCODE }, |
3917 | { "cvttss2siY", { Gv, EXd }, PREFIX_OPCODE }, | |
3918 | { "cvttpd2pi", { MXC, EXx }, PREFIX_OPCODE }, | |
3919 | { "cvttsd2siY", { Gv, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3920 | }, |
4e7d34a6 | 3921 | |
1ceb70f8 | 3922 | /* PREFIX_0F2D */ |
c608c12e | 3923 | { |
507bd325 L |
3924 | { "cvtps2pi", { MXC, EXq }, PREFIX_OPCODE }, |
3925 | { "cvtss2siY", { Gv, EXd }, PREFIX_OPCODE }, | |
3926 | { "cvtpd2pi", { MXC, EXx }, PREFIX_OPCODE }, | |
3927 | { "cvtsd2siY", { Gv, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3928 | }, |
4e7d34a6 | 3929 | |
1ceb70f8 | 3930 | /* PREFIX_0F2E */ |
c608c12e | 3931 | { |
bf890a93 | 3932 | { "ucomiss",{ XM, EXd }, 0 }, |
592d1631 | 3933 | { Bad_Opcode }, |
bf890a93 | 3934 | { "ucomisd",{ XM, EXq }, 0 }, |
c608c12e | 3935 | }, |
4e7d34a6 | 3936 | |
1ceb70f8 | 3937 | /* PREFIX_0F2F */ |
c608c12e | 3938 | { |
bf890a93 | 3939 | { "comiss", { XM, EXd }, 0 }, |
592d1631 | 3940 | { Bad_Opcode }, |
bf890a93 | 3941 | { "comisd", { XM, EXq }, 0 }, |
c608c12e | 3942 | }, |
4e7d34a6 | 3943 | |
1ceb70f8 | 3944 | /* PREFIX_0F51 */ |
c608c12e | 3945 | { |
507bd325 L |
3946 | { "sqrtps", { XM, EXx }, PREFIX_OPCODE }, |
3947 | { "sqrtss", { XM, EXd }, PREFIX_OPCODE }, | |
3948 | { "sqrtpd", { XM, EXx }, PREFIX_OPCODE }, | |
3949 | { "sqrtsd", { XM, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3950 | }, |
4e7d34a6 | 3951 | |
1ceb70f8 | 3952 | /* PREFIX_0F52 */ |
c608c12e | 3953 | { |
507bd325 L |
3954 | { "rsqrtps",{ XM, EXx }, PREFIX_OPCODE }, |
3955 | { "rsqrtss",{ XM, EXd }, PREFIX_OPCODE }, | |
c608c12e | 3956 | }, |
4e7d34a6 | 3957 | |
1ceb70f8 | 3958 | /* PREFIX_0F53 */ |
c608c12e | 3959 | { |
507bd325 L |
3960 | { "rcpps", { XM, EXx }, PREFIX_OPCODE }, |
3961 | { "rcpss", { XM, EXd }, PREFIX_OPCODE }, | |
c608c12e | 3962 | }, |
4e7d34a6 | 3963 | |
1ceb70f8 | 3964 | /* PREFIX_0F58 */ |
c608c12e | 3965 | { |
507bd325 L |
3966 | { "addps", { XM, EXx }, PREFIX_OPCODE }, |
3967 | { "addss", { XM, EXd }, PREFIX_OPCODE }, | |
3968 | { "addpd", { XM, EXx }, PREFIX_OPCODE }, | |
3969 | { "addsd", { XM, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3970 | }, |
4e7d34a6 | 3971 | |
1ceb70f8 | 3972 | /* PREFIX_0F59 */ |
c608c12e | 3973 | { |
507bd325 L |
3974 | { "mulps", { XM, EXx }, PREFIX_OPCODE }, |
3975 | { "mulss", { XM, EXd }, PREFIX_OPCODE }, | |
3976 | { "mulpd", { XM, EXx }, PREFIX_OPCODE }, | |
3977 | { "mulsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 3978 | }, |
4e7d34a6 | 3979 | |
1ceb70f8 | 3980 | /* PREFIX_0F5A */ |
041bd2e0 | 3981 | { |
507bd325 L |
3982 | { "cvtps2pd", { XM, EXq }, PREFIX_OPCODE }, |
3983 | { "cvtss2sd", { XM, EXd }, PREFIX_OPCODE }, | |
3984 | { "cvtpd2ps", { XM, EXx }, PREFIX_OPCODE }, | |
3985 | { "cvtsd2ss", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 3986 | }, |
4e7d34a6 | 3987 | |
1ceb70f8 | 3988 | /* PREFIX_0F5B */ |
041bd2e0 | 3989 | { |
507bd325 L |
3990 | { "cvtdq2ps", { XM, EXx }, PREFIX_OPCODE }, |
3991 | { "cvttps2dq", { XM, EXx }, PREFIX_OPCODE }, | |
3992 | { "cvtps2dq", { XM, EXx }, PREFIX_OPCODE }, | |
041bd2e0 | 3993 | }, |
4e7d34a6 | 3994 | |
1ceb70f8 | 3995 | /* PREFIX_0F5C */ |
041bd2e0 | 3996 | { |
507bd325 L |
3997 | { "subps", { XM, EXx }, PREFIX_OPCODE }, |
3998 | { "subss", { XM, EXd }, PREFIX_OPCODE }, | |
3999 | { "subpd", { XM, EXx }, PREFIX_OPCODE }, | |
4000 | { "subsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 4001 | }, |
4e7d34a6 | 4002 | |
1ceb70f8 | 4003 | /* PREFIX_0F5D */ |
041bd2e0 | 4004 | { |
507bd325 L |
4005 | { "minps", { XM, EXx }, PREFIX_OPCODE }, |
4006 | { "minss", { XM, EXd }, PREFIX_OPCODE }, | |
4007 | { "minpd", { XM, EXx }, PREFIX_OPCODE }, | |
4008 | { "minsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 4009 | }, |
4e7d34a6 | 4010 | |
1ceb70f8 | 4011 | /* PREFIX_0F5E */ |
041bd2e0 | 4012 | { |
507bd325 L |
4013 | { "divps", { XM, EXx }, PREFIX_OPCODE }, |
4014 | { "divss", { XM, EXd }, PREFIX_OPCODE }, | |
4015 | { "divpd", { XM, EXx }, PREFIX_OPCODE }, | |
4016 | { "divsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 4017 | }, |
4e7d34a6 | 4018 | |
1ceb70f8 | 4019 | /* PREFIX_0F5F */ |
041bd2e0 | 4020 | { |
507bd325 L |
4021 | { "maxps", { XM, EXx }, PREFIX_OPCODE }, |
4022 | { "maxss", { XM, EXd }, PREFIX_OPCODE }, | |
4023 | { "maxpd", { XM, EXx }, PREFIX_OPCODE }, | |
4024 | { "maxsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 4025 | }, |
4e7d34a6 | 4026 | |
1ceb70f8 | 4027 | /* PREFIX_0F60 */ |
041bd2e0 | 4028 | { |
507bd325 | 4029 | { "punpcklbw",{ MX, EMd }, PREFIX_OPCODE }, |
592d1631 | 4030 | { Bad_Opcode }, |
507bd325 | 4031 | { "punpcklbw",{ MX, EMx }, PREFIX_OPCODE }, |
041bd2e0 | 4032 | }, |
4e7d34a6 | 4033 | |
1ceb70f8 | 4034 | /* PREFIX_0F61 */ |
041bd2e0 | 4035 | { |
507bd325 | 4036 | { "punpcklwd",{ MX, EMd }, PREFIX_OPCODE }, |
592d1631 | 4037 | { Bad_Opcode }, |
507bd325 | 4038 | { "punpcklwd",{ MX, EMx }, PREFIX_OPCODE }, |
041bd2e0 | 4039 | }, |
4e7d34a6 | 4040 | |
1ceb70f8 | 4041 | /* PREFIX_0F62 */ |
041bd2e0 | 4042 | { |
507bd325 | 4043 | { "punpckldq",{ MX, EMd }, PREFIX_OPCODE }, |
592d1631 | 4044 | { Bad_Opcode }, |
507bd325 | 4045 | { "punpckldq",{ MX, EMx }, PREFIX_OPCODE }, |
041bd2e0 | 4046 | }, |
4e7d34a6 | 4047 | |
1ceb70f8 | 4048 | /* PREFIX_0F6C */ |
041bd2e0 | 4049 | { |
592d1631 L |
4050 | { Bad_Opcode }, |
4051 | { Bad_Opcode }, | |
507bd325 | 4052 | { "punpcklqdq", { XM, EXx }, PREFIX_OPCODE }, |
0f17484f | 4053 | }, |
4e7d34a6 | 4054 | |
1ceb70f8 | 4055 | /* PREFIX_0F6D */ |
0f17484f | 4056 | { |
592d1631 L |
4057 | { Bad_Opcode }, |
4058 | { Bad_Opcode }, | |
507bd325 | 4059 | { "punpckhqdq", { XM, EXx }, PREFIX_OPCODE }, |
041bd2e0 | 4060 | }, |
4e7d34a6 | 4061 | |
1ceb70f8 | 4062 | /* PREFIX_0F6F */ |
ca164297 | 4063 | { |
507bd325 L |
4064 | { "movq", { MX, EM }, PREFIX_OPCODE }, |
4065 | { "movdqu", { XM, EXx }, PREFIX_OPCODE }, | |
4066 | { "movdqa", { XM, EXx }, PREFIX_OPCODE }, | |
ca164297 | 4067 | }, |
4e7d34a6 | 4068 | |
1ceb70f8 | 4069 | /* PREFIX_0F70 */ |
4e7d34a6 | 4070 | { |
507bd325 L |
4071 | { "pshufw", { MX, EM, Ib }, PREFIX_OPCODE }, |
4072 | { "pshufhw",{ XM, EXx, Ib }, PREFIX_OPCODE }, | |
4073 | { "pshufd", { XM, EXx, Ib }, PREFIX_OPCODE }, | |
4074 | { "pshuflw",{ XM, EXx, Ib }, PREFIX_OPCODE }, | |
4e7d34a6 L |
4075 | }, |
4076 | ||
92fddf8e L |
4077 | /* PREFIX_0F73_REG_3 */ |
4078 | { | |
592d1631 L |
4079 | { Bad_Opcode }, |
4080 | { Bad_Opcode }, | |
bf890a93 | 4081 | { "psrldq", { XS, Ib }, 0 }, |
92fddf8e L |
4082 | }, |
4083 | ||
4084 | /* PREFIX_0F73_REG_7 */ | |
4085 | { | |
592d1631 L |
4086 | { Bad_Opcode }, |
4087 | { Bad_Opcode }, | |
bf890a93 | 4088 | { "pslldq", { XS, Ib }, 0 }, |
92fddf8e L |
4089 | }, |
4090 | ||
1ceb70f8 | 4091 | /* PREFIX_0F78 */ |
4e7d34a6 | 4092 | { |
bf890a93 | 4093 | {"vmread", { Em, Gm }, 0 }, |
592d1631 | 4094 | { Bad_Opcode }, |
bf890a93 IT |
4095 | {"extrq", { XS, Ib, Ib }, 0 }, |
4096 | {"insertq", { XM, XS, Ib, Ib }, 0 }, | |
4e7d34a6 L |
4097 | }, |
4098 | ||
1ceb70f8 | 4099 | /* PREFIX_0F79 */ |
4e7d34a6 | 4100 | { |
bf890a93 | 4101 | {"vmwrite", { Gm, Em }, 0 }, |
592d1631 | 4102 | { Bad_Opcode }, |
bf890a93 IT |
4103 | {"extrq", { XM, XS }, 0 }, |
4104 | {"insertq", { XM, XS }, 0 }, | |
4e7d34a6 L |
4105 | }, |
4106 | ||
1ceb70f8 | 4107 | /* PREFIX_0F7C */ |
ca164297 | 4108 | { |
592d1631 L |
4109 | { Bad_Opcode }, |
4110 | { Bad_Opcode }, | |
507bd325 L |
4111 | { "haddpd", { XM, EXx }, PREFIX_OPCODE }, |
4112 | { "haddps", { XM, EXx }, PREFIX_OPCODE }, | |
ca164297 | 4113 | }, |
4e7d34a6 | 4114 | |
1ceb70f8 | 4115 | /* PREFIX_0F7D */ |
ca164297 | 4116 | { |
592d1631 L |
4117 | { Bad_Opcode }, |
4118 | { Bad_Opcode }, | |
507bd325 L |
4119 | { "hsubpd", { XM, EXx }, PREFIX_OPCODE }, |
4120 | { "hsubps", { XM, EXx }, PREFIX_OPCODE }, | |
ca164297 | 4121 | }, |
4e7d34a6 | 4122 | |
1ceb70f8 | 4123 | /* PREFIX_0F7E */ |
ca164297 | 4124 | { |
507bd325 L |
4125 | { "movK", { Edq, MX }, PREFIX_OPCODE }, |
4126 | { "movq", { XM, EXq }, PREFIX_OPCODE }, | |
4127 | { "movK", { Edq, XM }, PREFIX_OPCODE }, | |
ca164297 | 4128 | }, |
4e7d34a6 | 4129 | |
1ceb70f8 | 4130 | /* PREFIX_0F7F */ |
ca164297 | 4131 | { |
507bd325 L |
4132 | { "movq", { EMS, MX }, PREFIX_OPCODE }, |
4133 | { "movdqu", { EXxS, XM }, PREFIX_OPCODE }, | |
4134 | { "movdqa", { EXxS, XM }, PREFIX_OPCODE }, | |
ca164297 | 4135 | }, |
4e7d34a6 | 4136 | |
c7b8aa3a L |
4137 | /* PREFIX_0FAE_REG_0 */ |
4138 | { | |
4139 | { Bad_Opcode }, | |
bf890a93 | 4140 | { "rdfsbase", { Ev }, 0 }, |
c7b8aa3a L |
4141 | }, |
4142 | ||
4143 | /* PREFIX_0FAE_REG_1 */ | |
4144 | { | |
4145 | { Bad_Opcode }, | |
bf890a93 | 4146 | { "rdgsbase", { Ev }, 0 }, |
c7b8aa3a L |
4147 | }, |
4148 | ||
4149 | /* PREFIX_0FAE_REG_2 */ | |
4150 | { | |
4151 | { Bad_Opcode }, | |
bf890a93 | 4152 | { "wrfsbase", { Ev }, 0 }, |
c7b8aa3a L |
4153 | }, |
4154 | ||
4155 | /* PREFIX_0FAE_REG_3 */ | |
4156 | { | |
4157 | { Bad_Opcode }, | |
bf890a93 | 4158 | { "wrgsbase", { Ev }, 0 }, |
c7b8aa3a L |
4159 | }, |
4160 | ||
6b40c462 L |
4161 | /* PREFIX_MOD_0_0FAE_REG_4 */ |
4162 | { | |
4163 | { "xsave", { FXSAVE }, 0 }, | |
4164 | { "ptwrite%LQ", { Edq }, 0 }, | |
4165 | }, | |
4166 | ||
4167 | /* PREFIX_MOD_3_0FAE_REG_4 */ | |
4168 | { | |
4169 | { Bad_Opcode }, | |
4170 | { "ptwrite%LQ", { Edq }, 0 }, | |
4171 | }, | |
4172 | ||
603555e5 L |
4173 | /* PREFIX_MOD_0_0FAE_REG_5 */ |
4174 | { | |
4175 | { "xrstor", { FXSAVE }, PREFIX_OPCODE }, | |
2234eee6 L |
4176 | }, |
4177 | ||
4178 | /* PREFIX_MOD_3_0FAE_REG_5 */ | |
4179 | { | |
4180 | { "lfence", { Skip_MODRM }, 0 }, | |
4181 | { "incsspK", { Rdq }, PREFIX_OPCODE }, | |
603555e5 L |
4182 | }, |
4183 | ||
c5e7287a IT |
4184 | /* PREFIX_0FAE_REG_6 */ |
4185 | { | |
603555e5 L |
4186 | { "xsaveopt", { FXSAVE }, PREFIX_OPCODE }, |
4187 | { "clrssbsy", { Mq }, PREFIX_OPCODE }, | |
4188 | { "clwb", { Mb }, PREFIX_OPCODE }, | |
c5e7287a IT |
4189 | }, |
4190 | ||
963f3586 IT |
4191 | /* PREFIX_0FAE_REG_7 */ |
4192 | { | |
bf890a93 | 4193 | { "clflush", { Mb }, 0 }, |
963f3586 | 4194 | { Bad_Opcode }, |
bf890a93 | 4195 | { "clflushopt", { Mb }, 0 }, |
963f3586 IT |
4196 | }, |
4197 | ||
1ceb70f8 | 4198 | /* PREFIX_0FB8 */ |
ca164297 | 4199 | { |
592d1631 | 4200 | { Bad_Opcode }, |
bf890a93 | 4201 | { "popcntS", { Gv, Ev }, 0 }, |
ca164297 | 4202 | }, |
4e7d34a6 | 4203 | |
f12dc422 L |
4204 | /* PREFIX_0FBC */ |
4205 | { | |
bf890a93 IT |
4206 | { "bsfS", { Gv, Ev }, 0 }, |
4207 | { "tzcntS", { Gv, Ev }, 0 }, | |
4208 | { "bsfS", { Gv, Ev }, 0 }, | |
f12dc422 L |
4209 | }, |
4210 | ||
1ceb70f8 | 4211 | /* PREFIX_0FBD */ |
050dfa73 | 4212 | { |
bf890a93 IT |
4213 | { "bsrS", { Gv, Ev }, 0 }, |
4214 | { "lzcntS", { Gv, Ev }, 0 }, | |
4215 | { "bsrS", { Gv, Ev }, 0 }, | |
050dfa73 MM |
4216 | }, |
4217 | ||
1ceb70f8 | 4218 | /* PREFIX_0FC2 */ |
050dfa73 | 4219 | { |
507bd325 L |
4220 | { "cmpps", { XM, EXx, CMP }, PREFIX_OPCODE }, |
4221 | { "cmpss", { XM, EXd, CMP }, PREFIX_OPCODE }, | |
4222 | { "cmppd", { XM, EXx, CMP }, PREFIX_OPCODE }, | |
4223 | { "cmpsd", { XM, EXq, CMP }, PREFIX_OPCODE }, | |
050dfa73 | 4224 | }, |
246c51aa | 4225 | |
a8484f96 | 4226 | /* PREFIX_MOD_0_0FC3 */ |
4ee52178 | 4227 | { |
a8484f96 | 4228 | { "movntiS", { Ev, Gv }, PREFIX_OPCODE }, |
4ee52178 L |
4229 | }, |
4230 | ||
f24bcbaa | 4231 | /* PREFIX_MOD_0_0FC7_REG_6 */ |
92fddf8e | 4232 | { |
bf890a93 IT |
4233 | { "vmptrld",{ Mq }, 0 }, |
4234 | { "vmxon", { Mq }, 0 }, | |
4235 | { "vmclear",{ Mq }, 0 }, | |
92fddf8e L |
4236 | }, |
4237 | ||
f24bcbaa L |
4238 | /* PREFIX_MOD_3_0FC7_REG_6 */ |
4239 | { | |
4240 | { "rdrand", { Ev }, 0 }, | |
4241 | { Bad_Opcode }, | |
4242 | { "rdrand", { Ev }, 0 } | |
4243 | }, | |
4244 | ||
4245 | /* PREFIX_MOD_3_0FC7_REG_7 */ | |
4246 | { | |
4247 | { "rdseed", { Ev }, 0 }, | |
8bc52696 | 4248 | { "rdpid", { Em }, 0 }, |
f24bcbaa L |
4249 | { "rdseed", { Ev }, 0 }, |
4250 | }, | |
4251 | ||
1ceb70f8 | 4252 | /* PREFIX_0FD0 */ |
050dfa73 | 4253 | { |
592d1631 L |
4254 | { Bad_Opcode }, |
4255 | { Bad_Opcode }, | |
bf890a93 IT |
4256 | { "addsubpd", { XM, EXx }, 0 }, |
4257 | { "addsubps", { XM, EXx }, 0 }, | |
246c51aa | 4258 | }, |
050dfa73 | 4259 | |
1ceb70f8 | 4260 | /* PREFIX_0FD6 */ |
050dfa73 | 4261 | { |
592d1631 | 4262 | { Bad_Opcode }, |
bf890a93 IT |
4263 | { "movq2dq",{ XM, MS }, 0 }, |
4264 | { "movq", { EXqS, XM }, 0 }, | |
4265 | { "movdq2q",{ MX, XS }, 0 }, | |
050dfa73 MM |
4266 | }, |
4267 | ||
1ceb70f8 | 4268 | /* PREFIX_0FE6 */ |
7918206c | 4269 | { |
592d1631 | 4270 | { Bad_Opcode }, |
507bd325 L |
4271 | { "cvtdq2pd", { XM, EXq }, PREFIX_OPCODE }, |
4272 | { "cvttpd2dq", { XM, EXx }, PREFIX_OPCODE }, | |
4273 | { "cvtpd2dq", { XM, EXx }, PREFIX_OPCODE }, | |
7918206c | 4274 | }, |
8b38ad71 | 4275 | |
1ceb70f8 | 4276 | /* PREFIX_0FE7 */ |
8b38ad71 | 4277 | { |
507bd325 | 4278 | { "movntq", { Mq, MX }, PREFIX_OPCODE }, |
592d1631 | 4279 | { Bad_Opcode }, |
75c135a8 | 4280 | { MOD_TABLE (MOD_0FE7_PREFIX_2) }, |
4e7d34a6 L |
4281 | }, |
4282 | ||
1ceb70f8 | 4283 | /* PREFIX_0FF0 */ |
4e7d34a6 | 4284 | { |
592d1631 L |
4285 | { Bad_Opcode }, |
4286 | { Bad_Opcode }, | |
4287 | { Bad_Opcode }, | |
1ceb70f8 | 4288 | { MOD_TABLE (MOD_0FF0_PREFIX_3) }, |
4e7d34a6 L |
4289 | }, |
4290 | ||
1ceb70f8 | 4291 | /* PREFIX_0FF7 */ |
4e7d34a6 | 4292 | { |
507bd325 | 4293 | { "maskmovq", { MX, MS }, PREFIX_OPCODE }, |
592d1631 | 4294 | { Bad_Opcode }, |
507bd325 | 4295 | { "maskmovdqu", { XM, XS }, PREFIX_OPCODE }, |
8b38ad71 | 4296 | }, |
42903f7f | 4297 | |
1ceb70f8 | 4298 | /* PREFIX_0F3810 */ |
42903f7f | 4299 | { |
592d1631 L |
4300 | { Bad_Opcode }, |
4301 | { Bad_Opcode }, | |
507bd325 | 4302 | { "pblendvb", { XM, EXx, XMM0 }, PREFIX_OPCODE }, |
42903f7f L |
4303 | }, |
4304 | ||
1ceb70f8 | 4305 | /* PREFIX_0F3814 */ |
42903f7f | 4306 | { |
592d1631 L |
4307 | { Bad_Opcode }, |
4308 | { Bad_Opcode }, | |
507bd325 | 4309 | { "blendvps", { XM, EXx, XMM0 }, PREFIX_OPCODE }, |
42903f7f L |
4310 | }, |
4311 | ||
1ceb70f8 | 4312 | /* PREFIX_0F3815 */ |
42903f7f | 4313 | { |
592d1631 L |
4314 | { Bad_Opcode }, |
4315 | { Bad_Opcode }, | |
507bd325 | 4316 | { "blendvpd", { XM, EXx, XMM0 }, PREFIX_OPCODE }, |
42903f7f L |
4317 | }, |
4318 | ||
1ceb70f8 | 4319 | /* PREFIX_0F3817 */ |
42903f7f | 4320 | { |
592d1631 L |
4321 | { Bad_Opcode }, |
4322 | { Bad_Opcode }, | |
507bd325 | 4323 | { "ptest", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4324 | }, |
4325 | ||
1ceb70f8 | 4326 | /* PREFIX_0F3820 */ |
42903f7f | 4327 | { |
592d1631 L |
4328 | { Bad_Opcode }, |
4329 | { Bad_Opcode }, | |
507bd325 | 4330 | { "pmovsxbw", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4331 | }, |
4332 | ||
1ceb70f8 | 4333 | /* PREFIX_0F3821 */ |
42903f7f | 4334 | { |
592d1631 L |
4335 | { Bad_Opcode }, |
4336 | { Bad_Opcode }, | |
507bd325 | 4337 | { "pmovsxbd", { XM, EXd }, PREFIX_OPCODE }, |
42903f7f L |
4338 | }, |
4339 | ||
1ceb70f8 | 4340 | /* PREFIX_0F3822 */ |
42903f7f | 4341 | { |
592d1631 L |
4342 | { Bad_Opcode }, |
4343 | { Bad_Opcode }, | |
507bd325 | 4344 | { "pmovsxbq", { XM, EXw }, PREFIX_OPCODE }, |
42903f7f L |
4345 | }, |
4346 | ||
1ceb70f8 | 4347 | /* PREFIX_0F3823 */ |
42903f7f | 4348 | { |
592d1631 L |
4349 | { Bad_Opcode }, |
4350 | { Bad_Opcode }, | |
507bd325 | 4351 | { "pmovsxwd", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4352 | }, |
4353 | ||
1ceb70f8 | 4354 | /* PREFIX_0F3824 */ |
42903f7f | 4355 | { |
592d1631 L |
4356 | { Bad_Opcode }, |
4357 | { Bad_Opcode }, | |
507bd325 | 4358 | { "pmovsxwq", { XM, EXd }, PREFIX_OPCODE }, |
42903f7f L |
4359 | }, |
4360 | ||
1ceb70f8 | 4361 | /* PREFIX_0F3825 */ |
42903f7f | 4362 | { |
592d1631 L |
4363 | { Bad_Opcode }, |
4364 | { Bad_Opcode }, | |
507bd325 | 4365 | { "pmovsxdq", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4366 | }, |
4367 | ||
1ceb70f8 | 4368 | /* PREFIX_0F3828 */ |
42903f7f | 4369 | { |
592d1631 L |
4370 | { Bad_Opcode }, |
4371 | { Bad_Opcode }, | |
507bd325 | 4372 | { "pmuldq", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4373 | }, |
4374 | ||
1ceb70f8 | 4375 | /* PREFIX_0F3829 */ |
42903f7f | 4376 | { |
592d1631 L |
4377 | { Bad_Opcode }, |
4378 | { Bad_Opcode }, | |
507bd325 | 4379 | { "pcmpeqq", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4380 | }, |
4381 | ||
1ceb70f8 | 4382 | /* PREFIX_0F382A */ |
42903f7f | 4383 | { |
592d1631 L |
4384 | { Bad_Opcode }, |
4385 | { Bad_Opcode }, | |
75c135a8 | 4386 | { MOD_TABLE (MOD_0F382A_PREFIX_2) }, |
42903f7f L |
4387 | }, |
4388 | ||
1ceb70f8 | 4389 | /* PREFIX_0F382B */ |
42903f7f | 4390 | { |
592d1631 L |
4391 | { Bad_Opcode }, |
4392 | { Bad_Opcode }, | |
507bd325 | 4393 | { "packusdw", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4394 | }, |
4395 | ||
1ceb70f8 | 4396 | /* PREFIX_0F3830 */ |
42903f7f | 4397 | { |
592d1631 L |
4398 | { Bad_Opcode }, |
4399 | { Bad_Opcode }, | |
507bd325 | 4400 | { "pmovzxbw", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4401 | }, |
4402 | ||
1ceb70f8 | 4403 | /* PREFIX_0F3831 */ |
42903f7f | 4404 | { |
592d1631 L |
4405 | { Bad_Opcode }, |
4406 | { Bad_Opcode }, | |
507bd325 | 4407 | { "pmovzxbd", { XM, EXd }, PREFIX_OPCODE }, |
42903f7f L |
4408 | }, |
4409 | ||
1ceb70f8 | 4410 | /* PREFIX_0F3832 */ |
42903f7f | 4411 | { |
592d1631 L |
4412 | { Bad_Opcode }, |
4413 | { Bad_Opcode }, | |
507bd325 | 4414 | { "pmovzxbq", { XM, EXw }, PREFIX_OPCODE }, |
42903f7f L |
4415 | }, |
4416 | ||
1ceb70f8 | 4417 | /* PREFIX_0F3833 */ |
42903f7f | 4418 | { |
592d1631 L |
4419 | { Bad_Opcode }, |
4420 | { Bad_Opcode }, | |
507bd325 | 4421 | { "pmovzxwd", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4422 | }, |
4423 | ||
1ceb70f8 | 4424 | /* PREFIX_0F3834 */ |
42903f7f | 4425 | { |
592d1631 L |
4426 | { Bad_Opcode }, |
4427 | { Bad_Opcode }, | |
507bd325 | 4428 | { "pmovzxwq", { XM, EXd }, PREFIX_OPCODE }, |
42903f7f L |
4429 | }, |
4430 | ||
1ceb70f8 | 4431 | /* PREFIX_0F3835 */ |
42903f7f | 4432 | { |
592d1631 L |
4433 | { Bad_Opcode }, |
4434 | { Bad_Opcode }, | |
507bd325 | 4435 | { "pmovzxdq", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4436 | }, |
4437 | ||
1ceb70f8 | 4438 | /* PREFIX_0F3837 */ |
4e7d34a6 | 4439 | { |
592d1631 L |
4440 | { Bad_Opcode }, |
4441 | { Bad_Opcode }, | |
507bd325 | 4442 | { "pcmpgtq", { XM, EXx }, PREFIX_OPCODE }, |
4e7d34a6 L |
4443 | }, |
4444 | ||
1ceb70f8 | 4445 | /* PREFIX_0F3838 */ |
42903f7f | 4446 | { |
592d1631 L |
4447 | { Bad_Opcode }, |
4448 | { Bad_Opcode }, | |
507bd325 | 4449 | { "pminsb", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4450 | }, |
4451 | ||
1ceb70f8 | 4452 | /* PREFIX_0F3839 */ |
42903f7f | 4453 | { |
592d1631 L |
4454 | { Bad_Opcode }, |
4455 | { Bad_Opcode }, | |
507bd325 | 4456 | { "pminsd", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4457 | }, |
4458 | ||
1ceb70f8 | 4459 | /* PREFIX_0F383A */ |
42903f7f | 4460 | { |
592d1631 L |
4461 | { Bad_Opcode }, |
4462 | { Bad_Opcode }, | |
507bd325 | 4463 | { "pminuw", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4464 | }, |
4465 | ||
1ceb70f8 | 4466 | /* PREFIX_0F383B */ |
42903f7f | 4467 | { |
592d1631 L |
4468 | { Bad_Opcode }, |
4469 | { Bad_Opcode }, | |
507bd325 | 4470 | { "pminud", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4471 | }, |
4472 | ||
1ceb70f8 | 4473 | /* PREFIX_0F383C */ |
42903f7f | 4474 | { |
592d1631 L |
4475 | { Bad_Opcode }, |
4476 | { Bad_Opcode }, | |
507bd325 | 4477 | { "pmaxsb", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4478 | }, |
4479 | ||
1ceb70f8 | 4480 | /* PREFIX_0F383D */ |
42903f7f | 4481 | { |
592d1631 L |
4482 | { Bad_Opcode }, |
4483 | { Bad_Opcode }, | |
507bd325 | 4484 | { "pmaxsd", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4485 | }, |
4486 | ||
1ceb70f8 | 4487 | /* PREFIX_0F383E */ |
42903f7f | 4488 | { |
592d1631 L |
4489 | { Bad_Opcode }, |
4490 | { Bad_Opcode }, | |
507bd325 | 4491 | { "pmaxuw", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4492 | }, |
4493 | ||
1ceb70f8 | 4494 | /* PREFIX_0F383F */ |
42903f7f | 4495 | { |
592d1631 L |
4496 | { Bad_Opcode }, |
4497 | { Bad_Opcode }, | |
507bd325 | 4498 | { "pmaxud", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4499 | }, |
4500 | ||
1ceb70f8 | 4501 | /* PREFIX_0F3840 */ |
42903f7f | 4502 | { |
592d1631 L |
4503 | { Bad_Opcode }, |
4504 | { Bad_Opcode }, | |
507bd325 | 4505 | { "pmulld", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4506 | }, |
4507 | ||
1ceb70f8 | 4508 | /* PREFIX_0F3841 */ |
42903f7f | 4509 | { |
592d1631 L |
4510 | { Bad_Opcode }, |
4511 | { Bad_Opcode }, | |
507bd325 | 4512 | { "phminposuw", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4513 | }, |
4514 | ||
f1f8f695 L |
4515 | /* PREFIX_0F3880 */ |
4516 | { | |
592d1631 L |
4517 | { Bad_Opcode }, |
4518 | { Bad_Opcode }, | |
507bd325 | 4519 | { "invept", { Gm, Mo }, PREFIX_OPCODE }, |
f1f8f695 L |
4520 | }, |
4521 | ||
4522 | /* PREFIX_0F3881 */ | |
4523 | { | |
592d1631 L |
4524 | { Bad_Opcode }, |
4525 | { Bad_Opcode }, | |
507bd325 | 4526 | { "invvpid", { Gm, Mo }, PREFIX_OPCODE }, |
f1f8f695 L |
4527 | }, |
4528 | ||
6c30d220 L |
4529 | /* PREFIX_0F3882 */ |
4530 | { | |
4531 | { Bad_Opcode }, | |
4532 | { Bad_Opcode }, | |
507bd325 | 4533 | { "invpcid", { Gm, M }, PREFIX_OPCODE }, |
6c30d220 L |
4534 | }, |
4535 | ||
a0046408 L |
4536 | /* PREFIX_0F38C8 */ |
4537 | { | |
507bd325 | 4538 | { "sha1nexte", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4539 | }, |
4540 | ||
4541 | /* PREFIX_0F38C9 */ | |
4542 | { | |
507bd325 | 4543 | { "sha1msg1", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4544 | }, |
4545 | ||
4546 | /* PREFIX_0F38CA */ | |
4547 | { | |
507bd325 | 4548 | { "sha1msg2", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4549 | }, |
4550 | ||
4551 | /* PREFIX_0F38CB */ | |
4552 | { | |
507bd325 | 4553 | { "sha256rnds2", { XM, EXxmm, XMM0 }, PREFIX_OPCODE }, |
a0046408 L |
4554 | }, |
4555 | ||
4556 | /* PREFIX_0F38CC */ | |
4557 | { | |
507bd325 | 4558 | { "sha256msg1", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4559 | }, |
4560 | ||
4561 | /* PREFIX_0F38CD */ | |
4562 | { | |
507bd325 | 4563 | { "sha256msg2", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4564 | }, |
4565 | ||
48521003 IT |
4566 | /* PREFIX_0F38CF */ |
4567 | { | |
4568 | { Bad_Opcode }, | |
4569 | { Bad_Opcode }, | |
4570 | { "gf2p8mulb", { XM, EXxmm }, PREFIX_OPCODE }, | |
4571 | }, | |
4572 | ||
c0f3af97 L |
4573 | /* PREFIX_0F38DB */ |
4574 | { | |
592d1631 L |
4575 | { Bad_Opcode }, |
4576 | { Bad_Opcode }, | |
507bd325 | 4577 | { "aesimc", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4578 | }, |
4579 | ||
4580 | /* PREFIX_0F38DC */ | |
4581 | { | |
592d1631 L |
4582 | { Bad_Opcode }, |
4583 | { Bad_Opcode }, | |
507bd325 | 4584 | { "aesenc", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4585 | }, |
4586 | ||
4587 | /* PREFIX_0F38DD */ | |
4588 | { | |
592d1631 L |
4589 | { Bad_Opcode }, |
4590 | { Bad_Opcode }, | |
507bd325 | 4591 | { "aesenclast", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4592 | }, |
4593 | ||
4594 | /* PREFIX_0F38DE */ | |
4595 | { | |
592d1631 L |
4596 | { Bad_Opcode }, |
4597 | { Bad_Opcode }, | |
507bd325 | 4598 | { "aesdec", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4599 | }, |
4600 | ||
4601 | /* PREFIX_0F38DF */ | |
4602 | { | |
592d1631 L |
4603 | { Bad_Opcode }, |
4604 | { Bad_Opcode }, | |
507bd325 | 4605 | { "aesdeclast", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4606 | }, |
4607 | ||
1ceb70f8 | 4608 | /* PREFIX_0F38F0 */ |
4e7d34a6 | 4609 | { |
507bd325 | 4610 | { "movbeS", { Gv, { MOVBE_Fixup, v_mode } }, PREFIX_OPCODE }, |
592d1631 | 4611 | { Bad_Opcode }, |
507bd325 L |
4612 | { "movbeS", { Gv, { MOVBE_Fixup, v_mode } }, PREFIX_OPCODE }, |
4613 | { "crc32", { Gdq, { CRC32_Fixup, b_mode } }, PREFIX_OPCODE }, | |
4e7d34a6 L |
4614 | }, |
4615 | ||
1ceb70f8 | 4616 | /* PREFIX_0F38F1 */ |
4e7d34a6 | 4617 | { |
507bd325 | 4618 | { "movbeS", { { MOVBE_Fixup, v_mode }, Gv }, PREFIX_OPCODE }, |
592d1631 | 4619 | { Bad_Opcode }, |
507bd325 L |
4620 | { "movbeS", { { MOVBE_Fixup, v_mode }, Gv }, PREFIX_OPCODE }, |
4621 | { "crc32", { Gdq, { CRC32_Fixup, v_mode } }, PREFIX_OPCODE }, | |
4e7d34a6 L |
4622 | }, |
4623 | ||
603555e5 | 4624 | /* PREFIX_0F38F5 */ |
e2e1fcde L |
4625 | { |
4626 | { Bad_Opcode }, | |
603555e5 L |
4627 | { Bad_Opcode }, |
4628 | { MOD_TABLE (MOD_0F38F5_PREFIX_2) }, | |
4629 | }, | |
4630 | ||
4631 | /* PREFIX_0F38F6 */ | |
4632 | { | |
4633 | { MOD_TABLE (MOD_0F38F6_PREFIX_0) }, | |
507bd325 L |
4634 | { "adoxS", { Gdq, Edq}, PREFIX_OPCODE }, |
4635 | { "adcxS", { Gdq, Edq}, PREFIX_OPCODE }, | |
e2e1fcde L |
4636 | { Bad_Opcode }, |
4637 | }, | |
4638 | ||
1ceb70f8 | 4639 | /* PREFIX_0F3A08 */ |
42903f7f | 4640 | { |
592d1631 L |
4641 | { Bad_Opcode }, |
4642 | { Bad_Opcode }, | |
507bd325 | 4643 | { "roundps", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4644 | }, |
4645 | ||
1ceb70f8 | 4646 | /* PREFIX_0F3A09 */ |
42903f7f | 4647 | { |
592d1631 L |
4648 | { Bad_Opcode }, |
4649 | { Bad_Opcode }, | |
507bd325 | 4650 | { "roundpd", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4651 | }, |
4652 | ||
1ceb70f8 | 4653 | /* PREFIX_0F3A0A */ |
42903f7f | 4654 | { |
592d1631 L |
4655 | { Bad_Opcode }, |
4656 | { Bad_Opcode }, | |
507bd325 | 4657 | { "roundss", { XM, EXd, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4658 | }, |
4659 | ||
1ceb70f8 | 4660 | /* PREFIX_0F3A0B */ |
42903f7f | 4661 | { |
592d1631 L |
4662 | { Bad_Opcode }, |
4663 | { Bad_Opcode }, | |
507bd325 | 4664 | { "roundsd", { XM, EXq, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4665 | }, |
4666 | ||
1ceb70f8 | 4667 | /* PREFIX_0F3A0C */ |
42903f7f | 4668 | { |
592d1631 L |
4669 | { Bad_Opcode }, |
4670 | { Bad_Opcode }, | |
507bd325 | 4671 | { "blendps", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4672 | }, |
4673 | ||
1ceb70f8 | 4674 | /* PREFIX_0F3A0D */ |
42903f7f | 4675 | { |
592d1631 L |
4676 | { Bad_Opcode }, |
4677 | { Bad_Opcode }, | |
507bd325 | 4678 | { "blendpd", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4679 | }, |
4680 | ||
1ceb70f8 | 4681 | /* PREFIX_0F3A0E */ |
42903f7f | 4682 | { |
592d1631 L |
4683 | { Bad_Opcode }, |
4684 | { Bad_Opcode }, | |
507bd325 | 4685 | { "pblendw", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4686 | }, |
4687 | ||
1ceb70f8 | 4688 | /* PREFIX_0F3A14 */ |
42903f7f | 4689 | { |
592d1631 L |
4690 | { Bad_Opcode }, |
4691 | { Bad_Opcode }, | |
507bd325 | 4692 | { "pextrb", { Edqb, XM, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4693 | }, |
4694 | ||
1ceb70f8 | 4695 | /* PREFIX_0F3A15 */ |
42903f7f | 4696 | { |
592d1631 L |
4697 | { Bad_Opcode }, |
4698 | { Bad_Opcode }, | |
507bd325 | 4699 | { "pextrw", { Edqw, XM, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4700 | }, |
4701 | ||
1ceb70f8 | 4702 | /* PREFIX_0F3A16 */ |
42903f7f | 4703 | { |
592d1631 L |
4704 | { Bad_Opcode }, |
4705 | { Bad_Opcode }, | |
507bd325 | 4706 | { "pextrK", { Edq, XM, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4707 | }, |
4708 | ||
1ceb70f8 | 4709 | /* PREFIX_0F3A17 */ |
42903f7f | 4710 | { |
592d1631 L |
4711 | { Bad_Opcode }, |
4712 | { Bad_Opcode }, | |
507bd325 | 4713 | { "extractps", { Edqd, XM, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4714 | }, |
4715 | ||
1ceb70f8 | 4716 | /* PREFIX_0F3A20 */ |
42903f7f | 4717 | { |
592d1631 L |
4718 | { Bad_Opcode }, |
4719 | { Bad_Opcode }, | |
507bd325 | 4720 | { "pinsrb", { XM, Edqb, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4721 | }, |
4722 | ||
1ceb70f8 | 4723 | /* PREFIX_0F3A21 */ |
42903f7f | 4724 | { |
592d1631 L |
4725 | { Bad_Opcode }, |
4726 | { Bad_Opcode }, | |
507bd325 | 4727 | { "insertps", { XM, EXd, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4728 | }, |
4729 | ||
1ceb70f8 | 4730 | /* PREFIX_0F3A22 */ |
42903f7f | 4731 | { |
592d1631 L |
4732 | { Bad_Opcode }, |
4733 | { Bad_Opcode }, | |
507bd325 | 4734 | { "pinsrK", { XM, Edq, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4735 | }, |
4736 | ||
1ceb70f8 | 4737 | /* PREFIX_0F3A40 */ |
42903f7f | 4738 | { |
592d1631 L |
4739 | { Bad_Opcode }, |
4740 | { Bad_Opcode }, | |
507bd325 | 4741 | { "dpps", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4742 | }, |
4743 | ||
1ceb70f8 | 4744 | /* PREFIX_0F3A41 */ |
42903f7f | 4745 | { |
592d1631 L |
4746 | { Bad_Opcode }, |
4747 | { Bad_Opcode }, | |
507bd325 | 4748 | { "dppd", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4749 | }, |
4750 | ||
1ceb70f8 | 4751 | /* PREFIX_0F3A42 */ |
42903f7f | 4752 | { |
592d1631 L |
4753 | { Bad_Opcode }, |
4754 | { Bad_Opcode }, | |
507bd325 | 4755 | { "mpsadbw", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f | 4756 | }, |
381d071f | 4757 | |
c0f3af97 L |
4758 | /* PREFIX_0F3A44 */ |
4759 | { | |
592d1631 L |
4760 | { Bad_Opcode }, |
4761 | { Bad_Opcode }, | |
507bd325 | 4762 | { "pclmulqdq", { XM, EXx, PCLMUL }, PREFIX_OPCODE }, |
c0f3af97 L |
4763 | }, |
4764 | ||
1ceb70f8 | 4765 | /* PREFIX_0F3A60 */ |
381d071f | 4766 | { |
592d1631 L |
4767 | { Bad_Opcode }, |
4768 | { Bad_Opcode }, | |
15c7c1d8 | 4769 | { "pcmpestrm", { XM, { PCMPESTR_Fixup, x_mode }, Ib }, PREFIX_OPCODE }, |
381d071f L |
4770 | }, |
4771 | ||
1ceb70f8 | 4772 | /* PREFIX_0F3A61 */ |
381d071f | 4773 | { |
592d1631 L |
4774 | { Bad_Opcode }, |
4775 | { Bad_Opcode }, | |
15c7c1d8 | 4776 | { "pcmpestri", { XM, { PCMPESTR_Fixup, x_mode }, Ib }, PREFIX_OPCODE }, |
381d071f L |
4777 | }, |
4778 | ||
1ceb70f8 | 4779 | /* PREFIX_0F3A62 */ |
381d071f | 4780 | { |
592d1631 L |
4781 | { Bad_Opcode }, |
4782 | { Bad_Opcode }, | |
507bd325 | 4783 | { "pcmpistrm", { XM, EXx, Ib }, PREFIX_OPCODE }, |
381d071f L |
4784 | }, |
4785 | ||
1ceb70f8 | 4786 | /* PREFIX_0F3A63 */ |
381d071f | 4787 | { |
592d1631 L |
4788 | { Bad_Opcode }, |
4789 | { Bad_Opcode }, | |
507bd325 | 4790 | { "pcmpistri", { XM, EXx, Ib }, PREFIX_OPCODE }, |
381d071f | 4791 | }, |
09a2c6cf | 4792 | |
a0046408 L |
4793 | /* PREFIX_0F3ACC */ |
4794 | { | |
507bd325 | 4795 | { "sha1rnds4", { XM, EXxmm, Ib }, PREFIX_OPCODE }, |
a0046408 L |
4796 | }, |
4797 | ||
48521003 IT |
4798 | /* PREFIX_0F3ACE */ |
4799 | { | |
4800 | { Bad_Opcode }, | |
4801 | { Bad_Opcode }, | |
4802 | { "gf2p8affineqb", { XM, EXxmm, Ib }, PREFIX_OPCODE }, | |
4803 | }, | |
4804 | ||
4805 | /* PREFIX_0F3ACF */ | |
4806 | { | |
4807 | { Bad_Opcode }, | |
4808 | { Bad_Opcode }, | |
4809 | { "gf2p8affineinvqb", { XM, EXxmm, Ib }, PREFIX_OPCODE }, | |
4810 | }, | |
4811 | ||
c0f3af97 | 4812 | /* PREFIX_0F3ADF */ |
09a2c6cf | 4813 | { |
592d1631 L |
4814 | { Bad_Opcode }, |
4815 | { Bad_Opcode }, | |
507bd325 | 4816 | { "aeskeygenassist", { XM, EXx, Ib }, PREFIX_OPCODE }, |
09a2c6cf L |
4817 | }, |
4818 | ||
592a252b | 4819 | /* PREFIX_VEX_0F10 */ |
09a2c6cf | 4820 | { |
592a252b L |
4821 | { VEX_W_TABLE (VEX_W_0F10_P_0) }, |
4822 | { VEX_LEN_TABLE (VEX_LEN_0F10_P_1) }, | |
4823 | { VEX_W_TABLE (VEX_W_0F10_P_2) }, | |
4824 | { VEX_LEN_TABLE (VEX_LEN_0F10_P_3) }, | |
09a2c6cf L |
4825 | }, |
4826 | ||
592a252b | 4827 | /* PREFIX_VEX_0F11 */ |
09a2c6cf | 4828 | { |
592a252b L |
4829 | { VEX_W_TABLE (VEX_W_0F11_P_0) }, |
4830 | { VEX_LEN_TABLE (VEX_LEN_0F11_P_1) }, | |
4831 | { VEX_W_TABLE (VEX_W_0F11_P_2) }, | |
4832 | { VEX_LEN_TABLE (VEX_LEN_0F11_P_3) }, | |
09a2c6cf L |
4833 | }, |
4834 | ||
592a252b | 4835 | /* PREFIX_VEX_0F12 */ |
09a2c6cf | 4836 | { |
592a252b L |
4837 | { MOD_TABLE (MOD_VEX_0F12_PREFIX_0) }, |
4838 | { VEX_W_TABLE (VEX_W_0F12_P_1) }, | |
4839 | { VEX_LEN_TABLE (VEX_LEN_0F12_P_2) }, | |
4840 | { VEX_W_TABLE (VEX_W_0F12_P_3) }, | |
09a2c6cf L |
4841 | }, |
4842 | ||
592a252b | 4843 | /* PREFIX_VEX_0F16 */ |
09a2c6cf | 4844 | { |
592a252b L |
4845 | { MOD_TABLE (MOD_VEX_0F16_PREFIX_0) }, |
4846 | { VEX_W_TABLE (VEX_W_0F16_P_1) }, | |
4847 | { VEX_LEN_TABLE (VEX_LEN_0F16_P_2) }, | |
5f754f58 | 4848 | }, |
7c52e0e8 | 4849 | |
592a252b | 4850 | /* PREFIX_VEX_0F2A */ |
5f754f58 | 4851 | { |
592d1631 | 4852 | { Bad_Opcode }, |
592a252b | 4853 | { VEX_LEN_TABLE (VEX_LEN_0F2A_P_1) }, |
592d1631 | 4854 | { Bad_Opcode }, |
592a252b | 4855 | { VEX_LEN_TABLE (VEX_LEN_0F2A_P_3) }, |
5f754f58 | 4856 | }, |
7c52e0e8 | 4857 | |
592a252b | 4858 | /* PREFIX_VEX_0F2C */ |
5f754f58 | 4859 | { |
592d1631 | 4860 | { Bad_Opcode }, |
592a252b | 4861 | { VEX_LEN_TABLE (VEX_LEN_0F2C_P_1) }, |
592d1631 | 4862 | { Bad_Opcode }, |
592a252b | 4863 | { VEX_LEN_TABLE (VEX_LEN_0F2C_P_3) }, |
5f754f58 | 4864 | }, |
7c52e0e8 | 4865 | |
592a252b | 4866 | /* PREFIX_VEX_0F2D */ |
7c52e0e8 | 4867 | { |
592d1631 | 4868 | { Bad_Opcode }, |
592a252b | 4869 | { VEX_LEN_TABLE (VEX_LEN_0F2D_P_1) }, |
592d1631 | 4870 | { Bad_Opcode }, |
592a252b | 4871 | { VEX_LEN_TABLE (VEX_LEN_0F2D_P_3) }, |
7c52e0e8 L |
4872 | }, |
4873 | ||
592a252b | 4874 | /* PREFIX_VEX_0F2E */ |
7c52e0e8 | 4875 | { |
592a252b | 4876 | { VEX_LEN_TABLE (VEX_LEN_0F2E_P_0) }, |
592d1631 | 4877 | { Bad_Opcode }, |
592a252b | 4878 | { VEX_LEN_TABLE (VEX_LEN_0F2E_P_2) }, |
7c52e0e8 L |
4879 | }, |
4880 | ||
592a252b | 4881 | /* PREFIX_VEX_0F2F */ |
7c52e0e8 | 4882 | { |
592a252b | 4883 | { VEX_LEN_TABLE (VEX_LEN_0F2F_P_0) }, |
592d1631 | 4884 | { Bad_Opcode }, |
592a252b | 4885 | { VEX_LEN_TABLE (VEX_LEN_0F2F_P_2) }, |
7c52e0e8 L |
4886 | }, |
4887 | ||
43234a1e L |
4888 | /* PREFIX_VEX_0F41 */ |
4889 | { | |
4890 | { VEX_LEN_TABLE (VEX_LEN_0F41_P_0) }, | |
1ba585e8 IT |
4891 | { Bad_Opcode }, |
4892 | { VEX_LEN_TABLE (VEX_LEN_0F41_P_2) }, | |
43234a1e L |
4893 | }, |
4894 | ||
4895 | /* PREFIX_VEX_0F42 */ | |
4896 | { | |
4897 | { VEX_LEN_TABLE (VEX_LEN_0F42_P_0) }, | |
1ba585e8 IT |
4898 | { Bad_Opcode }, |
4899 | { VEX_LEN_TABLE (VEX_LEN_0F42_P_2) }, | |
43234a1e L |
4900 | }, |
4901 | ||
4902 | /* PREFIX_VEX_0F44 */ | |
4903 | { | |
4904 | { VEX_LEN_TABLE (VEX_LEN_0F44_P_0) }, | |
1ba585e8 IT |
4905 | { Bad_Opcode }, |
4906 | { VEX_LEN_TABLE (VEX_LEN_0F44_P_2) }, | |
43234a1e L |
4907 | }, |
4908 | ||
4909 | /* PREFIX_VEX_0F45 */ | |
4910 | { | |
4911 | { VEX_LEN_TABLE (VEX_LEN_0F45_P_0) }, | |
1ba585e8 IT |
4912 | { Bad_Opcode }, |
4913 | { VEX_LEN_TABLE (VEX_LEN_0F45_P_2) }, | |
43234a1e L |
4914 | }, |
4915 | ||
4916 | /* PREFIX_VEX_0F46 */ | |
4917 | { | |
4918 | { VEX_LEN_TABLE (VEX_LEN_0F46_P_0) }, | |
1ba585e8 IT |
4919 | { Bad_Opcode }, |
4920 | { VEX_LEN_TABLE (VEX_LEN_0F46_P_2) }, | |
43234a1e L |
4921 | }, |
4922 | ||
4923 | /* PREFIX_VEX_0F47 */ | |
4924 | { | |
4925 | { VEX_LEN_TABLE (VEX_LEN_0F47_P_0) }, | |
1ba585e8 IT |
4926 | { Bad_Opcode }, |
4927 | { VEX_LEN_TABLE (VEX_LEN_0F47_P_2) }, | |
43234a1e L |
4928 | }, |
4929 | ||
1ba585e8 | 4930 | /* PREFIX_VEX_0F4A */ |
43234a1e | 4931 | { |
1ba585e8 | 4932 | { VEX_LEN_TABLE (VEX_LEN_0F4A_P_0) }, |
43234a1e | 4933 | { Bad_Opcode }, |
1ba585e8 IT |
4934 | { VEX_LEN_TABLE (VEX_LEN_0F4A_P_2) }, |
4935 | }, | |
4936 | ||
4937 | /* PREFIX_VEX_0F4B */ | |
4938 | { | |
4939 | { VEX_LEN_TABLE (VEX_LEN_0F4B_P_0) }, | |
43234a1e L |
4940 | { Bad_Opcode }, |
4941 | { VEX_LEN_TABLE (VEX_LEN_0F4B_P_2) }, | |
4942 | }, | |
4943 | ||
592a252b | 4944 | /* PREFIX_VEX_0F51 */ |
7c52e0e8 | 4945 | { |
592a252b L |
4946 | { VEX_W_TABLE (VEX_W_0F51_P_0) }, |
4947 | { VEX_LEN_TABLE (VEX_LEN_0F51_P_1) }, | |
4948 | { VEX_W_TABLE (VEX_W_0F51_P_2) }, | |
4949 | { VEX_LEN_TABLE (VEX_LEN_0F51_P_3) }, | |
7c52e0e8 L |
4950 | }, |
4951 | ||
592a252b | 4952 | /* PREFIX_VEX_0F52 */ |
7c52e0e8 | 4953 | { |
592a252b L |
4954 | { VEX_W_TABLE (VEX_W_0F52_P_0) }, |
4955 | { VEX_LEN_TABLE (VEX_LEN_0F52_P_1) }, | |
7c52e0e8 L |
4956 | }, |
4957 | ||
592a252b | 4958 | /* PREFIX_VEX_0F53 */ |
7c52e0e8 | 4959 | { |
592a252b L |
4960 | { VEX_W_TABLE (VEX_W_0F53_P_0) }, |
4961 | { VEX_LEN_TABLE (VEX_LEN_0F53_P_1) }, | |
7c52e0e8 L |
4962 | }, |
4963 | ||
592a252b | 4964 | /* PREFIX_VEX_0F58 */ |
7c52e0e8 | 4965 | { |
592a252b L |
4966 | { VEX_W_TABLE (VEX_W_0F58_P_0) }, |
4967 | { VEX_LEN_TABLE (VEX_LEN_0F58_P_1) }, | |
4968 | { VEX_W_TABLE (VEX_W_0F58_P_2) }, | |
4969 | { VEX_LEN_TABLE (VEX_LEN_0F58_P_3) }, | |
7c52e0e8 L |
4970 | }, |
4971 | ||
592a252b | 4972 | /* PREFIX_VEX_0F59 */ |
7c52e0e8 | 4973 | { |
592a252b L |
4974 | { VEX_W_TABLE (VEX_W_0F59_P_0) }, |
4975 | { VEX_LEN_TABLE (VEX_LEN_0F59_P_1) }, | |
4976 | { VEX_W_TABLE (VEX_W_0F59_P_2) }, | |
4977 | { VEX_LEN_TABLE (VEX_LEN_0F59_P_3) }, | |
7c52e0e8 L |
4978 | }, |
4979 | ||
592a252b | 4980 | /* PREFIX_VEX_0F5A */ |
7c52e0e8 | 4981 | { |
592a252b L |
4982 | { VEX_W_TABLE (VEX_W_0F5A_P_0) }, |
4983 | { VEX_LEN_TABLE (VEX_LEN_0F5A_P_1) }, | |
bf890a93 | 4984 | { "vcvtpd2ps%XY", { XMM, EXx }, 0 }, |
592a252b | 4985 | { VEX_LEN_TABLE (VEX_LEN_0F5A_P_3) }, |
7c52e0e8 L |
4986 | }, |
4987 | ||
592a252b | 4988 | /* PREFIX_VEX_0F5B */ |
7c52e0e8 | 4989 | { |
592a252b L |
4990 | { VEX_W_TABLE (VEX_W_0F5B_P_0) }, |
4991 | { VEX_W_TABLE (VEX_W_0F5B_P_1) }, | |
4992 | { VEX_W_TABLE (VEX_W_0F5B_P_2) }, | |
7c52e0e8 L |
4993 | }, |
4994 | ||
592a252b | 4995 | /* PREFIX_VEX_0F5C */ |
7c52e0e8 | 4996 | { |
592a252b L |
4997 | { VEX_W_TABLE (VEX_W_0F5C_P_0) }, |
4998 | { VEX_LEN_TABLE (VEX_LEN_0F5C_P_1) }, | |
4999 | { VEX_W_TABLE (VEX_W_0F5C_P_2) }, | |
5000 | { VEX_LEN_TABLE (VEX_LEN_0F5C_P_3) }, | |
7c52e0e8 L |
5001 | }, |
5002 | ||
592a252b | 5003 | /* PREFIX_VEX_0F5D */ |
7c52e0e8 | 5004 | { |
592a252b L |
5005 | { VEX_W_TABLE (VEX_W_0F5D_P_0) }, |
5006 | { VEX_LEN_TABLE (VEX_LEN_0F5D_P_1) }, | |
5007 | { VEX_W_TABLE (VEX_W_0F5D_P_2) }, | |
5008 | { VEX_LEN_TABLE (VEX_LEN_0F5D_P_3) }, | |
7c52e0e8 L |
5009 | }, |
5010 | ||
592a252b | 5011 | /* PREFIX_VEX_0F5E */ |
7c52e0e8 | 5012 | { |
592a252b L |
5013 | { VEX_W_TABLE (VEX_W_0F5E_P_0) }, |
5014 | { VEX_LEN_TABLE (VEX_LEN_0F5E_P_1) }, | |
5015 | { VEX_W_TABLE (VEX_W_0F5E_P_2) }, | |
5016 | { VEX_LEN_TABLE (VEX_LEN_0F5E_P_3) }, | |
7c52e0e8 L |
5017 | }, |
5018 | ||
592a252b | 5019 | /* PREFIX_VEX_0F5F */ |
7c52e0e8 | 5020 | { |
592a252b L |
5021 | { VEX_W_TABLE (VEX_W_0F5F_P_0) }, |
5022 | { VEX_LEN_TABLE (VEX_LEN_0F5F_P_1) }, | |
5023 | { VEX_W_TABLE (VEX_W_0F5F_P_2) }, | |
5024 | { VEX_LEN_TABLE (VEX_LEN_0F5F_P_3) }, | |
7c52e0e8 L |
5025 | }, |
5026 | ||
592a252b | 5027 | /* PREFIX_VEX_0F60 */ |
7c52e0e8 | 5028 | { |
592d1631 L |
5029 | { Bad_Opcode }, |
5030 | { Bad_Opcode }, | |
6c30d220 | 5031 | { VEX_W_TABLE (VEX_W_0F60_P_2) }, |
7c52e0e8 L |
5032 | }, |
5033 | ||
592a252b | 5034 | /* PREFIX_VEX_0F61 */ |
7c52e0e8 | 5035 | { |
592d1631 L |
5036 | { Bad_Opcode }, |
5037 | { Bad_Opcode }, | |
6c30d220 | 5038 | { VEX_W_TABLE (VEX_W_0F61_P_2) }, |
7c52e0e8 L |
5039 | }, |
5040 | ||
592a252b | 5041 | /* PREFIX_VEX_0F62 */ |
7c52e0e8 | 5042 | { |
592d1631 L |
5043 | { Bad_Opcode }, |
5044 | { Bad_Opcode }, | |
6c30d220 | 5045 | { VEX_W_TABLE (VEX_W_0F62_P_2) }, |
7c52e0e8 L |
5046 | }, |
5047 | ||
592a252b | 5048 | /* PREFIX_VEX_0F63 */ |
7c52e0e8 | 5049 | { |
592d1631 L |
5050 | { Bad_Opcode }, |
5051 | { Bad_Opcode }, | |
6c30d220 | 5052 | { VEX_W_TABLE (VEX_W_0F63_P_2) }, |
7c52e0e8 L |
5053 | }, |
5054 | ||
592a252b | 5055 | /* PREFIX_VEX_0F64 */ |
7c52e0e8 | 5056 | { |
592d1631 L |
5057 | { Bad_Opcode }, |
5058 | { Bad_Opcode }, | |
6c30d220 | 5059 | { VEX_W_TABLE (VEX_W_0F64_P_2) }, |
7c52e0e8 L |
5060 | }, |
5061 | ||
592a252b | 5062 | /* PREFIX_VEX_0F65 */ |
7c52e0e8 | 5063 | { |
592d1631 L |
5064 | { Bad_Opcode }, |
5065 | { Bad_Opcode }, | |
6c30d220 | 5066 | { VEX_W_TABLE (VEX_W_0F65_P_2) }, |
7c52e0e8 L |
5067 | }, |
5068 | ||
592a252b | 5069 | /* PREFIX_VEX_0F66 */ |
7c52e0e8 | 5070 | { |
592d1631 L |
5071 | { Bad_Opcode }, |
5072 | { Bad_Opcode }, | |
6c30d220 | 5073 | { VEX_W_TABLE (VEX_W_0F66_P_2) }, |
7c52e0e8 | 5074 | }, |
6439fc28 | 5075 | |
592a252b | 5076 | /* PREFIX_VEX_0F67 */ |
331d2d0d | 5077 | { |
592d1631 L |
5078 | { Bad_Opcode }, |
5079 | { Bad_Opcode }, | |
6c30d220 | 5080 | { VEX_W_TABLE (VEX_W_0F67_P_2) }, |
c0f3af97 L |
5081 | }, |
5082 | ||
592a252b | 5083 | /* PREFIX_VEX_0F68 */ |
c0f3af97 | 5084 | { |
592d1631 L |
5085 | { Bad_Opcode }, |
5086 | { Bad_Opcode }, | |
6c30d220 | 5087 | { VEX_W_TABLE (VEX_W_0F68_P_2) }, |
c0f3af97 L |
5088 | }, |
5089 | ||
592a252b | 5090 | /* PREFIX_VEX_0F69 */ |
c0f3af97 | 5091 | { |
592d1631 L |
5092 | { Bad_Opcode }, |
5093 | { Bad_Opcode }, | |
6c30d220 | 5094 | { VEX_W_TABLE (VEX_W_0F69_P_2) }, |
c0f3af97 L |
5095 | }, |
5096 | ||
592a252b | 5097 | /* PREFIX_VEX_0F6A */ |
c0f3af97 | 5098 | { |
592d1631 L |
5099 | { Bad_Opcode }, |
5100 | { Bad_Opcode }, | |
6c30d220 | 5101 | { VEX_W_TABLE (VEX_W_0F6A_P_2) }, |
c0f3af97 L |
5102 | }, |
5103 | ||
592a252b | 5104 | /* PREFIX_VEX_0F6B */ |
c0f3af97 | 5105 | { |
592d1631 L |
5106 | { Bad_Opcode }, |
5107 | { Bad_Opcode }, | |
6c30d220 | 5108 | { VEX_W_TABLE (VEX_W_0F6B_P_2) }, |
c0f3af97 L |
5109 | }, |
5110 | ||
592a252b | 5111 | /* PREFIX_VEX_0F6C */ |
c0f3af97 | 5112 | { |
592d1631 L |
5113 | { Bad_Opcode }, |
5114 | { Bad_Opcode }, | |
6c30d220 | 5115 | { VEX_W_TABLE (VEX_W_0F6C_P_2) }, |
c0f3af97 L |
5116 | }, |
5117 | ||
592a252b | 5118 | /* PREFIX_VEX_0F6D */ |
c0f3af97 | 5119 | { |
592d1631 L |
5120 | { Bad_Opcode }, |
5121 | { Bad_Opcode }, | |
6c30d220 | 5122 | { VEX_W_TABLE (VEX_W_0F6D_P_2) }, |
c0f3af97 L |
5123 | }, |
5124 | ||
592a252b | 5125 | /* PREFIX_VEX_0F6E */ |
c0f3af97 | 5126 | { |
592d1631 L |
5127 | { Bad_Opcode }, |
5128 | { Bad_Opcode }, | |
592a252b | 5129 | { VEX_LEN_TABLE (VEX_LEN_0F6E_P_2) }, |
c0f3af97 L |
5130 | }, |
5131 | ||
592a252b | 5132 | /* PREFIX_VEX_0F6F */ |
c0f3af97 | 5133 | { |
592d1631 | 5134 | { Bad_Opcode }, |
592a252b L |
5135 | { VEX_W_TABLE (VEX_W_0F6F_P_1) }, |
5136 | { VEX_W_TABLE (VEX_W_0F6F_P_2) }, | |
c0f3af97 L |
5137 | }, |
5138 | ||
592a252b | 5139 | /* PREFIX_VEX_0F70 */ |
c0f3af97 | 5140 | { |
592d1631 | 5141 | { Bad_Opcode }, |
6c30d220 L |
5142 | { VEX_W_TABLE (VEX_W_0F70_P_1) }, |
5143 | { VEX_W_TABLE (VEX_W_0F70_P_2) }, | |
5144 | { VEX_W_TABLE (VEX_W_0F70_P_3) }, | |
c0f3af97 L |
5145 | }, |
5146 | ||
592a252b | 5147 | /* PREFIX_VEX_0F71_REG_2 */ |
c0f3af97 | 5148 | { |
592d1631 L |
5149 | { Bad_Opcode }, |
5150 | { Bad_Opcode }, | |
6c30d220 | 5151 | { VEX_W_TABLE (VEX_W_0F71_R_2_P_2) }, |
c0f3af97 L |
5152 | }, |
5153 | ||
592a252b | 5154 | /* PREFIX_VEX_0F71_REG_4 */ |
c0f3af97 | 5155 | { |
592d1631 L |
5156 | { Bad_Opcode }, |
5157 | { Bad_Opcode }, | |
6c30d220 | 5158 | { VEX_W_TABLE (VEX_W_0F71_R_4_P_2) }, |
c0f3af97 L |
5159 | }, |
5160 | ||
592a252b | 5161 | /* PREFIX_VEX_0F71_REG_6 */ |
c0f3af97 | 5162 | { |
592d1631 L |
5163 | { Bad_Opcode }, |
5164 | { Bad_Opcode }, | |
6c30d220 | 5165 | { VEX_W_TABLE (VEX_W_0F71_R_6_P_2) }, |
c0f3af97 L |
5166 | }, |
5167 | ||
592a252b | 5168 | /* PREFIX_VEX_0F72_REG_2 */ |
c0f3af97 | 5169 | { |
592d1631 L |
5170 | { Bad_Opcode }, |
5171 | { Bad_Opcode }, | |
6c30d220 | 5172 | { VEX_W_TABLE (VEX_W_0F72_R_2_P_2) }, |
c0f3af97 L |
5173 | }, |
5174 | ||
592a252b | 5175 | /* PREFIX_VEX_0F72_REG_4 */ |
c0f3af97 | 5176 | { |
592d1631 L |
5177 | { Bad_Opcode }, |
5178 | { Bad_Opcode }, | |
6c30d220 | 5179 | { VEX_W_TABLE (VEX_W_0F72_R_4_P_2) }, |
c0f3af97 L |
5180 | }, |
5181 | ||
592a252b | 5182 | /* PREFIX_VEX_0F72_REG_6 */ |
c0f3af97 | 5183 | { |
592d1631 L |
5184 | { Bad_Opcode }, |
5185 | { Bad_Opcode }, | |
6c30d220 | 5186 | { VEX_W_TABLE (VEX_W_0F72_R_6_P_2) }, |
c0f3af97 L |
5187 | }, |
5188 | ||
592a252b | 5189 | /* PREFIX_VEX_0F73_REG_2 */ |
c0f3af97 | 5190 | { |
592d1631 L |
5191 | { Bad_Opcode }, |
5192 | { Bad_Opcode }, | |
6c30d220 | 5193 | { VEX_W_TABLE (VEX_W_0F73_R_2_P_2) }, |
c0f3af97 L |
5194 | }, |
5195 | ||
592a252b | 5196 | /* PREFIX_VEX_0F73_REG_3 */ |
c0f3af97 | 5197 | { |
592d1631 L |
5198 | { Bad_Opcode }, |
5199 | { Bad_Opcode }, | |
6c30d220 | 5200 | { VEX_W_TABLE (VEX_W_0F73_R_3_P_2) }, |
c0f3af97 L |
5201 | }, |
5202 | ||
592a252b | 5203 | /* PREFIX_VEX_0F73_REG_6 */ |
c0f3af97 | 5204 | { |
592d1631 L |
5205 | { Bad_Opcode }, |
5206 | { Bad_Opcode }, | |
6c30d220 | 5207 | { VEX_W_TABLE (VEX_W_0F73_R_6_P_2) }, |
c0f3af97 L |
5208 | }, |
5209 | ||
592a252b | 5210 | /* PREFIX_VEX_0F73_REG_7 */ |
c0f3af97 | 5211 | { |
592d1631 L |
5212 | { Bad_Opcode }, |
5213 | { Bad_Opcode }, | |
6c30d220 | 5214 | { VEX_W_TABLE (VEX_W_0F73_R_7_P_2) }, |
c0f3af97 L |
5215 | }, |
5216 | ||
592a252b | 5217 | /* PREFIX_VEX_0F74 */ |
c0f3af97 | 5218 | { |
592d1631 L |
5219 | { Bad_Opcode }, |
5220 | { Bad_Opcode }, | |
6c30d220 | 5221 | { VEX_W_TABLE (VEX_W_0F74_P_2) }, |
c0f3af97 L |
5222 | }, |
5223 | ||
592a252b | 5224 | /* PREFIX_VEX_0F75 */ |
c0f3af97 | 5225 | { |
592d1631 L |
5226 | { Bad_Opcode }, |
5227 | { Bad_Opcode }, | |
6c30d220 | 5228 | { VEX_W_TABLE (VEX_W_0F75_P_2) }, |
c0f3af97 L |
5229 | }, |
5230 | ||
592a252b | 5231 | /* PREFIX_VEX_0F76 */ |
c0f3af97 | 5232 | { |
592d1631 L |
5233 | { Bad_Opcode }, |
5234 | { Bad_Opcode }, | |
6c30d220 | 5235 | { VEX_W_TABLE (VEX_W_0F76_P_2) }, |
c0f3af97 L |
5236 | }, |
5237 | ||
592a252b | 5238 | /* PREFIX_VEX_0F77 */ |
c0f3af97 | 5239 | { |
592a252b | 5240 | { VEX_W_TABLE (VEX_W_0F77_P_0) }, |
c0f3af97 L |
5241 | }, |
5242 | ||
592a252b | 5243 | /* PREFIX_VEX_0F7C */ |
c0f3af97 | 5244 | { |
592d1631 L |
5245 | { Bad_Opcode }, |
5246 | { Bad_Opcode }, | |
592a252b L |
5247 | { VEX_W_TABLE (VEX_W_0F7C_P_2) }, |
5248 | { VEX_W_TABLE (VEX_W_0F7C_P_3) }, | |
c0f3af97 L |
5249 | }, |
5250 | ||
592a252b | 5251 | /* PREFIX_VEX_0F7D */ |
c0f3af97 | 5252 | { |
592d1631 L |
5253 | { Bad_Opcode }, |
5254 | { Bad_Opcode }, | |
592a252b L |
5255 | { VEX_W_TABLE (VEX_W_0F7D_P_2) }, |
5256 | { VEX_W_TABLE (VEX_W_0F7D_P_3) }, | |
c0f3af97 L |
5257 | }, |
5258 | ||
592a252b | 5259 | /* PREFIX_VEX_0F7E */ |
c0f3af97 | 5260 | { |
592d1631 | 5261 | { Bad_Opcode }, |
592a252b L |
5262 | { VEX_LEN_TABLE (VEX_LEN_0F7E_P_1) }, |
5263 | { VEX_LEN_TABLE (VEX_LEN_0F7E_P_2) }, | |
c0f3af97 L |
5264 | }, |
5265 | ||
592a252b | 5266 | /* PREFIX_VEX_0F7F */ |
c0f3af97 | 5267 | { |
592d1631 | 5268 | { Bad_Opcode }, |
592a252b L |
5269 | { VEX_W_TABLE (VEX_W_0F7F_P_1) }, |
5270 | { VEX_W_TABLE (VEX_W_0F7F_P_2) }, | |
c0f3af97 L |
5271 | }, |
5272 | ||
43234a1e L |
5273 | /* PREFIX_VEX_0F90 */ |
5274 | { | |
5275 | { VEX_LEN_TABLE (VEX_LEN_0F90_P_0) }, | |
1ba585e8 IT |
5276 | { Bad_Opcode }, |
5277 | { VEX_LEN_TABLE (VEX_LEN_0F90_P_2) }, | |
43234a1e L |
5278 | }, |
5279 | ||
5280 | /* PREFIX_VEX_0F91 */ | |
5281 | { | |
5282 | { VEX_LEN_TABLE (VEX_LEN_0F91_P_0) }, | |
1ba585e8 IT |
5283 | { Bad_Opcode }, |
5284 | { VEX_LEN_TABLE (VEX_LEN_0F91_P_2) }, | |
43234a1e L |
5285 | }, |
5286 | ||
5287 | /* PREFIX_VEX_0F92 */ | |
5288 | { | |
5289 | { VEX_LEN_TABLE (VEX_LEN_0F92_P_0) }, | |
1ba585e8 | 5290 | { Bad_Opcode }, |
90a915bf | 5291 | { VEX_LEN_TABLE (VEX_LEN_0F92_P_2) }, |
1ba585e8 | 5292 | { VEX_LEN_TABLE (VEX_LEN_0F92_P_3) }, |
43234a1e L |
5293 | }, |
5294 | ||
5295 | /* PREFIX_VEX_0F93 */ | |
5296 | { | |
5297 | { VEX_LEN_TABLE (VEX_LEN_0F93_P_0) }, | |
1ba585e8 | 5298 | { Bad_Opcode }, |
90a915bf | 5299 | { VEX_LEN_TABLE (VEX_LEN_0F93_P_2) }, |
1ba585e8 | 5300 | { VEX_LEN_TABLE (VEX_LEN_0F93_P_3) }, |
43234a1e L |
5301 | }, |
5302 | ||
5303 | /* PREFIX_VEX_0F98 */ | |
5304 | { | |
5305 | { VEX_LEN_TABLE (VEX_LEN_0F98_P_0) }, | |
1ba585e8 IT |
5306 | { Bad_Opcode }, |
5307 | { VEX_LEN_TABLE (VEX_LEN_0F98_P_2) }, | |
5308 | }, | |
5309 | ||
5310 | /* PREFIX_VEX_0F99 */ | |
5311 | { | |
5312 | { VEX_LEN_TABLE (VEX_LEN_0F99_P_0) }, | |
5313 | { Bad_Opcode }, | |
5314 | { VEX_LEN_TABLE (VEX_LEN_0F99_P_2) }, | |
43234a1e L |
5315 | }, |
5316 | ||
592a252b | 5317 | /* PREFIX_VEX_0FC2 */ |
c0f3af97 | 5318 | { |
592a252b L |
5319 | { VEX_W_TABLE (VEX_W_0FC2_P_0) }, |
5320 | { VEX_LEN_TABLE (VEX_LEN_0FC2_P_1) }, | |
5321 | { VEX_W_TABLE (VEX_W_0FC2_P_2) }, | |
5322 | { VEX_LEN_TABLE (VEX_LEN_0FC2_P_3) }, | |
c0f3af97 L |
5323 | }, |
5324 | ||
592a252b | 5325 | /* PREFIX_VEX_0FC4 */ |
c0f3af97 | 5326 | { |
592d1631 L |
5327 | { Bad_Opcode }, |
5328 | { Bad_Opcode }, | |
592a252b | 5329 | { VEX_LEN_TABLE (VEX_LEN_0FC4_P_2) }, |
c0f3af97 L |
5330 | }, |
5331 | ||
592a252b | 5332 | /* PREFIX_VEX_0FC5 */ |
c0f3af97 | 5333 | { |
592d1631 L |
5334 | { Bad_Opcode }, |
5335 | { Bad_Opcode }, | |
592a252b | 5336 | { VEX_LEN_TABLE (VEX_LEN_0FC5_P_2) }, |
c0f3af97 L |
5337 | }, |
5338 | ||
592a252b | 5339 | /* PREFIX_VEX_0FD0 */ |
c0f3af97 | 5340 | { |
592d1631 L |
5341 | { Bad_Opcode }, |
5342 | { Bad_Opcode }, | |
592a252b L |
5343 | { VEX_W_TABLE (VEX_W_0FD0_P_2) }, |
5344 | { VEX_W_TABLE (VEX_W_0FD0_P_3) }, | |
c0f3af97 L |
5345 | }, |
5346 | ||
592a252b | 5347 | /* PREFIX_VEX_0FD1 */ |
c0f3af97 | 5348 | { |
592d1631 L |
5349 | { Bad_Opcode }, |
5350 | { Bad_Opcode }, | |
6c30d220 | 5351 | { VEX_W_TABLE (VEX_W_0FD1_P_2) }, |
c0f3af97 L |
5352 | }, |
5353 | ||
592a252b | 5354 | /* PREFIX_VEX_0FD2 */ |
c0f3af97 | 5355 | { |
592d1631 L |
5356 | { Bad_Opcode }, |
5357 | { Bad_Opcode }, | |
6c30d220 | 5358 | { VEX_W_TABLE (VEX_W_0FD2_P_2) }, |
c0f3af97 L |
5359 | }, |
5360 | ||
592a252b | 5361 | /* PREFIX_VEX_0FD3 */ |
c0f3af97 | 5362 | { |
592d1631 L |
5363 | { Bad_Opcode }, |
5364 | { Bad_Opcode }, | |
6c30d220 | 5365 | { VEX_W_TABLE (VEX_W_0FD3_P_2) }, |
c0f3af97 L |
5366 | }, |
5367 | ||
592a252b | 5368 | /* PREFIX_VEX_0FD4 */ |
c0f3af97 | 5369 | { |
592d1631 L |
5370 | { Bad_Opcode }, |
5371 | { Bad_Opcode }, | |
6c30d220 | 5372 | { VEX_W_TABLE (VEX_W_0FD4_P_2) }, |
c0f3af97 L |
5373 | }, |
5374 | ||
592a252b | 5375 | /* PREFIX_VEX_0FD5 */ |
c0f3af97 | 5376 | { |
592d1631 L |
5377 | { Bad_Opcode }, |
5378 | { Bad_Opcode }, | |
6c30d220 | 5379 | { VEX_W_TABLE (VEX_W_0FD5_P_2) }, |
c0f3af97 L |
5380 | }, |
5381 | ||
592a252b | 5382 | /* PREFIX_VEX_0FD6 */ |
c0f3af97 | 5383 | { |
592d1631 L |
5384 | { Bad_Opcode }, |
5385 | { Bad_Opcode }, | |
592a252b | 5386 | { VEX_LEN_TABLE (VEX_LEN_0FD6_P_2) }, |
c0f3af97 L |
5387 | }, |
5388 | ||
592a252b | 5389 | /* PREFIX_VEX_0FD7 */ |
c0f3af97 | 5390 | { |
592d1631 L |
5391 | { Bad_Opcode }, |
5392 | { Bad_Opcode }, | |
592a252b | 5393 | { MOD_TABLE (MOD_VEX_0FD7_PREFIX_2) }, |
c0f3af97 L |
5394 | }, |
5395 | ||
592a252b | 5396 | /* PREFIX_VEX_0FD8 */ |
c0f3af97 | 5397 | { |
592d1631 L |
5398 | { Bad_Opcode }, |
5399 | { Bad_Opcode }, | |
6c30d220 | 5400 | { VEX_W_TABLE (VEX_W_0FD8_P_2) }, |
c0f3af97 L |
5401 | }, |
5402 | ||
592a252b | 5403 | /* PREFIX_VEX_0FD9 */ |
c0f3af97 | 5404 | { |
592d1631 L |
5405 | { Bad_Opcode }, |
5406 | { Bad_Opcode }, | |
6c30d220 | 5407 | { VEX_W_TABLE (VEX_W_0FD9_P_2) }, |
c0f3af97 L |
5408 | }, |
5409 | ||
592a252b | 5410 | /* PREFIX_VEX_0FDA */ |
c0f3af97 | 5411 | { |
592d1631 L |
5412 | { Bad_Opcode }, |
5413 | { Bad_Opcode }, | |
6c30d220 | 5414 | { VEX_W_TABLE (VEX_W_0FDA_P_2) }, |
c0f3af97 L |
5415 | }, |
5416 | ||
592a252b | 5417 | /* PREFIX_VEX_0FDB */ |
c0f3af97 | 5418 | { |
592d1631 L |
5419 | { Bad_Opcode }, |
5420 | { Bad_Opcode }, | |
6c30d220 | 5421 | { VEX_W_TABLE (VEX_W_0FDB_P_2) }, |
c0f3af97 L |
5422 | }, |
5423 | ||
592a252b | 5424 | /* PREFIX_VEX_0FDC */ |
c0f3af97 | 5425 | { |
592d1631 L |
5426 | { Bad_Opcode }, |
5427 | { Bad_Opcode }, | |
6c30d220 | 5428 | { VEX_W_TABLE (VEX_W_0FDC_P_2) }, |
c0f3af97 L |
5429 | }, |
5430 | ||
592a252b | 5431 | /* PREFIX_VEX_0FDD */ |
c0f3af97 | 5432 | { |
592d1631 L |
5433 | { Bad_Opcode }, |
5434 | { Bad_Opcode }, | |
6c30d220 | 5435 | { VEX_W_TABLE (VEX_W_0FDD_P_2) }, |
c0f3af97 L |
5436 | }, |
5437 | ||
592a252b | 5438 | /* PREFIX_VEX_0FDE */ |
c0f3af97 | 5439 | { |
592d1631 L |
5440 | { Bad_Opcode }, |
5441 | { Bad_Opcode }, | |
6c30d220 | 5442 | { VEX_W_TABLE (VEX_W_0FDE_P_2) }, |
c0f3af97 L |
5443 | }, |
5444 | ||
592a252b | 5445 | /* PREFIX_VEX_0FDF */ |
c0f3af97 | 5446 | { |
592d1631 L |
5447 | { Bad_Opcode }, |
5448 | { Bad_Opcode }, | |
6c30d220 | 5449 | { VEX_W_TABLE (VEX_W_0FDF_P_2) }, |
c0f3af97 L |
5450 | }, |
5451 | ||
592a252b | 5452 | /* PREFIX_VEX_0FE0 */ |
c0f3af97 | 5453 | { |
592d1631 L |
5454 | { Bad_Opcode }, |
5455 | { Bad_Opcode }, | |
6c30d220 | 5456 | { VEX_W_TABLE (VEX_W_0FE0_P_2) }, |
c0f3af97 L |
5457 | }, |
5458 | ||
592a252b | 5459 | /* PREFIX_VEX_0FE1 */ |
c0f3af97 | 5460 | { |
592d1631 L |
5461 | { Bad_Opcode }, |
5462 | { Bad_Opcode }, | |
6c30d220 | 5463 | { VEX_W_TABLE (VEX_W_0FE1_P_2) }, |
c0f3af97 L |
5464 | }, |
5465 | ||
592a252b | 5466 | /* PREFIX_VEX_0FE2 */ |
c0f3af97 | 5467 | { |
592d1631 L |
5468 | { Bad_Opcode }, |
5469 | { Bad_Opcode }, | |
6c30d220 | 5470 | { VEX_W_TABLE (VEX_W_0FE2_P_2) }, |
c0f3af97 L |
5471 | }, |
5472 | ||
592a252b | 5473 | /* PREFIX_VEX_0FE3 */ |
c0f3af97 | 5474 | { |
592d1631 L |
5475 | { Bad_Opcode }, |
5476 | { Bad_Opcode }, | |
6c30d220 | 5477 | { VEX_W_TABLE (VEX_W_0FE3_P_2) }, |
c0f3af97 L |
5478 | }, |
5479 | ||
592a252b | 5480 | /* PREFIX_VEX_0FE4 */ |
c0f3af97 | 5481 | { |
592d1631 L |
5482 | { Bad_Opcode }, |
5483 | { Bad_Opcode }, | |
6c30d220 | 5484 | { VEX_W_TABLE (VEX_W_0FE4_P_2) }, |
c0f3af97 L |
5485 | }, |
5486 | ||
592a252b | 5487 | /* PREFIX_VEX_0FE5 */ |
c0f3af97 | 5488 | { |
592d1631 L |
5489 | { Bad_Opcode }, |
5490 | { Bad_Opcode }, | |
6c30d220 | 5491 | { VEX_W_TABLE (VEX_W_0FE5_P_2) }, |
c0f3af97 L |
5492 | }, |
5493 | ||
592a252b | 5494 | /* PREFIX_VEX_0FE6 */ |
c0f3af97 | 5495 | { |
592d1631 | 5496 | { Bad_Opcode }, |
592a252b L |
5497 | { VEX_W_TABLE (VEX_W_0FE6_P_1) }, |
5498 | { VEX_W_TABLE (VEX_W_0FE6_P_2) }, | |
5499 | { VEX_W_TABLE (VEX_W_0FE6_P_3) }, | |
c0f3af97 L |
5500 | }, |
5501 | ||
592a252b | 5502 | /* PREFIX_VEX_0FE7 */ |
c0f3af97 | 5503 | { |
592d1631 L |
5504 | { Bad_Opcode }, |
5505 | { Bad_Opcode }, | |
592a252b | 5506 | { MOD_TABLE (MOD_VEX_0FE7_PREFIX_2) }, |
c0f3af97 L |
5507 | }, |
5508 | ||
592a252b | 5509 | /* PREFIX_VEX_0FE8 */ |
c0f3af97 | 5510 | { |
592d1631 L |
5511 | { Bad_Opcode }, |
5512 | { Bad_Opcode }, | |
6c30d220 | 5513 | { VEX_W_TABLE (VEX_W_0FE8_P_2) }, |
c0f3af97 L |
5514 | }, |
5515 | ||
592a252b | 5516 | /* PREFIX_VEX_0FE9 */ |
c0f3af97 | 5517 | { |
592d1631 L |
5518 | { Bad_Opcode }, |
5519 | { Bad_Opcode }, | |
6c30d220 | 5520 | { VEX_W_TABLE (VEX_W_0FE9_P_2) }, |
c0f3af97 L |
5521 | }, |
5522 | ||
592a252b | 5523 | /* PREFIX_VEX_0FEA */ |
c0f3af97 | 5524 | { |
592d1631 L |
5525 | { Bad_Opcode }, |
5526 | { Bad_Opcode }, | |
6c30d220 | 5527 | { VEX_W_TABLE (VEX_W_0FEA_P_2) }, |
c0f3af97 L |
5528 | }, |
5529 | ||
592a252b | 5530 | /* PREFIX_VEX_0FEB */ |
c0f3af97 | 5531 | { |
592d1631 L |
5532 | { Bad_Opcode }, |
5533 | { Bad_Opcode }, | |
6c30d220 | 5534 | { VEX_W_TABLE (VEX_W_0FEB_P_2) }, |
c0f3af97 L |
5535 | }, |
5536 | ||
592a252b | 5537 | /* PREFIX_VEX_0FEC */ |
c0f3af97 | 5538 | { |
592d1631 L |
5539 | { Bad_Opcode }, |
5540 | { Bad_Opcode }, | |
6c30d220 | 5541 | { VEX_W_TABLE (VEX_W_0FEC_P_2) }, |
c0f3af97 L |
5542 | }, |
5543 | ||
592a252b | 5544 | /* PREFIX_VEX_0FED */ |
c0f3af97 | 5545 | { |
592d1631 L |
5546 | { Bad_Opcode }, |
5547 | { Bad_Opcode }, | |
6c30d220 | 5548 | { VEX_W_TABLE (VEX_W_0FED_P_2) }, |
c0f3af97 L |
5549 | }, |
5550 | ||
592a252b | 5551 | /* PREFIX_VEX_0FEE */ |
c0f3af97 | 5552 | { |
592d1631 L |
5553 | { Bad_Opcode }, |
5554 | { Bad_Opcode }, | |
6c30d220 | 5555 | { VEX_W_TABLE (VEX_W_0FEE_P_2) }, |
c0f3af97 L |
5556 | }, |
5557 | ||
592a252b | 5558 | /* PREFIX_VEX_0FEF */ |
c0f3af97 | 5559 | { |
592d1631 L |
5560 | { Bad_Opcode }, |
5561 | { Bad_Opcode }, | |
6c30d220 | 5562 | { VEX_W_TABLE (VEX_W_0FEF_P_2) }, |
c0f3af97 L |
5563 | }, |
5564 | ||
592a252b | 5565 | /* PREFIX_VEX_0FF0 */ |
c0f3af97 | 5566 | { |
592d1631 L |
5567 | { Bad_Opcode }, |
5568 | { Bad_Opcode }, | |
5569 | { Bad_Opcode }, | |
592a252b | 5570 | { MOD_TABLE (MOD_VEX_0FF0_PREFIX_3) }, |
c0f3af97 L |
5571 | }, |
5572 | ||
592a252b | 5573 | /* PREFIX_VEX_0FF1 */ |
c0f3af97 | 5574 | { |
592d1631 L |
5575 | { Bad_Opcode }, |
5576 | { Bad_Opcode }, | |
6c30d220 | 5577 | { VEX_W_TABLE (VEX_W_0FF1_P_2) }, |
c0f3af97 L |
5578 | }, |
5579 | ||
592a252b | 5580 | /* PREFIX_VEX_0FF2 */ |
c0f3af97 | 5581 | { |
592d1631 L |
5582 | { Bad_Opcode }, |
5583 | { Bad_Opcode }, | |
6c30d220 | 5584 | { VEX_W_TABLE (VEX_W_0FF2_P_2) }, |
c0f3af97 L |
5585 | }, |
5586 | ||
592a252b | 5587 | /* PREFIX_VEX_0FF3 */ |
c0f3af97 | 5588 | { |
592d1631 L |
5589 | { Bad_Opcode }, |
5590 | { Bad_Opcode }, | |
6c30d220 | 5591 | { VEX_W_TABLE (VEX_W_0FF3_P_2) }, |
c0f3af97 L |
5592 | }, |
5593 | ||
592a252b | 5594 | /* PREFIX_VEX_0FF4 */ |
c0f3af97 | 5595 | { |
592d1631 L |
5596 | { Bad_Opcode }, |
5597 | { Bad_Opcode }, | |
6c30d220 | 5598 | { VEX_W_TABLE (VEX_W_0FF4_P_2) }, |
c0f3af97 L |
5599 | }, |
5600 | ||
592a252b | 5601 | /* PREFIX_VEX_0FF5 */ |
c0f3af97 | 5602 | { |
592d1631 L |
5603 | { Bad_Opcode }, |
5604 | { Bad_Opcode }, | |
6c30d220 | 5605 | { VEX_W_TABLE (VEX_W_0FF5_P_2) }, |
c0f3af97 L |
5606 | }, |
5607 | ||
592a252b | 5608 | /* PREFIX_VEX_0FF6 */ |
c0f3af97 | 5609 | { |
592d1631 L |
5610 | { Bad_Opcode }, |
5611 | { Bad_Opcode }, | |
6c30d220 | 5612 | { VEX_W_TABLE (VEX_W_0FF6_P_2) }, |
c0f3af97 L |
5613 | }, |
5614 | ||
592a252b | 5615 | /* PREFIX_VEX_0FF7 */ |
c0f3af97 | 5616 | { |
592d1631 L |
5617 | { Bad_Opcode }, |
5618 | { Bad_Opcode }, | |
592a252b | 5619 | { VEX_LEN_TABLE (VEX_LEN_0FF7_P_2) }, |
c0f3af97 L |
5620 | }, |
5621 | ||
592a252b | 5622 | /* PREFIX_VEX_0FF8 */ |
c0f3af97 | 5623 | { |
592d1631 L |
5624 | { Bad_Opcode }, |
5625 | { Bad_Opcode }, | |
6c30d220 | 5626 | { VEX_W_TABLE (VEX_W_0FF8_P_2) }, |
c0f3af97 L |
5627 | }, |
5628 | ||
592a252b | 5629 | /* PREFIX_VEX_0FF9 */ |
c0f3af97 | 5630 | { |
592d1631 L |
5631 | { Bad_Opcode }, |
5632 | { Bad_Opcode }, | |
6c30d220 | 5633 | { VEX_W_TABLE (VEX_W_0FF9_P_2) }, |
c0f3af97 L |
5634 | }, |
5635 | ||
592a252b | 5636 | /* PREFIX_VEX_0FFA */ |
c0f3af97 | 5637 | { |
592d1631 L |
5638 | { Bad_Opcode }, |
5639 | { Bad_Opcode }, | |
6c30d220 | 5640 | { VEX_W_TABLE (VEX_W_0FFA_P_2) }, |
c0f3af97 L |
5641 | }, |
5642 | ||
592a252b | 5643 | /* PREFIX_VEX_0FFB */ |
c0f3af97 | 5644 | { |
592d1631 L |
5645 | { Bad_Opcode }, |
5646 | { Bad_Opcode }, | |
6c30d220 | 5647 | { VEX_W_TABLE (VEX_W_0FFB_P_2) }, |
c0f3af97 L |
5648 | }, |
5649 | ||
592a252b | 5650 | /* PREFIX_VEX_0FFC */ |
c0f3af97 | 5651 | { |
592d1631 L |
5652 | { Bad_Opcode }, |
5653 | { Bad_Opcode }, | |
6c30d220 | 5654 | { VEX_W_TABLE (VEX_W_0FFC_P_2) }, |
c0f3af97 L |
5655 | }, |
5656 | ||
592a252b | 5657 | /* PREFIX_VEX_0FFD */ |
c0f3af97 | 5658 | { |
592d1631 L |
5659 | { Bad_Opcode }, |
5660 | { Bad_Opcode }, | |
6c30d220 | 5661 | { VEX_W_TABLE (VEX_W_0FFD_P_2) }, |
c0f3af97 L |
5662 | }, |
5663 | ||
592a252b | 5664 | /* PREFIX_VEX_0FFE */ |
c0f3af97 | 5665 | { |
592d1631 L |
5666 | { Bad_Opcode }, |
5667 | { Bad_Opcode }, | |
6c30d220 | 5668 | { VEX_W_TABLE (VEX_W_0FFE_P_2) }, |
c0f3af97 L |
5669 | }, |
5670 | ||
592a252b | 5671 | /* PREFIX_VEX_0F3800 */ |
c0f3af97 | 5672 | { |
592d1631 L |
5673 | { Bad_Opcode }, |
5674 | { Bad_Opcode }, | |
6c30d220 | 5675 | { VEX_W_TABLE (VEX_W_0F3800_P_2) }, |
c0f3af97 L |
5676 | }, |
5677 | ||
592a252b | 5678 | /* PREFIX_VEX_0F3801 */ |
c0f3af97 | 5679 | { |
592d1631 L |
5680 | { Bad_Opcode }, |
5681 | { Bad_Opcode }, | |
6c30d220 | 5682 | { VEX_W_TABLE (VEX_W_0F3801_P_2) }, |
c0f3af97 L |
5683 | }, |
5684 | ||
592a252b | 5685 | /* PREFIX_VEX_0F3802 */ |
c0f3af97 | 5686 | { |
592d1631 L |
5687 | { Bad_Opcode }, |
5688 | { Bad_Opcode }, | |
6c30d220 | 5689 | { VEX_W_TABLE (VEX_W_0F3802_P_2) }, |
c0f3af97 L |
5690 | }, |
5691 | ||
592a252b | 5692 | /* PREFIX_VEX_0F3803 */ |
c0f3af97 | 5693 | { |
592d1631 L |
5694 | { Bad_Opcode }, |
5695 | { Bad_Opcode }, | |
6c30d220 | 5696 | { VEX_W_TABLE (VEX_W_0F3803_P_2) }, |
c0f3af97 L |
5697 | }, |
5698 | ||
592a252b | 5699 | /* PREFIX_VEX_0F3804 */ |
c0f3af97 | 5700 | { |
592d1631 L |
5701 | { Bad_Opcode }, |
5702 | { Bad_Opcode }, | |
6c30d220 | 5703 | { VEX_W_TABLE (VEX_W_0F3804_P_2) }, |
c0f3af97 L |
5704 | }, |
5705 | ||
592a252b | 5706 | /* PREFIX_VEX_0F3805 */ |
c0f3af97 | 5707 | { |
592d1631 L |
5708 | { Bad_Opcode }, |
5709 | { Bad_Opcode }, | |
6c30d220 | 5710 | { VEX_W_TABLE (VEX_W_0F3805_P_2) }, |
c0f3af97 L |
5711 | }, |
5712 | ||
592a252b | 5713 | /* PREFIX_VEX_0F3806 */ |
c0f3af97 | 5714 | { |
592d1631 L |
5715 | { Bad_Opcode }, |
5716 | { Bad_Opcode }, | |
6c30d220 | 5717 | { VEX_W_TABLE (VEX_W_0F3806_P_2) }, |
c0f3af97 L |
5718 | }, |
5719 | ||
592a252b | 5720 | /* PREFIX_VEX_0F3807 */ |
c0f3af97 | 5721 | { |
592d1631 L |
5722 | { Bad_Opcode }, |
5723 | { Bad_Opcode }, | |
6c30d220 | 5724 | { VEX_W_TABLE (VEX_W_0F3807_P_2) }, |
c0f3af97 L |
5725 | }, |
5726 | ||
592a252b | 5727 | /* PREFIX_VEX_0F3808 */ |
c0f3af97 | 5728 | { |
592d1631 L |
5729 | { Bad_Opcode }, |
5730 | { Bad_Opcode }, | |
6c30d220 | 5731 | { VEX_W_TABLE (VEX_W_0F3808_P_2) }, |
c0f3af97 L |
5732 | }, |
5733 | ||
592a252b | 5734 | /* PREFIX_VEX_0F3809 */ |
c0f3af97 | 5735 | { |
592d1631 L |
5736 | { Bad_Opcode }, |
5737 | { Bad_Opcode }, | |
6c30d220 | 5738 | { VEX_W_TABLE (VEX_W_0F3809_P_2) }, |
c0f3af97 L |
5739 | }, |
5740 | ||
592a252b | 5741 | /* PREFIX_VEX_0F380A */ |
c0f3af97 | 5742 | { |
592d1631 L |
5743 | { Bad_Opcode }, |
5744 | { Bad_Opcode }, | |
6c30d220 | 5745 | { VEX_W_TABLE (VEX_W_0F380A_P_2) }, |
c0f3af97 L |
5746 | }, |
5747 | ||
592a252b | 5748 | /* PREFIX_VEX_0F380B */ |
c0f3af97 | 5749 | { |
592d1631 L |
5750 | { Bad_Opcode }, |
5751 | { Bad_Opcode }, | |
6c30d220 | 5752 | { VEX_W_TABLE (VEX_W_0F380B_P_2) }, |
c0f3af97 L |
5753 | }, |
5754 | ||
592a252b | 5755 | /* PREFIX_VEX_0F380C */ |
c0f3af97 | 5756 | { |
592d1631 L |
5757 | { Bad_Opcode }, |
5758 | { Bad_Opcode }, | |
592a252b | 5759 | { VEX_W_TABLE (VEX_W_0F380C_P_2) }, |
c0f3af97 L |
5760 | }, |
5761 | ||
592a252b | 5762 | /* PREFIX_VEX_0F380D */ |
c0f3af97 | 5763 | { |
592d1631 L |
5764 | { Bad_Opcode }, |
5765 | { Bad_Opcode }, | |
592a252b | 5766 | { VEX_W_TABLE (VEX_W_0F380D_P_2) }, |
c0f3af97 L |
5767 | }, |
5768 | ||
592a252b | 5769 | /* PREFIX_VEX_0F380E */ |
c0f3af97 | 5770 | { |
592d1631 L |
5771 | { Bad_Opcode }, |
5772 | { Bad_Opcode }, | |
592a252b | 5773 | { VEX_W_TABLE (VEX_W_0F380E_P_2) }, |
c0f3af97 L |
5774 | }, |
5775 | ||
592a252b | 5776 | /* PREFIX_VEX_0F380F */ |
c0f3af97 | 5777 | { |
592d1631 L |
5778 | { Bad_Opcode }, |
5779 | { Bad_Opcode }, | |
592a252b | 5780 | { VEX_W_TABLE (VEX_W_0F380F_P_2) }, |
c0f3af97 L |
5781 | }, |
5782 | ||
592a252b | 5783 | /* PREFIX_VEX_0F3813 */ |
c7b8aa3a L |
5784 | { |
5785 | { Bad_Opcode }, | |
5786 | { Bad_Opcode }, | |
bf890a93 | 5787 | { "vcvtph2ps", { XM, EXxmmq }, 0 }, |
c7b8aa3a L |
5788 | }, |
5789 | ||
6c30d220 L |
5790 | /* PREFIX_VEX_0F3816 */ |
5791 | { | |
5792 | { Bad_Opcode }, | |
5793 | { Bad_Opcode }, | |
5794 | { VEX_LEN_TABLE (VEX_LEN_0F3816_P_2) }, | |
5795 | }, | |
5796 | ||
592a252b | 5797 | /* PREFIX_VEX_0F3817 */ |
c0f3af97 | 5798 | { |
592d1631 L |
5799 | { Bad_Opcode }, |
5800 | { Bad_Opcode }, | |
592a252b | 5801 | { VEX_W_TABLE (VEX_W_0F3817_P_2) }, |
c0f3af97 L |
5802 | }, |
5803 | ||
592a252b | 5804 | /* PREFIX_VEX_0F3818 */ |
c0f3af97 | 5805 | { |
592d1631 L |
5806 | { Bad_Opcode }, |
5807 | { Bad_Opcode }, | |
6c30d220 | 5808 | { VEX_W_TABLE (VEX_W_0F3818_P_2) }, |
c0f3af97 L |
5809 | }, |
5810 | ||
592a252b | 5811 | /* PREFIX_VEX_0F3819 */ |
c0f3af97 | 5812 | { |
592d1631 L |
5813 | { Bad_Opcode }, |
5814 | { Bad_Opcode }, | |
6c30d220 | 5815 | { VEX_LEN_TABLE (VEX_LEN_0F3819_P_2) }, |
c0f3af97 L |
5816 | }, |
5817 | ||
592a252b | 5818 | /* PREFIX_VEX_0F381A */ |
c0f3af97 | 5819 | { |
592d1631 L |
5820 | { Bad_Opcode }, |
5821 | { Bad_Opcode }, | |
592a252b | 5822 | { MOD_TABLE (MOD_VEX_0F381A_PREFIX_2) }, |
c0f3af97 L |
5823 | }, |
5824 | ||
592a252b | 5825 | /* PREFIX_VEX_0F381C */ |
c0f3af97 | 5826 | { |
592d1631 L |
5827 | { Bad_Opcode }, |
5828 | { Bad_Opcode }, | |
6c30d220 | 5829 | { VEX_W_TABLE (VEX_W_0F381C_P_2) }, |
c0f3af97 L |
5830 | }, |
5831 | ||
592a252b | 5832 | /* PREFIX_VEX_0F381D */ |
c0f3af97 | 5833 | { |
592d1631 L |
5834 | { Bad_Opcode }, |
5835 | { Bad_Opcode }, | |
6c30d220 | 5836 | { VEX_W_TABLE (VEX_W_0F381D_P_2) }, |
c0f3af97 L |
5837 | }, |
5838 | ||
592a252b | 5839 | /* PREFIX_VEX_0F381E */ |
c0f3af97 | 5840 | { |
592d1631 L |
5841 | { Bad_Opcode }, |
5842 | { Bad_Opcode }, | |
6c30d220 | 5843 | { VEX_W_TABLE (VEX_W_0F381E_P_2) }, |
c0f3af97 L |
5844 | }, |
5845 | ||
592a252b | 5846 | /* PREFIX_VEX_0F3820 */ |
c0f3af97 | 5847 | { |
592d1631 L |
5848 | { Bad_Opcode }, |
5849 | { Bad_Opcode }, | |
6c30d220 | 5850 | { VEX_W_TABLE (VEX_W_0F3820_P_2) }, |
c0f3af97 L |
5851 | }, |
5852 | ||
592a252b | 5853 | /* PREFIX_VEX_0F3821 */ |
c0f3af97 | 5854 | { |
592d1631 L |
5855 | { Bad_Opcode }, |
5856 | { Bad_Opcode }, | |
6c30d220 | 5857 | { VEX_W_TABLE (VEX_W_0F3821_P_2) }, |
c0f3af97 L |
5858 | }, |
5859 | ||
592a252b | 5860 | /* PREFIX_VEX_0F3822 */ |
c0f3af97 | 5861 | { |
592d1631 L |
5862 | { Bad_Opcode }, |
5863 | { Bad_Opcode }, | |
6c30d220 | 5864 | { VEX_W_TABLE (VEX_W_0F3822_P_2) }, |
c0f3af97 L |
5865 | }, |
5866 | ||
592a252b | 5867 | /* PREFIX_VEX_0F3823 */ |
c0f3af97 | 5868 | { |
592d1631 L |
5869 | { Bad_Opcode }, |
5870 | { Bad_Opcode }, | |
6c30d220 | 5871 | { VEX_W_TABLE (VEX_W_0F3823_P_2) }, |
c0f3af97 L |
5872 | }, |
5873 | ||
592a252b | 5874 | /* PREFIX_VEX_0F3824 */ |
c0f3af97 | 5875 | { |
592d1631 L |
5876 | { Bad_Opcode }, |
5877 | { Bad_Opcode }, | |
6c30d220 | 5878 | { VEX_W_TABLE (VEX_W_0F3824_P_2) }, |
c0f3af97 L |
5879 | }, |
5880 | ||
592a252b | 5881 | /* PREFIX_VEX_0F3825 */ |
c0f3af97 | 5882 | { |
592d1631 L |
5883 | { Bad_Opcode }, |
5884 | { Bad_Opcode }, | |
6c30d220 | 5885 | { VEX_W_TABLE (VEX_W_0F3825_P_2) }, |
c0f3af97 L |
5886 | }, |
5887 | ||
592a252b | 5888 | /* PREFIX_VEX_0F3828 */ |
c0f3af97 | 5889 | { |
592d1631 L |
5890 | { Bad_Opcode }, |
5891 | { Bad_Opcode }, | |
6c30d220 | 5892 | { VEX_W_TABLE (VEX_W_0F3828_P_2) }, |
c0f3af97 L |
5893 | }, |
5894 | ||
592a252b | 5895 | /* PREFIX_VEX_0F3829 */ |
c0f3af97 | 5896 | { |
592d1631 L |
5897 | { Bad_Opcode }, |
5898 | { Bad_Opcode }, | |
6c30d220 | 5899 | { VEX_W_TABLE (VEX_W_0F3829_P_2) }, |
c0f3af97 L |
5900 | }, |
5901 | ||
592a252b | 5902 | /* PREFIX_VEX_0F382A */ |
c0f3af97 | 5903 | { |
592d1631 L |
5904 | { Bad_Opcode }, |
5905 | { Bad_Opcode }, | |
592a252b | 5906 | { MOD_TABLE (MOD_VEX_0F382A_PREFIX_2) }, |
c0f3af97 L |
5907 | }, |
5908 | ||
592a252b | 5909 | /* PREFIX_VEX_0F382B */ |
c0f3af97 | 5910 | { |
592d1631 L |
5911 | { Bad_Opcode }, |
5912 | { Bad_Opcode }, | |
6c30d220 | 5913 | { VEX_W_TABLE (VEX_W_0F382B_P_2) }, |
c0f3af97 L |
5914 | }, |
5915 | ||
592a252b | 5916 | /* PREFIX_VEX_0F382C */ |
c0f3af97 | 5917 | { |
592d1631 L |
5918 | { Bad_Opcode }, |
5919 | { Bad_Opcode }, | |
592a252b | 5920 | { MOD_TABLE (MOD_VEX_0F382C_PREFIX_2) }, |
c0f3af97 L |
5921 | }, |
5922 | ||
592a252b | 5923 | /* PREFIX_VEX_0F382D */ |
c0f3af97 | 5924 | { |
592d1631 L |
5925 | { Bad_Opcode }, |
5926 | { Bad_Opcode }, | |
592a252b | 5927 | { MOD_TABLE (MOD_VEX_0F382D_PREFIX_2) }, |
c0f3af97 L |
5928 | }, |
5929 | ||
592a252b | 5930 | /* PREFIX_VEX_0F382E */ |
c0f3af97 | 5931 | { |
592d1631 L |
5932 | { Bad_Opcode }, |
5933 | { Bad_Opcode }, | |
592a252b | 5934 | { MOD_TABLE (MOD_VEX_0F382E_PREFIX_2) }, |
c0f3af97 L |
5935 | }, |
5936 | ||
592a252b | 5937 | /* PREFIX_VEX_0F382F */ |
c0f3af97 | 5938 | { |
592d1631 L |
5939 | { Bad_Opcode }, |
5940 | { Bad_Opcode }, | |
592a252b | 5941 | { MOD_TABLE (MOD_VEX_0F382F_PREFIX_2) }, |
c0f3af97 L |
5942 | }, |
5943 | ||
592a252b | 5944 | /* PREFIX_VEX_0F3830 */ |
c0f3af97 | 5945 | { |
592d1631 L |
5946 | { Bad_Opcode }, |
5947 | { Bad_Opcode }, | |
6c30d220 | 5948 | { VEX_W_TABLE (VEX_W_0F3830_P_2) }, |
c0f3af97 L |
5949 | }, |
5950 | ||
592a252b | 5951 | /* PREFIX_VEX_0F3831 */ |
c0f3af97 | 5952 | { |
592d1631 L |
5953 | { Bad_Opcode }, |
5954 | { Bad_Opcode }, | |
6c30d220 | 5955 | { VEX_W_TABLE (VEX_W_0F3831_P_2) }, |
c0f3af97 L |
5956 | }, |
5957 | ||
592a252b | 5958 | /* PREFIX_VEX_0F3832 */ |
c0f3af97 | 5959 | { |
592d1631 L |
5960 | { Bad_Opcode }, |
5961 | { Bad_Opcode }, | |
6c30d220 | 5962 | { VEX_W_TABLE (VEX_W_0F3832_P_2) }, |
c0f3af97 L |
5963 | }, |
5964 | ||
592a252b | 5965 | /* PREFIX_VEX_0F3833 */ |
c0f3af97 | 5966 | { |
592d1631 L |
5967 | { Bad_Opcode }, |
5968 | { Bad_Opcode }, | |
6c30d220 | 5969 | { VEX_W_TABLE (VEX_W_0F3833_P_2) }, |
c0f3af97 L |
5970 | }, |
5971 | ||
592a252b | 5972 | /* PREFIX_VEX_0F3834 */ |
c0f3af97 | 5973 | { |
592d1631 L |
5974 | { Bad_Opcode }, |
5975 | { Bad_Opcode }, | |
6c30d220 | 5976 | { VEX_W_TABLE (VEX_W_0F3834_P_2) }, |
c0f3af97 L |
5977 | }, |
5978 | ||
592a252b | 5979 | /* PREFIX_VEX_0F3835 */ |
c0f3af97 | 5980 | { |
592d1631 L |
5981 | { Bad_Opcode }, |
5982 | { Bad_Opcode }, | |
6c30d220 L |
5983 | { VEX_W_TABLE (VEX_W_0F3835_P_2) }, |
5984 | }, | |
5985 | ||
5986 | /* PREFIX_VEX_0F3836 */ | |
5987 | { | |
5988 | { Bad_Opcode }, | |
5989 | { Bad_Opcode }, | |
5990 | { VEX_LEN_TABLE (VEX_LEN_0F3836_P_2) }, | |
c0f3af97 L |
5991 | }, |
5992 | ||
592a252b | 5993 | /* PREFIX_VEX_0F3837 */ |
c0f3af97 | 5994 | { |
592d1631 L |
5995 | { Bad_Opcode }, |
5996 | { Bad_Opcode }, | |
6c30d220 | 5997 | { VEX_W_TABLE (VEX_W_0F3837_P_2) }, |
c0f3af97 L |
5998 | }, |
5999 | ||
592a252b | 6000 | /* PREFIX_VEX_0F3838 */ |
c0f3af97 | 6001 | { |
592d1631 L |
6002 | { Bad_Opcode }, |
6003 | { Bad_Opcode }, | |
6c30d220 | 6004 | { VEX_W_TABLE (VEX_W_0F3838_P_2) }, |
c0f3af97 L |
6005 | }, |
6006 | ||
592a252b | 6007 | /* PREFIX_VEX_0F3839 */ |
c0f3af97 | 6008 | { |
592d1631 L |
6009 | { Bad_Opcode }, |
6010 | { Bad_Opcode }, | |
6c30d220 | 6011 | { VEX_W_TABLE (VEX_W_0F3839_P_2) }, |
c0f3af97 L |
6012 | }, |
6013 | ||
592a252b | 6014 | /* PREFIX_VEX_0F383A */ |
c0f3af97 | 6015 | { |
592d1631 L |
6016 | { Bad_Opcode }, |
6017 | { Bad_Opcode }, | |
6c30d220 | 6018 | { VEX_W_TABLE (VEX_W_0F383A_P_2) }, |
c0f3af97 L |
6019 | }, |
6020 | ||
592a252b | 6021 | /* PREFIX_VEX_0F383B */ |
c0f3af97 | 6022 | { |
592d1631 L |
6023 | { Bad_Opcode }, |
6024 | { Bad_Opcode }, | |
6c30d220 | 6025 | { VEX_W_TABLE (VEX_W_0F383B_P_2) }, |
c0f3af97 L |
6026 | }, |
6027 | ||
592a252b | 6028 | /* PREFIX_VEX_0F383C */ |
c0f3af97 | 6029 | { |
592d1631 L |
6030 | { Bad_Opcode }, |
6031 | { Bad_Opcode }, | |
6c30d220 | 6032 | { VEX_W_TABLE (VEX_W_0F383C_P_2) }, |
c0f3af97 L |
6033 | }, |
6034 | ||
592a252b | 6035 | /* PREFIX_VEX_0F383D */ |
c0f3af97 | 6036 | { |
592d1631 L |
6037 | { Bad_Opcode }, |
6038 | { Bad_Opcode }, | |
6c30d220 | 6039 | { VEX_W_TABLE (VEX_W_0F383D_P_2) }, |
c0f3af97 L |
6040 | }, |
6041 | ||
592a252b | 6042 | /* PREFIX_VEX_0F383E */ |
c0f3af97 | 6043 | { |
592d1631 L |
6044 | { Bad_Opcode }, |
6045 | { Bad_Opcode }, | |
6c30d220 | 6046 | { VEX_W_TABLE (VEX_W_0F383E_P_2) }, |
c0f3af97 L |
6047 | }, |
6048 | ||
592a252b | 6049 | /* PREFIX_VEX_0F383F */ |
c0f3af97 | 6050 | { |
592d1631 L |
6051 | { Bad_Opcode }, |
6052 | { Bad_Opcode }, | |
6c30d220 | 6053 | { VEX_W_TABLE (VEX_W_0F383F_P_2) }, |
c0f3af97 L |
6054 | }, |
6055 | ||
592a252b | 6056 | /* PREFIX_VEX_0F3840 */ |
c0f3af97 | 6057 | { |
592d1631 L |
6058 | { Bad_Opcode }, |
6059 | { Bad_Opcode }, | |
6c30d220 | 6060 | { VEX_W_TABLE (VEX_W_0F3840_P_2) }, |
c0f3af97 L |
6061 | }, |
6062 | ||
592a252b | 6063 | /* PREFIX_VEX_0F3841 */ |
c0f3af97 | 6064 | { |
592d1631 L |
6065 | { Bad_Opcode }, |
6066 | { Bad_Opcode }, | |
592a252b | 6067 | { VEX_LEN_TABLE (VEX_LEN_0F3841_P_2) }, |
c0f3af97 L |
6068 | }, |
6069 | ||
6c30d220 L |
6070 | /* PREFIX_VEX_0F3845 */ |
6071 | { | |
6072 | { Bad_Opcode }, | |
6073 | { Bad_Opcode }, | |
bf890a93 | 6074 | { "vpsrlv%LW", { XM, Vex, EXx }, 0 }, |
6c30d220 L |
6075 | }, |
6076 | ||
6077 | /* PREFIX_VEX_0F3846 */ | |
6078 | { | |
6079 | { Bad_Opcode }, | |
6080 | { Bad_Opcode }, | |
6081 | { VEX_W_TABLE (VEX_W_0F3846_P_2) }, | |
6082 | }, | |
6083 | ||
6084 | /* PREFIX_VEX_0F3847 */ | |
6085 | { | |
6086 | { Bad_Opcode }, | |
6087 | { Bad_Opcode }, | |
bf890a93 | 6088 | { "vpsllv%LW", { XM, Vex, EXx }, 0 }, |
6c30d220 L |
6089 | }, |
6090 | ||
6091 | /* PREFIX_VEX_0F3858 */ | |
6092 | { | |
6093 | { Bad_Opcode }, | |
6094 | { Bad_Opcode }, | |
6095 | { VEX_W_TABLE (VEX_W_0F3858_P_2) }, | |
6096 | }, | |
6097 | ||
6098 | /* PREFIX_VEX_0F3859 */ | |
6099 | { | |
6100 | { Bad_Opcode }, | |
6101 | { Bad_Opcode }, | |
6102 | { VEX_W_TABLE (VEX_W_0F3859_P_2) }, | |
6103 | }, | |
6104 | ||
6105 | /* PREFIX_VEX_0F385A */ | |
6106 | { | |
6107 | { Bad_Opcode }, | |
6108 | { Bad_Opcode }, | |
6109 | { MOD_TABLE (MOD_VEX_0F385A_PREFIX_2) }, | |
6110 | }, | |
6111 | ||
6112 | /* PREFIX_VEX_0F3878 */ | |
6113 | { | |
6114 | { Bad_Opcode }, | |
6115 | { Bad_Opcode }, | |
6116 | { VEX_W_TABLE (VEX_W_0F3878_P_2) }, | |
6117 | }, | |
6118 | ||
6119 | /* PREFIX_VEX_0F3879 */ | |
6120 | { | |
6121 | { Bad_Opcode }, | |
6122 | { Bad_Opcode }, | |
6123 | { VEX_W_TABLE (VEX_W_0F3879_P_2) }, | |
6124 | }, | |
6125 | ||
6126 | /* PREFIX_VEX_0F388C */ | |
6127 | { | |
6128 | { Bad_Opcode }, | |
6129 | { Bad_Opcode }, | |
f7002f42 | 6130 | { MOD_TABLE (MOD_VEX_0F388C_PREFIX_2) }, |
6c30d220 L |
6131 | }, |
6132 | ||
6133 | /* PREFIX_VEX_0F388E */ | |
6134 | { | |
6135 | { Bad_Opcode }, | |
6136 | { Bad_Opcode }, | |
f7002f42 | 6137 | { MOD_TABLE (MOD_VEX_0F388E_PREFIX_2) }, |
6c30d220 L |
6138 | }, |
6139 | ||
6140 | /* PREFIX_VEX_0F3890 */ | |
6141 | { | |
6142 | { Bad_Opcode }, | |
6143 | { Bad_Opcode }, | |
bf890a93 | 6144 | { "vpgatherd%LW", { XM, MVexVSIBDWpX, Vex }, 0 }, |
6c30d220 L |
6145 | }, |
6146 | ||
6147 | /* PREFIX_VEX_0F3891 */ | |
6148 | { | |
6149 | { Bad_Opcode }, | |
6150 | { Bad_Opcode }, | |
bf890a93 | 6151 | { "vpgatherq%LW", { XMGatherQ, MVexVSIBQWpX, VexGatherQ }, 0 }, |
6c30d220 L |
6152 | }, |
6153 | ||
6154 | /* PREFIX_VEX_0F3892 */ | |
6155 | { | |
6156 | { Bad_Opcode }, | |
6157 | { Bad_Opcode }, | |
bf890a93 | 6158 | { "vgatherdp%XW", { XM, MVexVSIBDWpX, Vex }, 0 }, |
6c30d220 L |
6159 | }, |
6160 | ||
6161 | /* PREFIX_VEX_0F3893 */ | |
6162 | { | |
6163 | { Bad_Opcode }, | |
6164 | { Bad_Opcode }, | |
bf890a93 | 6165 | { "vgatherqp%XW", { XMGatherQ, MVexVSIBQWpX, VexGatherQ }, 0 }, |
6c30d220 L |
6166 | }, |
6167 | ||
592a252b | 6168 | /* PREFIX_VEX_0F3896 */ |
a5ff0eb2 | 6169 | { |
592d1631 L |
6170 | { Bad_Opcode }, |
6171 | { Bad_Opcode }, | |
bf890a93 | 6172 | { "vfmaddsub132p%XW", { XM, Vex, EXx }, 0 }, |
a5ff0eb2 L |
6173 | }, |
6174 | ||
592a252b | 6175 | /* PREFIX_VEX_0F3897 */ |
a5ff0eb2 | 6176 | { |
592d1631 L |
6177 | { Bad_Opcode }, |
6178 | { Bad_Opcode }, | |
bf890a93 | 6179 | { "vfmsubadd132p%XW", { XM, Vex, EXx }, 0 }, |
a5ff0eb2 L |
6180 | }, |
6181 | ||
592a252b | 6182 | /* PREFIX_VEX_0F3898 */ |
a5ff0eb2 | 6183 | { |
592d1631 L |
6184 | { Bad_Opcode }, |
6185 | { Bad_Opcode }, | |
bf890a93 | 6186 | { "vfmadd132p%XW", { XM, Vex, EXx }, 0 }, |
a5ff0eb2 L |
6187 | }, |
6188 | ||
592a252b | 6189 | /* PREFIX_VEX_0F3899 */ |
a5ff0eb2 | 6190 | { |
592d1631 L |
6191 | { Bad_Opcode }, |
6192 | { Bad_Opcode }, | |
bf890a93 | 6193 | { "vfmadd132s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
a5ff0eb2 L |
6194 | }, |
6195 | ||
592a252b | 6196 | /* PREFIX_VEX_0F389A */ |
a5ff0eb2 | 6197 | { |
592d1631 L |
6198 | { Bad_Opcode }, |
6199 | { Bad_Opcode }, | |
bf890a93 | 6200 | { "vfmsub132p%XW", { XM, Vex, EXx }, 0 }, |
a5ff0eb2 L |
6201 | }, |
6202 | ||
592a252b | 6203 | /* PREFIX_VEX_0F389B */ |
c0f3af97 | 6204 | { |
592d1631 L |
6205 | { Bad_Opcode }, |
6206 | { Bad_Opcode }, | |
bf890a93 | 6207 | { "vfmsub132s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6208 | }, |
6209 | ||
592a252b | 6210 | /* PREFIX_VEX_0F389C */ |
c0f3af97 | 6211 | { |
592d1631 L |
6212 | { Bad_Opcode }, |
6213 | { Bad_Opcode }, | |
bf890a93 | 6214 | { "vfnmadd132p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6215 | }, |
6216 | ||
592a252b | 6217 | /* PREFIX_VEX_0F389D */ |
c0f3af97 | 6218 | { |
592d1631 L |
6219 | { Bad_Opcode }, |
6220 | { Bad_Opcode }, | |
bf890a93 | 6221 | { "vfnmadd132s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6222 | }, |
6223 | ||
592a252b | 6224 | /* PREFIX_VEX_0F389E */ |
c0f3af97 | 6225 | { |
592d1631 L |
6226 | { Bad_Opcode }, |
6227 | { Bad_Opcode }, | |
bf890a93 | 6228 | { "vfnmsub132p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6229 | }, |
6230 | ||
592a252b | 6231 | /* PREFIX_VEX_0F389F */ |
c0f3af97 | 6232 | { |
592d1631 L |
6233 | { Bad_Opcode }, |
6234 | { Bad_Opcode }, | |
bf890a93 | 6235 | { "vfnmsub132s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6236 | }, |
6237 | ||
592a252b | 6238 | /* PREFIX_VEX_0F38A6 */ |
c0f3af97 | 6239 | { |
592d1631 L |
6240 | { Bad_Opcode }, |
6241 | { Bad_Opcode }, | |
bf890a93 | 6242 | { "vfmaddsub213p%XW", { XM, Vex, EXx }, 0 }, |
592d1631 | 6243 | { Bad_Opcode }, |
c0f3af97 L |
6244 | }, |
6245 | ||
592a252b | 6246 | /* PREFIX_VEX_0F38A7 */ |
c0f3af97 | 6247 | { |
592d1631 L |
6248 | { Bad_Opcode }, |
6249 | { Bad_Opcode }, | |
bf890a93 | 6250 | { "vfmsubadd213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6251 | }, |
6252 | ||
592a252b | 6253 | /* PREFIX_VEX_0F38A8 */ |
c0f3af97 | 6254 | { |
592d1631 L |
6255 | { Bad_Opcode }, |
6256 | { Bad_Opcode }, | |
bf890a93 | 6257 | { "vfmadd213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6258 | }, |
6259 | ||
592a252b | 6260 | /* PREFIX_VEX_0F38A9 */ |
c0f3af97 | 6261 | { |
592d1631 L |
6262 | { Bad_Opcode }, |
6263 | { Bad_Opcode }, | |
bf890a93 | 6264 | { "vfmadd213s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6265 | }, |
6266 | ||
592a252b | 6267 | /* PREFIX_VEX_0F38AA */ |
c0f3af97 | 6268 | { |
592d1631 L |
6269 | { Bad_Opcode }, |
6270 | { Bad_Opcode }, | |
bf890a93 | 6271 | { "vfmsub213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6272 | }, |
6273 | ||
592a252b | 6274 | /* PREFIX_VEX_0F38AB */ |
c0f3af97 | 6275 | { |
592d1631 L |
6276 | { Bad_Opcode }, |
6277 | { Bad_Opcode }, | |
bf890a93 | 6278 | { "vfmsub213s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6279 | }, |
6280 | ||
592a252b | 6281 | /* PREFIX_VEX_0F38AC */ |
c0f3af97 | 6282 | { |
592d1631 L |
6283 | { Bad_Opcode }, |
6284 | { Bad_Opcode }, | |
bf890a93 | 6285 | { "vfnmadd213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6286 | }, |
6287 | ||
592a252b | 6288 | /* PREFIX_VEX_0F38AD */ |
c0f3af97 | 6289 | { |
592d1631 L |
6290 | { Bad_Opcode }, |
6291 | { Bad_Opcode }, | |
bf890a93 | 6292 | { "vfnmadd213s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6293 | }, |
6294 | ||
592a252b | 6295 | /* PREFIX_VEX_0F38AE */ |
c0f3af97 | 6296 | { |
592d1631 L |
6297 | { Bad_Opcode }, |
6298 | { Bad_Opcode }, | |
bf890a93 | 6299 | { "vfnmsub213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6300 | }, |
6301 | ||
592a252b | 6302 | /* PREFIX_VEX_0F38AF */ |
c0f3af97 | 6303 | { |
592d1631 L |
6304 | { Bad_Opcode }, |
6305 | { Bad_Opcode }, | |
bf890a93 | 6306 | { "vfnmsub213s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6307 | }, |
6308 | ||
592a252b | 6309 | /* PREFIX_VEX_0F38B6 */ |
c0f3af97 | 6310 | { |
592d1631 L |
6311 | { Bad_Opcode }, |
6312 | { Bad_Opcode }, | |
bf890a93 | 6313 | { "vfmaddsub231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6314 | }, |
6315 | ||
592a252b | 6316 | /* PREFIX_VEX_0F38B7 */ |
c0f3af97 | 6317 | { |
592d1631 L |
6318 | { Bad_Opcode }, |
6319 | { Bad_Opcode }, | |
bf890a93 | 6320 | { "vfmsubadd231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6321 | }, |
6322 | ||
592a252b | 6323 | /* PREFIX_VEX_0F38B8 */ |
c0f3af97 | 6324 | { |
592d1631 L |
6325 | { Bad_Opcode }, |
6326 | { Bad_Opcode }, | |
bf890a93 | 6327 | { "vfmadd231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6328 | }, |
6329 | ||
592a252b | 6330 | /* PREFIX_VEX_0F38B9 */ |
c0f3af97 | 6331 | { |
592d1631 L |
6332 | { Bad_Opcode }, |
6333 | { Bad_Opcode }, | |
bf890a93 | 6334 | { "vfmadd231s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6335 | }, |
6336 | ||
592a252b | 6337 | /* PREFIX_VEX_0F38BA */ |
c0f3af97 | 6338 | { |
592d1631 L |
6339 | { Bad_Opcode }, |
6340 | { Bad_Opcode }, | |
bf890a93 | 6341 | { "vfmsub231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6342 | }, |
6343 | ||
592a252b | 6344 | /* PREFIX_VEX_0F38BB */ |
c0f3af97 | 6345 | { |
592d1631 L |
6346 | { Bad_Opcode }, |
6347 | { Bad_Opcode }, | |
bf890a93 | 6348 | { "vfmsub231s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6349 | }, |
6350 | ||
592a252b | 6351 | /* PREFIX_VEX_0F38BC */ |
c0f3af97 | 6352 | { |
592d1631 L |
6353 | { Bad_Opcode }, |
6354 | { Bad_Opcode }, | |
bf890a93 | 6355 | { "vfnmadd231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6356 | }, |
6357 | ||
592a252b | 6358 | /* PREFIX_VEX_0F38BD */ |
c0f3af97 | 6359 | { |
592d1631 L |
6360 | { Bad_Opcode }, |
6361 | { Bad_Opcode }, | |
bf890a93 | 6362 | { "vfnmadd231s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6363 | }, |
6364 | ||
592a252b | 6365 | /* PREFIX_VEX_0F38BE */ |
c0f3af97 | 6366 | { |
592d1631 L |
6367 | { Bad_Opcode }, |
6368 | { Bad_Opcode }, | |
bf890a93 | 6369 | { "vfnmsub231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6370 | }, |
6371 | ||
592a252b | 6372 | /* PREFIX_VEX_0F38BF */ |
c0f3af97 | 6373 | { |
592d1631 L |
6374 | { Bad_Opcode }, |
6375 | { Bad_Opcode }, | |
bf890a93 | 6376 | { "vfnmsub231s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6377 | }, |
6378 | ||
48521003 IT |
6379 | /* PREFIX_VEX_0F38CF */ |
6380 | { | |
6381 | { Bad_Opcode }, | |
6382 | { Bad_Opcode }, | |
6383 | { VEX_W_TABLE (VEX_W_0F38CF_P_2) }, | |
6384 | }, | |
6385 | ||
592a252b | 6386 | /* PREFIX_VEX_0F38DB */ |
c0f3af97 | 6387 | { |
592d1631 L |
6388 | { Bad_Opcode }, |
6389 | { Bad_Opcode }, | |
592a252b | 6390 | { VEX_LEN_TABLE (VEX_LEN_0F38DB_P_2) }, |
c0f3af97 L |
6391 | }, |
6392 | ||
592a252b | 6393 | /* PREFIX_VEX_0F38DC */ |
c0f3af97 | 6394 | { |
592d1631 L |
6395 | { Bad_Opcode }, |
6396 | { Bad_Opcode }, | |
8dcf1fad | 6397 | { "vaesenc", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6398 | }, |
6399 | ||
592a252b | 6400 | /* PREFIX_VEX_0F38DD */ |
c0f3af97 | 6401 | { |
592d1631 L |
6402 | { Bad_Opcode }, |
6403 | { Bad_Opcode }, | |
8dcf1fad | 6404 | { "vaesenclast", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6405 | }, |
6406 | ||
592a252b | 6407 | /* PREFIX_VEX_0F38DE */ |
c0f3af97 | 6408 | { |
592d1631 L |
6409 | { Bad_Opcode }, |
6410 | { Bad_Opcode }, | |
8dcf1fad | 6411 | { "vaesdec", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6412 | }, |
6413 | ||
592a252b | 6414 | /* PREFIX_VEX_0F38DF */ |
c0f3af97 | 6415 | { |
592d1631 L |
6416 | { Bad_Opcode }, |
6417 | { Bad_Opcode }, | |
8dcf1fad | 6418 | { "vaesdeclast", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6419 | }, |
6420 | ||
f12dc422 L |
6421 | /* PREFIX_VEX_0F38F2 */ |
6422 | { | |
6423 | { VEX_LEN_TABLE (VEX_LEN_0F38F2_P_0) }, | |
6424 | }, | |
6425 | ||
6426 | /* PREFIX_VEX_0F38F3_REG_1 */ | |
6427 | { | |
6428 | { VEX_LEN_TABLE (VEX_LEN_0F38F3_R_1_P_0) }, | |
6429 | }, | |
6430 | ||
6431 | /* PREFIX_VEX_0F38F3_REG_2 */ | |
6432 | { | |
6433 | { VEX_LEN_TABLE (VEX_LEN_0F38F3_R_2_P_0) }, | |
6434 | }, | |
6435 | ||
6436 | /* PREFIX_VEX_0F38F3_REG_3 */ | |
6437 | { | |
6438 | { VEX_LEN_TABLE (VEX_LEN_0F38F3_R_3_P_0) }, | |
6439 | }, | |
6440 | ||
6c30d220 L |
6441 | /* PREFIX_VEX_0F38F5 */ |
6442 | { | |
6443 | { VEX_LEN_TABLE (VEX_LEN_0F38F5_P_0) }, | |
6444 | { VEX_LEN_TABLE (VEX_LEN_0F38F5_P_1) }, | |
6445 | { Bad_Opcode }, | |
6446 | { VEX_LEN_TABLE (VEX_LEN_0F38F5_P_3) }, | |
6447 | }, | |
6448 | ||
6449 | /* PREFIX_VEX_0F38F6 */ | |
6450 | { | |
6451 | { Bad_Opcode }, | |
6452 | { Bad_Opcode }, | |
6453 | { Bad_Opcode }, | |
6454 | { VEX_LEN_TABLE (VEX_LEN_0F38F6_P_3) }, | |
6455 | }, | |
6456 | ||
f12dc422 L |
6457 | /* PREFIX_VEX_0F38F7 */ |
6458 | { | |
6459 | { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_0) }, | |
6c30d220 L |
6460 | { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_1) }, |
6461 | { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_2) }, | |
6462 | { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_3) }, | |
6463 | }, | |
6464 | ||
6465 | /* PREFIX_VEX_0F3A00 */ | |
6466 | { | |
6467 | { Bad_Opcode }, | |
6468 | { Bad_Opcode }, | |
6469 | { VEX_LEN_TABLE (VEX_LEN_0F3A00_P_2) }, | |
6470 | }, | |
6471 | ||
6472 | /* PREFIX_VEX_0F3A01 */ | |
6473 | { | |
6474 | { Bad_Opcode }, | |
6475 | { Bad_Opcode }, | |
6476 | { VEX_LEN_TABLE (VEX_LEN_0F3A01_P_2) }, | |
6477 | }, | |
6478 | ||
6479 | /* PREFIX_VEX_0F3A02 */ | |
6480 | { | |
6481 | { Bad_Opcode }, | |
6482 | { Bad_Opcode }, | |
6483 | { VEX_W_TABLE (VEX_W_0F3A02_P_2) }, | |
f12dc422 L |
6484 | }, |
6485 | ||
592a252b | 6486 | /* PREFIX_VEX_0F3A04 */ |
c0f3af97 | 6487 | { |
592d1631 L |
6488 | { Bad_Opcode }, |
6489 | { Bad_Opcode }, | |
592a252b | 6490 | { VEX_W_TABLE (VEX_W_0F3A04_P_2) }, |
c0f3af97 L |
6491 | }, |
6492 | ||
592a252b | 6493 | /* PREFIX_VEX_0F3A05 */ |
c0f3af97 | 6494 | { |
592d1631 L |
6495 | { Bad_Opcode }, |
6496 | { Bad_Opcode }, | |
592a252b | 6497 | { VEX_W_TABLE (VEX_W_0F3A05_P_2) }, |
c0f3af97 L |
6498 | }, |
6499 | ||
592a252b | 6500 | /* PREFIX_VEX_0F3A06 */ |
c0f3af97 | 6501 | { |
592d1631 L |
6502 | { Bad_Opcode }, |
6503 | { Bad_Opcode }, | |
592a252b | 6504 | { VEX_LEN_TABLE (VEX_LEN_0F3A06_P_2) }, |
c0f3af97 L |
6505 | }, |
6506 | ||
592a252b | 6507 | /* PREFIX_VEX_0F3A08 */ |
c0f3af97 | 6508 | { |
592d1631 L |
6509 | { Bad_Opcode }, |
6510 | { Bad_Opcode }, | |
592a252b | 6511 | { VEX_W_TABLE (VEX_W_0F3A08_P_2) }, |
c0f3af97 L |
6512 | }, |
6513 | ||
592a252b | 6514 | /* PREFIX_VEX_0F3A09 */ |
c0f3af97 | 6515 | { |
592d1631 L |
6516 | { Bad_Opcode }, |
6517 | { Bad_Opcode }, | |
592a252b | 6518 | { VEX_W_TABLE (VEX_W_0F3A09_P_2) }, |
c0f3af97 L |
6519 | }, |
6520 | ||
592a252b | 6521 | /* PREFIX_VEX_0F3A0A */ |
c0f3af97 | 6522 | { |
592d1631 L |
6523 | { Bad_Opcode }, |
6524 | { Bad_Opcode }, | |
592a252b | 6525 | { VEX_LEN_TABLE (VEX_LEN_0F3A0A_P_2) }, |
0bfee649 L |
6526 | }, |
6527 | ||
592a252b | 6528 | /* PREFIX_VEX_0F3A0B */ |
0bfee649 | 6529 | { |
592d1631 L |
6530 | { Bad_Opcode }, |
6531 | { Bad_Opcode }, | |
592a252b | 6532 | { VEX_LEN_TABLE (VEX_LEN_0F3A0B_P_2) }, |
0bfee649 L |
6533 | }, |
6534 | ||
592a252b | 6535 | /* PREFIX_VEX_0F3A0C */ |
0bfee649 | 6536 | { |
592d1631 L |
6537 | { Bad_Opcode }, |
6538 | { Bad_Opcode }, | |
592a252b | 6539 | { VEX_W_TABLE (VEX_W_0F3A0C_P_2) }, |
0bfee649 L |
6540 | }, |
6541 | ||
592a252b | 6542 | /* PREFIX_VEX_0F3A0D */ |
0bfee649 | 6543 | { |
592d1631 L |
6544 | { Bad_Opcode }, |
6545 | { Bad_Opcode }, | |
592a252b | 6546 | { VEX_W_TABLE (VEX_W_0F3A0D_P_2) }, |
c0f3af97 L |
6547 | }, |
6548 | ||
592a252b | 6549 | /* PREFIX_VEX_0F3A0E */ |
0bfee649 | 6550 | { |
592d1631 L |
6551 | { Bad_Opcode }, |
6552 | { Bad_Opcode }, | |
6c30d220 | 6553 | { VEX_W_TABLE (VEX_W_0F3A0E_P_2) }, |
0bfee649 L |
6554 | }, |
6555 | ||
592a252b | 6556 | /* PREFIX_VEX_0F3A0F */ |
0bfee649 | 6557 | { |
592d1631 L |
6558 | { Bad_Opcode }, |
6559 | { Bad_Opcode }, | |
6c30d220 | 6560 | { VEX_W_TABLE (VEX_W_0F3A0F_P_2) }, |
0bfee649 L |
6561 | }, |
6562 | ||
592a252b | 6563 | /* PREFIX_VEX_0F3A14 */ |
0bfee649 | 6564 | { |
592d1631 L |
6565 | { Bad_Opcode }, |
6566 | { Bad_Opcode }, | |
592a252b | 6567 | { VEX_LEN_TABLE (VEX_LEN_0F3A14_P_2) }, |
0bfee649 L |
6568 | }, |
6569 | ||
592a252b | 6570 | /* PREFIX_VEX_0F3A15 */ |
0bfee649 | 6571 | { |
592d1631 L |
6572 | { Bad_Opcode }, |
6573 | { Bad_Opcode }, | |
592a252b | 6574 | { VEX_LEN_TABLE (VEX_LEN_0F3A15_P_2) }, |
0bfee649 L |
6575 | }, |
6576 | ||
592a252b | 6577 | /* PREFIX_VEX_0F3A16 */ |
c0f3af97 | 6578 | { |
592d1631 L |
6579 | { Bad_Opcode }, |
6580 | { Bad_Opcode }, | |
592a252b | 6581 | { VEX_LEN_TABLE (VEX_LEN_0F3A16_P_2) }, |
c0f3af97 L |
6582 | }, |
6583 | ||
592a252b | 6584 | /* PREFIX_VEX_0F3A17 */ |
c0f3af97 | 6585 | { |
592d1631 L |
6586 | { Bad_Opcode }, |
6587 | { Bad_Opcode }, | |
592a252b | 6588 | { VEX_LEN_TABLE (VEX_LEN_0F3A17_P_2) }, |
c0f3af97 L |
6589 | }, |
6590 | ||
592a252b | 6591 | /* PREFIX_VEX_0F3A18 */ |
c0f3af97 | 6592 | { |
592d1631 L |
6593 | { Bad_Opcode }, |
6594 | { Bad_Opcode }, | |
592a252b | 6595 | { VEX_LEN_TABLE (VEX_LEN_0F3A18_P_2) }, |
c0f3af97 L |
6596 | }, |
6597 | ||
592a252b | 6598 | /* PREFIX_VEX_0F3A19 */ |
c0f3af97 | 6599 | { |
592d1631 L |
6600 | { Bad_Opcode }, |
6601 | { Bad_Opcode }, | |
592a252b | 6602 | { VEX_LEN_TABLE (VEX_LEN_0F3A19_P_2) }, |
c0f3af97 L |
6603 | }, |
6604 | ||
592a252b | 6605 | /* PREFIX_VEX_0F3A1D */ |
c7b8aa3a L |
6606 | { |
6607 | { Bad_Opcode }, | |
6608 | { Bad_Opcode }, | |
bf890a93 | 6609 | { "vcvtps2ph", { EXxmmq, XM, Ib }, 0 }, |
c7b8aa3a L |
6610 | }, |
6611 | ||
592a252b | 6612 | /* PREFIX_VEX_0F3A20 */ |
c0f3af97 | 6613 | { |
592d1631 L |
6614 | { Bad_Opcode }, |
6615 | { Bad_Opcode }, | |
592a252b | 6616 | { VEX_LEN_TABLE (VEX_LEN_0F3A20_P_2) }, |
c0f3af97 L |
6617 | }, |
6618 | ||
592a252b | 6619 | /* PREFIX_VEX_0F3A21 */ |
c0f3af97 | 6620 | { |
592d1631 L |
6621 | { Bad_Opcode }, |
6622 | { Bad_Opcode }, | |
592a252b | 6623 | { VEX_LEN_TABLE (VEX_LEN_0F3A21_P_2) }, |
c0f3af97 L |
6624 | }, |
6625 | ||
592a252b | 6626 | /* PREFIX_VEX_0F3A22 */ |
0bfee649 | 6627 | { |
592d1631 L |
6628 | { Bad_Opcode }, |
6629 | { Bad_Opcode }, | |
592a252b | 6630 | { VEX_LEN_TABLE (VEX_LEN_0F3A22_P_2) }, |
0bfee649 L |
6631 | }, |
6632 | ||
43234a1e L |
6633 | /* PREFIX_VEX_0F3A30 */ |
6634 | { | |
6635 | { Bad_Opcode }, | |
6636 | { Bad_Opcode }, | |
6637 | { VEX_LEN_TABLE (VEX_LEN_0F3A30_P_2) }, | |
6638 | }, | |
6639 | ||
1ba585e8 IT |
6640 | /* PREFIX_VEX_0F3A31 */ |
6641 | { | |
6642 | { Bad_Opcode }, | |
6643 | { Bad_Opcode }, | |
6644 | { VEX_LEN_TABLE (VEX_LEN_0F3A31_P_2) }, | |
6645 | }, | |
6646 | ||
43234a1e L |
6647 | /* PREFIX_VEX_0F3A32 */ |
6648 | { | |
6649 | { Bad_Opcode }, | |
6650 | { Bad_Opcode }, | |
6651 | { VEX_LEN_TABLE (VEX_LEN_0F3A32_P_2) }, | |
6652 | }, | |
6653 | ||
1ba585e8 IT |
6654 | /* PREFIX_VEX_0F3A33 */ |
6655 | { | |
6656 | { Bad_Opcode }, | |
6657 | { Bad_Opcode }, | |
6658 | { VEX_LEN_TABLE (VEX_LEN_0F3A33_P_2) }, | |
6659 | }, | |
6660 | ||
6c30d220 L |
6661 | /* PREFIX_VEX_0F3A38 */ |
6662 | { | |
6663 | { Bad_Opcode }, | |
6664 | { Bad_Opcode }, | |
6665 | { VEX_LEN_TABLE (VEX_LEN_0F3A38_P_2) }, | |
6666 | }, | |
6667 | ||
6668 | /* PREFIX_VEX_0F3A39 */ | |
6669 | { | |
6670 | { Bad_Opcode }, | |
6671 | { Bad_Opcode }, | |
6672 | { VEX_LEN_TABLE (VEX_LEN_0F3A39_P_2) }, | |
6673 | }, | |
6674 | ||
592a252b | 6675 | /* PREFIX_VEX_0F3A40 */ |
c0f3af97 | 6676 | { |
592d1631 L |
6677 | { Bad_Opcode }, |
6678 | { Bad_Opcode }, | |
592a252b | 6679 | { VEX_W_TABLE (VEX_W_0F3A40_P_2) }, |
c0f3af97 L |
6680 | }, |
6681 | ||
592a252b | 6682 | /* PREFIX_VEX_0F3A41 */ |
c0f3af97 | 6683 | { |
592d1631 L |
6684 | { Bad_Opcode }, |
6685 | { Bad_Opcode }, | |
592a252b | 6686 | { VEX_LEN_TABLE (VEX_LEN_0F3A41_P_2) }, |
c0f3af97 L |
6687 | }, |
6688 | ||
592a252b | 6689 | /* PREFIX_VEX_0F3A42 */ |
c0f3af97 | 6690 | { |
592d1631 L |
6691 | { Bad_Opcode }, |
6692 | { Bad_Opcode }, | |
6c30d220 | 6693 | { VEX_W_TABLE (VEX_W_0F3A42_P_2) }, |
c0f3af97 L |
6694 | }, |
6695 | ||
592a252b | 6696 | /* PREFIX_VEX_0F3A44 */ |
ce2f5b3c | 6697 | { |
592d1631 L |
6698 | { Bad_Opcode }, |
6699 | { Bad_Opcode }, | |
ff1982d5 | 6700 | { "vpclmulqdq", { XM, Vex, EXx, PCLMUL }, 0 }, |
ce2f5b3c L |
6701 | }, |
6702 | ||
6c30d220 L |
6703 | /* PREFIX_VEX_0F3A46 */ |
6704 | { | |
6705 | { Bad_Opcode }, | |
6706 | { Bad_Opcode }, | |
6707 | { VEX_LEN_TABLE (VEX_LEN_0F3A46_P_2) }, | |
6708 | }, | |
6709 | ||
592a252b | 6710 | /* PREFIX_VEX_0F3A48 */ |
a683cc34 SP |
6711 | { |
6712 | { Bad_Opcode }, | |
6713 | { Bad_Opcode }, | |
592a252b | 6714 | { VEX_W_TABLE (VEX_W_0F3A48_P_2) }, |
a683cc34 SP |
6715 | }, |
6716 | ||
592a252b | 6717 | /* PREFIX_VEX_0F3A49 */ |
a683cc34 SP |
6718 | { |
6719 | { Bad_Opcode }, | |
6720 | { Bad_Opcode }, | |
592a252b | 6721 | { VEX_W_TABLE (VEX_W_0F3A49_P_2) }, |
a683cc34 SP |
6722 | }, |
6723 | ||
592a252b | 6724 | /* PREFIX_VEX_0F3A4A */ |
c0f3af97 | 6725 | { |
592d1631 L |
6726 | { Bad_Opcode }, |
6727 | { Bad_Opcode }, | |
592a252b | 6728 | { VEX_W_TABLE (VEX_W_0F3A4A_P_2) }, |
c0f3af97 L |
6729 | }, |
6730 | ||
592a252b | 6731 | /* PREFIX_VEX_0F3A4B */ |
c0f3af97 | 6732 | { |
592d1631 L |
6733 | { Bad_Opcode }, |
6734 | { Bad_Opcode }, | |
592a252b | 6735 | { VEX_W_TABLE (VEX_W_0F3A4B_P_2) }, |
c0f3af97 L |
6736 | }, |
6737 | ||
592a252b | 6738 | /* PREFIX_VEX_0F3A4C */ |
c0f3af97 | 6739 | { |
592d1631 L |
6740 | { Bad_Opcode }, |
6741 | { Bad_Opcode }, | |
6c30d220 | 6742 | { VEX_W_TABLE (VEX_W_0F3A4C_P_2) }, |
c0f3af97 L |
6743 | }, |
6744 | ||
592a252b | 6745 | /* PREFIX_VEX_0F3A5C */ |
922d8de8 | 6746 | { |
592d1631 L |
6747 | { Bad_Opcode }, |
6748 | { Bad_Opcode }, | |
3a2430e0 | 6749 | { "vfmaddsubps", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6750 | }, |
6751 | ||
592a252b | 6752 | /* PREFIX_VEX_0F3A5D */ |
922d8de8 | 6753 | { |
592d1631 L |
6754 | { Bad_Opcode }, |
6755 | { Bad_Opcode }, | |
3a2430e0 | 6756 | { "vfmaddsubpd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6757 | }, |
6758 | ||
592a252b | 6759 | /* PREFIX_VEX_0F3A5E */ |
922d8de8 | 6760 | { |
592d1631 L |
6761 | { Bad_Opcode }, |
6762 | { Bad_Opcode }, | |
3a2430e0 | 6763 | { "vfmsubaddps", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6764 | }, |
6765 | ||
592a252b | 6766 | /* PREFIX_VEX_0F3A5F */ |
922d8de8 | 6767 | { |
592d1631 L |
6768 | { Bad_Opcode }, |
6769 | { Bad_Opcode }, | |
3a2430e0 | 6770 | { "vfmsubaddpd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6771 | }, |
6772 | ||
592a252b | 6773 | /* PREFIX_VEX_0F3A60 */ |
c0f3af97 | 6774 | { |
592d1631 L |
6775 | { Bad_Opcode }, |
6776 | { Bad_Opcode }, | |
592a252b | 6777 | { VEX_LEN_TABLE (VEX_LEN_0F3A60_P_2) }, |
592d1631 | 6778 | { Bad_Opcode }, |
c0f3af97 L |
6779 | }, |
6780 | ||
592a252b | 6781 | /* PREFIX_VEX_0F3A61 */ |
c0f3af97 | 6782 | { |
592d1631 L |
6783 | { Bad_Opcode }, |
6784 | { Bad_Opcode }, | |
592a252b | 6785 | { VEX_LEN_TABLE (VEX_LEN_0F3A61_P_2) }, |
c0f3af97 L |
6786 | }, |
6787 | ||
592a252b | 6788 | /* PREFIX_VEX_0F3A62 */ |
c0f3af97 | 6789 | { |
592d1631 L |
6790 | { Bad_Opcode }, |
6791 | { Bad_Opcode }, | |
592a252b | 6792 | { VEX_LEN_TABLE (VEX_LEN_0F3A62_P_2) }, |
c0f3af97 L |
6793 | }, |
6794 | ||
592a252b | 6795 | /* PREFIX_VEX_0F3A63 */ |
c0f3af97 | 6796 | { |
592d1631 L |
6797 | { Bad_Opcode }, |
6798 | { Bad_Opcode }, | |
592a252b | 6799 | { VEX_LEN_TABLE (VEX_LEN_0F3A63_P_2) }, |
c0f3af97 | 6800 | }, |
a5ff0eb2 | 6801 | |
592a252b | 6802 | /* PREFIX_VEX_0F3A68 */ |
922d8de8 | 6803 | { |
592d1631 L |
6804 | { Bad_Opcode }, |
6805 | { Bad_Opcode }, | |
3a2430e0 | 6806 | { "vfmaddps", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6807 | }, |
6808 | ||
592a252b | 6809 | /* PREFIX_VEX_0F3A69 */ |
922d8de8 | 6810 | { |
592d1631 L |
6811 | { Bad_Opcode }, |
6812 | { Bad_Opcode }, | |
3a2430e0 | 6813 | { "vfmaddpd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6814 | }, |
6815 | ||
592a252b | 6816 | /* PREFIX_VEX_0F3A6A */ |
922d8de8 | 6817 | { |
592d1631 L |
6818 | { Bad_Opcode }, |
6819 | { Bad_Opcode }, | |
592a252b | 6820 | { VEX_LEN_TABLE (VEX_LEN_0F3A6A_P_2) }, |
922d8de8 DR |
6821 | }, |
6822 | ||
592a252b | 6823 | /* PREFIX_VEX_0F3A6B */ |
922d8de8 | 6824 | { |
592d1631 L |
6825 | { Bad_Opcode }, |
6826 | { Bad_Opcode }, | |
592a252b | 6827 | { VEX_LEN_TABLE (VEX_LEN_0F3A6B_P_2) }, |
922d8de8 DR |
6828 | }, |
6829 | ||
592a252b | 6830 | /* PREFIX_VEX_0F3A6C */ |
922d8de8 | 6831 | { |
592d1631 L |
6832 | { Bad_Opcode }, |
6833 | { Bad_Opcode }, | |
3a2430e0 | 6834 | { "vfmsubps", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6835 | }, |
6836 | ||
592a252b | 6837 | /* PREFIX_VEX_0F3A6D */ |
922d8de8 | 6838 | { |
592d1631 L |
6839 | { Bad_Opcode }, |
6840 | { Bad_Opcode }, | |
3a2430e0 | 6841 | { "vfmsubpd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6842 | }, |
6843 | ||
592a252b | 6844 | /* PREFIX_VEX_0F3A6E */ |
922d8de8 | 6845 | { |
592d1631 L |
6846 | { Bad_Opcode }, |
6847 | { Bad_Opcode }, | |
592a252b | 6848 | { VEX_LEN_TABLE (VEX_LEN_0F3A6E_P_2) }, |
922d8de8 DR |
6849 | }, |
6850 | ||
592a252b | 6851 | /* PREFIX_VEX_0F3A6F */ |
922d8de8 | 6852 | { |
592d1631 L |
6853 | { Bad_Opcode }, |
6854 | { Bad_Opcode }, | |
592a252b | 6855 | { VEX_LEN_TABLE (VEX_LEN_0F3A6F_P_2) }, |
922d8de8 DR |
6856 | }, |
6857 | ||
592a252b | 6858 | /* PREFIX_VEX_0F3A78 */ |
922d8de8 | 6859 | { |
592d1631 L |
6860 | { Bad_Opcode }, |
6861 | { Bad_Opcode }, | |
3a2430e0 | 6862 | { "vfnmaddps", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6863 | }, |
6864 | ||
592a252b | 6865 | /* PREFIX_VEX_0F3A79 */ |
922d8de8 | 6866 | { |
592d1631 L |
6867 | { Bad_Opcode }, |
6868 | { Bad_Opcode }, | |
3a2430e0 | 6869 | { "vfnmaddpd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6870 | }, |
6871 | ||
592a252b | 6872 | /* PREFIX_VEX_0F3A7A */ |
922d8de8 | 6873 | { |
592d1631 L |
6874 | { Bad_Opcode }, |
6875 | { Bad_Opcode }, | |
592a252b | 6876 | { VEX_LEN_TABLE (VEX_LEN_0F3A7A_P_2) }, |
922d8de8 DR |
6877 | }, |
6878 | ||
592a252b | 6879 | /* PREFIX_VEX_0F3A7B */ |
922d8de8 | 6880 | { |
592d1631 L |
6881 | { Bad_Opcode }, |
6882 | { Bad_Opcode }, | |
592a252b | 6883 | { VEX_LEN_TABLE (VEX_LEN_0F3A7B_P_2) }, |
922d8de8 DR |
6884 | }, |
6885 | ||
592a252b | 6886 | /* PREFIX_VEX_0F3A7C */ |
922d8de8 | 6887 | { |
592d1631 L |
6888 | { Bad_Opcode }, |
6889 | { Bad_Opcode }, | |
3a2430e0 | 6890 | { "vfnmsubps", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
592d1631 | 6891 | { Bad_Opcode }, |
922d8de8 DR |
6892 | }, |
6893 | ||
592a252b | 6894 | /* PREFIX_VEX_0F3A7D */ |
922d8de8 | 6895 | { |
592d1631 L |
6896 | { Bad_Opcode }, |
6897 | { Bad_Opcode }, | |
3a2430e0 | 6898 | { "vfnmsubpd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
922d8de8 DR |
6899 | }, |
6900 | ||
592a252b | 6901 | /* PREFIX_VEX_0F3A7E */ |
922d8de8 | 6902 | { |
592d1631 L |
6903 | { Bad_Opcode }, |
6904 | { Bad_Opcode }, | |
592a252b | 6905 | { VEX_LEN_TABLE (VEX_LEN_0F3A7E_P_2) }, |
922d8de8 DR |
6906 | }, |
6907 | ||
592a252b | 6908 | /* PREFIX_VEX_0F3A7F */ |
922d8de8 | 6909 | { |
592d1631 L |
6910 | { Bad_Opcode }, |
6911 | { Bad_Opcode }, | |
592a252b | 6912 | { VEX_LEN_TABLE (VEX_LEN_0F3A7F_P_2) }, |
922d8de8 DR |
6913 | }, |
6914 | ||
48521003 IT |
6915 | /* PREFIX_VEX_0F3ACE */ |
6916 | { | |
6917 | { Bad_Opcode }, | |
6918 | { Bad_Opcode }, | |
6919 | { VEX_W_TABLE (VEX_W_0F3ACE_P_2) }, | |
6920 | }, | |
6921 | ||
6922 | /* PREFIX_VEX_0F3ACF */ | |
6923 | { | |
6924 | { Bad_Opcode }, | |
6925 | { Bad_Opcode }, | |
6926 | { VEX_W_TABLE (VEX_W_0F3ACF_P_2) }, | |
6927 | }, | |
6928 | ||
592a252b | 6929 | /* PREFIX_VEX_0F3ADF */ |
a5ff0eb2 | 6930 | { |
592d1631 L |
6931 | { Bad_Opcode }, |
6932 | { Bad_Opcode }, | |
592a252b | 6933 | { VEX_LEN_TABLE (VEX_LEN_0F3ADF_P_2) }, |
a5ff0eb2 | 6934 | }, |
6c30d220 L |
6935 | |
6936 | /* PREFIX_VEX_0F3AF0 */ | |
6937 | { | |
6938 | { Bad_Opcode }, | |
6939 | { Bad_Opcode }, | |
6940 | { Bad_Opcode }, | |
6941 | { VEX_LEN_TABLE (VEX_LEN_0F3AF0_P_3) }, | |
6942 | }, | |
43234a1e L |
6943 | |
6944 | #define NEED_PREFIX_TABLE | |
6945 | #include "i386-dis-evex.h" | |
6946 | #undef NEED_PREFIX_TABLE | |
c0f3af97 L |
6947 | }; |
6948 | ||
6949 | static const struct dis386 x86_64_table[][2] = { | |
6950 | /* X86_64_06 */ | |
6951 | { | |
bf890a93 | 6952 | { "pushP", { es }, 0 }, |
c0f3af97 L |
6953 | }, |
6954 | ||
6955 | /* X86_64_07 */ | |
6956 | { | |
bf890a93 | 6957 | { "popP", { es }, 0 }, |
c0f3af97 L |
6958 | }, |
6959 | ||
6960 | /* X86_64_0D */ | |
6961 | { | |
bf890a93 | 6962 | { "pushP", { cs }, 0 }, |
c0f3af97 L |
6963 | }, |
6964 | ||
6965 | /* X86_64_16 */ | |
6966 | { | |
bf890a93 | 6967 | { "pushP", { ss }, 0 }, |
c0f3af97 L |
6968 | }, |
6969 | ||
6970 | /* X86_64_17 */ | |
6971 | { | |
bf890a93 | 6972 | { "popP", { ss }, 0 }, |
c0f3af97 L |
6973 | }, |
6974 | ||
6975 | /* X86_64_1E */ | |
6976 | { | |
bf890a93 | 6977 | { "pushP", { ds }, 0 }, |
c0f3af97 L |
6978 | }, |
6979 | ||
6980 | /* X86_64_1F */ | |
6981 | { | |
bf890a93 | 6982 | { "popP", { ds }, 0 }, |
c0f3af97 L |
6983 | }, |
6984 | ||
6985 | /* X86_64_27 */ | |
6986 | { | |
bf890a93 | 6987 | { "daa", { XX }, 0 }, |
c0f3af97 L |
6988 | }, |
6989 | ||
6990 | /* X86_64_2F */ | |
6991 | { | |
bf890a93 | 6992 | { "das", { XX }, 0 }, |
c0f3af97 L |
6993 | }, |
6994 | ||
6995 | /* X86_64_37 */ | |
6996 | { | |
bf890a93 | 6997 | { "aaa", { XX }, 0 }, |
c0f3af97 L |
6998 | }, |
6999 | ||
7000 | /* X86_64_3F */ | |
7001 | { | |
bf890a93 | 7002 | { "aas", { XX }, 0 }, |
c0f3af97 L |
7003 | }, |
7004 | ||
7005 | /* X86_64_60 */ | |
7006 | { | |
bf890a93 | 7007 | { "pushaP", { XX }, 0 }, |
c0f3af97 L |
7008 | }, |
7009 | ||
7010 | /* X86_64_61 */ | |
7011 | { | |
bf890a93 | 7012 | { "popaP", { XX }, 0 }, |
c0f3af97 L |
7013 | }, |
7014 | ||
7015 | /* X86_64_62 */ | |
7016 | { | |
7017 | { MOD_TABLE (MOD_62_32BIT) }, | |
43234a1e | 7018 | { EVEX_TABLE (EVEX_0F) }, |
c0f3af97 L |
7019 | }, |
7020 | ||
7021 | /* X86_64_63 */ | |
7022 | { | |
bf890a93 IT |
7023 | { "arpl", { Ew, Gw }, 0 }, |
7024 | { "movs{lq|xd}", { Gv, Ed }, 0 }, | |
c0f3af97 L |
7025 | }, |
7026 | ||
7027 | /* X86_64_6D */ | |
7028 | { | |
bf890a93 IT |
7029 | { "ins{R|}", { Yzr, indirDX }, 0 }, |
7030 | { "ins{G|}", { Yzr, indirDX }, 0 }, | |
c0f3af97 L |
7031 | }, |
7032 | ||
7033 | /* X86_64_6F */ | |
7034 | { | |
bf890a93 IT |
7035 | { "outs{R|}", { indirDXr, Xz }, 0 }, |
7036 | { "outs{G|}", { indirDXr, Xz }, 0 }, | |
c0f3af97 L |
7037 | }, |
7038 | ||
d039fef3 | 7039 | /* X86_64_82 */ |
8b89fe14 | 7040 | { |
de194d85 | 7041 | /* Opcode 0x82 is an alias of opcode 0x80 in 32-bit mode. */ |
d039fef3 | 7042 | { REG_TABLE (REG_80) }, |
8b89fe14 L |
7043 | }, |
7044 | ||
c0f3af97 L |
7045 | /* X86_64_9A */ |
7046 | { | |
bf890a93 | 7047 | { "Jcall{T|}", { Ap }, 0 }, |
c0f3af97 L |
7048 | }, |
7049 | ||
7050 | /* X86_64_C4 */ | |
7051 | { | |
7052 | { MOD_TABLE (MOD_C4_32BIT) }, | |
7053 | { VEX_C4_TABLE (VEX_0F) }, | |
7054 | }, | |
7055 | ||
7056 | /* X86_64_C5 */ | |
7057 | { | |
7058 | { MOD_TABLE (MOD_C5_32BIT) }, | |
7059 | { VEX_C5_TABLE (VEX_0F) }, | |
7060 | }, | |
7061 | ||
7062 | /* X86_64_CE */ | |
7063 | { | |
bf890a93 | 7064 | { "into", { XX }, 0 }, |
c0f3af97 L |
7065 | }, |
7066 | ||
7067 | /* X86_64_D4 */ | |
7068 | { | |
bf890a93 | 7069 | { "aam", { Ib }, 0 }, |
c0f3af97 L |
7070 | }, |
7071 | ||
7072 | /* X86_64_D5 */ | |
7073 | { | |
bf890a93 | 7074 | { "aad", { Ib }, 0 }, |
c0f3af97 L |
7075 | }, |
7076 | ||
a72d2af2 L |
7077 | /* X86_64_E8 */ |
7078 | { | |
7079 | { "callP", { Jv, BND }, 0 }, | |
5db04b09 | 7080 | { "call@", { Jv, BND }, 0 } |
a72d2af2 L |
7081 | }, |
7082 | ||
7083 | /* X86_64_E9 */ | |
7084 | { | |
7085 | { "jmpP", { Jv, BND }, 0 }, | |
5db04b09 | 7086 | { "jmp@", { Jv, BND }, 0 } |
a72d2af2 L |
7087 | }, |
7088 | ||
c0f3af97 L |
7089 | /* X86_64_EA */ |
7090 | { | |
bf890a93 | 7091 | { "Jjmp{T|}", { Ap }, 0 }, |
c0f3af97 L |
7092 | }, |
7093 | ||
7094 | /* X86_64_0F01_REG_0 */ | |
7095 | { | |
bf890a93 IT |
7096 | { "sgdt{Q|IQ}", { M }, 0 }, |
7097 | { "sgdt", { M }, 0 }, | |
c0f3af97 L |
7098 | }, |
7099 | ||
7100 | /* X86_64_0F01_REG_1 */ | |
7101 | { | |
bf890a93 IT |
7102 | { "sidt{Q|IQ}", { M }, 0 }, |
7103 | { "sidt", { M }, 0 }, | |
c0f3af97 L |
7104 | }, |
7105 | ||
7106 | /* X86_64_0F01_REG_2 */ | |
7107 | { | |
bf890a93 IT |
7108 | { "lgdt{Q|Q}", { M }, 0 }, |
7109 | { "lgdt", { M }, 0 }, | |
c0f3af97 L |
7110 | }, |
7111 | ||
7112 | /* X86_64_0F01_REG_3 */ | |
7113 | { | |
bf890a93 IT |
7114 | { "lidt{Q|Q}", { M }, 0 }, |
7115 | { "lidt", { M }, 0 }, | |
c0f3af97 L |
7116 | }, |
7117 | }; | |
7118 | ||
7119 | static const struct dis386 three_byte_table[][256] = { | |
c1e679ec DR |
7120 | |
7121 | /* THREE_BYTE_0F38 */ | |
c0f3af97 L |
7122 | { |
7123 | /* 00 */ | |
507bd325 L |
7124 | { "pshufb", { MX, EM }, PREFIX_OPCODE }, |
7125 | { "phaddw", { MX, EM }, PREFIX_OPCODE }, | |
7126 | { "phaddd", { MX, EM }, PREFIX_OPCODE }, | |
7127 | { "phaddsw", { MX, EM }, PREFIX_OPCODE }, | |
7128 | { "pmaddubsw", { MX, EM }, PREFIX_OPCODE }, | |
7129 | { "phsubw", { MX, EM }, PREFIX_OPCODE }, | |
7130 | { "phsubd", { MX, EM }, PREFIX_OPCODE }, | |
7131 | { "phsubsw", { MX, EM }, PREFIX_OPCODE }, | |
c0f3af97 | 7132 | /* 08 */ |
507bd325 L |
7133 | { "psignb", { MX, EM }, PREFIX_OPCODE }, |
7134 | { "psignw", { MX, EM }, PREFIX_OPCODE }, | |
7135 | { "psignd", { MX, EM }, PREFIX_OPCODE }, | |
7136 | { "pmulhrsw", { MX, EM }, PREFIX_OPCODE }, | |
592d1631 L |
7137 | { Bad_Opcode }, |
7138 | { Bad_Opcode }, | |
7139 | { Bad_Opcode }, | |
7140 | { Bad_Opcode }, | |
f88c9eb0 SP |
7141 | /* 10 */ |
7142 | { PREFIX_TABLE (PREFIX_0F3810) }, | |
592d1631 L |
7143 | { Bad_Opcode }, |
7144 | { Bad_Opcode }, | |
7145 | { Bad_Opcode }, | |
f88c9eb0 SP |
7146 | { PREFIX_TABLE (PREFIX_0F3814) }, |
7147 | { PREFIX_TABLE (PREFIX_0F3815) }, | |
592d1631 | 7148 | { Bad_Opcode }, |
f88c9eb0 SP |
7149 | { PREFIX_TABLE (PREFIX_0F3817) }, |
7150 | /* 18 */ | |
592d1631 L |
7151 | { Bad_Opcode }, |
7152 | { Bad_Opcode }, | |
7153 | { Bad_Opcode }, | |
7154 | { Bad_Opcode }, | |
507bd325 L |
7155 | { "pabsb", { MX, EM }, PREFIX_OPCODE }, |
7156 | { "pabsw", { MX, EM }, PREFIX_OPCODE }, | |
7157 | { "pabsd", { MX, EM }, PREFIX_OPCODE }, | |
592d1631 | 7158 | { Bad_Opcode }, |
f88c9eb0 SP |
7159 | /* 20 */ |
7160 | { PREFIX_TABLE (PREFIX_0F3820) }, | |
7161 | { PREFIX_TABLE (PREFIX_0F3821) }, | |
7162 | { PREFIX_TABLE (PREFIX_0F3822) }, | |
7163 | { PREFIX_TABLE (PREFIX_0F3823) }, | |
7164 | { PREFIX_TABLE (PREFIX_0F3824) }, | |
7165 | { PREFIX_TABLE (PREFIX_0F3825) }, | |
592d1631 L |
7166 | { Bad_Opcode }, |
7167 | { Bad_Opcode }, | |
f88c9eb0 SP |
7168 | /* 28 */ |
7169 | { PREFIX_TABLE (PREFIX_0F3828) }, | |
7170 | { PREFIX_TABLE (PREFIX_0F3829) }, | |
7171 | { PREFIX_TABLE (PREFIX_0F382A) }, | |
7172 | { PREFIX_TABLE (PREFIX_0F382B) }, | |
592d1631 L |
7173 | { Bad_Opcode }, |
7174 | { Bad_Opcode }, | |
7175 | { Bad_Opcode }, | |
7176 | { Bad_Opcode }, | |
f88c9eb0 SP |
7177 | /* 30 */ |
7178 | { PREFIX_TABLE (PREFIX_0F3830) }, | |
7179 | { PREFIX_TABLE (PREFIX_0F3831) }, | |
7180 | { PREFIX_TABLE (PREFIX_0F3832) }, | |
7181 | { PREFIX_TABLE (PREFIX_0F3833) }, | |
7182 | { PREFIX_TABLE (PREFIX_0F3834) }, | |
7183 | { PREFIX_TABLE (PREFIX_0F3835) }, | |
592d1631 | 7184 | { Bad_Opcode }, |
f88c9eb0 SP |
7185 | { PREFIX_TABLE (PREFIX_0F3837) }, |
7186 | /* 38 */ | |
7187 | { PREFIX_TABLE (PREFIX_0F3838) }, | |
7188 | { PREFIX_TABLE (PREFIX_0F3839) }, | |
7189 | { PREFIX_TABLE (PREFIX_0F383A) }, | |
7190 | { PREFIX_TABLE (PREFIX_0F383B) }, | |
7191 | { PREFIX_TABLE (PREFIX_0F383C) }, | |
7192 | { PREFIX_TABLE (PREFIX_0F383D) }, | |
7193 | { PREFIX_TABLE (PREFIX_0F383E) }, | |
7194 | { PREFIX_TABLE (PREFIX_0F383F) }, | |
7195 | /* 40 */ | |
7196 | { PREFIX_TABLE (PREFIX_0F3840) }, | |
7197 | { PREFIX_TABLE (PREFIX_0F3841) }, | |
592d1631 L |
7198 | { Bad_Opcode }, |
7199 | { Bad_Opcode }, | |
7200 | { Bad_Opcode }, | |
7201 | { Bad_Opcode }, | |
7202 | { Bad_Opcode }, | |
7203 | { Bad_Opcode }, | |
f88c9eb0 | 7204 | /* 48 */ |
592d1631 L |
7205 | { Bad_Opcode }, |
7206 | { Bad_Opcode }, | |
7207 | { Bad_Opcode }, | |
7208 | { Bad_Opcode }, | |
7209 | { Bad_Opcode }, | |
7210 | { Bad_Opcode }, | |
7211 | { Bad_Opcode }, | |
7212 | { Bad_Opcode }, | |
f88c9eb0 | 7213 | /* 50 */ |
592d1631 L |
7214 | { Bad_Opcode }, |
7215 | { Bad_Opcode }, | |
7216 | { Bad_Opcode }, | |
7217 | { Bad_Opcode }, | |
7218 | { Bad_Opcode }, | |
7219 | { Bad_Opcode }, | |
7220 | { Bad_Opcode }, | |
7221 | { Bad_Opcode }, | |
f88c9eb0 | 7222 | /* 58 */ |
592d1631 L |
7223 | { Bad_Opcode }, |
7224 | { Bad_Opcode }, | |
7225 | { Bad_Opcode }, | |
7226 | { Bad_Opcode }, | |
7227 | { Bad_Opcode }, | |
7228 | { Bad_Opcode }, | |
7229 | { Bad_Opcode }, | |
7230 | { Bad_Opcode }, | |
f88c9eb0 | 7231 | /* 60 */ |
592d1631 L |
7232 | { Bad_Opcode }, |
7233 | { Bad_Opcode }, | |
7234 | { Bad_Opcode }, | |
7235 | { Bad_Opcode }, | |
7236 | { Bad_Opcode }, | |
7237 | { Bad_Opcode }, | |
7238 | { Bad_Opcode }, | |
7239 | { Bad_Opcode }, | |
f88c9eb0 | 7240 | /* 68 */ |
592d1631 L |
7241 | { Bad_Opcode }, |
7242 | { Bad_Opcode }, | |
7243 | { Bad_Opcode }, | |
7244 | { Bad_Opcode }, | |
7245 | { Bad_Opcode }, | |
7246 | { Bad_Opcode }, | |
7247 | { Bad_Opcode }, | |
7248 | { Bad_Opcode }, | |
f88c9eb0 | 7249 | /* 70 */ |
592d1631 L |
7250 | { Bad_Opcode }, |
7251 | { Bad_Opcode }, | |
7252 | { Bad_Opcode }, | |
7253 | { Bad_Opcode }, | |
7254 | { Bad_Opcode }, | |
7255 | { Bad_Opcode }, | |
7256 | { Bad_Opcode }, | |
7257 | { Bad_Opcode }, | |
f88c9eb0 | 7258 | /* 78 */ |
592d1631 L |
7259 | { Bad_Opcode }, |
7260 | { Bad_Opcode }, | |
7261 | { Bad_Opcode }, | |
7262 | { Bad_Opcode }, | |
7263 | { Bad_Opcode }, | |
7264 | { Bad_Opcode }, | |
7265 | { Bad_Opcode }, | |
7266 | { Bad_Opcode }, | |
f88c9eb0 SP |
7267 | /* 80 */ |
7268 | { PREFIX_TABLE (PREFIX_0F3880) }, | |
7269 | { PREFIX_TABLE (PREFIX_0F3881) }, | |
6c30d220 | 7270 | { PREFIX_TABLE (PREFIX_0F3882) }, |
592d1631 L |
7271 | { Bad_Opcode }, |
7272 | { Bad_Opcode }, | |
7273 | { Bad_Opcode }, | |
7274 | { Bad_Opcode }, | |
7275 | { Bad_Opcode }, | |
f88c9eb0 | 7276 | /* 88 */ |
592d1631 L |
7277 | { Bad_Opcode }, |
7278 | { Bad_Opcode }, | |
7279 | { Bad_Opcode }, | |
7280 | { Bad_Opcode }, | |
7281 | { Bad_Opcode }, | |
7282 | { Bad_Opcode }, | |
7283 | { Bad_Opcode }, | |
7284 | { Bad_Opcode }, | |
f88c9eb0 | 7285 | /* 90 */ |
592d1631 L |
7286 | { Bad_Opcode }, |
7287 | { Bad_Opcode }, | |
7288 | { Bad_Opcode }, | |
7289 | { Bad_Opcode }, | |
7290 | { Bad_Opcode }, | |
7291 | { Bad_Opcode }, | |
7292 | { Bad_Opcode }, | |
7293 | { Bad_Opcode }, | |
f88c9eb0 | 7294 | /* 98 */ |
592d1631 L |
7295 | { Bad_Opcode }, |
7296 | { Bad_Opcode }, | |
7297 | { Bad_Opcode }, | |
7298 | { Bad_Opcode }, | |
7299 | { Bad_Opcode }, | |
7300 | { Bad_Opcode }, | |
7301 | { Bad_Opcode }, | |
7302 | { Bad_Opcode }, | |
f88c9eb0 | 7303 | /* a0 */ |
592d1631 L |
7304 | { Bad_Opcode }, |
7305 | { Bad_Opcode }, | |
7306 | { Bad_Opcode }, | |
7307 | { Bad_Opcode }, | |
7308 | { Bad_Opcode }, | |
7309 | { Bad_Opcode }, | |
7310 | { Bad_Opcode }, | |
7311 | { Bad_Opcode }, | |
f88c9eb0 | 7312 | /* a8 */ |
592d1631 L |
7313 | { Bad_Opcode }, |
7314 | { Bad_Opcode }, | |
7315 | { Bad_Opcode }, | |
7316 | { Bad_Opcode }, | |
7317 | { Bad_Opcode }, | |
7318 | { Bad_Opcode }, | |
7319 | { Bad_Opcode }, | |
7320 | { Bad_Opcode }, | |
f88c9eb0 | 7321 | /* b0 */ |
592d1631 L |
7322 | { Bad_Opcode }, |
7323 | { Bad_Opcode }, | |
7324 | { Bad_Opcode }, | |
7325 | { Bad_Opcode }, | |
7326 | { Bad_Opcode }, | |
7327 | { Bad_Opcode }, | |
7328 | { Bad_Opcode }, | |
7329 | { Bad_Opcode }, | |
f88c9eb0 | 7330 | /* b8 */ |
592d1631 L |
7331 | { Bad_Opcode }, |
7332 | { Bad_Opcode }, | |
7333 | { Bad_Opcode }, | |
7334 | { Bad_Opcode }, | |
7335 | { Bad_Opcode }, | |
7336 | { Bad_Opcode }, | |
7337 | { Bad_Opcode }, | |
7338 | { Bad_Opcode }, | |
f88c9eb0 | 7339 | /* c0 */ |
592d1631 L |
7340 | { Bad_Opcode }, |
7341 | { Bad_Opcode }, | |
7342 | { Bad_Opcode }, | |
7343 | { Bad_Opcode }, | |
7344 | { Bad_Opcode }, | |
7345 | { Bad_Opcode }, | |
7346 | { Bad_Opcode }, | |
7347 | { Bad_Opcode }, | |
f88c9eb0 | 7348 | /* c8 */ |
a0046408 L |
7349 | { PREFIX_TABLE (PREFIX_0F38C8) }, |
7350 | { PREFIX_TABLE (PREFIX_0F38C9) }, | |
7351 | { PREFIX_TABLE (PREFIX_0F38CA) }, | |
7352 | { PREFIX_TABLE (PREFIX_0F38CB) }, | |
7353 | { PREFIX_TABLE (PREFIX_0F38CC) }, | |
7354 | { PREFIX_TABLE (PREFIX_0F38CD) }, | |
592d1631 | 7355 | { Bad_Opcode }, |
48521003 | 7356 | { PREFIX_TABLE (PREFIX_0F38CF) }, |
f88c9eb0 | 7357 | /* d0 */ |
592d1631 L |
7358 | { Bad_Opcode }, |
7359 | { Bad_Opcode }, | |
7360 | { Bad_Opcode }, | |
7361 | { Bad_Opcode }, | |
7362 | { Bad_Opcode }, | |
7363 | { Bad_Opcode }, | |
7364 | { Bad_Opcode }, | |
7365 | { Bad_Opcode }, | |
f88c9eb0 | 7366 | /* d8 */ |
592d1631 L |
7367 | { Bad_Opcode }, |
7368 | { Bad_Opcode }, | |
7369 | { Bad_Opcode }, | |
f88c9eb0 SP |
7370 | { PREFIX_TABLE (PREFIX_0F38DB) }, |
7371 | { PREFIX_TABLE (PREFIX_0F38DC) }, | |
7372 | { PREFIX_TABLE (PREFIX_0F38DD) }, | |
7373 | { PREFIX_TABLE (PREFIX_0F38DE) }, | |
7374 | { PREFIX_TABLE (PREFIX_0F38DF) }, | |
7375 | /* e0 */ | |
592d1631 L |
7376 | { Bad_Opcode }, |
7377 | { Bad_Opcode }, | |
7378 | { Bad_Opcode }, | |
7379 | { Bad_Opcode }, | |
7380 | { Bad_Opcode }, | |
7381 | { Bad_Opcode }, | |
7382 | { Bad_Opcode }, | |
7383 | { Bad_Opcode }, | |
f88c9eb0 | 7384 | /* e8 */ |
592d1631 L |
7385 | { Bad_Opcode }, |
7386 | { Bad_Opcode }, | |
7387 | { Bad_Opcode }, | |
7388 | { Bad_Opcode }, | |
7389 | { Bad_Opcode }, | |
7390 | { Bad_Opcode }, | |
7391 | { Bad_Opcode }, | |
7392 | { Bad_Opcode }, | |
f88c9eb0 SP |
7393 | /* f0 */ |
7394 | { PREFIX_TABLE (PREFIX_0F38F0) }, | |
7395 | { PREFIX_TABLE (PREFIX_0F38F1) }, | |
592d1631 L |
7396 | { Bad_Opcode }, |
7397 | { Bad_Opcode }, | |
7398 | { Bad_Opcode }, | |
603555e5 | 7399 | { PREFIX_TABLE (PREFIX_0F38F5) }, |
e2e1fcde | 7400 | { PREFIX_TABLE (PREFIX_0F38F6) }, |
592d1631 | 7401 | { Bad_Opcode }, |
f88c9eb0 | 7402 | /* f8 */ |
592d1631 L |
7403 | { Bad_Opcode }, |
7404 | { Bad_Opcode }, | |
7405 | { Bad_Opcode }, | |
7406 | { Bad_Opcode }, | |
7407 | { Bad_Opcode }, | |
7408 | { Bad_Opcode }, | |
7409 | { Bad_Opcode }, | |
7410 | { Bad_Opcode }, | |
f88c9eb0 SP |
7411 | }, |
7412 | /* THREE_BYTE_0F3A */ | |
7413 | { | |
7414 | /* 00 */ | |
592d1631 L |
7415 | { Bad_Opcode }, |
7416 | { Bad_Opcode }, | |
7417 | { Bad_Opcode }, | |
7418 | { Bad_Opcode }, | |
7419 | { Bad_Opcode }, | |
7420 | { Bad_Opcode }, | |
7421 | { Bad_Opcode }, | |
7422 | { Bad_Opcode }, | |
f88c9eb0 SP |
7423 | /* 08 */ |
7424 | { PREFIX_TABLE (PREFIX_0F3A08) }, | |
7425 | { PREFIX_TABLE (PREFIX_0F3A09) }, | |
7426 | { PREFIX_TABLE (PREFIX_0F3A0A) }, | |
7427 | { PREFIX_TABLE (PREFIX_0F3A0B) }, | |
7428 | { PREFIX_TABLE (PREFIX_0F3A0C) }, | |
7429 | { PREFIX_TABLE (PREFIX_0F3A0D) }, | |
7430 | { PREFIX_TABLE (PREFIX_0F3A0E) }, | |
507bd325 | 7431 | { "palignr", { MX, EM, Ib }, PREFIX_OPCODE }, |
f88c9eb0 | 7432 | /* 10 */ |
592d1631 L |
7433 | { Bad_Opcode }, |
7434 | { Bad_Opcode }, | |
7435 | { Bad_Opcode }, | |
7436 | { Bad_Opcode }, | |
f88c9eb0 SP |
7437 | { PREFIX_TABLE (PREFIX_0F3A14) }, |
7438 | { PREFIX_TABLE (PREFIX_0F3A15) }, | |
7439 | { PREFIX_TABLE (PREFIX_0F3A16) }, | |
7440 | { PREFIX_TABLE (PREFIX_0F3A17) }, | |
7441 | /* 18 */ | |
592d1631 L |
7442 | { Bad_Opcode }, |
7443 | { Bad_Opcode }, | |
7444 | { Bad_Opcode }, | |
7445 | { Bad_Opcode }, | |
7446 | { Bad_Opcode }, | |
7447 | { Bad_Opcode }, | |
7448 | { Bad_Opcode }, | |
7449 | { Bad_Opcode }, | |
f88c9eb0 SP |
7450 | /* 20 */ |
7451 | { PREFIX_TABLE (PREFIX_0F3A20) }, | |
7452 | { PREFIX_TABLE (PREFIX_0F3A21) }, | |
7453 | { PREFIX_TABLE (PREFIX_0F3A22) }, | |
592d1631 L |
7454 | { Bad_Opcode }, |
7455 | { Bad_Opcode }, | |
7456 | { Bad_Opcode }, | |
7457 | { Bad_Opcode }, | |
7458 | { Bad_Opcode }, | |
f88c9eb0 | 7459 | /* 28 */ |
592d1631 L |
7460 | { Bad_Opcode }, |
7461 | { Bad_Opcode }, | |
7462 | { Bad_Opcode }, | |
7463 | { Bad_Opcode }, | |
7464 | { Bad_Opcode }, | |
7465 | { Bad_Opcode }, | |
7466 | { Bad_Opcode }, | |
7467 | { Bad_Opcode }, | |
f88c9eb0 | 7468 | /* 30 */ |
592d1631 L |
7469 | { Bad_Opcode }, |
7470 | { Bad_Opcode }, | |
7471 | { Bad_Opcode }, | |
7472 | { Bad_Opcode }, | |
7473 | { Bad_Opcode }, | |
7474 | { Bad_Opcode }, | |
7475 | { Bad_Opcode }, | |
7476 | { Bad_Opcode }, | |
f88c9eb0 | 7477 | /* 38 */ |
592d1631 L |
7478 | { Bad_Opcode }, |
7479 | { Bad_Opcode }, | |
7480 | { Bad_Opcode }, | |
7481 | { Bad_Opcode }, | |
7482 | { Bad_Opcode }, | |
7483 | { Bad_Opcode }, | |
7484 | { Bad_Opcode }, | |
7485 | { Bad_Opcode }, | |
f88c9eb0 SP |
7486 | /* 40 */ |
7487 | { PREFIX_TABLE (PREFIX_0F3A40) }, | |
7488 | { PREFIX_TABLE (PREFIX_0F3A41) }, | |
7489 | { PREFIX_TABLE (PREFIX_0F3A42) }, | |
592d1631 | 7490 | { Bad_Opcode }, |
f88c9eb0 | 7491 | { PREFIX_TABLE (PREFIX_0F3A44) }, |
592d1631 L |
7492 | { Bad_Opcode }, |
7493 | { Bad_Opcode }, | |
7494 | { Bad_Opcode }, | |
f88c9eb0 | 7495 | /* 48 */ |
592d1631 L |
7496 | { Bad_Opcode }, |
7497 | { Bad_Opcode }, | |
7498 | { Bad_Opcode }, | |
7499 | { Bad_Opcode }, | |
7500 | { Bad_Opcode }, | |
7501 | { Bad_Opcode }, | |
7502 | { Bad_Opcode }, | |
7503 | { Bad_Opcode }, | |
f88c9eb0 | 7504 | /* 50 */ |
592d1631 L |
7505 | { Bad_Opcode }, |
7506 | { Bad_Opcode }, | |
7507 | { Bad_Opcode }, | |
7508 | { Bad_Opcode }, | |
7509 | { Bad_Opcode }, | |
7510 | { Bad_Opcode }, | |
7511 | { Bad_Opcode }, | |
7512 | { Bad_Opcode }, | |
f88c9eb0 | 7513 | /* 58 */ |
592d1631 L |
7514 | { Bad_Opcode }, |
7515 | { Bad_Opcode }, | |
7516 | { Bad_Opcode }, | |
7517 | { Bad_Opcode }, | |
7518 | { Bad_Opcode }, | |
7519 | { Bad_Opcode }, | |
7520 | { Bad_Opcode }, | |
7521 | { Bad_Opcode }, | |
f88c9eb0 SP |
7522 | /* 60 */ |
7523 | { PREFIX_TABLE (PREFIX_0F3A60) }, | |
7524 | { PREFIX_TABLE (PREFIX_0F3A61) }, | |
7525 | { PREFIX_TABLE (PREFIX_0F3A62) }, | |
7526 | { PREFIX_TABLE (PREFIX_0F3A63) }, | |
592d1631 L |
7527 | { Bad_Opcode }, |
7528 | { Bad_Opcode }, | |
7529 | { Bad_Opcode }, | |
7530 | { Bad_Opcode }, | |
f88c9eb0 | 7531 | /* 68 */ |
592d1631 L |
7532 | { Bad_Opcode }, |
7533 | { Bad_Opcode }, | |
7534 | { Bad_Opcode }, | |
7535 | { Bad_Opcode }, | |
7536 | { Bad_Opcode }, | |
7537 | { Bad_Opcode }, | |
7538 | { Bad_Opcode }, | |
7539 | { Bad_Opcode }, | |
f88c9eb0 | 7540 | /* 70 */ |
592d1631 L |
7541 | { Bad_Opcode }, |
7542 | { Bad_Opcode }, | |
7543 | { Bad_Opcode }, | |
7544 | { Bad_Opcode }, | |
7545 | { Bad_Opcode }, | |
7546 | { Bad_Opcode }, | |
7547 | { Bad_Opcode }, | |
7548 | { Bad_Opcode }, | |
f88c9eb0 | 7549 | /* 78 */ |
592d1631 L |
7550 | { Bad_Opcode }, |
7551 | { Bad_Opcode }, | |
7552 | { Bad_Opcode }, | |
7553 | { Bad_Opcode }, | |
7554 | { Bad_Opcode }, | |
7555 | { Bad_Opcode }, | |
7556 | { Bad_Opcode }, | |
7557 | { Bad_Opcode }, | |
f88c9eb0 | 7558 | /* 80 */ |
592d1631 L |
7559 | { Bad_Opcode }, |
7560 | { Bad_Opcode }, | |
7561 | { Bad_Opcode }, | |
7562 | { Bad_Opcode }, | |
7563 | { Bad_Opcode }, | |
7564 | { Bad_Opcode }, | |
7565 | { Bad_Opcode }, | |
7566 | { Bad_Opcode }, | |
f88c9eb0 | 7567 | /* 88 */ |
592d1631 L |
7568 | { Bad_Opcode }, |
7569 | { Bad_Opcode }, | |
7570 | { Bad_Opcode }, | |
7571 | { Bad_Opcode }, | |
7572 | { Bad_Opcode }, | |
7573 | { Bad_Opcode }, | |
7574 | { Bad_Opcode }, | |
7575 | { Bad_Opcode }, | |
f88c9eb0 | 7576 | /* 90 */ |
592d1631 L |
7577 | { Bad_Opcode }, |
7578 | { Bad_Opcode }, | |
7579 | { Bad_Opcode }, | |
7580 | { Bad_Opcode }, | |
7581 | { Bad_Opcode }, | |
7582 | { Bad_Opcode }, | |
7583 | { Bad_Opcode }, | |
7584 | { Bad_Opcode }, | |
f88c9eb0 | 7585 | /* 98 */ |
592d1631 L |
7586 | { Bad_Opcode }, |
7587 | { Bad_Opcode }, | |
7588 | { Bad_Opcode }, | |
7589 | { Bad_Opcode }, | |
7590 | { Bad_Opcode }, | |
7591 | { Bad_Opcode }, | |
7592 | { Bad_Opcode }, | |
7593 | { Bad_Opcode }, | |
f88c9eb0 | 7594 | /* a0 */ |
592d1631 L |
7595 | { Bad_Opcode }, |
7596 | { Bad_Opcode }, | |
7597 | { Bad_Opcode }, | |
7598 | { Bad_Opcode }, | |
7599 | { Bad_Opcode }, | |
7600 | { Bad_Opcode }, | |
7601 | { Bad_Opcode }, | |
7602 | { Bad_Opcode }, | |
f88c9eb0 | 7603 | /* a8 */ |
592d1631 L |
7604 | { Bad_Opcode }, |
7605 | { Bad_Opcode }, | |
7606 | { Bad_Opcode }, | |
7607 | { Bad_Opcode }, | |
7608 | { Bad_Opcode }, | |
7609 | { Bad_Opcode }, | |
7610 | { Bad_Opcode }, | |
7611 | { Bad_Opcode }, | |
f88c9eb0 | 7612 | /* b0 */ |
592d1631 L |
7613 | { Bad_Opcode }, |
7614 | { Bad_Opcode }, | |
7615 | { Bad_Opcode }, | |
7616 | { Bad_Opcode }, | |
7617 | { Bad_Opcode }, | |
7618 | { Bad_Opcode }, | |
7619 | { Bad_Opcode }, | |
7620 | { Bad_Opcode }, | |
f88c9eb0 | 7621 | /* b8 */ |
592d1631 L |
7622 | { Bad_Opcode }, |
7623 | { Bad_Opcode }, | |
7624 | { Bad_Opcode }, | |
7625 | { Bad_Opcode }, | |
7626 | { Bad_Opcode }, | |
7627 | { Bad_Opcode }, | |
7628 | { Bad_Opcode }, | |
7629 | { Bad_Opcode }, | |
f88c9eb0 | 7630 | /* c0 */ |
592d1631 L |
7631 | { Bad_Opcode }, |
7632 | { Bad_Opcode }, | |
7633 | { Bad_Opcode }, | |
7634 | { Bad_Opcode }, | |
7635 | { Bad_Opcode }, | |
7636 | { Bad_Opcode }, | |
7637 | { Bad_Opcode }, | |
7638 | { Bad_Opcode }, | |
f88c9eb0 | 7639 | /* c8 */ |
592d1631 L |
7640 | { Bad_Opcode }, |
7641 | { Bad_Opcode }, | |
7642 | { Bad_Opcode }, | |
7643 | { Bad_Opcode }, | |
a0046408 | 7644 | { PREFIX_TABLE (PREFIX_0F3ACC) }, |
592d1631 | 7645 | { Bad_Opcode }, |
48521003 IT |
7646 | { PREFIX_TABLE (PREFIX_0F3ACE) }, |
7647 | { PREFIX_TABLE (PREFIX_0F3ACF) }, | |
f88c9eb0 | 7648 | /* d0 */ |
592d1631 L |
7649 | { Bad_Opcode }, |
7650 | { Bad_Opcode }, | |
7651 | { Bad_Opcode }, | |
7652 | { Bad_Opcode }, | |
7653 | { Bad_Opcode }, | |
7654 | { Bad_Opcode }, | |
7655 | { Bad_Opcode }, | |
7656 | { Bad_Opcode }, | |
f88c9eb0 | 7657 | /* d8 */ |
592d1631 L |
7658 | { Bad_Opcode }, |
7659 | { Bad_Opcode }, | |
7660 | { Bad_Opcode }, | |
7661 | { Bad_Opcode }, | |
7662 | { Bad_Opcode }, | |
7663 | { Bad_Opcode }, | |
7664 | { Bad_Opcode }, | |
f88c9eb0 SP |
7665 | { PREFIX_TABLE (PREFIX_0F3ADF) }, |
7666 | /* e0 */ | |
592d1631 L |
7667 | { Bad_Opcode }, |
7668 | { Bad_Opcode }, | |
7669 | { Bad_Opcode }, | |
7670 | { Bad_Opcode }, | |
7671 | { Bad_Opcode }, | |
592d1631 L |
7672 | { Bad_Opcode }, |
7673 | { Bad_Opcode }, | |
7674 | { Bad_Opcode }, | |
85f10a01 | 7675 | /* e8 */ |
592d1631 L |
7676 | { Bad_Opcode }, |
7677 | { Bad_Opcode }, | |
7678 | { Bad_Opcode }, | |
7679 | { Bad_Opcode }, | |
7680 | { Bad_Opcode }, | |
7681 | { Bad_Opcode }, | |
7682 | { Bad_Opcode }, | |
7683 | { Bad_Opcode }, | |
85f10a01 | 7684 | /* f0 */ |
592d1631 L |
7685 | { Bad_Opcode }, |
7686 | { Bad_Opcode }, | |
7687 | { Bad_Opcode }, | |
7688 | { Bad_Opcode }, | |
7689 | { Bad_Opcode }, | |
7690 | { Bad_Opcode }, | |
7691 | { Bad_Opcode }, | |
7692 | { Bad_Opcode }, | |
85f10a01 | 7693 | /* f8 */ |
592d1631 L |
7694 | { Bad_Opcode }, |
7695 | { Bad_Opcode }, | |
7696 | { Bad_Opcode }, | |
7697 | { Bad_Opcode }, | |
7698 | { Bad_Opcode }, | |
7699 | { Bad_Opcode }, | |
7700 | { Bad_Opcode }, | |
7701 | { Bad_Opcode }, | |
85f10a01 | 7702 | }, |
f88c9eb0 SP |
7703 | }; |
7704 | ||
7705 | static const struct dis386 xop_table[][256] = { | |
5dd85c99 | 7706 | /* XOP_08 */ |
85f10a01 MM |
7707 | { |
7708 | /* 00 */ | |
592d1631 L |
7709 | { Bad_Opcode }, |
7710 | { Bad_Opcode }, | |
7711 | { Bad_Opcode }, | |
7712 | { Bad_Opcode }, | |
7713 | { Bad_Opcode }, | |
7714 | { Bad_Opcode }, | |
7715 | { Bad_Opcode }, | |
7716 | { Bad_Opcode }, | |
85f10a01 | 7717 | /* 08 */ |
592d1631 L |
7718 | { Bad_Opcode }, |
7719 | { Bad_Opcode }, | |
7720 | { Bad_Opcode }, | |
7721 | { Bad_Opcode }, | |
7722 | { Bad_Opcode }, | |
7723 | { Bad_Opcode }, | |
7724 | { Bad_Opcode }, | |
7725 | { Bad_Opcode }, | |
85f10a01 | 7726 | /* 10 */ |
3929df09 | 7727 | { Bad_Opcode }, |
592d1631 L |
7728 | { Bad_Opcode }, |
7729 | { Bad_Opcode }, | |
7730 | { Bad_Opcode }, | |
7731 | { Bad_Opcode }, | |
7732 | { Bad_Opcode }, | |
7733 | { Bad_Opcode }, | |
7734 | { Bad_Opcode }, | |
85f10a01 | 7735 | /* 18 */ |
592d1631 L |
7736 | { Bad_Opcode }, |
7737 | { Bad_Opcode }, | |
7738 | { Bad_Opcode }, | |
7739 | { Bad_Opcode }, | |
7740 | { Bad_Opcode }, | |
7741 | { Bad_Opcode }, | |
7742 | { Bad_Opcode }, | |
7743 | { Bad_Opcode }, | |
85f10a01 | 7744 | /* 20 */ |
592d1631 L |
7745 | { Bad_Opcode }, |
7746 | { Bad_Opcode }, | |
7747 | { Bad_Opcode }, | |
7748 | { Bad_Opcode }, | |
7749 | { Bad_Opcode }, | |
7750 | { Bad_Opcode }, | |
7751 | { Bad_Opcode }, | |
7752 | { Bad_Opcode }, | |
85f10a01 | 7753 | /* 28 */ |
592d1631 L |
7754 | { Bad_Opcode }, |
7755 | { Bad_Opcode }, | |
7756 | { Bad_Opcode }, | |
7757 | { Bad_Opcode }, | |
7758 | { Bad_Opcode }, | |
7759 | { Bad_Opcode }, | |
7760 | { Bad_Opcode }, | |
7761 | { Bad_Opcode }, | |
c0f3af97 | 7762 | /* 30 */ |
592d1631 L |
7763 | { Bad_Opcode }, |
7764 | { Bad_Opcode }, | |
7765 | { Bad_Opcode }, | |
7766 | { Bad_Opcode }, | |
7767 | { Bad_Opcode }, | |
7768 | { Bad_Opcode }, | |
7769 | { Bad_Opcode }, | |
7770 | { Bad_Opcode }, | |
c0f3af97 | 7771 | /* 38 */ |
592d1631 L |
7772 | { Bad_Opcode }, |
7773 | { Bad_Opcode }, | |
7774 | { Bad_Opcode }, | |
7775 | { Bad_Opcode }, | |
7776 | { Bad_Opcode }, | |
7777 | { Bad_Opcode }, | |
7778 | { Bad_Opcode }, | |
7779 | { Bad_Opcode }, | |
c0f3af97 | 7780 | /* 40 */ |
592d1631 L |
7781 | { Bad_Opcode }, |
7782 | { Bad_Opcode }, | |
7783 | { Bad_Opcode }, | |
7784 | { Bad_Opcode }, | |
7785 | { Bad_Opcode }, | |
7786 | { Bad_Opcode }, | |
7787 | { Bad_Opcode }, | |
7788 | { Bad_Opcode }, | |
85f10a01 | 7789 | /* 48 */ |
592d1631 L |
7790 | { Bad_Opcode }, |
7791 | { Bad_Opcode }, | |
7792 | { Bad_Opcode }, | |
7793 | { Bad_Opcode }, | |
7794 | { Bad_Opcode }, | |
7795 | { Bad_Opcode }, | |
7796 | { Bad_Opcode }, | |
7797 | { Bad_Opcode }, | |
c0f3af97 | 7798 | /* 50 */ |
592d1631 L |
7799 | { Bad_Opcode }, |
7800 | { Bad_Opcode }, | |
7801 | { Bad_Opcode }, | |
7802 | { Bad_Opcode }, | |
7803 | { Bad_Opcode }, | |
7804 | { Bad_Opcode }, | |
7805 | { Bad_Opcode }, | |
7806 | { Bad_Opcode }, | |
85f10a01 | 7807 | /* 58 */ |
592d1631 L |
7808 | { Bad_Opcode }, |
7809 | { Bad_Opcode }, | |
7810 | { Bad_Opcode }, | |
7811 | { Bad_Opcode }, | |
7812 | { Bad_Opcode }, | |
7813 | { Bad_Opcode }, | |
7814 | { Bad_Opcode }, | |
7815 | { Bad_Opcode }, | |
c1e679ec | 7816 | /* 60 */ |
592d1631 L |
7817 | { Bad_Opcode }, |
7818 | { Bad_Opcode }, | |
7819 | { Bad_Opcode }, | |
7820 | { Bad_Opcode }, | |
7821 | { Bad_Opcode }, | |
7822 | { Bad_Opcode }, | |
7823 | { Bad_Opcode }, | |
7824 | { Bad_Opcode }, | |
c0f3af97 | 7825 | /* 68 */ |
592d1631 L |
7826 | { Bad_Opcode }, |
7827 | { Bad_Opcode }, | |
7828 | { Bad_Opcode }, | |
7829 | { Bad_Opcode }, | |
7830 | { Bad_Opcode }, | |
7831 | { Bad_Opcode }, | |
7832 | { Bad_Opcode }, | |
7833 | { Bad_Opcode }, | |
85f10a01 | 7834 | /* 70 */ |
592d1631 L |
7835 | { Bad_Opcode }, |
7836 | { Bad_Opcode }, | |
7837 | { Bad_Opcode }, | |
7838 | { Bad_Opcode }, | |
7839 | { Bad_Opcode }, | |
7840 | { Bad_Opcode }, | |
7841 | { Bad_Opcode }, | |
7842 | { Bad_Opcode }, | |
85f10a01 | 7843 | /* 78 */ |
592d1631 L |
7844 | { Bad_Opcode }, |
7845 | { Bad_Opcode }, | |
7846 | { Bad_Opcode }, | |
7847 | { Bad_Opcode }, | |
7848 | { Bad_Opcode }, | |
7849 | { Bad_Opcode }, | |
7850 | { Bad_Opcode }, | |
7851 | { Bad_Opcode }, | |
85f10a01 | 7852 | /* 80 */ |
592d1631 L |
7853 | { Bad_Opcode }, |
7854 | { Bad_Opcode }, | |
7855 | { Bad_Opcode }, | |
7856 | { Bad_Opcode }, | |
7857 | { Bad_Opcode }, | |
3a2430e0 JB |
7858 | { "vpmacssww", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
7859 | { "vpmacsswd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, | |
7860 | { "vpmacssdql", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, | |
5dd85c99 | 7861 | /* 88 */ |
592d1631 L |
7862 | { Bad_Opcode }, |
7863 | { Bad_Opcode }, | |
7864 | { Bad_Opcode }, | |
7865 | { Bad_Opcode }, | |
7866 | { Bad_Opcode }, | |
7867 | { Bad_Opcode }, | |
3a2430e0 JB |
7868 | { "vpmacssdd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
7869 | { "vpmacssdqh", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, | |
5dd85c99 | 7870 | /* 90 */ |
592d1631 L |
7871 | { Bad_Opcode }, |
7872 | { Bad_Opcode }, | |
7873 | { Bad_Opcode }, | |
7874 | { Bad_Opcode }, | |
7875 | { Bad_Opcode }, | |
3a2430e0 JB |
7876 | { "vpmacsww", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
7877 | { "vpmacswd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, | |
7878 | { "vpmacsdql", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, | |
5dd85c99 | 7879 | /* 98 */ |
592d1631 L |
7880 | { Bad_Opcode }, |
7881 | { Bad_Opcode }, | |
7882 | { Bad_Opcode }, | |
7883 | { Bad_Opcode }, | |
7884 | { Bad_Opcode }, | |
7885 | { Bad_Opcode }, | |
3a2430e0 JB |
7886 | { "vpmacsdd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
7887 | { "vpmacsdqh", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, | |
5dd85c99 | 7888 | /* a0 */ |
592d1631 L |
7889 | { Bad_Opcode }, |
7890 | { Bad_Opcode }, | |
3a2430e0 JB |
7891 | { "vpcmov", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
7892 | { "vpperm", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, | |
592d1631 L |
7893 | { Bad_Opcode }, |
7894 | { Bad_Opcode }, | |
3a2430e0 | 7895 | { "vpmadcsswd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
592d1631 | 7896 | { Bad_Opcode }, |
5dd85c99 | 7897 | /* a8 */ |
592d1631 L |
7898 | { Bad_Opcode }, |
7899 | { Bad_Opcode }, | |
7900 | { Bad_Opcode }, | |
7901 | { Bad_Opcode }, | |
7902 | { Bad_Opcode }, | |
7903 | { Bad_Opcode }, | |
7904 | { Bad_Opcode }, | |
7905 | { Bad_Opcode }, | |
5dd85c99 | 7906 | /* b0 */ |
592d1631 L |
7907 | { Bad_Opcode }, |
7908 | { Bad_Opcode }, | |
7909 | { Bad_Opcode }, | |
7910 | { Bad_Opcode }, | |
7911 | { Bad_Opcode }, | |
7912 | { Bad_Opcode }, | |
3a2430e0 | 7913 | { "vpmadcswd", { XMVexW, Vex, EXVexW, EXVexW }, 0 }, |
592d1631 | 7914 | { Bad_Opcode }, |
5dd85c99 | 7915 | /* b8 */ |
592d1631 L |
7916 | { Bad_Opcode }, |
7917 | { Bad_Opcode }, | |
7918 | { Bad_Opcode }, | |
7919 | { Bad_Opcode }, | |
7920 | { Bad_Opcode }, | |
7921 | { Bad_Opcode }, | |
7922 | { Bad_Opcode }, | |
7923 | { Bad_Opcode }, | |
5dd85c99 | 7924 | /* c0 */ |
bf890a93 IT |
7925 | { "vprotb", { XM, Vex_2src_1, Ib }, 0 }, |
7926 | { "vprotw", { XM, Vex_2src_1, Ib }, 0 }, | |
7927 | { "vprotd", { XM, Vex_2src_1, Ib }, 0 }, | |
7928 | { "vprotq", { XM, Vex_2src_1, Ib }, 0 }, | |
592d1631 L |
7929 | { Bad_Opcode }, |
7930 | { Bad_Opcode }, | |
7931 | { Bad_Opcode }, | |
7932 | { Bad_Opcode }, | |
5dd85c99 | 7933 | /* c8 */ |
592d1631 L |
7934 | { Bad_Opcode }, |
7935 | { Bad_Opcode }, | |
7936 | { Bad_Opcode }, | |
7937 | { Bad_Opcode }, | |
ff688e1f L |
7938 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CC) }, |
7939 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CD) }, | |
7940 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CE) }, | |
7941 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CF) }, | |
5dd85c99 | 7942 | /* d0 */ |
592d1631 L |
7943 | { Bad_Opcode }, |
7944 | { Bad_Opcode }, | |
7945 | { Bad_Opcode }, | |
7946 | { Bad_Opcode }, | |
7947 | { Bad_Opcode }, | |
7948 | { Bad_Opcode }, | |
7949 | { Bad_Opcode }, | |
7950 | { Bad_Opcode }, | |
5dd85c99 | 7951 | /* d8 */ |
592d1631 L |
7952 | { Bad_Opcode }, |
7953 | { Bad_Opcode }, | |
7954 | { Bad_Opcode }, | |
7955 | { Bad_Opcode }, | |
7956 | { Bad_Opcode }, | |
7957 | { Bad_Opcode }, | |
7958 | { Bad_Opcode }, | |
7959 | { Bad_Opcode }, | |
5dd85c99 | 7960 | /* e0 */ |
592d1631 L |
7961 | { Bad_Opcode }, |
7962 | { Bad_Opcode }, | |
7963 | { Bad_Opcode }, | |
7964 | { Bad_Opcode }, | |
7965 | { Bad_Opcode }, | |
7966 | { Bad_Opcode }, | |
7967 | { Bad_Opcode }, | |
7968 | { Bad_Opcode }, | |
5dd85c99 | 7969 | /* e8 */ |
592d1631 L |
7970 | { Bad_Opcode }, |
7971 | { Bad_Opcode }, | |
7972 | { Bad_Opcode }, | |
7973 | { Bad_Opcode }, | |
ff688e1f L |
7974 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_EC) }, |
7975 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_ED) }, | |
7976 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_EE) }, | |
7977 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_EF) }, | |
5dd85c99 | 7978 | /* f0 */ |
592d1631 L |
7979 | { Bad_Opcode }, |
7980 | { Bad_Opcode }, | |
7981 | { Bad_Opcode }, | |
7982 | { Bad_Opcode }, | |
7983 | { Bad_Opcode }, | |
7984 | { Bad_Opcode }, | |
7985 | { Bad_Opcode }, | |
7986 | { Bad_Opcode }, | |
5dd85c99 | 7987 | /* f8 */ |
592d1631 L |
7988 | { Bad_Opcode }, |
7989 | { Bad_Opcode }, | |
7990 | { Bad_Opcode }, | |
7991 | { Bad_Opcode }, | |
7992 | { Bad_Opcode }, | |
7993 | { Bad_Opcode }, | |
7994 | { Bad_Opcode }, | |
7995 | { Bad_Opcode }, | |
5dd85c99 SP |
7996 | }, |
7997 | /* XOP_09 */ | |
7998 | { | |
7999 | /* 00 */ | |
592d1631 | 8000 | { Bad_Opcode }, |
2a2a0f38 QN |
8001 | { REG_TABLE (REG_XOP_TBM_01) }, |
8002 | { REG_TABLE (REG_XOP_TBM_02) }, | |
592d1631 L |
8003 | { Bad_Opcode }, |
8004 | { Bad_Opcode }, | |
8005 | { Bad_Opcode }, | |
8006 | { Bad_Opcode }, | |
8007 | { Bad_Opcode }, | |
5dd85c99 | 8008 | /* 08 */ |
592d1631 L |
8009 | { Bad_Opcode }, |
8010 | { Bad_Opcode }, | |
8011 | { Bad_Opcode }, | |
8012 | { Bad_Opcode }, | |
8013 | { Bad_Opcode }, | |
8014 | { Bad_Opcode }, | |
8015 | { Bad_Opcode }, | |
8016 | { Bad_Opcode }, | |
5dd85c99 | 8017 | /* 10 */ |
592d1631 L |
8018 | { Bad_Opcode }, |
8019 | { Bad_Opcode }, | |
5dd85c99 | 8020 | { REG_TABLE (REG_XOP_LWPCB) }, |
592d1631 L |
8021 | { Bad_Opcode }, |
8022 | { Bad_Opcode }, | |
8023 | { Bad_Opcode }, | |
8024 | { Bad_Opcode }, | |
8025 | { Bad_Opcode }, | |
5dd85c99 | 8026 | /* 18 */ |
592d1631 L |
8027 | { Bad_Opcode }, |
8028 | { Bad_Opcode }, | |
8029 | { Bad_Opcode }, | |
8030 | { Bad_Opcode }, | |
8031 | { Bad_Opcode }, | |
8032 | { Bad_Opcode }, | |
8033 | { Bad_Opcode }, | |
8034 | { Bad_Opcode }, | |
5dd85c99 | 8035 | /* 20 */ |
592d1631 L |
8036 | { Bad_Opcode }, |
8037 | { Bad_Opcode }, | |
8038 | { Bad_Opcode }, | |
8039 | { Bad_Opcode }, | |
8040 | { Bad_Opcode }, | |
8041 | { Bad_Opcode }, | |
8042 | { Bad_Opcode }, | |
8043 | { Bad_Opcode }, | |
5dd85c99 | 8044 | /* 28 */ |
592d1631 L |
8045 | { Bad_Opcode }, |
8046 | { Bad_Opcode }, | |
8047 | { Bad_Opcode }, | |
8048 | { Bad_Opcode }, | |
8049 | { Bad_Opcode }, | |
8050 | { Bad_Opcode }, | |
8051 | { Bad_Opcode }, | |
8052 | { Bad_Opcode }, | |
5dd85c99 | 8053 | /* 30 */ |
592d1631 L |
8054 | { Bad_Opcode }, |
8055 | { Bad_Opcode }, | |
8056 | { Bad_Opcode }, | |
8057 | { Bad_Opcode }, | |
8058 | { Bad_Opcode }, | |
8059 | { Bad_Opcode }, | |
8060 | { Bad_Opcode }, | |
8061 | { Bad_Opcode }, | |
5dd85c99 | 8062 | /* 38 */ |
592d1631 L |
8063 | { Bad_Opcode }, |
8064 | { Bad_Opcode }, | |
8065 | { Bad_Opcode }, | |
8066 | { Bad_Opcode }, | |
8067 | { Bad_Opcode }, | |
8068 | { Bad_Opcode }, | |
8069 | { Bad_Opcode }, | |
8070 | { Bad_Opcode }, | |
5dd85c99 | 8071 | /* 40 */ |
592d1631 L |
8072 | { Bad_Opcode }, |
8073 | { Bad_Opcode }, | |
8074 | { Bad_Opcode }, | |
8075 | { Bad_Opcode }, | |
8076 | { Bad_Opcode }, | |
8077 | { Bad_Opcode }, | |
8078 | { Bad_Opcode }, | |
8079 | { Bad_Opcode }, | |
5dd85c99 | 8080 | /* 48 */ |
592d1631 L |
8081 | { Bad_Opcode }, |
8082 | { Bad_Opcode }, | |
8083 | { Bad_Opcode }, | |
8084 | { Bad_Opcode }, | |
8085 | { Bad_Opcode }, | |
8086 | { Bad_Opcode }, | |
8087 | { Bad_Opcode }, | |
8088 | { Bad_Opcode }, | |
5dd85c99 | 8089 | /* 50 */ |
592d1631 L |
8090 | { Bad_Opcode }, |
8091 | { Bad_Opcode }, | |
8092 | { Bad_Opcode }, | |
8093 | { Bad_Opcode }, | |
8094 | { Bad_Opcode }, | |
8095 | { Bad_Opcode }, | |
8096 | { Bad_Opcode }, | |
8097 | { Bad_Opcode }, | |
5dd85c99 | 8098 | /* 58 */ |
592d1631 L |
8099 | { Bad_Opcode }, |
8100 | { Bad_Opcode }, | |
8101 | { Bad_Opcode }, | |
8102 | { Bad_Opcode }, | |
8103 | { Bad_Opcode }, | |
8104 | { Bad_Opcode }, | |
8105 | { Bad_Opcode }, | |
8106 | { Bad_Opcode }, | |
5dd85c99 | 8107 | /* 60 */ |
592d1631 L |
8108 | { Bad_Opcode }, |
8109 | { Bad_Opcode }, | |
8110 | { Bad_Opcode }, | |
8111 | { Bad_Opcode }, | |
8112 | { Bad_Opcode }, | |
8113 | { Bad_Opcode }, | |
8114 | { Bad_Opcode }, | |
8115 | { Bad_Opcode }, | |
5dd85c99 | 8116 | /* 68 */ |
592d1631 L |
8117 | { Bad_Opcode }, |
8118 | { Bad_Opcode }, | |
8119 | { Bad_Opcode }, | |
8120 | { Bad_Opcode }, | |
8121 | { Bad_Opcode }, | |
8122 | { Bad_Opcode }, | |
8123 | { Bad_Opcode }, | |
8124 | { Bad_Opcode }, | |
5dd85c99 | 8125 | /* 70 */ |
592d1631 L |
8126 | { Bad_Opcode }, |
8127 | { Bad_Opcode }, | |
8128 | { Bad_Opcode }, | |
8129 | { Bad_Opcode }, | |
8130 | { Bad_Opcode }, | |
8131 | { Bad_Opcode }, | |
8132 | { Bad_Opcode }, | |
8133 | { Bad_Opcode }, | |
5dd85c99 | 8134 | /* 78 */ |
592d1631 L |
8135 | { Bad_Opcode }, |
8136 | { Bad_Opcode }, | |
8137 | { Bad_Opcode }, | |
8138 | { Bad_Opcode }, | |
8139 | { Bad_Opcode }, | |
8140 | { Bad_Opcode }, | |
8141 | { Bad_Opcode }, | |
8142 | { Bad_Opcode }, | |
5dd85c99 | 8143 | /* 80 */ |
592a252b L |
8144 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_09_80) }, |
8145 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_09_81) }, | |
bf890a93 IT |
8146 | { "vfrczss", { XM, EXd }, 0 }, |
8147 | { "vfrczsd", { XM, EXq }, 0 }, | |
592d1631 L |
8148 | { Bad_Opcode }, |
8149 | { Bad_Opcode }, | |
8150 | { Bad_Opcode }, | |
8151 | { Bad_Opcode }, | |
5dd85c99 | 8152 | /* 88 */ |
592d1631 L |
8153 | { Bad_Opcode }, |
8154 | { Bad_Opcode }, | |
8155 | { Bad_Opcode }, | |
8156 | { Bad_Opcode }, | |
8157 | { Bad_Opcode }, | |
8158 | { Bad_Opcode }, | |
8159 | { Bad_Opcode }, | |
8160 | { Bad_Opcode }, | |
5dd85c99 | 8161 | /* 90 */ |
bf890a93 IT |
8162 | { "vprotb", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, |
8163 | { "vprotw", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8164 | { "vprotd", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8165 | { "vprotq", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8166 | { "vpshlb", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8167 | { "vpshlw", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8168 | { "vpshld", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8169 | { "vpshlq", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
5dd85c99 | 8170 | /* 98 */ |
bf890a93 IT |
8171 | { "vpshab", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, |
8172 | { "vpshaw", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8173 | { "vpshad", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8174 | { "vpshaq", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
592d1631 L |
8175 | { Bad_Opcode }, |
8176 | { Bad_Opcode }, | |
8177 | { Bad_Opcode }, | |
8178 | { Bad_Opcode }, | |
5dd85c99 | 8179 | /* a0 */ |
592d1631 L |
8180 | { Bad_Opcode }, |
8181 | { Bad_Opcode }, | |
8182 | { Bad_Opcode }, | |
8183 | { Bad_Opcode }, | |
8184 | { Bad_Opcode }, | |
8185 | { Bad_Opcode }, | |
8186 | { Bad_Opcode }, | |
8187 | { Bad_Opcode }, | |
5dd85c99 | 8188 | /* a8 */ |
592d1631 L |
8189 | { Bad_Opcode }, |
8190 | { Bad_Opcode }, | |
8191 | { Bad_Opcode }, | |
8192 | { Bad_Opcode }, | |
8193 | { Bad_Opcode }, | |
8194 | { Bad_Opcode }, | |
8195 | { Bad_Opcode }, | |
8196 | { Bad_Opcode }, | |
5dd85c99 | 8197 | /* b0 */ |
592d1631 L |
8198 | { Bad_Opcode }, |
8199 | { Bad_Opcode }, | |
8200 | { Bad_Opcode }, | |
8201 | { Bad_Opcode }, | |
8202 | { Bad_Opcode }, | |
8203 | { Bad_Opcode }, | |
8204 | { Bad_Opcode }, | |
8205 | { Bad_Opcode }, | |
5dd85c99 | 8206 | /* b8 */ |
592d1631 L |
8207 | { Bad_Opcode }, |
8208 | { Bad_Opcode }, | |
8209 | { Bad_Opcode }, | |
8210 | { Bad_Opcode }, | |
8211 | { Bad_Opcode }, | |
8212 | { Bad_Opcode }, | |
8213 | { Bad_Opcode }, | |
8214 | { Bad_Opcode }, | |
5dd85c99 | 8215 | /* c0 */ |
592d1631 | 8216 | { Bad_Opcode }, |
bf890a93 IT |
8217 | { "vphaddbw", { XM, EXxmm }, 0 }, |
8218 | { "vphaddbd", { XM, EXxmm }, 0 }, | |
8219 | { "vphaddbq", { XM, EXxmm }, 0 }, | |
592d1631 L |
8220 | { Bad_Opcode }, |
8221 | { Bad_Opcode }, | |
bf890a93 IT |
8222 | { "vphaddwd", { XM, EXxmm }, 0 }, |
8223 | { "vphaddwq", { XM, EXxmm }, 0 }, | |
5dd85c99 | 8224 | /* c8 */ |
592d1631 L |
8225 | { Bad_Opcode }, |
8226 | { Bad_Opcode }, | |
8227 | { Bad_Opcode }, | |
bf890a93 | 8228 | { "vphadddq", { XM, EXxmm }, 0 }, |
592d1631 L |
8229 | { Bad_Opcode }, |
8230 | { Bad_Opcode }, | |
8231 | { Bad_Opcode }, | |
8232 | { Bad_Opcode }, | |
5dd85c99 | 8233 | /* d0 */ |
592d1631 | 8234 | { Bad_Opcode }, |
bf890a93 IT |
8235 | { "vphaddubw", { XM, EXxmm }, 0 }, |
8236 | { "vphaddubd", { XM, EXxmm }, 0 }, | |
8237 | { "vphaddubq", { XM, EXxmm }, 0 }, | |
592d1631 L |
8238 | { Bad_Opcode }, |
8239 | { Bad_Opcode }, | |
bf890a93 IT |
8240 | { "vphadduwd", { XM, EXxmm }, 0 }, |
8241 | { "vphadduwq", { XM, EXxmm }, 0 }, | |
5dd85c99 | 8242 | /* d8 */ |
592d1631 L |
8243 | { Bad_Opcode }, |
8244 | { Bad_Opcode }, | |
8245 | { Bad_Opcode }, | |
bf890a93 | 8246 | { "vphaddudq", { XM, EXxmm }, 0 }, |
592d1631 L |
8247 | { Bad_Opcode }, |
8248 | { Bad_Opcode }, | |
8249 | { Bad_Opcode }, | |
8250 | { Bad_Opcode }, | |
5dd85c99 | 8251 | /* e0 */ |
592d1631 | 8252 | { Bad_Opcode }, |
bf890a93 IT |
8253 | { "vphsubbw", { XM, EXxmm }, 0 }, |
8254 | { "vphsubwd", { XM, EXxmm }, 0 }, | |
8255 | { "vphsubdq", { XM, EXxmm }, 0 }, | |
592d1631 L |
8256 | { Bad_Opcode }, |
8257 | { Bad_Opcode }, | |
8258 | { Bad_Opcode }, | |
8259 | { Bad_Opcode }, | |
4e7d34a6 | 8260 | /* e8 */ |
592d1631 L |
8261 | { Bad_Opcode }, |
8262 | { Bad_Opcode }, | |
8263 | { Bad_Opcode }, | |
8264 | { Bad_Opcode }, | |
8265 | { Bad_Opcode }, | |
8266 | { Bad_Opcode }, | |
8267 | { Bad_Opcode }, | |
8268 | { Bad_Opcode }, | |
4e7d34a6 | 8269 | /* f0 */ |
592d1631 L |
8270 | { Bad_Opcode }, |
8271 | { Bad_Opcode }, | |
8272 | { Bad_Opcode }, | |
8273 | { Bad_Opcode }, | |
8274 | { Bad_Opcode }, | |
8275 | { Bad_Opcode }, | |
8276 | { Bad_Opcode }, | |
8277 | { Bad_Opcode }, | |
4e7d34a6 | 8278 | /* f8 */ |
592d1631 L |
8279 | { Bad_Opcode }, |
8280 | { Bad_Opcode }, | |
8281 | { Bad_Opcode }, | |
8282 | { Bad_Opcode }, | |
8283 | { Bad_Opcode }, | |
8284 | { Bad_Opcode }, | |
8285 | { Bad_Opcode }, | |
8286 | { Bad_Opcode }, | |
4e7d34a6 | 8287 | }, |
f88c9eb0 | 8288 | /* XOP_0A */ |
4e7d34a6 L |
8289 | { |
8290 | /* 00 */ | |
592d1631 L |
8291 | { Bad_Opcode }, |
8292 | { Bad_Opcode }, | |
8293 | { Bad_Opcode }, | |
8294 | { Bad_Opcode }, | |
8295 | { Bad_Opcode }, | |
8296 | { Bad_Opcode }, | |
8297 | { Bad_Opcode }, | |
8298 | { Bad_Opcode }, | |
4e7d34a6 | 8299 | /* 08 */ |
592d1631 L |
8300 | { Bad_Opcode }, |
8301 | { Bad_Opcode }, | |
8302 | { Bad_Opcode }, | |
8303 | { Bad_Opcode }, | |
8304 | { Bad_Opcode }, | |
8305 | { Bad_Opcode }, | |
8306 | { Bad_Opcode }, | |
8307 | { Bad_Opcode }, | |
4e7d34a6 | 8308 | /* 10 */ |
bf890a93 | 8309 | { "bextr", { Gv, Ev, Iq }, 0 }, |
592d1631 | 8310 | { Bad_Opcode }, |
f88c9eb0 | 8311 | { REG_TABLE (REG_XOP_LWP) }, |
592d1631 L |
8312 | { Bad_Opcode }, |
8313 | { Bad_Opcode }, | |
8314 | { Bad_Opcode }, | |
8315 | { Bad_Opcode }, | |
8316 | { Bad_Opcode }, | |
4e7d34a6 | 8317 | /* 18 */ |
592d1631 L |
8318 | { Bad_Opcode }, |
8319 | { Bad_Opcode }, | |
8320 | { Bad_Opcode }, | |
8321 | { Bad_Opcode }, | |
8322 | { Bad_Opcode }, | |
8323 | { Bad_Opcode }, | |
8324 | { Bad_Opcode }, | |
8325 | { Bad_Opcode }, | |
4e7d34a6 | 8326 | /* 20 */ |
592d1631 L |
8327 | { Bad_Opcode }, |
8328 | { Bad_Opcode }, | |
8329 | { Bad_Opcode }, | |
8330 | { Bad_Opcode }, | |
8331 | { Bad_Opcode }, | |
8332 | { Bad_Opcode }, | |
8333 | { Bad_Opcode }, | |
8334 | { Bad_Opcode }, | |
4e7d34a6 | 8335 | /* 28 */ |
592d1631 L |
8336 | { Bad_Opcode }, |
8337 | { Bad_Opcode }, | |
8338 | { Bad_Opcode }, | |
8339 | { Bad_Opcode }, | |
8340 | { Bad_Opcode }, | |
8341 | { Bad_Opcode }, | |
8342 | { Bad_Opcode }, | |
8343 | { Bad_Opcode }, | |
4e7d34a6 | 8344 | /* 30 */ |
592d1631 L |
8345 | { Bad_Opcode }, |
8346 | { Bad_Opcode }, | |
8347 | { Bad_Opcode }, | |
8348 | { Bad_Opcode }, | |
8349 | { Bad_Opcode }, | |
8350 | { Bad_Opcode }, | |
8351 | { Bad_Opcode }, | |
8352 | { Bad_Opcode }, | |
c0f3af97 | 8353 | /* 38 */ |
592d1631 L |
8354 | { Bad_Opcode }, |
8355 | { Bad_Opcode }, | |
8356 | { Bad_Opcode }, | |
8357 | { Bad_Opcode }, | |
8358 | { Bad_Opcode }, | |
8359 | { Bad_Opcode }, | |
8360 | { Bad_Opcode }, | |
8361 | { Bad_Opcode }, | |
c0f3af97 | 8362 | /* 40 */ |
592d1631 L |
8363 | { Bad_Opcode }, |
8364 | { Bad_Opcode }, | |
8365 | { Bad_Opcode }, | |
8366 | { Bad_Opcode }, | |
8367 | { Bad_Opcode }, | |
8368 | { Bad_Opcode }, | |
8369 | { Bad_Opcode }, | |
8370 | { Bad_Opcode }, | |
c1e679ec | 8371 | /* 48 */ |
592d1631 L |
8372 | { Bad_Opcode }, |
8373 | { Bad_Opcode }, | |
8374 | { Bad_Opcode }, | |
8375 | { Bad_Opcode }, | |
8376 | { Bad_Opcode }, | |
8377 | { Bad_Opcode }, | |
8378 | { Bad_Opcode }, | |
8379 | { Bad_Opcode }, | |
c1e679ec | 8380 | /* 50 */ |
592d1631 L |
8381 | { Bad_Opcode }, |
8382 | { Bad_Opcode }, | |
8383 | { Bad_Opcode }, | |
8384 | { Bad_Opcode }, | |
8385 | { Bad_Opcode }, | |
8386 | { Bad_Opcode }, | |
8387 | { Bad_Opcode }, | |
8388 | { Bad_Opcode }, | |
4e7d34a6 | 8389 | /* 58 */ |
592d1631 L |
8390 | { Bad_Opcode }, |
8391 | { Bad_Opcode }, | |
8392 | { Bad_Opcode }, | |
8393 | { Bad_Opcode }, | |
8394 | { Bad_Opcode }, | |
8395 | { Bad_Opcode }, | |
8396 | { Bad_Opcode }, | |
8397 | { Bad_Opcode }, | |
4e7d34a6 | 8398 | /* 60 */ |
592d1631 L |
8399 | { Bad_Opcode }, |
8400 | { Bad_Opcode }, | |
8401 | { Bad_Opcode }, | |
8402 | { Bad_Opcode }, | |
8403 | { Bad_Opcode }, | |
8404 | { Bad_Opcode }, | |
8405 | { Bad_Opcode }, | |
8406 | { Bad_Opcode }, | |
4e7d34a6 | 8407 | /* 68 */ |
592d1631 L |
8408 | { Bad_Opcode }, |
8409 | { Bad_Opcode }, | |
8410 | { Bad_Opcode }, | |
8411 | { Bad_Opcode }, | |
8412 | { Bad_Opcode }, | |
8413 | { Bad_Opcode }, | |
8414 | { Bad_Opcode }, | |
8415 | { Bad_Opcode }, | |
4e7d34a6 | 8416 | /* 70 */ |
592d1631 L |
8417 | { Bad_Opcode }, |
8418 | { Bad_Opcode }, | |
8419 | { Bad_Opcode }, | |
8420 | { Bad_Opcode }, | |
8421 | { Bad_Opcode }, | |
8422 | { Bad_Opcode }, | |
8423 | { Bad_Opcode }, | |
8424 | { Bad_Opcode }, | |
4e7d34a6 | 8425 | /* 78 */ |
592d1631 L |
8426 | { Bad_Opcode }, |
8427 | { Bad_Opcode }, | |
8428 | { Bad_Opcode }, | |
8429 | { Bad_Opcode }, | |
8430 | { Bad_Opcode }, | |
8431 | { Bad_Opcode }, | |
8432 | { Bad_Opcode }, | |
8433 | { Bad_Opcode }, | |
4e7d34a6 | 8434 | /* 80 */ |
592d1631 L |
8435 | { Bad_Opcode }, |
8436 | { Bad_Opcode }, | |
8437 | { Bad_Opcode }, | |
8438 | { Bad_Opcode }, | |
8439 | { Bad_Opcode }, | |
8440 | { Bad_Opcode }, | |
8441 | { Bad_Opcode }, | |
8442 | { Bad_Opcode }, | |
4e7d34a6 | 8443 | /* 88 */ |
592d1631 L |
8444 | { Bad_Opcode }, |
8445 | { Bad_Opcode }, | |
8446 | { Bad_Opcode }, | |
8447 | { Bad_Opcode }, | |
8448 | { Bad_Opcode }, | |
8449 | { Bad_Opcode }, | |
8450 | { Bad_Opcode }, | |
8451 | { Bad_Opcode }, | |
4e7d34a6 | 8452 | /* 90 */ |
592d1631 L |
8453 | { Bad_Opcode }, |
8454 | { Bad_Opcode }, | |
8455 | { Bad_Opcode }, | |
8456 | { Bad_Opcode }, | |
8457 | { Bad_Opcode }, | |
8458 | { Bad_Opcode }, | |
8459 | { Bad_Opcode }, | |
8460 | { Bad_Opcode }, | |
4e7d34a6 | 8461 | /* 98 */ |
592d1631 L |
8462 | { Bad_Opcode }, |
8463 | { Bad_Opcode }, | |
8464 | { Bad_Opcode }, | |
8465 | { Bad_Opcode }, | |
8466 | { Bad_Opcode }, | |
8467 | { Bad_Opcode }, | |
8468 | { Bad_Opcode }, | |
8469 | { Bad_Opcode }, | |
4e7d34a6 | 8470 | /* a0 */ |
592d1631 L |
8471 | { Bad_Opcode }, |
8472 | { Bad_Opcode }, | |
8473 | { Bad_Opcode }, | |
8474 | { Bad_Opcode }, | |
8475 | { Bad_Opcode }, | |
8476 | { Bad_Opcode }, | |
8477 | { Bad_Opcode }, | |
8478 | { Bad_Opcode }, | |
4e7d34a6 | 8479 | /* a8 */ |
592d1631 L |
8480 | { Bad_Opcode }, |
8481 | { Bad_Opcode }, | |
8482 | { Bad_Opcode }, | |
8483 | { Bad_Opcode }, | |
8484 | { Bad_Opcode }, | |
8485 | { Bad_Opcode }, | |
8486 | { Bad_Opcode }, | |
8487 | { Bad_Opcode }, | |
d5d7db8e | 8488 | /* b0 */ |
592d1631 L |
8489 | { Bad_Opcode }, |
8490 | { Bad_Opcode }, | |
8491 | { Bad_Opcode }, | |
8492 | { Bad_Opcode }, | |
8493 | { Bad_Opcode }, | |
8494 | { Bad_Opcode }, | |
8495 | { Bad_Opcode }, | |
8496 | { Bad_Opcode }, | |
85f10a01 | 8497 | /* b8 */ |
592d1631 L |
8498 | { Bad_Opcode }, |
8499 | { Bad_Opcode }, | |
8500 | { Bad_Opcode }, | |
8501 | { Bad_Opcode }, | |
8502 | { Bad_Opcode }, | |
8503 | { Bad_Opcode }, | |
8504 | { Bad_Opcode }, | |
8505 | { Bad_Opcode }, | |
85f10a01 | 8506 | /* c0 */ |
592d1631 L |
8507 | { Bad_Opcode }, |
8508 | { Bad_Opcode }, | |
8509 | { Bad_Opcode }, | |
8510 | { Bad_Opcode }, | |
8511 | { Bad_Opcode }, | |
8512 | { Bad_Opcode }, | |
8513 | { Bad_Opcode }, | |
8514 | { Bad_Opcode }, | |
85f10a01 | 8515 | /* c8 */ |
592d1631 L |
8516 | { Bad_Opcode }, |
8517 | { Bad_Opcode }, | |
8518 | { Bad_Opcode }, | |
8519 | { Bad_Opcode }, | |
8520 | { Bad_Opcode }, | |
8521 | { Bad_Opcode }, | |
8522 | { Bad_Opcode }, | |
8523 | { Bad_Opcode }, | |
85f10a01 | 8524 | /* d0 */ |
592d1631 L |
8525 | { Bad_Opcode }, |
8526 | { Bad_Opcode }, | |
8527 | { Bad_Opcode }, | |
8528 | { Bad_Opcode }, | |
8529 | { Bad_Opcode }, | |
8530 | { Bad_Opcode }, | |
8531 | { Bad_Opcode }, | |
8532 | { Bad_Opcode }, | |
85f10a01 | 8533 | /* d8 */ |
592d1631 L |
8534 | { Bad_Opcode }, |
8535 | { Bad_Opcode }, | |
8536 | { Bad_Opcode }, | |
8537 | { Bad_Opcode }, | |
8538 | { Bad_Opcode }, | |
8539 | { Bad_Opcode }, | |
8540 | { Bad_Opcode }, | |
8541 | { Bad_Opcode }, | |
85f10a01 | 8542 | /* e0 */ |
592d1631 L |
8543 | { Bad_Opcode }, |
8544 | { Bad_Opcode }, | |
8545 | { Bad_Opcode }, | |
8546 | { Bad_Opcode }, | |
8547 | { Bad_Opcode }, | |
8548 | { Bad_Opcode }, | |
8549 | { Bad_Opcode }, | |
8550 | { Bad_Opcode }, | |
85f10a01 | 8551 | /* e8 */ |
592d1631 L |
8552 | { Bad_Opcode }, |
8553 | { Bad_Opcode }, | |
8554 | { Bad_Opcode }, | |
8555 | { Bad_Opcode }, | |
8556 | { Bad_Opcode }, | |
8557 | { Bad_Opcode }, | |
8558 | { Bad_Opcode }, | |
8559 | { Bad_Opcode }, | |
85f10a01 | 8560 | /* f0 */ |
592d1631 L |
8561 | { Bad_Opcode }, |
8562 | { Bad_Opcode }, | |
8563 | { Bad_Opcode }, | |
8564 | { Bad_Opcode }, | |
8565 | { Bad_Opcode }, | |
8566 | { Bad_Opcode }, | |
8567 | { Bad_Opcode }, | |
8568 | { Bad_Opcode }, | |
85f10a01 | 8569 | /* f8 */ |
592d1631 L |
8570 | { Bad_Opcode }, |
8571 | { Bad_Opcode }, | |
8572 | { Bad_Opcode }, | |
8573 | { Bad_Opcode }, | |
8574 | { Bad_Opcode }, | |
8575 | { Bad_Opcode }, | |
8576 | { Bad_Opcode }, | |
8577 | { Bad_Opcode }, | |
85f10a01 | 8578 | }, |
c0f3af97 L |
8579 | }; |
8580 | ||
8581 | static const struct dis386 vex_table[][256] = { | |
8582 | /* VEX_0F */ | |
85f10a01 MM |
8583 | { |
8584 | /* 00 */ | |
592d1631 L |
8585 | { Bad_Opcode }, |
8586 | { Bad_Opcode }, | |
8587 | { Bad_Opcode }, | |
8588 | { Bad_Opcode }, | |
8589 | { Bad_Opcode }, | |
8590 | { Bad_Opcode }, | |
8591 | { Bad_Opcode }, | |
8592 | { Bad_Opcode }, | |
85f10a01 | 8593 | /* 08 */ |
592d1631 L |
8594 | { Bad_Opcode }, |
8595 | { Bad_Opcode }, | |
8596 | { Bad_Opcode }, | |
8597 | { Bad_Opcode }, | |
8598 | { Bad_Opcode }, | |
8599 | { Bad_Opcode }, | |
8600 | { Bad_Opcode }, | |
8601 | { Bad_Opcode }, | |
c0f3af97 | 8602 | /* 10 */ |
592a252b L |
8603 | { PREFIX_TABLE (PREFIX_VEX_0F10) }, |
8604 | { PREFIX_TABLE (PREFIX_VEX_0F11) }, | |
8605 | { PREFIX_TABLE (PREFIX_VEX_0F12) }, | |
8606 | { MOD_TABLE (MOD_VEX_0F13) }, | |
8607 | { VEX_W_TABLE (VEX_W_0F14) }, | |
8608 | { VEX_W_TABLE (VEX_W_0F15) }, | |
8609 | { PREFIX_TABLE (PREFIX_VEX_0F16) }, | |
8610 | { MOD_TABLE (MOD_VEX_0F17) }, | |
c0f3af97 | 8611 | /* 18 */ |
592d1631 L |
8612 | { Bad_Opcode }, |
8613 | { Bad_Opcode }, | |
8614 | { Bad_Opcode }, | |
8615 | { Bad_Opcode }, | |
8616 | { Bad_Opcode }, | |
8617 | { Bad_Opcode }, | |
8618 | { Bad_Opcode }, | |
8619 | { Bad_Opcode }, | |
c0f3af97 | 8620 | /* 20 */ |
592d1631 L |
8621 | { Bad_Opcode }, |
8622 | { Bad_Opcode }, | |
8623 | { Bad_Opcode }, | |
8624 | { Bad_Opcode }, | |
8625 | { Bad_Opcode }, | |
8626 | { Bad_Opcode }, | |
8627 | { Bad_Opcode }, | |
8628 | { Bad_Opcode }, | |
c0f3af97 | 8629 | /* 28 */ |
592a252b L |
8630 | { VEX_W_TABLE (VEX_W_0F28) }, |
8631 | { VEX_W_TABLE (VEX_W_0F29) }, | |
8632 | { PREFIX_TABLE (PREFIX_VEX_0F2A) }, | |
8633 | { MOD_TABLE (MOD_VEX_0F2B) }, | |
8634 | { PREFIX_TABLE (PREFIX_VEX_0F2C) }, | |
8635 | { PREFIX_TABLE (PREFIX_VEX_0F2D) }, | |
8636 | { PREFIX_TABLE (PREFIX_VEX_0F2E) }, | |
8637 | { PREFIX_TABLE (PREFIX_VEX_0F2F) }, | |
85f10a01 | 8638 | /* 30 */ |
592d1631 L |
8639 | { Bad_Opcode }, |
8640 | { Bad_Opcode }, | |
8641 | { Bad_Opcode }, | |
8642 | { Bad_Opcode }, | |
8643 | { Bad_Opcode }, | |
8644 | { Bad_Opcode }, | |
8645 | { Bad_Opcode }, | |
8646 | { Bad_Opcode }, | |
4e7d34a6 | 8647 | /* 38 */ |
592d1631 L |
8648 | { Bad_Opcode }, |
8649 | { Bad_Opcode }, | |
8650 | { Bad_Opcode }, | |
8651 | { Bad_Opcode }, | |
8652 | { Bad_Opcode }, | |
8653 | { Bad_Opcode }, | |
8654 | { Bad_Opcode }, | |
8655 | { Bad_Opcode }, | |
d5d7db8e | 8656 | /* 40 */ |
592d1631 | 8657 | { Bad_Opcode }, |
43234a1e L |
8658 | { PREFIX_TABLE (PREFIX_VEX_0F41) }, |
8659 | { PREFIX_TABLE (PREFIX_VEX_0F42) }, | |
592d1631 | 8660 | { Bad_Opcode }, |
43234a1e L |
8661 | { PREFIX_TABLE (PREFIX_VEX_0F44) }, |
8662 | { PREFIX_TABLE (PREFIX_VEX_0F45) }, | |
8663 | { PREFIX_TABLE (PREFIX_VEX_0F46) }, | |
8664 | { PREFIX_TABLE (PREFIX_VEX_0F47) }, | |
85f10a01 | 8665 | /* 48 */ |
592d1631 L |
8666 | { Bad_Opcode }, |
8667 | { Bad_Opcode }, | |
1ba585e8 | 8668 | { PREFIX_TABLE (PREFIX_VEX_0F4A) }, |
43234a1e | 8669 | { PREFIX_TABLE (PREFIX_VEX_0F4B) }, |
592d1631 L |
8670 | { Bad_Opcode }, |
8671 | { Bad_Opcode }, | |
8672 | { Bad_Opcode }, | |
8673 | { Bad_Opcode }, | |
d5d7db8e | 8674 | /* 50 */ |
592a252b L |
8675 | { MOD_TABLE (MOD_VEX_0F50) }, |
8676 | { PREFIX_TABLE (PREFIX_VEX_0F51) }, | |
8677 | { PREFIX_TABLE (PREFIX_VEX_0F52) }, | |
8678 | { PREFIX_TABLE (PREFIX_VEX_0F53) }, | |
bf890a93 IT |
8679 | { "vandpX", { XM, Vex, EXx }, 0 }, |
8680 | { "vandnpX", { XM, Vex, EXx }, 0 }, | |
8681 | { "vorpX", { XM, Vex, EXx }, 0 }, | |
8682 | { "vxorpX", { XM, Vex, EXx }, 0 }, | |
c0f3af97 | 8683 | /* 58 */ |
592a252b L |
8684 | { PREFIX_TABLE (PREFIX_VEX_0F58) }, |
8685 | { PREFIX_TABLE (PREFIX_VEX_0F59) }, | |
8686 | { PREFIX_TABLE (PREFIX_VEX_0F5A) }, | |
8687 | { PREFIX_TABLE (PREFIX_VEX_0F5B) }, | |
8688 | { PREFIX_TABLE (PREFIX_VEX_0F5C) }, | |
8689 | { PREFIX_TABLE (PREFIX_VEX_0F5D) }, | |
8690 | { PREFIX_TABLE (PREFIX_VEX_0F5E) }, | |
8691 | { PREFIX_TABLE (PREFIX_VEX_0F5F) }, | |
c0f3af97 | 8692 | /* 60 */ |
592a252b L |
8693 | { PREFIX_TABLE (PREFIX_VEX_0F60) }, |
8694 | { PREFIX_TABLE (PREFIX_VEX_0F61) }, | |
8695 | { PREFIX_TABLE (PREFIX_VEX_0F62) }, | |
8696 | { PREFIX_TABLE (PREFIX_VEX_0F63) }, | |
8697 | { PREFIX_TABLE (PREFIX_VEX_0F64) }, | |
8698 | { PREFIX_TABLE (PREFIX_VEX_0F65) }, | |
8699 | { PREFIX_TABLE (PREFIX_VEX_0F66) }, | |
8700 | { PREFIX_TABLE (PREFIX_VEX_0F67) }, | |
c0f3af97 | 8701 | /* 68 */ |
592a252b L |
8702 | { PREFIX_TABLE (PREFIX_VEX_0F68) }, |
8703 | { PREFIX_TABLE (PREFIX_VEX_0F69) }, | |
8704 | { PREFIX_TABLE (PREFIX_VEX_0F6A) }, | |
8705 | { PREFIX_TABLE (PREFIX_VEX_0F6B) }, | |
8706 | { PREFIX_TABLE (PREFIX_VEX_0F6C) }, | |
8707 | { PREFIX_TABLE (PREFIX_VEX_0F6D) }, | |
8708 | { PREFIX_TABLE (PREFIX_VEX_0F6E) }, | |
8709 | { PREFIX_TABLE (PREFIX_VEX_0F6F) }, | |
c0f3af97 | 8710 | /* 70 */ |
592a252b L |
8711 | { PREFIX_TABLE (PREFIX_VEX_0F70) }, |
8712 | { REG_TABLE (REG_VEX_0F71) }, | |
8713 | { REG_TABLE (REG_VEX_0F72) }, | |
8714 | { REG_TABLE (REG_VEX_0F73) }, | |
8715 | { PREFIX_TABLE (PREFIX_VEX_0F74) }, | |
8716 | { PREFIX_TABLE (PREFIX_VEX_0F75) }, | |
8717 | { PREFIX_TABLE (PREFIX_VEX_0F76) }, | |
8718 | { PREFIX_TABLE (PREFIX_VEX_0F77) }, | |
c0f3af97 | 8719 | /* 78 */ |
592d1631 L |
8720 | { Bad_Opcode }, |
8721 | { Bad_Opcode }, | |
8722 | { Bad_Opcode }, | |
8723 | { Bad_Opcode }, | |
592a252b L |
8724 | { PREFIX_TABLE (PREFIX_VEX_0F7C) }, |
8725 | { PREFIX_TABLE (PREFIX_VEX_0F7D) }, | |
8726 | { PREFIX_TABLE (PREFIX_VEX_0F7E) }, | |
8727 | { PREFIX_TABLE (PREFIX_VEX_0F7F) }, | |
c0f3af97 | 8728 | /* 80 */ |
592d1631 L |
8729 | { Bad_Opcode }, |
8730 | { Bad_Opcode }, | |
8731 | { Bad_Opcode }, | |
8732 | { Bad_Opcode }, | |
8733 | { Bad_Opcode }, | |
8734 | { Bad_Opcode }, | |
8735 | { Bad_Opcode }, | |
8736 | { Bad_Opcode }, | |
c0f3af97 | 8737 | /* 88 */ |
592d1631 L |
8738 | { Bad_Opcode }, |
8739 | { Bad_Opcode }, | |
8740 | { Bad_Opcode }, | |
8741 | { Bad_Opcode }, | |
8742 | { Bad_Opcode }, | |
8743 | { Bad_Opcode }, | |
8744 | { Bad_Opcode }, | |
8745 | { Bad_Opcode }, | |
c0f3af97 | 8746 | /* 90 */ |
43234a1e L |
8747 | { PREFIX_TABLE (PREFIX_VEX_0F90) }, |
8748 | { PREFIX_TABLE (PREFIX_VEX_0F91) }, | |
8749 | { PREFIX_TABLE (PREFIX_VEX_0F92) }, | |
8750 | { PREFIX_TABLE (PREFIX_VEX_0F93) }, | |
592d1631 L |
8751 | { Bad_Opcode }, |
8752 | { Bad_Opcode }, | |
8753 | { Bad_Opcode }, | |
8754 | { Bad_Opcode }, | |
c0f3af97 | 8755 | /* 98 */ |
43234a1e | 8756 | { PREFIX_TABLE (PREFIX_VEX_0F98) }, |
1ba585e8 | 8757 | { PREFIX_TABLE (PREFIX_VEX_0F99) }, |
592d1631 L |
8758 | { Bad_Opcode }, |
8759 | { Bad_Opcode }, | |
8760 | { Bad_Opcode }, | |
8761 | { Bad_Opcode }, | |
8762 | { Bad_Opcode }, | |
8763 | { Bad_Opcode }, | |
c0f3af97 | 8764 | /* a0 */ |
592d1631 L |
8765 | { Bad_Opcode }, |
8766 | { Bad_Opcode }, | |
8767 | { Bad_Opcode }, | |
8768 | { Bad_Opcode }, | |
8769 | { Bad_Opcode }, | |
8770 | { Bad_Opcode }, | |
8771 | { Bad_Opcode }, | |
8772 | { Bad_Opcode }, | |
c0f3af97 | 8773 | /* a8 */ |
592d1631 L |
8774 | { Bad_Opcode }, |
8775 | { Bad_Opcode }, | |
8776 | { Bad_Opcode }, | |
8777 | { Bad_Opcode }, | |
8778 | { Bad_Opcode }, | |
8779 | { Bad_Opcode }, | |
592a252b | 8780 | { REG_TABLE (REG_VEX_0FAE) }, |
592d1631 | 8781 | { Bad_Opcode }, |
c0f3af97 | 8782 | /* b0 */ |
592d1631 L |
8783 | { Bad_Opcode }, |
8784 | { Bad_Opcode }, | |
8785 | { Bad_Opcode }, | |
8786 | { Bad_Opcode }, | |
8787 | { Bad_Opcode }, | |
8788 | { Bad_Opcode }, | |
8789 | { Bad_Opcode }, | |
8790 | { Bad_Opcode }, | |
c0f3af97 | 8791 | /* b8 */ |
592d1631 L |
8792 | { Bad_Opcode }, |
8793 | { Bad_Opcode }, | |
8794 | { Bad_Opcode }, | |
8795 | { Bad_Opcode }, | |
8796 | { Bad_Opcode }, | |
8797 | { Bad_Opcode }, | |
8798 | { Bad_Opcode }, | |
8799 | { Bad_Opcode }, | |
c0f3af97 | 8800 | /* c0 */ |
592d1631 L |
8801 | { Bad_Opcode }, |
8802 | { Bad_Opcode }, | |
592a252b | 8803 | { PREFIX_TABLE (PREFIX_VEX_0FC2) }, |
592d1631 | 8804 | { Bad_Opcode }, |
592a252b L |
8805 | { PREFIX_TABLE (PREFIX_VEX_0FC4) }, |
8806 | { PREFIX_TABLE (PREFIX_VEX_0FC5) }, | |
bf890a93 | 8807 | { "vshufpX", { XM, Vex, EXx, Ib }, 0 }, |
592d1631 | 8808 | { Bad_Opcode }, |
c0f3af97 | 8809 | /* c8 */ |
592d1631 L |
8810 | { Bad_Opcode }, |
8811 | { Bad_Opcode }, | |
8812 | { Bad_Opcode }, | |
8813 | { Bad_Opcode }, | |
8814 | { Bad_Opcode }, | |
8815 | { Bad_Opcode }, | |
8816 | { Bad_Opcode }, | |
8817 | { Bad_Opcode }, | |
c0f3af97 | 8818 | /* d0 */ |
592a252b L |
8819 | { PREFIX_TABLE (PREFIX_VEX_0FD0) }, |
8820 | { PREFIX_TABLE (PREFIX_VEX_0FD1) }, | |
8821 | { PREFIX_TABLE (PREFIX_VEX_0FD2) }, | |
8822 | { PREFIX_TABLE (PREFIX_VEX_0FD3) }, | |
8823 | { PREFIX_TABLE (PREFIX_VEX_0FD4) }, | |
8824 | { PREFIX_TABLE (PREFIX_VEX_0FD5) }, | |
8825 | { PREFIX_TABLE (PREFIX_VEX_0FD6) }, | |
8826 | { PREFIX_TABLE (PREFIX_VEX_0FD7) }, | |
c0f3af97 | 8827 | /* d8 */ |
592a252b L |
8828 | { PREFIX_TABLE (PREFIX_VEX_0FD8) }, |
8829 | { PREFIX_TABLE (PREFIX_VEX_0FD9) }, | |
8830 | { PREFIX_TABLE (PREFIX_VEX_0FDA) }, | |
8831 | { PREFIX_TABLE (PREFIX_VEX_0FDB) }, | |
8832 | { PREFIX_TABLE (PREFIX_VEX_0FDC) }, | |
8833 | { PREFIX_TABLE (PREFIX_VEX_0FDD) }, | |
8834 | { PREFIX_TABLE (PREFIX_VEX_0FDE) }, | |
8835 | { PREFIX_TABLE (PREFIX_VEX_0FDF) }, | |
c0f3af97 | 8836 | /* e0 */ |
592a252b L |
8837 | { PREFIX_TABLE (PREFIX_VEX_0FE0) }, |
8838 | { PREFIX_TABLE (PREFIX_VEX_0FE1) }, | |
8839 | { PREFIX_TABLE (PREFIX_VEX_0FE2) }, | |
8840 | { PREFIX_TABLE (PREFIX_VEX_0FE3) }, | |
8841 | { PREFIX_TABLE (PREFIX_VEX_0FE4) }, | |
8842 | { PREFIX_TABLE (PREFIX_VEX_0FE5) }, | |
8843 | { PREFIX_TABLE (PREFIX_VEX_0FE6) }, | |
8844 | { PREFIX_TABLE (PREFIX_VEX_0FE7) }, | |
c0f3af97 | 8845 | /* e8 */ |
592a252b L |
8846 | { PREFIX_TABLE (PREFIX_VEX_0FE8) }, |
8847 | { PREFIX_TABLE (PREFIX_VEX_0FE9) }, | |
8848 | { PREFIX_TABLE (PREFIX_VEX_0FEA) }, | |
8849 | { PREFIX_TABLE (PREFIX_VEX_0FEB) }, | |
8850 | { PREFIX_TABLE (PREFIX_VEX_0FEC) }, | |
8851 | { PREFIX_TABLE (PREFIX_VEX_0FED) }, | |
8852 | { PREFIX_TABLE (PREFIX_VEX_0FEE) }, | |
8853 | { PREFIX_TABLE (PREFIX_VEX_0FEF) }, | |
c0f3af97 | 8854 | /* f0 */ |
592a252b L |
8855 | { PREFIX_TABLE (PREFIX_VEX_0FF0) }, |
8856 | { PREFIX_TABLE (PREFIX_VEX_0FF1) }, | |
8857 | { PREFIX_TABLE (PREFIX_VEX_0FF2) }, | |
8858 | { PREFIX_TABLE (PREFIX_VEX_0FF3) }, | |
8859 | { PREFIX_TABLE (PREFIX_VEX_0FF4) }, | |
8860 | { PREFIX_TABLE (PREFIX_VEX_0FF5) }, | |
8861 | { PREFIX_TABLE (PREFIX_VEX_0FF6) }, | |
8862 | { PREFIX_TABLE (PREFIX_VEX_0FF7) }, | |
c0f3af97 | 8863 | /* f8 */ |
592a252b L |
8864 | { PREFIX_TABLE (PREFIX_VEX_0FF8) }, |
8865 | { PREFIX_TABLE (PREFIX_VEX_0FF9) }, | |
8866 | { PREFIX_TABLE (PREFIX_VEX_0FFA) }, | |
8867 | { PREFIX_TABLE (PREFIX_VEX_0FFB) }, | |
8868 | { PREFIX_TABLE (PREFIX_VEX_0FFC) }, | |
8869 | { PREFIX_TABLE (PREFIX_VEX_0FFD) }, | |
8870 | { PREFIX_TABLE (PREFIX_VEX_0FFE) }, | |
592d1631 | 8871 | { Bad_Opcode }, |
c0f3af97 L |
8872 | }, |
8873 | /* VEX_0F38 */ | |
8874 | { | |
8875 | /* 00 */ | |
592a252b L |
8876 | { PREFIX_TABLE (PREFIX_VEX_0F3800) }, |
8877 | { PREFIX_TABLE (PREFIX_VEX_0F3801) }, | |
8878 | { PREFIX_TABLE (PREFIX_VEX_0F3802) }, | |
8879 | { PREFIX_TABLE (PREFIX_VEX_0F3803) }, | |
8880 | { PREFIX_TABLE (PREFIX_VEX_0F3804) }, | |
8881 | { PREFIX_TABLE (PREFIX_VEX_0F3805) }, | |
8882 | { PREFIX_TABLE (PREFIX_VEX_0F3806) }, | |
8883 | { PREFIX_TABLE (PREFIX_VEX_0F3807) }, | |
c0f3af97 | 8884 | /* 08 */ |
592a252b L |
8885 | { PREFIX_TABLE (PREFIX_VEX_0F3808) }, |
8886 | { PREFIX_TABLE (PREFIX_VEX_0F3809) }, | |
8887 | { PREFIX_TABLE (PREFIX_VEX_0F380A) }, | |
8888 | { PREFIX_TABLE (PREFIX_VEX_0F380B) }, | |
8889 | { PREFIX_TABLE (PREFIX_VEX_0F380C) }, | |
8890 | { PREFIX_TABLE (PREFIX_VEX_0F380D) }, | |
8891 | { PREFIX_TABLE (PREFIX_VEX_0F380E) }, | |
8892 | { PREFIX_TABLE (PREFIX_VEX_0F380F) }, | |
c0f3af97 | 8893 | /* 10 */ |
592d1631 L |
8894 | { Bad_Opcode }, |
8895 | { Bad_Opcode }, | |
8896 | { Bad_Opcode }, | |
592a252b | 8897 | { PREFIX_TABLE (PREFIX_VEX_0F3813) }, |
592d1631 L |
8898 | { Bad_Opcode }, |
8899 | { Bad_Opcode }, | |
6c30d220 | 8900 | { PREFIX_TABLE (PREFIX_VEX_0F3816) }, |
592a252b | 8901 | { PREFIX_TABLE (PREFIX_VEX_0F3817) }, |
c0f3af97 | 8902 | /* 18 */ |
592a252b L |
8903 | { PREFIX_TABLE (PREFIX_VEX_0F3818) }, |
8904 | { PREFIX_TABLE (PREFIX_VEX_0F3819) }, | |
8905 | { PREFIX_TABLE (PREFIX_VEX_0F381A) }, | |
592d1631 | 8906 | { Bad_Opcode }, |
592a252b L |
8907 | { PREFIX_TABLE (PREFIX_VEX_0F381C) }, |
8908 | { PREFIX_TABLE (PREFIX_VEX_0F381D) }, | |
8909 | { PREFIX_TABLE (PREFIX_VEX_0F381E) }, | |
592d1631 | 8910 | { Bad_Opcode }, |
c0f3af97 | 8911 | /* 20 */ |
592a252b L |
8912 | { PREFIX_TABLE (PREFIX_VEX_0F3820) }, |
8913 | { PREFIX_TABLE (PREFIX_VEX_0F3821) }, | |
8914 | { PREFIX_TABLE (PREFIX_VEX_0F3822) }, | |
8915 | { PREFIX_TABLE (PREFIX_VEX_0F3823) }, | |
8916 | { PREFIX_TABLE (PREFIX_VEX_0F3824) }, | |
8917 | { PREFIX_TABLE (PREFIX_VEX_0F3825) }, | |
592d1631 L |
8918 | { Bad_Opcode }, |
8919 | { Bad_Opcode }, | |
c0f3af97 | 8920 | /* 28 */ |
592a252b L |
8921 | { PREFIX_TABLE (PREFIX_VEX_0F3828) }, |
8922 | { PREFIX_TABLE (PREFIX_VEX_0F3829) }, | |
8923 | { PREFIX_TABLE (PREFIX_VEX_0F382A) }, | |
8924 | { PREFIX_TABLE (PREFIX_VEX_0F382B) }, | |
8925 | { PREFIX_TABLE (PREFIX_VEX_0F382C) }, | |
8926 | { PREFIX_TABLE (PREFIX_VEX_0F382D) }, | |
8927 | { PREFIX_TABLE (PREFIX_VEX_0F382E) }, | |
8928 | { PREFIX_TABLE (PREFIX_VEX_0F382F) }, | |
c0f3af97 | 8929 | /* 30 */ |
592a252b L |
8930 | { PREFIX_TABLE (PREFIX_VEX_0F3830) }, |
8931 | { PREFIX_TABLE (PREFIX_VEX_0F3831) }, | |
8932 | { PREFIX_TABLE (PREFIX_VEX_0F3832) }, | |
8933 | { PREFIX_TABLE (PREFIX_VEX_0F3833) }, | |
8934 | { PREFIX_TABLE (PREFIX_VEX_0F3834) }, | |
8935 | { PREFIX_TABLE (PREFIX_VEX_0F3835) }, | |
6c30d220 | 8936 | { PREFIX_TABLE (PREFIX_VEX_0F3836) }, |
592a252b | 8937 | { PREFIX_TABLE (PREFIX_VEX_0F3837) }, |
c0f3af97 | 8938 | /* 38 */ |
592a252b L |
8939 | { PREFIX_TABLE (PREFIX_VEX_0F3838) }, |
8940 | { PREFIX_TABLE (PREFIX_VEX_0F3839) }, | |
8941 | { PREFIX_TABLE (PREFIX_VEX_0F383A) }, | |
8942 | { PREFIX_TABLE (PREFIX_VEX_0F383B) }, | |
8943 | { PREFIX_TABLE (PREFIX_VEX_0F383C) }, | |
8944 | { PREFIX_TABLE (PREFIX_VEX_0F383D) }, | |
8945 | { PREFIX_TABLE (PREFIX_VEX_0F383E) }, | |
8946 | { PREFIX_TABLE (PREFIX_VEX_0F383F) }, | |
c0f3af97 | 8947 | /* 40 */ |
592a252b L |
8948 | { PREFIX_TABLE (PREFIX_VEX_0F3840) }, |
8949 | { PREFIX_TABLE (PREFIX_VEX_0F3841) }, | |
592d1631 L |
8950 | { Bad_Opcode }, |
8951 | { Bad_Opcode }, | |
8952 | { Bad_Opcode }, | |
6c30d220 L |
8953 | { PREFIX_TABLE (PREFIX_VEX_0F3845) }, |
8954 | { PREFIX_TABLE (PREFIX_VEX_0F3846) }, | |
8955 | { PREFIX_TABLE (PREFIX_VEX_0F3847) }, | |
c0f3af97 | 8956 | /* 48 */ |
592d1631 L |
8957 | { Bad_Opcode }, |
8958 | { Bad_Opcode }, | |
8959 | { Bad_Opcode }, | |
8960 | { Bad_Opcode }, | |
8961 | { Bad_Opcode }, | |
8962 | { Bad_Opcode }, | |
8963 | { Bad_Opcode }, | |
8964 | { Bad_Opcode }, | |
c0f3af97 | 8965 | /* 50 */ |
592d1631 L |
8966 | { Bad_Opcode }, |
8967 | { Bad_Opcode }, | |
8968 | { Bad_Opcode }, | |
8969 | { Bad_Opcode }, | |
8970 | { Bad_Opcode }, | |
8971 | { Bad_Opcode }, | |
8972 | { Bad_Opcode }, | |
8973 | { Bad_Opcode }, | |
c0f3af97 | 8974 | /* 58 */ |
6c30d220 L |
8975 | { PREFIX_TABLE (PREFIX_VEX_0F3858) }, |
8976 | { PREFIX_TABLE (PREFIX_VEX_0F3859) }, | |
8977 | { PREFIX_TABLE (PREFIX_VEX_0F385A) }, | |
592d1631 L |
8978 | { Bad_Opcode }, |
8979 | { Bad_Opcode }, | |
8980 | { Bad_Opcode }, | |
8981 | { Bad_Opcode }, | |
8982 | { Bad_Opcode }, | |
c0f3af97 | 8983 | /* 60 */ |
592d1631 L |
8984 | { Bad_Opcode }, |
8985 | { Bad_Opcode }, | |
8986 | { Bad_Opcode }, | |
8987 | { Bad_Opcode }, | |
8988 | { Bad_Opcode }, | |
8989 | { Bad_Opcode }, | |
8990 | { Bad_Opcode }, | |
8991 | { Bad_Opcode }, | |
c0f3af97 | 8992 | /* 68 */ |
592d1631 L |
8993 | { Bad_Opcode }, |
8994 | { Bad_Opcode }, | |
8995 | { Bad_Opcode }, | |
8996 | { Bad_Opcode }, | |
8997 | { Bad_Opcode }, | |
8998 | { Bad_Opcode }, | |
8999 | { Bad_Opcode }, | |
9000 | { Bad_Opcode }, | |
c0f3af97 | 9001 | /* 70 */ |
592d1631 L |
9002 | { Bad_Opcode }, |
9003 | { Bad_Opcode }, | |
9004 | { Bad_Opcode }, | |
9005 | { Bad_Opcode }, | |
9006 | { Bad_Opcode }, | |
9007 | { Bad_Opcode }, | |
9008 | { Bad_Opcode }, | |
9009 | { Bad_Opcode }, | |
c0f3af97 | 9010 | /* 78 */ |
6c30d220 L |
9011 | { PREFIX_TABLE (PREFIX_VEX_0F3878) }, |
9012 | { PREFIX_TABLE (PREFIX_VEX_0F3879) }, | |
592d1631 L |
9013 | { Bad_Opcode }, |
9014 | { Bad_Opcode }, | |
9015 | { Bad_Opcode }, | |
9016 | { Bad_Opcode }, | |
9017 | { Bad_Opcode }, | |
9018 | { Bad_Opcode }, | |
c0f3af97 | 9019 | /* 80 */ |
592d1631 L |
9020 | { Bad_Opcode }, |
9021 | { Bad_Opcode }, | |
9022 | { Bad_Opcode }, | |
9023 | { Bad_Opcode }, | |
9024 | { Bad_Opcode }, | |
9025 | { Bad_Opcode }, | |
9026 | { Bad_Opcode }, | |
9027 | { Bad_Opcode }, | |
c0f3af97 | 9028 | /* 88 */ |
592d1631 L |
9029 | { Bad_Opcode }, |
9030 | { Bad_Opcode }, | |
9031 | { Bad_Opcode }, | |
9032 | { Bad_Opcode }, | |
6c30d220 | 9033 | { PREFIX_TABLE (PREFIX_VEX_0F388C) }, |
592d1631 | 9034 | { Bad_Opcode }, |
6c30d220 | 9035 | { PREFIX_TABLE (PREFIX_VEX_0F388E) }, |
592d1631 | 9036 | { Bad_Opcode }, |
c0f3af97 | 9037 | /* 90 */ |
6c30d220 L |
9038 | { PREFIX_TABLE (PREFIX_VEX_0F3890) }, |
9039 | { PREFIX_TABLE (PREFIX_VEX_0F3891) }, | |
9040 | { PREFIX_TABLE (PREFIX_VEX_0F3892) }, | |
9041 | { PREFIX_TABLE (PREFIX_VEX_0F3893) }, | |
592d1631 L |
9042 | { Bad_Opcode }, |
9043 | { Bad_Opcode }, | |
592a252b L |
9044 | { PREFIX_TABLE (PREFIX_VEX_0F3896) }, |
9045 | { PREFIX_TABLE (PREFIX_VEX_0F3897) }, | |
c0f3af97 | 9046 | /* 98 */ |
592a252b L |
9047 | { PREFIX_TABLE (PREFIX_VEX_0F3898) }, |
9048 | { PREFIX_TABLE (PREFIX_VEX_0F3899) }, | |
9049 | { PREFIX_TABLE (PREFIX_VEX_0F389A) }, | |
9050 | { PREFIX_TABLE (PREFIX_VEX_0F389B) }, | |
9051 | { PREFIX_TABLE (PREFIX_VEX_0F389C) }, | |
9052 | { PREFIX_TABLE (PREFIX_VEX_0F389D) }, | |
9053 | { PREFIX_TABLE (PREFIX_VEX_0F389E) }, | |
9054 | { PREFIX_TABLE (PREFIX_VEX_0F389F) }, | |
c0f3af97 | 9055 | /* a0 */ |
592d1631 L |
9056 | { Bad_Opcode }, |
9057 | { Bad_Opcode }, | |
9058 | { Bad_Opcode }, | |
9059 | { Bad_Opcode }, | |
9060 | { Bad_Opcode }, | |
9061 | { Bad_Opcode }, | |
592a252b L |
9062 | { PREFIX_TABLE (PREFIX_VEX_0F38A6) }, |
9063 | { PREFIX_TABLE (PREFIX_VEX_0F38A7) }, | |
c0f3af97 | 9064 | /* a8 */ |
592a252b L |
9065 | { PREFIX_TABLE (PREFIX_VEX_0F38A8) }, |
9066 | { PREFIX_TABLE (PREFIX_VEX_0F38A9) }, | |
9067 | { PREFIX_TABLE (PREFIX_VEX_0F38AA) }, | |
9068 | { PREFIX_TABLE (PREFIX_VEX_0F38AB) }, | |
9069 | { PREFIX_TABLE (PREFIX_VEX_0F38AC) }, | |
9070 | { PREFIX_TABLE (PREFIX_VEX_0F38AD) }, | |
9071 | { PREFIX_TABLE (PREFIX_VEX_0F38AE) }, | |
9072 | { PREFIX_TABLE (PREFIX_VEX_0F38AF) }, | |
c0f3af97 | 9073 | /* b0 */ |
592d1631 L |
9074 | { Bad_Opcode }, |
9075 | { Bad_Opcode }, | |
9076 | { Bad_Opcode }, | |
9077 | { Bad_Opcode }, | |
9078 | { Bad_Opcode }, | |
9079 | { Bad_Opcode }, | |
592a252b L |
9080 | { PREFIX_TABLE (PREFIX_VEX_0F38B6) }, |
9081 | { PREFIX_TABLE (PREFIX_VEX_0F38B7) }, | |
c0f3af97 | 9082 | /* b8 */ |
592a252b L |
9083 | { PREFIX_TABLE (PREFIX_VEX_0F38B8) }, |
9084 | { PREFIX_TABLE (PREFIX_VEX_0F38B9) }, | |
9085 | { PREFIX_TABLE (PREFIX_VEX_0F38BA) }, | |
9086 | { PREFIX_TABLE (PREFIX_VEX_0F38BB) }, | |
9087 | { PREFIX_TABLE (PREFIX_VEX_0F38BC) }, | |
9088 | { PREFIX_TABLE (PREFIX_VEX_0F38BD) }, | |
9089 | { PREFIX_TABLE (PREFIX_VEX_0F38BE) }, | |
9090 | { PREFIX_TABLE (PREFIX_VEX_0F38BF) }, | |
c0f3af97 | 9091 | /* c0 */ |
592d1631 L |
9092 | { Bad_Opcode }, |
9093 | { Bad_Opcode }, | |
9094 | { Bad_Opcode }, | |
9095 | { Bad_Opcode }, | |
9096 | { Bad_Opcode }, | |
9097 | { Bad_Opcode }, | |
9098 | { Bad_Opcode }, | |
9099 | { Bad_Opcode }, | |
c0f3af97 | 9100 | /* c8 */ |
592d1631 L |
9101 | { Bad_Opcode }, |
9102 | { Bad_Opcode }, | |
9103 | { Bad_Opcode }, | |
9104 | { Bad_Opcode }, | |
9105 | { Bad_Opcode }, | |
9106 | { Bad_Opcode }, | |
9107 | { Bad_Opcode }, | |
48521003 | 9108 | { PREFIX_TABLE (PREFIX_VEX_0F38CF) }, |
c0f3af97 | 9109 | /* d0 */ |
592d1631 L |
9110 | { Bad_Opcode }, |
9111 | { Bad_Opcode }, | |
9112 | { Bad_Opcode }, | |
9113 | { Bad_Opcode }, | |
9114 | { Bad_Opcode }, | |
9115 | { Bad_Opcode }, | |
9116 | { Bad_Opcode }, | |
9117 | { Bad_Opcode }, | |
c0f3af97 | 9118 | /* d8 */ |
592d1631 L |
9119 | { Bad_Opcode }, |
9120 | { Bad_Opcode }, | |
9121 | { Bad_Opcode }, | |
592a252b L |
9122 | { PREFIX_TABLE (PREFIX_VEX_0F38DB) }, |
9123 | { PREFIX_TABLE (PREFIX_VEX_0F38DC) }, | |
9124 | { PREFIX_TABLE (PREFIX_VEX_0F38DD) }, | |
9125 | { PREFIX_TABLE (PREFIX_VEX_0F38DE) }, | |
9126 | { PREFIX_TABLE (PREFIX_VEX_0F38DF) }, | |
c0f3af97 | 9127 | /* e0 */ |
592d1631 L |
9128 | { Bad_Opcode }, |
9129 | { Bad_Opcode }, | |
9130 | { Bad_Opcode }, | |
9131 | { Bad_Opcode }, | |
9132 | { Bad_Opcode }, | |
9133 | { Bad_Opcode }, | |
9134 | { Bad_Opcode }, | |
9135 | { Bad_Opcode }, | |
c0f3af97 | 9136 | /* e8 */ |
592d1631 L |
9137 | { Bad_Opcode }, |
9138 | { Bad_Opcode }, | |
9139 | { Bad_Opcode }, | |
9140 | { Bad_Opcode }, | |
9141 | { Bad_Opcode }, | |
9142 | { Bad_Opcode }, | |
9143 | { Bad_Opcode }, | |
9144 | { Bad_Opcode }, | |
c0f3af97 | 9145 | /* f0 */ |
592d1631 L |
9146 | { Bad_Opcode }, |
9147 | { Bad_Opcode }, | |
f12dc422 L |
9148 | { PREFIX_TABLE (PREFIX_VEX_0F38F2) }, |
9149 | { REG_TABLE (REG_VEX_0F38F3) }, | |
592d1631 | 9150 | { Bad_Opcode }, |
6c30d220 L |
9151 | { PREFIX_TABLE (PREFIX_VEX_0F38F5) }, |
9152 | { PREFIX_TABLE (PREFIX_VEX_0F38F6) }, | |
f12dc422 | 9153 | { PREFIX_TABLE (PREFIX_VEX_0F38F7) }, |
c0f3af97 | 9154 | /* f8 */ |
592d1631 L |
9155 | { Bad_Opcode }, |
9156 | { Bad_Opcode }, | |
9157 | { Bad_Opcode }, | |
9158 | { Bad_Opcode }, | |
9159 | { Bad_Opcode }, | |
9160 | { Bad_Opcode }, | |
9161 | { Bad_Opcode }, | |
9162 | { Bad_Opcode }, | |
c0f3af97 L |
9163 | }, |
9164 | /* VEX_0F3A */ | |
9165 | { | |
9166 | /* 00 */ | |
6c30d220 L |
9167 | { PREFIX_TABLE (PREFIX_VEX_0F3A00) }, |
9168 | { PREFIX_TABLE (PREFIX_VEX_0F3A01) }, | |
9169 | { PREFIX_TABLE (PREFIX_VEX_0F3A02) }, | |
592d1631 | 9170 | { Bad_Opcode }, |
592a252b L |
9171 | { PREFIX_TABLE (PREFIX_VEX_0F3A04) }, |
9172 | { PREFIX_TABLE (PREFIX_VEX_0F3A05) }, | |
9173 | { PREFIX_TABLE (PREFIX_VEX_0F3A06) }, | |
592d1631 | 9174 | { Bad_Opcode }, |
c0f3af97 | 9175 | /* 08 */ |
592a252b L |
9176 | { PREFIX_TABLE (PREFIX_VEX_0F3A08) }, |
9177 | { PREFIX_TABLE (PREFIX_VEX_0F3A09) }, | |
9178 | { PREFIX_TABLE (PREFIX_VEX_0F3A0A) }, | |
9179 | { PREFIX_TABLE (PREFIX_VEX_0F3A0B) }, | |
9180 | { PREFIX_TABLE (PREFIX_VEX_0F3A0C) }, | |
9181 | { PREFIX_TABLE (PREFIX_VEX_0F3A0D) }, | |
9182 | { PREFIX_TABLE (PREFIX_VEX_0F3A0E) }, | |
9183 | { PREFIX_TABLE (PREFIX_VEX_0F3A0F) }, | |
c0f3af97 | 9184 | /* 10 */ |
592d1631 L |
9185 | { Bad_Opcode }, |
9186 | { Bad_Opcode }, | |
9187 | { Bad_Opcode }, | |
9188 | { Bad_Opcode }, | |
592a252b L |
9189 | { PREFIX_TABLE (PREFIX_VEX_0F3A14) }, |
9190 | { PREFIX_TABLE (PREFIX_VEX_0F3A15) }, | |
9191 | { PREFIX_TABLE (PREFIX_VEX_0F3A16) }, | |
9192 | { PREFIX_TABLE (PREFIX_VEX_0F3A17) }, | |
c0f3af97 | 9193 | /* 18 */ |
592a252b L |
9194 | { PREFIX_TABLE (PREFIX_VEX_0F3A18) }, |
9195 | { PREFIX_TABLE (PREFIX_VEX_0F3A19) }, | |
592d1631 L |
9196 | { Bad_Opcode }, |
9197 | { Bad_Opcode }, | |
9198 | { Bad_Opcode }, | |
592a252b | 9199 | { PREFIX_TABLE (PREFIX_VEX_0F3A1D) }, |
592d1631 L |
9200 | { Bad_Opcode }, |
9201 | { Bad_Opcode }, | |
c0f3af97 | 9202 | /* 20 */ |
592a252b L |
9203 | { PREFIX_TABLE (PREFIX_VEX_0F3A20) }, |
9204 | { PREFIX_TABLE (PREFIX_VEX_0F3A21) }, | |
9205 | { PREFIX_TABLE (PREFIX_VEX_0F3A22) }, | |
592d1631 L |
9206 | { Bad_Opcode }, |
9207 | { Bad_Opcode }, | |
9208 | { Bad_Opcode }, | |
9209 | { Bad_Opcode }, | |
9210 | { Bad_Opcode }, | |
c0f3af97 | 9211 | /* 28 */ |
592d1631 L |
9212 | { Bad_Opcode }, |
9213 | { Bad_Opcode }, | |
9214 | { Bad_Opcode }, | |
9215 | { Bad_Opcode }, | |
9216 | { Bad_Opcode }, | |
9217 | { Bad_Opcode }, | |
9218 | { Bad_Opcode }, | |
9219 | { Bad_Opcode }, | |
c0f3af97 | 9220 | /* 30 */ |
43234a1e | 9221 | { PREFIX_TABLE (PREFIX_VEX_0F3A30) }, |
1ba585e8 | 9222 | { PREFIX_TABLE (PREFIX_VEX_0F3A31) }, |
43234a1e | 9223 | { PREFIX_TABLE (PREFIX_VEX_0F3A32) }, |
1ba585e8 | 9224 | { PREFIX_TABLE (PREFIX_VEX_0F3A33) }, |
592d1631 L |
9225 | { Bad_Opcode }, |
9226 | { Bad_Opcode }, | |
9227 | { Bad_Opcode }, | |
9228 | { Bad_Opcode }, | |
c0f3af97 | 9229 | /* 38 */ |
6c30d220 L |
9230 | { PREFIX_TABLE (PREFIX_VEX_0F3A38) }, |
9231 | { PREFIX_TABLE (PREFIX_VEX_0F3A39) }, | |
592d1631 L |
9232 | { Bad_Opcode }, |
9233 | { Bad_Opcode }, | |
9234 | { Bad_Opcode }, | |
9235 | { Bad_Opcode }, | |
9236 | { Bad_Opcode }, | |
9237 | { Bad_Opcode }, | |
c0f3af97 | 9238 | /* 40 */ |
592a252b L |
9239 | { PREFIX_TABLE (PREFIX_VEX_0F3A40) }, |
9240 | { PREFIX_TABLE (PREFIX_VEX_0F3A41) }, | |
9241 | { PREFIX_TABLE (PREFIX_VEX_0F3A42) }, | |
592d1631 | 9242 | { Bad_Opcode }, |
592a252b | 9243 | { PREFIX_TABLE (PREFIX_VEX_0F3A44) }, |
592d1631 | 9244 | { Bad_Opcode }, |
6c30d220 | 9245 | { PREFIX_TABLE (PREFIX_VEX_0F3A46) }, |
592d1631 | 9246 | { Bad_Opcode }, |
c0f3af97 | 9247 | /* 48 */ |
592a252b L |
9248 | { PREFIX_TABLE (PREFIX_VEX_0F3A48) }, |
9249 | { PREFIX_TABLE (PREFIX_VEX_0F3A49) }, | |
9250 | { PREFIX_TABLE (PREFIX_VEX_0F3A4A) }, | |
9251 | { PREFIX_TABLE (PREFIX_VEX_0F3A4B) }, | |
9252 | { PREFIX_TABLE (PREFIX_VEX_0F3A4C) }, | |
592d1631 L |
9253 | { Bad_Opcode }, |
9254 | { Bad_Opcode }, | |
9255 | { Bad_Opcode }, | |
c0f3af97 | 9256 | /* 50 */ |
592d1631 L |
9257 | { Bad_Opcode }, |
9258 | { Bad_Opcode }, | |
9259 | { Bad_Opcode }, | |
9260 | { Bad_Opcode }, | |
9261 | { Bad_Opcode }, | |
9262 | { Bad_Opcode }, | |
9263 | { Bad_Opcode }, | |
9264 | { Bad_Opcode }, | |
c0f3af97 | 9265 | /* 58 */ |
592d1631 L |
9266 | { Bad_Opcode }, |
9267 | { Bad_Opcode }, | |
9268 | { Bad_Opcode }, | |
9269 | { Bad_Opcode }, | |
592a252b L |
9270 | { PREFIX_TABLE (PREFIX_VEX_0F3A5C) }, |
9271 | { PREFIX_TABLE (PREFIX_VEX_0F3A5D) }, | |
9272 | { PREFIX_TABLE (PREFIX_VEX_0F3A5E) }, | |
9273 | { PREFIX_TABLE (PREFIX_VEX_0F3A5F) }, | |
c0f3af97 | 9274 | /* 60 */ |
592a252b L |
9275 | { PREFIX_TABLE (PREFIX_VEX_0F3A60) }, |
9276 | { PREFIX_TABLE (PREFIX_VEX_0F3A61) }, | |
9277 | { PREFIX_TABLE (PREFIX_VEX_0F3A62) }, | |
9278 | { PREFIX_TABLE (PREFIX_VEX_0F3A63) }, | |
592d1631 L |
9279 | { Bad_Opcode }, |
9280 | { Bad_Opcode }, | |
9281 | { Bad_Opcode }, | |
9282 | { Bad_Opcode }, | |
c0f3af97 | 9283 | /* 68 */ |
592a252b L |
9284 | { PREFIX_TABLE (PREFIX_VEX_0F3A68) }, |
9285 | { PREFIX_TABLE (PREFIX_VEX_0F3A69) }, | |
9286 | { PREFIX_TABLE (PREFIX_VEX_0F3A6A) }, | |
9287 | { PREFIX_TABLE (PREFIX_VEX_0F3A6B) }, | |
9288 | { PREFIX_TABLE (PREFIX_VEX_0F3A6C) }, | |
9289 | { PREFIX_TABLE (PREFIX_VEX_0F3A6D) }, | |
9290 | { PREFIX_TABLE (PREFIX_VEX_0F3A6E) }, | |
9291 | { PREFIX_TABLE (PREFIX_VEX_0F3A6F) }, | |
c0f3af97 | 9292 | /* 70 */ |
592d1631 L |
9293 | { Bad_Opcode }, |
9294 | { Bad_Opcode }, | |
9295 | { Bad_Opcode }, | |
9296 | { Bad_Opcode }, | |
9297 | { Bad_Opcode }, | |
9298 | { Bad_Opcode }, | |
9299 | { Bad_Opcode }, | |
9300 | { Bad_Opcode }, | |
c0f3af97 | 9301 | /* 78 */ |
592a252b L |
9302 | { PREFIX_TABLE (PREFIX_VEX_0F3A78) }, |
9303 | { PREFIX_TABLE (PREFIX_VEX_0F3A79) }, | |
9304 | { PREFIX_TABLE (PREFIX_VEX_0F3A7A) }, | |
9305 | { PREFIX_TABLE (PREFIX_VEX_0F3A7B) }, | |
9306 | { PREFIX_TABLE (PREFIX_VEX_0F3A7C) }, | |
9307 | { PREFIX_TABLE (PREFIX_VEX_0F3A7D) }, | |
9308 | { PREFIX_TABLE (PREFIX_VEX_0F3A7E) }, | |
9309 | { PREFIX_TABLE (PREFIX_VEX_0F3A7F) }, | |
c0f3af97 | 9310 | /* 80 */ |
592d1631 L |
9311 | { Bad_Opcode }, |
9312 | { Bad_Opcode }, | |
9313 | { Bad_Opcode }, | |
9314 | { Bad_Opcode }, | |
9315 | { Bad_Opcode }, | |
9316 | { Bad_Opcode }, | |
9317 | { Bad_Opcode }, | |
9318 | { Bad_Opcode }, | |
c0f3af97 | 9319 | /* 88 */ |
592d1631 L |
9320 | { Bad_Opcode }, |
9321 | { Bad_Opcode }, | |
9322 | { Bad_Opcode }, | |
9323 | { Bad_Opcode }, | |
9324 | { Bad_Opcode }, | |
9325 | { Bad_Opcode }, | |
9326 | { Bad_Opcode }, | |
9327 | { Bad_Opcode }, | |
c0f3af97 | 9328 | /* 90 */ |
592d1631 L |
9329 | { Bad_Opcode }, |
9330 | { Bad_Opcode }, | |
9331 | { Bad_Opcode }, | |
9332 | { Bad_Opcode }, | |
9333 | { Bad_Opcode }, | |
9334 | { Bad_Opcode }, | |
9335 | { Bad_Opcode }, | |
9336 | { Bad_Opcode }, | |
c0f3af97 | 9337 | /* 98 */ |
592d1631 L |
9338 | { Bad_Opcode }, |
9339 | { Bad_Opcode }, | |
9340 | { Bad_Opcode }, | |
9341 | { Bad_Opcode }, | |
9342 | { Bad_Opcode }, | |
9343 | { Bad_Opcode }, | |
9344 | { Bad_Opcode }, | |
9345 | { Bad_Opcode }, | |
c0f3af97 | 9346 | /* a0 */ |
592d1631 L |
9347 | { Bad_Opcode }, |
9348 | { Bad_Opcode }, | |
9349 | { Bad_Opcode }, | |
9350 | { Bad_Opcode }, | |
9351 | { Bad_Opcode }, | |
9352 | { Bad_Opcode }, | |
9353 | { Bad_Opcode }, | |
9354 | { Bad_Opcode }, | |
c0f3af97 | 9355 | /* a8 */ |
592d1631 L |
9356 | { Bad_Opcode }, |
9357 | { Bad_Opcode }, | |
9358 | { Bad_Opcode }, | |
9359 | { Bad_Opcode }, | |
9360 | { Bad_Opcode }, | |
9361 | { Bad_Opcode }, | |
9362 | { Bad_Opcode }, | |
9363 | { Bad_Opcode }, | |
c0f3af97 | 9364 | /* b0 */ |
592d1631 L |
9365 | { Bad_Opcode }, |
9366 | { Bad_Opcode }, | |
9367 | { Bad_Opcode }, | |
9368 | { Bad_Opcode }, | |
9369 | { Bad_Opcode }, | |
9370 | { Bad_Opcode }, | |
9371 | { Bad_Opcode }, | |
9372 | { Bad_Opcode }, | |
c0f3af97 | 9373 | /* b8 */ |
592d1631 L |
9374 | { Bad_Opcode }, |
9375 | { Bad_Opcode }, | |
9376 | { Bad_Opcode }, | |
9377 | { Bad_Opcode }, | |
9378 | { Bad_Opcode }, | |
9379 | { Bad_Opcode }, | |
9380 | { Bad_Opcode }, | |
9381 | { Bad_Opcode }, | |
c0f3af97 | 9382 | /* c0 */ |
592d1631 L |
9383 | { Bad_Opcode }, |
9384 | { Bad_Opcode }, | |
9385 | { Bad_Opcode }, | |
9386 | { Bad_Opcode }, | |
9387 | { Bad_Opcode }, | |
9388 | { Bad_Opcode }, | |
9389 | { Bad_Opcode }, | |
9390 | { Bad_Opcode }, | |
c0f3af97 | 9391 | /* c8 */ |
592d1631 L |
9392 | { Bad_Opcode }, |
9393 | { Bad_Opcode }, | |
9394 | { Bad_Opcode }, | |
9395 | { Bad_Opcode }, | |
9396 | { Bad_Opcode }, | |
9397 | { Bad_Opcode }, | |
48521003 IT |
9398 | { PREFIX_TABLE(PREFIX_VEX_0F3ACE) }, |
9399 | { PREFIX_TABLE(PREFIX_VEX_0F3ACF) }, | |
c0f3af97 | 9400 | /* d0 */ |
592d1631 L |
9401 | { Bad_Opcode }, |
9402 | { Bad_Opcode }, | |
9403 | { Bad_Opcode }, | |
9404 | { Bad_Opcode }, | |
9405 | { Bad_Opcode }, | |
9406 | { Bad_Opcode }, | |
9407 | { Bad_Opcode }, | |
9408 | { Bad_Opcode }, | |
c0f3af97 | 9409 | /* d8 */ |
592d1631 L |
9410 | { Bad_Opcode }, |
9411 | { Bad_Opcode }, | |
9412 | { Bad_Opcode }, | |
9413 | { Bad_Opcode }, | |
9414 | { Bad_Opcode }, | |
9415 | { Bad_Opcode }, | |
9416 | { Bad_Opcode }, | |
592a252b | 9417 | { PREFIX_TABLE (PREFIX_VEX_0F3ADF) }, |
c0f3af97 | 9418 | /* e0 */ |
592d1631 L |
9419 | { Bad_Opcode }, |
9420 | { Bad_Opcode }, | |
9421 | { Bad_Opcode }, | |
9422 | { Bad_Opcode }, | |
9423 | { Bad_Opcode }, | |
9424 | { Bad_Opcode }, | |
9425 | { Bad_Opcode }, | |
9426 | { Bad_Opcode }, | |
c0f3af97 | 9427 | /* e8 */ |
592d1631 L |
9428 | { Bad_Opcode }, |
9429 | { Bad_Opcode }, | |
9430 | { Bad_Opcode }, | |
9431 | { Bad_Opcode }, | |
9432 | { Bad_Opcode }, | |
9433 | { Bad_Opcode }, | |
9434 | { Bad_Opcode }, | |
9435 | { Bad_Opcode }, | |
c0f3af97 | 9436 | /* f0 */ |
6c30d220 | 9437 | { PREFIX_TABLE (PREFIX_VEX_0F3AF0) }, |
592d1631 L |
9438 | { Bad_Opcode }, |
9439 | { Bad_Opcode }, | |
9440 | { Bad_Opcode }, | |
9441 | { Bad_Opcode }, | |
9442 | { Bad_Opcode }, | |
9443 | { Bad_Opcode }, | |
9444 | { Bad_Opcode }, | |
c0f3af97 | 9445 | /* f8 */ |
592d1631 L |
9446 | { Bad_Opcode }, |
9447 | { Bad_Opcode }, | |
9448 | { Bad_Opcode }, | |
9449 | { Bad_Opcode }, | |
9450 | { Bad_Opcode }, | |
9451 | { Bad_Opcode }, | |
9452 | { Bad_Opcode }, | |
9453 | { Bad_Opcode }, | |
c0f3af97 L |
9454 | }, |
9455 | }; | |
9456 | ||
43234a1e L |
9457 | #define NEED_OPCODE_TABLE |
9458 | #include "i386-dis-evex.h" | |
9459 | #undef NEED_OPCODE_TABLE | |
c0f3af97 | 9460 | static const struct dis386 vex_len_table[][2] = { |
592a252b | 9461 | /* VEX_LEN_0F10_P_1 */ |
c0f3af97 | 9462 | { |
592a252b L |
9463 | { VEX_W_TABLE (VEX_W_0F10_P_1) }, |
9464 | { VEX_W_TABLE (VEX_W_0F10_P_1) }, | |
c0f3af97 L |
9465 | }, |
9466 | ||
592a252b | 9467 | /* VEX_LEN_0F10_P_3 */ |
c0f3af97 | 9468 | { |
592a252b L |
9469 | { VEX_W_TABLE (VEX_W_0F10_P_3) }, |
9470 | { VEX_W_TABLE (VEX_W_0F10_P_3) }, | |
c0f3af97 L |
9471 | }, |
9472 | ||
592a252b | 9473 | /* VEX_LEN_0F11_P_1 */ |
c0f3af97 | 9474 | { |
592a252b L |
9475 | { VEX_W_TABLE (VEX_W_0F11_P_1) }, |
9476 | { VEX_W_TABLE (VEX_W_0F11_P_1) }, | |
c0f3af97 L |
9477 | }, |
9478 | ||
592a252b | 9479 | /* VEX_LEN_0F11_P_3 */ |
c0f3af97 | 9480 | { |
592a252b L |
9481 | { VEX_W_TABLE (VEX_W_0F11_P_3) }, |
9482 | { VEX_W_TABLE (VEX_W_0F11_P_3) }, | |
c0f3af97 L |
9483 | }, |
9484 | ||
592a252b | 9485 | /* VEX_LEN_0F12_P_0_M_0 */ |
c0f3af97 | 9486 | { |
592a252b | 9487 | { VEX_W_TABLE (VEX_W_0F12_P_0_M_0) }, |
c0f3af97 L |
9488 | }, |
9489 | ||
592a252b | 9490 | /* VEX_LEN_0F12_P_0_M_1 */ |
c0f3af97 | 9491 | { |
592a252b | 9492 | { VEX_W_TABLE (VEX_W_0F12_P_0_M_1) }, |
c0f3af97 L |
9493 | }, |
9494 | ||
592a252b | 9495 | /* VEX_LEN_0F12_P_2 */ |
c0f3af97 | 9496 | { |
592a252b | 9497 | { VEX_W_TABLE (VEX_W_0F12_P_2) }, |
c0f3af97 L |
9498 | }, |
9499 | ||
592a252b | 9500 | /* VEX_LEN_0F13_M_0 */ |
c0f3af97 | 9501 | { |
592a252b | 9502 | { VEX_W_TABLE (VEX_W_0F13_M_0) }, |
c0f3af97 L |
9503 | }, |
9504 | ||
592a252b | 9505 | /* VEX_LEN_0F16_P_0_M_0 */ |
c0f3af97 | 9506 | { |
592a252b | 9507 | { VEX_W_TABLE (VEX_W_0F16_P_0_M_0) }, |
c0f3af97 L |
9508 | }, |
9509 | ||
592a252b | 9510 | /* VEX_LEN_0F16_P_0_M_1 */ |
c0f3af97 | 9511 | { |
592a252b | 9512 | { VEX_W_TABLE (VEX_W_0F16_P_0_M_1) }, |
c0f3af97 L |
9513 | }, |
9514 | ||
592a252b | 9515 | /* VEX_LEN_0F16_P_2 */ |
c0f3af97 | 9516 | { |
592a252b | 9517 | { VEX_W_TABLE (VEX_W_0F16_P_2) }, |
c0f3af97 L |
9518 | }, |
9519 | ||
592a252b | 9520 | /* VEX_LEN_0F17_M_0 */ |
c0f3af97 | 9521 | { |
592a252b | 9522 | { VEX_W_TABLE (VEX_W_0F17_M_0) }, |
c0f3af97 L |
9523 | }, |
9524 | ||
592a252b | 9525 | /* VEX_LEN_0F2A_P_1 */ |
c0f3af97 | 9526 | { |
bf890a93 IT |
9527 | { "vcvtsi2ss%LQ", { XMScalar, VexScalar, Ev }, 0 }, |
9528 | { "vcvtsi2ss%LQ", { XMScalar, VexScalar, Ev }, 0 }, | |
c0f3af97 L |
9529 | }, |
9530 | ||
592a252b | 9531 | /* VEX_LEN_0F2A_P_3 */ |
c0f3af97 | 9532 | { |
bf890a93 IT |
9533 | { "vcvtsi2sd%LQ", { XMScalar, VexScalar, Ev }, 0 }, |
9534 | { "vcvtsi2sd%LQ", { XMScalar, VexScalar, Ev }, 0 }, | |
c0f3af97 L |
9535 | }, |
9536 | ||
592a252b | 9537 | /* VEX_LEN_0F2C_P_1 */ |
c0f3af97 | 9538 | { |
bf890a93 IT |
9539 | { "vcvttss2siY", { Gv, EXdScalar }, 0 }, |
9540 | { "vcvttss2siY", { Gv, EXdScalar }, 0 }, | |
c0f3af97 L |
9541 | }, |
9542 | ||
592a252b | 9543 | /* VEX_LEN_0F2C_P_3 */ |
c0f3af97 | 9544 | { |
bf890a93 IT |
9545 | { "vcvttsd2siY", { Gv, EXqScalar }, 0 }, |
9546 | { "vcvttsd2siY", { Gv, EXqScalar }, 0 }, | |
c0f3af97 L |
9547 | }, |
9548 | ||
592a252b | 9549 | /* VEX_LEN_0F2D_P_1 */ |
c0f3af97 | 9550 | { |
bf890a93 IT |
9551 | { "vcvtss2siY", { Gv, EXdScalar }, 0 }, |
9552 | { "vcvtss2siY", { Gv, EXdScalar }, 0 }, | |
c0f3af97 L |
9553 | }, |
9554 | ||
592a252b | 9555 | /* VEX_LEN_0F2D_P_3 */ |
c0f3af97 | 9556 | { |
bf890a93 IT |
9557 | { "vcvtsd2siY", { Gv, EXqScalar }, 0 }, |
9558 | { "vcvtsd2siY", { Gv, EXqScalar }, 0 }, | |
c0f3af97 L |
9559 | }, |
9560 | ||
592a252b | 9561 | /* VEX_LEN_0F2E_P_0 */ |
c0f3af97 | 9562 | { |
592a252b L |
9563 | { VEX_W_TABLE (VEX_W_0F2E_P_0) }, |
9564 | { VEX_W_TABLE (VEX_W_0F2E_P_0) }, | |
c0f3af97 L |
9565 | }, |
9566 | ||
592a252b | 9567 | /* VEX_LEN_0F2E_P_2 */ |
c0f3af97 | 9568 | { |
592a252b L |
9569 | { VEX_W_TABLE (VEX_W_0F2E_P_2) }, |
9570 | { VEX_W_TABLE (VEX_W_0F2E_P_2) }, | |
c0f3af97 L |
9571 | }, |
9572 | ||
592a252b | 9573 | /* VEX_LEN_0F2F_P_0 */ |
c0f3af97 | 9574 | { |
592a252b L |
9575 | { VEX_W_TABLE (VEX_W_0F2F_P_0) }, |
9576 | { VEX_W_TABLE (VEX_W_0F2F_P_0) }, | |
c0f3af97 L |
9577 | }, |
9578 | ||
592a252b | 9579 | /* VEX_LEN_0F2F_P_2 */ |
c0f3af97 | 9580 | { |
592a252b L |
9581 | { VEX_W_TABLE (VEX_W_0F2F_P_2) }, |
9582 | { VEX_W_TABLE (VEX_W_0F2F_P_2) }, | |
c0f3af97 L |
9583 | }, |
9584 | ||
43234a1e L |
9585 | /* VEX_LEN_0F41_P_0 */ |
9586 | { | |
9587 | { Bad_Opcode }, | |
9588 | { VEX_W_TABLE (VEX_W_0F41_P_0_LEN_1) }, | |
9589 | }, | |
1ba585e8 IT |
9590 | /* VEX_LEN_0F41_P_2 */ |
9591 | { | |
9592 | { Bad_Opcode }, | |
9593 | { VEX_W_TABLE (VEX_W_0F41_P_2_LEN_1) }, | |
9594 | }, | |
43234a1e L |
9595 | /* VEX_LEN_0F42_P_0 */ |
9596 | { | |
9597 | { Bad_Opcode }, | |
9598 | { VEX_W_TABLE (VEX_W_0F42_P_0_LEN_1) }, | |
9599 | }, | |
1ba585e8 IT |
9600 | /* VEX_LEN_0F42_P_2 */ |
9601 | { | |
9602 | { Bad_Opcode }, | |
9603 | { VEX_W_TABLE (VEX_W_0F42_P_2_LEN_1) }, | |
9604 | }, | |
43234a1e L |
9605 | /* VEX_LEN_0F44_P_0 */ |
9606 | { | |
9607 | { VEX_W_TABLE (VEX_W_0F44_P_0_LEN_0) }, | |
9608 | }, | |
1ba585e8 IT |
9609 | /* VEX_LEN_0F44_P_2 */ |
9610 | { | |
9611 | { VEX_W_TABLE (VEX_W_0F44_P_2_LEN_0) }, | |
9612 | }, | |
43234a1e L |
9613 | /* VEX_LEN_0F45_P_0 */ |
9614 | { | |
9615 | { Bad_Opcode }, | |
9616 | { VEX_W_TABLE (VEX_W_0F45_P_0_LEN_1) }, | |
9617 | }, | |
1ba585e8 IT |
9618 | /* VEX_LEN_0F45_P_2 */ |
9619 | { | |
9620 | { Bad_Opcode }, | |
9621 | { VEX_W_TABLE (VEX_W_0F45_P_2_LEN_1) }, | |
9622 | }, | |
43234a1e L |
9623 | /* VEX_LEN_0F46_P_0 */ |
9624 | { | |
9625 | { Bad_Opcode }, | |
9626 | { VEX_W_TABLE (VEX_W_0F46_P_0_LEN_1) }, | |
9627 | }, | |
1ba585e8 IT |
9628 | /* VEX_LEN_0F46_P_2 */ |
9629 | { | |
9630 | { Bad_Opcode }, | |
9631 | { VEX_W_TABLE (VEX_W_0F46_P_2_LEN_1) }, | |
9632 | }, | |
43234a1e L |
9633 | /* VEX_LEN_0F47_P_0 */ |
9634 | { | |
9635 | { Bad_Opcode }, | |
9636 | { VEX_W_TABLE (VEX_W_0F47_P_0_LEN_1) }, | |
9637 | }, | |
1ba585e8 IT |
9638 | /* VEX_LEN_0F47_P_2 */ |
9639 | { | |
9640 | { Bad_Opcode }, | |
9641 | { VEX_W_TABLE (VEX_W_0F47_P_2_LEN_1) }, | |
9642 | }, | |
9643 | /* VEX_LEN_0F4A_P_0 */ | |
9644 | { | |
9645 | { Bad_Opcode }, | |
9646 | { VEX_W_TABLE (VEX_W_0F4A_P_0_LEN_1) }, | |
9647 | }, | |
9648 | /* VEX_LEN_0F4A_P_2 */ | |
9649 | { | |
9650 | { Bad_Opcode }, | |
9651 | { VEX_W_TABLE (VEX_W_0F4A_P_2_LEN_1) }, | |
9652 | }, | |
9653 | /* VEX_LEN_0F4B_P_0 */ | |
9654 | { | |
9655 | { Bad_Opcode }, | |
9656 | { VEX_W_TABLE (VEX_W_0F4B_P_0_LEN_1) }, | |
9657 | }, | |
43234a1e L |
9658 | /* VEX_LEN_0F4B_P_2 */ |
9659 | { | |
9660 | { Bad_Opcode }, | |
9661 | { VEX_W_TABLE (VEX_W_0F4B_P_2_LEN_1) }, | |
9662 | }, | |
9663 | ||
592a252b | 9664 | /* VEX_LEN_0F51_P_1 */ |
c0f3af97 | 9665 | { |
592a252b L |
9666 | { VEX_W_TABLE (VEX_W_0F51_P_1) }, |
9667 | { VEX_W_TABLE (VEX_W_0F51_P_1) }, | |
c0f3af97 L |
9668 | }, |
9669 | ||
592a252b | 9670 | /* VEX_LEN_0F51_P_3 */ |
c0f3af97 | 9671 | { |
592a252b L |
9672 | { VEX_W_TABLE (VEX_W_0F51_P_3) }, |
9673 | { VEX_W_TABLE (VEX_W_0F51_P_3) }, | |
c0f3af97 L |
9674 | }, |
9675 | ||
592a252b | 9676 | /* VEX_LEN_0F52_P_1 */ |
c0f3af97 | 9677 | { |
592a252b L |
9678 | { VEX_W_TABLE (VEX_W_0F52_P_1) }, |
9679 | { VEX_W_TABLE (VEX_W_0F52_P_1) }, | |
c0f3af97 L |
9680 | }, |
9681 | ||
592a252b | 9682 | /* VEX_LEN_0F53_P_1 */ |
c0f3af97 | 9683 | { |
592a252b L |
9684 | { VEX_W_TABLE (VEX_W_0F53_P_1) }, |
9685 | { VEX_W_TABLE (VEX_W_0F53_P_1) }, | |
c0f3af97 L |
9686 | }, |
9687 | ||
592a252b | 9688 | /* VEX_LEN_0F58_P_1 */ |
c0f3af97 | 9689 | { |
592a252b L |
9690 | { VEX_W_TABLE (VEX_W_0F58_P_1) }, |
9691 | { VEX_W_TABLE (VEX_W_0F58_P_1) }, | |
c0f3af97 L |
9692 | }, |
9693 | ||
592a252b | 9694 | /* VEX_LEN_0F58_P_3 */ |
c0f3af97 | 9695 | { |
592a252b L |
9696 | { VEX_W_TABLE (VEX_W_0F58_P_3) }, |
9697 | { VEX_W_TABLE (VEX_W_0F58_P_3) }, | |
c0f3af97 L |
9698 | }, |
9699 | ||
592a252b | 9700 | /* VEX_LEN_0F59_P_1 */ |
c0f3af97 | 9701 | { |
592a252b L |
9702 | { VEX_W_TABLE (VEX_W_0F59_P_1) }, |
9703 | { VEX_W_TABLE (VEX_W_0F59_P_1) }, | |
c0f3af97 L |
9704 | }, |
9705 | ||
592a252b | 9706 | /* VEX_LEN_0F59_P_3 */ |
c0f3af97 | 9707 | { |
592a252b L |
9708 | { VEX_W_TABLE (VEX_W_0F59_P_3) }, |
9709 | { VEX_W_TABLE (VEX_W_0F59_P_3) }, | |
c0f3af97 L |
9710 | }, |
9711 | ||
592a252b | 9712 | /* VEX_LEN_0F5A_P_1 */ |
c0f3af97 | 9713 | { |
592a252b L |
9714 | { VEX_W_TABLE (VEX_W_0F5A_P_1) }, |
9715 | { VEX_W_TABLE (VEX_W_0F5A_P_1) }, | |
c0f3af97 L |
9716 | }, |
9717 | ||
592a252b | 9718 | /* VEX_LEN_0F5A_P_3 */ |
c0f3af97 | 9719 | { |
592a252b L |
9720 | { VEX_W_TABLE (VEX_W_0F5A_P_3) }, |
9721 | { VEX_W_TABLE (VEX_W_0F5A_P_3) }, | |
c0f3af97 L |
9722 | }, |
9723 | ||
592a252b | 9724 | /* VEX_LEN_0F5C_P_1 */ |
c0f3af97 | 9725 | { |
592a252b L |
9726 | { VEX_W_TABLE (VEX_W_0F5C_P_1) }, |
9727 | { VEX_W_TABLE (VEX_W_0F5C_P_1) }, | |
c0f3af97 L |
9728 | }, |
9729 | ||
592a252b | 9730 | /* VEX_LEN_0F5C_P_3 */ |
c0f3af97 | 9731 | { |
592a252b L |
9732 | { VEX_W_TABLE (VEX_W_0F5C_P_3) }, |
9733 | { VEX_W_TABLE (VEX_W_0F5C_P_3) }, | |
c0f3af97 L |
9734 | }, |
9735 | ||
592a252b | 9736 | /* VEX_LEN_0F5D_P_1 */ |
c0f3af97 | 9737 | { |
592a252b L |
9738 | { VEX_W_TABLE (VEX_W_0F5D_P_1) }, |
9739 | { VEX_W_TABLE (VEX_W_0F5D_P_1) }, | |
c0f3af97 L |
9740 | }, |
9741 | ||
592a252b | 9742 | /* VEX_LEN_0F5D_P_3 */ |
c0f3af97 | 9743 | { |
592a252b L |
9744 | { VEX_W_TABLE (VEX_W_0F5D_P_3) }, |
9745 | { VEX_W_TABLE (VEX_W_0F5D_P_3) }, | |
c0f3af97 L |
9746 | }, |
9747 | ||
592a252b | 9748 | /* VEX_LEN_0F5E_P_1 */ |
c0f3af97 | 9749 | { |
592a252b L |
9750 | { VEX_W_TABLE (VEX_W_0F5E_P_1) }, |
9751 | { VEX_W_TABLE (VEX_W_0F5E_P_1) }, | |
c0f3af97 L |
9752 | }, |
9753 | ||
592a252b | 9754 | /* VEX_LEN_0F5E_P_3 */ |
c0f3af97 | 9755 | { |
592a252b L |
9756 | { VEX_W_TABLE (VEX_W_0F5E_P_3) }, |
9757 | { VEX_W_TABLE (VEX_W_0F5E_P_3) }, | |
c0f3af97 L |
9758 | }, |
9759 | ||
592a252b | 9760 | /* VEX_LEN_0F5F_P_1 */ |
c0f3af97 | 9761 | { |
592a252b L |
9762 | { VEX_W_TABLE (VEX_W_0F5F_P_1) }, |
9763 | { VEX_W_TABLE (VEX_W_0F5F_P_1) }, | |
c0f3af97 L |
9764 | }, |
9765 | ||
592a252b | 9766 | /* VEX_LEN_0F5F_P_3 */ |
c0f3af97 | 9767 | { |
592a252b L |
9768 | { VEX_W_TABLE (VEX_W_0F5F_P_3) }, |
9769 | { VEX_W_TABLE (VEX_W_0F5F_P_3) }, | |
c0f3af97 L |
9770 | }, |
9771 | ||
592a252b | 9772 | /* VEX_LEN_0F6E_P_2 */ |
c0f3af97 | 9773 | { |
bf890a93 IT |
9774 | { "vmovK", { XMScalar, Edq }, 0 }, |
9775 | { "vmovK", { XMScalar, Edq }, 0 }, | |
c0f3af97 L |
9776 | }, |
9777 | ||
592a252b | 9778 | /* VEX_LEN_0F7E_P_1 */ |
c0f3af97 | 9779 | { |
592a252b L |
9780 | { VEX_W_TABLE (VEX_W_0F7E_P_1) }, |
9781 | { VEX_W_TABLE (VEX_W_0F7E_P_1) }, | |
c0f3af97 L |
9782 | }, |
9783 | ||
592a252b | 9784 | /* VEX_LEN_0F7E_P_2 */ |
c0f3af97 | 9785 | { |
bf890a93 IT |
9786 | { "vmovK", { Edq, XMScalar }, 0 }, |
9787 | { "vmovK", { Edq, XMScalar }, 0 }, | |
c0f3af97 L |
9788 | }, |
9789 | ||
43234a1e L |
9790 | /* VEX_LEN_0F90_P_0 */ |
9791 | { | |
9792 | { VEX_W_TABLE (VEX_W_0F90_P_0_LEN_0) }, | |
9793 | }, | |
9794 | ||
1ba585e8 IT |
9795 | /* VEX_LEN_0F90_P_2 */ |
9796 | { | |
9797 | { VEX_W_TABLE (VEX_W_0F90_P_2_LEN_0) }, | |
9798 | }, | |
9799 | ||
43234a1e L |
9800 | /* VEX_LEN_0F91_P_0 */ |
9801 | { | |
9802 | { VEX_W_TABLE (VEX_W_0F91_P_0_LEN_0) }, | |
9803 | }, | |
9804 | ||
1ba585e8 IT |
9805 | /* VEX_LEN_0F91_P_2 */ |
9806 | { | |
9807 | { VEX_W_TABLE (VEX_W_0F91_P_2_LEN_0) }, | |
9808 | }, | |
9809 | ||
43234a1e L |
9810 | /* VEX_LEN_0F92_P_0 */ |
9811 | { | |
9812 | { VEX_W_TABLE (VEX_W_0F92_P_0_LEN_0) }, | |
9813 | }, | |
9814 | ||
90a915bf IT |
9815 | /* VEX_LEN_0F92_P_2 */ |
9816 | { | |
9817 | { VEX_W_TABLE (VEX_W_0F92_P_2_LEN_0) }, | |
9818 | }, | |
9819 | ||
1ba585e8 IT |
9820 | /* VEX_LEN_0F92_P_3 */ |
9821 | { | |
9822 | { VEX_W_TABLE (VEX_W_0F92_P_3_LEN_0) }, | |
9823 | }, | |
9824 | ||
43234a1e L |
9825 | /* VEX_LEN_0F93_P_0 */ |
9826 | { | |
9827 | { VEX_W_TABLE (VEX_W_0F93_P_0_LEN_0) }, | |
9828 | }, | |
9829 | ||
90a915bf IT |
9830 | /* VEX_LEN_0F93_P_2 */ |
9831 | { | |
9832 | { VEX_W_TABLE (VEX_W_0F93_P_2_LEN_0) }, | |
9833 | }, | |
9834 | ||
1ba585e8 IT |
9835 | /* VEX_LEN_0F93_P_3 */ |
9836 | { | |
9837 | { VEX_W_TABLE (VEX_W_0F93_P_3_LEN_0) }, | |
9838 | }, | |
9839 | ||
43234a1e L |
9840 | /* VEX_LEN_0F98_P_0 */ |
9841 | { | |
9842 | { VEX_W_TABLE (VEX_W_0F98_P_0_LEN_0) }, | |
9843 | }, | |
9844 | ||
1ba585e8 IT |
9845 | /* VEX_LEN_0F98_P_2 */ |
9846 | { | |
9847 | { VEX_W_TABLE (VEX_W_0F98_P_2_LEN_0) }, | |
9848 | }, | |
9849 | ||
9850 | /* VEX_LEN_0F99_P_0 */ | |
9851 | { | |
9852 | { VEX_W_TABLE (VEX_W_0F99_P_0_LEN_0) }, | |
9853 | }, | |
9854 | ||
9855 | /* VEX_LEN_0F99_P_2 */ | |
9856 | { | |
9857 | { VEX_W_TABLE (VEX_W_0F99_P_2_LEN_0) }, | |
9858 | }, | |
9859 | ||
6c30d220 | 9860 | /* VEX_LEN_0FAE_R_2_M_0 */ |
c0f3af97 | 9861 | { |
6c30d220 | 9862 | { VEX_W_TABLE (VEX_W_0FAE_R_2_M_0) }, |
c0f3af97 L |
9863 | }, |
9864 | ||
6c30d220 | 9865 | /* VEX_LEN_0FAE_R_3_M_0 */ |
c0f3af97 | 9866 | { |
6c30d220 | 9867 | { VEX_W_TABLE (VEX_W_0FAE_R_3_M_0) }, |
c0f3af97 L |
9868 | }, |
9869 | ||
6c30d220 | 9870 | /* VEX_LEN_0FC2_P_1 */ |
c0f3af97 | 9871 | { |
6c30d220 L |
9872 | { VEX_W_TABLE (VEX_W_0FC2_P_1) }, |
9873 | { VEX_W_TABLE (VEX_W_0FC2_P_1) }, | |
c0f3af97 L |
9874 | }, |
9875 | ||
6c30d220 | 9876 | /* VEX_LEN_0FC2_P_3 */ |
c0f3af97 | 9877 | { |
6c30d220 L |
9878 | { VEX_W_TABLE (VEX_W_0FC2_P_3) }, |
9879 | { VEX_W_TABLE (VEX_W_0FC2_P_3) }, | |
c0f3af97 L |
9880 | }, |
9881 | ||
6c30d220 | 9882 | /* VEX_LEN_0FC4_P_2 */ |
c0f3af97 | 9883 | { |
6c30d220 | 9884 | { VEX_W_TABLE (VEX_W_0FC4_P_2) }, |
c0f3af97 L |
9885 | }, |
9886 | ||
6c30d220 | 9887 | /* VEX_LEN_0FC5_P_2 */ |
c0f3af97 | 9888 | { |
6c30d220 | 9889 | { VEX_W_TABLE (VEX_W_0FC5_P_2) }, |
c0f3af97 L |
9890 | }, |
9891 | ||
6c30d220 | 9892 | /* VEX_LEN_0FD6_P_2 */ |
c0f3af97 | 9893 | { |
6c30d220 L |
9894 | { VEX_W_TABLE (VEX_W_0FD6_P_2) }, |
9895 | { VEX_W_TABLE (VEX_W_0FD6_P_2) }, | |
c0f3af97 L |
9896 | }, |
9897 | ||
6c30d220 | 9898 | /* VEX_LEN_0FF7_P_2 */ |
c0f3af97 | 9899 | { |
6c30d220 | 9900 | { VEX_W_TABLE (VEX_W_0FF7_P_2) }, |
c0f3af97 L |
9901 | }, |
9902 | ||
6c30d220 | 9903 | /* VEX_LEN_0F3816_P_2 */ |
c0f3af97 | 9904 | { |
6c30d220 L |
9905 | { Bad_Opcode }, |
9906 | { VEX_W_TABLE (VEX_W_0F3816_P_2) }, | |
c0f3af97 L |
9907 | }, |
9908 | ||
6c30d220 | 9909 | /* VEX_LEN_0F3819_P_2 */ |
c0f3af97 | 9910 | { |
6c30d220 L |
9911 | { Bad_Opcode }, |
9912 | { VEX_W_TABLE (VEX_W_0F3819_P_2) }, | |
c0f3af97 L |
9913 | }, |
9914 | ||
6c30d220 | 9915 | /* VEX_LEN_0F381A_P_2_M_0 */ |
c0f3af97 | 9916 | { |
6c30d220 L |
9917 | { Bad_Opcode }, |
9918 | { VEX_W_TABLE (VEX_W_0F381A_P_2_M_0) }, | |
c0f3af97 L |
9919 | }, |
9920 | ||
6c30d220 | 9921 | /* VEX_LEN_0F3836_P_2 */ |
c0f3af97 | 9922 | { |
6c30d220 L |
9923 | { Bad_Opcode }, |
9924 | { VEX_W_TABLE (VEX_W_0F3836_P_2) }, | |
c0f3af97 L |
9925 | }, |
9926 | ||
592a252b | 9927 | /* VEX_LEN_0F3841_P_2 */ |
c0f3af97 | 9928 | { |
592a252b | 9929 | { VEX_W_TABLE (VEX_W_0F3841_P_2) }, |
c0f3af97 L |
9930 | }, |
9931 | ||
6c30d220 L |
9932 | /* VEX_LEN_0F385A_P_2_M_0 */ |
9933 | { | |
9934 | { Bad_Opcode }, | |
9935 | { VEX_W_TABLE (VEX_W_0F385A_P_2_M_0) }, | |
9936 | }, | |
9937 | ||
592a252b | 9938 | /* VEX_LEN_0F38DB_P_2 */ |
a5ff0eb2 | 9939 | { |
592a252b | 9940 | { VEX_W_TABLE (VEX_W_0F38DB_P_2) }, |
a5ff0eb2 L |
9941 | }, |
9942 | ||
f12dc422 L |
9943 | /* VEX_LEN_0F38F2_P_0 */ |
9944 | { | |
bf890a93 | 9945 | { "andnS", { Gdq, VexGdq, Edq }, 0 }, |
f12dc422 L |
9946 | }, |
9947 | ||
9948 | /* VEX_LEN_0F38F3_R_1_P_0 */ | |
9949 | { | |
bf890a93 | 9950 | { "blsrS", { VexGdq, Edq }, 0 }, |
f12dc422 L |
9951 | }, |
9952 | ||
9953 | /* VEX_LEN_0F38F3_R_2_P_0 */ | |
9954 | { | |
bf890a93 | 9955 | { "blsmskS", { VexGdq, Edq }, 0 }, |
f12dc422 L |
9956 | }, |
9957 | ||
9958 | /* VEX_LEN_0F38F3_R_3_P_0 */ | |
9959 | { | |
bf890a93 | 9960 | { "blsiS", { VexGdq, Edq }, 0 }, |
f12dc422 L |
9961 | }, |
9962 | ||
6c30d220 L |
9963 | /* VEX_LEN_0F38F5_P_0 */ |
9964 | { | |
bf890a93 | 9965 | { "bzhiS", { Gdq, Edq, VexGdq }, 0 }, |
6c30d220 L |
9966 | }, |
9967 | ||
9968 | /* VEX_LEN_0F38F5_P_1 */ | |
9969 | { | |
bf890a93 | 9970 | { "pextS", { Gdq, VexGdq, Edq }, 0 }, |
6c30d220 L |
9971 | }, |
9972 | ||
9973 | /* VEX_LEN_0F38F5_P_3 */ | |
9974 | { | |
bf890a93 | 9975 | { "pdepS", { Gdq, VexGdq, Edq }, 0 }, |
6c30d220 L |
9976 | }, |
9977 | ||
9978 | /* VEX_LEN_0F38F6_P_3 */ | |
9979 | { | |
bf890a93 | 9980 | { "mulxS", { Gdq, VexGdq, Edq }, 0 }, |
6c30d220 L |
9981 | }, |
9982 | ||
f12dc422 L |
9983 | /* VEX_LEN_0F38F7_P_0 */ |
9984 | { | |
bf890a93 | 9985 | { "bextrS", { Gdq, Edq, VexGdq }, 0 }, |
f12dc422 L |
9986 | }, |
9987 | ||
6c30d220 L |
9988 | /* VEX_LEN_0F38F7_P_1 */ |
9989 | { | |
bf890a93 | 9990 | { "sarxS", { Gdq, Edq, VexGdq }, 0 }, |
6c30d220 L |
9991 | }, |
9992 | ||
9993 | /* VEX_LEN_0F38F7_P_2 */ | |
9994 | { | |
bf890a93 | 9995 | { "shlxS", { Gdq, Edq, VexGdq }, 0 }, |
6c30d220 L |
9996 | }, |
9997 | ||
9998 | /* VEX_LEN_0F38F7_P_3 */ | |
9999 | { | |
bf890a93 | 10000 | { "shrxS", { Gdq, Edq, VexGdq }, 0 }, |
6c30d220 L |
10001 | }, |
10002 | ||
10003 | /* VEX_LEN_0F3A00_P_2 */ | |
10004 | { | |
10005 | { Bad_Opcode }, | |
10006 | { VEX_W_TABLE (VEX_W_0F3A00_P_2) }, | |
10007 | }, | |
10008 | ||
10009 | /* VEX_LEN_0F3A01_P_2 */ | |
10010 | { | |
10011 | { Bad_Opcode }, | |
10012 | { VEX_W_TABLE (VEX_W_0F3A01_P_2) }, | |
10013 | }, | |
10014 | ||
592a252b | 10015 | /* VEX_LEN_0F3A06_P_2 */ |
c0f3af97 | 10016 | { |
592d1631 | 10017 | { Bad_Opcode }, |
592a252b | 10018 | { VEX_W_TABLE (VEX_W_0F3A06_P_2) }, |
c0f3af97 L |
10019 | }, |
10020 | ||
592a252b | 10021 | /* VEX_LEN_0F3A0A_P_2 */ |
c0f3af97 | 10022 | { |
592a252b L |
10023 | { VEX_W_TABLE (VEX_W_0F3A0A_P_2) }, |
10024 | { VEX_W_TABLE (VEX_W_0F3A0A_P_2) }, | |
c0f3af97 L |
10025 | }, |
10026 | ||
592a252b | 10027 | /* VEX_LEN_0F3A0B_P_2 */ |
c0f3af97 | 10028 | { |
592a252b L |
10029 | { VEX_W_TABLE (VEX_W_0F3A0B_P_2) }, |
10030 | { VEX_W_TABLE (VEX_W_0F3A0B_P_2) }, | |
c0f3af97 L |
10031 | }, |
10032 | ||
592a252b | 10033 | /* VEX_LEN_0F3A14_P_2 */ |
c0f3af97 | 10034 | { |
592a252b | 10035 | { VEX_W_TABLE (VEX_W_0F3A14_P_2) }, |
c0f3af97 L |
10036 | }, |
10037 | ||
592a252b | 10038 | /* VEX_LEN_0F3A15_P_2 */ |
c0f3af97 | 10039 | { |
592a252b | 10040 | { VEX_W_TABLE (VEX_W_0F3A15_P_2) }, |
c0f3af97 L |
10041 | }, |
10042 | ||
592a252b | 10043 | /* VEX_LEN_0F3A16_P_2 */ |
c0f3af97 | 10044 | { |
bf890a93 | 10045 | { "vpextrK", { Edq, XM, Ib }, 0 }, |
c0f3af97 L |
10046 | }, |
10047 | ||
592a252b | 10048 | /* VEX_LEN_0F3A17_P_2 */ |
c0f3af97 | 10049 | { |
bf890a93 | 10050 | { "vextractps", { Edqd, XM, Ib }, 0 }, |
c0f3af97 L |
10051 | }, |
10052 | ||
592a252b | 10053 | /* VEX_LEN_0F3A18_P_2 */ |
c0f3af97 | 10054 | { |
592d1631 | 10055 | { Bad_Opcode }, |
592a252b | 10056 | { VEX_W_TABLE (VEX_W_0F3A18_P_2) }, |
c0f3af97 L |
10057 | }, |
10058 | ||
592a252b | 10059 | /* VEX_LEN_0F3A19_P_2 */ |
c0f3af97 | 10060 | { |
592d1631 | 10061 | { Bad_Opcode }, |
592a252b | 10062 | { VEX_W_TABLE (VEX_W_0F3A19_P_2) }, |
c0f3af97 L |
10063 | }, |
10064 | ||
592a252b | 10065 | /* VEX_LEN_0F3A20_P_2 */ |
c0f3af97 | 10066 | { |
592a252b | 10067 | { VEX_W_TABLE (VEX_W_0F3A20_P_2) }, |
c0f3af97 L |
10068 | }, |
10069 | ||
592a252b | 10070 | /* VEX_LEN_0F3A21_P_2 */ |
c0f3af97 | 10071 | { |
592a252b | 10072 | { VEX_W_TABLE (VEX_W_0F3A21_P_2) }, |
c0f3af97 L |
10073 | }, |
10074 | ||
592a252b | 10075 | /* VEX_LEN_0F3A22_P_2 */ |
c0f3af97 | 10076 | { |
bf890a93 | 10077 | { "vpinsrK", { XM, Vex128, Edq, Ib }, 0 }, |
c0f3af97 L |
10078 | }, |
10079 | ||
43234a1e L |
10080 | /* VEX_LEN_0F3A30_P_2 */ |
10081 | { | |
10082 | { VEX_W_TABLE (VEX_W_0F3A30_P_2_LEN_0) }, | |
10083 | }, | |
10084 | ||
1ba585e8 IT |
10085 | /* VEX_LEN_0F3A31_P_2 */ |
10086 | { | |
10087 | { VEX_W_TABLE (VEX_W_0F3A31_P_2_LEN_0) }, | |
10088 | }, | |
10089 | ||
43234a1e L |
10090 | /* VEX_LEN_0F3A32_P_2 */ |
10091 | { | |
10092 | { VEX_W_TABLE (VEX_W_0F3A32_P_2_LEN_0) }, | |
10093 | }, | |
10094 | ||
1ba585e8 IT |
10095 | /* VEX_LEN_0F3A33_P_2 */ |
10096 | { | |
10097 | { VEX_W_TABLE (VEX_W_0F3A33_P_2_LEN_0) }, | |
10098 | }, | |
10099 | ||
6c30d220 | 10100 | /* VEX_LEN_0F3A38_P_2 */ |
c0f3af97 | 10101 | { |
6c30d220 L |
10102 | { Bad_Opcode }, |
10103 | { VEX_W_TABLE (VEX_W_0F3A38_P_2) }, | |
c0f3af97 L |
10104 | }, |
10105 | ||
6c30d220 | 10106 | /* VEX_LEN_0F3A39_P_2 */ |
c0f3af97 | 10107 | { |
6c30d220 L |
10108 | { Bad_Opcode }, |
10109 | { VEX_W_TABLE (VEX_W_0F3A39_P_2) }, | |
10110 | }, | |
10111 | ||
10112 | /* VEX_LEN_0F3A41_P_2 */ | |
10113 | { | |
10114 | { VEX_W_TABLE (VEX_W_0F3A41_P_2) }, | |
c0f3af97 L |
10115 | }, |
10116 | ||
6c30d220 | 10117 | /* VEX_LEN_0F3A46_P_2 */ |
c0f3af97 | 10118 | { |
6c30d220 L |
10119 | { Bad_Opcode }, |
10120 | { VEX_W_TABLE (VEX_W_0F3A46_P_2) }, | |
c0f3af97 L |
10121 | }, |
10122 | ||
592a252b | 10123 | /* VEX_LEN_0F3A60_P_2 */ |
c0f3af97 | 10124 | { |
15c7c1d8 | 10125 | { "vpcmpestrm", { XM, { PCMPESTR_Fixup, x_mode }, Ib }, 0 }, |
c0f3af97 L |
10126 | }, |
10127 | ||
592a252b | 10128 | /* VEX_LEN_0F3A61_P_2 */ |
c0f3af97 | 10129 | { |
15c7c1d8 | 10130 | { "vpcmpestri", { XM, { PCMPESTR_Fixup, x_mode }, Ib }, 0 }, |
c0f3af97 L |
10131 | }, |
10132 | ||
592a252b | 10133 | /* VEX_LEN_0F3A62_P_2 */ |
c0f3af97 | 10134 | { |
592a252b | 10135 | { VEX_W_TABLE (VEX_W_0F3A62_P_2) }, |
c0f3af97 L |
10136 | }, |
10137 | ||
592a252b | 10138 | /* VEX_LEN_0F3A63_P_2 */ |
c0f3af97 | 10139 | { |
592a252b | 10140 | { VEX_W_TABLE (VEX_W_0F3A63_P_2) }, |
c0f3af97 L |
10141 | }, |
10142 | ||
592a252b | 10143 | /* VEX_LEN_0F3A6A_P_2 */ |
922d8de8 | 10144 | { |
3a2430e0 | 10145 | { "vfmaddss", { XMVexW, Vex128, EXdVexW, EXdVexW }, 0 }, |
922d8de8 DR |
10146 | }, |
10147 | ||
592a252b | 10148 | /* VEX_LEN_0F3A6B_P_2 */ |
922d8de8 | 10149 | { |
3a2430e0 | 10150 | { "vfmaddsd", { XMVexW, Vex128, EXqVexW, EXqVexW }, 0 }, |
922d8de8 DR |
10151 | }, |
10152 | ||
592a252b | 10153 | /* VEX_LEN_0F3A6E_P_2 */ |
922d8de8 | 10154 | { |
3a2430e0 | 10155 | { "vfmsubss", { XMVexW, Vex128, EXdVexW, EXdVexW }, 0 }, |
922d8de8 DR |
10156 | }, |
10157 | ||
592a252b | 10158 | /* VEX_LEN_0F3A6F_P_2 */ |
922d8de8 | 10159 | { |
3a2430e0 | 10160 | { "vfmsubsd", { XMVexW, Vex128, EXqVexW, EXqVexW }, 0 }, |
922d8de8 DR |
10161 | }, |
10162 | ||
592a252b | 10163 | /* VEX_LEN_0F3A7A_P_2 */ |
922d8de8 | 10164 | { |
3a2430e0 | 10165 | { "vfnmaddss", { XMVexW, Vex128, EXdVexW, EXdVexW }, 0 }, |
922d8de8 DR |
10166 | }, |
10167 | ||
592a252b | 10168 | /* VEX_LEN_0F3A7B_P_2 */ |
922d8de8 | 10169 | { |
3a2430e0 | 10170 | { "vfnmaddsd", { XMVexW, Vex128, EXqVexW, EXqVexW }, 0 }, |
922d8de8 DR |
10171 | }, |
10172 | ||
592a252b | 10173 | /* VEX_LEN_0F3A7E_P_2 */ |
922d8de8 | 10174 | { |
3a2430e0 | 10175 | { "vfnmsubss", { XMVexW, Vex128, EXdVexW, EXdVexW }, 0 }, |
922d8de8 DR |
10176 | }, |
10177 | ||
592a252b | 10178 | /* VEX_LEN_0F3A7F_P_2 */ |
922d8de8 | 10179 | { |
3a2430e0 | 10180 | { "vfnmsubsd", { XMVexW, Vex128, EXqVexW, EXqVexW }, 0 }, |
922d8de8 DR |
10181 | }, |
10182 | ||
592a252b | 10183 | /* VEX_LEN_0F3ADF_P_2 */ |
a5ff0eb2 | 10184 | { |
592a252b | 10185 | { VEX_W_TABLE (VEX_W_0F3ADF_P_2) }, |
a5ff0eb2 | 10186 | }, |
4c807e72 | 10187 | |
6c30d220 L |
10188 | /* VEX_LEN_0F3AF0_P_3 */ |
10189 | { | |
bf890a93 | 10190 | { "rorxS", { Gdq, Edq, Ib }, 0 }, |
6c30d220 L |
10191 | }, |
10192 | ||
ff688e1f L |
10193 | /* VEX_LEN_0FXOP_08_CC */ |
10194 | { | |
be92cb14 | 10195 | { "vpcomb", { XM, Vex128, EXx, VPCOM }, 0 }, |
ff688e1f L |
10196 | }, |
10197 | ||
10198 | /* VEX_LEN_0FXOP_08_CD */ | |
10199 | { | |
be92cb14 | 10200 | { "vpcomw", { XM, Vex128, EXx, VPCOM }, 0 }, |
ff688e1f L |
10201 | }, |
10202 | ||
10203 | /* VEX_LEN_0FXOP_08_CE */ | |
10204 | { | |
be92cb14 | 10205 | { "vpcomd", { XM, Vex128, EXx, VPCOM }, 0 }, |
ff688e1f L |
10206 | }, |
10207 | ||
10208 | /* VEX_LEN_0FXOP_08_CF */ | |
10209 | { | |
be92cb14 | 10210 | { "vpcomq", { XM, Vex128, EXx, VPCOM }, 0 }, |
ff688e1f L |
10211 | }, |
10212 | ||
10213 | /* VEX_LEN_0FXOP_08_EC */ | |
10214 | { | |
be92cb14 | 10215 | { "vpcomub", { XM, Vex128, EXx, VPCOM }, 0 }, |
ff688e1f L |
10216 | }, |
10217 | ||
10218 | /* VEX_LEN_0FXOP_08_ED */ | |
10219 | { | |
be92cb14 | 10220 | { "vpcomuw", { XM, Vex128, EXx, VPCOM }, 0 }, |
ff688e1f L |
10221 | }, |
10222 | ||
10223 | /* VEX_LEN_0FXOP_08_EE */ | |
10224 | { | |
be92cb14 | 10225 | { "vpcomud", { XM, Vex128, EXx, VPCOM }, 0 }, |
ff688e1f L |
10226 | }, |
10227 | ||
10228 | /* VEX_LEN_0FXOP_08_EF */ | |
10229 | { | |
be92cb14 | 10230 | { "vpcomuq", { XM, Vex128, EXx, VPCOM }, 0 }, |
ff688e1f L |
10231 | }, |
10232 | ||
592a252b | 10233 | /* VEX_LEN_0FXOP_09_80 */ |
5dd85c99 | 10234 | { |
bf890a93 IT |
10235 | { "vfrczps", { XM, EXxmm }, 0 }, |
10236 | { "vfrczps", { XM, EXymmq }, 0 }, | |
5dd85c99 | 10237 | }, |
4c807e72 | 10238 | |
592a252b | 10239 | /* VEX_LEN_0FXOP_09_81 */ |
5dd85c99 | 10240 | { |
bf890a93 IT |
10241 | { "vfrczpd", { XM, EXxmm }, 0 }, |
10242 | { "vfrczpd", { XM, EXymmq }, 0 }, | |
5dd85c99 | 10243 | }, |
331d2d0d L |
10244 | }; |
10245 | ||
9e30b8e0 | 10246 | static const struct dis386 vex_w_table[][2] = { |
b844680a | 10247 | { |
592a252b | 10248 | /* VEX_W_0F10_P_0 */ |
bf890a93 | 10249 | { "vmovups", { XM, EXx }, 0 }, |
d8faab4e L |
10250 | }, |
10251 | { | |
592a252b | 10252 | /* VEX_W_0F10_P_1 */ |
bf890a93 | 10253 | { "vmovss", { XMVexScalar, VexScalar, EXdScalar }, 0 }, |
d8faab4e L |
10254 | }, |
10255 | { | |
592a252b | 10256 | /* VEX_W_0F10_P_2 */ |
bf890a93 | 10257 | { "vmovupd", { XM, EXx }, 0 }, |
d8faab4e L |
10258 | }, |
10259 | { | |
592a252b | 10260 | /* VEX_W_0F10_P_3 */ |
bf890a93 | 10261 | { "vmovsd", { XMVexScalar, VexScalar, EXqScalar }, 0 }, |
d8faab4e L |
10262 | }, |
10263 | { | |
592a252b | 10264 | /* VEX_W_0F11_P_0 */ |
bf890a93 | 10265 | { "vmovups", { EXxS, XM }, 0 }, |
d8faab4e L |
10266 | }, |
10267 | { | |
592a252b | 10268 | /* VEX_W_0F11_P_1 */ |
bf890a93 | 10269 | { "vmovss", { EXdVexScalarS, VexScalar, XMScalar }, 0 }, |
b844680a L |
10270 | }, |
10271 | { | |
592a252b | 10272 | /* VEX_W_0F11_P_2 */ |
bf890a93 | 10273 | { "vmovupd", { EXxS, XM }, 0 }, |
b844680a L |
10274 | }, |
10275 | { | |
592a252b | 10276 | /* VEX_W_0F11_P_3 */ |
bf890a93 | 10277 | { "vmovsd", { EXqVexScalarS, VexScalar, XMScalar }, 0 }, |
d8faab4e L |
10278 | }, |
10279 | { | |
592a252b | 10280 | /* VEX_W_0F12_P_0_M_0 */ |
bf890a93 | 10281 | { "vmovlps", { XM, Vex128, EXq }, 0 }, |
b844680a L |
10282 | }, |
10283 | { | |
592a252b | 10284 | /* VEX_W_0F12_P_0_M_1 */ |
bf890a93 | 10285 | { "vmovhlps", { XM, Vex128, EXq }, 0 }, |
b844680a L |
10286 | }, |
10287 | { | |
592a252b | 10288 | /* VEX_W_0F12_P_1 */ |
bf890a93 | 10289 | { "vmovsldup", { XM, EXx }, 0 }, |
b844680a L |
10290 | }, |
10291 | { | |
592a252b | 10292 | /* VEX_W_0F12_P_2 */ |
bf890a93 | 10293 | { "vmovlpd", { XM, Vex128, EXq }, 0 }, |
b844680a L |
10294 | }, |
10295 | { | |
592a252b | 10296 | /* VEX_W_0F12_P_3 */ |
bf890a93 | 10297 | { "vmovddup", { XM, EXymmq }, 0 }, |
b844680a L |
10298 | }, |
10299 | { | |
592a252b | 10300 | /* VEX_W_0F13_M_0 */ |
bf890a93 | 10301 | { "vmovlpX", { EXq, XM }, 0 }, |
b844680a L |
10302 | }, |
10303 | { | |
592a252b | 10304 | /* VEX_W_0F14 */ |
bf890a93 | 10305 | { "vunpcklpX", { XM, Vex, EXx }, 0 }, |
b844680a L |
10306 | }, |
10307 | { | |
592a252b | 10308 | /* VEX_W_0F15 */ |
bf890a93 | 10309 | { "vunpckhpX", { XM, Vex, EXx }, 0 }, |
b844680a L |
10310 | }, |
10311 | { | |
592a252b | 10312 | /* VEX_W_0F16_P_0_M_0 */ |
bf890a93 | 10313 | { "vmovhps", { XM, Vex128, EXq }, 0 }, |
9e30b8e0 L |
10314 | }, |
10315 | { | |
592a252b | 10316 | /* VEX_W_0F16_P_0_M_1 */ |
bf890a93 | 10317 | { "vmovlhps", { XM, Vex128, EXq }, 0 }, |
9e30b8e0 L |
10318 | }, |
10319 | { | |
592a252b | 10320 | /* VEX_W_0F16_P_1 */ |
bf890a93 | 10321 | { "vmovshdup", { XM, EXx }, 0 }, |
9e30b8e0 L |
10322 | }, |
10323 | { | |
592a252b | 10324 | /* VEX_W_0F16_P_2 */ |
bf890a93 | 10325 | { "vmovhpd", { XM, Vex128, EXq }, 0 }, |
9e30b8e0 L |
10326 | }, |
10327 | { | |
592a252b | 10328 | /* VEX_W_0F17_M_0 */ |
bf890a93 | 10329 | { "vmovhpX", { EXq, XM }, 0 }, |
9e30b8e0 L |
10330 | }, |
10331 | { | |
592a252b | 10332 | /* VEX_W_0F28 */ |
bf890a93 | 10333 | { "vmovapX", { XM, EXx }, 0 }, |
9e30b8e0 L |
10334 | }, |
10335 | { | |
592a252b | 10336 | /* VEX_W_0F29 */ |
bf890a93 | 10337 | { "vmovapX", { EXxS, XM }, 0 }, |
9e30b8e0 L |
10338 | }, |
10339 | { | |
592a252b | 10340 | /* VEX_W_0F2B_M_0 */ |
bf890a93 | 10341 | { "vmovntpX", { Mx, XM }, 0 }, |
9e30b8e0 L |
10342 | }, |
10343 | { | |
592a252b | 10344 | /* VEX_W_0F2E_P_0 */ |
bf890a93 | 10345 | { "vucomiss", { XMScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10346 | }, |
10347 | { | |
592a252b | 10348 | /* VEX_W_0F2E_P_2 */ |
bf890a93 | 10349 | { "vucomisd", { XMScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10350 | }, |
10351 | { | |
592a252b | 10352 | /* VEX_W_0F2F_P_0 */ |
bf890a93 | 10353 | { "vcomiss", { XMScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10354 | }, |
10355 | { | |
592a252b | 10356 | /* VEX_W_0F2F_P_2 */ |
bf890a93 | 10357 | { "vcomisd", { XMScalar, EXqScalar }, 0 }, |
9e30b8e0 | 10358 | }, |
43234a1e L |
10359 | { |
10360 | /* VEX_W_0F41_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10361 | { MOD_TABLE (MOD_VEX_W_0_0F41_P_0_LEN_1) }, |
10362 | { MOD_TABLE (MOD_VEX_W_1_0F41_P_0_LEN_1) }, | |
1ba585e8 IT |
10363 | }, |
10364 | { | |
10365 | /* VEX_W_0F41_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10366 | { MOD_TABLE (MOD_VEX_W_0_0F41_P_2_LEN_1) }, |
10367 | { MOD_TABLE (MOD_VEX_W_1_0F41_P_2_LEN_1) } | |
43234a1e L |
10368 | }, |
10369 | { | |
10370 | /* VEX_W_0F42_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10371 | { MOD_TABLE (MOD_VEX_W_0_0F42_P_0_LEN_1) }, |
10372 | { MOD_TABLE (MOD_VEX_W_1_0F42_P_0_LEN_1) }, | |
1ba585e8 IT |
10373 | }, |
10374 | { | |
10375 | /* VEX_W_0F42_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10376 | { MOD_TABLE (MOD_VEX_W_0_0F42_P_2_LEN_1) }, |
10377 | { MOD_TABLE (MOD_VEX_W_1_0F42_P_2_LEN_1) }, | |
43234a1e L |
10378 | }, |
10379 | { | |
10380 | /* VEX_W_0F44_P_0_LEN_0 */ | |
ab4e4ed5 AF |
10381 | { MOD_TABLE (MOD_VEX_W_0_0F44_P_0_LEN_1) }, |
10382 | { MOD_TABLE (MOD_VEX_W_1_0F44_P_0_LEN_1) }, | |
1ba585e8 IT |
10383 | }, |
10384 | { | |
10385 | /* VEX_W_0F44_P_2_LEN_0 */ | |
ab4e4ed5 AF |
10386 | { MOD_TABLE (MOD_VEX_W_0_0F44_P_2_LEN_1) }, |
10387 | { MOD_TABLE (MOD_VEX_W_1_0F44_P_2_LEN_1) }, | |
43234a1e L |
10388 | }, |
10389 | { | |
10390 | /* VEX_W_0F45_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10391 | { MOD_TABLE (MOD_VEX_W_0_0F45_P_0_LEN_1) }, |
10392 | { MOD_TABLE (MOD_VEX_W_1_0F45_P_0_LEN_1) }, | |
1ba585e8 IT |
10393 | }, |
10394 | { | |
10395 | /* VEX_W_0F45_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10396 | { MOD_TABLE (MOD_VEX_W_0_0F45_P_2_LEN_1) }, |
10397 | { MOD_TABLE (MOD_VEX_W_1_0F45_P_2_LEN_1) }, | |
43234a1e L |
10398 | }, |
10399 | { | |
10400 | /* VEX_W_0F46_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10401 | { MOD_TABLE (MOD_VEX_W_0_0F46_P_0_LEN_1) }, |
10402 | { MOD_TABLE (MOD_VEX_W_1_0F46_P_0_LEN_1) }, | |
1ba585e8 IT |
10403 | }, |
10404 | { | |
10405 | /* VEX_W_0F46_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10406 | { MOD_TABLE (MOD_VEX_W_0_0F46_P_2_LEN_1) }, |
10407 | { MOD_TABLE (MOD_VEX_W_1_0F46_P_2_LEN_1) }, | |
43234a1e L |
10408 | }, |
10409 | { | |
10410 | /* VEX_W_0F47_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10411 | { MOD_TABLE (MOD_VEX_W_0_0F47_P_0_LEN_1) }, |
10412 | { MOD_TABLE (MOD_VEX_W_1_0F47_P_0_LEN_1) }, | |
1ba585e8 IT |
10413 | }, |
10414 | { | |
10415 | /* VEX_W_0F47_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10416 | { MOD_TABLE (MOD_VEX_W_0_0F47_P_2_LEN_1) }, |
10417 | { MOD_TABLE (MOD_VEX_W_1_0F47_P_2_LEN_1) }, | |
1ba585e8 IT |
10418 | }, |
10419 | { | |
10420 | /* VEX_W_0F4A_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10421 | { MOD_TABLE (MOD_VEX_W_0_0F4A_P_0_LEN_1) }, |
10422 | { MOD_TABLE (MOD_VEX_W_1_0F4A_P_0_LEN_1) }, | |
1ba585e8 IT |
10423 | }, |
10424 | { | |
10425 | /* VEX_W_0F4A_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10426 | { MOD_TABLE (MOD_VEX_W_0_0F4A_P_2_LEN_1) }, |
10427 | { MOD_TABLE (MOD_VEX_W_1_0F4A_P_2_LEN_1) }, | |
1ba585e8 IT |
10428 | }, |
10429 | { | |
10430 | /* VEX_W_0F4B_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10431 | { MOD_TABLE (MOD_VEX_W_0_0F4B_P_0_LEN_1) }, |
10432 | { MOD_TABLE (MOD_VEX_W_1_0F4B_P_0_LEN_1) }, | |
43234a1e L |
10433 | }, |
10434 | { | |
10435 | /* VEX_W_0F4B_P_2_LEN_1 */ | |
ab4e4ed5 | 10436 | { MOD_TABLE (MOD_VEX_W_0_0F4B_P_2_LEN_1) }, |
43234a1e | 10437 | }, |
9e30b8e0 | 10438 | { |
592a252b | 10439 | /* VEX_W_0F50_M_0 */ |
bf890a93 | 10440 | { "vmovmskpX", { Gdq, XS }, 0 }, |
9e30b8e0 L |
10441 | }, |
10442 | { | |
592a252b | 10443 | /* VEX_W_0F51_P_0 */ |
bf890a93 | 10444 | { "vsqrtps", { XM, EXx }, 0 }, |
9e30b8e0 L |
10445 | }, |
10446 | { | |
592a252b | 10447 | /* VEX_W_0F51_P_1 */ |
bf890a93 | 10448 | { "vsqrtss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10449 | }, |
10450 | { | |
592a252b | 10451 | /* VEX_W_0F51_P_2 */ |
bf890a93 | 10452 | { "vsqrtpd", { XM, EXx }, 0 }, |
9e30b8e0 L |
10453 | }, |
10454 | { | |
592a252b | 10455 | /* VEX_W_0F51_P_3 */ |
bf890a93 | 10456 | { "vsqrtsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10457 | }, |
10458 | { | |
592a252b | 10459 | /* VEX_W_0F52_P_0 */ |
bf890a93 | 10460 | { "vrsqrtps", { XM, EXx }, 0 }, |
9e30b8e0 L |
10461 | }, |
10462 | { | |
592a252b | 10463 | /* VEX_W_0F52_P_1 */ |
bf890a93 | 10464 | { "vrsqrtss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10465 | }, |
10466 | { | |
592a252b | 10467 | /* VEX_W_0F53_P_0 */ |
bf890a93 | 10468 | { "vrcpps", { XM, EXx }, 0 }, |
9e30b8e0 L |
10469 | }, |
10470 | { | |
592a252b | 10471 | /* VEX_W_0F53_P_1 */ |
bf890a93 | 10472 | { "vrcpss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10473 | }, |
10474 | { | |
592a252b | 10475 | /* VEX_W_0F58_P_0 */ |
bf890a93 | 10476 | { "vaddps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10477 | }, |
10478 | { | |
592a252b | 10479 | /* VEX_W_0F58_P_1 */ |
bf890a93 | 10480 | { "vaddss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10481 | }, |
10482 | { | |
592a252b | 10483 | /* VEX_W_0F58_P_2 */ |
bf890a93 | 10484 | { "vaddpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10485 | }, |
10486 | { | |
592a252b | 10487 | /* VEX_W_0F58_P_3 */ |
bf890a93 | 10488 | { "vaddsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10489 | }, |
10490 | { | |
592a252b | 10491 | /* VEX_W_0F59_P_0 */ |
bf890a93 | 10492 | { "vmulps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10493 | }, |
10494 | { | |
592a252b | 10495 | /* VEX_W_0F59_P_1 */ |
bf890a93 | 10496 | { "vmulss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10497 | }, |
10498 | { | |
592a252b | 10499 | /* VEX_W_0F59_P_2 */ |
bf890a93 | 10500 | { "vmulpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10501 | }, |
10502 | { | |
592a252b | 10503 | /* VEX_W_0F59_P_3 */ |
bf890a93 | 10504 | { "vmulsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10505 | }, |
10506 | { | |
592a252b | 10507 | /* VEX_W_0F5A_P_0 */ |
bf890a93 | 10508 | { "vcvtps2pd", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
10509 | }, |
10510 | { | |
592a252b | 10511 | /* VEX_W_0F5A_P_1 */ |
bf890a93 | 10512 | { "vcvtss2sd", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10513 | }, |
10514 | { | |
592a252b | 10515 | /* VEX_W_0F5A_P_3 */ |
bf890a93 | 10516 | { "vcvtsd2ss", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10517 | }, |
10518 | { | |
592a252b | 10519 | /* VEX_W_0F5B_P_0 */ |
bf890a93 | 10520 | { "vcvtdq2ps", { XM, EXx }, 0 }, |
9e30b8e0 L |
10521 | }, |
10522 | { | |
592a252b | 10523 | /* VEX_W_0F5B_P_1 */ |
bf890a93 | 10524 | { "vcvttps2dq", { XM, EXx }, 0 }, |
9e30b8e0 L |
10525 | }, |
10526 | { | |
592a252b | 10527 | /* VEX_W_0F5B_P_2 */ |
bf890a93 | 10528 | { "vcvtps2dq", { XM, EXx }, 0 }, |
9e30b8e0 L |
10529 | }, |
10530 | { | |
592a252b | 10531 | /* VEX_W_0F5C_P_0 */ |
bf890a93 | 10532 | { "vsubps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10533 | }, |
10534 | { | |
592a252b | 10535 | /* VEX_W_0F5C_P_1 */ |
bf890a93 | 10536 | { "vsubss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10537 | }, |
10538 | { | |
592a252b | 10539 | /* VEX_W_0F5C_P_2 */ |
bf890a93 | 10540 | { "vsubpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10541 | }, |
10542 | { | |
592a252b | 10543 | /* VEX_W_0F5C_P_3 */ |
bf890a93 | 10544 | { "vsubsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10545 | }, |
10546 | { | |
592a252b | 10547 | /* VEX_W_0F5D_P_0 */ |
bf890a93 | 10548 | { "vminps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10549 | }, |
10550 | { | |
592a252b | 10551 | /* VEX_W_0F5D_P_1 */ |
bf890a93 | 10552 | { "vminss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10553 | }, |
10554 | { | |
592a252b | 10555 | /* VEX_W_0F5D_P_2 */ |
bf890a93 | 10556 | { "vminpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10557 | }, |
10558 | { | |
592a252b | 10559 | /* VEX_W_0F5D_P_3 */ |
bf890a93 | 10560 | { "vminsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10561 | }, |
10562 | { | |
592a252b | 10563 | /* VEX_W_0F5E_P_0 */ |
bf890a93 | 10564 | { "vdivps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10565 | }, |
10566 | { | |
592a252b | 10567 | /* VEX_W_0F5E_P_1 */ |
bf890a93 | 10568 | { "vdivss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10569 | }, |
10570 | { | |
592a252b | 10571 | /* VEX_W_0F5E_P_2 */ |
bf890a93 | 10572 | { "vdivpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10573 | }, |
10574 | { | |
592a252b | 10575 | /* VEX_W_0F5E_P_3 */ |
bf890a93 | 10576 | { "vdivsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10577 | }, |
10578 | { | |
592a252b | 10579 | /* VEX_W_0F5F_P_0 */ |
bf890a93 | 10580 | { "vmaxps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10581 | }, |
10582 | { | |
592a252b | 10583 | /* VEX_W_0F5F_P_1 */ |
bf890a93 | 10584 | { "vmaxss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10585 | }, |
10586 | { | |
592a252b | 10587 | /* VEX_W_0F5F_P_2 */ |
bf890a93 | 10588 | { "vmaxpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10589 | }, |
10590 | { | |
592a252b | 10591 | /* VEX_W_0F5F_P_3 */ |
bf890a93 | 10592 | { "vmaxsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10593 | }, |
10594 | { | |
592a252b | 10595 | /* VEX_W_0F60_P_2 */ |
bf890a93 | 10596 | { "vpunpcklbw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10597 | }, |
10598 | { | |
592a252b | 10599 | /* VEX_W_0F61_P_2 */ |
bf890a93 | 10600 | { "vpunpcklwd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10601 | }, |
10602 | { | |
592a252b | 10603 | /* VEX_W_0F62_P_2 */ |
bf890a93 | 10604 | { "vpunpckldq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10605 | }, |
10606 | { | |
592a252b | 10607 | /* VEX_W_0F63_P_2 */ |
bf890a93 | 10608 | { "vpacksswb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10609 | }, |
10610 | { | |
592a252b | 10611 | /* VEX_W_0F64_P_2 */ |
bf890a93 | 10612 | { "vpcmpgtb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10613 | }, |
10614 | { | |
592a252b | 10615 | /* VEX_W_0F65_P_2 */ |
bf890a93 | 10616 | { "vpcmpgtw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10617 | }, |
10618 | { | |
592a252b | 10619 | /* VEX_W_0F66_P_2 */ |
bf890a93 | 10620 | { "vpcmpgtd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10621 | }, |
10622 | { | |
592a252b | 10623 | /* VEX_W_0F67_P_2 */ |
bf890a93 | 10624 | { "vpackuswb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10625 | }, |
10626 | { | |
592a252b | 10627 | /* VEX_W_0F68_P_2 */ |
bf890a93 | 10628 | { "vpunpckhbw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10629 | }, |
10630 | { | |
592a252b | 10631 | /* VEX_W_0F69_P_2 */ |
bf890a93 | 10632 | { "vpunpckhwd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10633 | }, |
10634 | { | |
592a252b | 10635 | /* VEX_W_0F6A_P_2 */ |
bf890a93 | 10636 | { "vpunpckhdq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10637 | }, |
10638 | { | |
592a252b | 10639 | /* VEX_W_0F6B_P_2 */ |
bf890a93 | 10640 | { "vpackssdw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10641 | }, |
10642 | { | |
592a252b | 10643 | /* VEX_W_0F6C_P_2 */ |
bf890a93 | 10644 | { "vpunpcklqdq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10645 | }, |
10646 | { | |
592a252b | 10647 | /* VEX_W_0F6D_P_2 */ |
bf890a93 | 10648 | { "vpunpckhqdq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10649 | }, |
10650 | { | |
592a252b | 10651 | /* VEX_W_0F6F_P_1 */ |
bf890a93 | 10652 | { "vmovdqu", { XM, EXx }, 0 }, |
9e30b8e0 L |
10653 | }, |
10654 | { | |
592a252b | 10655 | /* VEX_W_0F6F_P_2 */ |
bf890a93 | 10656 | { "vmovdqa", { XM, EXx }, 0 }, |
9e30b8e0 L |
10657 | }, |
10658 | { | |
592a252b | 10659 | /* VEX_W_0F70_P_1 */ |
bf890a93 | 10660 | { "vpshufhw", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
10661 | }, |
10662 | { | |
592a252b | 10663 | /* VEX_W_0F70_P_2 */ |
bf890a93 | 10664 | { "vpshufd", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
10665 | }, |
10666 | { | |
592a252b | 10667 | /* VEX_W_0F70_P_3 */ |
bf890a93 | 10668 | { "vpshuflw", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
10669 | }, |
10670 | { | |
592a252b | 10671 | /* VEX_W_0F71_R_2_P_2 */ |
bf890a93 | 10672 | { "vpsrlw", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10673 | }, |
10674 | { | |
592a252b | 10675 | /* VEX_W_0F71_R_4_P_2 */ |
bf890a93 | 10676 | { "vpsraw", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10677 | }, |
10678 | { | |
592a252b | 10679 | /* VEX_W_0F71_R_6_P_2 */ |
bf890a93 | 10680 | { "vpsllw", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10681 | }, |
10682 | { | |
592a252b | 10683 | /* VEX_W_0F72_R_2_P_2 */ |
bf890a93 | 10684 | { "vpsrld", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10685 | }, |
10686 | { | |
592a252b | 10687 | /* VEX_W_0F72_R_4_P_2 */ |
bf890a93 | 10688 | { "vpsrad", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10689 | }, |
10690 | { | |
592a252b | 10691 | /* VEX_W_0F72_R_6_P_2 */ |
bf890a93 | 10692 | { "vpslld", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10693 | }, |
10694 | { | |
592a252b | 10695 | /* VEX_W_0F73_R_2_P_2 */ |
bf890a93 | 10696 | { "vpsrlq", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10697 | }, |
10698 | { | |
592a252b | 10699 | /* VEX_W_0F73_R_3_P_2 */ |
bf890a93 | 10700 | { "vpsrldq", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10701 | }, |
10702 | { | |
592a252b | 10703 | /* VEX_W_0F73_R_6_P_2 */ |
bf890a93 | 10704 | { "vpsllq", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10705 | }, |
10706 | { | |
592a252b | 10707 | /* VEX_W_0F73_R_7_P_2 */ |
bf890a93 | 10708 | { "vpslldq", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10709 | }, |
10710 | { | |
592a252b | 10711 | /* VEX_W_0F74_P_2 */ |
bf890a93 | 10712 | { "vpcmpeqb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10713 | }, |
10714 | { | |
592a252b | 10715 | /* VEX_W_0F75_P_2 */ |
bf890a93 | 10716 | { "vpcmpeqw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10717 | }, |
10718 | { | |
592a252b | 10719 | /* VEX_W_0F76_P_2 */ |
bf890a93 | 10720 | { "vpcmpeqd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10721 | }, |
10722 | { | |
592a252b | 10723 | /* VEX_W_0F77_P_0 */ |
bf890a93 | 10724 | { "", { VZERO }, 0 }, |
9e30b8e0 L |
10725 | }, |
10726 | { | |
592a252b | 10727 | /* VEX_W_0F7C_P_2 */ |
bf890a93 | 10728 | { "vhaddpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10729 | }, |
10730 | { | |
592a252b | 10731 | /* VEX_W_0F7C_P_3 */ |
bf890a93 | 10732 | { "vhaddps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10733 | }, |
10734 | { | |
592a252b | 10735 | /* VEX_W_0F7D_P_2 */ |
bf890a93 | 10736 | { "vhsubpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10737 | }, |
10738 | { | |
592a252b | 10739 | /* VEX_W_0F7D_P_3 */ |
bf890a93 | 10740 | { "vhsubps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10741 | }, |
10742 | { | |
592a252b | 10743 | /* VEX_W_0F7E_P_1 */ |
bf890a93 | 10744 | { "vmovq", { XMScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10745 | }, |
10746 | { | |
592a252b | 10747 | /* VEX_W_0F7F_P_1 */ |
bf890a93 | 10748 | { "vmovdqu", { EXxS, XM }, 0 }, |
9e30b8e0 L |
10749 | }, |
10750 | { | |
592a252b | 10751 | /* VEX_W_0F7F_P_2 */ |
bf890a93 | 10752 | { "vmovdqa", { EXxS, XM }, 0 }, |
9e30b8e0 | 10753 | }, |
43234a1e L |
10754 | { |
10755 | /* VEX_W_0F90_P_0_LEN_0 */ | |
bf890a93 IT |
10756 | { "kmovw", { MaskG, MaskE }, 0 }, |
10757 | { "kmovq", { MaskG, MaskE }, 0 }, | |
1ba585e8 IT |
10758 | }, |
10759 | { | |
10760 | /* VEX_W_0F90_P_2_LEN_0 */ | |
bf890a93 IT |
10761 | { "kmovb", { MaskG, MaskBDE }, 0 }, |
10762 | { "kmovd", { MaskG, MaskBDE }, 0 }, | |
43234a1e L |
10763 | }, |
10764 | { | |
10765 | /* VEX_W_0F91_P_0_LEN_0 */ | |
ab4e4ed5 AF |
10766 | { MOD_TABLE (MOD_VEX_W_0_0F91_P_0_LEN_0) }, |
10767 | { MOD_TABLE (MOD_VEX_W_1_0F91_P_0_LEN_0) }, | |
1ba585e8 IT |
10768 | }, |
10769 | { | |
10770 | /* VEX_W_0F91_P_2_LEN_0 */ | |
ab4e4ed5 AF |
10771 | { MOD_TABLE (MOD_VEX_W_0_0F91_P_2_LEN_0) }, |
10772 | { MOD_TABLE (MOD_VEX_W_1_0F91_P_2_LEN_0) }, | |
43234a1e L |
10773 | }, |
10774 | { | |
10775 | /* VEX_W_0F92_P_0_LEN_0 */ | |
ab4e4ed5 | 10776 | { MOD_TABLE (MOD_VEX_W_0_0F92_P_0_LEN_0) }, |
43234a1e | 10777 | }, |
90a915bf IT |
10778 | { |
10779 | /* VEX_W_0F92_P_2_LEN_0 */ | |
ab4e4ed5 | 10780 | { MOD_TABLE (MOD_VEX_W_0_0F92_P_2_LEN_0) }, |
90a915bf | 10781 | }, |
1ba585e8 IT |
10782 | { |
10783 | /* VEX_W_0F92_P_3_LEN_0 */ | |
ab4e4ed5 AF |
10784 | { MOD_TABLE (MOD_VEX_W_0_0F92_P_3_LEN_0) }, |
10785 | { MOD_TABLE (MOD_VEX_W_1_0F92_P_3_LEN_0) }, | |
1ba585e8 | 10786 | }, |
43234a1e L |
10787 | { |
10788 | /* VEX_W_0F93_P_0_LEN_0 */ | |
ab4e4ed5 | 10789 | { MOD_TABLE (MOD_VEX_W_0_0F93_P_0_LEN_0) }, |
43234a1e | 10790 | }, |
90a915bf IT |
10791 | { |
10792 | /* VEX_W_0F93_P_2_LEN_0 */ | |
ab4e4ed5 | 10793 | { MOD_TABLE (MOD_VEX_W_0_0F93_P_2_LEN_0) }, |
90a915bf | 10794 | }, |
1ba585e8 IT |
10795 | { |
10796 | /* VEX_W_0F93_P_3_LEN_0 */ | |
ab4e4ed5 AF |
10797 | { MOD_TABLE (MOD_VEX_W_0_0F93_P_3_LEN_0) }, |
10798 | { MOD_TABLE (MOD_VEX_W_1_0F93_P_3_LEN_0) }, | |
1ba585e8 | 10799 | }, |
43234a1e L |
10800 | { |
10801 | /* VEX_W_0F98_P_0_LEN_0 */ | |
ab4e4ed5 AF |
10802 | { MOD_TABLE (MOD_VEX_W_0_0F98_P_0_LEN_0) }, |
10803 | { MOD_TABLE (MOD_VEX_W_1_0F98_P_0_LEN_0) }, | |
1ba585e8 IT |
10804 | }, |
10805 | { | |
10806 | /* VEX_W_0F98_P_2_LEN_0 */ | |
ab4e4ed5 AF |
10807 | { MOD_TABLE (MOD_VEX_W_0_0F98_P_2_LEN_0) }, |
10808 | { MOD_TABLE (MOD_VEX_W_1_0F98_P_2_LEN_0) }, | |
1ba585e8 IT |
10809 | }, |
10810 | { | |
10811 | /* VEX_W_0F99_P_0_LEN_0 */ | |
ab4e4ed5 AF |
10812 | { MOD_TABLE (MOD_VEX_W_0_0F99_P_0_LEN_0) }, |
10813 | { MOD_TABLE (MOD_VEX_W_1_0F99_P_0_LEN_0) }, | |
1ba585e8 IT |
10814 | }, |
10815 | { | |
10816 | /* VEX_W_0F99_P_2_LEN_0 */ | |
ab4e4ed5 AF |
10817 | { MOD_TABLE (MOD_VEX_W_0_0F99_P_2_LEN_0) }, |
10818 | { MOD_TABLE (MOD_VEX_W_1_0F99_P_2_LEN_0) }, | |
43234a1e | 10819 | }, |
9e30b8e0 | 10820 | { |
592a252b | 10821 | /* VEX_W_0FAE_R_2_M_0 */ |
bf890a93 | 10822 | { "vldmxcsr", { Md }, 0 }, |
9e30b8e0 L |
10823 | }, |
10824 | { | |
592a252b | 10825 | /* VEX_W_0FAE_R_3_M_0 */ |
bf890a93 | 10826 | { "vstmxcsr", { Md }, 0 }, |
9e30b8e0 L |
10827 | }, |
10828 | { | |
592a252b | 10829 | /* VEX_W_0FC2_P_0 */ |
bf890a93 | 10830 | { "vcmpps", { XM, Vex, EXx, VCMP }, 0 }, |
9e30b8e0 L |
10831 | }, |
10832 | { | |
592a252b | 10833 | /* VEX_W_0FC2_P_1 */ |
bf890a93 | 10834 | { "vcmpss", { XMScalar, VexScalar, EXdScalar, VCMP }, 0 }, |
9e30b8e0 L |
10835 | }, |
10836 | { | |
592a252b | 10837 | /* VEX_W_0FC2_P_2 */ |
bf890a93 | 10838 | { "vcmppd", { XM, Vex, EXx, VCMP }, 0 }, |
9e30b8e0 L |
10839 | }, |
10840 | { | |
592a252b | 10841 | /* VEX_W_0FC2_P_3 */ |
bf890a93 | 10842 | { "vcmpsd", { XMScalar, VexScalar, EXqScalar, VCMP }, 0 }, |
9e30b8e0 L |
10843 | }, |
10844 | { | |
592a252b | 10845 | /* VEX_W_0FC4_P_2 */ |
bf890a93 | 10846 | { "vpinsrw", { XM, Vex128, Edqw, Ib }, 0 }, |
9e30b8e0 L |
10847 | }, |
10848 | { | |
592a252b | 10849 | /* VEX_W_0FC5_P_2 */ |
bf890a93 | 10850 | { "vpextrw", { Gdq, XS, Ib }, 0 }, |
9e30b8e0 L |
10851 | }, |
10852 | { | |
592a252b | 10853 | /* VEX_W_0FD0_P_2 */ |
bf890a93 | 10854 | { "vaddsubpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10855 | }, |
10856 | { | |
592a252b | 10857 | /* VEX_W_0FD0_P_3 */ |
bf890a93 | 10858 | { "vaddsubps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10859 | }, |
10860 | { | |
592a252b | 10861 | /* VEX_W_0FD1_P_2 */ |
bf890a93 | 10862 | { "vpsrlw", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10863 | }, |
10864 | { | |
592a252b | 10865 | /* VEX_W_0FD2_P_2 */ |
bf890a93 | 10866 | { "vpsrld", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10867 | }, |
10868 | { | |
592a252b | 10869 | /* VEX_W_0FD3_P_2 */ |
bf890a93 | 10870 | { "vpsrlq", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10871 | }, |
10872 | { | |
592a252b | 10873 | /* VEX_W_0FD4_P_2 */ |
bf890a93 | 10874 | { "vpaddq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10875 | }, |
10876 | { | |
592a252b | 10877 | /* VEX_W_0FD5_P_2 */ |
bf890a93 | 10878 | { "vpmullw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10879 | }, |
10880 | { | |
592a252b | 10881 | /* VEX_W_0FD6_P_2 */ |
bf890a93 | 10882 | { "vmovq", { EXqScalarS, XMScalar }, 0 }, |
9e30b8e0 L |
10883 | }, |
10884 | { | |
592a252b | 10885 | /* VEX_W_0FD7_P_2_M_1 */ |
bf890a93 | 10886 | { "vpmovmskb", { Gdq, XS }, 0 }, |
9e30b8e0 L |
10887 | }, |
10888 | { | |
592a252b | 10889 | /* VEX_W_0FD8_P_2 */ |
bf890a93 | 10890 | { "vpsubusb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10891 | }, |
10892 | { | |
592a252b | 10893 | /* VEX_W_0FD9_P_2 */ |
bf890a93 | 10894 | { "vpsubusw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10895 | }, |
10896 | { | |
592a252b | 10897 | /* VEX_W_0FDA_P_2 */ |
bf890a93 | 10898 | { "vpminub", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10899 | }, |
10900 | { | |
592a252b | 10901 | /* VEX_W_0FDB_P_2 */ |
bf890a93 | 10902 | { "vpand", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10903 | }, |
10904 | { | |
592a252b | 10905 | /* VEX_W_0FDC_P_2 */ |
bf890a93 | 10906 | { "vpaddusb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10907 | }, |
10908 | { | |
592a252b | 10909 | /* VEX_W_0FDD_P_2 */ |
bf890a93 | 10910 | { "vpaddusw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10911 | }, |
10912 | { | |
592a252b | 10913 | /* VEX_W_0FDE_P_2 */ |
bf890a93 | 10914 | { "vpmaxub", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10915 | }, |
10916 | { | |
592a252b | 10917 | /* VEX_W_0FDF_P_2 */ |
bf890a93 | 10918 | { "vpandn", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10919 | }, |
10920 | { | |
592a252b | 10921 | /* VEX_W_0FE0_P_2 */ |
bf890a93 | 10922 | { "vpavgb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10923 | }, |
10924 | { | |
592a252b | 10925 | /* VEX_W_0FE1_P_2 */ |
bf890a93 | 10926 | { "vpsraw", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10927 | }, |
10928 | { | |
592a252b | 10929 | /* VEX_W_0FE2_P_2 */ |
bf890a93 | 10930 | { "vpsrad", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10931 | }, |
10932 | { | |
592a252b | 10933 | /* VEX_W_0FE3_P_2 */ |
bf890a93 | 10934 | { "vpavgw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10935 | }, |
10936 | { | |
592a252b | 10937 | /* VEX_W_0FE4_P_2 */ |
bf890a93 | 10938 | { "vpmulhuw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10939 | }, |
10940 | { | |
592a252b | 10941 | /* VEX_W_0FE5_P_2 */ |
bf890a93 | 10942 | { "vpmulhw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10943 | }, |
10944 | { | |
592a252b | 10945 | /* VEX_W_0FE6_P_1 */ |
bf890a93 | 10946 | { "vcvtdq2pd", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
10947 | }, |
10948 | { | |
592a252b | 10949 | /* VEX_W_0FE6_P_2 */ |
bf890a93 | 10950 | { "vcvttpd2dq%XY", { XMM, EXx }, 0 }, |
9e30b8e0 L |
10951 | }, |
10952 | { | |
592a252b | 10953 | /* VEX_W_0FE6_P_3 */ |
bf890a93 | 10954 | { "vcvtpd2dq%XY", { XMM, EXx }, 0 }, |
9e30b8e0 L |
10955 | }, |
10956 | { | |
592a252b | 10957 | /* VEX_W_0FE7_P_2_M_0 */ |
bf890a93 | 10958 | { "vmovntdq", { Mx, XM }, 0 }, |
9e30b8e0 L |
10959 | }, |
10960 | { | |
592a252b | 10961 | /* VEX_W_0FE8_P_2 */ |
bf890a93 | 10962 | { "vpsubsb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10963 | }, |
10964 | { | |
592a252b | 10965 | /* VEX_W_0FE9_P_2 */ |
bf890a93 | 10966 | { "vpsubsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10967 | }, |
10968 | { | |
592a252b | 10969 | /* VEX_W_0FEA_P_2 */ |
bf890a93 | 10970 | { "vpminsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10971 | }, |
10972 | { | |
592a252b | 10973 | /* VEX_W_0FEB_P_2 */ |
bf890a93 | 10974 | { "vpor", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10975 | }, |
10976 | { | |
592a252b | 10977 | /* VEX_W_0FEC_P_2 */ |
bf890a93 | 10978 | { "vpaddsb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10979 | }, |
10980 | { | |
592a252b | 10981 | /* VEX_W_0FED_P_2 */ |
bf890a93 | 10982 | { "vpaddsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10983 | }, |
10984 | { | |
592a252b | 10985 | /* VEX_W_0FEE_P_2 */ |
bf890a93 | 10986 | { "vpmaxsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10987 | }, |
10988 | { | |
592a252b | 10989 | /* VEX_W_0FEF_P_2 */ |
bf890a93 | 10990 | { "vpxor", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10991 | }, |
10992 | { | |
592a252b | 10993 | /* VEX_W_0FF0_P_3_M_0 */ |
bf890a93 | 10994 | { "vlddqu", { XM, M }, 0 }, |
9e30b8e0 L |
10995 | }, |
10996 | { | |
592a252b | 10997 | /* VEX_W_0FF1_P_2 */ |
bf890a93 | 10998 | { "vpsllw", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10999 | }, |
11000 | { | |
592a252b | 11001 | /* VEX_W_0FF2_P_2 */ |
bf890a93 | 11002 | { "vpslld", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
11003 | }, |
11004 | { | |
592a252b | 11005 | /* VEX_W_0FF3_P_2 */ |
bf890a93 | 11006 | { "vpsllq", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
11007 | }, |
11008 | { | |
592a252b | 11009 | /* VEX_W_0FF4_P_2 */ |
bf890a93 | 11010 | { "vpmuludq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11011 | }, |
11012 | { | |
592a252b | 11013 | /* VEX_W_0FF5_P_2 */ |
bf890a93 | 11014 | { "vpmaddwd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11015 | }, |
11016 | { | |
592a252b | 11017 | /* VEX_W_0FF6_P_2 */ |
bf890a93 | 11018 | { "vpsadbw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11019 | }, |
11020 | { | |
592a252b | 11021 | /* VEX_W_0FF7_P_2 */ |
bf890a93 | 11022 | { "vmaskmovdqu", { XM, XS }, 0 }, |
9e30b8e0 L |
11023 | }, |
11024 | { | |
592a252b | 11025 | /* VEX_W_0FF8_P_2 */ |
bf890a93 | 11026 | { "vpsubb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11027 | }, |
11028 | { | |
592a252b | 11029 | /* VEX_W_0FF9_P_2 */ |
bf890a93 | 11030 | { "vpsubw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11031 | }, |
11032 | { | |
592a252b | 11033 | /* VEX_W_0FFA_P_2 */ |
bf890a93 | 11034 | { "vpsubd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11035 | }, |
11036 | { | |
592a252b | 11037 | /* VEX_W_0FFB_P_2 */ |
bf890a93 | 11038 | { "vpsubq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11039 | }, |
11040 | { | |
592a252b | 11041 | /* VEX_W_0FFC_P_2 */ |
bf890a93 | 11042 | { "vpaddb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11043 | }, |
11044 | { | |
592a252b | 11045 | /* VEX_W_0FFD_P_2 */ |
bf890a93 | 11046 | { "vpaddw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11047 | }, |
11048 | { | |
592a252b | 11049 | /* VEX_W_0FFE_P_2 */ |
bf890a93 | 11050 | { "vpaddd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11051 | }, |
11052 | { | |
592a252b | 11053 | /* VEX_W_0F3800_P_2 */ |
bf890a93 | 11054 | { "vpshufb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11055 | }, |
11056 | { | |
592a252b | 11057 | /* VEX_W_0F3801_P_2 */ |
bf890a93 | 11058 | { "vphaddw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11059 | }, |
11060 | { | |
592a252b | 11061 | /* VEX_W_0F3802_P_2 */ |
bf890a93 | 11062 | { "vphaddd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11063 | }, |
11064 | { | |
592a252b | 11065 | /* VEX_W_0F3803_P_2 */ |
bf890a93 | 11066 | { "vphaddsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11067 | }, |
11068 | { | |
592a252b | 11069 | /* VEX_W_0F3804_P_2 */ |
bf890a93 | 11070 | { "vpmaddubsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11071 | }, |
11072 | { | |
592a252b | 11073 | /* VEX_W_0F3805_P_2 */ |
bf890a93 | 11074 | { "vphsubw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11075 | }, |
11076 | { | |
592a252b | 11077 | /* VEX_W_0F3806_P_2 */ |
bf890a93 | 11078 | { "vphsubd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11079 | }, |
11080 | { | |
592a252b | 11081 | /* VEX_W_0F3807_P_2 */ |
bf890a93 | 11082 | { "vphsubsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11083 | }, |
11084 | { | |
592a252b | 11085 | /* VEX_W_0F3808_P_2 */ |
bf890a93 | 11086 | { "vpsignb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11087 | }, |
11088 | { | |
592a252b | 11089 | /* VEX_W_0F3809_P_2 */ |
bf890a93 | 11090 | { "vpsignw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11091 | }, |
11092 | { | |
592a252b | 11093 | /* VEX_W_0F380A_P_2 */ |
bf890a93 | 11094 | { "vpsignd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11095 | }, |
11096 | { | |
592a252b | 11097 | /* VEX_W_0F380B_P_2 */ |
bf890a93 | 11098 | { "vpmulhrsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11099 | }, |
11100 | { | |
592a252b | 11101 | /* VEX_W_0F380C_P_2 */ |
bf890a93 | 11102 | { "vpermilps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11103 | }, |
11104 | { | |
592a252b | 11105 | /* VEX_W_0F380D_P_2 */ |
bf890a93 | 11106 | { "vpermilpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11107 | }, |
11108 | { | |
592a252b | 11109 | /* VEX_W_0F380E_P_2 */ |
bf890a93 | 11110 | { "vtestps", { XM, EXx }, 0 }, |
9e30b8e0 L |
11111 | }, |
11112 | { | |
592a252b | 11113 | /* VEX_W_0F380F_P_2 */ |
bf890a93 | 11114 | { "vtestpd", { XM, EXx }, 0 }, |
9e30b8e0 | 11115 | }, |
6c30d220 L |
11116 | { |
11117 | /* VEX_W_0F3816_P_2 */ | |
bf890a93 | 11118 | { "vpermps", { XM, Vex, EXx }, 0 }, |
6c30d220 | 11119 | }, |
9e30b8e0 | 11120 | { |
592a252b | 11121 | /* VEX_W_0F3817_P_2 */ |
bf890a93 | 11122 | { "vptest", { XM, EXx }, 0 }, |
9e30b8e0 | 11123 | }, |
bcf2684f | 11124 | { |
6c30d220 | 11125 | /* VEX_W_0F3818_P_2 */ |
bf890a93 | 11126 | { "vbroadcastss", { XM, EXxmm_md }, 0 }, |
bcf2684f | 11127 | }, |
9e30b8e0 | 11128 | { |
6c30d220 | 11129 | /* VEX_W_0F3819_P_2 */ |
bf890a93 | 11130 | { "vbroadcastsd", { XM, EXxmm_mq }, 0 }, |
9e30b8e0 L |
11131 | }, |
11132 | { | |
592a252b | 11133 | /* VEX_W_0F381A_P_2_M_0 */ |
bf890a93 | 11134 | { "vbroadcastf128", { XM, Mxmm }, 0 }, |
9e30b8e0 L |
11135 | }, |
11136 | { | |
592a252b | 11137 | /* VEX_W_0F381C_P_2 */ |
bf890a93 | 11138 | { "vpabsb", { XM, EXx }, 0 }, |
9e30b8e0 L |
11139 | }, |
11140 | { | |
592a252b | 11141 | /* VEX_W_0F381D_P_2 */ |
bf890a93 | 11142 | { "vpabsw", { XM, EXx }, 0 }, |
9e30b8e0 L |
11143 | }, |
11144 | { | |
592a252b | 11145 | /* VEX_W_0F381E_P_2 */ |
bf890a93 | 11146 | { "vpabsd", { XM, EXx }, 0 }, |
9e30b8e0 L |
11147 | }, |
11148 | { | |
592a252b | 11149 | /* VEX_W_0F3820_P_2 */ |
bf890a93 | 11150 | { "vpmovsxbw", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11151 | }, |
11152 | { | |
592a252b | 11153 | /* VEX_W_0F3821_P_2 */ |
bf890a93 | 11154 | { "vpmovsxbd", { XM, EXxmmqd }, 0 }, |
9e30b8e0 L |
11155 | }, |
11156 | { | |
592a252b | 11157 | /* VEX_W_0F3822_P_2 */ |
bf890a93 | 11158 | { "vpmovsxbq", { XM, EXxmmdw }, 0 }, |
9e30b8e0 L |
11159 | }, |
11160 | { | |
592a252b | 11161 | /* VEX_W_0F3823_P_2 */ |
bf890a93 | 11162 | { "vpmovsxwd", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11163 | }, |
11164 | { | |
592a252b | 11165 | /* VEX_W_0F3824_P_2 */ |
bf890a93 | 11166 | { "vpmovsxwq", { XM, EXxmmqd }, 0 }, |
9e30b8e0 L |
11167 | }, |
11168 | { | |
592a252b | 11169 | /* VEX_W_0F3825_P_2 */ |
bf890a93 | 11170 | { "vpmovsxdq", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11171 | }, |
11172 | { | |
592a252b | 11173 | /* VEX_W_0F3828_P_2 */ |
bf890a93 | 11174 | { "vpmuldq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11175 | }, |
11176 | { | |
592a252b | 11177 | /* VEX_W_0F3829_P_2 */ |
bf890a93 | 11178 | { "vpcmpeqq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11179 | }, |
11180 | { | |
592a252b | 11181 | /* VEX_W_0F382A_P_2_M_0 */ |
bf890a93 | 11182 | { "vmovntdqa", { XM, Mx }, 0 }, |
9e30b8e0 L |
11183 | }, |
11184 | { | |
592a252b | 11185 | /* VEX_W_0F382B_P_2 */ |
bf890a93 | 11186 | { "vpackusdw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 | 11187 | }, |
53aa04a0 | 11188 | { |
592a252b | 11189 | /* VEX_W_0F382C_P_2_M_0 */ |
bf890a93 | 11190 | { "vmaskmovps", { XM, Vex, Mx }, 0 }, |
53aa04a0 L |
11191 | }, |
11192 | { | |
592a252b | 11193 | /* VEX_W_0F382D_P_2_M_0 */ |
bf890a93 | 11194 | { "vmaskmovpd", { XM, Vex, Mx }, 0 }, |
53aa04a0 L |
11195 | }, |
11196 | { | |
592a252b | 11197 | /* VEX_W_0F382E_P_2_M_0 */ |
bf890a93 | 11198 | { "vmaskmovps", { Mx, Vex, XM }, 0 }, |
53aa04a0 L |
11199 | }, |
11200 | { | |
592a252b | 11201 | /* VEX_W_0F382F_P_2_M_0 */ |
bf890a93 | 11202 | { "vmaskmovpd", { Mx, Vex, XM }, 0 }, |
53aa04a0 | 11203 | }, |
9e30b8e0 | 11204 | { |
592a252b | 11205 | /* VEX_W_0F3830_P_2 */ |
bf890a93 | 11206 | { "vpmovzxbw", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11207 | }, |
11208 | { | |
592a252b | 11209 | /* VEX_W_0F3831_P_2 */ |
bf890a93 | 11210 | { "vpmovzxbd", { XM, EXxmmqd }, 0 }, |
9e30b8e0 L |
11211 | }, |
11212 | { | |
592a252b | 11213 | /* VEX_W_0F3832_P_2 */ |
bf890a93 | 11214 | { "vpmovzxbq", { XM, EXxmmdw }, 0 }, |
9e30b8e0 L |
11215 | }, |
11216 | { | |
592a252b | 11217 | /* VEX_W_0F3833_P_2 */ |
bf890a93 | 11218 | { "vpmovzxwd", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11219 | }, |
11220 | { | |
592a252b | 11221 | /* VEX_W_0F3834_P_2 */ |
bf890a93 | 11222 | { "vpmovzxwq", { XM, EXxmmqd }, 0 }, |
9e30b8e0 L |
11223 | }, |
11224 | { | |
592a252b | 11225 | /* VEX_W_0F3835_P_2 */ |
bf890a93 | 11226 | { "vpmovzxdq", { XM, EXxmmq }, 0 }, |
6c30d220 L |
11227 | }, |
11228 | { | |
11229 | /* VEX_W_0F3836_P_2 */ | |
bf890a93 | 11230 | { "vpermd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11231 | }, |
11232 | { | |
592a252b | 11233 | /* VEX_W_0F3837_P_2 */ |
bf890a93 | 11234 | { "vpcmpgtq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11235 | }, |
11236 | { | |
592a252b | 11237 | /* VEX_W_0F3838_P_2 */ |
bf890a93 | 11238 | { "vpminsb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11239 | }, |
11240 | { | |
592a252b | 11241 | /* VEX_W_0F3839_P_2 */ |
bf890a93 | 11242 | { "vpminsd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11243 | }, |
11244 | { | |
592a252b | 11245 | /* VEX_W_0F383A_P_2 */ |
bf890a93 | 11246 | { "vpminuw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11247 | }, |
11248 | { | |
592a252b | 11249 | /* VEX_W_0F383B_P_2 */ |
bf890a93 | 11250 | { "vpminud", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11251 | }, |
11252 | { | |
592a252b | 11253 | /* VEX_W_0F383C_P_2 */ |
bf890a93 | 11254 | { "vpmaxsb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11255 | }, |
11256 | { | |
592a252b | 11257 | /* VEX_W_0F383D_P_2 */ |
bf890a93 | 11258 | { "vpmaxsd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11259 | }, |
11260 | { | |
592a252b | 11261 | /* VEX_W_0F383E_P_2 */ |
bf890a93 | 11262 | { "vpmaxuw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11263 | }, |
11264 | { | |
592a252b | 11265 | /* VEX_W_0F383F_P_2 */ |
bf890a93 | 11266 | { "vpmaxud", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11267 | }, |
11268 | { | |
592a252b | 11269 | /* VEX_W_0F3840_P_2 */ |
bf890a93 | 11270 | { "vpmulld", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11271 | }, |
11272 | { | |
592a252b | 11273 | /* VEX_W_0F3841_P_2 */ |
bf890a93 | 11274 | { "vphminposuw", { XM, EXx }, 0 }, |
9e30b8e0 | 11275 | }, |
6c30d220 L |
11276 | { |
11277 | /* VEX_W_0F3846_P_2 */ | |
bf890a93 | 11278 | { "vpsravd", { XM, Vex, EXx }, 0 }, |
6c30d220 L |
11279 | }, |
11280 | { | |
11281 | /* VEX_W_0F3858_P_2 */ | |
bf890a93 | 11282 | { "vpbroadcastd", { XM, EXxmm_md }, 0 }, |
6c30d220 L |
11283 | }, |
11284 | { | |
11285 | /* VEX_W_0F3859_P_2 */ | |
bf890a93 | 11286 | { "vpbroadcastq", { XM, EXxmm_mq }, 0 }, |
6c30d220 L |
11287 | }, |
11288 | { | |
11289 | /* VEX_W_0F385A_P_2_M_0 */ | |
bf890a93 | 11290 | { "vbroadcasti128", { XM, Mxmm }, 0 }, |
6c30d220 L |
11291 | }, |
11292 | { | |
11293 | /* VEX_W_0F3878_P_2 */ | |
bf890a93 | 11294 | { "vpbroadcastb", { XM, EXxmm_mb }, 0 }, |
6c30d220 L |
11295 | }, |
11296 | { | |
11297 | /* VEX_W_0F3879_P_2 */ | |
bf890a93 | 11298 | { "vpbroadcastw", { XM, EXxmm_mw }, 0 }, |
6c30d220 | 11299 | }, |
48521003 IT |
11300 | { |
11301 | /* VEX_W_0F38CF_P_2 */ | |
11302 | { "vgf2p8mulb", { XM, Vex, EXx }, 0 }, | |
11303 | }, | |
9e30b8e0 | 11304 | { |
592a252b | 11305 | /* VEX_W_0F38DB_P_2 */ |
bf890a93 | 11306 | { "vaesimc", { XM, EXx }, 0 }, |
9e30b8e0 | 11307 | }, |
6c30d220 L |
11308 | { |
11309 | /* VEX_W_0F3A00_P_2 */ | |
11310 | { Bad_Opcode }, | |
bf890a93 | 11311 | { "vpermq", { XM, EXx, Ib }, 0 }, |
6c30d220 L |
11312 | }, |
11313 | { | |
11314 | /* VEX_W_0F3A01_P_2 */ | |
11315 | { Bad_Opcode }, | |
bf890a93 | 11316 | { "vpermpd", { XM, EXx, Ib }, 0 }, |
6c30d220 L |
11317 | }, |
11318 | { | |
11319 | /* VEX_W_0F3A02_P_2 */ | |
bf890a93 | 11320 | { "vpblendd", { XM, Vex, EXx, Ib }, 0 }, |
6c30d220 | 11321 | }, |
9e30b8e0 | 11322 | { |
592a252b | 11323 | /* VEX_W_0F3A04_P_2 */ |
bf890a93 | 11324 | { "vpermilps", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11325 | }, |
11326 | { | |
592a252b | 11327 | /* VEX_W_0F3A05_P_2 */ |
bf890a93 | 11328 | { "vpermilpd", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11329 | }, |
11330 | { | |
592a252b | 11331 | /* VEX_W_0F3A06_P_2 */ |
bf890a93 | 11332 | { "vperm2f128", { XM, Vex256, EXx, Ib }, 0 }, |
9e30b8e0 L |
11333 | }, |
11334 | { | |
592a252b | 11335 | /* VEX_W_0F3A08_P_2 */ |
bf890a93 | 11336 | { "vroundps", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11337 | }, |
11338 | { | |
592a252b | 11339 | /* VEX_W_0F3A09_P_2 */ |
bf890a93 | 11340 | { "vroundpd", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11341 | }, |
11342 | { | |
592a252b | 11343 | /* VEX_W_0F3A0A_P_2 */ |
bf890a93 | 11344 | { "vroundss", { XMScalar, VexScalar, EXdScalar, Ib }, 0 }, |
9e30b8e0 L |
11345 | }, |
11346 | { | |
592a252b | 11347 | /* VEX_W_0F3A0B_P_2 */ |
bf890a93 | 11348 | { "vroundsd", { XMScalar, VexScalar, EXqScalar, Ib }, 0 }, |
9e30b8e0 L |
11349 | }, |
11350 | { | |
592a252b | 11351 | /* VEX_W_0F3A0C_P_2 */ |
bf890a93 | 11352 | { "vblendps", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11353 | }, |
11354 | { | |
592a252b | 11355 | /* VEX_W_0F3A0D_P_2 */ |
bf890a93 | 11356 | { "vblendpd", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11357 | }, |
11358 | { | |
592a252b | 11359 | /* VEX_W_0F3A0E_P_2 */ |
bf890a93 | 11360 | { "vpblendw", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11361 | }, |
11362 | { | |
592a252b | 11363 | /* VEX_W_0F3A0F_P_2 */ |
bf890a93 | 11364 | { "vpalignr", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11365 | }, |
11366 | { | |
592a252b | 11367 | /* VEX_W_0F3A14_P_2 */ |
bf890a93 | 11368 | { "vpextrb", { Edqb, XM, Ib }, 0 }, |
9e30b8e0 L |
11369 | }, |
11370 | { | |
592a252b | 11371 | /* VEX_W_0F3A15_P_2 */ |
bf890a93 | 11372 | { "vpextrw", { Edqw, XM, Ib }, 0 }, |
9e30b8e0 L |
11373 | }, |
11374 | { | |
592a252b | 11375 | /* VEX_W_0F3A18_P_2 */ |
bf890a93 | 11376 | { "vinsertf128", { XM, Vex256, EXxmm, Ib }, 0 }, |
9e30b8e0 L |
11377 | }, |
11378 | { | |
592a252b | 11379 | /* VEX_W_0F3A19_P_2 */ |
bf890a93 | 11380 | { "vextractf128", { EXxmm, XM, Ib }, 0 }, |
9e30b8e0 L |
11381 | }, |
11382 | { | |
592a252b | 11383 | /* VEX_W_0F3A20_P_2 */ |
bf890a93 | 11384 | { "vpinsrb", { XM, Vex128, Edqb, Ib }, 0 }, |
9e30b8e0 L |
11385 | }, |
11386 | { | |
592a252b | 11387 | /* VEX_W_0F3A21_P_2 */ |
bf890a93 | 11388 | { "vinsertps", { XM, Vex128, EXd, Ib }, 0 }, |
9e30b8e0 | 11389 | }, |
43234a1e | 11390 | { |
1ba585e8 | 11391 | /* VEX_W_0F3A30_P_2_LEN_0 */ |
ab4e4ed5 AF |
11392 | { MOD_TABLE (MOD_VEX_W_0_0F3A30_P_2_LEN_0) }, |
11393 | { MOD_TABLE (MOD_VEX_W_1_0F3A30_P_2_LEN_0) }, | |
43234a1e L |
11394 | }, |
11395 | { | |
1ba585e8 | 11396 | /* VEX_W_0F3A31_P_2_LEN_0 */ |
ab4e4ed5 AF |
11397 | { MOD_TABLE (MOD_VEX_W_0_0F3A31_P_2_LEN_0) }, |
11398 | { MOD_TABLE (MOD_VEX_W_1_0F3A31_P_2_LEN_0) }, | |
1ba585e8 IT |
11399 | }, |
11400 | { | |
11401 | /* VEX_W_0F3A32_P_2_LEN_0 */ | |
ab4e4ed5 AF |
11402 | { MOD_TABLE (MOD_VEX_W_0_0F3A32_P_2_LEN_0) }, |
11403 | { MOD_TABLE (MOD_VEX_W_1_0F3A32_P_2_LEN_0) }, | |
43234a1e | 11404 | }, |
1ba585e8 IT |
11405 | { |
11406 | /* VEX_W_0F3A33_P_2_LEN_0 */ | |
ab4e4ed5 AF |
11407 | { MOD_TABLE (MOD_VEX_W_0_0F3A33_P_2_LEN_0) }, |
11408 | { MOD_TABLE (MOD_VEX_W_1_0F3A33_P_2_LEN_0) }, | |
1ba585e8 | 11409 | }, |
6c30d220 L |
11410 | { |
11411 | /* VEX_W_0F3A38_P_2 */ | |
bf890a93 | 11412 | { "vinserti128", { XM, Vex256, EXxmm, Ib }, 0 }, |
6c30d220 L |
11413 | }, |
11414 | { | |
11415 | /* VEX_W_0F3A39_P_2 */ | |
bf890a93 | 11416 | { "vextracti128", { EXxmm, XM, Ib }, 0 }, |
6c30d220 | 11417 | }, |
9e30b8e0 | 11418 | { |
592a252b | 11419 | /* VEX_W_0F3A40_P_2 */ |
bf890a93 | 11420 | { "vdpps", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11421 | }, |
11422 | { | |
592a252b | 11423 | /* VEX_W_0F3A41_P_2 */ |
bf890a93 | 11424 | { "vdppd", { XM, Vex128, EXx, Ib }, 0 }, |
9e30b8e0 L |
11425 | }, |
11426 | { | |
592a252b | 11427 | /* VEX_W_0F3A42_P_2 */ |
bf890a93 | 11428 | { "vmpsadbw", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 | 11429 | }, |
6c30d220 L |
11430 | { |
11431 | /* VEX_W_0F3A46_P_2 */ | |
bf890a93 | 11432 | { "vperm2i128", { XM, Vex256, EXx, Ib }, 0 }, |
6c30d220 | 11433 | }, |
a683cc34 | 11434 | { |
592a252b | 11435 | /* VEX_W_0F3A48_P_2 */ |
bf890a93 IT |
11436 | { "vpermil2ps", { XMVexW, Vex, EXVexImmW, EXVexImmW, EXVexImmW }, 0 }, |
11437 | { "vpermil2ps", { XMVexW, Vex, EXVexImmW, EXVexImmW, EXVexImmW }, 0 }, | |
a683cc34 SP |
11438 | }, |
11439 | { | |
592a252b | 11440 | /* VEX_W_0F3A49_P_2 */ |
bf890a93 IT |
11441 | { "vpermil2pd", { XMVexW, Vex, EXVexImmW, EXVexImmW, EXVexImmW }, 0 }, |
11442 | { "vpermil2pd", { XMVexW, Vex, EXVexImmW, EXVexImmW, EXVexImmW }, 0 }, | |
a683cc34 | 11443 | }, |
9e30b8e0 | 11444 | { |
592a252b | 11445 | /* VEX_W_0F3A4A_P_2 */ |
bf890a93 | 11446 | { "vblendvps", { XM, Vex, EXx, XMVexI4 }, 0 }, |
9e30b8e0 L |
11447 | }, |
11448 | { | |
592a252b | 11449 | /* VEX_W_0F3A4B_P_2 */ |
bf890a93 | 11450 | { "vblendvpd", { XM, Vex, EXx, XMVexI4 }, 0 }, |
9e30b8e0 L |
11451 | }, |
11452 | { | |
592a252b | 11453 | /* VEX_W_0F3A4C_P_2 */ |
bf890a93 | 11454 | { "vpblendvb", { XM, Vex, EXx, XMVexI4 }, 0 }, |
9e30b8e0 | 11455 | }, |
9e30b8e0 | 11456 | { |
592a252b | 11457 | /* VEX_W_0F3A62_P_2 */ |
bf890a93 | 11458 | { "vpcmpistrm", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11459 | }, |
11460 | { | |
592a252b | 11461 | /* VEX_W_0F3A63_P_2 */ |
bf890a93 | 11462 | { "vpcmpistri", { XM, EXx, Ib }, 0 }, |
9e30b8e0 | 11463 | }, |
48521003 IT |
11464 | { |
11465 | /* VEX_W_0F3ACE_P_2 */ | |
11466 | { Bad_Opcode }, | |
11467 | { "vgf2p8affineqb", { XM, Vex, EXx, Ib }, 0 }, | |
11468 | }, | |
11469 | { | |
11470 | /* VEX_W_0F3ACF_P_2 */ | |
11471 | { Bad_Opcode }, | |
11472 | { "vgf2p8affineinvqb", { XM, Vex, EXx, Ib }, 0 }, | |
11473 | }, | |
9e30b8e0 | 11474 | { |
592a252b | 11475 | /* VEX_W_0F3ADF_P_2 */ |
bf890a93 | 11476 | { "vaeskeygenassist", { XM, EXx, Ib }, 0 }, |
9e30b8e0 | 11477 | }, |
43234a1e L |
11478 | #define NEED_VEX_W_TABLE |
11479 | #include "i386-dis-evex.h" | |
11480 | #undef NEED_VEX_W_TABLE | |
9e30b8e0 L |
11481 | }; |
11482 | ||
11483 | static const struct dis386 mod_table[][2] = { | |
11484 | { | |
11485 | /* MOD_8D */ | |
bf890a93 | 11486 | { "leaS", { Gv, M }, 0 }, |
9e30b8e0 | 11487 | }, |
42164a71 L |
11488 | { |
11489 | /* MOD_C6_REG_7 */ | |
11490 | { Bad_Opcode }, | |
11491 | { RM_TABLE (RM_C6_REG_7) }, | |
11492 | }, | |
11493 | { | |
11494 | /* MOD_C7_REG_7 */ | |
11495 | { Bad_Opcode }, | |
11496 | { RM_TABLE (RM_C7_REG_7) }, | |
11497 | }, | |
4a357820 MZ |
11498 | { |
11499 | /* MOD_FF_REG_3 */ | |
a72d2af2 | 11500 | { "Jcall^", { indirEp }, 0 }, |
4a357820 MZ |
11501 | }, |
11502 | { | |
11503 | /* MOD_FF_REG_5 */ | |
a72d2af2 | 11504 | { "Jjmp^", { indirEp }, 0 }, |
4a357820 | 11505 | }, |
9e30b8e0 L |
11506 | { |
11507 | /* MOD_0F01_REG_0 */ | |
11508 | { X86_64_TABLE (X86_64_0F01_REG_0) }, | |
11509 | { RM_TABLE (RM_0F01_REG_0) }, | |
11510 | }, | |
11511 | { | |
11512 | /* MOD_0F01_REG_1 */ | |
11513 | { X86_64_TABLE (X86_64_0F01_REG_1) }, | |
11514 | { RM_TABLE (RM_0F01_REG_1) }, | |
11515 | }, | |
11516 | { | |
11517 | /* MOD_0F01_REG_2 */ | |
11518 | { X86_64_TABLE (X86_64_0F01_REG_2) }, | |
11519 | { RM_TABLE (RM_0F01_REG_2) }, | |
11520 | }, | |
11521 | { | |
11522 | /* MOD_0F01_REG_3 */ | |
11523 | { X86_64_TABLE (X86_64_0F01_REG_3) }, | |
11524 | { RM_TABLE (RM_0F01_REG_3) }, | |
11525 | }, | |
8eab4136 L |
11526 | { |
11527 | /* MOD_0F01_REG_5 */ | |
603555e5 | 11528 | { PREFIX_TABLE (PREFIX_MOD_0_0F01_REG_5) }, |
8eab4136 L |
11529 | { RM_TABLE (RM_0F01_REG_5) }, |
11530 | }, | |
9e30b8e0 L |
11531 | { |
11532 | /* MOD_0F01_REG_7 */ | |
bf890a93 | 11533 | { "invlpg", { Mb }, 0 }, |
9e30b8e0 L |
11534 | { RM_TABLE (RM_0F01_REG_7) }, |
11535 | }, | |
11536 | { | |
11537 | /* MOD_0F12_PREFIX_0 */ | |
507bd325 L |
11538 | { "movlps", { XM, EXq }, PREFIX_OPCODE }, |
11539 | { "movhlps", { XM, EXq }, PREFIX_OPCODE }, | |
9e30b8e0 L |
11540 | }, |
11541 | { | |
11542 | /* MOD_0F13 */ | |
507bd325 | 11543 | { "movlpX", { EXq, XM }, PREFIX_OPCODE }, |
9e30b8e0 L |
11544 | }, |
11545 | { | |
11546 | /* MOD_0F16_PREFIX_0 */ | |
bf890a93 IT |
11547 | { "movhps", { XM, EXq }, 0 }, |
11548 | { "movlhps", { XM, EXq }, 0 }, | |
9e30b8e0 L |
11549 | }, |
11550 | { | |
11551 | /* MOD_0F17 */ | |
507bd325 | 11552 | { "movhpX", { EXq, XM }, PREFIX_OPCODE }, |
9e30b8e0 L |
11553 | }, |
11554 | { | |
11555 | /* MOD_0F18_REG_0 */ | |
bf890a93 | 11556 | { "prefetchnta", { Mb }, 0 }, |
9e30b8e0 L |
11557 | }, |
11558 | { | |
11559 | /* MOD_0F18_REG_1 */ | |
bf890a93 | 11560 | { "prefetcht0", { Mb }, 0 }, |
9e30b8e0 L |
11561 | }, |
11562 | { | |
11563 | /* MOD_0F18_REG_2 */ | |
bf890a93 | 11564 | { "prefetcht1", { Mb }, 0 }, |
9e30b8e0 L |
11565 | }, |
11566 | { | |
11567 | /* MOD_0F18_REG_3 */ | |
bf890a93 | 11568 | { "prefetcht2", { Mb }, 0 }, |
9e30b8e0 | 11569 | }, |
d7189fa5 RM |
11570 | { |
11571 | /* MOD_0F18_REG_4 */ | |
bf890a93 | 11572 | { "nop/reserved", { Mb }, 0 }, |
d7189fa5 RM |
11573 | }, |
11574 | { | |
11575 | /* MOD_0F18_REG_5 */ | |
bf890a93 | 11576 | { "nop/reserved", { Mb }, 0 }, |
d7189fa5 RM |
11577 | }, |
11578 | { | |
11579 | /* MOD_0F18_REG_6 */ | |
bf890a93 | 11580 | { "nop/reserved", { Mb }, 0 }, |
d7189fa5 RM |
11581 | }, |
11582 | { | |
11583 | /* MOD_0F18_REG_7 */ | |
bf890a93 | 11584 | { "nop/reserved", { Mb }, 0 }, |
d7189fa5 | 11585 | }, |
7e8b059b L |
11586 | { |
11587 | /* MOD_0F1A_PREFIX_0 */ | |
bf890a93 IT |
11588 | { "bndldx", { Gbnd, Ev_bnd }, 0 }, |
11589 | { "nopQ", { Ev }, 0 }, | |
7e8b059b L |
11590 | }, |
11591 | { | |
11592 | /* MOD_0F1B_PREFIX_0 */ | |
bf890a93 IT |
11593 | { "bndstx", { Ev_bnd, Gbnd }, 0 }, |
11594 | { "nopQ", { Ev }, 0 }, | |
7e8b059b L |
11595 | }, |
11596 | { | |
11597 | /* MOD_0F1B_PREFIX_1 */ | |
bf890a93 IT |
11598 | { "bndmk", { Gbnd, Ev_bnd }, 0 }, |
11599 | { "nopQ", { Ev }, 0 }, | |
7e8b059b | 11600 | }, |
603555e5 L |
11601 | { |
11602 | /* MOD_0F1E_PREFIX_1 */ | |
11603 | { "nopQ", { Ev }, 0 }, | |
11604 | { REG_TABLE (REG_0F1E_MOD_3) }, | |
11605 | }, | |
b844680a | 11606 | { |
92fddf8e | 11607 | /* MOD_0F24 */ |
7bb15c6f | 11608 | { Bad_Opcode }, |
bf890a93 | 11609 | { "movL", { Rd, Td }, 0 }, |
b844680a L |
11610 | }, |
11611 | { | |
92fddf8e | 11612 | /* MOD_0F26 */ |
592d1631 | 11613 | { Bad_Opcode }, |
bf890a93 | 11614 | { "movL", { Td, Rd }, 0 }, |
b844680a | 11615 | }, |
75c135a8 L |
11616 | { |
11617 | /* MOD_0F2B_PREFIX_0 */ | |
507bd325 | 11618 | {"movntps", { Mx, XM }, PREFIX_OPCODE }, |
75c135a8 L |
11619 | }, |
11620 | { | |
11621 | /* MOD_0F2B_PREFIX_1 */ | |
507bd325 | 11622 | {"movntss", { Md, XM }, PREFIX_OPCODE }, |
75c135a8 L |
11623 | }, |
11624 | { | |
11625 | /* MOD_0F2B_PREFIX_2 */ | |
507bd325 | 11626 | {"movntpd", { Mx, XM }, PREFIX_OPCODE }, |
75c135a8 L |
11627 | }, |
11628 | { | |
11629 | /* MOD_0F2B_PREFIX_3 */ | |
507bd325 | 11630 | {"movntsd", { Mq, XM }, PREFIX_OPCODE }, |
75c135a8 L |
11631 | }, |
11632 | { | |
11633 | /* MOD_0F51 */ | |
592d1631 | 11634 | { Bad_Opcode }, |
507bd325 | 11635 | { "movmskpX", { Gdq, XS }, PREFIX_OPCODE }, |
75c135a8 | 11636 | }, |
b844680a | 11637 | { |
1ceb70f8 | 11638 | /* MOD_0F71_REG_2 */ |
592d1631 | 11639 | { Bad_Opcode }, |
bf890a93 | 11640 | { "psrlw", { MS, Ib }, 0 }, |
b844680a L |
11641 | }, |
11642 | { | |
1ceb70f8 | 11643 | /* MOD_0F71_REG_4 */ |
592d1631 | 11644 | { Bad_Opcode }, |
bf890a93 | 11645 | { "psraw", { MS, Ib }, 0 }, |
b844680a L |
11646 | }, |
11647 | { | |
1ceb70f8 | 11648 | /* MOD_0F71_REG_6 */ |
592d1631 | 11649 | { Bad_Opcode }, |
bf890a93 | 11650 | { "psllw", { MS, Ib }, 0 }, |
b844680a L |
11651 | }, |
11652 | { | |
1ceb70f8 | 11653 | /* MOD_0F72_REG_2 */ |
592d1631 | 11654 | { Bad_Opcode }, |
bf890a93 | 11655 | { "psrld", { MS, Ib }, 0 }, |
b844680a L |
11656 | }, |
11657 | { | |
1ceb70f8 | 11658 | /* MOD_0F72_REG_4 */ |
592d1631 | 11659 | { Bad_Opcode }, |
bf890a93 | 11660 | { "psrad", { MS, Ib }, 0 }, |
b844680a L |
11661 | }, |
11662 | { | |
1ceb70f8 | 11663 | /* MOD_0F72_REG_6 */ |
592d1631 | 11664 | { Bad_Opcode }, |
bf890a93 | 11665 | { "pslld", { MS, Ib }, 0 }, |
b844680a L |
11666 | }, |
11667 | { | |
1ceb70f8 | 11668 | /* MOD_0F73_REG_2 */ |
592d1631 | 11669 | { Bad_Opcode }, |
bf890a93 | 11670 | { "psrlq", { MS, Ib }, 0 }, |
b844680a L |
11671 | }, |
11672 | { | |
1ceb70f8 | 11673 | /* MOD_0F73_REG_3 */ |
592d1631 | 11674 | { Bad_Opcode }, |
c0f3af97 L |
11675 | { PREFIX_TABLE (PREFIX_0F73_REG_3) }, |
11676 | }, | |
11677 | { | |
11678 | /* MOD_0F73_REG_6 */ | |
592d1631 | 11679 | { Bad_Opcode }, |
bf890a93 | 11680 | { "psllq", { MS, Ib }, 0 }, |
c0f3af97 L |
11681 | }, |
11682 | { | |
11683 | /* MOD_0F73_REG_7 */ | |
592d1631 | 11684 | { Bad_Opcode }, |
c0f3af97 L |
11685 | { PREFIX_TABLE (PREFIX_0F73_REG_7) }, |
11686 | }, | |
11687 | { | |
11688 | /* MOD_0FAE_REG_0 */ | |
bf890a93 | 11689 | { "fxsave", { FXSAVE }, 0 }, |
c7b8aa3a | 11690 | { PREFIX_TABLE (PREFIX_0FAE_REG_0) }, |
c0f3af97 L |
11691 | }, |
11692 | { | |
11693 | /* MOD_0FAE_REG_1 */ | |
bf890a93 | 11694 | { "fxrstor", { FXSAVE }, 0 }, |
c7b8aa3a | 11695 | { PREFIX_TABLE (PREFIX_0FAE_REG_1) }, |
c0f3af97 L |
11696 | }, |
11697 | { | |
11698 | /* MOD_0FAE_REG_2 */ | |
bf890a93 | 11699 | { "ldmxcsr", { Md }, 0 }, |
c7b8aa3a | 11700 | { PREFIX_TABLE (PREFIX_0FAE_REG_2) }, |
c0f3af97 L |
11701 | }, |
11702 | { | |
11703 | /* MOD_0FAE_REG_3 */ | |
bf890a93 | 11704 | { "stmxcsr", { Md }, 0 }, |
c7b8aa3a | 11705 | { PREFIX_TABLE (PREFIX_0FAE_REG_3) }, |
c0f3af97 L |
11706 | }, |
11707 | { | |
11708 | /* MOD_0FAE_REG_4 */ | |
6b40c462 L |
11709 | { PREFIX_TABLE (PREFIX_MOD_0_0FAE_REG_4) }, |
11710 | { PREFIX_TABLE (PREFIX_MOD_3_0FAE_REG_4) }, | |
c0f3af97 L |
11711 | }, |
11712 | { | |
11713 | /* MOD_0FAE_REG_5 */ | |
603555e5 | 11714 | { PREFIX_TABLE (PREFIX_MOD_0_0FAE_REG_5) }, |
2234eee6 | 11715 | { PREFIX_TABLE (PREFIX_MOD_3_0FAE_REG_5) }, |
c0f3af97 L |
11716 | }, |
11717 | { | |
11718 | /* MOD_0FAE_REG_6 */ | |
c5e7287a | 11719 | { PREFIX_TABLE (PREFIX_0FAE_REG_6) }, |
c0f3af97 L |
11720 | { RM_TABLE (RM_0FAE_REG_6) }, |
11721 | }, | |
11722 | { | |
11723 | /* MOD_0FAE_REG_7 */ | |
963f3586 | 11724 | { PREFIX_TABLE (PREFIX_0FAE_REG_7) }, |
c0f3af97 L |
11725 | { RM_TABLE (RM_0FAE_REG_7) }, |
11726 | }, | |
11727 | { | |
11728 | /* MOD_0FB2 */ | |
bf890a93 | 11729 | { "lssS", { Gv, Mp }, 0 }, |
c0f3af97 L |
11730 | }, |
11731 | { | |
11732 | /* MOD_0FB4 */ | |
bf890a93 | 11733 | { "lfsS", { Gv, Mp }, 0 }, |
c0f3af97 L |
11734 | }, |
11735 | { | |
11736 | /* MOD_0FB5 */ | |
bf890a93 | 11737 | { "lgsS", { Gv, Mp }, 0 }, |
c0f3af97 | 11738 | }, |
a8484f96 L |
11739 | { |
11740 | /* MOD_0FC3 */ | |
11741 | { PREFIX_TABLE (PREFIX_MOD_0_0FC3) }, | |
11742 | }, | |
963f3586 IT |
11743 | { |
11744 | /* MOD_0FC7_REG_3 */ | |
a8484f96 | 11745 | { "xrstors", { FXSAVE }, 0 }, |
963f3586 IT |
11746 | }, |
11747 | { | |
11748 | /* MOD_0FC7_REG_4 */ | |
bf890a93 | 11749 | { "xsavec", { FXSAVE }, 0 }, |
963f3586 IT |
11750 | }, |
11751 | { | |
11752 | /* MOD_0FC7_REG_5 */ | |
bf890a93 | 11753 | { "xsaves", { FXSAVE }, 0 }, |
963f3586 | 11754 | }, |
c0f3af97 L |
11755 | { |
11756 | /* MOD_0FC7_REG_6 */ | |
f24bcbaa L |
11757 | { PREFIX_TABLE (PREFIX_MOD_0_0FC7_REG_6) }, |
11758 | { PREFIX_TABLE (PREFIX_MOD_3_0FC7_REG_6) } | |
c0f3af97 L |
11759 | }, |
11760 | { | |
11761 | /* MOD_0FC7_REG_7 */ | |
bf890a93 | 11762 | { "vmptrst", { Mq }, 0 }, |
f24bcbaa | 11763 | { PREFIX_TABLE (PREFIX_MOD_3_0FC7_REG_7) } |
c0f3af97 L |
11764 | }, |
11765 | { | |
11766 | /* MOD_0FD7 */ | |
592d1631 | 11767 | { Bad_Opcode }, |
bf890a93 | 11768 | { "pmovmskb", { Gdq, MS }, 0 }, |
c0f3af97 L |
11769 | }, |
11770 | { | |
11771 | /* MOD_0FE7_PREFIX_2 */ | |
bf890a93 | 11772 | { "movntdq", { Mx, XM }, 0 }, |
c0f3af97 L |
11773 | }, |
11774 | { | |
11775 | /* MOD_0FF0_PREFIX_3 */ | |
bf890a93 | 11776 | { "lddqu", { XM, M }, 0 }, |
c0f3af97 L |
11777 | }, |
11778 | { | |
11779 | /* MOD_0F382A_PREFIX_2 */ | |
bf890a93 | 11780 | { "movntdqa", { XM, Mx }, 0 }, |
c0f3af97 | 11781 | }, |
603555e5 L |
11782 | { |
11783 | /* MOD_0F38F5_PREFIX_2 */ | |
11784 | { "wrussK", { M, Gdq }, PREFIX_OPCODE }, | |
11785 | }, | |
11786 | { | |
11787 | /* MOD_0F38F6_PREFIX_0 */ | |
11788 | { "wrssK", { M, Gdq }, PREFIX_OPCODE }, | |
11789 | }, | |
c0f3af97 L |
11790 | { |
11791 | /* MOD_62_32BIT */ | |
bf890a93 | 11792 | { "bound{S|}", { Gv, Ma }, 0 }, |
43234a1e | 11793 | { EVEX_TABLE (EVEX_0F) }, |
c0f3af97 L |
11794 | }, |
11795 | { | |
11796 | /* MOD_C4_32BIT */ | |
bf890a93 | 11797 | { "lesS", { Gv, Mp }, 0 }, |
c0f3af97 L |
11798 | { VEX_C4_TABLE (VEX_0F) }, |
11799 | }, | |
11800 | { | |
11801 | /* MOD_C5_32BIT */ | |
bf890a93 | 11802 | { "ldsS", { Gv, Mp }, 0 }, |
c0f3af97 L |
11803 | { VEX_C5_TABLE (VEX_0F) }, |
11804 | }, | |
11805 | { | |
592a252b L |
11806 | /* MOD_VEX_0F12_PREFIX_0 */ |
11807 | { VEX_LEN_TABLE (VEX_LEN_0F12_P_0_M_0) }, | |
11808 | { VEX_LEN_TABLE (VEX_LEN_0F12_P_0_M_1) }, | |
c0f3af97 L |
11809 | }, |
11810 | { | |
592a252b L |
11811 | /* MOD_VEX_0F13 */ |
11812 | { VEX_LEN_TABLE (VEX_LEN_0F13_M_0) }, | |
c0f3af97 L |
11813 | }, |
11814 | { | |
592a252b L |
11815 | /* MOD_VEX_0F16_PREFIX_0 */ |
11816 | { VEX_LEN_TABLE (VEX_LEN_0F16_P_0_M_0) }, | |
11817 | { VEX_LEN_TABLE (VEX_LEN_0F16_P_0_M_1) }, | |
c0f3af97 L |
11818 | }, |
11819 | { | |
592a252b L |
11820 | /* MOD_VEX_0F17 */ |
11821 | { VEX_LEN_TABLE (VEX_LEN_0F17_M_0) }, | |
c0f3af97 L |
11822 | }, |
11823 | { | |
592a252b L |
11824 | /* MOD_VEX_0F2B */ |
11825 | { VEX_W_TABLE (VEX_W_0F2B_M_0) }, | |
c0f3af97 | 11826 | }, |
ab4e4ed5 AF |
11827 | { |
11828 | /* MOD_VEX_W_0_0F41_P_0_LEN_1 */ | |
11829 | { Bad_Opcode }, | |
11830 | { "kandw", { MaskG, MaskVex, MaskR }, 0 }, | |
11831 | }, | |
11832 | { | |
11833 | /* MOD_VEX_W_1_0F41_P_0_LEN_1 */ | |
11834 | { Bad_Opcode }, | |
11835 | { "kandq", { MaskG, MaskVex, MaskR }, 0 }, | |
11836 | }, | |
11837 | { | |
11838 | /* MOD_VEX_W_0_0F41_P_2_LEN_1 */ | |
11839 | { Bad_Opcode }, | |
11840 | { "kandb", { MaskG, MaskVex, MaskR }, 0 }, | |
11841 | }, | |
11842 | { | |
11843 | /* MOD_VEX_W_1_0F41_P_2_LEN_1 */ | |
11844 | { Bad_Opcode }, | |
11845 | { "kandd", { MaskG, MaskVex, MaskR }, 0 }, | |
11846 | }, | |
11847 | { | |
11848 | /* MOD_VEX_W_0_0F42_P_0_LEN_1 */ | |
11849 | { Bad_Opcode }, | |
11850 | { "kandnw", { MaskG, MaskVex, MaskR }, 0 }, | |
11851 | }, | |
11852 | { | |
11853 | /* MOD_VEX_W_1_0F42_P_0_LEN_1 */ | |
11854 | { Bad_Opcode }, | |
11855 | { "kandnq", { MaskG, MaskVex, MaskR }, 0 }, | |
11856 | }, | |
11857 | { | |
11858 | /* MOD_VEX_W_0_0F42_P_2_LEN_1 */ | |
11859 | { Bad_Opcode }, | |
11860 | { "kandnb", { MaskG, MaskVex, MaskR }, 0 }, | |
11861 | }, | |
11862 | { | |
11863 | /* MOD_VEX_W_1_0F42_P_2_LEN_1 */ | |
11864 | { Bad_Opcode }, | |
11865 | { "kandnd", { MaskG, MaskVex, MaskR }, 0 }, | |
11866 | }, | |
11867 | { | |
11868 | /* MOD_VEX_W_0_0F44_P_0_LEN_0 */ | |
11869 | { Bad_Opcode }, | |
11870 | { "knotw", { MaskG, MaskR }, 0 }, | |
11871 | }, | |
11872 | { | |
11873 | /* MOD_VEX_W_1_0F44_P_0_LEN_0 */ | |
11874 | { Bad_Opcode }, | |
11875 | { "knotq", { MaskG, MaskR }, 0 }, | |
11876 | }, | |
11877 | { | |
11878 | /* MOD_VEX_W_0_0F44_P_2_LEN_0 */ | |
11879 | { Bad_Opcode }, | |
11880 | { "knotb", { MaskG, MaskR }, 0 }, | |
11881 | }, | |
11882 | { | |
11883 | /* MOD_VEX_W_1_0F44_P_2_LEN_0 */ | |
11884 | { Bad_Opcode }, | |
11885 | { "knotd", { MaskG, MaskR }, 0 }, | |
11886 | }, | |
11887 | { | |
11888 | /* MOD_VEX_W_0_0F45_P_0_LEN_1 */ | |
11889 | { Bad_Opcode }, | |
11890 | { "korw", { MaskG, MaskVex, MaskR }, 0 }, | |
11891 | }, | |
11892 | { | |
11893 | /* MOD_VEX_W_1_0F45_P_0_LEN_1 */ | |
11894 | { Bad_Opcode }, | |
11895 | { "korq", { MaskG, MaskVex, MaskR }, 0 }, | |
11896 | }, | |
11897 | { | |
11898 | /* MOD_VEX_W_0_0F45_P_2_LEN_1 */ | |
11899 | { Bad_Opcode }, | |
11900 | { "korb", { MaskG, MaskVex, MaskR }, 0 }, | |
11901 | }, | |
11902 | { | |
11903 | /* MOD_VEX_W_1_0F45_P_2_LEN_1 */ | |
11904 | { Bad_Opcode }, | |
11905 | { "kord", { MaskG, MaskVex, MaskR }, 0 }, | |
11906 | }, | |
11907 | { | |
11908 | /* MOD_VEX_W_0_0F46_P_0_LEN_1 */ | |
11909 | { Bad_Opcode }, | |
11910 | { "kxnorw", { MaskG, MaskVex, MaskR }, 0 }, | |
11911 | }, | |
11912 | { | |
11913 | /* MOD_VEX_W_1_0F46_P_0_LEN_1 */ | |
11914 | { Bad_Opcode }, | |
11915 | { "kxnorq", { MaskG, MaskVex, MaskR }, 0 }, | |
11916 | }, | |
11917 | { | |
11918 | /* MOD_VEX_W_0_0F46_P_2_LEN_1 */ | |
11919 | { Bad_Opcode }, | |
11920 | { "kxnorb", { MaskG, MaskVex, MaskR }, 0 }, | |
11921 | }, | |
11922 | { | |
11923 | /* MOD_VEX_W_1_0F46_P_2_LEN_1 */ | |
11924 | { Bad_Opcode }, | |
11925 | { "kxnord", { MaskG, MaskVex, MaskR }, 0 }, | |
11926 | }, | |
11927 | { | |
11928 | /* MOD_VEX_W_0_0F47_P_0_LEN_1 */ | |
11929 | { Bad_Opcode }, | |
11930 | { "kxorw", { MaskG, MaskVex, MaskR }, 0 }, | |
11931 | }, | |
11932 | { | |
11933 | /* MOD_VEX_W_1_0F47_P_0_LEN_1 */ | |
11934 | { Bad_Opcode }, | |
11935 | { "kxorq", { MaskG, MaskVex, MaskR }, 0 }, | |
11936 | }, | |
11937 | { | |
11938 | /* MOD_VEX_W_0_0F47_P_2_LEN_1 */ | |
11939 | { Bad_Opcode }, | |
11940 | { "kxorb", { MaskG, MaskVex, MaskR }, 0 }, | |
11941 | }, | |
11942 | { | |
11943 | /* MOD_VEX_W_1_0F47_P_2_LEN_1 */ | |
11944 | { Bad_Opcode }, | |
11945 | { "kxord", { MaskG, MaskVex, MaskR }, 0 }, | |
11946 | }, | |
11947 | { | |
11948 | /* MOD_VEX_W_0_0F4A_P_0_LEN_1 */ | |
11949 | { Bad_Opcode }, | |
11950 | { "kaddw", { MaskG, MaskVex, MaskR }, 0 }, | |
11951 | }, | |
11952 | { | |
11953 | /* MOD_VEX_W_1_0F4A_P_0_LEN_1 */ | |
11954 | { Bad_Opcode }, | |
11955 | { "kaddq", { MaskG, MaskVex, MaskR }, 0 }, | |
11956 | }, | |
11957 | { | |
11958 | /* MOD_VEX_W_0_0F4A_P_2_LEN_1 */ | |
11959 | { Bad_Opcode }, | |
11960 | { "kaddb", { MaskG, MaskVex, MaskR }, 0 }, | |
11961 | }, | |
11962 | { | |
11963 | /* MOD_VEX_W_1_0F4A_P_2_LEN_1 */ | |
11964 | { Bad_Opcode }, | |
11965 | { "kaddd", { MaskG, MaskVex, MaskR }, 0 }, | |
11966 | }, | |
11967 | { | |
11968 | /* MOD_VEX_W_0_0F4B_P_0_LEN_1 */ | |
11969 | { Bad_Opcode }, | |
11970 | { "kunpckwd", { MaskG, MaskVex, MaskR }, 0 }, | |
11971 | }, | |
11972 | { | |
11973 | /* MOD_VEX_W_1_0F4B_P_0_LEN_1 */ | |
11974 | { Bad_Opcode }, | |
11975 | { "kunpckdq", { MaskG, MaskVex, MaskR }, 0 }, | |
11976 | }, | |
11977 | { | |
11978 | /* MOD_VEX_W_0_0F4B_P_2_LEN_1 */ | |
11979 | { Bad_Opcode }, | |
11980 | { "kunpckbw", { MaskG, MaskVex, MaskR }, 0 }, | |
11981 | }, | |
c0f3af97 | 11982 | { |
592a252b | 11983 | /* MOD_VEX_0F50 */ |
592d1631 | 11984 | { Bad_Opcode }, |
592a252b | 11985 | { VEX_W_TABLE (VEX_W_0F50_M_0) }, |
c0f3af97 L |
11986 | }, |
11987 | { | |
592a252b | 11988 | /* MOD_VEX_0F71_REG_2 */ |
592d1631 | 11989 | { Bad_Opcode }, |
592a252b | 11990 | { PREFIX_TABLE (PREFIX_VEX_0F71_REG_2) }, |
b844680a L |
11991 | }, |
11992 | { | |
592a252b | 11993 | /* MOD_VEX_0F71_REG_4 */ |
592d1631 | 11994 | { Bad_Opcode }, |
592a252b | 11995 | { PREFIX_TABLE (PREFIX_VEX_0F71_REG_4) }, |
b844680a L |
11996 | }, |
11997 | { | |
592a252b | 11998 | /* MOD_VEX_0F71_REG_6 */ |
592d1631 | 11999 | { Bad_Opcode }, |
592a252b | 12000 | { PREFIX_TABLE (PREFIX_VEX_0F71_REG_6) }, |
b844680a L |
12001 | }, |
12002 | { | |
592a252b | 12003 | /* MOD_VEX_0F72_REG_2 */ |
592d1631 | 12004 | { Bad_Opcode }, |
592a252b | 12005 | { PREFIX_TABLE (PREFIX_VEX_0F72_REG_2) }, |
b844680a | 12006 | }, |
d8faab4e | 12007 | { |
592a252b | 12008 | /* MOD_VEX_0F72_REG_4 */ |
592d1631 | 12009 | { Bad_Opcode }, |
592a252b | 12010 | { PREFIX_TABLE (PREFIX_VEX_0F72_REG_4) }, |
d8faab4e L |
12011 | }, |
12012 | { | |
592a252b | 12013 | /* MOD_VEX_0F72_REG_6 */ |
592d1631 | 12014 | { Bad_Opcode }, |
592a252b | 12015 | { PREFIX_TABLE (PREFIX_VEX_0F72_REG_6) }, |
d8faab4e | 12016 | }, |
876d4bfa | 12017 | { |
592a252b | 12018 | /* MOD_VEX_0F73_REG_2 */ |
592d1631 | 12019 | { Bad_Opcode }, |
592a252b | 12020 | { PREFIX_TABLE (PREFIX_VEX_0F73_REG_2) }, |
876d4bfa L |
12021 | }, |
12022 | { | |
592a252b | 12023 | /* MOD_VEX_0F73_REG_3 */ |
592d1631 | 12024 | { Bad_Opcode }, |
592a252b | 12025 | { PREFIX_TABLE (PREFIX_VEX_0F73_REG_3) }, |
475a2301 L |
12026 | }, |
12027 | { | |
592a252b | 12028 | /* MOD_VEX_0F73_REG_6 */ |
592d1631 | 12029 | { Bad_Opcode }, |
592a252b | 12030 | { PREFIX_TABLE (PREFIX_VEX_0F73_REG_6) }, |
876d4bfa L |
12031 | }, |
12032 | { | |
592a252b | 12033 | /* MOD_VEX_0F73_REG_7 */ |
592d1631 | 12034 | { Bad_Opcode }, |
592a252b | 12035 | { PREFIX_TABLE (PREFIX_VEX_0F73_REG_7) }, |
876d4bfa | 12036 | }, |
ab4e4ed5 AF |
12037 | { |
12038 | /* MOD_VEX_W_0_0F91_P_0_LEN_0 */ | |
12039 | { "kmovw", { Ew, MaskG }, 0 }, | |
12040 | { Bad_Opcode }, | |
12041 | }, | |
12042 | { | |
12043 | /* MOD_VEX_W_0_0F91_P_0_LEN_0 */ | |
12044 | { "kmovq", { Eq, MaskG }, 0 }, | |
12045 | { Bad_Opcode }, | |
12046 | }, | |
12047 | { | |
12048 | /* MOD_VEX_W_0_0F91_P_2_LEN_0 */ | |
12049 | { "kmovb", { Eb, MaskG }, 0 }, | |
12050 | { Bad_Opcode }, | |
12051 | }, | |
12052 | { | |
12053 | /* MOD_VEX_W_0_0F91_P_2_LEN_0 */ | |
12054 | { "kmovd", { Ed, MaskG }, 0 }, | |
12055 | { Bad_Opcode }, | |
12056 | }, | |
12057 | { | |
12058 | /* MOD_VEX_W_0_0F92_P_0_LEN_0 */ | |
12059 | { Bad_Opcode }, | |
12060 | { "kmovw", { MaskG, Rdq }, 0 }, | |
12061 | }, | |
12062 | { | |
12063 | /* MOD_VEX_W_0_0F92_P_2_LEN_0 */ | |
12064 | { Bad_Opcode }, | |
12065 | { "kmovb", { MaskG, Rdq }, 0 }, | |
12066 | }, | |
12067 | { | |
12068 | /* MOD_VEX_W_0_0F92_P_3_LEN_0 */ | |
12069 | { Bad_Opcode }, | |
12070 | { "kmovd", { MaskG, Rdq }, 0 }, | |
12071 | }, | |
12072 | { | |
12073 | /* MOD_VEX_W_1_0F92_P_3_LEN_0 */ | |
12074 | { Bad_Opcode }, | |
12075 | { "kmovq", { MaskG, Rdq }, 0 }, | |
12076 | }, | |
12077 | { | |
12078 | /* MOD_VEX_W_0_0F93_P_0_LEN_0 */ | |
12079 | { Bad_Opcode }, | |
12080 | { "kmovw", { Gdq, MaskR }, 0 }, | |
12081 | }, | |
12082 | { | |
12083 | /* MOD_VEX_W_0_0F93_P_2_LEN_0 */ | |
12084 | { Bad_Opcode }, | |
12085 | { "kmovb", { Gdq, MaskR }, 0 }, | |
12086 | }, | |
12087 | { | |
12088 | /* MOD_VEX_W_0_0F93_P_3_LEN_0 */ | |
12089 | { Bad_Opcode }, | |
12090 | { "kmovd", { Gdq, MaskR }, 0 }, | |
12091 | }, | |
12092 | { | |
12093 | /* MOD_VEX_W_1_0F93_P_3_LEN_0 */ | |
12094 | { Bad_Opcode }, | |
12095 | { "kmovq", { Gdq, MaskR }, 0 }, | |
12096 | }, | |
12097 | { | |
12098 | /* MOD_VEX_W_0_0F98_P_0_LEN_0 */ | |
12099 | { Bad_Opcode }, | |
12100 | { "kortestw", { MaskG, MaskR }, 0 }, | |
12101 | }, | |
12102 | { | |
12103 | /* MOD_VEX_W_1_0F98_P_0_LEN_0 */ | |
12104 | { Bad_Opcode }, | |
12105 | { "kortestq", { MaskG, MaskR }, 0 }, | |
12106 | }, | |
12107 | { | |
12108 | /* MOD_VEX_W_0_0F98_P_2_LEN_0 */ | |
12109 | { Bad_Opcode }, | |
12110 | { "kortestb", { MaskG, MaskR }, 0 }, | |
12111 | }, | |
12112 | { | |
12113 | /* MOD_VEX_W_1_0F98_P_2_LEN_0 */ | |
12114 | { Bad_Opcode }, | |
12115 | { "kortestd", { MaskG, MaskR }, 0 }, | |
12116 | }, | |
12117 | { | |
12118 | /* MOD_VEX_W_0_0F99_P_0_LEN_0 */ | |
12119 | { Bad_Opcode }, | |
12120 | { "ktestw", { MaskG, MaskR }, 0 }, | |
12121 | }, | |
12122 | { | |
12123 | /* MOD_VEX_W_1_0F99_P_0_LEN_0 */ | |
12124 | { Bad_Opcode }, | |
12125 | { "ktestq", { MaskG, MaskR }, 0 }, | |
12126 | }, | |
12127 | { | |
12128 | /* MOD_VEX_W_0_0F99_P_2_LEN_0 */ | |
12129 | { Bad_Opcode }, | |
12130 | { "ktestb", { MaskG, MaskR }, 0 }, | |
12131 | }, | |
12132 | { | |
12133 | /* MOD_VEX_W_1_0F99_P_2_LEN_0 */ | |
12134 | { Bad_Opcode }, | |
12135 | { "ktestd", { MaskG, MaskR }, 0 }, | |
12136 | }, | |
876d4bfa | 12137 | { |
592a252b L |
12138 | /* MOD_VEX_0FAE_REG_2 */ |
12139 | { VEX_LEN_TABLE (VEX_LEN_0FAE_R_2_M_0) }, | |
876d4bfa | 12140 | }, |
bbedc832 | 12141 | { |
592a252b L |
12142 | /* MOD_VEX_0FAE_REG_3 */ |
12143 | { VEX_LEN_TABLE (VEX_LEN_0FAE_R_3_M_0) }, | |
bbedc832 | 12144 | }, |
144c41d9 | 12145 | { |
592a252b | 12146 | /* MOD_VEX_0FD7_PREFIX_2 */ |
592d1631 | 12147 | { Bad_Opcode }, |
6c30d220 | 12148 | { VEX_W_TABLE (VEX_W_0FD7_P_2_M_1) }, |
144c41d9 | 12149 | }, |
1afd85e3 | 12150 | { |
592a252b L |
12151 | /* MOD_VEX_0FE7_PREFIX_2 */ |
12152 | { VEX_W_TABLE (VEX_W_0FE7_P_2_M_0) }, | |
1afd85e3 L |
12153 | }, |
12154 | { | |
592a252b L |
12155 | /* MOD_VEX_0FF0_PREFIX_3 */ |
12156 | { VEX_W_TABLE (VEX_W_0FF0_P_3_M_0) }, | |
92fddf8e | 12157 | }, |
75c135a8 | 12158 | { |
592a252b L |
12159 | /* MOD_VEX_0F381A_PREFIX_2 */ |
12160 | { VEX_LEN_TABLE (VEX_LEN_0F381A_P_2_M_0) }, | |
75c135a8 | 12161 | }, |
1afd85e3 | 12162 | { |
592a252b | 12163 | /* MOD_VEX_0F382A_PREFIX_2 */ |
6c30d220 | 12164 | { VEX_W_TABLE (VEX_W_0F382A_P_2_M_0) }, |
1afd85e3 | 12165 | }, |
75c135a8 | 12166 | { |
592a252b L |
12167 | /* MOD_VEX_0F382C_PREFIX_2 */ |
12168 | { VEX_W_TABLE (VEX_W_0F382C_P_2_M_0) }, | |
75c135a8 | 12169 | }, |
1afd85e3 | 12170 | { |
592a252b L |
12171 | /* MOD_VEX_0F382D_PREFIX_2 */ |
12172 | { VEX_W_TABLE (VEX_W_0F382D_P_2_M_0) }, | |
1afd85e3 L |
12173 | }, |
12174 | { | |
592a252b L |
12175 | /* MOD_VEX_0F382E_PREFIX_2 */ |
12176 | { VEX_W_TABLE (VEX_W_0F382E_P_2_M_0) }, | |
1afd85e3 L |
12177 | }, |
12178 | { | |
592a252b L |
12179 | /* MOD_VEX_0F382F_PREFIX_2 */ |
12180 | { VEX_W_TABLE (VEX_W_0F382F_P_2_M_0) }, | |
1afd85e3 | 12181 | }, |
6c30d220 L |
12182 | { |
12183 | /* MOD_VEX_0F385A_PREFIX_2 */ | |
12184 | { VEX_LEN_TABLE (VEX_LEN_0F385A_P_2_M_0) }, | |
12185 | }, | |
12186 | { | |
12187 | /* MOD_VEX_0F388C_PREFIX_2 */ | |
bf890a93 | 12188 | { "vpmaskmov%LW", { XM, Vex, Mx }, 0 }, |
6c30d220 L |
12189 | }, |
12190 | { | |
12191 | /* MOD_VEX_0F388E_PREFIX_2 */ | |
bf890a93 | 12192 | { "vpmaskmov%LW", { Mx, Vex, XM }, 0 }, |
6c30d220 | 12193 | }, |
ab4e4ed5 AF |
12194 | { |
12195 | /* MOD_VEX_W_0_0F3A30_P_2_LEN_0 */ | |
12196 | { Bad_Opcode }, | |
12197 | { "kshiftrb", { MaskG, MaskR, Ib }, 0 }, | |
12198 | }, | |
12199 | { | |
12200 | /* MOD_VEX_W_1_0F3A30_P_2_LEN_0 */ | |
12201 | { Bad_Opcode }, | |
12202 | { "kshiftrw", { MaskG, MaskR, Ib }, 0 }, | |
12203 | }, | |
12204 | { | |
12205 | /* MOD_VEX_W_0_0F3A31_P_2_LEN_0 */ | |
12206 | { Bad_Opcode }, | |
12207 | { "kshiftrd", { MaskG, MaskR, Ib }, 0 }, | |
12208 | }, | |
12209 | { | |
12210 | /* MOD_VEX_W_1_0F3A31_P_2_LEN_0 */ | |
12211 | { Bad_Opcode }, | |
12212 | { "kshiftrq", { MaskG, MaskR, Ib }, 0 }, | |
12213 | }, | |
12214 | { | |
12215 | /* MOD_VEX_W_0_0F3A32_P_2_LEN_0 */ | |
12216 | { Bad_Opcode }, | |
12217 | { "kshiftlb", { MaskG, MaskR, Ib }, 0 }, | |
12218 | }, | |
12219 | { | |
12220 | /* MOD_VEX_W_1_0F3A32_P_2_LEN_0 */ | |
12221 | { Bad_Opcode }, | |
12222 | { "kshiftlw", { MaskG, MaskR, Ib }, 0 }, | |
12223 | }, | |
12224 | { | |
12225 | /* MOD_VEX_W_0_0F3A33_P_2_LEN_0 */ | |
12226 | { Bad_Opcode }, | |
12227 | { "kshiftld", { MaskG, MaskR, Ib }, 0 }, | |
12228 | }, | |
12229 | { | |
12230 | /* MOD_VEX_W_1_0F3A33_P_2_LEN_0 */ | |
12231 | { Bad_Opcode }, | |
12232 | { "kshiftlq", { MaskG, MaskR, Ib }, 0 }, | |
12233 | }, | |
43234a1e L |
12234 | #define NEED_MOD_TABLE |
12235 | #include "i386-dis-evex.h" | |
12236 | #undef NEED_MOD_TABLE | |
b844680a L |
12237 | }; |
12238 | ||
1ceb70f8 | 12239 | static const struct dis386 rm_table[][8] = { |
42164a71 L |
12240 | { |
12241 | /* RM_C6_REG_7 */ | |
bf890a93 | 12242 | { "xabort", { Skip_MODRM, Ib }, 0 }, |
42164a71 L |
12243 | }, |
12244 | { | |
12245 | /* RM_C7_REG_7 */ | |
bf890a93 | 12246 | { "xbeginT", { Skip_MODRM, Jv }, 0 }, |
42164a71 | 12247 | }, |
b844680a | 12248 | { |
1ceb70f8 | 12249 | /* RM_0F01_REG_0 */ |
592d1631 | 12250 | { Bad_Opcode }, |
bf890a93 IT |
12251 | { "vmcall", { Skip_MODRM }, 0 }, |
12252 | { "vmlaunch", { Skip_MODRM }, 0 }, | |
12253 | { "vmresume", { Skip_MODRM }, 0 }, | |
12254 | { "vmxoff", { Skip_MODRM }, 0 }, | |
b844680a L |
12255 | }, |
12256 | { | |
1ceb70f8 | 12257 | /* RM_0F01_REG_1 */ |
bf890a93 IT |
12258 | { "monitor", { { OP_Monitor, 0 } }, 0 }, |
12259 | { "mwait", { { OP_Mwait, 0 } }, 0 }, | |
12260 | { "clac", { Skip_MODRM }, 0 }, | |
12261 | { "stac", { Skip_MODRM }, 0 }, | |
2cf200a4 IT |
12262 | { Bad_Opcode }, |
12263 | { Bad_Opcode }, | |
12264 | { Bad_Opcode }, | |
bf890a93 | 12265 | { "encls", { Skip_MODRM }, 0 }, |
b844680a | 12266 | }, |
475a2301 L |
12267 | { |
12268 | /* RM_0F01_REG_2 */ | |
bf890a93 IT |
12269 | { "xgetbv", { Skip_MODRM }, 0 }, |
12270 | { "xsetbv", { Skip_MODRM }, 0 }, | |
8729a6f6 L |
12271 | { Bad_Opcode }, |
12272 | { Bad_Opcode }, | |
bf890a93 IT |
12273 | { "vmfunc", { Skip_MODRM }, 0 }, |
12274 | { "xend", { Skip_MODRM }, 0 }, | |
12275 | { "xtest", { Skip_MODRM }, 0 }, | |
12276 | { "enclu", { Skip_MODRM }, 0 }, | |
475a2301 | 12277 | }, |
b844680a | 12278 | { |
1ceb70f8 | 12279 | /* RM_0F01_REG_3 */ |
bf890a93 IT |
12280 | { "vmrun", { Skip_MODRM }, 0 }, |
12281 | { "vmmcall", { Skip_MODRM }, 0 }, | |
12282 | { "vmload", { Skip_MODRM }, 0 }, | |
12283 | { "vmsave", { Skip_MODRM }, 0 }, | |
12284 | { "stgi", { Skip_MODRM }, 0 }, | |
12285 | { "clgi", { Skip_MODRM }, 0 }, | |
12286 | { "skinit", { Skip_MODRM }, 0 }, | |
12287 | { "invlpga", { Skip_MODRM }, 0 }, | |
4e7d34a6 | 12288 | }, |
8eab4136 L |
12289 | { |
12290 | /* RM_0F01_REG_5 */ | |
2234eee6 | 12291 | { PREFIX_TABLE (PREFIX_MOD_3_0F01_REG_5_RM_0) }, |
8eab4136 | 12292 | { Bad_Opcode }, |
603555e5 | 12293 | { PREFIX_TABLE (PREFIX_MOD_3_0F01_REG_5_RM_2) }, |
8eab4136 L |
12294 | { Bad_Opcode }, |
12295 | { Bad_Opcode }, | |
12296 | { Bad_Opcode }, | |
12297 | { "rdpkru", { Skip_MODRM }, 0 }, | |
12298 | { "wrpkru", { Skip_MODRM }, 0 }, | |
12299 | }, | |
4e7d34a6 | 12300 | { |
1ceb70f8 | 12301 | /* RM_0F01_REG_7 */ |
bf890a93 IT |
12302 | { "swapgs", { Skip_MODRM }, 0 }, |
12303 | { "rdtscp", { Skip_MODRM }, 0 }, | |
9916071f AP |
12304 | { "monitorx", { { OP_Monitor, 0 } }, 0 }, |
12305 | { "mwaitx", { { OP_Mwaitx, 0 } }, 0 }, | |
bf890a93 | 12306 | { "clzero", { Skip_MODRM }, 0 }, |
b844680a | 12307 | }, |
603555e5 L |
12308 | { |
12309 | /* RM_0F1E_MOD_3_REG_7 */ | |
12310 | { "nopQ", { Ev }, 0 }, | |
12311 | { "nopQ", { Ev }, 0 }, | |
12312 | { "endbr64", { Skip_MODRM }, PREFIX_OPCODE }, | |
12313 | { "endbr32", { Skip_MODRM }, PREFIX_OPCODE }, | |
12314 | { "nopQ", { Ev }, 0 }, | |
12315 | { "nopQ", { Ev }, 0 }, | |
12316 | { "nopQ", { Ev }, 0 }, | |
12317 | { "nopQ", { Ev }, 0 }, | |
12318 | }, | |
b844680a | 12319 | { |
1ceb70f8 | 12320 | /* RM_0FAE_REG_6 */ |
bf890a93 | 12321 | { "mfence", { Skip_MODRM }, 0 }, |
b844680a | 12322 | }, |
bbedc832 | 12323 | { |
1ceb70f8 | 12324 | /* RM_0FAE_REG_7 */ |
b5cefcca L |
12325 | { "sfence", { Skip_MODRM }, 0 }, |
12326 | ||
144c41d9 | 12327 | }, |
b844680a L |
12328 | }; |
12329 | ||
c608c12e AM |
12330 | #define INTERNAL_DISASSEMBLER_ERROR _("<internal disassembler error>") |
12331 | ||
f16cd0d5 L |
12332 | /* We use the high bit to indicate different name for the same |
12333 | prefix. */ | |
f16cd0d5 | 12334 | #define REP_PREFIX (0xf3 | 0x100) |
42164a71 L |
12335 | #define XACQUIRE_PREFIX (0xf2 | 0x200) |
12336 | #define XRELEASE_PREFIX (0xf3 | 0x400) | |
7e8b059b | 12337 | #define BND_PREFIX (0xf2 | 0x400) |
04ef582a | 12338 | #define NOTRACK_PREFIX (0x3e | 0x100) |
f16cd0d5 L |
12339 | |
12340 | static int | |
26ca5450 | 12341 | ckprefix (void) |
252b5132 | 12342 | { |
f16cd0d5 | 12343 | int newrex, i, length; |
52b15da3 | 12344 | rex = 0; |
c0f3af97 | 12345 | rex_ignored = 0; |
252b5132 | 12346 | prefixes = 0; |
7d421014 | 12347 | used_prefixes = 0; |
52b15da3 | 12348 | rex_used = 0; |
f16cd0d5 L |
12349 | last_lock_prefix = -1; |
12350 | last_repz_prefix = -1; | |
12351 | last_repnz_prefix = -1; | |
12352 | last_data_prefix = -1; | |
12353 | last_addr_prefix = -1; | |
12354 | last_rex_prefix = -1; | |
12355 | last_seg_prefix = -1; | |
d9949a36 | 12356 | fwait_prefix = -1; |
285ca992 | 12357 | active_seg_prefix = 0; |
f310f33d L |
12358 | for (i = 0; i < (int) ARRAY_SIZE (all_prefixes); i++) |
12359 | all_prefixes[i] = 0; | |
12360 | i = 0; | |
f16cd0d5 L |
12361 | length = 0; |
12362 | /* The maximum instruction length is 15bytes. */ | |
12363 | while (length < MAX_CODE_LENGTH - 1) | |
252b5132 RH |
12364 | { |
12365 | FETCH_DATA (the_info, codep + 1); | |
52b15da3 | 12366 | newrex = 0; |
252b5132 RH |
12367 | switch (*codep) |
12368 | { | |
52b15da3 JH |
12369 | /* REX prefixes family. */ |
12370 | case 0x40: | |
12371 | case 0x41: | |
12372 | case 0x42: | |
12373 | case 0x43: | |
12374 | case 0x44: | |
12375 | case 0x45: | |
12376 | case 0x46: | |
12377 | case 0x47: | |
12378 | case 0x48: | |
12379 | case 0x49: | |
12380 | case 0x4a: | |
12381 | case 0x4b: | |
12382 | case 0x4c: | |
12383 | case 0x4d: | |
12384 | case 0x4e: | |
12385 | case 0x4f: | |
f16cd0d5 L |
12386 | if (address_mode == mode_64bit) |
12387 | newrex = *codep; | |
12388 | else | |
12389 | return 1; | |
12390 | last_rex_prefix = i; | |
52b15da3 | 12391 | break; |
252b5132 RH |
12392 | case 0xf3: |
12393 | prefixes |= PREFIX_REPZ; | |
f16cd0d5 | 12394 | last_repz_prefix = i; |
252b5132 RH |
12395 | break; |
12396 | case 0xf2: | |
12397 | prefixes |= PREFIX_REPNZ; | |
f16cd0d5 | 12398 | last_repnz_prefix = i; |
252b5132 RH |
12399 | break; |
12400 | case 0xf0: | |
12401 | prefixes |= PREFIX_LOCK; | |
f16cd0d5 | 12402 | last_lock_prefix = i; |
252b5132 RH |
12403 | break; |
12404 | case 0x2e: | |
12405 | prefixes |= PREFIX_CS; | |
f16cd0d5 | 12406 | last_seg_prefix = i; |
285ca992 | 12407 | active_seg_prefix = PREFIX_CS; |
252b5132 RH |
12408 | break; |
12409 | case 0x36: | |
12410 | prefixes |= PREFIX_SS; | |
f16cd0d5 | 12411 | last_seg_prefix = i; |
285ca992 | 12412 | active_seg_prefix = PREFIX_SS; |
252b5132 RH |
12413 | break; |
12414 | case 0x3e: | |
12415 | prefixes |= PREFIX_DS; | |
f16cd0d5 | 12416 | last_seg_prefix = i; |
285ca992 | 12417 | active_seg_prefix = PREFIX_DS; |
252b5132 RH |
12418 | break; |
12419 | case 0x26: | |
12420 | prefixes |= PREFIX_ES; | |
f16cd0d5 | 12421 | last_seg_prefix = i; |
285ca992 | 12422 | active_seg_prefix = PREFIX_ES; |
252b5132 RH |
12423 | break; |
12424 | case 0x64: | |
12425 | prefixes |= PREFIX_FS; | |
f16cd0d5 | 12426 | last_seg_prefix = i; |
285ca992 | 12427 | active_seg_prefix = PREFIX_FS; |
252b5132 RH |
12428 | break; |
12429 | case 0x65: | |
12430 | prefixes |= PREFIX_GS; | |
f16cd0d5 | 12431 | last_seg_prefix = i; |
285ca992 | 12432 | active_seg_prefix = PREFIX_GS; |
252b5132 RH |
12433 | break; |
12434 | case 0x66: | |
12435 | prefixes |= PREFIX_DATA; | |
f16cd0d5 | 12436 | last_data_prefix = i; |
252b5132 RH |
12437 | break; |
12438 | case 0x67: | |
12439 | prefixes |= PREFIX_ADDR; | |
f16cd0d5 | 12440 | last_addr_prefix = i; |
252b5132 | 12441 | break; |
5076851f | 12442 | case FWAIT_OPCODE: |
252b5132 RH |
12443 | /* fwait is really an instruction. If there are prefixes |
12444 | before the fwait, they belong to the fwait, *not* to the | |
12445 | following instruction. */ | |
d9949a36 | 12446 | fwait_prefix = i; |
3e7d61b2 | 12447 | if (prefixes || rex) |
252b5132 RH |
12448 | { |
12449 | prefixes |= PREFIX_FWAIT; | |
12450 | codep++; | |
6c067bbb RM |
12451 | /* This ensures that the previous REX prefixes are noticed |
12452 | as unused prefixes, as in the return case below. */ | |
12453 | rex_used = rex; | |
f16cd0d5 | 12454 | return 1; |
252b5132 RH |
12455 | } |
12456 | prefixes = PREFIX_FWAIT; | |
12457 | break; | |
12458 | default: | |
f16cd0d5 | 12459 | return 1; |
252b5132 | 12460 | } |
52b15da3 JH |
12461 | /* Rex is ignored when followed by another prefix. */ |
12462 | if (rex) | |
12463 | { | |
3e7d61b2 | 12464 | rex_used = rex; |
f16cd0d5 | 12465 | return 1; |
52b15da3 | 12466 | } |
f16cd0d5 | 12467 | if (*codep != FWAIT_OPCODE) |
4e9ac44a | 12468 | all_prefixes[i++] = *codep; |
52b15da3 | 12469 | rex = newrex; |
252b5132 | 12470 | codep++; |
f16cd0d5 L |
12471 | length++; |
12472 | } | |
12473 | return 0; | |
12474 | } | |
12475 | ||
7d421014 ILT |
12476 | /* Return the name of the prefix byte PREF, or NULL if PREF is not a |
12477 | prefix byte. */ | |
12478 | ||
12479 | static const char * | |
26ca5450 | 12480 | prefix_name (int pref, int sizeflag) |
7d421014 | 12481 | { |
0003779b L |
12482 | static const char *rexes [16] = |
12483 | { | |
12484 | "rex", /* 0x40 */ | |
12485 | "rex.B", /* 0x41 */ | |
12486 | "rex.X", /* 0x42 */ | |
12487 | "rex.XB", /* 0x43 */ | |
12488 | "rex.R", /* 0x44 */ | |
12489 | "rex.RB", /* 0x45 */ | |
12490 | "rex.RX", /* 0x46 */ | |
12491 | "rex.RXB", /* 0x47 */ | |
12492 | "rex.W", /* 0x48 */ | |
12493 | "rex.WB", /* 0x49 */ | |
12494 | "rex.WX", /* 0x4a */ | |
12495 | "rex.WXB", /* 0x4b */ | |
12496 | "rex.WR", /* 0x4c */ | |
12497 | "rex.WRB", /* 0x4d */ | |
12498 | "rex.WRX", /* 0x4e */ | |
12499 | "rex.WRXB", /* 0x4f */ | |
12500 | }; | |
12501 | ||
7d421014 ILT |
12502 | switch (pref) |
12503 | { | |
52b15da3 JH |
12504 | /* REX prefixes family. */ |
12505 | case 0x40: | |
52b15da3 | 12506 | case 0x41: |
52b15da3 | 12507 | case 0x42: |
52b15da3 | 12508 | case 0x43: |
52b15da3 | 12509 | case 0x44: |
52b15da3 | 12510 | case 0x45: |
52b15da3 | 12511 | case 0x46: |
52b15da3 | 12512 | case 0x47: |
52b15da3 | 12513 | case 0x48: |
52b15da3 | 12514 | case 0x49: |
52b15da3 | 12515 | case 0x4a: |
52b15da3 | 12516 | case 0x4b: |
52b15da3 | 12517 | case 0x4c: |
52b15da3 | 12518 | case 0x4d: |
52b15da3 | 12519 | case 0x4e: |
52b15da3 | 12520 | case 0x4f: |
0003779b | 12521 | return rexes [pref - 0x40]; |
7d421014 ILT |
12522 | case 0xf3: |
12523 | return "repz"; | |
12524 | case 0xf2: | |
12525 | return "repnz"; | |
12526 | case 0xf0: | |
12527 | return "lock"; | |
12528 | case 0x2e: | |
12529 | return "cs"; | |
12530 | case 0x36: | |
12531 | return "ss"; | |
12532 | case 0x3e: | |
12533 | return "ds"; | |
12534 | case 0x26: | |
12535 | return "es"; | |
12536 | case 0x64: | |
12537 | return "fs"; | |
12538 | case 0x65: | |
12539 | return "gs"; | |
12540 | case 0x66: | |
12541 | return (sizeflag & DFLAG) ? "data16" : "data32"; | |
12542 | case 0x67: | |
cb712a9e | 12543 | if (address_mode == mode_64bit) |
db6eb5be | 12544 | return (sizeflag & AFLAG) ? "addr32" : "addr64"; |
c1a64871 | 12545 | else |
2888cb7a | 12546 | return (sizeflag & AFLAG) ? "addr16" : "addr32"; |
7d421014 ILT |
12547 | case FWAIT_OPCODE: |
12548 | return "fwait"; | |
f16cd0d5 L |
12549 | case REP_PREFIX: |
12550 | return "rep"; | |
42164a71 L |
12551 | case XACQUIRE_PREFIX: |
12552 | return "xacquire"; | |
12553 | case XRELEASE_PREFIX: | |
12554 | return "xrelease"; | |
7e8b059b L |
12555 | case BND_PREFIX: |
12556 | return "bnd"; | |
04ef582a L |
12557 | case NOTRACK_PREFIX: |
12558 | return "notrack"; | |
7d421014 ILT |
12559 | default: |
12560 | return NULL; | |
12561 | } | |
12562 | } | |
12563 | ||
ce518a5f L |
12564 | static char op_out[MAX_OPERANDS][100]; |
12565 | static int op_ad, op_index[MAX_OPERANDS]; | |
1d9f512f | 12566 | static int two_source_ops; |
ce518a5f L |
12567 | static bfd_vma op_address[MAX_OPERANDS]; |
12568 | static bfd_vma op_riprel[MAX_OPERANDS]; | |
52b15da3 | 12569 | static bfd_vma start_pc; |
ce518a5f | 12570 | |
252b5132 RH |
12571 | /* |
12572 | * On the 386's of 1988, the maximum length of an instruction is 15 bytes. | |
12573 | * (see topic "Redundant prefixes" in the "Differences from 8086" | |
12574 | * section of the "Virtual 8086 Mode" chapter.) | |
12575 | * 'pc' should be the address of this instruction, it will | |
12576 | * be used to print the target address if this is a relative jump or call | |
12577 | * The function returns the length of this instruction in bytes. | |
12578 | */ | |
12579 | ||
252b5132 | 12580 | static char intel_syntax; |
9d141669 | 12581 | static char intel_mnemonic = !SYSV386_COMPAT; |
252b5132 RH |
12582 | static char open_char; |
12583 | static char close_char; | |
12584 | static char separator_char; | |
12585 | static char scale_char; | |
12586 | ||
5db04b09 L |
12587 | enum x86_64_isa |
12588 | { | |
12589 | amd64 = 0, | |
12590 | intel64 | |
12591 | }; | |
12592 | ||
12593 | static enum x86_64_isa isa64; | |
12594 | ||
e396998b AM |
12595 | /* Here for backwards compatibility. When gdb stops using |
12596 | print_insn_i386_att and print_insn_i386_intel these functions can | |
12597 | disappear, and print_insn_i386 be merged into print_insn. */ | |
252b5132 | 12598 | int |
26ca5450 | 12599 | print_insn_i386_att (bfd_vma pc, disassemble_info *info) |
252b5132 RH |
12600 | { |
12601 | intel_syntax = 0; | |
e396998b AM |
12602 | |
12603 | return print_insn (pc, info); | |
252b5132 RH |
12604 | } |
12605 | ||
12606 | int | |
26ca5450 | 12607 | print_insn_i386_intel (bfd_vma pc, disassemble_info *info) |
252b5132 RH |
12608 | { |
12609 | intel_syntax = 1; | |
e396998b AM |
12610 | |
12611 | return print_insn (pc, info); | |
252b5132 RH |
12612 | } |
12613 | ||
e396998b | 12614 | int |
26ca5450 | 12615 | print_insn_i386 (bfd_vma pc, disassemble_info *info) |
e396998b AM |
12616 | { |
12617 | intel_syntax = -1; | |
12618 | ||
12619 | return print_insn (pc, info); | |
12620 | } | |
12621 | ||
f59a29b9 L |
12622 | void |
12623 | print_i386_disassembler_options (FILE *stream) | |
12624 | { | |
12625 | fprintf (stream, _("\n\ | |
12626 | The following i386/x86-64 specific disassembler options are supported for use\n\ | |
12627 | with the -M switch (multiple options should be separated by commas):\n")); | |
12628 | ||
12629 | fprintf (stream, _(" x86-64 Disassemble in 64bit mode\n")); | |
12630 | fprintf (stream, _(" i386 Disassemble in 32bit mode\n")); | |
12631 | fprintf (stream, _(" i8086 Disassemble in 16bit mode\n")); | |
12632 | fprintf (stream, _(" att Display instruction in AT&T syntax\n")); | |
12633 | fprintf (stream, _(" intel Display instruction in Intel syntax\n")); | |
9d141669 L |
12634 | fprintf (stream, _(" att-mnemonic\n" |
12635 | " Display instruction in AT&T mnemonic\n")); | |
12636 | fprintf (stream, _(" intel-mnemonic\n" | |
12637 | " Display instruction in Intel mnemonic\n")); | |
f59a29b9 L |
12638 | fprintf (stream, _(" addr64 Assume 64bit address size\n")); |
12639 | fprintf (stream, _(" addr32 Assume 32bit address size\n")); | |
12640 | fprintf (stream, _(" addr16 Assume 16bit address size\n")); | |
12641 | fprintf (stream, _(" data32 Assume 32bit data size\n")); | |
12642 | fprintf (stream, _(" data16 Assume 16bit data size\n")); | |
12643 | fprintf (stream, _(" suffix Always display instruction suffix in AT&T syntax\n")); | |
5db04b09 L |
12644 | fprintf (stream, _(" amd64 Display instruction in AMD64 ISA\n")); |
12645 | fprintf (stream, _(" intel64 Display instruction in Intel64 ISA\n")); | |
f59a29b9 L |
12646 | } |
12647 | ||
592d1631 | 12648 | /* Bad opcode. */ |
bf890a93 | 12649 | static const struct dis386 bad_opcode = { "(bad)", { XX }, 0 }; |
592d1631 | 12650 | |
b844680a L |
12651 | /* Get a pointer to struct dis386 with a valid name. */ |
12652 | ||
12653 | static const struct dis386 * | |
8bb15339 | 12654 | get_valid_dis386 (const struct dis386 *dp, disassemble_info *info) |
b844680a | 12655 | { |
91d6fa6a | 12656 | int vindex, vex_table_index; |
b844680a L |
12657 | |
12658 | if (dp->name != NULL) | |
12659 | return dp; | |
12660 | ||
12661 | switch (dp->op[0].bytemode) | |
12662 | { | |
1ceb70f8 L |
12663 | case USE_REG_TABLE: |
12664 | dp = ®_table[dp->op[1].bytemode][modrm.reg]; | |
12665 | break; | |
12666 | ||
12667 | case USE_MOD_TABLE: | |
91d6fa6a NC |
12668 | vindex = modrm.mod == 0x3 ? 1 : 0; |
12669 | dp = &mod_table[dp->op[1].bytemode][vindex]; | |
1ceb70f8 L |
12670 | break; |
12671 | ||
12672 | case USE_RM_TABLE: | |
12673 | dp = &rm_table[dp->op[1].bytemode][modrm.rm]; | |
b844680a L |
12674 | break; |
12675 | ||
4e7d34a6 | 12676 | case USE_PREFIX_TABLE: |
c0f3af97 | 12677 | if (need_vex) |
b844680a | 12678 | { |
c0f3af97 L |
12679 | /* The prefix in VEX is implicit. */ |
12680 | switch (vex.prefix) | |
12681 | { | |
12682 | case 0: | |
91d6fa6a | 12683 | vindex = 0; |
c0f3af97 L |
12684 | break; |
12685 | case REPE_PREFIX_OPCODE: | |
91d6fa6a | 12686 | vindex = 1; |
c0f3af97 L |
12687 | break; |
12688 | case DATA_PREFIX_OPCODE: | |
91d6fa6a | 12689 | vindex = 2; |
c0f3af97 L |
12690 | break; |
12691 | case REPNE_PREFIX_OPCODE: | |
91d6fa6a | 12692 | vindex = 3; |
c0f3af97 L |
12693 | break; |
12694 | default: | |
12695 | abort (); | |
12696 | break; | |
12697 | } | |
b844680a | 12698 | } |
7bb15c6f | 12699 | else |
b844680a | 12700 | { |
285ca992 L |
12701 | int last_prefix = -1; |
12702 | int prefix = 0; | |
91d6fa6a | 12703 | vindex = 0; |
285ca992 L |
12704 | /* We check PREFIX_REPNZ and PREFIX_REPZ before PREFIX_DATA. |
12705 | When there are multiple PREFIX_REPNZ and PREFIX_REPZ, the | |
12706 | last one wins. */ | |
12707 | if ((prefixes & (PREFIX_REPZ | PREFIX_REPNZ)) != 0) | |
b844680a | 12708 | { |
285ca992 | 12709 | if (last_repz_prefix > last_repnz_prefix) |
c0f3af97 | 12710 | { |
285ca992 L |
12711 | vindex = 1; |
12712 | prefix = PREFIX_REPZ; | |
12713 | last_prefix = last_repz_prefix; | |
c0f3af97 L |
12714 | } |
12715 | else | |
b844680a | 12716 | { |
285ca992 L |
12717 | vindex = 3; |
12718 | prefix = PREFIX_REPNZ; | |
12719 | last_prefix = last_repnz_prefix; | |
b844680a | 12720 | } |
285ca992 | 12721 | |
507bd325 L |
12722 | /* Check if prefix should be ignored. */ |
12723 | if ((((prefix_table[dp->op[1].bytemode][vindex].prefix_requirement | |
12724 | & PREFIX_IGNORED) >> PREFIX_IGNORED_SHIFT) | |
12725 | & prefix) != 0) | |
285ca992 L |
12726 | vindex = 0; |
12727 | } | |
12728 | ||
12729 | if (vindex == 0 && (prefixes & PREFIX_DATA) != 0) | |
12730 | { | |
12731 | vindex = 2; | |
12732 | prefix = PREFIX_DATA; | |
12733 | last_prefix = last_data_prefix; | |
12734 | } | |
12735 | ||
12736 | if (vindex != 0) | |
12737 | { | |
12738 | used_prefixes |= prefix; | |
12739 | all_prefixes[last_prefix] = 0; | |
b844680a L |
12740 | } |
12741 | } | |
91d6fa6a | 12742 | dp = &prefix_table[dp->op[1].bytemode][vindex]; |
b844680a L |
12743 | break; |
12744 | ||
4e7d34a6 | 12745 | case USE_X86_64_TABLE: |
91d6fa6a NC |
12746 | vindex = address_mode == mode_64bit ? 1 : 0; |
12747 | dp = &x86_64_table[dp->op[1].bytemode][vindex]; | |
b844680a L |
12748 | break; |
12749 | ||
4e7d34a6 | 12750 | case USE_3BYTE_TABLE: |
8bb15339 | 12751 | FETCH_DATA (info, codep + 2); |
91d6fa6a NC |
12752 | vindex = *codep++; |
12753 | dp = &three_byte_table[dp->op[1].bytemode][vindex]; | |
285ca992 | 12754 | end_codep = codep; |
8bb15339 L |
12755 | modrm.mod = (*codep >> 6) & 3; |
12756 | modrm.reg = (*codep >> 3) & 7; | |
12757 | modrm.rm = *codep & 7; | |
12758 | break; | |
12759 | ||
c0f3af97 L |
12760 | case USE_VEX_LEN_TABLE: |
12761 | if (!need_vex) | |
12762 | abort (); | |
12763 | ||
12764 | switch (vex.length) | |
12765 | { | |
12766 | case 128: | |
91d6fa6a | 12767 | vindex = 0; |
c0f3af97 L |
12768 | break; |
12769 | case 256: | |
91d6fa6a | 12770 | vindex = 1; |
c0f3af97 L |
12771 | break; |
12772 | default: | |
12773 | abort (); | |
12774 | break; | |
12775 | } | |
12776 | ||
91d6fa6a | 12777 | dp = &vex_len_table[dp->op[1].bytemode][vindex]; |
c0f3af97 L |
12778 | break; |
12779 | ||
f88c9eb0 SP |
12780 | case USE_XOP_8F_TABLE: |
12781 | FETCH_DATA (info, codep + 3); | |
12782 | /* All bits in the REX prefix are ignored. */ | |
12783 | rex_ignored = rex; | |
12784 | rex = ~(*codep >> 5) & 0x7; | |
12785 | ||
12786 | /* VEX_TABLE_INDEX is the mmmmm part of the XOP byte 1 "RCB.mmmmm". */ | |
12787 | switch ((*codep & 0x1f)) | |
12788 | { | |
12789 | default: | |
f07af43e L |
12790 | dp = &bad_opcode; |
12791 | return dp; | |
5dd85c99 SP |
12792 | case 0x8: |
12793 | vex_table_index = XOP_08; | |
12794 | break; | |
f88c9eb0 SP |
12795 | case 0x9: |
12796 | vex_table_index = XOP_09; | |
12797 | break; | |
12798 | case 0xa: | |
12799 | vex_table_index = XOP_0A; | |
12800 | break; | |
12801 | } | |
12802 | codep++; | |
12803 | vex.w = *codep & 0x80; | |
12804 | if (vex.w && address_mode == mode_64bit) | |
12805 | rex |= REX_W; | |
12806 | ||
12807 | vex.register_specifier = (~(*codep >> 3)) & 0xf; | |
abfcb414 | 12808 | if (address_mode != mode_64bit) |
f07af43e | 12809 | { |
abfcb414 AP |
12810 | /* In 16/32-bit mode REX_B is silently ignored. */ |
12811 | rex &= ~REX_B; | |
f07af43e | 12812 | } |
f88c9eb0 SP |
12813 | |
12814 | vex.length = (*codep & 0x4) ? 256 : 128; | |
12815 | switch ((*codep & 0x3)) | |
12816 | { | |
12817 | case 0: | |
12818 | vex.prefix = 0; | |
12819 | break; | |
12820 | case 1: | |
12821 | vex.prefix = DATA_PREFIX_OPCODE; | |
12822 | break; | |
12823 | case 2: | |
12824 | vex.prefix = REPE_PREFIX_OPCODE; | |
12825 | break; | |
12826 | case 3: | |
12827 | vex.prefix = REPNE_PREFIX_OPCODE; | |
12828 | break; | |
12829 | } | |
12830 | need_vex = 1; | |
12831 | need_vex_reg = 1; | |
12832 | codep++; | |
91d6fa6a NC |
12833 | vindex = *codep++; |
12834 | dp = &xop_table[vex_table_index][vindex]; | |
c48244a5 | 12835 | |
285ca992 | 12836 | end_codep = codep; |
c48244a5 SP |
12837 | FETCH_DATA (info, codep + 1); |
12838 | modrm.mod = (*codep >> 6) & 3; | |
12839 | modrm.reg = (*codep >> 3) & 7; | |
12840 | modrm.rm = *codep & 7; | |
f88c9eb0 SP |
12841 | break; |
12842 | ||
c0f3af97 | 12843 | case USE_VEX_C4_TABLE: |
43234a1e | 12844 | /* VEX prefix. */ |
c0f3af97 L |
12845 | FETCH_DATA (info, codep + 3); |
12846 | /* All bits in the REX prefix are ignored. */ | |
12847 | rex_ignored = rex; | |
12848 | rex = ~(*codep >> 5) & 0x7; | |
12849 | switch ((*codep & 0x1f)) | |
12850 | { | |
12851 | default: | |
f07af43e L |
12852 | dp = &bad_opcode; |
12853 | return dp; | |
c0f3af97 | 12854 | case 0x1: |
f88c9eb0 | 12855 | vex_table_index = VEX_0F; |
c0f3af97 L |
12856 | break; |
12857 | case 0x2: | |
f88c9eb0 | 12858 | vex_table_index = VEX_0F38; |
c0f3af97 L |
12859 | break; |
12860 | case 0x3: | |
f88c9eb0 | 12861 | vex_table_index = VEX_0F3A; |
c0f3af97 L |
12862 | break; |
12863 | } | |
12864 | codep++; | |
12865 | vex.w = *codep & 0x80; | |
9889cbb1 | 12866 | if (address_mode == mode_64bit) |
f07af43e | 12867 | { |
9889cbb1 L |
12868 | if (vex.w) |
12869 | rex |= REX_W; | |
9889cbb1 L |
12870 | } |
12871 | else | |
12872 | { | |
12873 | /* For the 3-byte VEX prefix in 32-bit mode, the REX_B bit | |
12874 | is ignored, other REX bits are 0 and the highest bit in | |
5f847646 | 12875 | VEX.vvvv is also ignored (but we mustn't clear it here). */ |
9889cbb1 | 12876 | rex = 0; |
f07af43e | 12877 | } |
5f847646 | 12878 | vex.register_specifier = (~(*codep >> 3)) & 0xf; |
c0f3af97 L |
12879 | vex.length = (*codep & 0x4) ? 256 : 128; |
12880 | switch ((*codep & 0x3)) | |
12881 | { | |
12882 | case 0: | |
12883 | vex.prefix = 0; | |
12884 | break; | |
12885 | case 1: | |
12886 | vex.prefix = DATA_PREFIX_OPCODE; | |
12887 | break; | |
12888 | case 2: | |
12889 | vex.prefix = REPE_PREFIX_OPCODE; | |
12890 | break; | |
12891 | case 3: | |
12892 | vex.prefix = REPNE_PREFIX_OPCODE; | |
12893 | break; | |
12894 | } | |
12895 | need_vex = 1; | |
12896 | need_vex_reg = 1; | |
12897 | codep++; | |
91d6fa6a NC |
12898 | vindex = *codep++; |
12899 | dp = &vex_table[vex_table_index][vindex]; | |
285ca992 | 12900 | end_codep = codep; |
53c4d625 JB |
12901 | /* There is no MODRM byte for VEX0F 77. */ |
12902 | if (vex_table_index != VEX_0F || vindex != 0x77) | |
c0f3af97 L |
12903 | { |
12904 | FETCH_DATA (info, codep + 1); | |
12905 | modrm.mod = (*codep >> 6) & 3; | |
12906 | modrm.reg = (*codep >> 3) & 7; | |
12907 | modrm.rm = *codep & 7; | |
12908 | } | |
12909 | break; | |
12910 | ||
12911 | case USE_VEX_C5_TABLE: | |
43234a1e | 12912 | /* VEX prefix. */ |
c0f3af97 L |
12913 | FETCH_DATA (info, codep + 2); |
12914 | /* All bits in the REX prefix are ignored. */ | |
12915 | rex_ignored = rex; | |
12916 | rex = (*codep & 0x80) ? 0 : REX_R; | |
12917 | ||
9889cbb1 L |
12918 | /* For the 2-byte VEX prefix in 32-bit mode, the highest bit in |
12919 | VEX.vvvv is 1. */ | |
c0f3af97 | 12920 | vex.register_specifier = (~(*codep >> 3)) & 0xf; |
759a05ce | 12921 | vex.w = 0; |
c0f3af97 L |
12922 | vex.length = (*codep & 0x4) ? 256 : 128; |
12923 | switch ((*codep & 0x3)) | |
12924 | { | |
12925 | case 0: | |
12926 | vex.prefix = 0; | |
12927 | break; | |
12928 | case 1: | |
12929 | vex.prefix = DATA_PREFIX_OPCODE; | |
12930 | break; | |
12931 | case 2: | |
12932 | vex.prefix = REPE_PREFIX_OPCODE; | |
12933 | break; | |
12934 | case 3: | |
12935 | vex.prefix = REPNE_PREFIX_OPCODE; | |
12936 | break; | |
12937 | } | |
12938 | need_vex = 1; | |
12939 | need_vex_reg = 1; | |
12940 | codep++; | |
91d6fa6a NC |
12941 | vindex = *codep++; |
12942 | dp = &vex_table[dp->op[1].bytemode][vindex]; | |
285ca992 | 12943 | end_codep = codep; |
53c4d625 JB |
12944 | /* There is no MODRM byte for VEX 77. */ |
12945 | if (vindex != 0x77) | |
c0f3af97 L |
12946 | { |
12947 | FETCH_DATA (info, codep + 1); | |
12948 | modrm.mod = (*codep >> 6) & 3; | |
12949 | modrm.reg = (*codep >> 3) & 7; | |
12950 | modrm.rm = *codep & 7; | |
12951 | } | |
12952 | break; | |
12953 | ||
9e30b8e0 L |
12954 | case USE_VEX_W_TABLE: |
12955 | if (!need_vex) | |
12956 | abort (); | |
12957 | ||
12958 | dp = &vex_w_table[dp->op[1].bytemode][vex.w ? 1 : 0]; | |
12959 | break; | |
12960 | ||
43234a1e L |
12961 | case USE_EVEX_TABLE: |
12962 | two_source_ops = 0; | |
12963 | /* EVEX prefix. */ | |
12964 | vex.evex = 1; | |
12965 | FETCH_DATA (info, codep + 4); | |
12966 | /* All bits in the REX prefix are ignored. */ | |
12967 | rex_ignored = rex; | |
12968 | /* The first byte after 0x62. */ | |
12969 | rex = ~(*codep >> 5) & 0x7; | |
12970 | vex.r = *codep & 0x10; | |
12971 | switch ((*codep & 0xf)) | |
12972 | { | |
12973 | default: | |
12974 | return &bad_opcode; | |
12975 | case 0x1: | |
12976 | vex_table_index = EVEX_0F; | |
12977 | break; | |
12978 | case 0x2: | |
12979 | vex_table_index = EVEX_0F38; | |
12980 | break; | |
12981 | case 0x3: | |
12982 | vex_table_index = EVEX_0F3A; | |
12983 | break; | |
12984 | } | |
12985 | ||
12986 | /* The second byte after 0x62. */ | |
12987 | codep++; | |
12988 | vex.w = *codep & 0x80; | |
12989 | if (vex.w && address_mode == mode_64bit) | |
12990 | rex |= REX_W; | |
12991 | ||
12992 | vex.register_specifier = (~(*codep >> 3)) & 0xf; | |
43234a1e L |
12993 | |
12994 | /* The U bit. */ | |
12995 | if (!(*codep & 0x4)) | |
12996 | return &bad_opcode; | |
12997 | ||
12998 | switch ((*codep & 0x3)) | |
12999 | { | |
13000 | case 0: | |
13001 | vex.prefix = 0; | |
13002 | break; | |
13003 | case 1: | |
13004 | vex.prefix = DATA_PREFIX_OPCODE; | |
13005 | break; | |
13006 | case 2: | |
13007 | vex.prefix = REPE_PREFIX_OPCODE; | |
13008 | break; | |
13009 | case 3: | |
13010 | vex.prefix = REPNE_PREFIX_OPCODE; | |
13011 | break; | |
13012 | } | |
13013 | ||
13014 | /* The third byte after 0x62. */ | |
13015 | codep++; | |
13016 | ||
13017 | /* Remember the static rounding bits. */ | |
13018 | vex.ll = (*codep >> 5) & 3; | |
13019 | vex.b = (*codep & 0x10) != 0; | |
13020 | ||
13021 | vex.v = *codep & 0x8; | |
13022 | vex.mask_register_specifier = *codep & 0x7; | |
13023 | vex.zeroing = *codep & 0x80; | |
13024 | ||
5f847646 JB |
13025 | if (address_mode != mode_64bit) |
13026 | { | |
13027 | /* In 16/32-bit mode silently ignore following bits. */ | |
13028 | rex &= ~REX_B; | |
13029 | vex.r = 1; | |
13030 | vex.v = 1; | |
13031 | } | |
13032 | ||
43234a1e L |
13033 | need_vex = 1; |
13034 | need_vex_reg = 1; | |
13035 | codep++; | |
13036 | vindex = *codep++; | |
13037 | dp = &evex_table[vex_table_index][vindex]; | |
285ca992 | 13038 | end_codep = codep; |
43234a1e L |
13039 | FETCH_DATA (info, codep + 1); |
13040 | modrm.mod = (*codep >> 6) & 3; | |
13041 | modrm.reg = (*codep >> 3) & 7; | |
13042 | modrm.rm = *codep & 7; | |
13043 | ||
13044 | /* Set vector length. */ | |
13045 | if (modrm.mod == 3 && vex.b) | |
13046 | vex.length = 512; | |
13047 | else | |
13048 | { | |
13049 | switch (vex.ll) | |
13050 | { | |
13051 | case 0x0: | |
13052 | vex.length = 128; | |
13053 | break; | |
13054 | case 0x1: | |
13055 | vex.length = 256; | |
13056 | break; | |
13057 | case 0x2: | |
13058 | vex.length = 512; | |
13059 | break; | |
13060 | default: | |
13061 | return &bad_opcode; | |
13062 | } | |
13063 | } | |
13064 | break; | |
13065 | ||
592d1631 L |
13066 | case 0: |
13067 | dp = &bad_opcode; | |
13068 | break; | |
13069 | ||
b844680a | 13070 | default: |
d34b5006 | 13071 | abort (); |
b844680a L |
13072 | } |
13073 | ||
13074 | if (dp->name != NULL) | |
13075 | return dp; | |
13076 | else | |
8bb15339 | 13077 | return get_valid_dis386 (dp, info); |
b844680a L |
13078 | } |
13079 | ||
dfc8cf43 | 13080 | static void |
55cf16e1 | 13081 | get_sib (disassemble_info *info, int sizeflag) |
dfc8cf43 L |
13082 | { |
13083 | /* If modrm.mod == 3, operand must be register. */ | |
13084 | if (need_modrm | |
55cf16e1 | 13085 | && ((sizeflag & AFLAG) || address_mode == mode_64bit) |
dfc8cf43 L |
13086 | && modrm.mod != 3 |
13087 | && modrm.rm == 4) | |
13088 | { | |
13089 | FETCH_DATA (info, codep + 2); | |
13090 | sib.index = (codep [1] >> 3) & 7; | |
13091 | sib.scale = (codep [1] >> 6) & 3; | |
13092 | sib.base = codep [1] & 7; | |
13093 | } | |
13094 | } | |
13095 | ||
e396998b | 13096 | static int |
26ca5450 | 13097 | print_insn (bfd_vma pc, disassemble_info *info) |
252b5132 | 13098 | { |
2da11e11 | 13099 | const struct dis386 *dp; |
252b5132 | 13100 | int i; |
ce518a5f | 13101 | char *op_txt[MAX_OPERANDS]; |
252b5132 | 13102 | int needcomma; |
df18fdba | 13103 | int sizeflag, orig_sizeflag; |
e396998b | 13104 | const char *p; |
252b5132 | 13105 | struct dis_private priv; |
f16cd0d5 | 13106 | int prefix_length; |
252b5132 | 13107 | |
d7921315 L |
13108 | priv.orig_sizeflag = AFLAG | DFLAG; |
13109 | if ((info->mach & bfd_mach_i386_i386) != 0) | |
cb712a9e | 13110 | address_mode = mode_32bit; |
2da11e11 | 13111 | else if (info->mach == bfd_mach_i386_i8086) |
d7921315 L |
13112 | { |
13113 | address_mode = mode_16bit; | |
13114 | priv.orig_sizeflag = 0; | |
13115 | } | |
2da11e11 | 13116 | else |
d7921315 L |
13117 | address_mode = mode_64bit; |
13118 | ||
13119 | if (intel_syntax == (char) -1) | |
13120 | intel_syntax = (info->mach & bfd_mach_i386_intel_syntax) != 0; | |
e396998b AM |
13121 | |
13122 | for (p = info->disassembler_options; p != NULL; ) | |
13123 | { | |
5db04b09 L |
13124 | if (CONST_STRNEQ (p, "amd64")) |
13125 | isa64 = amd64; | |
13126 | else if (CONST_STRNEQ (p, "intel64")) | |
13127 | isa64 = intel64; | |
13128 | else if (CONST_STRNEQ (p, "x86-64")) | |
e396998b | 13129 | { |
cb712a9e | 13130 | address_mode = mode_64bit; |
e396998b AM |
13131 | priv.orig_sizeflag = AFLAG | DFLAG; |
13132 | } | |
0112cd26 | 13133 | else if (CONST_STRNEQ (p, "i386")) |
e396998b | 13134 | { |
cb712a9e | 13135 | address_mode = mode_32bit; |
e396998b AM |
13136 | priv.orig_sizeflag = AFLAG | DFLAG; |
13137 | } | |
0112cd26 | 13138 | else if (CONST_STRNEQ (p, "i8086")) |
e396998b | 13139 | { |
cb712a9e | 13140 | address_mode = mode_16bit; |
e396998b AM |
13141 | priv.orig_sizeflag = 0; |
13142 | } | |
0112cd26 | 13143 | else if (CONST_STRNEQ (p, "intel")) |
e396998b AM |
13144 | { |
13145 | intel_syntax = 1; | |
9d141669 L |
13146 | if (CONST_STRNEQ (p + 5, "-mnemonic")) |
13147 | intel_mnemonic = 1; | |
e396998b | 13148 | } |
0112cd26 | 13149 | else if (CONST_STRNEQ (p, "att")) |
e396998b AM |
13150 | { |
13151 | intel_syntax = 0; | |
9d141669 L |
13152 | if (CONST_STRNEQ (p + 3, "-mnemonic")) |
13153 | intel_mnemonic = 0; | |
e396998b | 13154 | } |
0112cd26 | 13155 | else if (CONST_STRNEQ (p, "addr")) |
e396998b | 13156 | { |
f59a29b9 L |
13157 | if (address_mode == mode_64bit) |
13158 | { | |
13159 | if (p[4] == '3' && p[5] == '2') | |
13160 | priv.orig_sizeflag &= ~AFLAG; | |
13161 | else if (p[4] == '6' && p[5] == '4') | |
13162 | priv.orig_sizeflag |= AFLAG; | |
13163 | } | |
13164 | else | |
13165 | { | |
13166 | if (p[4] == '1' && p[5] == '6') | |
13167 | priv.orig_sizeflag &= ~AFLAG; | |
13168 | else if (p[4] == '3' && p[5] == '2') | |
13169 | priv.orig_sizeflag |= AFLAG; | |
13170 | } | |
e396998b | 13171 | } |
0112cd26 | 13172 | else if (CONST_STRNEQ (p, "data")) |
e396998b AM |
13173 | { |
13174 | if (p[4] == '1' && p[5] == '6') | |
13175 | priv.orig_sizeflag &= ~DFLAG; | |
13176 | else if (p[4] == '3' && p[5] == '2') | |
13177 | priv.orig_sizeflag |= DFLAG; | |
13178 | } | |
0112cd26 | 13179 | else if (CONST_STRNEQ (p, "suffix")) |
e396998b AM |
13180 | priv.orig_sizeflag |= SUFFIX_ALWAYS; |
13181 | ||
13182 | p = strchr (p, ','); | |
13183 | if (p != NULL) | |
13184 | p++; | |
13185 | } | |
13186 | ||
c0f92bf9 L |
13187 | if (address_mode == mode_64bit && sizeof (bfd_vma) < 8) |
13188 | { | |
13189 | (*info->fprintf_func) (info->stream, | |
13190 | _("64-bit address is disabled")); | |
13191 | return -1; | |
13192 | } | |
13193 | ||
e396998b AM |
13194 | if (intel_syntax) |
13195 | { | |
13196 | names64 = intel_names64; | |
13197 | names32 = intel_names32; | |
13198 | names16 = intel_names16; | |
13199 | names8 = intel_names8; | |
13200 | names8rex = intel_names8rex; | |
13201 | names_seg = intel_names_seg; | |
b9733481 | 13202 | names_mm = intel_names_mm; |
7e8b059b | 13203 | names_bnd = intel_names_bnd; |
b9733481 L |
13204 | names_xmm = intel_names_xmm; |
13205 | names_ymm = intel_names_ymm; | |
43234a1e | 13206 | names_zmm = intel_names_zmm; |
db51cc60 L |
13207 | index64 = intel_index64; |
13208 | index32 = intel_index32; | |
43234a1e | 13209 | names_mask = intel_names_mask; |
e396998b AM |
13210 | index16 = intel_index16; |
13211 | open_char = '['; | |
13212 | close_char = ']'; | |
13213 | separator_char = '+'; | |
13214 | scale_char = '*'; | |
13215 | } | |
13216 | else | |
13217 | { | |
13218 | names64 = att_names64; | |
13219 | names32 = att_names32; | |
13220 | names16 = att_names16; | |
13221 | names8 = att_names8; | |
13222 | names8rex = att_names8rex; | |
13223 | names_seg = att_names_seg; | |
b9733481 | 13224 | names_mm = att_names_mm; |
7e8b059b | 13225 | names_bnd = att_names_bnd; |
b9733481 L |
13226 | names_xmm = att_names_xmm; |
13227 | names_ymm = att_names_ymm; | |
43234a1e | 13228 | names_zmm = att_names_zmm; |
db51cc60 L |
13229 | index64 = att_index64; |
13230 | index32 = att_index32; | |
43234a1e | 13231 | names_mask = att_names_mask; |
e396998b AM |
13232 | index16 = att_index16; |
13233 | open_char = '('; | |
13234 | close_char = ')'; | |
13235 | separator_char = ','; | |
13236 | scale_char = ','; | |
13237 | } | |
2da11e11 | 13238 | |
4fe53c98 | 13239 | /* The output looks better if we put 7 bytes on a line, since that |
8a9036a4 L |
13240 | puts most long word instructions on a single line. Use 8 bytes |
13241 | for Intel L1OM. */ | |
d7921315 | 13242 | if ((info->mach & bfd_mach_l1om) != 0) |
8a9036a4 L |
13243 | info->bytes_per_line = 8; |
13244 | else | |
13245 | info->bytes_per_line = 7; | |
252b5132 | 13246 | |
26ca5450 | 13247 | info->private_data = &priv; |
252b5132 RH |
13248 | priv.max_fetched = priv.the_buffer; |
13249 | priv.insn_start = pc; | |
252b5132 RH |
13250 | |
13251 | obuf[0] = 0; | |
ce518a5f L |
13252 | for (i = 0; i < MAX_OPERANDS; ++i) |
13253 | { | |
13254 | op_out[i][0] = 0; | |
13255 | op_index[i] = -1; | |
13256 | } | |
252b5132 RH |
13257 | |
13258 | the_info = info; | |
13259 | start_pc = pc; | |
e396998b AM |
13260 | start_codep = priv.the_buffer; |
13261 | codep = priv.the_buffer; | |
252b5132 | 13262 | |
8df14d78 | 13263 | if (OPCODES_SIGSETJMP (priv.bailout) != 0) |
5076851f | 13264 | { |
7d421014 ILT |
13265 | const char *name; |
13266 | ||
5076851f | 13267 | /* Getting here means we tried for data but didn't get it. That |
e396998b AM |
13268 | means we have an incomplete instruction of some sort. Just |
13269 | print the first byte as a prefix or a .byte pseudo-op. */ | |
13270 | if (codep > priv.the_buffer) | |
5076851f | 13271 | { |
e396998b | 13272 | name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag); |
7d421014 ILT |
13273 | if (name != NULL) |
13274 | (*info->fprintf_func) (info->stream, "%s", name); | |
13275 | else | |
5076851f | 13276 | { |
7d421014 ILT |
13277 | /* Just print the first byte as a .byte instruction. */ |
13278 | (*info->fprintf_func) (info->stream, ".byte 0x%x", | |
e396998b | 13279 | (unsigned int) priv.the_buffer[0]); |
5076851f | 13280 | } |
5076851f | 13281 | |
7d421014 | 13282 | return 1; |
5076851f ILT |
13283 | } |
13284 | ||
13285 | return -1; | |
13286 | } | |
13287 | ||
52b15da3 | 13288 | obufp = obuf; |
f16cd0d5 L |
13289 | sizeflag = priv.orig_sizeflag; |
13290 | ||
13291 | if (!ckprefix () || rex_used) | |
13292 | { | |
13293 | /* Too many prefixes or unused REX prefixes. */ | |
13294 | for (i = 0; | |
f6dd4781 | 13295 | i < (int) ARRAY_SIZE (all_prefixes) && all_prefixes[i]; |
f16cd0d5 | 13296 | i++) |
de882298 | 13297 | (*info->fprintf_func) (info->stream, "%s%s", |
6c067bbb | 13298 | i == 0 ? "" : " ", |
f16cd0d5 | 13299 | prefix_name (all_prefixes[i], sizeflag)); |
de882298 | 13300 | return i; |
f16cd0d5 | 13301 | } |
252b5132 RH |
13302 | |
13303 | insn_codep = codep; | |
13304 | ||
13305 | FETCH_DATA (info, codep + 1); | |
13306 | two_source_ops = (*codep == 0x62) || (*codep == 0xc8); | |
13307 | ||
3e7d61b2 | 13308 | if (((prefixes & PREFIX_FWAIT) |
f16cd0d5 | 13309 | && ((*codep < 0xd8) || (*codep > 0xdf)))) |
252b5132 | 13310 | { |
86a80a50 | 13311 | /* Handle prefixes before fwait. */ |
d9949a36 | 13312 | for (i = 0; i < fwait_prefix && all_prefixes[i]; |
86a80a50 L |
13313 | i++) |
13314 | (*info->fprintf_func) (info->stream, "%s ", | |
13315 | prefix_name (all_prefixes[i], sizeflag)); | |
f16cd0d5 | 13316 | (*info->fprintf_func) (info->stream, "fwait"); |
86a80a50 | 13317 | return i + 1; |
252b5132 RH |
13318 | } |
13319 | ||
252b5132 RH |
13320 | if (*codep == 0x0f) |
13321 | { | |
eec0f4ca | 13322 | unsigned char threebyte; |
5f40e14d JS |
13323 | |
13324 | codep++; | |
13325 | FETCH_DATA (info, codep + 1); | |
13326 | threebyte = *codep; | |
eec0f4ca | 13327 | dp = &dis386_twobyte[threebyte]; |
252b5132 | 13328 | need_modrm = twobyte_has_modrm[*codep]; |
eec0f4ca | 13329 | codep++; |
252b5132 RH |
13330 | } |
13331 | else | |
13332 | { | |
6439fc28 | 13333 | dp = &dis386[*codep]; |
252b5132 | 13334 | need_modrm = onebyte_has_modrm[*codep]; |
eec0f4ca | 13335 | codep++; |
252b5132 | 13336 | } |
246c51aa | 13337 | |
df18fdba L |
13338 | /* Save sizeflag for printing the extra prefixes later before updating |
13339 | it for mnemonic and operand processing. The prefix names depend | |
13340 | only on the address mode. */ | |
13341 | orig_sizeflag = sizeflag; | |
c608c12e | 13342 | if (prefixes & PREFIX_ADDR) |
df18fdba | 13343 | sizeflag ^= AFLAG; |
b844680a | 13344 | if ((prefixes & PREFIX_DATA)) |
df18fdba | 13345 | sizeflag ^= DFLAG; |
3ffd33cf | 13346 | |
285ca992 | 13347 | end_codep = codep; |
8bb15339 | 13348 | if (need_modrm) |
252b5132 RH |
13349 | { |
13350 | FETCH_DATA (info, codep + 1); | |
7967e09e L |
13351 | modrm.mod = (*codep >> 6) & 3; |
13352 | modrm.reg = (*codep >> 3) & 7; | |
13353 | modrm.rm = *codep & 7; | |
252b5132 RH |
13354 | } |
13355 | ||
42d5f9c6 MS |
13356 | need_vex = 0; |
13357 | need_vex_reg = 0; | |
13358 | vex_w_done = 0; | |
43234a1e | 13359 | vex.evex = 0; |
55b126d4 | 13360 | |
ce518a5f | 13361 | if (dp->name == NULL && dp->op[0].bytemode == FLOATCODE) |
252b5132 | 13362 | { |
55cf16e1 | 13363 | get_sib (info, sizeflag); |
252b5132 RH |
13364 | dofloat (sizeflag); |
13365 | } | |
13366 | else | |
13367 | { | |
8bb15339 | 13368 | dp = get_valid_dis386 (dp, info); |
b844680a | 13369 | if (dp != NULL && putop (dp->name, sizeflag) == 0) |
6c067bbb | 13370 | { |
55cf16e1 | 13371 | get_sib (info, sizeflag); |
ce518a5f L |
13372 | for (i = 0; i < MAX_OPERANDS; ++i) |
13373 | { | |
246c51aa | 13374 | obufp = op_out[i]; |
ce518a5f L |
13375 | op_ad = MAX_OPERANDS - 1 - i; |
13376 | if (dp->op[i].rtn) | |
13377 | (*dp->op[i].rtn) (dp->op[i].bytemode, sizeflag); | |
43234a1e L |
13378 | /* For EVEX instruction after the last operand masking |
13379 | should be printed. */ | |
13380 | if (i == 0 && vex.evex) | |
13381 | { | |
13382 | /* Don't print {%k0}. */ | |
13383 | if (vex.mask_register_specifier) | |
13384 | { | |
13385 | oappend ("{"); | |
13386 | oappend (names_mask[vex.mask_register_specifier]); | |
13387 | oappend ("}"); | |
13388 | } | |
13389 | if (vex.zeroing) | |
13390 | oappend ("{z}"); | |
13391 | } | |
ce518a5f | 13392 | } |
6439fc28 | 13393 | } |
252b5132 RH |
13394 | } |
13395 | ||
d869730d | 13396 | /* Check if the REX prefix is used. */ |
e2e6193d | 13397 | if (rex_ignored == 0 && (rex ^ rex_used) == 0 && last_rex_prefix >= 0) |
f16cd0d5 L |
13398 | all_prefixes[last_rex_prefix] = 0; |
13399 | ||
5e6718e4 | 13400 | /* Check if the SEG prefix is used. */ |
f16cd0d5 L |
13401 | if ((prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS | PREFIX_ES |
13402 | | PREFIX_FS | PREFIX_GS)) != 0 | |
285ca992 | 13403 | && (used_prefixes & active_seg_prefix) != 0) |
f16cd0d5 L |
13404 | all_prefixes[last_seg_prefix] = 0; |
13405 | ||
5e6718e4 | 13406 | /* Check if the ADDR prefix is used. */ |
f16cd0d5 L |
13407 | if ((prefixes & PREFIX_ADDR) != 0 |
13408 | && (used_prefixes & PREFIX_ADDR) != 0) | |
13409 | all_prefixes[last_addr_prefix] = 0; | |
13410 | ||
df18fdba L |
13411 | /* Check if the DATA prefix is used. */ |
13412 | if ((prefixes & PREFIX_DATA) != 0 | |
13413 | && (used_prefixes & PREFIX_DATA) != 0) | |
13414 | all_prefixes[last_data_prefix] = 0; | |
f16cd0d5 | 13415 | |
df18fdba | 13416 | /* Print the extra prefixes. */ |
f16cd0d5 | 13417 | prefix_length = 0; |
f310f33d | 13418 | for (i = 0; i < (int) ARRAY_SIZE (all_prefixes); i++) |
f16cd0d5 L |
13419 | if (all_prefixes[i]) |
13420 | { | |
13421 | const char *name; | |
df18fdba | 13422 | name = prefix_name (all_prefixes[i], orig_sizeflag); |
f16cd0d5 L |
13423 | if (name == NULL) |
13424 | abort (); | |
13425 | prefix_length += strlen (name) + 1; | |
13426 | (*info->fprintf_func) (info->stream, "%s ", name); | |
13427 | } | |
b844680a | 13428 | |
285ca992 L |
13429 | /* If the mandatory PREFIX_REPZ/PREFIX_REPNZ/PREFIX_DATA prefix is |
13430 | unused, opcode is invalid. Since the PREFIX_DATA prefix may be | |
13431 | used by putop and MMX/SSE operand and may be overriden by the | |
13432 | PREFIX_REPZ/PREFIX_REPNZ fix, we check the PREFIX_DATA prefix | |
13433 | separately. */ | |
3888916d | 13434 | if (dp->prefix_requirement == PREFIX_OPCODE |
285ca992 L |
13435 | && dp != &bad_opcode |
13436 | && (((prefixes | |
13437 | & (PREFIX_REPZ | PREFIX_REPNZ)) != 0 | |
13438 | && (used_prefixes | |
13439 | & (PREFIX_REPZ | PREFIX_REPNZ)) == 0) | |
13440 | || ((((prefixes | |
13441 | & (PREFIX_REPZ | PREFIX_REPNZ | PREFIX_DATA)) | |
13442 | == PREFIX_DATA) | |
13443 | && (used_prefixes & PREFIX_DATA) == 0)))) | |
13444 | { | |
13445 | (*info->fprintf_func) (info->stream, "(bad)"); | |
13446 | return end_codep - priv.the_buffer; | |
13447 | } | |
13448 | ||
f16cd0d5 L |
13449 | /* Check maximum code length. */ |
13450 | if ((codep - start_codep) > MAX_CODE_LENGTH) | |
13451 | { | |
13452 | (*info->fprintf_func) (info->stream, "(bad)"); | |
13453 | return MAX_CODE_LENGTH; | |
13454 | } | |
b844680a | 13455 | |
ea397f5b | 13456 | obufp = mnemonicendp; |
f16cd0d5 | 13457 | for (i = strlen (obuf) + prefix_length; i < 6; i++) |
252b5132 RH |
13458 | oappend (" "); |
13459 | oappend (" "); | |
13460 | (*info->fprintf_func) (info->stream, "%s", obuf); | |
13461 | ||
13462 | /* The enter and bound instructions are printed with operands in the same | |
13463 | order as the intel book; everything else is printed in reverse order. */ | |
2da11e11 | 13464 | if (intel_syntax || two_source_ops) |
252b5132 | 13465 | { |
185b1163 L |
13466 | bfd_vma riprel; |
13467 | ||
ce518a5f | 13468 | for (i = 0; i < MAX_OPERANDS; ++i) |
6c067bbb | 13469 | op_txt[i] = op_out[i]; |
246c51aa | 13470 | |
3a8547d2 JB |
13471 | if (intel_syntax && dp && dp->op[2].rtn == OP_Rounding |
13472 | && dp->op[3].rtn == OP_E && dp->op[4].rtn == NULL) | |
13473 | { | |
13474 | op_txt[2] = op_out[3]; | |
13475 | op_txt[3] = op_out[2]; | |
13476 | } | |
13477 | ||
ce518a5f L |
13478 | for (i = 0; i < (MAX_OPERANDS >> 1); ++i) |
13479 | { | |
6c067bbb RM |
13480 | op_ad = op_index[i]; |
13481 | op_index[i] = op_index[MAX_OPERANDS - 1 - i]; | |
13482 | op_index[MAX_OPERANDS - 1 - i] = op_ad; | |
185b1163 L |
13483 | riprel = op_riprel[i]; |
13484 | op_riprel[i] = op_riprel [MAX_OPERANDS - 1 - i]; | |
13485 | op_riprel[MAX_OPERANDS - 1 - i] = riprel; | |
ce518a5f | 13486 | } |
252b5132 RH |
13487 | } |
13488 | else | |
13489 | { | |
ce518a5f | 13490 | for (i = 0; i < MAX_OPERANDS; ++i) |
6c067bbb | 13491 | op_txt[MAX_OPERANDS - 1 - i] = op_out[i]; |
050dfa73 MM |
13492 | } |
13493 | ||
ce518a5f L |
13494 | needcomma = 0; |
13495 | for (i = 0; i < MAX_OPERANDS; ++i) | |
13496 | if (*op_txt[i]) | |
13497 | { | |
13498 | if (needcomma) | |
13499 | (*info->fprintf_func) (info->stream, ","); | |
13500 | if (op_index[i] != -1 && !op_riprel[i]) | |
13501 | (*info->print_address_func) ((bfd_vma) op_address[op_index[i]], info); | |
13502 | else | |
13503 | (*info->fprintf_func) (info->stream, "%s", op_txt[i]); | |
13504 | needcomma = 1; | |
13505 | } | |
050dfa73 | 13506 | |
ce518a5f | 13507 | for (i = 0; i < MAX_OPERANDS; i++) |
52b15da3 JH |
13508 | if (op_index[i] != -1 && op_riprel[i]) |
13509 | { | |
13510 | (*info->fprintf_func) (info->stream, " # "); | |
4fd7268a | 13511 | (*info->print_address_func) ((bfd_vma) (start_pc + (codep - start_codep) |
52b15da3 | 13512 | + op_address[op_index[i]]), info); |
185b1163 | 13513 | break; |
52b15da3 | 13514 | } |
e396998b | 13515 | return codep - priv.the_buffer; |
252b5132 RH |
13516 | } |
13517 | ||
6439fc28 | 13518 | static const char *float_mem[] = { |
252b5132 | 13519 | /* d8 */ |
7c52e0e8 L |
13520 | "fadd{s|}", |
13521 | "fmul{s|}", | |
13522 | "fcom{s|}", | |
13523 | "fcomp{s|}", | |
13524 | "fsub{s|}", | |
13525 | "fsubr{s|}", | |
13526 | "fdiv{s|}", | |
13527 | "fdivr{s|}", | |
db6eb5be | 13528 | /* d9 */ |
7c52e0e8 | 13529 | "fld{s|}", |
252b5132 | 13530 | "(bad)", |
7c52e0e8 L |
13531 | "fst{s|}", |
13532 | "fstp{s|}", | |
9306ca4a | 13533 | "fldenvIC", |
252b5132 | 13534 | "fldcw", |
9306ca4a | 13535 | "fNstenvIC", |
252b5132 RH |
13536 | "fNstcw", |
13537 | /* da */ | |
7c52e0e8 L |
13538 | "fiadd{l|}", |
13539 | "fimul{l|}", | |
13540 | "ficom{l|}", | |
13541 | "ficomp{l|}", | |
13542 | "fisub{l|}", | |
13543 | "fisubr{l|}", | |
13544 | "fidiv{l|}", | |
13545 | "fidivr{l|}", | |
252b5132 | 13546 | /* db */ |
7c52e0e8 L |
13547 | "fild{l|}", |
13548 | "fisttp{l|}", | |
13549 | "fist{l|}", | |
13550 | "fistp{l|}", | |
252b5132 | 13551 | "(bad)", |
6439fc28 | 13552 | "fld{t||t|}", |
252b5132 | 13553 | "(bad)", |
6439fc28 | 13554 | "fstp{t||t|}", |
252b5132 | 13555 | /* dc */ |
7c52e0e8 L |
13556 | "fadd{l|}", |
13557 | "fmul{l|}", | |
13558 | "fcom{l|}", | |
13559 | "fcomp{l|}", | |
13560 | "fsub{l|}", | |
13561 | "fsubr{l|}", | |
13562 | "fdiv{l|}", | |
13563 | "fdivr{l|}", | |
252b5132 | 13564 | /* dd */ |
7c52e0e8 L |
13565 | "fld{l|}", |
13566 | "fisttp{ll|}", | |
13567 | "fst{l||}", | |
13568 | "fstp{l|}", | |
9306ca4a | 13569 | "frstorIC", |
252b5132 | 13570 | "(bad)", |
9306ca4a | 13571 | "fNsaveIC", |
252b5132 RH |
13572 | "fNstsw", |
13573 | /* de */ | |
ac465521 JB |
13574 | "fiadd{s|}", |
13575 | "fimul{s|}", | |
13576 | "ficom{s|}", | |
13577 | "ficomp{s|}", | |
13578 | "fisub{s|}", | |
13579 | "fisubr{s|}", | |
13580 | "fidiv{s|}", | |
13581 | "fidivr{s|}", | |
252b5132 | 13582 | /* df */ |
ac465521 JB |
13583 | "fild{s|}", |
13584 | "fisttp{s|}", | |
13585 | "fist{s|}", | |
13586 | "fistp{s|}", | |
252b5132 | 13587 | "fbld", |
7c52e0e8 | 13588 | "fild{ll|}", |
252b5132 | 13589 | "fbstp", |
7c52e0e8 | 13590 | "fistp{ll|}", |
1d9f512f AM |
13591 | }; |
13592 | ||
13593 | static const unsigned char float_mem_mode[] = { | |
13594 | /* d8 */ | |
13595 | d_mode, | |
13596 | d_mode, | |
13597 | d_mode, | |
13598 | d_mode, | |
13599 | d_mode, | |
13600 | d_mode, | |
13601 | d_mode, | |
13602 | d_mode, | |
13603 | /* d9 */ | |
13604 | d_mode, | |
13605 | 0, | |
13606 | d_mode, | |
13607 | d_mode, | |
13608 | 0, | |
13609 | w_mode, | |
13610 | 0, | |
13611 | w_mode, | |
13612 | /* da */ | |
13613 | d_mode, | |
13614 | d_mode, | |
13615 | d_mode, | |
13616 | d_mode, | |
13617 | d_mode, | |
13618 | d_mode, | |
13619 | d_mode, | |
13620 | d_mode, | |
13621 | /* db */ | |
13622 | d_mode, | |
13623 | d_mode, | |
13624 | d_mode, | |
13625 | d_mode, | |
13626 | 0, | |
9306ca4a | 13627 | t_mode, |
1d9f512f | 13628 | 0, |
9306ca4a | 13629 | t_mode, |
1d9f512f AM |
13630 | /* dc */ |
13631 | q_mode, | |
13632 | q_mode, | |
13633 | q_mode, | |
13634 | q_mode, | |
13635 | q_mode, | |
13636 | q_mode, | |
13637 | q_mode, | |
13638 | q_mode, | |
13639 | /* dd */ | |
13640 | q_mode, | |
13641 | q_mode, | |
13642 | q_mode, | |
13643 | q_mode, | |
13644 | 0, | |
13645 | 0, | |
13646 | 0, | |
13647 | w_mode, | |
13648 | /* de */ | |
13649 | w_mode, | |
13650 | w_mode, | |
13651 | w_mode, | |
13652 | w_mode, | |
13653 | w_mode, | |
13654 | w_mode, | |
13655 | w_mode, | |
13656 | w_mode, | |
13657 | /* df */ | |
13658 | w_mode, | |
13659 | w_mode, | |
13660 | w_mode, | |
13661 | w_mode, | |
9306ca4a | 13662 | t_mode, |
1d9f512f | 13663 | q_mode, |
9306ca4a | 13664 | t_mode, |
1d9f512f | 13665 | q_mode |
252b5132 RH |
13666 | }; |
13667 | ||
ce518a5f L |
13668 | #define ST { OP_ST, 0 } |
13669 | #define STi { OP_STi, 0 } | |
252b5132 | 13670 | |
48c97fa1 L |
13671 | #define FGRPd9_2 NULL, { { NULL, 1 } }, 0 |
13672 | #define FGRPd9_4 NULL, { { NULL, 2 } }, 0 | |
13673 | #define FGRPd9_5 NULL, { { NULL, 3 } }, 0 | |
13674 | #define FGRPd9_6 NULL, { { NULL, 4 } }, 0 | |
13675 | #define FGRPd9_7 NULL, { { NULL, 5 } }, 0 | |
13676 | #define FGRPda_5 NULL, { { NULL, 6 } }, 0 | |
13677 | #define FGRPdb_4 NULL, { { NULL, 7 } }, 0 | |
13678 | #define FGRPde_3 NULL, { { NULL, 8 } }, 0 | |
13679 | #define FGRPdf_4 NULL, { { NULL, 9 } }, 0 | |
252b5132 | 13680 | |
2da11e11 | 13681 | static const struct dis386 float_reg[][8] = { |
252b5132 RH |
13682 | /* d8 */ |
13683 | { | |
bf890a93 IT |
13684 | { "fadd", { ST, STi }, 0 }, |
13685 | { "fmul", { ST, STi }, 0 }, | |
13686 | { "fcom", { STi }, 0 }, | |
13687 | { "fcomp", { STi }, 0 }, | |
13688 | { "fsub", { ST, STi }, 0 }, | |
13689 | { "fsubr", { ST, STi }, 0 }, | |
13690 | { "fdiv", { ST, STi }, 0 }, | |
13691 | { "fdivr", { ST, STi }, 0 }, | |
252b5132 RH |
13692 | }, |
13693 | /* d9 */ | |
13694 | { | |
bf890a93 IT |
13695 | { "fld", { STi }, 0 }, |
13696 | { "fxch", { STi }, 0 }, | |
252b5132 | 13697 | { FGRPd9_2 }, |
592d1631 | 13698 | { Bad_Opcode }, |
252b5132 RH |
13699 | { FGRPd9_4 }, |
13700 | { FGRPd9_5 }, | |
13701 | { FGRPd9_6 }, | |
13702 | { FGRPd9_7 }, | |
13703 | }, | |
13704 | /* da */ | |
13705 | { | |
bf890a93 IT |
13706 | { "fcmovb", { ST, STi }, 0 }, |
13707 | { "fcmove", { ST, STi }, 0 }, | |
13708 | { "fcmovbe",{ ST, STi }, 0 }, | |
13709 | { "fcmovu", { ST, STi }, 0 }, | |
592d1631 | 13710 | { Bad_Opcode }, |
252b5132 | 13711 | { FGRPda_5 }, |
592d1631 L |
13712 | { Bad_Opcode }, |
13713 | { Bad_Opcode }, | |
252b5132 RH |
13714 | }, |
13715 | /* db */ | |
13716 | { | |
bf890a93 IT |
13717 | { "fcmovnb",{ ST, STi }, 0 }, |
13718 | { "fcmovne",{ ST, STi }, 0 }, | |
13719 | { "fcmovnbe",{ ST, STi }, 0 }, | |
13720 | { "fcmovnu",{ ST, STi }, 0 }, | |
252b5132 | 13721 | { FGRPdb_4 }, |
bf890a93 IT |
13722 | { "fucomi", { ST, STi }, 0 }, |
13723 | { "fcomi", { ST, STi }, 0 }, | |
592d1631 | 13724 | { Bad_Opcode }, |
252b5132 RH |
13725 | }, |
13726 | /* dc */ | |
13727 | { | |
bf890a93 IT |
13728 | { "fadd", { STi, ST }, 0 }, |
13729 | { "fmul", { STi, ST }, 0 }, | |
592d1631 L |
13730 | { Bad_Opcode }, |
13731 | { Bad_Opcode }, | |
bf890a93 IT |
13732 | { "fsub!M", { STi, ST }, 0 }, |
13733 | { "fsubM", { STi, ST }, 0 }, | |
13734 | { "fdiv!M", { STi, ST }, 0 }, | |
13735 | { "fdivM", { STi, ST }, 0 }, | |
252b5132 RH |
13736 | }, |
13737 | /* dd */ | |
13738 | { | |
bf890a93 | 13739 | { "ffree", { STi }, 0 }, |
592d1631 | 13740 | { Bad_Opcode }, |
bf890a93 IT |
13741 | { "fst", { STi }, 0 }, |
13742 | { "fstp", { STi }, 0 }, | |
13743 | { "fucom", { STi }, 0 }, | |
13744 | { "fucomp", { STi }, 0 }, | |
592d1631 L |
13745 | { Bad_Opcode }, |
13746 | { Bad_Opcode }, | |
252b5132 RH |
13747 | }, |
13748 | /* de */ | |
13749 | { | |
bf890a93 IT |
13750 | { "faddp", { STi, ST }, 0 }, |
13751 | { "fmulp", { STi, ST }, 0 }, | |
592d1631 | 13752 | { Bad_Opcode }, |
252b5132 | 13753 | { FGRPde_3 }, |
bf890a93 IT |
13754 | { "fsub!Mp", { STi, ST }, 0 }, |
13755 | { "fsubMp", { STi, ST }, 0 }, | |
13756 | { "fdiv!Mp", { STi, ST }, 0 }, | |
13757 | { "fdivMp", { STi, ST }, 0 }, | |
252b5132 RH |
13758 | }, |
13759 | /* df */ | |
13760 | { | |
bf890a93 | 13761 | { "ffreep", { STi }, 0 }, |
592d1631 L |
13762 | { Bad_Opcode }, |
13763 | { Bad_Opcode }, | |
13764 | { Bad_Opcode }, | |
252b5132 | 13765 | { FGRPdf_4 }, |
bf890a93 IT |
13766 | { "fucomip", { ST, STi }, 0 }, |
13767 | { "fcomip", { ST, STi }, 0 }, | |
592d1631 | 13768 | { Bad_Opcode }, |
252b5132 RH |
13769 | }, |
13770 | }; | |
13771 | ||
252b5132 | 13772 | static char *fgrps[][8] = { |
48c97fa1 L |
13773 | /* Bad opcode 0 */ |
13774 | { | |
13775 | "(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13776 | }, | |
13777 | ||
13778 | /* d9_2 1 */ | |
252b5132 RH |
13779 | { |
13780 | "fnop","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13781 | }, | |
13782 | ||
48c97fa1 | 13783 | /* d9_4 2 */ |
252b5132 RH |
13784 | { |
13785 | "fchs","fabs","(bad)","(bad)","ftst","fxam","(bad)","(bad)", | |
13786 | }, | |
13787 | ||
48c97fa1 | 13788 | /* d9_5 3 */ |
252b5132 RH |
13789 | { |
13790 | "fld1","fldl2t","fldl2e","fldpi","fldlg2","fldln2","fldz","(bad)", | |
13791 | }, | |
13792 | ||
48c97fa1 | 13793 | /* d9_6 4 */ |
252b5132 RH |
13794 | { |
13795 | "f2xm1","fyl2x","fptan","fpatan","fxtract","fprem1","fdecstp","fincstp", | |
13796 | }, | |
13797 | ||
48c97fa1 | 13798 | /* d9_7 5 */ |
252b5132 RH |
13799 | { |
13800 | "fprem","fyl2xp1","fsqrt","fsincos","frndint","fscale","fsin","fcos", | |
13801 | }, | |
13802 | ||
48c97fa1 | 13803 | /* da_5 6 */ |
252b5132 RH |
13804 | { |
13805 | "(bad)","fucompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13806 | }, | |
13807 | ||
48c97fa1 | 13808 | /* db_4 7 */ |
252b5132 | 13809 | { |
309d3373 JB |
13810 | "fNeni(8087 only)","fNdisi(8087 only)","fNclex","fNinit", |
13811 | "fNsetpm(287 only)","frstpm(287 only)","(bad)","(bad)", | |
252b5132 RH |
13812 | }, |
13813 | ||
48c97fa1 | 13814 | /* de_3 8 */ |
252b5132 RH |
13815 | { |
13816 | "(bad)","fcompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13817 | }, | |
13818 | ||
48c97fa1 | 13819 | /* df_4 9 */ |
252b5132 RH |
13820 | { |
13821 | "fNstsw","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13822 | }, | |
13823 | }; | |
13824 | ||
b6169b20 L |
13825 | static void |
13826 | swap_operand (void) | |
13827 | { | |
13828 | mnemonicendp[0] = '.'; | |
13829 | mnemonicendp[1] = 's'; | |
13830 | mnemonicendp += 2; | |
13831 | } | |
13832 | ||
b844680a L |
13833 | static void |
13834 | OP_Skip_MODRM (int bytemode ATTRIBUTE_UNUSED, | |
13835 | int sizeflag ATTRIBUTE_UNUSED) | |
13836 | { | |
13837 | /* Skip mod/rm byte. */ | |
13838 | MODRM_CHECK; | |
13839 | codep++; | |
13840 | } | |
13841 | ||
252b5132 | 13842 | static void |
26ca5450 | 13843 | dofloat (int sizeflag) |
252b5132 | 13844 | { |
2da11e11 | 13845 | const struct dis386 *dp; |
252b5132 RH |
13846 | unsigned char floatop; |
13847 | ||
13848 | floatop = codep[-1]; | |
13849 | ||
7967e09e | 13850 | if (modrm.mod != 3) |
252b5132 | 13851 | { |
7967e09e | 13852 | int fp_indx = (floatop - 0xd8) * 8 + modrm.reg; |
1d9f512f AM |
13853 | |
13854 | putop (float_mem[fp_indx], sizeflag); | |
ce518a5f | 13855 | obufp = op_out[0]; |
6e50d963 | 13856 | op_ad = 2; |
1d9f512f | 13857 | OP_E (float_mem_mode[fp_indx], sizeflag); |
252b5132 RH |
13858 | return; |
13859 | } | |
6608db57 | 13860 | /* Skip mod/rm byte. */ |
4bba6815 | 13861 | MODRM_CHECK; |
252b5132 RH |
13862 | codep++; |
13863 | ||
7967e09e | 13864 | dp = &float_reg[floatop - 0xd8][modrm.reg]; |
252b5132 RH |
13865 | if (dp->name == NULL) |
13866 | { | |
7967e09e | 13867 | putop (fgrps[dp->op[0].bytemode][modrm.rm], sizeflag); |
252b5132 | 13868 | |
6608db57 | 13869 | /* Instruction fnstsw is only one with strange arg. */ |
252b5132 | 13870 | if (floatop == 0xdf && codep[-1] == 0xe0) |
ce518a5f | 13871 | strcpy (op_out[0], names16[0]); |
252b5132 RH |
13872 | } |
13873 | else | |
13874 | { | |
13875 | putop (dp->name, sizeflag); | |
13876 | ||
ce518a5f | 13877 | obufp = op_out[0]; |
6e50d963 | 13878 | op_ad = 2; |
ce518a5f L |
13879 | if (dp->op[0].rtn) |
13880 | (*dp->op[0].rtn) (dp->op[0].bytemode, sizeflag); | |
6e50d963 | 13881 | |
ce518a5f | 13882 | obufp = op_out[1]; |
6e50d963 | 13883 | op_ad = 1; |
ce518a5f L |
13884 | if (dp->op[1].rtn) |
13885 | (*dp->op[1].rtn) (dp->op[1].bytemode, sizeflag); | |
252b5132 RH |
13886 | } |
13887 | } | |
13888 | ||
9ce09ba2 RM |
13889 | /* Like oappend (below), but S is a string starting with '%'. |
13890 | In Intel syntax, the '%' is elided. */ | |
13891 | static void | |
13892 | oappend_maybe_intel (const char *s) | |
13893 | { | |
13894 | oappend (s + intel_syntax); | |
13895 | } | |
13896 | ||
252b5132 | 13897 | static void |
26ca5450 | 13898 | OP_ST (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 13899 | { |
9ce09ba2 | 13900 | oappend_maybe_intel ("%st"); |
252b5132 RH |
13901 | } |
13902 | ||
252b5132 | 13903 | static void |
26ca5450 | 13904 | OP_STi (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 13905 | { |
7967e09e | 13906 | sprintf (scratchbuf, "%%st(%d)", modrm.rm); |
9ce09ba2 | 13907 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
13908 | } |
13909 | ||
6608db57 | 13910 | /* Capital letters in template are macros. */ |
6439fc28 | 13911 | static int |
d3ce72d0 | 13912 | putop (const char *in_template, int sizeflag) |
252b5132 | 13913 | { |
2da11e11 | 13914 | const char *p; |
9306ca4a | 13915 | int alt = 0; |
9d141669 | 13916 | int cond = 1; |
98b528ac L |
13917 | unsigned int l = 0, len = 1; |
13918 | char last[4]; | |
13919 | ||
13920 | #define SAVE_LAST(c) \ | |
13921 | if (l < len && l < sizeof (last)) \ | |
13922 | last[l++] = c; \ | |
13923 | else \ | |
13924 | abort (); | |
252b5132 | 13925 | |
d3ce72d0 | 13926 | for (p = in_template; *p; p++) |
252b5132 RH |
13927 | { |
13928 | switch (*p) | |
13929 | { | |
13930 | default: | |
13931 | *obufp++ = *p; | |
13932 | break; | |
98b528ac L |
13933 | case '%': |
13934 | len++; | |
13935 | break; | |
9d141669 L |
13936 | case '!': |
13937 | cond = 0; | |
13938 | break; | |
6439fc28 | 13939 | case '{': |
6439fc28 | 13940 | if (intel_syntax) |
6439fc28 AM |
13941 | { |
13942 | while (*++p != '|') | |
7c52e0e8 L |
13943 | if (*p == '}' || *p == '\0') |
13944 | abort (); | |
6439fc28 | 13945 | } |
9306ca4a JB |
13946 | /* Fall through. */ |
13947 | case 'I': | |
13948 | alt = 1; | |
13949 | continue; | |
6439fc28 AM |
13950 | case '|': |
13951 | while (*++p != '}') | |
13952 | { | |
13953 | if (*p == '\0') | |
13954 | abort (); | |
13955 | } | |
13956 | break; | |
13957 | case '}': | |
13958 | break; | |
252b5132 | 13959 | case 'A': |
db6eb5be AM |
13960 | if (intel_syntax) |
13961 | break; | |
7967e09e | 13962 | if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS)) |
252b5132 RH |
13963 | *obufp++ = 'b'; |
13964 | break; | |
13965 | case 'B': | |
4b06377f L |
13966 | if (l == 0 && len == 1) |
13967 | { | |
13968 | case_B: | |
13969 | if (intel_syntax) | |
13970 | break; | |
13971 | if (sizeflag & SUFFIX_ALWAYS) | |
13972 | *obufp++ = 'b'; | |
13973 | } | |
13974 | else | |
13975 | { | |
13976 | if (l != 1 | |
13977 | || len != 2 | |
13978 | || last[0] != 'L') | |
13979 | { | |
13980 | SAVE_LAST (*p); | |
13981 | break; | |
13982 | } | |
13983 | ||
13984 | if (address_mode == mode_64bit | |
13985 | && !(prefixes & PREFIX_ADDR)) | |
13986 | { | |
13987 | *obufp++ = 'a'; | |
13988 | *obufp++ = 'b'; | |
13989 | *obufp++ = 's'; | |
13990 | } | |
13991 | ||
13992 | goto case_B; | |
13993 | } | |
252b5132 | 13994 | break; |
9306ca4a JB |
13995 | case 'C': |
13996 | if (intel_syntax && !alt) | |
13997 | break; | |
13998 | if ((prefixes & PREFIX_DATA) || (sizeflag & SUFFIX_ALWAYS)) | |
13999 | { | |
14000 | if (sizeflag & DFLAG) | |
14001 | *obufp++ = intel_syntax ? 'd' : 'l'; | |
14002 | else | |
14003 | *obufp++ = intel_syntax ? 'w' : 's'; | |
14004 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14005 | } | |
14006 | break; | |
ed7841b3 JB |
14007 | case 'D': |
14008 | if (intel_syntax || !(sizeflag & SUFFIX_ALWAYS)) | |
14009 | break; | |
161a04f6 | 14010 | USED_REX (REX_W); |
7967e09e | 14011 | if (modrm.mod == 3) |
ed7841b3 | 14012 | { |
161a04f6 | 14013 | if (rex & REX_W) |
ed7841b3 | 14014 | *obufp++ = 'q'; |
ed7841b3 | 14015 | else |
f16cd0d5 L |
14016 | { |
14017 | if (sizeflag & DFLAG) | |
14018 | *obufp++ = intel_syntax ? 'd' : 'l'; | |
14019 | else | |
14020 | *obufp++ = 'w'; | |
14021 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14022 | } | |
ed7841b3 JB |
14023 | } |
14024 | else | |
14025 | *obufp++ = 'w'; | |
14026 | break; | |
252b5132 | 14027 | case 'E': /* For jcxz/jecxz */ |
cb712a9e | 14028 | if (address_mode == mode_64bit) |
c1a64871 JH |
14029 | { |
14030 | if (sizeflag & AFLAG) | |
14031 | *obufp++ = 'r'; | |
14032 | else | |
14033 | *obufp++ = 'e'; | |
14034 | } | |
14035 | else | |
14036 | if (sizeflag & AFLAG) | |
14037 | *obufp++ = 'e'; | |
3ffd33cf AM |
14038 | used_prefixes |= (prefixes & PREFIX_ADDR); |
14039 | break; | |
14040 | case 'F': | |
db6eb5be AM |
14041 | if (intel_syntax) |
14042 | break; | |
e396998b | 14043 | if ((prefixes & PREFIX_ADDR) || (sizeflag & SUFFIX_ALWAYS)) |
3ffd33cf AM |
14044 | { |
14045 | if (sizeflag & AFLAG) | |
cb712a9e | 14046 | *obufp++ = address_mode == mode_64bit ? 'q' : 'l'; |
3ffd33cf | 14047 | else |
cb712a9e | 14048 | *obufp++ = address_mode == mode_64bit ? 'l' : 'w'; |
3ffd33cf AM |
14049 | used_prefixes |= (prefixes & PREFIX_ADDR); |
14050 | } | |
252b5132 | 14051 | break; |
52fd6d94 JB |
14052 | case 'G': |
14053 | if (intel_syntax || (obufp[-1] != 's' && !(sizeflag & SUFFIX_ALWAYS))) | |
14054 | break; | |
161a04f6 | 14055 | if ((rex & REX_W) || (sizeflag & DFLAG)) |
52fd6d94 JB |
14056 | *obufp++ = 'l'; |
14057 | else | |
14058 | *obufp++ = 'w'; | |
161a04f6 | 14059 | if (!(rex & REX_W)) |
52fd6d94 JB |
14060 | used_prefixes |= (prefixes & PREFIX_DATA); |
14061 | break; | |
5dd0794d | 14062 | case 'H': |
db6eb5be AM |
14063 | if (intel_syntax) |
14064 | break; | |
5dd0794d AM |
14065 | if ((prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_CS |
14066 | || (prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_DS) | |
14067 | { | |
14068 | used_prefixes |= prefixes & (PREFIX_CS | PREFIX_DS); | |
14069 | *obufp++ = ','; | |
14070 | *obufp++ = 'p'; | |
14071 | if (prefixes & PREFIX_DS) | |
14072 | *obufp++ = 't'; | |
14073 | else | |
14074 | *obufp++ = 'n'; | |
14075 | } | |
14076 | break; | |
9306ca4a JB |
14077 | case 'J': |
14078 | if (intel_syntax) | |
14079 | break; | |
14080 | *obufp++ = 'l'; | |
14081 | break; | |
42903f7f L |
14082 | case 'K': |
14083 | USED_REX (REX_W); | |
14084 | if (rex & REX_W) | |
14085 | *obufp++ = 'q'; | |
14086 | else | |
14087 | *obufp++ = 'd'; | |
14088 | break; | |
6dd5059a | 14089 | case 'Z': |
04d824a4 JB |
14090 | if (l != 0 || len != 1) |
14091 | { | |
14092 | if (l != 1 || len != 2 || last[0] != 'X') | |
14093 | { | |
14094 | SAVE_LAST (*p); | |
14095 | break; | |
14096 | } | |
14097 | if (!need_vex || !vex.evex) | |
14098 | abort (); | |
14099 | if (intel_syntax | |
14100 | || ((modrm.mod == 3 || vex.b) && !(sizeflag & SUFFIX_ALWAYS))) | |
14101 | break; | |
14102 | switch (vex.length) | |
14103 | { | |
14104 | case 128: | |
14105 | *obufp++ = 'x'; | |
14106 | break; | |
14107 | case 256: | |
14108 | *obufp++ = 'y'; | |
14109 | break; | |
14110 | case 512: | |
14111 | *obufp++ = 'z'; | |
14112 | break; | |
14113 | default: | |
14114 | abort (); | |
14115 | } | |
14116 | break; | |
14117 | } | |
6dd5059a L |
14118 | if (intel_syntax) |
14119 | break; | |
14120 | if (address_mode == mode_64bit && (sizeflag & SUFFIX_ALWAYS)) | |
14121 | { | |
14122 | *obufp++ = 'q'; | |
14123 | break; | |
14124 | } | |
14125 | /* Fall through. */ | |
98b528ac | 14126 | goto case_L; |
252b5132 | 14127 | case 'L': |
98b528ac L |
14128 | if (l != 0 || len != 1) |
14129 | { | |
14130 | SAVE_LAST (*p); | |
14131 | break; | |
14132 | } | |
14133 | case_L: | |
db6eb5be AM |
14134 | if (intel_syntax) |
14135 | break; | |
252b5132 RH |
14136 | if (sizeflag & SUFFIX_ALWAYS) |
14137 | *obufp++ = 'l'; | |
252b5132 | 14138 | break; |
9d141669 L |
14139 | case 'M': |
14140 | if (intel_mnemonic != cond) | |
14141 | *obufp++ = 'r'; | |
14142 | break; | |
252b5132 RH |
14143 | case 'N': |
14144 | if ((prefixes & PREFIX_FWAIT) == 0) | |
14145 | *obufp++ = 'n'; | |
7d421014 ILT |
14146 | else |
14147 | used_prefixes |= PREFIX_FWAIT; | |
252b5132 | 14148 | break; |
52b15da3 | 14149 | case 'O': |
161a04f6 L |
14150 | USED_REX (REX_W); |
14151 | if (rex & REX_W) | |
6439fc28 | 14152 | *obufp++ = 'o'; |
a35ca55a JB |
14153 | else if (intel_syntax && (sizeflag & DFLAG)) |
14154 | *obufp++ = 'q'; | |
52b15da3 JH |
14155 | else |
14156 | *obufp++ = 'd'; | |
161a04f6 | 14157 | if (!(rex & REX_W)) |
a35ca55a | 14158 | used_prefixes |= (prefixes & PREFIX_DATA); |
52b15da3 | 14159 | break; |
07f5af7d L |
14160 | case '&': |
14161 | if (!intel_syntax | |
14162 | && address_mode == mode_64bit | |
14163 | && isa64 == intel64) | |
14164 | { | |
14165 | *obufp++ = 'q'; | |
14166 | break; | |
14167 | } | |
14168 | /* Fall through. */ | |
6439fc28 | 14169 | case 'T': |
d9e3625e L |
14170 | if (!intel_syntax |
14171 | && address_mode == mode_64bit | |
7bb15c6f | 14172 | && ((sizeflag & DFLAG) || (rex & REX_W))) |
6439fc28 AM |
14173 | { |
14174 | *obufp++ = 'q'; | |
14175 | break; | |
14176 | } | |
6608db57 | 14177 | /* Fall through. */ |
4b4c407a | 14178 | goto case_P; |
252b5132 | 14179 | case 'P': |
4b4c407a | 14180 | if (l == 0 && len == 1) |
d9e3625e | 14181 | { |
4b4c407a L |
14182 | case_P: |
14183 | if (intel_syntax) | |
d9e3625e | 14184 | { |
4b4c407a L |
14185 | if ((rex & REX_W) == 0 |
14186 | && (prefixes & PREFIX_DATA)) | |
14187 | { | |
14188 | if ((sizeflag & DFLAG) == 0) | |
14189 | *obufp++ = 'w'; | |
14190 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14191 | } | |
14192 | break; | |
14193 | } | |
14194 | if ((prefixes & PREFIX_DATA) | |
14195 | || (rex & REX_W) | |
14196 | || (sizeflag & SUFFIX_ALWAYS)) | |
14197 | { | |
14198 | USED_REX (REX_W); | |
14199 | if (rex & REX_W) | |
14200 | *obufp++ = 'q'; | |
14201 | else | |
14202 | { | |
14203 | if (sizeflag & DFLAG) | |
14204 | *obufp++ = 'l'; | |
14205 | else | |
14206 | *obufp++ = 'w'; | |
14207 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14208 | } | |
d9e3625e | 14209 | } |
d9e3625e | 14210 | } |
4b4c407a | 14211 | else |
252b5132 | 14212 | { |
4b4c407a L |
14213 | if (l != 1 || len != 2 || last[0] != 'L') |
14214 | { | |
14215 | SAVE_LAST (*p); | |
14216 | break; | |
14217 | } | |
14218 | ||
14219 | if ((prefixes & PREFIX_DATA) | |
14220 | || (rex & REX_W) | |
14221 | || (sizeflag & SUFFIX_ALWAYS)) | |
52b15da3 | 14222 | { |
4b4c407a L |
14223 | USED_REX (REX_W); |
14224 | if (rex & REX_W) | |
14225 | *obufp++ = 'q'; | |
14226 | else | |
14227 | { | |
14228 | if (sizeflag & DFLAG) | |
14229 | *obufp++ = intel_syntax ? 'd' : 'l'; | |
14230 | else | |
14231 | *obufp++ = 'w'; | |
14232 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14233 | } | |
52b15da3 | 14234 | } |
252b5132 RH |
14235 | } |
14236 | break; | |
6439fc28 | 14237 | case 'U': |
db6eb5be AM |
14238 | if (intel_syntax) |
14239 | break; | |
7bb15c6f | 14240 | if (address_mode == mode_64bit |
6c067bbb | 14241 | && ((sizeflag & DFLAG) || (rex & REX_W))) |
6439fc28 | 14242 | { |
7967e09e | 14243 | if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS)) |
1a114b12 | 14244 | *obufp++ = 'q'; |
6439fc28 AM |
14245 | break; |
14246 | } | |
6608db57 | 14247 | /* Fall through. */ |
98b528ac | 14248 | goto case_Q; |
252b5132 | 14249 | case 'Q': |
98b528ac | 14250 | if (l == 0 && len == 1) |
252b5132 | 14251 | { |
98b528ac L |
14252 | case_Q: |
14253 | if (intel_syntax && !alt) | |
14254 | break; | |
14255 | USED_REX (REX_W); | |
14256 | if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS)) | |
52b15da3 | 14257 | { |
98b528ac L |
14258 | if (rex & REX_W) |
14259 | *obufp++ = 'q'; | |
52b15da3 | 14260 | else |
98b528ac L |
14261 | { |
14262 | if (sizeflag & DFLAG) | |
14263 | *obufp++ = intel_syntax ? 'd' : 'l'; | |
14264 | else | |
14265 | *obufp++ = 'w'; | |
f16cd0d5 | 14266 | used_prefixes |= (prefixes & PREFIX_DATA); |
98b528ac | 14267 | } |
52b15da3 | 14268 | } |
98b528ac L |
14269 | } |
14270 | else | |
14271 | { | |
14272 | if (l != 1 || len != 2 || last[0] != 'L') | |
14273 | { | |
14274 | SAVE_LAST (*p); | |
14275 | break; | |
14276 | } | |
14277 | if (intel_syntax | |
14278 | || (modrm.mod == 3 && !(sizeflag & SUFFIX_ALWAYS))) | |
14279 | break; | |
14280 | if ((rex & REX_W)) | |
14281 | { | |
14282 | USED_REX (REX_W); | |
14283 | *obufp++ = 'q'; | |
14284 | } | |
14285 | else | |
14286 | *obufp++ = 'l'; | |
252b5132 RH |
14287 | } |
14288 | break; | |
14289 | case 'R': | |
161a04f6 L |
14290 | USED_REX (REX_W); |
14291 | if (rex & REX_W) | |
a35ca55a JB |
14292 | *obufp++ = 'q'; |
14293 | else if (sizeflag & DFLAG) | |
c608c12e | 14294 | { |
a35ca55a | 14295 | if (intel_syntax) |
c608c12e | 14296 | *obufp++ = 'd'; |
c608c12e | 14297 | else |
a35ca55a | 14298 | *obufp++ = 'l'; |
c608c12e | 14299 | } |
252b5132 | 14300 | else |
a35ca55a JB |
14301 | *obufp++ = 'w'; |
14302 | if (intel_syntax && !p[1] | |
161a04f6 | 14303 | && ((rex & REX_W) || (sizeflag & DFLAG))) |
a35ca55a | 14304 | *obufp++ = 'e'; |
161a04f6 | 14305 | if (!(rex & REX_W)) |
52b15da3 | 14306 | used_prefixes |= (prefixes & PREFIX_DATA); |
252b5132 | 14307 | break; |
1a114b12 | 14308 | case 'V': |
4b06377f | 14309 | if (l == 0 && len == 1) |
1a114b12 | 14310 | { |
4b06377f L |
14311 | if (intel_syntax) |
14312 | break; | |
7bb15c6f | 14313 | if (address_mode == mode_64bit |
6c067bbb | 14314 | && ((sizeflag & DFLAG) || (rex & REX_W))) |
4b06377f L |
14315 | { |
14316 | if (sizeflag & SUFFIX_ALWAYS) | |
14317 | *obufp++ = 'q'; | |
14318 | break; | |
14319 | } | |
14320 | } | |
14321 | else | |
14322 | { | |
14323 | if (l != 1 | |
14324 | || len != 2 | |
14325 | || last[0] != 'L') | |
14326 | { | |
14327 | SAVE_LAST (*p); | |
14328 | break; | |
14329 | } | |
14330 | ||
14331 | if (rex & REX_W) | |
14332 | { | |
14333 | *obufp++ = 'a'; | |
14334 | *obufp++ = 'b'; | |
14335 | *obufp++ = 's'; | |
14336 | } | |
1a114b12 JB |
14337 | } |
14338 | /* Fall through. */ | |
4b06377f | 14339 | goto case_S; |
252b5132 | 14340 | case 'S': |
4b06377f | 14341 | if (l == 0 && len == 1) |
252b5132 | 14342 | { |
4b06377f L |
14343 | case_S: |
14344 | if (intel_syntax) | |
14345 | break; | |
14346 | if (sizeflag & SUFFIX_ALWAYS) | |
52b15da3 | 14347 | { |
4b06377f L |
14348 | if (rex & REX_W) |
14349 | *obufp++ = 'q'; | |
52b15da3 | 14350 | else |
4b06377f L |
14351 | { |
14352 | if (sizeflag & DFLAG) | |
14353 | *obufp++ = 'l'; | |
14354 | else | |
14355 | *obufp++ = 'w'; | |
14356 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14357 | } | |
14358 | } | |
14359 | } | |
14360 | else | |
14361 | { | |
14362 | if (l != 1 | |
14363 | || len != 2 | |
14364 | || last[0] != 'L') | |
14365 | { | |
14366 | SAVE_LAST (*p); | |
14367 | break; | |
52b15da3 | 14368 | } |
4b06377f L |
14369 | |
14370 | if (address_mode == mode_64bit | |
14371 | && !(prefixes & PREFIX_ADDR)) | |
14372 | { | |
14373 | *obufp++ = 'a'; | |
14374 | *obufp++ = 'b'; | |
14375 | *obufp++ = 's'; | |
14376 | } | |
14377 | ||
14378 | goto case_S; | |
252b5132 | 14379 | } |
252b5132 | 14380 | break; |
041bd2e0 | 14381 | case 'X': |
c0f3af97 L |
14382 | if (l != 0 || len != 1) |
14383 | { | |
14384 | SAVE_LAST (*p); | |
14385 | break; | |
14386 | } | |
14387 | if (need_vex && vex.prefix) | |
14388 | { | |
14389 | if (vex.prefix == DATA_PREFIX_OPCODE) | |
14390 | *obufp++ = 'd'; | |
14391 | else | |
14392 | *obufp++ = 's'; | |
14393 | } | |
041bd2e0 | 14394 | else |
f16cd0d5 L |
14395 | { |
14396 | if (prefixes & PREFIX_DATA) | |
14397 | *obufp++ = 'd'; | |
14398 | else | |
14399 | *obufp++ = 's'; | |
14400 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14401 | } | |
041bd2e0 | 14402 | break; |
76f227a5 | 14403 | case 'Y': |
c0f3af97 | 14404 | if (l == 0 && len == 1) |
76f227a5 | 14405 | { |
c0f3af97 L |
14406 | if (intel_syntax || !(sizeflag & SUFFIX_ALWAYS)) |
14407 | break; | |
14408 | if (rex & REX_W) | |
14409 | { | |
14410 | USED_REX (REX_W); | |
14411 | *obufp++ = 'q'; | |
14412 | } | |
14413 | break; | |
14414 | } | |
14415 | else | |
14416 | { | |
14417 | if (l != 1 || len != 2 || last[0] != 'X') | |
14418 | { | |
14419 | SAVE_LAST (*p); | |
14420 | break; | |
14421 | } | |
14422 | if (!need_vex) | |
14423 | abort (); | |
14424 | if (intel_syntax | |
04d824a4 | 14425 | || ((modrm.mod == 3 || vex.b) && !(sizeflag & SUFFIX_ALWAYS))) |
c0f3af97 L |
14426 | break; |
14427 | switch (vex.length) | |
14428 | { | |
14429 | case 128: | |
14430 | *obufp++ = 'x'; | |
14431 | break; | |
14432 | case 256: | |
14433 | *obufp++ = 'y'; | |
14434 | break; | |
04d824a4 JB |
14435 | case 512: |
14436 | if (!vex.evex) | |
c0f3af97 | 14437 | default: |
04d824a4 | 14438 | abort (); |
c0f3af97 | 14439 | } |
76f227a5 JH |
14440 | } |
14441 | break; | |
252b5132 | 14442 | case 'W': |
0bfee649 | 14443 | if (l == 0 && len == 1) |
a35ca55a | 14444 | { |
0bfee649 L |
14445 | /* operand size flag for cwtl, cbtw */ |
14446 | USED_REX (REX_W); | |
14447 | if (rex & REX_W) | |
14448 | { | |
14449 | if (intel_syntax) | |
14450 | *obufp++ = 'd'; | |
14451 | else | |
14452 | *obufp++ = 'l'; | |
14453 | } | |
14454 | else if (sizeflag & DFLAG) | |
14455 | *obufp++ = 'w'; | |
a35ca55a | 14456 | else |
0bfee649 L |
14457 | *obufp++ = 'b'; |
14458 | if (!(rex & REX_W)) | |
14459 | used_prefixes |= (prefixes & PREFIX_DATA); | |
a35ca55a | 14460 | } |
252b5132 | 14461 | else |
0bfee649 | 14462 | { |
6c30d220 L |
14463 | if (l != 1 |
14464 | || len != 2 | |
14465 | || (last[0] != 'X' | |
14466 | && last[0] != 'L')) | |
0bfee649 L |
14467 | { |
14468 | SAVE_LAST (*p); | |
14469 | break; | |
14470 | } | |
14471 | if (!need_vex) | |
14472 | abort (); | |
6c30d220 L |
14473 | if (last[0] == 'X') |
14474 | *obufp++ = vex.w ? 'd': 's'; | |
14475 | else | |
14476 | *obufp++ = vex.w ? 'q': 'd'; | |
0bfee649 | 14477 | } |
252b5132 | 14478 | break; |
a72d2af2 L |
14479 | case '^': |
14480 | if (intel_syntax) | |
14481 | break; | |
14482 | if ((prefixes & PREFIX_DATA) || (sizeflag & SUFFIX_ALWAYS)) | |
14483 | { | |
14484 | if (sizeflag & DFLAG) | |
14485 | *obufp++ = 'l'; | |
14486 | else | |
14487 | *obufp++ = 'w'; | |
14488 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14489 | } | |
14490 | break; | |
5db04b09 L |
14491 | case '@': |
14492 | if (intel_syntax) | |
14493 | break; | |
14494 | if (address_mode == mode_64bit | |
14495 | && (isa64 == intel64 | |
14496 | || ((sizeflag & DFLAG) || (rex & REX_W)))) | |
14497 | *obufp++ = 'q'; | |
14498 | else if ((prefixes & PREFIX_DATA)) | |
14499 | { | |
14500 | if (!(sizeflag & DFLAG)) | |
14501 | *obufp++ = 'w'; | |
14502 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14503 | } | |
14504 | break; | |
252b5132 | 14505 | } |
9306ca4a | 14506 | alt = 0; |
252b5132 RH |
14507 | } |
14508 | *obufp = 0; | |
ea397f5b | 14509 | mnemonicendp = obufp; |
6439fc28 | 14510 | return 0; |
252b5132 RH |
14511 | } |
14512 | ||
14513 | static void | |
26ca5450 | 14514 | oappend (const char *s) |
252b5132 | 14515 | { |
ea397f5b | 14516 | obufp = stpcpy (obufp, s); |
252b5132 RH |
14517 | } |
14518 | ||
14519 | static void | |
26ca5450 | 14520 | append_seg (void) |
252b5132 | 14521 | { |
285ca992 L |
14522 | /* Only print the active segment register. */ |
14523 | if (!active_seg_prefix) | |
14524 | return; | |
14525 | ||
14526 | used_prefixes |= active_seg_prefix; | |
14527 | switch (active_seg_prefix) | |
7d421014 | 14528 | { |
285ca992 | 14529 | case PREFIX_CS: |
9ce09ba2 | 14530 | oappend_maybe_intel ("%cs:"); |
285ca992 L |
14531 | break; |
14532 | case PREFIX_DS: | |
9ce09ba2 | 14533 | oappend_maybe_intel ("%ds:"); |
285ca992 L |
14534 | break; |
14535 | case PREFIX_SS: | |
9ce09ba2 | 14536 | oappend_maybe_intel ("%ss:"); |
285ca992 L |
14537 | break; |
14538 | case PREFIX_ES: | |
9ce09ba2 | 14539 | oappend_maybe_intel ("%es:"); |
285ca992 L |
14540 | break; |
14541 | case PREFIX_FS: | |
9ce09ba2 | 14542 | oappend_maybe_intel ("%fs:"); |
285ca992 L |
14543 | break; |
14544 | case PREFIX_GS: | |
9ce09ba2 | 14545 | oappend_maybe_intel ("%gs:"); |
285ca992 L |
14546 | break; |
14547 | default: | |
14548 | break; | |
7d421014 | 14549 | } |
252b5132 RH |
14550 | } |
14551 | ||
14552 | static void | |
26ca5450 | 14553 | OP_indirE (int bytemode, int sizeflag) |
252b5132 RH |
14554 | { |
14555 | if (!intel_syntax) | |
14556 | oappend ("*"); | |
14557 | OP_E (bytemode, sizeflag); | |
14558 | } | |
14559 | ||
52b15da3 | 14560 | static void |
26ca5450 | 14561 | print_operand_value (char *buf, int hex, bfd_vma disp) |
52b15da3 | 14562 | { |
cb712a9e | 14563 | if (address_mode == mode_64bit) |
52b15da3 JH |
14564 | { |
14565 | if (hex) | |
14566 | { | |
14567 | char tmp[30]; | |
14568 | int i; | |
14569 | buf[0] = '0'; | |
14570 | buf[1] = 'x'; | |
14571 | sprintf_vma (tmp, disp); | |
6608db57 | 14572 | for (i = 0; tmp[i] == '0' && tmp[i + 1]; i++); |
52b15da3 JH |
14573 | strcpy (buf + 2, tmp + i); |
14574 | } | |
14575 | else | |
14576 | { | |
14577 | bfd_signed_vma v = disp; | |
14578 | char tmp[30]; | |
14579 | int i; | |
14580 | if (v < 0) | |
14581 | { | |
14582 | *(buf++) = '-'; | |
14583 | v = -disp; | |
6608db57 | 14584 | /* Check for possible overflow on 0x8000000000000000. */ |
52b15da3 JH |
14585 | if (v < 0) |
14586 | { | |
14587 | strcpy (buf, "9223372036854775808"); | |
14588 | return; | |
14589 | } | |
14590 | } | |
14591 | if (!v) | |
14592 | { | |
14593 | strcpy (buf, "0"); | |
14594 | return; | |
14595 | } | |
14596 | ||
14597 | i = 0; | |
14598 | tmp[29] = 0; | |
14599 | while (v) | |
14600 | { | |
6608db57 | 14601 | tmp[28 - i] = (v % 10) + '0'; |
52b15da3 JH |
14602 | v /= 10; |
14603 | i++; | |
14604 | } | |
14605 | strcpy (buf, tmp + 29 - i); | |
14606 | } | |
14607 | } | |
14608 | else | |
14609 | { | |
14610 | if (hex) | |
14611 | sprintf (buf, "0x%x", (unsigned int) disp); | |
14612 | else | |
14613 | sprintf (buf, "%d", (int) disp); | |
14614 | } | |
14615 | } | |
14616 | ||
5d669648 L |
14617 | /* Put DISP in BUF as signed hex number. */ |
14618 | ||
14619 | static void | |
14620 | print_displacement (char *buf, bfd_vma disp) | |
14621 | { | |
14622 | bfd_signed_vma val = disp; | |
14623 | char tmp[30]; | |
14624 | int i, j = 0; | |
14625 | ||
14626 | if (val < 0) | |
14627 | { | |
14628 | buf[j++] = '-'; | |
14629 | val = -disp; | |
14630 | ||
14631 | /* Check for possible overflow. */ | |
14632 | if (val < 0) | |
14633 | { | |
14634 | switch (address_mode) | |
14635 | { | |
14636 | case mode_64bit: | |
14637 | strcpy (buf + j, "0x8000000000000000"); | |
14638 | break; | |
14639 | case mode_32bit: | |
14640 | strcpy (buf + j, "0x80000000"); | |
14641 | break; | |
14642 | case mode_16bit: | |
14643 | strcpy (buf + j, "0x8000"); | |
14644 | break; | |
14645 | } | |
14646 | return; | |
14647 | } | |
14648 | } | |
14649 | ||
14650 | buf[j++] = '0'; | |
14651 | buf[j++] = 'x'; | |
14652 | ||
0af1713e | 14653 | sprintf_vma (tmp, (bfd_vma) val); |
5d669648 L |
14654 | for (i = 0; tmp[i] == '0'; i++) |
14655 | continue; | |
14656 | if (tmp[i] == '\0') | |
14657 | i--; | |
14658 | strcpy (buf + j, tmp + i); | |
14659 | } | |
14660 | ||
3f31e633 JB |
14661 | static void |
14662 | intel_operand_size (int bytemode, int sizeflag) | |
14663 | { | |
43234a1e L |
14664 | if (vex.evex |
14665 | && vex.b | |
14666 | && (bytemode == x_mode | |
14667 | || bytemode == evex_half_bcst_xmmq_mode)) | |
14668 | { | |
14669 | if (vex.w) | |
14670 | oappend ("QWORD PTR "); | |
14671 | else | |
14672 | oappend ("DWORD PTR "); | |
14673 | return; | |
14674 | } | |
3f31e633 JB |
14675 | switch (bytemode) |
14676 | { | |
14677 | case b_mode: | |
b6169b20 | 14678 | case b_swap_mode: |
42903f7f | 14679 | case dqb_mode: |
1ba585e8 | 14680 | case db_mode: |
3f31e633 JB |
14681 | oappend ("BYTE PTR "); |
14682 | break; | |
14683 | case w_mode: | |
1ba585e8 | 14684 | case dw_mode: |
3f31e633 JB |
14685 | case dqw_mode: |
14686 | oappend ("WORD PTR "); | |
14687 | break; | |
07f5af7d L |
14688 | case indir_v_mode: |
14689 | if (address_mode == mode_64bit && isa64 == intel64) | |
14690 | { | |
14691 | oappend ("QWORD PTR "); | |
14692 | break; | |
14693 | } | |
1a0670f3 | 14694 | /* Fall through. */ |
1a114b12 | 14695 | case stack_v_mode: |
7bb15c6f | 14696 | if (address_mode == mode_64bit && ((sizeflag & DFLAG) || (rex & REX_W))) |
3f31e633 JB |
14697 | { |
14698 | oappend ("QWORD PTR "); | |
3f31e633 JB |
14699 | break; |
14700 | } | |
1a0670f3 | 14701 | /* Fall through. */ |
3f31e633 | 14702 | case v_mode: |
b6169b20 | 14703 | case v_swap_mode: |
3f31e633 | 14704 | case dq_mode: |
161a04f6 L |
14705 | USED_REX (REX_W); |
14706 | if (rex & REX_W) | |
3f31e633 | 14707 | oappend ("QWORD PTR "); |
3f31e633 | 14708 | else |
f16cd0d5 L |
14709 | { |
14710 | if ((sizeflag & DFLAG) || bytemode == dq_mode) | |
14711 | oappend ("DWORD PTR "); | |
14712 | else | |
14713 | oappend ("WORD PTR "); | |
14714 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14715 | } | |
3f31e633 | 14716 | break; |
52fd6d94 | 14717 | case z_mode: |
161a04f6 | 14718 | if ((rex & REX_W) || (sizeflag & DFLAG)) |
52fd6d94 JB |
14719 | *obufp++ = 'D'; |
14720 | oappend ("WORD PTR "); | |
161a04f6 | 14721 | if (!(rex & REX_W)) |
52fd6d94 JB |
14722 | used_prefixes |= (prefixes & PREFIX_DATA); |
14723 | break; | |
34b772a6 JB |
14724 | case a_mode: |
14725 | if (sizeflag & DFLAG) | |
14726 | oappend ("QWORD PTR "); | |
14727 | else | |
14728 | oappend ("DWORD PTR "); | |
14729 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14730 | break; | |
3f31e633 | 14731 | case d_mode: |
539f890d L |
14732 | case d_scalar_mode: |
14733 | case d_scalar_swap_mode: | |
fa99fab2 | 14734 | case d_swap_mode: |
42903f7f | 14735 | case dqd_mode: |
3f31e633 JB |
14736 | oappend ("DWORD PTR "); |
14737 | break; | |
14738 | case q_mode: | |
539f890d L |
14739 | case q_scalar_mode: |
14740 | case q_scalar_swap_mode: | |
b6169b20 | 14741 | case q_swap_mode: |
3f31e633 JB |
14742 | oappend ("QWORD PTR "); |
14743 | break; | |
14744 | case m_mode: | |
cb712a9e | 14745 | if (address_mode == mode_64bit) |
3f31e633 JB |
14746 | oappend ("QWORD PTR "); |
14747 | else | |
14748 | oappend ("DWORD PTR "); | |
14749 | break; | |
14750 | case f_mode: | |
14751 | if (sizeflag & DFLAG) | |
14752 | oappend ("FWORD PTR "); | |
14753 | else | |
14754 | oappend ("DWORD PTR "); | |
14755 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14756 | break; | |
14757 | case t_mode: | |
14758 | oappend ("TBYTE PTR "); | |
14759 | break; | |
14760 | case x_mode: | |
b6169b20 | 14761 | case x_swap_mode: |
43234a1e L |
14762 | case evex_x_gscat_mode: |
14763 | case evex_x_nobcst_mode: | |
53467f57 IT |
14764 | case b_scalar_mode: |
14765 | case w_scalar_mode: | |
c0f3af97 L |
14766 | if (need_vex) |
14767 | { | |
14768 | switch (vex.length) | |
14769 | { | |
14770 | case 128: | |
14771 | oappend ("XMMWORD PTR "); | |
14772 | break; | |
14773 | case 256: | |
14774 | oappend ("YMMWORD PTR "); | |
14775 | break; | |
43234a1e L |
14776 | case 512: |
14777 | oappend ("ZMMWORD PTR "); | |
14778 | break; | |
c0f3af97 L |
14779 | default: |
14780 | abort (); | |
14781 | } | |
14782 | } | |
14783 | else | |
14784 | oappend ("XMMWORD PTR "); | |
14785 | break; | |
14786 | case xmm_mode: | |
3f31e633 JB |
14787 | oappend ("XMMWORD PTR "); |
14788 | break; | |
43234a1e L |
14789 | case ymm_mode: |
14790 | oappend ("YMMWORD PTR "); | |
14791 | break; | |
c0f3af97 | 14792 | case xmmq_mode: |
43234a1e | 14793 | case evex_half_bcst_xmmq_mode: |
c0f3af97 L |
14794 | if (!need_vex) |
14795 | abort (); | |
14796 | ||
14797 | switch (vex.length) | |
14798 | { | |
14799 | case 128: | |
14800 | oappend ("QWORD PTR "); | |
14801 | break; | |
14802 | case 256: | |
14803 | oappend ("XMMWORD PTR "); | |
14804 | break; | |
43234a1e L |
14805 | case 512: |
14806 | oappend ("YMMWORD PTR "); | |
14807 | break; | |
c0f3af97 L |
14808 | default: |
14809 | abort (); | |
14810 | } | |
14811 | break; | |
6c30d220 L |
14812 | case xmm_mb_mode: |
14813 | if (!need_vex) | |
14814 | abort (); | |
14815 | ||
14816 | switch (vex.length) | |
14817 | { | |
14818 | case 128: | |
14819 | case 256: | |
43234a1e | 14820 | case 512: |
6c30d220 L |
14821 | oappend ("BYTE PTR "); |
14822 | break; | |
14823 | default: | |
14824 | abort (); | |
14825 | } | |
14826 | break; | |
14827 | case xmm_mw_mode: | |
14828 | if (!need_vex) | |
14829 | abort (); | |
14830 | ||
14831 | switch (vex.length) | |
14832 | { | |
14833 | case 128: | |
14834 | case 256: | |
43234a1e | 14835 | case 512: |
6c30d220 L |
14836 | oappend ("WORD PTR "); |
14837 | break; | |
14838 | default: | |
14839 | abort (); | |
14840 | } | |
14841 | break; | |
14842 | case xmm_md_mode: | |
14843 | if (!need_vex) | |
14844 | abort (); | |
14845 | ||
14846 | switch (vex.length) | |
14847 | { | |
14848 | case 128: | |
14849 | case 256: | |
43234a1e | 14850 | case 512: |
6c30d220 L |
14851 | oappend ("DWORD PTR "); |
14852 | break; | |
14853 | default: | |
14854 | abort (); | |
14855 | } | |
14856 | break; | |
14857 | case xmm_mq_mode: | |
14858 | if (!need_vex) | |
14859 | abort (); | |
14860 | ||
14861 | switch (vex.length) | |
14862 | { | |
14863 | case 128: | |
14864 | case 256: | |
43234a1e | 14865 | case 512: |
6c30d220 L |
14866 | oappend ("QWORD PTR "); |
14867 | break; | |
14868 | default: | |
14869 | abort (); | |
14870 | } | |
14871 | break; | |
14872 | case xmmdw_mode: | |
14873 | if (!need_vex) | |
14874 | abort (); | |
14875 | ||
14876 | switch (vex.length) | |
14877 | { | |
14878 | case 128: | |
14879 | oappend ("WORD PTR "); | |
14880 | break; | |
14881 | case 256: | |
14882 | oappend ("DWORD PTR "); | |
14883 | break; | |
43234a1e L |
14884 | case 512: |
14885 | oappend ("QWORD PTR "); | |
14886 | break; | |
6c30d220 L |
14887 | default: |
14888 | abort (); | |
14889 | } | |
14890 | break; | |
14891 | case xmmqd_mode: | |
14892 | if (!need_vex) | |
14893 | abort (); | |
14894 | ||
14895 | switch (vex.length) | |
14896 | { | |
14897 | case 128: | |
14898 | oappend ("DWORD PTR "); | |
14899 | break; | |
14900 | case 256: | |
14901 | oappend ("QWORD PTR "); | |
14902 | break; | |
43234a1e L |
14903 | case 512: |
14904 | oappend ("XMMWORD PTR "); | |
14905 | break; | |
6c30d220 L |
14906 | default: |
14907 | abort (); | |
14908 | } | |
14909 | break; | |
c0f3af97 L |
14910 | case ymmq_mode: |
14911 | if (!need_vex) | |
14912 | abort (); | |
14913 | ||
14914 | switch (vex.length) | |
14915 | { | |
14916 | case 128: | |
14917 | oappend ("QWORD PTR "); | |
14918 | break; | |
14919 | case 256: | |
14920 | oappend ("YMMWORD PTR "); | |
14921 | break; | |
43234a1e L |
14922 | case 512: |
14923 | oappend ("ZMMWORD PTR "); | |
14924 | break; | |
c0f3af97 L |
14925 | default: |
14926 | abort (); | |
14927 | } | |
14928 | break; | |
6c30d220 L |
14929 | case ymmxmm_mode: |
14930 | if (!need_vex) | |
14931 | abort (); | |
14932 | ||
14933 | switch (vex.length) | |
14934 | { | |
14935 | case 128: | |
14936 | case 256: | |
14937 | oappend ("XMMWORD PTR "); | |
14938 | break; | |
14939 | default: | |
14940 | abort (); | |
14941 | } | |
14942 | break; | |
fb9c77c7 L |
14943 | case o_mode: |
14944 | oappend ("OWORD PTR "); | |
14945 | break; | |
43234a1e | 14946 | case xmm_mdq_mode: |
0bfee649 | 14947 | case vex_w_dq_mode: |
1c480963 | 14948 | case vex_scalar_w_dq_mode: |
0bfee649 L |
14949 | if (!need_vex) |
14950 | abort (); | |
14951 | ||
14952 | if (vex.w) | |
14953 | oappend ("QWORD PTR "); | |
14954 | else | |
14955 | oappend ("DWORD PTR "); | |
14956 | break; | |
43234a1e L |
14957 | case vex_vsib_d_w_dq_mode: |
14958 | case vex_vsib_q_w_dq_mode: | |
14959 | if (!need_vex) | |
14960 | abort (); | |
14961 | ||
14962 | if (!vex.evex) | |
14963 | { | |
14964 | if (vex.w) | |
14965 | oappend ("QWORD PTR "); | |
14966 | else | |
14967 | oappend ("DWORD PTR "); | |
14968 | } | |
14969 | else | |
14970 | { | |
b28d1bda IT |
14971 | switch (vex.length) |
14972 | { | |
14973 | case 128: | |
14974 | oappend ("XMMWORD PTR "); | |
14975 | break; | |
14976 | case 256: | |
14977 | oappend ("YMMWORD PTR "); | |
14978 | break; | |
14979 | case 512: | |
14980 | oappend ("ZMMWORD PTR "); | |
14981 | break; | |
14982 | default: | |
14983 | abort (); | |
14984 | } | |
43234a1e L |
14985 | } |
14986 | break; | |
5fc35d96 IT |
14987 | case vex_vsib_q_w_d_mode: |
14988 | case vex_vsib_d_w_d_mode: | |
b28d1bda | 14989 | if (!need_vex || !vex.evex) |
5fc35d96 IT |
14990 | abort (); |
14991 | ||
b28d1bda IT |
14992 | switch (vex.length) |
14993 | { | |
14994 | case 128: | |
14995 | oappend ("QWORD PTR "); | |
14996 | break; | |
14997 | case 256: | |
14998 | oappend ("XMMWORD PTR "); | |
14999 | break; | |
15000 | case 512: | |
15001 | oappend ("YMMWORD PTR "); | |
15002 | break; | |
15003 | default: | |
15004 | abort (); | |
15005 | } | |
5fc35d96 IT |
15006 | |
15007 | break; | |
1ba585e8 IT |
15008 | case mask_bd_mode: |
15009 | if (!need_vex || vex.length != 128) | |
15010 | abort (); | |
15011 | if (vex.w) | |
15012 | oappend ("DWORD PTR "); | |
15013 | else | |
15014 | oappend ("BYTE PTR "); | |
15015 | break; | |
43234a1e L |
15016 | case mask_mode: |
15017 | if (!need_vex) | |
15018 | abort (); | |
1ba585e8 IT |
15019 | if (vex.w) |
15020 | oappend ("QWORD PTR "); | |
15021 | else | |
15022 | oappend ("WORD PTR "); | |
43234a1e | 15023 | break; |
6c75cc62 | 15024 | case v_bnd_mode: |
3f31e633 JB |
15025 | default: |
15026 | break; | |
15027 | } | |
15028 | } | |
15029 | ||
252b5132 | 15030 | static void |
c0f3af97 | 15031 | OP_E_register (int bytemode, int sizeflag) |
252b5132 | 15032 | { |
c0f3af97 L |
15033 | int reg = modrm.rm; |
15034 | const char **names; | |
252b5132 | 15035 | |
c0f3af97 L |
15036 | USED_REX (REX_B); |
15037 | if ((rex & REX_B)) | |
15038 | reg += 8; | |
252b5132 | 15039 | |
b6169b20 | 15040 | if ((sizeflag & SUFFIX_ALWAYS) |
1ba585e8 | 15041 | && (bytemode == b_swap_mode |
60227d64 | 15042 | || bytemode == v_swap_mode)) |
b6169b20 L |
15043 | swap_operand (); |
15044 | ||
c0f3af97 | 15045 | switch (bytemode) |
252b5132 | 15046 | { |
c0f3af97 | 15047 | case b_mode: |
b6169b20 | 15048 | case b_swap_mode: |
c0f3af97 L |
15049 | USED_REX (0); |
15050 | if (rex) | |
15051 | names = names8rex; | |
15052 | else | |
15053 | names = names8; | |
15054 | break; | |
15055 | case w_mode: | |
15056 | names = names16; | |
15057 | break; | |
15058 | case d_mode: | |
1ba585e8 IT |
15059 | case dw_mode: |
15060 | case db_mode: | |
c0f3af97 L |
15061 | names = names32; |
15062 | break; | |
15063 | case q_mode: | |
15064 | names = names64; | |
15065 | break; | |
15066 | case m_mode: | |
6c75cc62 | 15067 | case v_bnd_mode: |
c0f3af97 L |
15068 | names = address_mode == mode_64bit ? names64 : names32; |
15069 | break; | |
7e8b059b | 15070 | case bnd_mode: |
0d96e4df L |
15071 | if (reg > 0x3) |
15072 | { | |
15073 | oappend ("(bad)"); | |
15074 | return; | |
15075 | } | |
7e8b059b L |
15076 | names = names_bnd; |
15077 | break; | |
07f5af7d L |
15078 | case indir_v_mode: |
15079 | if (address_mode == mode_64bit && isa64 == intel64) | |
15080 | { | |
15081 | names = names64; | |
15082 | break; | |
15083 | } | |
1a0670f3 | 15084 | /* Fall through. */ |
c0f3af97 | 15085 | case stack_v_mode: |
7bb15c6f | 15086 | if (address_mode == mode_64bit && ((sizeflag & DFLAG) || (rex & REX_W))) |
252b5132 | 15087 | { |
c0f3af97 | 15088 | names = names64; |
252b5132 | 15089 | break; |
252b5132 | 15090 | } |
c0f3af97 | 15091 | bytemode = v_mode; |
1a0670f3 | 15092 | /* Fall through. */ |
c0f3af97 | 15093 | case v_mode: |
b6169b20 | 15094 | case v_swap_mode: |
c0f3af97 L |
15095 | case dq_mode: |
15096 | case dqb_mode: | |
15097 | case dqd_mode: | |
15098 | case dqw_mode: | |
15099 | USED_REX (REX_W); | |
15100 | if (rex & REX_W) | |
15101 | names = names64; | |
c0f3af97 | 15102 | else |
f16cd0d5 | 15103 | { |
7bb15c6f | 15104 | if ((sizeflag & DFLAG) |
f16cd0d5 L |
15105 | || (bytemode != v_mode |
15106 | && bytemode != v_swap_mode)) | |
15107 | names = names32; | |
15108 | else | |
15109 | names = names16; | |
15110 | used_prefixes |= (prefixes & PREFIX_DATA); | |
15111 | } | |
c0f3af97 | 15112 | break; |
1ba585e8 | 15113 | case mask_bd_mode: |
43234a1e | 15114 | case mask_mode: |
9889cbb1 L |
15115 | if (reg > 0x7) |
15116 | { | |
15117 | oappend ("(bad)"); | |
15118 | return; | |
15119 | } | |
43234a1e L |
15120 | names = names_mask; |
15121 | break; | |
c0f3af97 L |
15122 | case 0: |
15123 | return; | |
15124 | default: | |
15125 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
252b5132 RH |
15126 | return; |
15127 | } | |
c0f3af97 L |
15128 | oappend (names[reg]); |
15129 | } | |
15130 | ||
15131 | static void | |
c1e679ec | 15132 | OP_E_memory (int bytemode, int sizeflag) |
c0f3af97 L |
15133 | { |
15134 | bfd_vma disp = 0; | |
15135 | int add = (rex & REX_B) ? 8 : 0; | |
15136 | int riprel = 0; | |
43234a1e L |
15137 | int shift; |
15138 | ||
15139 | if (vex.evex) | |
15140 | { | |
15141 | /* In EVEX, if operand doesn't allow broadcast, vex.b should be 0. */ | |
15142 | if (vex.b | |
15143 | && bytemode != x_mode | |
90a915bf | 15144 | && bytemode != xmmq_mode |
43234a1e L |
15145 | && bytemode != evex_half_bcst_xmmq_mode) |
15146 | { | |
15147 | BadOp (); | |
15148 | return; | |
15149 | } | |
15150 | switch (bytemode) | |
15151 | { | |
1ba585e8 IT |
15152 | case dqw_mode: |
15153 | case dw_mode: | |
1ba585e8 IT |
15154 | shift = 1; |
15155 | break; | |
15156 | case dqb_mode: | |
15157 | case db_mode: | |
15158 | shift = 0; | |
15159 | break; | |
43234a1e | 15160 | case vex_vsib_d_w_dq_mode: |
5fc35d96 | 15161 | case vex_vsib_d_w_d_mode: |
eaa9d1ad | 15162 | case vex_vsib_q_w_dq_mode: |
5fc35d96 | 15163 | case vex_vsib_q_w_d_mode: |
43234a1e L |
15164 | case evex_x_gscat_mode: |
15165 | case xmm_mdq_mode: | |
15166 | shift = vex.w ? 3 : 2; | |
15167 | break; | |
43234a1e L |
15168 | case x_mode: |
15169 | case evex_half_bcst_xmmq_mode: | |
90a915bf | 15170 | case xmmq_mode: |
43234a1e L |
15171 | if (vex.b) |
15172 | { | |
15173 | shift = vex.w ? 3 : 2; | |
15174 | break; | |
15175 | } | |
1a0670f3 | 15176 | /* Fall through. */ |
43234a1e L |
15177 | case xmmqd_mode: |
15178 | case xmmdw_mode: | |
43234a1e L |
15179 | case ymmq_mode: |
15180 | case evex_x_nobcst_mode: | |
15181 | case x_swap_mode: | |
15182 | switch (vex.length) | |
15183 | { | |
15184 | case 128: | |
15185 | shift = 4; | |
15186 | break; | |
15187 | case 256: | |
15188 | shift = 5; | |
15189 | break; | |
15190 | case 512: | |
15191 | shift = 6; | |
15192 | break; | |
15193 | default: | |
15194 | abort (); | |
15195 | } | |
15196 | break; | |
15197 | case ymm_mode: | |
15198 | shift = 5; | |
15199 | break; | |
15200 | case xmm_mode: | |
15201 | shift = 4; | |
15202 | break; | |
15203 | case xmm_mq_mode: | |
15204 | case q_mode: | |
15205 | case q_scalar_mode: | |
15206 | case q_swap_mode: | |
15207 | case q_scalar_swap_mode: | |
15208 | shift = 3; | |
15209 | break; | |
15210 | case dqd_mode: | |
15211 | case xmm_md_mode: | |
15212 | case d_mode: | |
15213 | case d_scalar_mode: | |
15214 | case d_swap_mode: | |
15215 | case d_scalar_swap_mode: | |
15216 | shift = 2; | |
15217 | break; | |
53467f57 | 15218 | case w_scalar_mode: |
43234a1e L |
15219 | case xmm_mw_mode: |
15220 | shift = 1; | |
15221 | break; | |
53467f57 | 15222 | case b_scalar_mode: |
43234a1e L |
15223 | case xmm_mb_mode: |
15224 | shift = 0; | |
15225 | break; | |
15226 | default: | |
15227 | abort (); | |
15228 | } | |
15229 | /* Make necessary corrections to shift for modes that need it. | |
15230 | For these modes we currently have shift 4, 5 or 6 depending on | |
15231 | vex.length (it corresponds to xmmword, ymmword or zmmword | |
15232 | operand). We might want to make it 3, 4 or 5 (e.g. for | |
15233 | xmmq_mode). In case of broadcast enabled the corrections | |
15234 | aren't needed, as element size is always 32 or 64 bits. */ | |
90a915bf IT |
15235 | if (!vex.b |
15236 | && (bytemode == xmmq_mode | |
15237 | || bytemode == evex_half_bcst_xmmq_mode)) | |
43234a1e L |
15238 | shift -= 1; |
15239 | else if (bytemode == xmmqd_mode) | |
15240 | shift -= 2; | |
15241 | else if (bytemode == xmmdw_mode) | |
15242 | shift -= 3; | |
b28d1bda IT |
15243 | else if (bytemode == ymmq_mode && vex.length == 128) |
15244 | shift -= 1; | |
43234a1e L |
15245 | } |
15246 | else | |
15247 | shift = 0; | |
252b5132 | 15248 | |
c0f3af97 | 15249 | USED_REX (REX_B); |
3f31e633 JB |
15250 | if (intel_syntax) |
15251 | intel_operand_size (bytemode, sizeflag); | |
252b5132 RH |
15252 | append_seg (); |
15253 | ||
5d669648 | 15254 | if ((sizeflag & AFLAG) || address_mode == mode_64bit) |
252b5132 | 15255 | { |
5d669648 L |
15256 | /* 32/64 bit address mode */ |
15257 | int havedisp; | |
252b5132 RH |
15258 | int havesib; |
15259 | int havebase; | |
0f7da397 | 15260 | int haveindex; |
20afcfb7 | 15261 | int needindex; |
82c18208 | 15262 | int base, rbase; |
91d6fa6a | 15263 | int vindex = 0; |
252b5132 | 15264 | int scale = 0; |
7e8b059b L |
15265 | int addr32flag = !((sizeflag & AFLAG) |
15266 | || bytemode == v_bnd_mode | |
15267 | || bytemode == bnd_mode); | |
6c30d220 L |
15268 | const char **indexes64 = names64; |
15269 | const char **indexes32 = names32; | |
252b5132 RH |
15270 | |
15271 | havesib = 0; | |
15272 | havebase = 1; | |
0f7da397 | 15273 | haveindex = 0; |
7967e09e | 15274 | base = modrm.rm; |
252b5132 RH |
15275 | |
15276 | if (base == 4) | |
15277 | { | |
15278 | havesib = 1; | |
dfc8cf43 | 15279 | vindex = sib.index; |
161a04f6 L |
15280 | USED_REX (REX_X); |
15281 | if (rex & REX_X) | |
91d6fa6a | 15282 | vindex += 8; |
6c30d220 L |
15283 | switch (bytemode) |
15284 | { | |
15285 | case vex_vsib_d_w_dq_mode: | |
5fc35d96 | 15286 | case vex_vsib_d_w_d_mode: |
6c30d220 | 15287 | case vex_vsib_q_w_dq_mode: |
5fc35d96 | 15288 | case vex_vsib_q_w_d_mode: |
6c30d220 L |
15289 | if (!need_vex) |
15290 | abort (); | |
43234a1e L |
15291 | if (vex.evex) |
15292 | { | |
15293 | if (!vex.v) | |
15294 | vindex += 16; | |
15295 | } | |
6c30d220 L |
15296 | |
15297 | haveindex = 1; | |
15298 | switch (vex.length) | |
15299 | { | |
15300 | case 128: | |
7bb15c6f | 15301 | indexes64 = indexes32 = names_xmm; |
6c30d220 L |
15302 | break; |
15303 | case 256: | |
5fc35d96 IT |
15304 | if (!vex.w |
15305 | || bytemode == vex_vsib_q_w_dq_mode | |
15306 | || bytemode == vex_vsib_q_w_d_mode) | |
7bb15c6f | 15307 | indexes64 = indexes32 = names_ymm; |
6c30d220 | 15308 | else |
7bb15c6f | 15309 | indexes64 = indexes32 = names_xmm; |
6c30d220 | 15310 | break; |
43234a1e | 15311 | case 512: |
5fc35d96 IT |
15312 | if (!vex.w |
15313 | || bytemode == vex_vsib_q_w_dq_mode | |
15314 | || bytemode == vex_vsib_q_w_d_mode) | |
43234a1e L |
15315 | indexes64 = indexes32 = names_zmm; |
15316 | else | |
15317 | indexes64 = indexes32 = names_ymm; | |
15318 | break; | |
6c30d220 L |
15319 | default: |
15320 | abort (); | |
15321 | } | |
15322 | break; | |
15323 | default: | |
15324 | haveindex = vindex != 4; | |
15325 | break; | |
15326 | } | |
15327 | scale = sib.scale; | |
15328 | base = sib.base; | |
252b5132 RH |
15329 | codep++; |
15330 | } | |
82c18208 | 15331 | rbase = base + add; |
252b5132 | 15332 | |
7967e09e | 15333 | switch (modrm.mod) |
252b5132 RH |
15334 | { |
15335 | case 0: | |
82c18208 | 15336 | if (base == 5) |
252b5132 RH |
15337 | { |
15338 | havebase = 0; | |
cb712a9e | 15339 | if (address_mode == mode_64bit && !havesib) |
52b15da3 JH |
15340 | riprel = 1; |
15341 | disp = get32s (); | |
252b5132 RH |
15342 | } |
15343 | break; | |
15344 | case 1: | |
15345 | FETCH_DATA (the_info, codep + 1); | |
15346 | disp = *codep++; | |
15347 | if ((disp & 0x80) != 0) | |
15348 | disp -= 0x100; | |
43234a1e L |
15349 | if (vex.evex && shift > 0) |
15350 | disp <<= shift; | |
252b5132 RH |
15351 | break; |
15352 | case 2: | |
52b15da3 | 15353 | disp = get32s (); |
252b5132 RH |
15354 | break; |
15355 | } | |
15356 | ||
20afcfb7 L |
15357 | /* In 32bit mode, we need index register to tell [offset] from |
15358 | [eiz*1 + offset]. */ | |
15359 | needindex = (havesib | |
15360 | && !havebase | |
15361 | && !haveindex | |
15362 | && address_mode == mode_32bit); | |
15363 | havedisp = (havebase | |
15364 | || needindex | |
15365 | || (havesib && (haveindex || scale != 0))); | |
5d669648 | 15366 | |
252b5132 | 15367 | if (!intel_syntax) |
82c18208 | 15368 | if (modrm.mod != 0 || base == 5) |
db6eb5be | 15369 | { |
5d669648 L |
15370 | if (havedisp || riprel) |
15371 | print_displacement (scratchbuf, disp); | |
15372 | else | |
15373 | print_operand_value (scratchbuf, 1, disp); | |
db6eb5be | 15374 | oappend (scratchbuf); |
52b15da3 JH |
15375 | if (riprel) |
15376 | { | |
15377 | set_op (disp, 1); | |
28596323 | 15378 | oappend (!addr32flag ? "(%rip)" : "(%eip)"); |
52b15da3 | 15379 | } |
db6eb5be | 15380 | } |
2da11e11 | 15381 | |
7e8b059b L |
15382 | if ((havebase || haveindex || riprel) |
15383 | && (bytemode != v_bnd_mode) | |
15384 | && (bytemode != bnd_mode)) | |
87767711 JB |
15385 | used_prefixes |= PREFIX_ADDR; |
15386 | ||
5d669648 | 15387 | if (havedisp || (intel_syntax && riprel)) |
252b5132 | 15388 | { |
252b5132 | 15389 | *obufp++ = open_char; |
52b15da3 | 15390 | if (intel_syntax && riprel) |
185b1163 L |
15391 | { |
15392 | set_op (disp, 1); | |
28596323 | 15393 | oappend (!addr32flag ? "rip" : "eip"); |
185b1163 | 15394 | } |
db6eb5be | 15395 | *obufp = '\0'; |
252b5132 | 15396 | if (havebase) |
7e8b059b | 15397 | oappend (address_mode == mode_64bit && !addr32flag |
82c18208 | 15398 | ? names64[rbase] : names32[rbase]); |
252b5132 RH |
15399 | if (havesib) |
15400 | { | |
db51cc60 L |
15401 | /* ESP/RSP won't allow index. If base isn't ESP/RSP, |
15402 | print index to tell base + index from base. */ | |
15403 | if (scale != 0 | |
20afcfb7 | 15404 | || needindex |
db51cc60 L |
15405 | || haveindex |
15406 | || (havebase && base != ESP_REG_NUM)) | |
252b5132 | 15407 | { |
9306ca4a | 15408 | if (!intel_syntax || havebase) |
db6eb5be | 15409 | { |
9306ca4a JB |
15410 | *obufp++ = separator_char; |
15411 | *obufp = '\0'; | |
db6eb5be | 15412 | } |
db51cc60 | 15413 | if (haveindex) |
7e8b059b | 15414 | oappend (address_mode == mode_64bit && !addr32flag |
6c30d220 | 15415 | ? indexes64[vindex] : indexes32[vindex]); |
db51cc60 | 15416 | else |
7e8b059b | 15417 | oappend (address_mode == mode_64bit && !addr32flag |
db51cc60 L |
15418 | ? index64 : index32); |
15419 | ||
db6eb5be AM |
15420 | *obufp++ = scale_char; |
15421 | *obufp = '\0'; | |
15422 | sprintf (scratchbuf, "%d", 1 << scale); | |
15423 | oappend (scratchbuf); | |
15424 | } | |
252b5132 | 15425 | } |
185b1163 | 15426 | if (intel_syntax |
82c18208 | 15427 | && (disp || modrm.mod != 0 || base == 5)) |
3d456fa1 | 15428 | { |
db51cc60 | 15429 | if (!havedisp || (bfd_signed_vma) disp >= 0) |
3d456fa1 JB |
15430 | { |
15431 | *obufp++ = '+'; | |
15432 | *obufp = '\0'; | |
15433 | } | |
05203043 | 15434 | else if (modrm.mod != 1 && disp != -disp) |
3d456fa1 JB |
15435 | { |
15436 | *obufp++ = '-'; | |
15437 | *obufp = '\0'; | |
15438 | disp = - (bfd_signed_vma) disp; | |
15439 | } | |
15440 | ||
db51cc60 L |
15441 | if (havedisp) |
15442 | print_displacement (scratchbuf, disp); | |
15443 | else | |
15444 | print_operand_value (scratchbuf, 1, disp); | |
3d456fa1 JB |
15445 | oappend (scratchbuf); |
15446 | } | |
252b5132 RH |
15447 | |
15448 | *obufp++ = close_char; | |
db6eb5be | 15449 | *obufp = '\0'; |
252b5132 RH |
15450 | } |
15451 | else if (intel_syntax) | |
db6eb5be | 15452 | { |
82c18208 | 15453 | if (modrm.mod != 0 || base == 5) |
db6eb5be | 15454 | { |
285ca992 | 15455 | if (!active_seg_prefix) |
252b5132 | 15456 | { |
d708bcba | 15457 | oappend (names_seg[ds_reg - es_reg]); |
252b5132 RH |
15458 | oappend (":"); |
15459 | } | |
52b15da3 | 15460 | print_operand_value (scratchbuf, 1, disp); |
db6eb5be AM |
15461 | oappend (scratchbuf); |
15462 | } | |
15463 | } | |
252b5132 RH |
15464 | } |
15465 | else | |
f16cd0d5 L |
15466 | { |
15467 | /* 16 bit address mode */ | |
15468 | used_prefixes |= prefixes & PREFIX_ADDR; | |
7967e09e | 15469 | switch (modrm.mod) |
252b5132 RH |
15470 | { |
15471 | case 0: | |
7967e09e | 15472 | if (modrm.rm == 6) |
252b5132 RH |
15473 | { |
15474 | disp = get16 (); | |
15475 | if ((disp & 0x8000) != 0) | |
15476 | disp -= 0x10000; | |
15477 | } | |
15478 | break; | |
15479 | case 1: | |
15480 | FETCH_DATA (the_info, codep + 1); | |
15481 | disp = *codep++; | |
15482 | if ((disp & 0x80) != 0) | |
15483 | disp -= 0x100; | |
65f3ed04 JB |
15484 | if (vex.evex && shift > 0) |
15485 | disp <<= shift; | |
252b5132 RH |
15486 | break; |
15487 | case 2: | |
15488 | disp = get16 (); | |
15489 | if ((disp & 0x8000) != 0) | |
15490 | disp -= 0x10000; | |
15491 | break; | |
15492 | } | |
15493 | ||
15494 | if (!intel_syntax) | |
7967e09e | 15495 | if (modrm.mod != 0 || modrm.rm == 6) |
db6eb5be | 15496 | { |
5d669648 | 15497 | print_displacement (scratchbuf, disp); |
db6eb5be AM |
15498 | oappend (scratchbuf); |
15499 | } | |
252b5132 | 15500 | |
7967e09e | 15501 | if (modrm.mod != 0 || modrm.rm != 6) |
252b5132 RH |
15502 | { |
15503 | *obufp++ = open_char; | |
db6eb5be | 15504 | *obufp = '\0'; |
7967e09e | 15505 | oappend (index16[modrm.rm]); |
5d669648 L |
15506 | if (intel_syntax |
15507 | && (disp || modrm.mod != 0 || modrm.rm == 6)) | |
3d456fa1 | 15508 | { |
5d669648 | 15509 | if ((bfd_signed_vma) disp >= 0) |
3d456fa1 JB |
15510 | { |
15511 | *obufp++ = '+'; | |
15512 | *obufp = '\0'; | |
15513 | } | |
7967e09e | 15514 | else if (modrm.mod != 1) |
3d456fa1 JB |
15515 | { |
15516 | *obufp++ = '-'; | |
15517 | *obufp = '\0'; | |
15518 | disp = - (bfd_signed_vma) disp; | |
15519 | } | |
15520 | ||
5d669648 | 15521 | print_displacement (scratchbuf, disp); |
3d456fa1 JB |
15522 | oappend (scratchbuf); |
15523 | } | |
15524 | ||
db6eb5be AM |
15525 | *obufp++ = close_char; |
15526 | *obufp = '\0'; | |
252b5132 | 15527 | } |
3d456fa1 JB |
15528 | else if (intel_syntax) |
15529 | { | |
285ca992 | 15530 | if (!active_seg_prefix) |
3d456fa1 JB |
15531 | { |
15532 | oappend (names_seg[ds_reg - es_reg]); | |
15533 | oappend (":"); | |
15534 | } | |
15535 | print_operand_value (scratchbuf, 1, disp & 0xffff); | |
15536 | oappend (scratchbuf); | |
15537 | } | |
252b5132 | 15538 | } |
43234a1e L |
15539 | if (vex.evex && vex.b |
15540 | && (bytemode == x_mode | |
90a915bf | 15541 | || bytemode == xmmq_mode |
43234a1e L |
15542 | || bytemode == evex_half_bcst_xmmq_mode)) |
15543 | { | |
90a915bf IT |
15544 | if (vex.w |
15545 | || bytemode == xmmq_mode | |
15546 | || bytemode == evex_half_bcst_xmmq_mode) | |
b28d1bda IT |
15547 | { |
15548 | switch (vex.length) | |
15549 | { | |
15550 | case 128: | |
15551 | oappend ("{1to2}"); | |
15552 | break; | |
15553 | case 256: | |
15554 | oappend ("{1to4}"); | |
15555 | break; | |
15556 | case 512: | |
15557 | oappend ("{1to8}"); | |
15558 | break; | |
15559 | default: | |
15560 | abort (); | |
15561 | } | |
15562 | } | |
43234a1e | 15563 | else |
b28d1bda IT |
15564 | { |
15565 | switch (vex.length) | |
15566 | { | |
15567 | case 128: | |
15568 | oappend ("{1to4}"); | |
15569 | break; | |
15570 | case 256: | |
15571 | oappend ("{1to8}"); | |
15572 | break; | |
15573 | case 512: | |
15574 | oappend ("{1to16}"); | |
15575 | break; | |
15576 | default: | |
15577 | abort (); | |
15578 | } | |
15579 | } | |
43234a1e | 15580 | } |
252b5132 RH |
15581 | } |
15582 | ||
c0f3af97 | 15583 | static void |
8b3f93e7 | 15584 | OP_E (int bytemode, int sizeflag) |
c0f3af97 L |
15585 | { |
15586 | /* Skip mod/rm byte. */ | |
15587 | MODRM_CHECK; | |
15588 | codep++; | |
15589 | ||
15590 | if (modrm.mod == 3) | |
15591 | OP_E_register (bytemode, sizeflag); | |
15592 | else | |
c1e679ec | 15593 | OP_E_memory (bytemode, sizeflag); |
c0f3af97 L |
15594 | } |
15595 | ||
252b5132 | 15596 | static void |
26ca5450 | 15597 | OP_G (int bytemode, int sizeflag) |
252b5132 | 15598 | { |
52b15da3 | 15599 | int add = 0; |
161a04f6 L |
15600 | USED_REX (REX_R); |
15601 | if (rex & REX_R) | |
52b15da3 | 15602 | add += 8; |
252b5132 RH |
15603 | switch (bytemode) |
15604 | { | |
15605 | case b_mode: | |
52b15da3 JH |
15606 | USED_REX (0); |
15607 | if (rex) | |
7967e09e | 15608 | oappend (names8rex[modrm.reg + add]); |
52b15da3 | 15609 | else |
7967e09e | 15610 | oappend (names8[modrm.reg + add]); |
252b5132 RH |
15611 | break; |
15612 | case w_mode: | |
7967e09e | 15613 | oappend (names16[modrm.reg + add]); |
252b5132 RH |
15614 | break; |
15615 | case d_mode: | |
1ba585e8 IT |
15616 | case db_mode: |
15617 | case dw_mode: | |
7967e09e | 15618 | oappend (names32[modrm.reg + add]); |
52b15da3 JH |
15619 | break; |
15620 | case q_mode: | |
7967e09e | 15621 | oappend (names64[modrm.reg + add]); |
252b5132 | 15622 | break; |
7e8b059b | 15623 | case bnd_mode: |
0d96e4df L |
15624 | if (modrm.reg > 0x3) |
15625 | { | |
15626 | oappend ("(bad)"); | |
15627 | return; | |
15628 | } | |
7e8b059b L |
15629 | oappend (names_bnd[modrm.reg]); |
15630 | break; | |
252b5132 | 15631 | case v_mode: |
9306ca4a | 15632 | case dq_mode: |
42903f7f L |
15633 | case dqb_mode: |
15634 | case dqd_mode: | |
9306ca4a | 15635 | case dqw_mode: |
161a04f6 L |
15636 | USED_REX (REX_W); |
15637 | if (rex & REX_W) | |
7967e09e | 15638 | oappend (names64[modrm.reg + add]); |
252b5132 | 15639 | else |
f16cd0d5 L |
15640 | { |
15641 | if ((sizeflag & DFLAG) || bytemode != v_mode) | |
15642 | oappend (names32[modrm.reg + add]); | |
15643 | else | |
15644 | oappend (names16[modrm.reg + add]); | |
15645 | used_prefixes |= (prefixes & PREFIX_DATA); | |
15646 | } | |
252b5132 | 15647 | break; |
90700ea2 | 15648 | case m_mode: |
cb712a9e | 15649 | if (address_mode == mode_64bit) |
7967e09e | 15650 | oappend (names64[modrm.reg + add]); |
90700ea2 | 15651 | else |
7967e09e | 15652 | oappend (names32[modrm.reg + add]); |
90700ea2 | 15653 | break; |
1ba585e8 | 15654 | case mask_bd_mode: |
43234a1e | 15655 | case mask_mode: |
9889cbb1 L |
15656 | if ((modrm.reg + add) > 0x7) |
15657 | { | |
15658 | oappend ("(bad)"); | |
15659 | return; | |
15660 | } | |
43234a1e L |
15661 | oappend (names_mask[modrm.reg + add]); |
15662 | break; | |
252b5132 RH |
15663 | default: |
15664 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
15665 | break; | |
15666 | } | |
15667 | } | |
15668 | ||
52b15da3 | 15669 | static bfd_vma |
26ca5450 | 15670 | get64 (void) |
52b15da3 | 15671 | { |
5dd0794d | 15672 | bfd_vma x; |
52b15da3 | 15673 | #ifdef BFD64 |
5dd0794d AM |
15674 | unsigned int a; |
15675 | unsigned int b; | |
15676 | ||
52b15da3 JH |
15677 | FETCH_DATA (the_info, codep + 8); |
15678 | a = *codep++ & 0xff; | |
15679 | a |= (*codep++ & 0xff) << 8; | |
15680 | a |= (*codep++ & 0xff) << 16; | |
070fe95d | 15681 | a |= (*codep++ & 0xffu) << 24; |
5dd0794d | 15682 | b = *codep++ & 0xff; |
52b15da3 JH |
15683 | b |= (*codep++ & 0xff) << 8; |
15684 | b |= (*codep++ & 0xff) << 16; | |
070fe95d | 15685 | b |= (*codep++ & 0xffu) << 24; |
52b15da3 JH |
15686 | x = a + ((bfd_vma) b << 32); |
15687 | #else | |
6608db57 | 15688 | abort (); |
5dd0794d | 15689 | x = 0; |
52b15da3 JH |
15690 | #endif |
15691 | return x; | |
15692 | } | |
15693 | ||
15694 | static bfd_signed_vma | |
26ca5450 | 15695 | get32 (void) |
252b5132 | 15696 | { |
52b15da3 | 15697 | bfd_signed_vma x = 0; |
252b5132 RH |
15698 | |
15699 | FETCH_DATA (the_info, codep + 4); | |
52b15da3 JH |
15700 | x = *codep++ & (bfd_signed_vma) 0xff; |
15701 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 8; | |
15702 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 16; | |
15703 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 24; | |
15704 | return x; | |
15705 | } | |
15706 | ||
15707 | static bfd_signed_vma | |
26ca5450 | 15708 | get32s (void) |
52b15da3 JH |
15709 | { |
15710 | bfd_signed_vma x = 0; | |
15711 | ||
15712 | FETCH_DATA (the_info, codep + 4); | |
15713 | x = *codep++ & (bfd_signed_vma) 0xff; | |
15714 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 8; | |
15715 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 16; | |
15716 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 24; | |
15717 | ||
15718 | x = (x ^ ((bfd_signed_vma) 1 << 31)) - ((bfd_signed_vma) 1 << 31); | |
15719 | ||
252b5132 RH |
15720 | return x; |
15721 | } | |
15722 | ||
15723 | static int | |
26ca5450 | 15724 | get16 (void) |
252b5132 RH |
15725 | { |
15726 | int x = 0; | |
15727 | ||
15728 | FETCH_DATA (the_info, codep + 2); | |
15729 | x = *codep++ & 0xff; | |
15730 | x |= (*codep++ & 0xff) << 8; | |
15731 | return x; | |
15732 | } | |
15733 | ||
15734 | static void | |
26ca5450 | 15735 | set_op (bfd_vma op, int riprel) |
252b5132 RH |
15736 | { |
15737 | op_index[op_ad] = op_ad; | |
cb712a9e | 15738 | if (address_mode == mode_64bit) |
7081ff04 AJ |
15739 | { |
15740 | op_address[op_ad] = op; | |
15741 | op_riprel[op_ad] = riprel; | |
15742 | } | |
15743 | else | |
15744 | { | |
15745 | /* Mask to get a 32-bit address. */ | |
15746 | op_address[op_ad] = op & 0xffffffff; | |
15747 | op_riprel[op_ad] = riprel & 0xffffffff; | |
15748 | } | |
252b5132 RH |
15749 | } |
15750 | ||
15751 | static void | |
26ca5450 | 15752 | OP_REG (int code, int sizeflag) |
252b5132 | 15753 | { |
2da11e11 | 15754 | const char *s; |
9b60702d | 15755 | int add; |
de882298 RM |
15756 | |
15757 | switch (code) | |
15758 | { | |
15759 | case es_reg: case ss_reg: case cs_reg: | |
15760 | case ds_reg: case fs_reg: case gs_reg: | |
15761 | oappend (names_seg[code - es_reg]); | |
15762 | return; | |
15763 | } | |
15764 | ||
161a04f6 L |
15765 | USED_REX (REX_B); |
15766 | if (rex & REX_B) | |
52b15da3 | 15767 | add = 8; |
9b60702d L |
15768 | else |
15769 | add = 0; | |
52b15da3 JH |
15770 | |
15771 | switch (code) | |
15772 | { | |
52b15da3 JH |
15773 | case ax_reg: case cx_reg: case dx_reg: case bx_reg: |
15774 | case sp_reg: case bp_reg: case si_reg: case di_reg: | |
15775 | s = names16[code - ax_reg + add]; | |
15776 | break; | |
52b15da3 JH |
15777 | case al_reg: case ah_reg: case cl_reg: case ch_reg: |
15778 | case dl_reg: case dh_reg: case bl_reg: case bh_reg: | |
15779 | USED_REX (0); | |
15780 | if (rex) | |
15781 | s = names8rex[code - al_reg + add]; | |
15782 | else | |
15783 | s = names8[code - al_reg]; | |
15784 | break; | |
6439fc28 AM |
15785 | case rAX_reg: case rCX_reg: case rDX_reg: case rBX_reg: |
15786 | case rSP_reg: case rBP_reg: case rSI_reg: case rDI_reg: | |
7bb15c6f | 15787 | if (address_mode == mode_64bit |
6c067bbb | 15788 | && ((sizeflag & DFLAG) || (rex & REX_W))) |
6439fc28 AM |
15789 | { |
15790 | s = names64[code - rAX_reg + add]; | |
15791 | break; | |
15792 | } | |
15793 | code += eAX_reg - rAX_reg; | |
6608db57 | 15794 | /* Fall through. */ |
52b15da3 JH |
15795 | case eAX_reg: case eCX_reg: case eDX_reg: case eBX_reg: |
15796 | case eSP_reg: case eBP_reg: case eSI_reg: case eDI_reg: | |
161a04f6 L |
15797 | USED_REX (REX_W); |
15798 | if (rex & REX_W) | |
52b15da3 | 15799 | s = names64[code - eAX_reg + add]; |
52b15da3 | 15800 | else |
f16cd0d5 L |
15801 | { |
15802 | if (sizeflag & DFLAG) | |
15803 | s = names32[code - eAX_reg + add]; | |
15804 | else | |
15805 | s = names16[code - eAX_reg + add]; | |
15806 | used_prefixes |= (prefixes & PREFIX_DATA); | |
15807 | } | |
52b15da3 | 15808 | break; |
52b15da3 JH |
15809 | default: |
15810 | s = INTERNAL_DISASSEMBLER_ERROR; | |
15811 | break; | |
15812 | } | |
15813 | oappend (s); | |
15814 | } | |
15815 | ||
15816 | static void | |
26ca5450 | 15817 | OP_IMREG (int code, int sizeflag) |
52b15da3 JH |
15818 | { |
15819 | const char *s; | |
252b5132 RH |
15820 | |
15821 | switch (code) | |
15822 | { | |
15823 | case indir_dx_reg: | |
d708bcba | 15824 | if (intel_syntax) |
52fd6d94 | 15825 | s = "dx"; |
d708bcba | 15826 | else |
db6eb5be | 15827 | s = "(%dx)"; |
252b5132 RH |
15828 | break; |
15829 | case ax_reg: case cx_reg: case dx_reg: case bx_reg: | |
15830 | case sp_reg: case bp_reg: case si_reg: case di_reg: | |
15831 | s = names16[code - ax_reg]; | |
15832 | break; | |
15833 | case es_reg: case ss_reg: case cs_reg: | |
15834 | case ds_reg: case fs_reg: case gs_reg: | |
15835 | s = names_seg[code - es_reg]; | |
15836 | break; | |
15837 | case al_reg: case ah_reg: case cl_reg: case ch_reg: | |
15838 | case dl_reg: case dh_reg: case bl_reg: case bh_reg: | |
52b15da3 JH |
15839 | USED_REX (0); |
15840 | if (rex) | |
15841 | s = names8rex[code - al_reg]; | |
15842 | else | |
15843 | s = names8[code - al_reg]; | |
252b5132 RH |
15844 | break; |
15845 | case eAX_reg: case eCX_reg: case eDX_reg: case eBX_reg: | |
15846 | case eSP_reg: case eBP_reg: case eSI_reg: case eDI_reg: | |
161a04f6 L |
15847 | USED_REX (REX_W); |
15848 | if (rex & REX_W) | |
52b15da3 | 15849 | s = names64[code - eAX_reg]; |
252b5132 | 15850 | else |
f16cd0d5 L |
15851 | { |
15852 | if (sizeflag & DFLAG) | |
15853 | s = names32[code - eAX_reg]; | |
15854 | else | |
15855 | s = names16[code - eAX_reg]; | |
15856 | used_prefixes |= (prefixes & PREFIX_DATA); | |
15857 | } | |
252b5132 | 15858 | break; |
52fd6d94 | 15859 | case z_mode_ax_reg: |
161a04f6 | 15860 | if ((rex & REX_W) || (sizeflag & DFLAG)) |
52fd6d94 JB |
15861 | s = *names32; |
15862 | else | |
15863 | s = *names16; | |
161a04f6 | 15864 | if (!(rex & REX_W)) |
52fd6d94 JB |
15865 | used_prefixes |= (prefixes & PREFIX_DATA); |
15866 | break; | |
252b5132 RH |
15867 | default: |
15868 | s = INTERNAL_DISASSEMBLER_ERROR; | |
15869 | break; | |
15870 | } | |
15871 | oappend (s); | |
15872 | } | |
15873 | ||
15874 | static void | |
26ca5450 | 15875 | OP_I (int bytemode, int sizeflag) |
252b5132 | 15876 | { |
52b15da3 JH |
15877 | bfd_signed_vma op; |
15878 | bfd_signed_vma mask = -1; | |
252b5132 RH |
15879 | |
15880 | switch (bytemode) | |
15881 | { | |
15882 | case b_mode: | |
15883 | FETCH_DATA (the_info, codep + 1); | |
52b15da3 JH |
15884 | op = *codep++; |
15885 | mask = 0xff; | |
15886 | break; | |
15887 | case q_mode: | |
cb712a9e | 15888 | if (address_mode == mode_64bit) |
6439fc28 AM |
15889 | { |
15890 | op = get32s (); | |
15891 | break; | |
15892 | } | |
6608db57 | 15893 | /* Fall through. */ |
252b5132 | 15894 | case v_mode: |
161a04f6 L |
15895 | USED_REX (REX_W); |
15896 | if (rex & REX_W) | |
52b15da3 | 15897 | op = get32s (); |
252b5132 | 15898 | else |
52b15da3 | 15899 | { |
f16cd0d5 L |
15900 | if (sizeflag & DFLAG) |
15901 | { | |
15902 | op = get32 (); | |
15903 | mask = 0xffffffff; | |
15904 | } | |
15905 | else | |
15906 | { | |
15907 | op = get16 (); | |
15908 | mask = 0xfffff; | |
15909 | } | |
15910 | used_prefixes |= (prefixes & PREFIX_DATA); | |
52b15da3 | 15911 | } |
252b5132 RH |
15912 | break; |
15913 | case w_mode: | |
52b15da3 | 15914 | mask = 0xfffff; |
252b5132 RH |
15915 | op = get16 (); |
15916 | break; | |
9306ca4a JB |
15917 | case const_1_mode: |
15918 | if (intel_syntax) | |
6c067bbb | 15919 | oappend ("1"); |
9306ca4a | 15920 | return; |
252b5132 RH |
15921 | default: |
15922 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
15923 | return; | |
15924 | } | |
15925 | ||
52b15da3 JH |
15926 | op &= mask; |
15927 | scratchbuf[0] = '$'; | |
d708bcba | 15928 | print_operand_value (scratchbuf + 1, 1, op); |
9ce09ba2 | 15929 | oappend_maybe_intel (scratchbuf); |
52b15da3 JH |
15930 | scratchbuf[0] = '\0'; |
15931 | } | |
15932 | ||
15933 | static void | |
26ca5450 | 15934 | OP_I64 (int bytemode, int sizeflag) |
52b15da3 JH |
15935 | { |
15936 | bfd_signed_vma op; | |
15937 | bfd_signed_vma mask = -1; | |
15938 | ||
cb712a9e | 15939 | if (address_mode != mode_64bit) |
6439fc28 AM |
15940 | { |
15941 | OP_I (bytemode, sizeflag); | |
15942 | return; | |
15943 | } | |
15944 | ||
52b15da3 JH |
15945 | switch (bytemode) |
15946 | { | |
15947 | case b_mode: | |
15948 | FETCH_DATA (the_info, codep + 1); | |
15949 | op = *codep++; | |
15950 | mask = 0xff; | |
15951 | break; | |
15952 | case v_mode: | |
161a04f6 L |
15953 | USED_REX (REX_W); |
15954 | if (rex & REX_W) | |
52b15da3 | 15955 | op = get64 (); |
52b15da3 JH |
15956 | else |
15957 | { | |
f16cd0d5 L |
15958 | if (sizeflag & DFLAG) |
15959 | { | |
15960 | op = get32 (); | |
15961 | mask = 0xffffffff; | |
15962 | } | |
15963 | else | |
15964 | { | |
15965 | op = get16 (); | |
15966 | mask = 0xfffff; | |
15967 | } | |
15968 | used_prefixes |= (prefixes & PREFIX_DATA); | |
52b15da3 | 15969 | } |
52b15da3 JH |
15970 | break; |
15971 | case w_mode: | |
15972 | mask = 0xfffff; | |
15973 | op = get16 (); | |
15974 | break; | |
15975 | default: | |
15976 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
15977 | return; | |
15978 | } | |
15979 | ||
15980 | op &= mask; | |
15981 | scratchbuf[0] = '$'; | |
d708bcba | 15982 | print_operand_value (scratchbuf + 1, 1, op); |
9ce09ba2 | 15983 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
15984 | scratchbuf[0] = '\0'; |
15985 | } | |
15986 | ||
15987 | static void | |
26ca5450 | 15988 | OP_sI (int bytemode, int sizeflag) |
252b5132 | 15989 | { |
52b15da3 | 15990 | bfd_signed_vma op; |
252b5132 RH |
15991 | |
15992 | switch (bytemode) | |
15993 | { | |
15994 | case b_mode: | |
e3949f17 | 15995 | case b_T_mode: |
252b5132 RH |
15996 | FETCH_DATA (the_info, codep + 1); |
15997 | op = *codep++; | |
15998 | if ((op & 0x80) != 0) | |
15999 | op -= 0x100; | |
e3949f17 L |
16000 | if (bytemode == b_T_mode) |
16001 | { | |
16002 | if (address_mode != mode_64bit | |
7bb15c6f | 16003 | || !((sizeflag & DFLAG) || (rex & REX_W))) |
e3949f17 | 16004 | { |
6c067bbb RM |
16005 | /* The operand-size prefix is overridden by a REX prefix. */ |
16006 | if ((sizeflag & DFLAG) || (rex & REX_W)) | |
e3949f17 L |
16007 | op &= 0xffffffff; |
16008 | else | |
16009 | op &= 0xffff; | |
16010 | } | |
16011 | } | |
16012 | else | |
16013 | { | |
16014 | if (!(rex & REX_W)) | |
16015 | { | |
16016 | if (sizeflag & DFLAG) | |
16017 | op &= 0xffffffff; | |
16018 | else | |
16019 | op &= 0xffff; | |
16020 | } | |
16021 | } | |
252b5132 RH |
16022 | break; |
16023 | case v_mode: | |
7bb15c6f RM |
16024 | /* The operand-size prefix is overridden by a REX prefix. */ |
16025 | if ((sizeflag & DFLAG) || (rex & REX_W)) | |
52b15da3 | 16026 | op = get32s (); |
252b5132 | 16027 | else |
d9e3625e | 16028 | op = get16 (); |
252b5132 RH |
16029 | break; |
16030 | default: | |
16031 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
16032 | return; | |
16033 | } | |
52b15da3 JH |
16034 | |
16035 | scratchbuf[0] = '$'; | |
16036 | print_operand_value (scratchbuf + 1, 1, op); | |
9ce09ba2 | 16037 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
16038 | } |
16039 | ||
16040 | static void | |
26ca5450 | 16041 | OP_J (int bytemode, int sizeflag) |
252b5132 | 16042 | { |
52b15da3 | 16043 | bfd_vma disp; |
7081ff04 | 16044 | bfd_vma mask = -1; |
65ca155d | 16045 | bfd_vma segment = 0; |
252b5132 RH |
16046 | |
16047 | switch (bytemode) | |
16048 | { | |
16049 | case b_mode: | |
16050 | FETCH_DATA (the_info, codep + 1); | |
16051 | disp = *codep++; | |
16052 | if ((disp & 0x80) != 0) | |
16053 | disp -= 0x100; | |
16054 | break; | |
16055 | case v_mode: | |
5db04b09 L |
16056 | if (isa64 == amd64) |
16057 | USED_REX (REX_W); | |
16058 | if ((sizeflag & DFLAG) | |
16059 | || (address_mode == mode_64bit | |
16060 | && (isa64 != amd64 || (rex & REX_W)))) | |
52b15da3 | 16061 | disp = get32s (); |
252b5132 RH |
16062 | else |
16063 | { | |
16064 | disp = get16 (); | |
206717e8 L |
16065 | if ((disp & 0x8000) != 0) |
16066 | disp -= 0x10000; | |
65ca155d L |
16067 | /* In 16bit mode, address is wrapped around at 64k within |
16068 | the same segment. Otherwise, a data16 prefix on a jump | |
16069 | instruction means that the pc is masked to 16 bits after | |
16070 | the displacement is added! */ | |
16071 | mask = 0xffff; | |
16072 | if ((prefixes & PREFIX_DATA) == 0) | |
4fd7268a | 16073 | segment = ((start_pc + (codep - start_codep)) |
65ca155d | 16074 | & ~((bfd_vma) 0xffff)); |
252b5132 | 16075 | } |
5db04b09 L |
16076 | if (address_mode != mode_64bit |
16077 | || (isa64 == amd64 && !(rex & REX_W))) | |
f16cd0d5 | 16078 | used_prefixes |= (prefixes & PREFIX_DATA); |
252b5132 RH |
16079 | break; |
16080 | default: | |
16081 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
16082 | return; | |
16083 | } | |
42d5f9c6 | 16084 | disp = ((start_pc + (codep - start_codep) + disp) & mask) | segment; |
52b15da3 JH |
16085 | set_op (disp, 0); |
16086 | print_operand_value (scratchbuf, 1, disp); | |
252b5132 RH |
16087 | oappend (scratchbuf); |
16088 | } | |
16089 | ||
252b5132 | 16090 | static void |
ed7841b3 | 16091 | OP_SEG (int bytemode, int sizeflag) |
252b5132 | 16092 | { |
ed7841b3 | 16093 | if (bytemode == w_mode) |
7967e09e | 16094 | oappend (names_seg[modrm.reg]); |
ed7841b3 | 16095 | else |
7967e09e | 16096 | OP_E (modrm.mod == 3 ? bytemode : w_mode, sizeflag); |
252b5132 RH |
16097 | } |
16098 | ||
16099 | static void | |
26ca5450 | 16100 | OP_DIR (int dummy ATTRIBUTE_UNUSED, int sizeflag) |
252b5132 RH |
16101 | { |
16102 | int seg, offset; | |
16103 | ||
c608c12e | 16104 | if (sizeflag & DFLAG) |
252b5132 | 16105 | { |
c608c12e AM |
16106 | offset = get32 (); |
16107 | seg = get16 (); | |
252b5132 | 16108 | } |
c608c12e AM |
16109 | else |
16110 | { | |
16111 | offset = get16 (); | |
16112 | seg = get16 (); | |
16113 | } | |
7d421014 | 16114 | used_prefixes |= (prefixes & PREFIX_DATA); |
d708bcba | 16115 | if (intel_syntax) |
3f31e633 | 16116 | sprintf (scratchbuf, "0x%x:0x%x", seg, offset); |
d708bcba AM |
16117 | else |
16118 | sprintf (scratchbuf, "$0x%x,$0x%x", seg, offset); | |
c608c12e | 16119 | oappend (scratchbuf); |
252b5132 RH |
16120 | } |
16121 | ||
252b5132 | 16122 | static void |
3f31e633 | 16123 | OP_OFF (int bytemode, int sizeflag) |
252b5132 | 16124 | { |
52b15da3 | 16125 | bfd_vma off; |
252b5132 | 16126 | |
3f31e633 JB |
16127 | if (intel_syntax && (sizeflag & SUFFIX_ALWAYS)) |
16128 | intel_operand_size (bytemode, sizeflag); | |
252b5132 RH |
16129 | append_seg (); |
16130 | ||
cb712a9e | 16131 | if ((sizeflag & AFLAG) || address_mode == mode_64bit) |
252b5132 RH |
16132 | off = get32 (); |
16133 | else | |
16134 | off = get16 (); | |
16135 | ||
16136 | if (intel_syntax) | |
16137 | { | |
285ca992 | 16138 | if (!active_seg_prefix) |
252b5132 | 16139 | { |
d708bcba | 16140 | oappend (names_seg[ds_reg - es_reg]); |
252b5132 RH |
16141 | oappend (":"); |
16142 | } | |
16143 | } | |
52b15da3 JH |
16144 | print_operand_value (scratchbuf, 1, off); |
16145 | oappend (scratchbuf); | |
16146 | } | |
6439fc28 | 16147 | |
52b15da3 | 16148 | static void |
3f31e633 | 16149 | OP_OFF64 (int bytemode, int sizeflag) |
52b15da3 JH |
16150 | { |
16151 | bfd_vma off; | |
16152 | ||
539e75ad L |
16153 | if (address_mode != mode_64bit |
16154 | || (prefixes & PREFIX_ADDR)) | |
6439fc28 AM |
16155 | { |
16156 | OP_OFF (bytemode, sizeflag); | |
16157 | return; | |
16158 | } | |
16159 | ||
3f31e633 JB |
16160 | if (intel_syntax && (sizeflag & SUFFIX_ALWAYS)) |
16161 | intel_operand_size (bytemode, sizeflag); | |
52b15da3 JH |
16162 | append_seg (); |
16163 | ||
6608db57 | 16164 | off = get64 (); |
52b15da3 JH |
16165 | |
16166 | if (intel_syntax) | |
16167 | { | |
285ca992 | 16168 | if (!active_seg_prefix) |
52b15da3 | 16169 | { |
d708bcba | 16170 | oappend (names_seg[ds_reg - es_reg]); |
52b15da3 JH |
16171 | oappend (":"); |
16172 | } | |
16173 | } | |
16174 | print_operand_value (scratchbuf, 1, off); | |
252b5132 RH |
16175 | oappend (scratchbuf); |
16176 | } | |
16177 | ||
16178 | static void | |
26ca5450 | 16179 | ptr_reg (int code, int sizeflag) |
252b5132 | 16180 | { |
2da11e11 | 16181 | const char *s; |
d708bcba | 16182 | |
1d9f512f | 16183 | *obufp++ = open_char; |
20f0a1fc | 16184 | used_prefixes |= (prefixes & PREFIX_ADDR); |
cb712a9e | 16185 | if (address_mode == mode_64bit) |
c1a64871 JH |
16186 | { |
16187 | if (!(sizeflag & AFLAG)) | |
db6eb5be | 16188 | s = names32[code - eAX_reg]; |
c1a64871 | 16189 | else |
db6eb5be | 16190 | s = names64[code - eAX_reg]; |
c1a64871 | 16191 | } |
52b15da3 | 16192 | else if (sizeflag & AFLAG) |
252b5132 RH |
16193 | s = names32[code - eAX_reg]; |
16194 | else | |
16195 | s = names16[code - eAX_reg]; | |
16196 | oappend (s); | |
1d9f512f AM |
16197 | *obufp++ = close_char; |
16198 | *obufp = 0; | |
252b5132 RH |
16199 | } |
16200 | ||
16201 | static void | |
26ca5450 | 16202 | OP_ESreg (int code, int sizeflag) |
252b5132 | 16203 | { |
9306ca4a | 16204 | if (intel_syntax) |
52fd6d94 JB |
16205 | { |
16206 | switch (codep[-1]) | |
16207 | { | |
16208 | case 0x6d: /* insw/insl */ | |
16209 | intel_operand_size (z_mode, sizeflag); | |
16210 | break; | |
16211 | case 0xa5: /* movsw/movsl/movsq */ | |
16212 | case 0xa7: /* cmpsw/cmpsl/cmpsq */ | |
16213 | case 0xab: /* stosw/stosl */ | |
16214 | case 0xaf: /* scasw/scasl */ | |
16215 | intel_operand_size (v_mode, sizeflag); | |
16216 | break; | |
16217 | default: | |
16218 | intel_operand_size (b_mode, sizeflag); | |
16219 | } | |
16220 | } | |
9ce09ba2 | 16221 | oappend_maybe_intel ("%es:"); |
252b5132 RH |
16222 | ptr_reg (code, sizeflag); |
16223 | } | |
16224 | ||
16225 | static void | |
26ca5450 | 16226 | OP_DSreg (int code, int sizeflag) |
252b5132 | 16227 | { |
9306ca4a | 16228 | if (intel_syntax) |
52fd6d94 JB |
16229 | { |
16230 | switch (codep[-1]) | |
16231 | { | |
16232 | case 0x6f: /* outsw/outsl */ | |
16233 | intel_operand_size (z_mode, sizeflag); | |
16234 | break; | |
16235 | case 0xa5: /* movsw/movsl/movsq */ | |
16236 | case 0xa7: /* cmpsw/cmpsl/cmpsq */ | |
16237 | case 0xad: /* lodsw/lodsl/lodsq */ | |
16238 | intel_operand_size (v_mode, sizeflag); | |
16239 | break; | |
16240 | default: | |
16241 | intel_operand_size (b_mode, sizeflag); | |
16242 | } | |
16243 | } | |
285ca992 L |
16244 | /* Set active_seg_prefix to PREFIX_DS if it is unset so that the |
16245 | default segment register DS is printed. */ | |
16246 | if (!active_seg_prefix) | |
16247 | active_seg_prefix = PREFIX_DS; | |
6608db57 | 16248 | append_seg (); |
252b5132 RH |
16249 | ptr_reg (code, sizeflag); |
16250 | } | |
16251 | ||
252b5132 | 16252 | static void |
26ca5450 | 16253 | OP_C (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 16254 | { |
9b60702d | 16255 | int add; |
161a04f6 | 16256 | if (rex & REX_R) |
c4a530c5 | 16257 | { |
161a04f6 | 16258 | USED_REX (REX_R); |
c4a530c5 JB |
16259 | add = 8; |
16260 | } | |
cb712a9e | 16261 | else if (address_mode != mode_64bit && (prefixes & PREFIX_LOCK)) |
c4a530c5 | 16262 | { |
f16cd0d5 | 16263 | all_prefixes[last_lock_prefix] = 0; |
c4a530c5 JB |
16264 | used_prefixes |= PREFIX_LOCK; |
16265 | add = 8; | |
16266 | } | |
9b60702d L |
16267 | else |
16268 | add = 0; | |
7967e09e | 16269 | sprintf (scratchbuf, "%%cr%d", modrm.reg + add); |
9ce09ba2 | 16270 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
16271 | } |
16272 | ||
252b5132 | 16273 | static void |
26ca5450 | 16274 | OP_D (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 16275 | { |
9b60702d | 16276 | int add; |
161a04f6 L |
16277 | USED_REX (REX_R); |
16278 | if (rex & REX_R) | |
52b15da3 | 16279 | add = 8; |
9b60702d L |
16280 | else |
16281 | add = 0; | |
d708bcba | 16282 | if (intel_syntax) |
7967e09e | 16283 | sprintf (scratchbuf, "db%d", modrm.reg + add); |
d708bcba | 16284 | else |
7967e09e | 16285 | sprintf (scratchbuf, "%%db%d", modrm.reg + add); |
252b5132 RH |
16286 | oappend (scratchbuf); |
16287 | } | |
16288 | ||
252b5132 | 16289 | static void |
26ca5450 | 16290 | OP_T (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 16291 | { |
7967e09e | 16292 | sprintf (scratchbuf, "%%tr%d", modrm.reg); |
9ce09ba2 | 16293 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
16294 | } |
16295 | ||
16296 | static void | |
6f74c397 | 16297 | OP_R (int bytemode, int sizeflag) |
252b5132 | 16298 | { |
68f34464 L |
16299 | /* Skip mod/rm byte. */ |
16300 | MODRM_CHECK; | |
16301 | codep++; | |
16302 | OP_E_register (bytemode, sizeflag); | |
252b5132 RH |
16303 | } |
16304 | ||
16305 | static void | |
26ca5450 | 16306 | OP_MMX (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 16307 | { |
b9733481 L |
16308 | int reg = modrm.reg; |
16309 | const char **names; | |
16310 | ||
041bd2e0 JH |
16311 | used_prefixes |= (prefixes & PREFIX_DATA); |
16312 | if (prefixes & PREFIX_DATA) | |
20f0a1fc | 16313 | { |
b9733481 | 16314 | names = names_xmm; |
161a04f6 L |
16315 | USED_REX (REX_R); |
16316 | if (rex & REX_R) | |
b9733481 | 16317 | reg += 8; |
20f0a1fc | 16318 | } |
041bd2e0 | 16319 | else |
b9733481 L |
16320 | names = names_mm; |
16321 | oappend (names[reg]); | |
252b5132 RH |
16322 | } |
16323 | ||
c608c12e | 16324 | static void |
c0f3af97 | 16325 | OP_XMM (int bytemode, int sizeflag ATTRIBUTE_UNUSED) |
c608c12e | 16326 | { |
b9733481 L |
16327 | int reg = modrm.reg; |
16328 | const char **names; | |
16329 | ||
161a04f6 L |
16330 | USED_REX (REX_R); |
16331 | if (rex & REX_R) | |
b9733481 | 16332 | reg += 8; |
43234a1e L |
16333 | if (vex.evex) |
16334 | { | |
16335 | if (!vex.r) | |
16336 | reg += 16; | |
16337 | } | |
16338 | ||
539f890d L |
16339 | if (need_vex |
16340 | && bytemode != xmm_mode | |
43234a1e L |
16341 | && bytemode != xmmq_mode |
16342 | && bytemode != evex_half_bcst_xmmq_mode | |
16343 | && bytemode != ymm_mode | |
539f890d | 16344 | && bytemode != scalar_mode) |
c0f3af97 L |
16345 | { |
16346 | switch (vex.length) | |
16347 | { | |
16348 | case 128: | |
b9733481 | 16349 | names = names_xmm; |
c0f3af97 L |
16350 | break; |
16351 | case 256: | |
5fc35d96 IT |
16352 | if (vex.w |
16353 | || (bytemode != vex_vsib_q_w_dq_mode | |
16354 | && bytemode != vex_vsib_q_w_d_mode)) | |
6c30d220 L |
16355 | names = names_ymm; |
16356 | else | |
16357 | names = names_xmm; | |
c0f3af97 | 16358 | break; |
43234a1e L |
16359 | case 512: |
16360 | names = names_zmm; | |
16361 | break; | |
c0f3af97 L |
16362 | default: |
16363 | abort (); | |
16364 | } | |
16365 | } | |
43234a1e L |
16366 | else if (bytemode == xmmq_mode |
16367 | || bytemode == evex_half_bcst_xmmq_mode) | |
16368 | { | |
16369 | switch (vex.length) | |
16370 | { | |
16371 | case 128: | |
16372 | case 256: | |
16373 | names = names_xmm; | |
16374 | break; | |
16375 | case 512: | |
16376 | names = names_ymm; | |
16377 | break; | |
16378 | default: | |
16379 | abort (); | |
16380 | } | |
16381 | } | |
16382 | else if (bytemode == ymm_mode) | |
16383 | names = names_ymm; | |
c0f3af97 | 16384 | else |
b9733481 L |
16385 | names = names_xmm; |
16386 | oappend (names[reg]); | |
c608c12e AM |
16387 | } |
16388 | ||
252b5132 | 16389 | static void |
26ca5450 | 16390 | OP_EM (int bytemode, int sizeflag) |
252b5132 | 16391 | { |
b9733481 L |
16392 | int reg; |
16393 | const char **names; | |
16394 | ||
7967e09e | 16395 | if (modrm.mod != 3) |
252b5132 | 16396 | { |
b6169b20 L |
16397 | if (intel_syntax |
16398 | && (bytemode == v_mode || bytemode == v_swap_mode)) | |
9306ca4a JB |
16399 | { |
16400 | bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode; | |
16401 | used_prefixes |= (prefixes & PREFIX_DATA); | |
6c067bbb | 16402 | } |
252b5132 RH |
16403 | OP_E (bytemode, sizeflag); |
16404 | return; | |
16405 | } | |
16406 | ||
b6169b20 L |
16407 | if ((sizeflag & SUFFIX_ALWAYS) && bytemode == v_swap_mode) |
16408 | swap_operand (); | |
16409 | ||
6608db57 | 16410 | /* Skip mod/rm byte. */ |
4bba6815 | 16411 | MODRM_CHECK; |
252b5132 | 16412 | codep++; |
041bd2e0 | 16413 | used_prefixes |= (prefixes & PREFIX_DATA); |
b9733481 | 16414 | reg = modrm.rm; |
041bd2e0 | 16415 | if (prefixes & PREFIX_DATA) |
20f0a1fc | 16416 | { |
b9733481 | 16417 | names = names_xmm; |
161a04f6 L |
16418 | USED_REX (REX_B); |
16419 | if (rex & REX_B) | |
b9733481 | 16420 | reg += 8; |
20f0a1fc | 16421 | } |
041bd2e0 | 16422 | else |
b9733481 L |
16423 | names = names_mm; |
16424 | oappend (names[reg]); | |
252b5132 RH |
16425 | } |
16426 | ||
246c51aa L |
16427 | /* cvt* are the only instructions in sse2 which have |
16428 | both SSE and MMX operands and also have 0x66 prefix | |
16429 | in their opcode. 0x66 was originally used to differentiate | |
16430 | between SSE and MMX instruction(operands). So we have to handle the | |
4d9567e0 MM |
16431 | cvt* separately using OP_EMC and OP_MXC */ |
16432 | static void | |
16433 | OP_EMC (int bytemode, int sizeflag) | |
16434 | { | |
7967e09e | 16435 | if (modrm.mod != 3) |
4d9567e0 MM |
16436 | { |
16437 | if (intel_syntax && bytemode == v_mode) | |
16438 | { | |
16439 | bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode; | |
16440 | used_prefixes |= (prefixes & PREFIX_DATA); | |
6c067bbb | 16441 | } |
4d9567e0 MM |
16442 | OP_E (bytemode, sizeflag); |
16443 | return; | |
16444 | } | |
246c51aa | 16445 | |
4d9567e0 MM |
16446 | /* Skip mod/rm byte. */ |
16447 | MODRM_CHECK; | |
16448 | codep++; | |
16449 | used_prefixes |= (prefixes & PREFIX_DATA); | |
b9733481 | 16450 | oappend (names_mm[modrm.rm]); |
4d9567e0 MM |
16451 | } |
16452 | ||
16453 | static void | |
16454 | OP_MXC (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
16455 | { | |
16456 | used_prefixes |= (prefixes & PREFIX_DATA); | |
b9733481 | 16457 | oappend (names_mm[modrm.reg]); |
4d9567e0 MM |
16458 | } |
16459 | ||
c608c12e | 16460 | static void |
26ca5450 | 16461 | OP_EX (int bytemode, int sizeflag) |
c608c12e | 16462 | { |
b9733481 L |
16463 | int reg; |
16464 | const char **names; | |
d6f574e0 L |
16465 | |
16466 | /* Skip mod/rm byte. */ | |
16467 | MODRM_CHECK; | |
16468 | codep++; | |
16469 | ||
7967e09e | 16470 | if (modrm.mod != 3) |
c608c12e | 16471 | { |
c1e679ec | 16472 | OP_E_memory (bytemode, sizeflag); |
c608c12e AM |
16473 | return; |
16474 | } | |
d6f574e0 | 16475 | |
b9733481 | 16476 | reg = modrm.rm; |
161a04f6 L |
16477 | USED_REX (REX_B); |
16478 | if (rex & REX_B) | |
b9733481 | 16479 | reg += 8; |
43234a1e L |
16480 | if (vex.evex) |
16481 | { | |
16482 | USED_REX (REX_X); | |
16483 | if ((rex & REX_X)) | |
16484 | reg += 16; | |
16485 | } | |
c608c12e | 16486 | |
b6169b20 | 16487 | if ((sizeflag & SUFFIX_ALWAYS) |
fa99fab2 L |
16488 | && (bytemode == x_swap_mode |
16489 | || bytemode == d_swap_mode | |
7bb15c6f | 16490 | || bytemode == d_scalar_swap_mode |
539f890d L |
16491 | || bytemode == q_swap_mode |
16492 | || bytemode == q_scalar_swap_mode)) | |
b6169b20 L |
16493 | swap_operand (); |
16494 | ||
c0f3af97 L |
16495 | if (need_vex |
16496 | && bytemode != xmm_mode | |
6c30d220 L |
16497 | && bytemode != xmmdw_mode |
16498 | && bytemode != xmmqd_mode | |
16499 | && bytemode != xmm_mb_mode | |
16500 | && bytemode != xmm_mw_mode | |
16501 | && bytemode != xmm_md_mode | |
16502 | && bytemode != xmm_mq_mode | |
43234a1e | 16503 | && bytemode != xmm_mdq_mode |
539f890d | 16504 | && bytemode != xmmq_mode |
43234a1e L |
16505 | && bytemode != evex_half_bcst_xmmq_mode |
16506 | && bytemode != ymm_mode | |
539f890d | 16507 | && bytemode != d_scalar_mode |
7bb15c6f | 16508 | && bytemode != d_scalar_swap_mode |
539f890d | 16509 | && bytemode != q_scalar_mode |
1c480963 L |
16510 | && bytemode != q_scalar_swap_mode |
16511 | && bytemode != vex_scalar_w_dq_mode) | |
c0f3af97 L |
16512 | { |
16513 | switch (vex.length) | |
16514 | { | |
16515 | case 128: | |
b9733481 | 16516 | names = names_xmm; |
c0f3af97 L |
16517 | break; |
16518 | case 256: | |
b9733481 | 16519 | names = names_ymm; |
c0f3af97 | 16520 | break; |
43234a1e L |
16521 | case 512: |
16522 | names = names_zmm; | |
16523 | break; | |
c0f3af97 L |
16524 | default: |
16525 | abort (); | |
16526 | } | |
16527 | } | |
43234a1e L |
16528 | else if (bytemode == xmmq_mode |
16529 | || bytemode == evex_half_bcst_xmmq_mode) | |
16530 | { | |
16531 | switch (vex.length) | |
16532 | { | |
16533 | case 128: | |
16534 | case 256: | |
16535 | names = names_xmm; | |
16536 | break; | |
16537 | case 512: | |
16538 | names = names_ymm; | |
16539 | break; | |
16540 | default: | |
16541 | abort (); | |
16542 | } | |
16543 | } | |
16544 | else if (bytemode == ymm_mode) | |
16545 | names = names_ymm; | |
c0f3af97 | 16546 | else |
b9733481 L |
16547 | names = names_xmm; |
16548 | oappend (names[reg]); | |
c608c12e AM |
16549 | } |
16550 | ||
252b5132 | 16551 | static void |
26ca5450 | 16552 | OP_MS (int bytemode, int sizeflag) |
252b5132 | 16553 | { |
7967e09e | 16554 | if (modrm.mod == 3) |
2da11e11 AM |
16555 | OP_EM (bytemode, sizeflag); |
16556 | else | |
6608db57 | 16557 | BadOp (); |
252b5132 RH |
16558 | } |
16559 | ||
992aaec9 | 16560 | static void |
26ca5450 | 16561 | OP_XS (int bytemode, int sizeflag) |
992aaec9 | 16562 | { |
7967e09e | 16563 | if (modrm.mod == 3) |
992aaec9 AM |
16564 | OP_EX (bytemode, sizeflag); |
16565 | else | |
6608db57 | 16566 | BadOp (); |
992aaec9 AM |
16567 | } |
16568 | ||
cc0ec051 AM |
16569 | static void |
16570 | OP_M (int bytemode, int sizeflag) | |
16571 | { | |
7967e09e | 16572 | if (modrm.mod == 3) |
75413a22 L |
16573 | /* bad bound,lea,lds,les,lfs,lgs,lss,cmpxchg8b,vmptrst modrm */ |
16574 | BadOp (); | |
cc0ec051 AM |
16575 | else |
16576 | OP_E (bytemode, sizeflag); | |
16577 | } | |
16578 | ||
16579 | static void | |
16580 | OP_0f07 (int bytemode, int sizeflag) | |
16581 | { | |
7967e09e | 16582 | if (modrm.mod != 3 || modrm.rm != 0) |
cc0ec051 AM |
16583 | BadOp (); |
16584 | else | |
16585 | OP_E (bytemode, sizeflag); | |
16586 | } | |
16587 | ||
46e883c5 | 16588 | /* NOP is an alias of "xchg %ax,%ax" in 16bit mode, "xchg %eax,%eax" in |
246c51aa | 16589 | 32bit mode and "xchg %rax,%rax" in 64bit mode. */ |
46e883c5 | 16590 | |
cc0ec051 | 16591 | static void |
46e883c5 | 16592 | NOP_Fixup1 (int bytemode, int sizeflag) |
cc0ec051 | 16593 | { |
8b38ad71 L |
16594 | if ((prefixes & PREFIX_DATA) != 0 |
16595 | || (rex != 0 | |
16596 | && rex != 0x48 | |
16597 | && address_mode == mode_64bit)) | |
46e883c5 L |
16598 | OP_REG (bytemode, sizeflag); |
16599 | else | |
16600 | strcpy (obuf, "nop"); | |
16601 | } | |
16602 | ||
16603 | static void | |
16604 | NOP_Fixup2 (int bytemode, int sizeflag) | |
16605 | { | |
8b38ad71 L |
16606 | if ((prefixes & PREFIX_DATA) != 0 |
16607 | || (rex != 0 | |
16608 | && rex != 0x48 | |
16609 | && address_mode == mode_64bit)) | |
46e883c5 | 16610 | OP_IMREG (bytemode, sizeflag); |
cc0ec051 AM |
16611 | } |
16612 | ||
84037f8c | 16613 | static const char *const Suffix3DNow[] = { |
252b5132 RH |
16614 | /* 00 */ NULL, NULL, NULL, NULL, |
16615 | /* 04 */ NULL, NULL, NULL, NULL, | |
16616 | /* 08 */ NULL, NULL, NULL, NULL, | |
9e525108 | 16617 | /* 0C */ "pi2fw", "pi2fd", NULL, NULL, |
252b5132 RH |
16618 | /* 10 */ NULL, NULL, NULL, NULL, |
16619 | /* 14 */ NULL, NULL, NULL, NULL, | |
16620 | /* 18 */ NULL, NULL, NULL, NULL, | |
9e525108 | 16621 | /* 1C */ "pf2iw", "pf2id", NULL, NULL, |
252b5132 RH |
16622 | /* 20 */ NULL, NULL, NULL, NULL, |
16623 | /* 24 */ NULL, NULL, NULL, NULL, | |
16624 | /* 28 */ NULL, NULL, NULL, NULL, | |
16625 | /* 2C */ NULL, NULL, NULL, NULL, | |
16626 | /* 30 */ NULL, NULL, NULL, NULL, | |
16627 | /* 34 */ NULL, NULL, NULL, NULL, | |
16628 | /* 38 */ NULL, NULL, NULL, NULL, | |
16629 | /* 3C */ NULL, NULL, NULL, NULL, | |
16630 | /* 40 */ NULL, NULL, NULL, NULL, | |
16631 | /* 44 */ NULL, NULL, NULL, NULL, | |
16632 | /* 48 */ NULL, NULL, NULL, NULL, | |
16633 | /* 4C */ NULL, NULL, NULL, NULL, | |
16634 | /* 50 */ NULL, NULL, NULL, NULL, | |
16635 | /* 54 */ NULL, NULL, NULL, NULL, | |
16636 | /* 58 */ NULL, NULL, NULL, NULL, | |
16637 | /* 5C */ NULL, NULL, NULL, NULL, | |
16638 | /* 60 */ NULL, NULL, NULL, NULL, | |
16639 | /* 64 */ NULL, NULL, NULL, NULL, | |
16640 | /* 68 */ NULL, NULL, NULL, NULL, | |
16641 | /* 6C */ NULL, NULL, NULL, NULL, | |
16642 | /* 70 */ NULL, NULL, NULL, NULL, | |
16643 | /* 74 */ NULL, NULL, NULL, NULL, | |
16644 | /* 78 */ NULL, NULL, NULL, NULL, | |
16645 | /* 7C */ NULL, NULL, NULL, NULL, | |
16646 | /* 80 */ NULL, NULL, NULL, NULL, | |
16647 | /* 84 */ NULL, NULL, NULL, NULL, | |
9e525108 AM |
16648 | /* 88 */ NULL, NULL, "pfnacc", NULL, |
16649 | /* 8C */ NULL, NULL, "pfpnacc", NULL, | |
252b5132 RH |
16650 | /* 90 */ "pfcmpge", NULL, NULL, NULL, |
16651 | /* 94 */ "pfmin", NULL, "pfrcp", "pfrsqrt", | |
16652 | /* 98 */ NULL, NULL, "pfsub", NULL, | |
16653 | /* 9C */ NULL, NULL, "pfadd", NULL, | |
16654 | /* A0 */ "pfcmpgt", NULL, NULL, NULL, | |
16655 | /* A4 */ "pfmax", NULL, "pfrcpit1", "pfrsqit1", | |
16656 | /* A8 */ NULL, NULL, "pfsubr", NULL, | |
16657 | /* AC */ NULL, NULL, "pfacc", NULL, | |
16658 | /* B0 */ "pfcmpeq", NULL, NULL, NULL, | |
9beff690 | 16659 | /* B4 */ "pfmul", NULL, "pfrcpit2", "pmulhrw", |
9e525108 | 16660 | /* B8 */ NULL, NULL, NULL, "pswapd", |
252b5132 RH |
16661 | /* BC */ NULL, NULL, NULL, "pavgusb", |
16662 | /* C0 */ NULL, NULL, NULL, NULL, | |
16663 | /* C4 */ NULL, NULL, NULL, NULL, | |
16664 | /* C8 */ NULL, NULL, NULL, NULL, | |
16665 | /* CC */ NULL, NULL, NULL, NULL, | |
16666 | /* D0 */ NULL, NULL, NULL, NULL, | |
16667 | /* D4 */ NULL, NULL, NULL, NULL, | |
16668 | /* D8 */ NULL, NULL, NULL, NULL, | |
16669 | /* DC */ NULL, NULL, NULL, NULL, | |
16670 | /* E0 */ NULL, NULL, NULL, NULL, | |
16671 | /* E4 */ NULL, NULL, NULL, NULL, | |
16672 | /* E8 */ NULL, NULL, NULL, NULL, | |
16673 | /* EC */ NULL, NULL, NULL, NULL, | |
16674 | /* F0 */ NULL, NULL, NULL, NULL, | |
16675 | /* F4 */ NULL, NULL, NULL, NULL, | |
16676 | /* F8 */ NULL, NULL, NULL, NULL, | |
16677 | /* FC */ NULL, NULL, NULL, NULL, | |
16678 | }; | |
16679 | ||
16680 | static void | |
26ca5450 | 16681 | OP_3DNowSuffix (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 RH |
16682 | { |
16683 | const char *mnemonic; | |
16684 | ||
16685 | FETCH_DATA (the_info, codep + 1); | |
16686 | /* AMD 3DNow! instructions are specified by an opcode suffix in the | |
16687 | place where an 8-bit immediate would normally go. ie. the last | |
16688 | byte of the instruction. */ | |
ea397f5b | 16689 | obufp = mnemonicendp; |
c608c12e | 16690 | mnemonic = Suffix3DNow[*codep++ & 0xff]; |
252b5132 | 16691 | if (mnemonic) |
2da11e11 | 16692 | oappend (mnemonic); |
252b5132 RH |
16693 | else |
16694 | { | |
16695 | /* Since a variable sized modrm/sib chunk is between the start | |
16696 | of the opcode (0x0f0f) and the opcode suffix, we need to do | |
16697 | all the modrm processing first, and don't know until now that | |
16698 | we have a bad opcode. This necessitates some cleaning up. */ | |
ce518a5f L |
16699 | op_out[0][0] = '\0'; |
16700 | op_out[1][0] = '\0'; | |
6608db57 | 16701 | BadOp (); |
252b5132 | 16702 | } |
ea397f5b | 16703 | mnemonicendp = obufp; |
252b5132 | 16704 | } |
c608c12e | 16705 | |
ea397f5b L |
16706 | static struct op simd_cmp_op[] = |
16707 | { | |
16708 | { STRING_COMMA_LEN ("eq") }, | |
16709 | { STRING_COMMA_LEN ("lt") }, | |
16710 | { STRING_COMMA_LEN ("le") }, | |
16711 | { STRING_COMMA_LEN ("unord") }, | |
16712 | { STRING_COMMA_LEN ("neq") }, | |
16713 | { STRING_COMMA_LEN ("nlt") }, | |
16714 | { STRING_COMMA_LEN ("nle") }, | |
16715 | { STRING_COMMA_LEN ("ord") } | |
c608c12e AM |
16716 | }; |
16717 | ||
16718 | static void | |
ad19981d | 16719 | CMP_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
c608c12e AM |
16720 | { |
16721 | unsigned int cmp_type; | |
16722 | ||
16723 | FETCH_DATA (the_info, codep + 1); | |
16724 | cmp_type = *codep++ & 0xff; | |
c0f3af97 | 16725 | if (cmp_type < ARRAY_SIZE (simd_cmp_op)) |
c608c12e | 16726 | { |
ad19981d | 16727 | char suffix [3]; |
ea397f5b | 16728 | char *p = mnemonicendp - 2; |
ad19981d L |
16729 | suffix[0] = p[0]; |
16730 | suffix[1] = p[1]; | |
16731 | suffix[2] = '\0'; | |
ea397f5b L |
16732 | sprintf (p, "%s%s", simd_cmp_op[cmp_type].name, suffix); |
16733 | mnemonicendp += simd_cmp_op[cmp_type].len; | |
c608c12e AM |
16734 | } |
16735 | else | |
16736 | { | |
ad19981d L |
16737 | /* We have a reserved extension byte. Output it directly. */ |
16738 | scratchbuf[0] = '$'; | |
16739 | print_operand_value (scratchbuf + 1, 1, cmp_type); | |
9ce09ba2 | 16740 | oappend_maybe_intel (scratchbuf); |
ad19981d | 16741 | scratchbuf[0] = '\0'; |
c608c12e AM |
16742 | } |
16743 | } | |
16744 | ||
9916071f AP |
16745 | static void |
16746 | OP_Mwaitx (int bytemode ATTRIBUTE_UNUSED, | |
16747 | int sizeflag ATTRIBUTE_UNUSED) | |
16748 | { | |
16749 | /* mwaitx %eax,%ecx,%ebx */ | |
16750 | if (!intel_syntax) | |
16751 | { | |
16752 | const char **names = (address_mode == mode_64bit | |
16753 | ? names64 : names32); | |
16754 | strcpy (op_out[0], names[0]); | |
16755 | strcpy (op_out[1], names[1]); | |
16756 | strcpy (op_out[2], names[3]); | |
16757 | two_source_ops = 1; | |
16758 | } | |
16759 | /* Skip mod/rm byte. */ | |
16760 | MODRM_CHECK; | |
16761 | codep++; | |
16762 | } | |
16763 | ||
ca164297 | 16764 | static void |
b844680a L |
16765 | OP_Mwait (int bytemode ATTRIBUTE_UNUSED, |
16766 | int sizeflag ATTRIBUTE_UNUSED) | |
16767 | { | |
16768 | /* mwait %eax,%ecx */ | |
16769 | if (!intel_syntax) | |
16770 | { | |
16771 | const char **names = (address_mode == mode_64bit | |
16772 | ? names64 : names32); | |
16773 | strcpy (op_out[0], names[0]); | |
16774 | strcpy (op_out[1], names[1]); | |
16775 | two_source_ops = 1; | |
16776 | } | |
16777 | /* Skip mod/rm byte. */ | |
16778 | MODRM_CHECK; | |
16779 | codep++; | |
16780 | } | |
16781 | ||
16782 | static void | |
16783 | OP_Monitor (int bytemode ATTRIBUTE_UNUSED, | |
16784 | int sizeflag ATTRIBUTE_UNUSED) | |
ca164297 | 16785 | { |
b844680a L |
16786 | /* monitor %eax,%ecx,%edx" */ |
16787 | if (!intel_syntax) | |
ca164297 | 16788 | { |
b844680a | 16789 | const char **op1_names; |
cb712a9e L |
16790 | const char **names = (address_mode == mode_64bit |
16791 | ? names64 : names32); | |
1d9f512f | 16792 | |
b844680a L |
16793 | if (!(prefixes & PREFIX_ADDR)) |
16794 | op1_names = (address_mode == mode_16bit | |
16795 | ? names16 : names); | |
ca164297 L |
16796 | else |
16797 | { | |
b844680a | 16798 | /* Remove "addr16/addr32". */ |
f16cd0d5 | 16799 | all_prefixes[last_addr_prefix] = 0; |
b844680a L |
16800 | op1_names = (address_mode != mode_32bit |
16801 | ? names32 : names16); | |
16802 | used_prefixes |= PREFIX_ADDR; | |
ca164297 | 16803 | } |
b844680a L |
16804 | strcpy (op_out[0], op1_names[0]); |
16805 | strcpy (op_out[1], names[1]); | |
16806 | strcpy (op_out[2], names[2]); | |
16807 | two_source_ops = 1; | |
ca164297 | 16808 | } |
b844680a L |
16809 | /* Skip mod/rm byte. */ |
16810 | MODRM_CHECK; | |
16811 | codep++; | |
30123838 JB |
16812 | } |
16813 | ||
6608db57 KH |
16814 | static void |
16815 | BadOp (void) | |
2da11e11 | 16816 | { |
6608db57 KH |
16817 | /* Throw away prefixes and 1st. opcode byte. */ |
16818 | codep = insn_codep + 1; | |
2da11e11 AM |
16819 | oappend ("(bad)"); |
16820 | } | |
4cc91dba | 16821 | |
35c52694 L |
16822 | static void |
16823 | REP_Fixup (int bytemode, int sizeflag) | |
16824 | { | |
16825 | /* The 0xf3 prefix should be displayed as "rep" for ins, outs, movs, | |
16826 | lods and stos. */ | |
35c52694 | 16827 | if (prefixes & PREFIX_REPZ) |
f16cd0d5 | 16828 | all_prefixes[last_repz_prefix] = REP_PREFIX; |
35c52694 L |
16829 | |
16830 | switch (bytemode) | |
16831 | { | |
16832 | case al_reg: | |
16833 | case eAX_reg: | |
16834 | case indir_dx_reg: | |
16835 | OP_IMREG (bytemode, sizeflag); | |
16836 | break; | |
16837 | case eDI_reg: | |
16838 | OP_ESreg (bytemode, sizeflag); | |
16839 | break; | |
16840 | case eSI_reg: | |
16841 | OP_DSreg (bytemode, sizeflag); | |
16842 | break; | |
16843 | default: | |
16844 | abort (); | |
16845 | break; | |
16846 | } | |
16847 | } | |
f5804c90 | 16848 | |
7e8b059b L |
16849 | /* For BND-prefixed instructions 0xF2 prefix should be displayed as |
16850 | "bnd". */ | |
16851 | ||
16852 | static void | |
16853 | BND_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
16854 | { | |
16855 | if (prefixes & PREFIX_REPNZ) | |
16856 | all_prefixes[last_repnz_prefix] = BND_PREFIX; | |
16857 | } | |
16858 | ||
04ef582a L |
16859 | /* For NOTRACK-prefixed instructions, 0x3E prefix should be displayed as |
16860 | "notrack". */ | |
16861 | ||
16862 | static void | |
16863 | NOTRACK_Fixup (int bytemode ATTRIBUTE_UNUSED, | |
16864 | int sizeflag ATTRIBUTE_UNUSED) | |
16865 | { | |
9fef80d6 | 16866 | if (active_seg_prefix == PREFIX_DS |
04ef582a L |
16867 | && (address_mode != mode_64bit || last_data_prefix < 0)) |
16868 | { | |
4e9ac44a | 16869 | /* NOTRACK prefix is only valid on indirect branch instructions. |
9fef80d6 | 16870 | NB: DATA prefix is unsupported for Intel64. */ |
04ef582a L |
16871 | active_seg_prefix = 0; |
16872 | all_prefixes[last_seg_prefix] = NOTRACK_PREFIX; | |
16873 | } | |
16874 | } | |
16875 | ||
42164a71 L |
16876 | /* Similar to OP_E. But the 0xf2/0xf3 prefixes should be displayed as |
16877 | "xacquire"/"xrelease" for memory operand if there is a LOCK prefix. | |
16878 | */ | |
16879 | ||
16880 | static void | |
16881 | HLE_Fixup1 (int bytemode, int sizeflag) | |
16882 | { | |
16883 | if (modrm.mod != 3 | |
16884 | && (prefixes & PREFIX_LOCK) != 0) | |
16885 | { | |
16886 | if (prefixes & PREFIX_REPZ) | |
16887 | all_prefixes[last_repz_prefix] = XRELEASE_PREFIX; | |
16888 | if (prefixes & PREFIX_REPNZ) | |
16889 | all_prefixes[last_repnz_prefix] = XACQUIRE_PREFIX; | |
16890 | } | |
16891 | ||
16892 | OP_E (bytemode, sizeflag); | |
16893 | } | |
16894 | ||
16895 | /* Similar to OP_E. But the 0xf2/0xf3 prefixes should be displayed as | |
16896 | "xacquire"/"xrelease" for memory operand. No check for LOCK prefix. | |
16897 | */ | |
16898 | ||
16899 | static void | |
16900 | HLE_Fixup2 (int bytemode, int sizeflag) | |
16901 | { | |
16902 | if (modrm.mod != 3) | |
16903 | { | |
16904 | if (prefixes & PREFIX_REPZ) | |
16905 | all_prefixes[last_repz_prefix] = XRELEASE_PREFIX; | |
16906 | if (prefixes & PREFIX_REPNZ) | |
16907 | all_prefixes[last_repnz_prefix] = XACQUIRE_PREFIX; | |
16908 | } | |
16909 | ||
16910 | OP_E (bytemode, sizeflag); | |
16911 | } | |
16912 | ||
16913 | /* Similar to OP_E. But the 0xf3 prefixes should be displayed as | |
16914 | "xrelease" for memory operand. No check for LOCK prefix. */ | |
16915 | ||
16916 | static void | |
16917 | HLE_Fixup3 (int bytemode, int sizeflag) | |
16918 | { | |
16919 | if (modrm.mod != 3 | |
16920 | && last_repz_prefix > last_repnz_prefix | |
16921 | && (prefixes & PREFIX_REPZ) != 0) | |
16922 | all_prefixes[last_repz_prefix] = XRELEASE_PREFIX; | |
16923 | ||
16924 | OP_E (bytemode, sizeflag); | |
16925 | } | |
16926 | ||
f5804c90 L |
16927 | static void |
16928 | CMPXCHG8B_Fixup (int bytemode, int sizeflag) | |
16929 | { | |
161a04f6 L |
16930 | USED_REX (REX_W); |
16931 | if (rex & REX_W) | |
f5804c90 L |
16932 | { |
16933 | /* Change cmpxchg8b to cmpxchg16b. */ | |
ea397f5b L |
16934 | char *p = mnemonicendp - 2; |
16935 | mnemonicendp = stpcpy (p, "16b"); | |
fb9c77c7 | 16936 | bytemode = o_mode; |
f5804c90 | 16937 | } |
42164a71 L |
16938 | else if ((prefixes & PREFIX_LOCK) != 0) |
16939 | { | |
16940 | if (prefixes & PREFIX_REPZ) | |
16941 | all_prefixes[last_repz_prefix] = XRELEASE_PREFIX; | |
16942 | if (prefixes & PREFIX_REPNZ) | |
16943 | all_prefixes[last_repnz_prefix] = XACQUIRE_PREFIX; | |
16944 | } | |
16945 | ||
f5804c90 L |
16946 | OP_M (bytemode, sizeflag); |
16947 | } | |
42903f7f L |
16948 | |
16949 | static void | |
16950 | XMM_Fixup (int reg, int sizeflag ATTRIBUTE_UNUSED) | |
16951 | { | |
b9733481 L |
16952 | const char **names; |
16953 | ||
c0f3af97 L |
16954 | if (need_vex) |
16955 | { | |
16956 | switch (vex.length) | |
16957 | { | |
16958 | case 128: | |
b9733481 | 16959 | names = names_xmm; |
c0f3af97 L |
16960 | break; |
16961 | case 256: | |
b9733481 | 16962 | names = names_ymm; |
c0f3af97 L |
16963 | break; |
16964 | default: | |
16965 | abort (); | |
16966 | } | |
16967 | } | |
16968 | else | |
b9733481 L |
16969 | names = names_xmm; |
16970 | oappend (names[reg]); | |
42903f7f | 16971 | } |
381d071f L |
16972 | |
16973 | static void | |
16974 | CRC32_Fixup (int bytemode, int sizeflag) | |
16975 | { | |
16976 | /* Add proper suffix to "crc32". */ | |
ea397f5b | 16977 | char *p = mnemonicendp; |
381d071f L |
16978 | |
16979 | switch (bytemode) | |
16980 | { | |
16981 | case b_mode: | |
20592a94 | 16982 | if (intel_syntax) |
ea397f5b | 16983 | goto skip; |
20592a94 | 16984 | |
381d071f L |
16985 | *p++ = 'b'; |
16986 | break; | |
16987 | case v_mode: | |
20592a94 | 16988 | if (intel_syntax) |
ea397f5b | 16989 | goto skip; |
20592a94 | 16990 | |
381d071f L |
16991 | USED_REX (REX_W); |
16992 | if (rex & REX_W) | |
16993 | *p++ = 'q'; | |
7bb15c6f | 16994 | else |
f16cd0d5 L |
16995 | { |
16996 | if (sizeflag & DFLAG) | |
16997 | *p++ = 'l'; | |
16998 | else | |
16999 | *p++ = 'w'; | |
17000 | used_prefixes |= (prefixes & PREFIX_DATA); | |
17001 | } | |
381d071f L |
17002 | break; |
17003 | default: | |
17004 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
17005 | break; | |
17006 | } | |
ea397f5b | 17007 | mnemonicendp = p; |
381d071f L |
17008 | *p = '\0'; |
17009 | ||
ea397f5b | 17010 | skip: |
381d071f L |
17011 | if (modrm.mod == 3) |
17012 | { | |
17013 | int add; | |
17014 | ||
17015 | /* Skip mod/rm byte. */ | |
17016 | MODRM_CHECK; | |
17017 | codep++; | |
17018 | ||
17019 | USED_REX (REX_B); | |
17020 | add = (rex & REX_B) ? 8 : 0; | |
17021 | if (bytemode == b_mode) | |
17022 | { | |
17023 | USED_REX (0); | |
17024 | if (rex) | |
17025 | oappend (names8rex[modrm.rm + add]); | |
17026 | else | |
17027 | oappend (names8[modrm.rm + add]); | |
17028 | } | |
17029 | else | |
17030 | { | |
17031 | USED_REX (REX_W); | |
17032 | if (rex & REX_W) | |
17033 | oappend (names64[modrm.rm + add]); | |
17034 | else if ((prefixes & PREFIX_DATA)) | |
17035 | oappend (names16[modrm.rm + add]); | |
17036 | else | |
17037 | oappend (names32[modrm.rm + add]); | |
17038 | } | |
17039 | } | |
17040 | else | |
9344ff29 | 17041 | OP_E (bytemode, sizeflag); |
381d071f | 17042 | } |
85f10a01 | 17043 | |
eacc9c89 L |
17044 | static void |
17045 | FXSAVE_Fixup (int bytemode, int sizeflag) | |
17046 | { | |
17047 | /* Add proper suffix to "fxsave" and "fxrstor". */ | |
17048 | USED_REX (REX_W); | |
17049 | if (rex & REX_W) | |
17050 | { | |
17051 | char *p = mnemonicendp; | |
17052 | *p++ = '6'; | |
17053 | *p++ = '4'; | |
17054 | *p = '\0'; | |
17055 | mnemonicendp = p; | |
17056 | } | |
17057 | OP_M (bytemode, sizeflag); | |
17058 | } | |
17059 | ||
15c7c1d8 JB |
17060 | static void |
17061 | PCMPESTR_Fixup (int bytemode, int sizeflag) | |
17062 | { | |
17063 | /* Add proper suffix to "{,v}pcmpestr{i,m}". */ | |
17064 | if (!intel_syntax) | |
17065 | { | |
17066 | char *p = mnemonicendp; | |
17067 | ||
17068 | USED_REX (REX_W); | |
17069 | if (rex & REX_W) | |
17070 | *p++ = 'q'; | |
17071 | else if (sizeflag & SUFFIX_ALWAYS) | |
17072 | *p++ = 'l'; | |
17073 | ||
17074 | *p = '\0'; | |
17075 | mnemonicendp = p; | |
17076 | } | |
17077 | ||
17078 | OP_EX (bytemode, sizeflag); | |
17079 | } | |
17080 | ||
c0f3af97 L |
17081 | /* Display the destination register operand for instructions with |
17082 | VEX. */ | |
17083 | ||
17084 | static void | |
17085 | OP_VEX (int bytemode, int sizeflag ATTRIBUTE_UNUSED) | |
17086 | { | |
539f890d | 17087 | int reg; |
b9733481 L |
17088 | const char **names; |
17089 | ||
c0f3af97 L |
17090 | if (!need_vex) |
17091 | abort (); | |
17092 | ||
17093 | if (!need_vex_reg) | |
17094 | return; | |
17095 | ||
539f890d | 17096 | reg = vex.register_specifier; |
5f847646 JB |
17097 | if (address_mode != mode_64bit) |
17098 | reg &= 7; | |
17099 | else if (vex.evex && !vex.v) | |
17100 | reg += 16; | |
43234a1e | 17101 | |
539f890d L |
17102 | if (bytemode == vex_scalar_mode) |
17103 | { | |
17104 | oappend (names_xmm[reg]); | |
17105 | return; | |
17106 | } | |
17107 | ||
c0f3af97 L |
17108 | switch (vex.length) |
17109 | { | |
17110 | case 128: | |
17111 | switch (bytemode) | |
17112 | { | |
17113 | case vex_mode: | |
17114 | case vex128_mode: | |
6c30d220 | 17115 | case vex_vsib_q_w_dq_mode: |
5fc35d96 | 17116 | case vex_vsib_q_w_d_mode: |
cb21baef L |
17117 | names = names_xmm; |
17118 | break; | |
17119 | case dq_mode: | |
390a6789 | 17120 | if (rex & REX_W) |
cb21baef L |
17121 | names = names64; |
17122 | else | |
17123 | names = names32; | |
c0f3af97 | 17124 | break; |
1ba585e8 | 17125 | case mask_bd_mode: |
43234a1e | 17126 | case mask_mode: |
9889cbb1 L |
17127 | if (reg > 0x7) |
17128 | { | |
17129 | oappend ("(bad)"); | |
17130 | return; | |
17131 | } | |
43234a1e L |
17132 | names = names_mask; |
17133 | break; | |
c0f3af97 L |
17134 | default: |
17135 | abort (); | |
17136 | return; | |
17137 | } | |
c0f3af97 L |
17138 | break; |
17139 | case 256: | |
17140 | switch (bytemode) | |
17141 | { | |
17142 | case vex_mode: | |
17143 | case vex256_mode: | |
6c30d220 L |
17144 | names = names_ymm; |
17145 | break; | |
17146 | case vex_vsib_q_w_dq_mode: | |
5fc35d96 | 17147 | case vex_vsib_q_w_d_mode: |
6c30d220 | 17148 | names = vex.w ? names_ymm : names_xmm; |
c0f3af97 | 17149 | break; |
1ba585e8 | 17150 | case mask_bd_mode: |
43234a1e | 17151 | case mask_mode: |
9889cbb1 L |
17152 | if (reg > 0x7) |
17153 | { | |
17154 | oappend ("(bad)"); | |
17155 | return; | |
17156 | } | |
43234a1e L |
17157 | names = names_mask; |
17158 | break; | |
c0f3af97 | 17159 | default: |
a37a2806 NC |
17160 | /* See PR binutils/20893 for a reproducer. */ |
17161 | oappend ("(bad)"); | |
c0f3af97 L |
17162 | return; |
17163 | } | |
c0f3af97 | 17164 | break; |
43234a1e L |
17165 | case 512: |
17166 | names = names_zmm; | |
17167 | break; | |
c0f3af97 L |
17168 | default: |
17169 | abort (); | |
17170 | break; | |
17171 | } | |
539f890d | 17172 | oappend (names[reg]); |
c0f3af97 L |
17173 | } |
17174 | ||
922d8de8 DR |
17175 | /* Get the VEX immediate byte without moving codep. */ |
17176 | ||
17177 | static unsigned char | |
ccc5981b | 17178 | get_vex_imm8 (int sizeflag, int opnum) |
922d8de8 DR |
17179 | { |
17180 | int bytes_before_imm = 0; | |
17181 | ||
922d8de8 DR |
17182 | if (modrm.mod != 3) |
17183 | { | |
17184 | /* There are SIB/displacement bytes. */ | |
17185 | if ((sizeflag & AFLAG) || address_mode == mode_64bit) | |
6c067bbb | 17186 | { |
922d8de8 | 17187 | /* 32/64 bit address mode */ |
6c067bbb | 17188 | int base = modrm.rm; |
922d8de8 DR |
17189 | |
17190 | /* Check SIB byte. */ | |
6c067bbb RM |
17191 | if (base == 4) |
17192 | { | |
17193 | FETCH_DATA (the_info, codep + 1); | |
17194 | base = *codep & 7; | |
17195 | /* When decoding the third source, don't increase | |
17196 | bytes_before_imm as this has already been incremented | |
17197 | by one in OP_E_memory while decoding the second | |
17198 | source operand. */ | |
17199 | if (opnum == 0) | |
17200 | bytes_before_imm++; | |
17201 | } | |
17202 | ||
17203 | /* Don't increase bytes_before_imm when decoding the third source, | |
17204 | it has already been incremented by OP_E_memory while decoding | |
17205 | the second source operand. */ | |
17206 | if (opnum == 0) | |
17207 | { | |
17208 | switch (modrm.mod) | |
17209 | { | |
17210 | case 0: | |
17211 | /* When modrm.rm == 5 or modrm.rm == 4 and base in | |
17212 | SIB == 5, there is a 4 byte displacement. */ | |
17213 | if (base != 5) | |
17214 | /* No displacement. */ | |
17215 | break; | |
1a0670f3 | 17216 | /* Fall through. */ |
6c067bbb RM |
17217 | case 2: |
17218 | /* 4 byte displacement. */ | |
17219 | bytes_before_imm += 4; | |
17220 | break; | |
17221 | case 1: | |
17222 | /* 1 byte displacement. */ | |
17223 | bytes_before_imm++; | |
17224 | break; | |
17225 | } | |
17226 | } | |
17227 | } | |
922d8de8 | 17228 | else |
02e647f9 SP |
17229 | { |
17230 | /* 16 bit address mode */ | |
6c067bbb RM |
17231 | /* Don't increase bytes_before_imm when decoding the third source, |
17232 | it has already been incremented by OP_E_memory while decoding | |
17233 | the second source operand. */ | |
17234 | if (opnum == 0) | |
17235 | { | |
02e647f9 SP |
17236 | switch (modrm.mod) |
17237 | { | |
17238 | case 0: | |
17239 | /* When modrm.rm == 6, there is a 2 byte displacement. */ | |
17240 | if (modrm.rm != 6) | |
17241 | /* No displacement. */ | |
17242 | break; | |
1a0670f3 | 17243 | /* Fall through. */ |
02e647f9 SP |
17244 | case 2: |
17245 | /* 2 byte displacement. */ | |
17246 | bytes_before_imm += 2; | |
17247 | break; | |
17248 | case 1: | |
17249 | /* 1 byte displacement: when decoding the third source, | |
17250 | don't increase bytes_before_imm as this has already | |
17251 | been incremented by one in OP_E_memory while decoding | |
17252 | the second source operand. */ | |
17253 | if (opnum == 0) | |
17254 | bytes_before_imm++; | |
ccc5981b | 17255 | |
02e647f9 SP |
17256 | break; |
17257 | } | |
922d8de8 DR |
17258 | } |
17259 | } | |
17260 | } | |
17261 | ||
17262 | FETCH_DATA (the_info, codep + bytes_before_imm + 1); | |
17263 | return codep [bytes_before_imm]; | |
17264 | } | |
17265 | ||
17266 | static void | |
17267 | OP_EX_VexReg (int bytemode, int sizeflag, int reg) | |
17268 | { | |
b9733481 L |
17269 | const char **names; |
17270 | ||
922d8de8 DR |
17271 | if (reg == -1 && modrm.mod != 3) |
17272 | { | |
17273 | OP_E_memory (bytemode, sizeflag); | |
17274 | return; | |
17275 | } | |
17276 | else | |
17277 | { | |
17278 | if (reg == -1) | |
17279 | { | |
17280 | reg = modrm.rm; | |
17281 | USED_REX (REX_B); | |
17282 | if (rex & REX_B) | |
17283 | reg += 8; | |
17284 | } | |
5f847646 JB |
17285 | if (address_mode != mode_64bit) |
17286 | reg &= 7; | |
922d8de8 DR |
17287 | } |
17288 | ||
17289 | switch (vex.length) | |
17290 | { | |
17291 | case 128: | |
b9733481 | 17292 | names = names_xmm; |
922d8de8 DR |
17293 | break; |
17294 | case 256: | |
b9733481 | 17295 | names = names_ymm; |
922d8de8 DR |
17296 | break; |
17297 | default: | |
17298 | abort (); | |
17299 | } | |
b9733481 | 17300 | oappend (names[reg]); |
922d8de8 DR |
17301 | } |
17302 | ||
a683cc34 SP |
17303 | static void |
17304 | OP_EX_VexImmW (int bytemode, int sizeflag) | |
17305 | { | |
17306 | int reg = -1; | |
17307 | static unsigned char vex_imm8; | |
17308 | ||
17309 | if (vex_w_done == 0) | |
17310 | { | |
17311 | vex_w_done = 1; | |
17312 | ||
17313 | /* Skip mod/rm byte. */ | |
17314 | MODRM_CHECK; | |
17315 | codep++; | |
17316 | ||
17317 | vex_imm8 = get_vex_imm8 (sizeflag, 0); | |
17318 | ||
17319 | if (vex.w) | |
17320 | reg = vex_imm8 >> 4; | |
17321 | ||
17322 | OP_EX_VexReg (bytemode, sizeflag, reg); | |
17323 | } | |
17324 | else if (vex_w_done == 1) | |
17325 | { | |
17326 | vex_w_done = 2; | |
17327 | ||
17328 | if (!vex.w) | |
17329 | reg = vex_imm8 >> 4; | |
17330 | ||
17331 | OP_EX_VexReg (bytemode, sizeflag, reg); | |
17332 | } | |
17333 | else | |
17334 | { | |
17335 | /* Output the imm8 directly. */ | |
17336 | scratchbuf[0] = '$'; | |
17337 | print_operand_value (scratchbuf + 1, 1, vex_imm8 & 0xf); | |
9ce09ba2 | 17338 | oappend_maybe_intel (scratchbuf); |
a683cc34 SP |
17339 | scratchbuf[0] = '\0'; |
17340 | codep++; | |
17341 | } | |
17342 | } | |
17343 | ||
5dd85c99 SP |
17344 | static void |
17345 | OP_Vex_2src (int bytemode, int sizeflag) | |
17346 | { | |
17347 | if (modrm.mod == 3) | |
17348 | { | |
b9733481 | 17349 | int reg = modrm.rm; |
5dd85c99 | 17350 | USED_REX (REX_B); |
b9733481 L |
17351 | if (rex & REX_B) |
17352 | reg += 8; | |
17353 | oappend (names_xmm[reg]); | |
5dd85c99 SP |
17354 | } |
17355 | else | |
17356 | { | |
17357 | if (intel_syntax | |
17358 | && (bytemode == v_mode || bytemode == v_swap_mode)) | |
17359 | { | |
17360 | bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode; | |
17361 | used_prefixes |= (prefixes & PREFIX_DATA); | |
17362 | } | |
17363 | OP_E (bytemode, sizeflag); | |
17364 | } | |
17365 | } | |
17366 | ||
17367 | static void | |
17368 | OP_Vex_2src_1 (int bytemode, int sizeflag) | |
17369 | { | |
17370 | if (modrm.mod == 3) | |
17371 | { | |
17372 | /* Skip mod/rm byte. */ | |
17373 | MODRM_CHECK; | |
17374 | codep++; | |
17375 | } | |
17376 | ||
17377 | if (vex.w) | |
5f847646 JB |
17378 | { |
17379 | unsigned int reg = vex.register_specifier; | |
17380 | ||
17381 | if (address_mode != mode_64bit) | |
17382 | reg &= 7; | |
17383 | oappend (names_xmm[reg]); | |
17384 | } | |
5dd85c99 SP |
17385 | else |
17386 | OP_Vex_2src (bytemode, sizeflag); | |
17387 | } | |
17388 | ||
17389 | static void | |
17390 | OP_Vex_2src_2 (int bytemode, int sizeflag) | |
17391 | { | |
17392 | if (vex.w) | |
17393 | OP_Vex_2src (bytemode, sizeflag); | |
17394 | else | |
5f847646 JB |
17395 | { |
17396 | unsigned int reg = vex.register_specifier; | |
17397 | ||
17398 | if (address_mode != mode_64bit) | |
17399 | reg &= 7; | |
17400 | oappend (names_xmm[reg]); | |
17401 | } | |
5dd85c99 SP |
17402 | } |
17403 | ||
922d8de8 DR |
17404 | static void |
17405 | OP_EX_VexW (int bytemode, int sizeflag) | |
17406 | { | |
17407 | int reg = -1; | |
17408 | ||
17409 | if (!vex_w_done) | |
17410 | { | |
41effecb SP |
17411 | /* Skip mod/rm byte. */ |
17412 | MODRM_CHECK; | |
17413 | codep++; | |
17414 | ||
922d8de8 | 17415 | if (vex.w) |
ccc5981b | 17416 | reg = get_vex_imm8 (sizeflag, 0) >> 4; |
922d8de8 DR |
17417 | } |
17418 | else | |
17419 | { | |
17420 | if (!vex.w) | |
ccc5981b | 17421 | reg = get_vex_imm8 (sizeflag, 1) >> 4; |
922d8de8 DR |
17422 | } |
17423 | ||
17424 | OP_EX_VexReg (bytemode, sizeflag, reg); | |
922d8de8 | 17425 | |
3a2430e0 JB |
17426 | if (vex_w_done) |
17427 | codep++; | |
17428 | vex_w_done = 1; | |
922d8de8 DR |
17429 | } |
17430 | ||
c0f3af97 L |
17431 | static void |
17432 | OP_REG_VexI4 (int bytemode, int sizeflag ATTRIBUTE_UNUSED) | |
17433 | { | |
17434 | int reg; | |
b9733481 L |
17435 | const char **names; |
17436 | ||
c0f3af97 L |
17437 | FETCH_DATA (the_info, codep + 1); |
17438 | reg = *codep++; | |
17439 | ||
17440 | if (bytemode != x_mode) | |
17441 | abort (); | |
17442 | ||
c0f3af97 | 17443 | reg >>= 4; |
5f847646 JB |
17444 | if (address_mode != mode_64bit) |
17445 | reg &= 7; | |
dae39acc | 17446 | |
c0f3af97 L |
17447 | switch (vex.length) |
17448 | { | |
17449 | case 128: | |
b9733481 | 17450 | names = names_xmm; |
c0f3af97 L |
17451 | break; |
17452 | case 256: | |
b9733481 | 17453 | names = names_ymm; |
c0f3af97 L |
17454 | break; |
17455 | default: | |
17456 | abort (); | |
17457 | } | |
b9733481 | 17458 | oappend (names[reg]); |
c0f3af97 L |
17459 | } |
17460 | ||
922d8de8 DR |
17461 | static void |
17462 | OP_XMM_VexW (int bytemode, int sizeflag) | |
17463 | { | |
17464 | /* Turn off the REX.W bit since it is used for swapping operands | |
17465 | now. */ | |
17466 | rex &= ~REX_W; | |
17467 | OP_XMM (bytemode, sizeflag); | |
17468 | } | |
17469 | ||
c0f3af97 L |
17470 | static void |
17471 | OP_EX_Vex (int bytemode, int sizeflag) | |
17472 | { | |
17473 | if (modrm.mod != 3) | |
17474 | { | |
17475 | if (vex.register_specifier != 0) | |
17476 | BadOp (); | |
17477 | need_vex_reg = 0; | |
17478 | } | |
17479 | OP_EX (bytemode, sizeflag); | |
17480 | } | |
17481 | ||
17482 | static void | |
17483 | OP_XMM_Vex (int bytemode, int sizeflag) | |
17484 | { | |
17485 | if (modrm.mod != 3) | |
17486 | { | |
17487 | if (vex.register_specifier != 0) | |
17488 | BadOp (); | |
17489 | need_vex_reg = 0; | |
17490 | } | |
17491 | OP_XMM (bytemode, sizeflag); | |
17492 | } | |
17493 | ||
17494 | static void | |
17495 | VZERO_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
17496 | { | |
17497 | switch (vex.length) | |
17498 | { | |
17499 | case 128: | |
ea397f5b | 17500 | mnemonicendp = stpcpy (obuf, "vzeroupper"); |
c0f3af97 L |
17501 | break; |
17502 | case 256: | |
ea397f5b | 17503 | mnemonicendp = stpcpy (obuf, "vzeroall"); |
c0f3af97 L |
17504 | break; |
17505 | default: | |
17506 | abort (); | |
17507 | } | |
17508 | } | |
17509 | ||
ea397f5b L |
17510 | static struct op vex_cmp_op[] = |
17511 | { | |
17512 | { STRING_COMMA_LEN ("eq") }, | |
17513 | { STRING_COMMA_LEN ("lt") }, | |
17514 | { STRING_COMMA_LEN ("le") }, | |
17515 | { STRING_COMMA_LEN ("unord") }, | |
17516 | { STRING_COMMA_LEN ("neq") }, | |
17517 | { STRING_COMMA_LEN ("nlt") }, | |
17518 | { STRING_COMMA_LEN ("nle") }, | |
17519 | { STRING_COMMA_LEN ("ord") }, | |
17520 | { STRING_COMMA_LEN ("eq_uq") }, | |
17521 | { STRING_COMMA_LEN ("nge") }, | |
17522 | { STRING_COMMA_LEN ("ngt") }, | |
17523 | { STRING_COMMA_LEN ("false") }, | |
17524 | { STRING_COMMA_LEN ("neq_oq") }, | |
17525 | { STRING_COMMA_LEN ("ge") }, | |
17526 | { STRING_COMMA_LEN ("gt") }, | |
17527 | { STRING_COMMA_LEN ("true") }, | |
17528 | { STRING_COMMA_LEN ("eq_os") }, | |
17529 | { STRING_COMMA_LEN ("lt_oq") }, | |
17530 | { STRING_COMMA_LEN ("le_oq") }, | |
17531 | { STRING_COMMA_LEN ("unord_s") }, | |
17532 | { STRING_COMMA_LEN ("neq_us") }, | |
17533 | { STRING_COMMA_LEN ("nlt_uq") }, | |
17534 | { STRING_COMMA_LEN ("nle_uq") }, | |
17535 | { STRING_COMMA_LEN ("ord_s") }, | |
17536 | { STRING_COMMA_LEN ("eq_us") }, | |
17537 | { STRING_COMMA_LEN ("nge_uq") }, | |
17538 | { STRING_COMMA_LEN ("ngt_uq") }, | |
17539 | { STRING_COMMA_LEN ("false_os") }, | |
17540 | { STRING_COMMA_LEN ("neq_os") }, | |
17541 | { STRING_COMMA_LEN ("ge_oq") }, | |
17542 | { STRING_COMMA_LEN ("gt_oq") }, | |
17543 | { STRING_COMMA_LEN ("true_us") }, | |
c0f3af97 L |
17544 | }; |
17545 | ||
17546 | static void | |
17547 | VCMP_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
17548 | { | |
17549 | unsigned int cmp_type; | |
17550 | ||
17551 | FETCH_DATA (the_info, codep + 1); | |
17552 | cmp_type = *codep++ & 0xff; | |
17553 | if (cmp_type < ARRAY_SIZE (vex_cmp_op)) | |
17554 | { | |
17555 | char suffix [3]; | |
ea397f5b | 17556 | char *p = mnemonicendp - 2; |
c0f3af97 L |
17557 | suffix[0] = p[0]; |
17558 | suffix[1] = p[1]; | |
17559 | suffix[2] = '\0'; | |
ea397f5b L |
17560 | sprintf (p, "%s%s", vex_cmp_op[cmp_type].name, suffix); |
17561 | mnemonicendp += vex_cmp_op[cmp_type].len; | |
c0f3af97 L |
17562 | } |
17563 | else | |
17564 | { | |
17565 | /* We have a reserved extension byte. Output it directly. */ | |
17566 | scratchbuf[0] = '$'; | |
17567 | print_operand_value (scratchbuf + 1, 1, cmp_type); | |
9ce09ba2 | 17568 | oappend_maybe_intel (scratchbuf); |
c0f3af97 L |
17569 | scratchbuf[0] = '\0'; |
17570 | } | |
17571 | } | |
17572 | ||
43234a1e L |
17573 | static void |
17574 | VPCMP_Fixup (int bytemode ATTRIBUTE_UNUSED, | |
17575 | int sizeflag ATTRIBUTE_UNUSED) | |
17576 | { | |
17577 | unsigned int cmp_type; | |
17578 | ||
17579 | if (!vex.evex) | |
17580 | abort (); | |
17581 | ||
17582 | FETCH_DATA (the_info, codep + 1); | |
17583 | cmp_type = *codep++ & 0xff; | |
17584 | /* There are aliases for immediates 0, 1, 2, 4, 5, 6. | |
17585 | If it's the case, print suffix, otherwise - print the immediate. */ | |
17586 | if (cmp_type < ARRAY_SIZE (simd_cmp_op) | |
17587 | && cmp_type != 3 | |
17588 | && cmp_type != 7) | |
17589 | { | |
17590 | char suffix [3]; | |
17591 | char *p = mnemonicendp - 2; | |
17592 | ||
17593 | /* vpcmp* can have both one- and two-lettered suffix. */ | |
17594 | if (p[0] == 'p') | |
17595 | { | |
17596 | p++; | |
17597 | suffix[0] = p[0]; | |
17598 | suffix[1] = '\0'; | |
17599 | } | |
17600 | else | |
17601 | { | |
17602 | suffix[0] = p[0]; | |
17603 | suffix[1] = p[1]; | |
17604 | suffix[2] = '\0'; | |
17605 | } | |
17606 | ||
17607 | sprintf (p, "%s%s", simd_cmp_op[cmp_type].name, suffix); | |
17608 | mnemonicendp += simd_cmp_op[cmp_type].len; | |
17609 | } | |
be92cb14 JB |
17610 | else |
17611 | { | |
17612 | /* We have a reserved extension byte. Output it directly. */ | |
17613 | scratchbuf[0] = '$'; | |
17614 | print_operand_value (scratchbuf + 1, 1, cmp_type); | |
17615 | oappend_maybe_intel (scratchbuf); | |
17616 | scratchbuf[0] = '\0'; | |
17617 | } | |
17618 | } | |
17619 | ||
17620 | static const struct op xop_cmp_op[] = | |
17621 | { | |
17622 | { STRING_COMMA_LEN ("lt") }, | |
17623 | { STRING_COMMA_LEN ("le") }, | |
17624 | { STRING_COMMA_LEN ("gt") }, | |
17625 | { STRING_COMMA_LEN ("ge") }, | |
17626 | { STRING_COMMA_LEN ("eq") }, | |
17627 | { STRING_COMMA_LEN ("neq") }, | |
17628 | { STRING_COMMA_LEN ("false") }, | |
17629 | { STRING_COMMA_LEN ("true") } | |
17630 | }; | |
17631 | ||
17632 | static void | |
17633 | VPCOM_Fixup (int bytemode ATTRIBUTE_UNUSED, | |
17634 | int sizeflag ATTRIBUTE_UNUSED) | |
17635 | { | |
17636 | unsigned int cmp_type; | |
17637 | ||
17638 | FETCH_DATA (the_info, codep + 1); | |
17639 | cmp_type = *codep++ & 0xff; | |
17640 | if (cmp_type < ARRAY_SIZE (xop_cmp_op)) | |
17641 | { | |
17642 | char suffix[3]; | |
17643 | char *p = mnemonicendp - 2; | |
17644 | ||
17645 | /* vpcom* can have both one- and two-lettered suffix. */ | |
17646 | if (p[0] == 'm') | |
17647 | { | |
17648 | p++; | |
17649 | suffix[0] = p[0]; | |
17650 | suffix[1] = '\0'; | |
17651 | } | |
17652 | else | |
17653 | { | |
17654 | suffix[0] = p[0]; | |
17655 | suffix[1] = p[1]; | |
17656 | suffix[2] = '\0'; | |
17657 | } | |
17658 | ||
17659 | sprintf (p, "%s%s", xop_cmp_op[cmp_type].name, suffix); | |
17660 | mnemonicendp += xop_cmp_op[cmp_type].len; | |
17661 | } | |
43234a1e L |
17662 | else |
17663 | { | |
17664 | /* We have a reserved extension byte. Output it directly. */ | |
17665 | scratchbuf[0] = '$'; | |
17666 | print_operand_value (scratchbuf + 1, 1, cmp_type); | |
9ce09ba2 | 17667 | oappend_maybe_intel (scratchbuf); |
43234a1e L |
17668 | scratchbuf[0] = '\0'; |
17669 | } | |
17670 | } | |
17671 | ||
ea397f5b L |
17672 | static const struct op pclmul_op[] = |
17673 | { | |
17674 | { STRING_COMMA_LEN ("lql") }, | |
17675 | { STRING_COMMA_LEN ("hql") }, | |
17676 | { STRING_COMMA_LEN ("lqh") }, | |
17677 | { STRING_COMMA_LEN ("hqh") } | |
c0f3af97 L |
17678 | }; |
17679 | ||
17680 | static void | |
17681 | PCLMUL_Fixup (int bytemode ATTRIBUTE_UNUSED, | |
17682 | int sizeflag ATTRIBUTE_UNUSED) | |
17683 | { | |
17684 | unsigned int pclmul_type; | |
17685 | ||
17686 | FETCH_DATA (the_info, codep + 1); | |
17687 | pclmul_type = *codep++ & 0xff; | |
17688 | switch (pclmul_type) | |
17689 | { | |
17690 | case 0x10: | |
17691 | pclmul_type = 2; | |
17692 | break; | |
17693 | case 0x11: | |
17694 | pclmul_type = 3; | |
17695 | break; | |
17696 | default: | |
17697 | break; | |
7bb15c6f | 17698 | } |
c0f3af97 L |
17699 | if (pclmul_type < ARRAY_SIZE (pclmul_op)) |
17700 | { | |
17701 | char suffix [4]; | |
ea397f5b | 17702 | char *p = mnemonicendp - 3; |
c0f3af97 L |
17703 | suffix[0] = p[0]; |
17704 | suffix[1] = p[1]; | |
17705 | suffix[2] = p[2]; | |
17706 | suffix[3] = '\0'; | |
ea397f5b L |
17707 | sprintf (p, "%s%s", pclmul_op[pclmul_type].name, suffix); |
17708 | mnemonicendp += pclmul_op[pclmul_type].len; | |
c0f3af97 L |
17709 | } |
17710 | else | |
17711 | { | |
17712 | /* We have a reserved extension byte. Output it directly. */ | |
17713 | scratchbuf[0] = '$'; | |
17714 | print_operand_value (scratchbuf + 1, 1, pclmul_type); | |
9ce09ba2 | 17715 | oappend_maybe_intel (scratchbuf); |
c0f3af97 L |
17716 | scratchbuf[0] = '\0'; |
17717 | } | |
17718 | } | |
17719 | ||
f1f8f695 L |
17720 | static void |
17721 | MOVBE_Fixup (int bytemode, int sizeflag) | |
17722 | { | |
17723 | /* Add proper suffix to "movbe". */ | |
ea397f5b | 17724 | char *p = mnemonicendp; |
f1f8f695 L |
17725 | |
17726 | switch (bytemode) | |
17727 | { | |
17728 | case v_mode: | |
17729 | if (intel_syntax) | |
ea397f5b | 17730 | goto skip; |
f1f8f695 L |
17731 | |
17732 | USED_REX (REX_W); | |
17733 | if (sizeflag & SUFFIX_ALWAYS) | |
17734 | { | |
17735 | if (rex & REX_W) | |
17736 | *p++ = 'q'; | |
f1f8f695 | 17737 | else |
f16cd0d5 L |
17738 | { |
17739 | if (sizeflag & DFLAG) | |
17740 | *p++ = 'l'; | |
17741 | else | |
17742 | *p++ = 'w'; | |
17743 | used_prefixes |= (prefixes & PREFIX_DATA); | |
17744 | } | |
f1f8f695 | 17745 | } |
f1f8f695 L |
17746 | break; |
17747 | default: | |
17748 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
17749 | break; | |
17750 | } | |
ea397f5b | 17751 | mnemonicendp = p; |
f1f8f695 L |
17752 | *p = '\0'; |
17753 | ||
ea397f5b | 17754 | skip: |
f1f8f695 L |
17755 | OP_M (bytemode, sizeflag); |
17756 | } | |
f88c9eb0 SP |
17757 | |
17758 | static void | |
17759 | OP_LWPCB_E (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
17760 | { | |
17761 | int reg; | |
17762 | const char **names; | |
17763 | ||
17764 | /* Skip mod/rm byte. */ | |
17765 | MODRM_CHECK; | |
17766 | codep++; | |
17767 | ||
390a6789 | 17768 | if (rex & REX_W) |
f88c9eb0 | 17769 | names = names64; |
f88c9eb0 | 17770 | else |
ce7d077e | 17771 | names = names32; |
f88c9eb0 SP |
17772 | |
17773 | reg = modrm.rm; | |
17774 | USED_REX (REX_B); | |
17775 | if (rex & REX_B) | |
17776 | reg += 8; | |
17777 | ||
17778 | oappend (names[reg]); | |
17779 | } | |
17780 | ||
17781 | static void | |
17782 | OP_LWP_E (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
17783 | { | |
17784 | const char **names; | |
5f847646 | 17785 | unsigned int reg = vex.register_specifier; |
f88c9eb0 | 17786 | |
390a6789 | 17787 | if (rex & REX_W) |
f88c9eb0 | 17788 | names = names64; |
f88c9eb0 | 17789 | else |
ce7d077e | 17790 | names = names32; |
f88c9eb0 | 17791 | |
5f847646 JB |
17792 | if (address_mode != mode_64bit) |
17793 | reg &= 7; | |
17794 | oappend (names[reg]); | |
f88c9eb0 | 17795 | } |
43234a1e L |
17796 | |
17797 | static void | |
17798 | OP_Mask (int bytemode, int sizeflag ATTRIBUTE_UNUSED) | |
17799 | { | |
17800 | if (!vex.evex | |
1ba585e8 | 17801 | || (bytemode != mask_mode && bytemode != mask_bd_mode)) |
43234a1e L |
17802 | abort (); |
17803 | ||
17804 | USED_REX (REX_R); | |
17805 | if ((rex & REX_R) != 0 || !vex.r) | |
17806 | { | |
17807 | BadOp (); | |
17808 | return; | |
17809 | } | |
17810 | ||
17811 | oappend (names_mask [modrm.reg]); | |
17812 | } | |
17813 | ||
17814 | static void | |
17815 | OP_Rounding (int bytemode, int sizeflag ATTRIBUTE_UNUSED) | |
17816 | { | |
17817 | if (!vex.evex | |
17818 | || (bytemode != evex_rounding_mode | |
17819 | && bytemode != evex_sae_mode)) | |
17820 | abort (); | |
17821 | if (modrm.mod == 3 && vex.b) | |
17822 | switch (bytemode) | |
17823 | { | |
17824 | case evex_rounding_mode: | |
17825 | oappend (names_rounding[vex.ll]); | |
17826 | break; | |
17827 | case evex_sae_mode: | |
17828 | oappend ("{sae}"); | |
17829 | break; | |
17830 | default: | |
17831 | break; | |
17832 | } | |
17833 | } |