1 /* Print i386 instructions for GDB, the GNU debugger.
2 Copyright 1988, 1989, 1991, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
5 This file is part of the GNU opcodes library.
7 This library is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
12 It is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
15 License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
20 MA 02110-1301, USA. */
23 /* 80386 instruction printer by Pace Willisson (pace@prep.ai.mit.edu)
25 modified by John Hassey (hassey@dg-rtp.dg.com)
26 x86-64 support added by Jan Hubicka (jh@suse.cz)
27 VIA PadLock support by Michal Ludvig (mludvig@suse.cz). */
29 /* The main tables describing the instructions is essentially a copy
30 of the "Opcode Map" chapter (Appendix A) of the Intel 80386
31 Programmers Manual. Usually, there is a capital letter, followed
32 by a small letter. The capital letter tell the addressing mode,
33 and the small letter tells about the operand size. Refer to
34 the Intel manual for details. */
39 #include "opcode/i386.h"
40 #include "libiberty.h"
44 static int fetch_data (struct disassemble_info *, bfd_byte *);
45 static void ckprefix (void);
46 static const char *prefix_name (int, int);
47 static int print_insn (bfd_vma, disassemble_info *);
48 static void dofloat (int);
49 static void OP_ST (int, int);
50 static void OP_STi (int, int);
51 static int putop (const char *, int);
52 static void oappend (const char *);
53 static void append_seg (void);
54 static void OP_indirE (int, int);
55 static void print_operand_value (char *, int, bfd_vma);
56 static void OP_E_register (int, int);
57 static void OP_E_memory (int, int, int);
58 static void OP_E_extended (int, int, int);
59 static void print_displacement (char *, bfd_vma);
60 static void OP_E (int, int);
61 static void OP_G (int, int);
62 static bfd_vma get64 (void);
63 static bfd_signed_vma get32 (void);
64 static bfd_signed_vma get32s (void);
65 static int get16 (void);
66 static void set_op (bfd_vma, int);
67 static void OP_Skip_MODRM (int, int);
68 static void OP_REG (int, int);
69 static void OP_IMREG (int, int);
70 static void OP_I (int, int);
71 static void OP_I64 (int, int);
72 static void OP_sI (int, int);
73 static void OP_J (int, int);
74 static void OP_SEG (int, int);
75 static void OP_DIR (int, int);
76 static void OP_OFF (int, int);
77 static void OP_OFF64 (int, int);
78 static void ptr_reg (int, int);
79 static void OP_ESreg (int, int);
80 static void OP_DSreg (int, int);
81 static void OP_C (int, int);
82 static void OP_D (int, int);
83 static void OP_T (int, int);
84 static void OP_R (int, int);
85 static void OP_MMX (int, int);
86 static void OP_XMM (int, int);
87 static void OP_EM (int, int);
88 static void OP_EX (int, int);
89 static void OP_EMC (int,int);
90 static void OP_MXC (int,int);
91 static void OP_MS (int, int);
92 static void OP_XS (int, int);
93 static void OP_M (int, int);
94 static void OP_VEX (int, int);
95 static void OP_VEX_FMA (int, int);
96 static void OP_EX_Vex (int, int);
97 static void OP_EX_VexW (int, int);
98 static void OP_EX_VexImmW (int, int);
99 static void OP_XMM_Vex (int, int);
100 static void OP_XMM_VexW (int, int);
101 static void OP_REG_VexI4 (int, int);
102 static void PCLMUL_Fixup (int, int);
103 static void VEXI4_Fixup (int, int);
104 static void VZERO_Fixup (int, int);
105 static void VCMP_Fixup (int, int);
106 static void VPERMIL2_Fixup (int, int);
107 static void OP_0f07 (int, int);
108 static void OP_Monitor (int, int);
109 static void OP_Mwait (int, int);
110 static void NOP_Fixup1 (int, int);
111 static void NOP_Fixup2 (int, int);
112 static void OP_3DNowSuffix (int, int);
113 static void CMP_Fixup (int, int);
114 static void BadOp (void);
115 static void REP_Fixup (int, int);
116 static void CMPXCHG8B_Fixup (int, int);
117 static void XMM_Fixup (int, int);
118 static void CRC32_Fixup (int, int);
119 static void print_drex_arg (unsigned int, int, int);
120 static void OP_DREX4 (int, int);
121 static void OP_DREX3 (int, int);
122 static void OP_DREX_ICMP (int, int);
123 static void OP_DREX_FCMP (int, int);
124 static void MOVBE_Fixup (int, int);
127 /* Points to first byte not fetched. */
128 bfd_byte *max_fetched;
129 bfd_byte the_buffer[MAX_MNEM_SIZE];
142 enum address_mode address_mode;
144 /* Flags for the prefixes for the current instruction. See below. */
147 /* REX prefix the current instruction. See below. */
149 /* Bits of REX we've already used. */
151 /* Original REX prefix. */
152 static int rex_original;
153 /* REX bits in original REX prefix ignored. It may not be the same
154 as rex_original since some bits may not be ignored. */
155 static int rex_ignored;
156 /* Mark parts used in the REX prefix. When we are testing for
157 empty prefix (for 8bit register REX extension), just mask it
158 out. Otherwise test for REX bit is excuse for existence of REX
159 only in case value is nonzero. */
160 #define USED_REX(value) \
165 rex_used |= (value) | REX_OPCODE; \
168 rex_used |= REX_OPCODE; \
171 /* Special 'registers' for DREX handling */
172 #define DREX_REG_UNKNOWN 1000 /* not initialized */
173 #define DREX_REG_MEMORY 1001 /* use MODRM/SIB/OFFSET memory */
175 /* The DREX byte has the following fields:
176 Bits 7-4 -- DREX.Dest, xmm destination register
177 Bit 3 -- DREX.OC0, operand config bit defines operand order
178 Bit 2 -- DREX.R, equivalent to REX_R bit, to extend ModRM register
179 Bit 1 -- DREX.X, equivalent to REX_X bit, to extend SIB index field
180 Bit 0 -- DREX.W, equivalent to REX_B bit, to extend ModRM r/m field,
181 SIB base field, or opcode reg field. */
182 #define DREX_XMM(drex) ((drex >> 4) & 0xf)
183 #define DREX_OC0(drex) ((drex >> 3) & 0x1)
185 /* Flags for prefixes which we somehow handled when printing the
186 current instruction. */
187 static int used_prefixes;
189 /* Flags stored in PREFIXES. */
190 #define PREFIX_REPZ 1
191 #define PREFIX_REPNZ 2
192 #define PREFIX_LOCK 4
194 #define PREFIX_SS 0x10
195 #define PREFIX_DS 0x20
196 #define PREFIX_ES 0x40
197 #define PREFIX_FS 0x80
198 #define PREFIX_GS 0x100
199 #define PREFIX_DATA 0x200
200 #define PREFIX_ADDR 0x400
201 #define PREFIX_FWAIT 0x800
203 /* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive)
204 to ADDR (exclusive) are valid. Returns 1 for success, longjmps
206 #define FETCH_DATA(info, addr) \
207 ((addr) <= ((struct dis_private *) (info->private_data))->max_fetched \
208 ? 1 : fetch_data ((info), (addr)))
211 fetch_data (struct disassemble_info *info, bfd_byte *addr)
214 struct dis_private *priv = (struct dis_private *) info->private_data;
215 bfd_vma start = priv->insn_start + (priv->max_fetched - priv->the_buffer);
217 if (addr <= priv->the_buffer + MAX_MNEM_SIZE)
218 status = (*info->read_memory_func) (start,
220 addr - priv->max_fetched,
226 /* If we did manage to read at least one byte, then
227 print_insn_i386 will do something sensible. Otherwise, print
228 an error. We do that here because this is where we know
230 if (priv->max_fetched == priv->the_buffer)
231 (*info->memory_error_func) (status, start, info);
232 longjmp (priv->bailout, 1);
235 priv->max_fetched = addr;
239 #define XX { NULL, 0 }
241 #define Eb { OP_E, b_mode }
242 #define Ev { OP_E, v_mode }
243 #define Ed { OP_E, d_mode }
244 #define Edq { OP_E, dq_mode }
245 #define Edqw { OP_E, dqw_mode }
246 #define Edqb { OP_E, dqb_mode }
247 #define Edqd { OP_E, dqd_mode }
248 #define Eq { OP_E, q_mode }
249 #define indirEv { OP_indirE, stack_v_mode }
250 #define indirEp { OP_indirE, f_mode }
251 #define stackEv { OP_E, stack_v_mode }
252 #define Em { OP_E, m_mode }
253 #define Ew { OP_E, w_mode }
254 #define M { OP_M, 0 } /* lea, lgdt, etc. */
255 #define Ma { OP_M, a_mode }
256 #define Mb { OP_M, b_mode }
257 #define Md { OP_M, d_mode }
258 #define Mo { OP_M, o_mode }
259 #define Mp { OP_M, f_mode } /* 32 or 48 bit memory operand for LDS, LES etc */
260 #define Mq { OP_M, q_mode }
261 #define Mx { OP_M, x_mode }
262 #define Mxmm { OP_M, xmm_mode }
263 #define Gb { OP_G, b_mode }
264 #define Gv { OP_G, v_mode }
265 #define Gd { OP_G, d_mode }
266 #define Gdq { OP_G, dq_mode }
267 #define Gm { OP_G, m_mode }
268 #define Gw { OP_G, w_mode }
269 #define Rd { OP_R, d_mode }
270 #define Rm { OP_R, m_mode }
271 #define Ib { OP_I, b_mode }
272 #define sIb { OP_sI, b_mode } /* sign extened byte */
273 #define Iv { OP_I, v_mode }
274 #define Iq { OP_I, q_mode }
275 #define Iv64 { OP_I64, v_mode }
276 #define Iw { OP_I, w_mode }
277 #define I1 { OP_I, const_1_mode }
278 #define Jb { OP_J, b_mode }
279 #define Jv { OP_J, v_mode }
280 #define Cm { OP_C, m_mode }
281 #define Dm { OP_D, m_mode }
282 #define Td { OP_T, d_mode }
283 #define Skip_MODRM { OP_Skip_MODRM, 0 }
285 #define RMeAX { OP_REG, eAX_reg }
286 #define RMeBX { OP_REG, eBX_reg }
287 #define RMeCX { OP_REG, eCX_reg }
288 #define RMeDX { OP_REG, eDX_reg }
289 #define RMeSP { OP_REG, eSP_reg }
290 #define RMeBP { OP_REG, eBP_reg }
291 #define RMeSI { OP_REG, eSI_reg }
292 #define RMeDI { OP_REG, eDI_reg }
293 #define RMrAX { OP_REG, rAX_reg }
294 #define RMrBX { OP_REG, rBX_reg }
295 #define RMrCX { OP_REG, rCX_reg }
296 #define RMrDX { OP_REG, rDX_reg }
297 #define RMrSP { OP_REG, rSP_reg }
298 #define RMrBP { OP_REG, rBP_reg }
299 #define RMrSI { OP_REG, rSI_reg }
300 #define RMrDI { OP_REG, rDI_reg }
301 #define RMAL { OP_REG, al_reg }
302 #define RMAL { OP_REG, al_reg }
303 #define RMCL { OP_REG, cl_reg }
304 #define RMDL { OP_REG, dl_reg }
305 #define RMBL { OP_REG, bl_reg }
306 #define RMAH { OP_REG, ah_reg }
307 #define RMCH { OP_REG, ch_reg }
308 #define RMDH { OP_REG, dh_reg }
309 #define RMBH { OP_REG, bh_reg }
310 #define RMAX { OP_REG, ax_reg }
311 #define RMDX { OP_REG, dx_reg }
313 #define eAX { OP_IMREG, eAX_reg }
314 #define eBX { OP_IMREG, eBX_reg }
315 #define eCX { OP_IMREG, eCX_reg }
316 #define eDX { OP_IMREG, eDX_reg }
317 #define eSP { OP_IMREG, eSP_reg }
318 #define eBP { OP_IMREG, eBP_reg }
319 #define eSI { OP_IMREG, eSI_reg }
320 #define eDI { OP_IMREG, eDI_reg }
321 #define AL { OP_IMREG, al_reg }
322 #define CL { OP_IMREG, cl_reg }
323 #define DL { OP_IMREG, dl_reg }
324 #define BL { OP_IMREG, bl_reg }
325 #define AH { OP_IMREG, ah_reg }
326 #define CH { OP_IMREG, ch_reg }
327 #define DH { OP_IMREG, dh_reg }
328 #define BH { OP_IMREG, bh_reg }
329 #define AX { OP_IMREG, ax_reg }
330 #define DX { OP_IMREG, dx_reg }
331 #define zAX { OP_IMREG, z_mode_ax_reg }
332 #define indirDX { OP_IMREG, indir_dx_reg }
334 #define Sw { OP_SEG, w_mode }
335 #define Sv { OP_SEG, v_mode }
336 #define Ap { OP_DIR, 0 }
337 #define Ob { OP_OFF64, b_mode }
338 #define Ov { OP_OFF64, v_mode }
339 #define Xb { OP_DSreg, eSI_reg }
340 #define Xv { OP_DSreg, eSI_reg }
341 #define Xz { OP_DSreg, eSI_reg }
342 #define Yb { OP_ESreg, eDI_reg }
343 #define Yv { OP_ESreg, eDI_reg }
344 #define DSBX { OP_DSreg, eBX_reg }
346 #define es { OP_REG, es_reg }
347 #define ss { OP_REG, ss_reg }
348 #define cs { OP_REG, cs_reg }
349 #define ds { OP_REG, ds_reg }
350 #define fs { OP_REG, fs_reg }
351 #define gs { OP_REG, gs_reg }
353 #define MX { OP_MMX, 0 }
354 #define XM { OP_XMM, 0 }
355 #define XMM { OP_XMM, xmm_mode }
356 #define EM { OP_EM, v_mode }
357 #define EMd { OP_EM, d_mode }
358 #define EMx { OP_EM, x_mode }
359 #define EXw { OP_EX, w_mode }
360 #define EXd { OP_EX, d_mode }
361 #define EXq { OP_EX, q_mode }
362 #define EXx { OP_EX, x_mode }
363 #define EXxmm { OP_EX, xmm_mode }
364 #define EXxmmq { OP_EX, xmmq_mode }
365 #define EXymmq { OP_EX, ymmq_mode }
366 #define MS { OP_MS, v_mode }
367 #define XS { OP_XS, v_mode }
368 #define EMCq { OP_EMC, q_mode }
369 #define MXC { OP_MXC, 0 }
370 #define OPSUF { OP_3DNowSuffix, 0 }
371 #define CMP { CMP_Fixup, 0 }
372 #define XMM0 { XMM_Fixup, 0 }
374 #define Vex { OP_VEX, vex_mode }
375 #define Vex128 { OP_VEX, vex128_mode }
376 #define Vex256 { OP_VEX, vex256_mode }
377 #define VexI4 { VEXI4_Fixup, 0}
378 #define VexFMA { OP_VEX_FMA, vex_mode }
379 #define Vex128FMA { OP_VEX_FMA, vex128_mode }
380 #define EXdVex { OP_EX_Vex, d_mode }
381 #define EXqVex { OP_EX_Vex, q_mode }
382 #define EXVexW { OP_EX_VexW, x_mode }
383 #define EXdVexW { OP_EX_VexW, d_mode }
384 #define EXqVexW { OP_EX_VexW, q_mode }
385 #define EXVexImmW { OP_EX_VexImmW, x_mode }
386 #define XMVex { OP_XMM_Vex, 0 }
387 #define XMVexW { OP_XMM_VexW, 0 }
388 #define XMVexI4 { OP_REG_VexI4, x_mode }
389 #define PCLMUL { PCLMUL_Fixup, 0 }
390 #define VZERO { VZERO_Fixup, 0 }
391 #define VCMP { VCMP_Fixup, 0 }
392 #define VPERMIL2 { VPERMIL2_Fixup, 0 }
394 /* Used handle "rep" prefix for string instructions. */
395 #define Xbr { REP_Fixup, eSI_reg }
396 #define Xvr { REP_Fixup, eSI_reg }
397 #define Ybr { REP_Fixup, eDI_reg }
398 #define Yvr { REP_Fixup, eDI_reg }
399 #define Yzr { REP_Fixup, eDI_reg }
400 #define indirDXr { REP_Fixup, indir_dx_reg }
401 #define ALr { REP_Fixup, al_reg }
402 #define eAXr { REP_Fixup, eAX_reg }
404 #define cond_jump_flag { NULL, cond_jump_mode }
405 #define loop_jcxz_flag { NULL, loop_jcxz_mode }
407 /* bits in sizeflag */
408 #define SUFFIX_ALWAYS 4
414 /* operand size depends on prefixes */
415 #define v_mode (b_mode + 1)
417 #define w_mode (v_mode + 1)
418 /* double word operand */
419 #define d_mode (w_mode + 1)
420 /* quad word operand */
421 #define q_mode (d_mode + 1)
422 /* ten-byte operand */
423 #define t_mode (q_mode + 1)
424 /* 16-byte XMM or 32-byte YMM operand */
425 #define x_mode (t_mode + 1)
426 /* 16-byte XMM operand */
427 #define xmm_mode (x_mode + 1)
428 /* 16-byte XMM or quad word operand */
429 #define xmmq_mode (xmm_mode + 1)
430 /* 32-byte YMM or quad word operand */
431 #define ymmq_mode (xmmq_mode + 1)
432 /* d_mode in 32bit, q_mode in 64bit mode. */
433 #define m_mode (ymmq_mode + 1)
434 /* pair of v_mode operands */
435 #define a_mode (m_mode + 1)
436 #define cond_jump_mode (a_mode + 1)
437 #define loop_jcxz_mode (cond_jump_mode + 1)
438 /* operand size depends on REX prefixes. */
439 #define dq_mode (loop_jcxz_mode + 1)
440 /* registers like dq_mode, memory like w_mode. */
441 #define dqw_mode (dq_mode + 1)
442 /* 4- or 6-byte pointer operand */
443 #define f_mode (dqw_mode + 1)
444 #define const_1_mode (f_mode + 1)
445 /* v_mode for stack-related opcodes. */
446 #define stack_v_mode (const_1_mode + 1)
447 /* non-quad operand size depends on prefixes */
448 #define z_mode (stack_v_mode + 1)
449 /* 16-byte operand */
450 #define o_mode (z_mode + 1)
451 /* registers like dq_mode, memory like b_mode. */
452 #define dqb_mode (o_mode + 1)
453 /* registers like dq_mode, memory like d_mode. */
454 #define dqd_mode (dqb_mode + 1)
455 /* normal vex mode */
456 #define vex_mode (dqd_mode + 1)
457 /* 128bit vex mode */
458 #define vex128_mode (vex_mode + 1)
459 /* 256bit vex mode */
460 #define vex256_mode (vex128_mode + 1)
462 #define es_reg (vex256_mode + 1)
463 #define cs_reg (es_reg + 1)
464 #define ss_reg (cs_reg + 1)
465 #define ds_reg (ss_reg + 1)
466 #define fs_reg (ds_reg + 1)
467 #define gs_reg (fs_reg + 1)
469 #define eAX_reg (gs_reg + 1)
470 #define eCX_reg (eAX_reg + 1)
471 #define eDX_reg (eCX_reg + 1)
472 #define eBX_reg (eDX_reg + 1)
473 #define eSP_reg (eBX_reg + 1)
474 #define eBP_reg (eSP_reg + 1)
475 #define eSI_reg (eBP_reg + 1)
476 #define eDI_reg (eSI_reg + 1)
478 #define al_reg (eDI_reg + 1)
479 #define cl_reg (al_reg + 1)
480 #define dl_reg (cl_reg + 1)
481 #define bl_reg (dl_reg + 1)
482 #define ah_reg (bl_reg + 1)
483 #define ch_reg (ah_reg + 1)
484 #define dh_reg (ch_reg + 1)
485 #define bh_reg (dh_reg + 1)
487 #define ax_reg (bh_reg + 1)
488 #define cx_reg (ax_reg + 1)
489 #define dx_reg (cx_reg + 1)
490 #define bx_reg (dx_reg + 1)
491 #define sp_reg (bx_reg + 1)
492 #define bp_reg (sp_reg + 1)
493 #define si_reg (bp_reg + 1)
494 #define di_reg (si_reg + 1)
496 #define rAX_reg (di_reg + 1)
497 #define rCX_reg (rAX_reg + 1)
498 #define rDX_reg (rCX_reg + 1)
499 #define rBX_reg (rDX_reg + 1)
500 #define rSP_reg (rBX_reg + 1)
501 #define rBP_reg (rSP_reg + 1)
502 #define rSI_reg (rBP_reg + 1)
503 #define rDI_reg (rSI_reg + 1)
505 #define z_mode_ax_reg (rDI_reg + 1)
506 #define indir_dx_reg (z_mode_ax_reg + 1)
508 #define MAX_BYTEMODE indir_dx_reg
510 /* Flags that are OR'ed into the bytemode field to pass extra
512 #define DREX_OC1 0x10000 /* OC1 bit set */
513 #define DREX_NO_OC0 0x20000 /* OC0 bit not used */
514 #define DREX_MASK 0x40000 /* mask to delete */
516 #if MAX_BYTEMODE >= DREX_OC1
517 #error MAX_BYTEMODE must be less than DREX_OC1
521 #define USE_REG_TABLE (FLOATCODE + 1)
522 #define USE_MOD_TABLE (USE_REG_TABLE + 1)
523 #define USE_RM_TABLE (USE_MOD_TABLE + 1)
524 #define USE_PREFIX_TABLE (USE_RM_TABLE + 1)
525 #define USE_X86_64_TABLE (USE_PREFIX_TABLE + 1)
526 #define USE_3BYTE_TABLE (USE_X86_64_TABLE + 1)
527 #define USE_VEX_C4_TABLE (USE_3BYTE_TABLE + 1)
528 #define USE_VEX_C5_TABLE (USE_VEX_C4_TABLE + 1)
529 #define USE_VEX_LEN_TABLE (USE_VEX_C5_TABLE + 1)
531 #define FLOAT NULL, { { NULL, FLOATCODE } }
533 #define DIS386(T, I) NULL, { { NULL, (T)}, { NULL, (I) } }
534 #define REG_TABLE(I) DIS386 (USE_REG_TABLE, (I))
535 #define MOD_TABLE(I) DIS386 (USE_MOD_TABLE, (I))
536 #define RM_TABLE(I) DIS386 (USE_RM_TABLE, (I))
537 #define PREFIX_TABLE(I) DIS386 (USE_PREFIX_TABLE, (I))
538 #define X86_64_TABLE(I) DIS386 (USE_X86_64_TABLE, (I))
539 #define THREE_BYTE_TABLE(I) DIS386 (USE_3BYTE_TABLE, (I))
540 #define VEX_C4_TABLE(I) DIS386 (USE_VEX_C4_TABLE, (I))
541 #define VEX_C5_TABLE(I) DIS386 (USE_VEX_C5_TABLE, (I))
542 #define VEX_LEN_TABLE(I) DIS386 (USE_VEX_LEN_TABLE, (I))
545 #define REG_81 (REG_80 + 1)
546 #define REG_82 (REG_81 + 1)
547 #define REG_8F (REG_82 + 1)
548 #define REG_C0 (REG_8F + 1)
549 #define REG_C1 (REG_C0 + 1)
550 #define REG_C6 (REG_C1 + 1)
551 #define REG_C7 (REG_C6 + 1)
552 #define REG_D0 (REG_C7 + 1)
553 #define REG_D1 (REG_D0 + 1)
554 #define REG_D2 (REG_D1 + 1)
555 #define REG_D3 (REG_D2 + 1)
556 #define REG_F6 (REG_D3 + 1)
557 #define REG_F7 (REG_F6 + 1)
558 #define REG_FE (REG_F7 + 1)
559 #define REG_FF (REG_FE + 1)
560 #define REG_0F00 (REG_FF + 1)
561 #define REG_0F01 (REG_0F00 + 1)
562 #define REG_0F0D (REG_0F01 + 1)
563 #define REG_0F18 (REG_0F0D + 1)
564 #define REG_0F71 (REG_0F18 + 1)
565 #define REG_0F72 (REG_0F71 + 1)
566 #define REG_0F73 (REG_0F72 + 1)
567 #define REG_0FA6 (REG_0F73 + 1)
568 #define REG_0FA7 (REG_0FA6 + 1)
569 #define REG_0FAE (REG_0FA7 + 1)
570 #define REG_0FBA (REG_0FAE + 1)
571 #define REG_0FC7 (REG_0FBA + 1)
572 #define REG_VEX_71 (REG_0FC7 + 1)
573 #define REG_VEX_72 (REG_VEX_71 + 1)
574 #define REG_VEX_73 (REG_VEX_72 + 1)
575 #define REG_VEX_AE (REG_VEX_73 + 1)
578 #define MOD_0F01_REG_0 (MOD_8D + 1)
579 #define MOD_0F01_REG_1 (MOD_0F01_REG_0 + 1)
580 #define MOD_0F01_REG_2 (MOD_0F01_REG_1 + 1)
581 #define MOD_0F01_REG_3 (MOD_0F01_REG_2 + 1)
582 #define MOD_0F01_REG_7 (MOD_0F01_REG_3 + 1)
583 #define MOD_0F12_PREFIX_0 (MOD_0F01_REG_7 + 1)
584 #define MOD_0F13 (MOD_0F12_PREFIX_0 + 1)
585 #define MOD_0F16_PREFIX_0 (MOD_0F13 + 1)
586 #define MOD_0F17 (MOD_0F16_PREFIX_0 + 1)
587 #define MOD_0F18_REG_0 (MOD_0F17 + 1)
588 #define MOD_0F18_REG_1 (MOD_0F18_REG_0 + 1)
589 #define MOD_0F18_REG_2 (MOD_0F18_REG_1 + 1)
590 #define MOD_0F18_REG_3 (MOD_0F18_REG_2 + 1)
591 #define MOD_0F20 (MOD_0F18_REG_3 + 1)
592 #define MOD_0F21 (MOD_0F20 + 1)
593 #define MOD_0F22 (MOD_0F21 + 1)
594 #define MOD_0F23 (MOD_0F22 + 1)
595 #define MOD_0F24 (MOD_0F23 + 1)
596 #define MOD_0F26 (MOD_0F24 + 1)
597 #define MOD_0F2B_PREFIX_0 (MOD_0F26 + 1)
598 #define MOD_0F2B_PREFIX_1 (MOD_0F2B_PREFIX_0 + 1)
599 #define MOD_0F2B_PREFIX_2 (MOD_0F2B_PREFIX_1 + 1)
600 #define MOD_0F2B_PREFIX_3 (MOD_0F2B_PREFIX_2 + 1)
601 #define MOD_0F51 (MOD_0F2B_PREFIX_3 + 1)
602 #define MOD_0F71_REG_2 (MOD_0F51 + 1)
603 #define MOD_0F71_REG_4 (MOD_0F71_REG_2 + 1)
604 #define MOD_0F71_REG_6 (MOD_0F71_REG_4 + 1)
605 #define MOD_0F72_REG_2 (MOD_0F71_REG_6 + 1)
606 #define MOD_0F72_REG_4 (MOD_0F72_REG_2 + 1)
607 #define MOD_0F72_REG_6 (MOD_0F72_REG_4 + 1)
608 #define MOD_0F73_REG_2 (MOD_0F72_REG_6 + 1)
609 #define MOD_0F73_REG_3 (MOD_0F73_REG_2 + 1)
610 #define MOD_0F73_REG_6 (MOD_0F73_REG_3 + 1)
611 #define MOD_0F73_REG_7 (MOD_0F73_REG_6 + 1)
612 #define MOD_0FAE_REG_0 (MOD_0F73_REG_7 + 1)
613 #define MOD_0FAE_REG_1 (MOD_0FAE_REG_0 + 1)
614 #define MOD_0FAE_REG_2 (MOD_0FAE_REG_1 + 1)
615 #define MOD_0FAE_REG_3 (MOD_0FAE_REG_2 + 1)
616 #define MOD_0FAE_REG_4 (MOD_0FAE_REG_3 + 1)
617 #define MOD_0FAE_REG_5 (MOD_0FAE_REG_4 + 1)
618 #define MOD_0FAE_REG_6 (MOD_0FAE_REG_5 + 1)
619 #define MOD_0FAE_REG_7 (MOD_0FAE_REG_6 + 1)
620 #define MOD_0FB2 (MOD_0FAE_REG_7 + 1)
621 #define MOD_0FB4 (MOD_0FB2 + 1)
622 #define MOD_0FB5 (MOD_0FB4 + 1)
623 #define MOD_0FC7_REG_6 (MOD_0FB5 + 1)
624 #define MOD_0FC7_REG_7 (MOD_0FC7_REG_6 + 1)
625 #define MOD_0FD7 (MOD_0FC7_REG_7 + 1)
626 #define MOD_0FE7_PREFIX_2 (MOD_0FD7 + 1)
627 #define MOD_0FF0_PREFIX_3 (MOD_0FE7_PREFIX_2 + 1)
628 #define MOD_0F382A_PREFIX_2 (MOD_0FF0_PREFIX_3 + 1)
629 #define MOD_62_32BIT (MOD_0F382A_PREFIX_2 + 1)
630 #define MOD_C4_32BIT (MOD_62_32BIT + 1)
631 #define MOD_C5_32BIT (MOD_C4_32BIT + 1)
632 #define MOD_VEX_12_PREFIX_0 (MOD_C5_32BIT + 1)
633 #define MOD_VEX_13 (MOD_VEX_12_PREFIX_0 + 1)
634 #define MOD_VEX_16_PREFIX_0 (MOD_VEX_13 + 1)
635 #define MOD_VEX_17 (MOD_VEX_16_PREFIX_0 + 1)
636 #define MOD_VEX_2B (MOD_VEX_17 + 1)
637 #define MOD_VEX_51 (MOD_VEX_2B + 1)
638 #define MOD_VEX_71_REG_2 (MOD_VEX_51 + 1)
639 #define MOD_VEX_71_REG_4 (MOD_VEX_71_REG_2 + 1)
640 #define MOD_VEX_71_REG_6 (MOD_VEX_71_REG_4 + 1)
641 #define MOD_VEX_72_REG_2 (MOD_VEX_71_REG_6 + 1)
642 #define MOD_VEX_72_REG_4 (MOD_VEX_72_REG_2 + 1)
643 #define MOD_VEX_72_REG_6 (MOD_VEX_72_REG_4 + 1)
644 #define MOD_VEX_73_REG_2 (MOD_VEX_72_REG_6 + 1)
645 #define MOD_VEX_73_REG_3 (MOD_VEX_73_REG_2 + 1)
646 #define MOD_VEX_73_REG_6 (MOD_VEX_73_REG_3 + 1)
647 #define MOD_VEX_73_REG_7 (MOD_VEX_73_REG_6 + 1)
648 #define MOD_VEX_AE_REG_2 (MOD_VEX_73_REG_7 + 1)
649 #define MOD_VEX_AE_REG_3 (MOD_VEX_AE_REG_2 + 1)
650 #define MOD_VEX_D7_PREFIX_2 (MOD_VEX_AE_REG_3 + 1)
651 #define MOD_VEX_E7_PREFIX_2 (MOD_VEX_D7_PREFIX_2 + 1)
652 #define MOD_VEX_F0_PREFIX_3 (MOD_VEX_E7_PREFIX_2 + 1)
653 #define MOD_VEX_3818_PREFIX_2 (MOD_VEX_F0_PREFIX_3 + 1)
654 #define MOD_VEX_3819_PREFIX_2 (MOD_VEX_3818_PREFIX_2 + 1)
655 #define MOD_VEX_381A_PREFIX_2 (MOD_VEX_3819_PREFIX_2 + 1)
656 #define MOD_VEX_382A_PREFIX_2 (MOD_VEX_381A_PREFIX_2 + 1)
657 #define MOD_VEX_382C_PREFIX_2 (MOD_VEX_382A_PREFIX_2 + 1)
658 #define MOD_VEX_382D_PREFIX_2 (MOD_VEX_382C_PREFIX_2 + 1)
659 #define MOD_VEX_382E_PREFIX_2 (MOD_VEX_382D_PREFIX_2 + 1)
660 #define MOD_VEX_382F_PREFIX_2 (MOD_VEX_382E_PREFIX_2 + 1)
662 #define RM_0F01_REG_0 0
663 #define RM_0F01_REG_1 (RM_0F01_REG_0 + 1)
664 #define RM_0F01_REG_2 (RM_0F01_REG_1 + 1)
665 #define RM_0F01_REG_3 (RM_0F01_REG_2 + 1)
666 #define RM_0F01_REG_7 (RM_0F01_REG_3 + 1)
667 #define RM_0FAE_REG_5 (RM_0F01_REG_7 + 1)
668 #define RM_0FAE_REG_6 (RM_0FAE_REG_5 + 1)
669 #define RM_0FAE_REG_7 (RM_0FAE_REG_6 + 1)
672 #define PREFIX_0F10 (PREFIX_90 + 1)
673 #define PREFIX_0F11 (PREFIX_0F10 + 1)
674 #define PREFIX_0F12 (PREFIX_0F11 + 1)
675 #define PREFIX_0F16 (PREFIX_0F12 + 1)
676 #define PREFIX_0F2A (PREFIX_0F16 + 1)
677 #define PREFIX_0F2B (PREFIX_0F2A + 1)
678 #define PREFIX_0F2C (PREFIX_0F2B + 1)
679 #define PREFIX_0F2D (PREFIX_0F2C + 1)
680 #define PREFIX_0F2E (PREFIX_0F2D + 1)
681 #define PREFIX_0F2F (PREFIX_0F2E + 1)
682 #define PREFIX_0F51 (PREFIX_0F2F + 1)
683 #define PREFIX_0F52 (PREFIX_0F51 + 1)
684 #define PREFIX_0F53 (PREFIX_0F52 + 1)
685 #define PREFIX_0F58 (PREFIX_0F53 + 1)
686 #define PREFIX_0F59 (PREFIX_0F58 + 1)
687 #define PREFIX_0F5A (PREFIX_0F59 + 1)
688 #define PREFIX_0F5B (PREFIX_0F5A + 1)
689 #define PREFIX_0F5C (PREFIX_0F5B + 1)
690 #define PREFIX_0F5D (PREFIX_0F5C + 1)
691 #define PREFIX_0F5E (PREFIX_0F5D + 1)
692 #define PREFIX_0F5F (PREFIX_0F5E + 1)
693 #define PREFIX_0F60 (PREFIX_0F5F + 1)
694 #define PREFIX_0F61 (PREFIX_0F60 + 1)
695 #define PREFIX_0F62 (PREFIX_0F61 + 1)
696 #define PREFIX_0F6C (PREFIX_0F62 + 1)
697 #define PREFIX_0F6D (PREFIX_0F6C + 1)
698 #define PREFIX_0F6F (PREFIX_0F6D + 1)
699 #define PREFIX_0F70 (PREFIX_0F6F + 1)
700 #define PREFIX_0F73_REG_3 (PREFIX_0F70 + 1)
701 #define PREFIX_0F73_REG_7 (PREFIX_0F73_REG_3 + 1)
702 #define PREFIX_0F78 (PREFIX_0F73_REG_7 + 1)
703 #define PREFIX_0F79 (PREFIX_0F78 + 1)
704 #define PREFIX_0F7C (PREFIX_0F79 + 1)
705 #define PREFIX_0F7D (PREFIX_0F7C + 1)
706 #define PREFIX_0F7E (PREFIX_0F7D + 1)
707 #define PREFIX_0F7F (PREFIX_0F7E + 1)
708 #define PREFIX_0FB8 (PREFIX_0F7F + 1)
709 #define PREFIX_0FBD (PREFIX_0FB8 + 1)
710 #define PREFIX_0FC2 (PREFIX_0FBD + 1)
711 #define PREFIX_0FC3 (PREFIX_0FC2 + 1)
712 #define PREFIX_0FC7_REG_6 (PREFIX_0FC3 + 1)
713 #define PREFIX_0FD0 (PREFIX_0FC7_REG_6 + 1)
714 #define PREFIX_0FD6 (PREFIX_0FD0 + 1)
715 #define PREFIX_0FE6 (PREFIX_0FD6 + 1)
716 #define PREFIX_0FE7 (PREFIX_0FE6 + 1)
717 #define PREFIX_0FF0 (PREFIX_0FE7 + 1)
718 #define PREFIX_0FF7 (PREFIX_0FF0 + 1)
719 #define PREFIX_0F3810 (PREFIX_0FF7 + 1)
720 #define PREFIX_0F3814 (PREFIX_0F3810 + 1)
721 #define PREFIX_0F3815 (PREFIX_0F3814 + 1)
722 #define PREFIX_0F3817 (PREFIX_0F3815 + 1)
723 #define PREFIX_0F3820 (PREFIX_0F3817 + 1)
724 #define PREFIX_0F3821 (PREFIX_0F3820 + 1)
725 #define PREFIX_0F3822 (PREFIX_0F3821 + 1)
726 #define PREFIX_0F3823 (PREFIX_0F3822 + 1)
727 #define PREFIX_0F3824 (PREFIX_0F3823 + 1)
728 #define PREFIX_0F3825 (PREFIX_0F3824 + 1)
729 #define PREFIX_0F3828 (PREFIX_0F3825 + 1)
730 #define PREFIX_0F3829 (PREFIX_0F3828 + 1)
731 #define PREFIX_0F382A (PREFIX_0F3829 + 1)
732 #define PREFIX_0F382B (PREFIX_0F382A + 1)
733 #define PREFIX_0F3830 (PREFIX_0F382B + 1)
734 #define PREFIX_0F3831 (PREFIX_0F3830 + 1)
735 #define PREFIX_0F3832 (PREFIX_0F3831 + 1)
736 #define PREFIX_0F3833 (PREFIX_0F3832 + 1)
737 #define PREFIX_0F3834 (PREFIX_0F3833 + 1)
738 #define PREFIX_0F3835 (PREFIX_0F3834 + 1)
739 #define PREFIX_0F3837 (PREFIX_0F3835 + 1)
740 #define PREFIX_0F3838 (PREFIX_0F3837 + 1)
741 #define PREFIX_0F3839 (PREFIX_0F3838 + 1)
742 #define PREFIX_0F383A (PREFIX_0F3839 + 1)
743 #define PREFIX_0F383B (PREFIX_0F383A + 1)
744 #define PREFIX_0F383C (PREFIX_0F383B + 1)
745 #define PREFIX_0F383D (PREFIX_0F383C + 1)
746 #define PREFIX_0F383E (PREFIX_0F383D + 1)
747 #define PREFIX_0F383F (PREFIX_0F383E + 1)
748 #define PREFIX_0F3840 (PREFIX_0F383F + 1)
749 #define PREFIX_0F3841 (PREFIX_0F3840 + 1)
750 #define PREFIX_0F3880 (PREFIX_0F3841 + 1)
751 #define PREFIX_0F3881 (PREFIX_0F3880 + 1)
752 #define PREFIX_0F38DB (PREFIX_0F3881 + 1)
753 #define PREFIX_0F38DC (PREFIX_0F38DB + 1)
754 #define PREFIX_0F38DD (PREFIX_0F38DC + 1)
755 #define PREFIX_0F38DE (PREFIX_0F38DD + 1)
756 #define PREFIX_0F38DF (PREFIX_0F38DE + 1)
757 #define PREFIX_0F38F0 (PREFIX_0F38DF + 1)
758 #define PREFIX_0F38F1 (PREFIX_0F38F0 + 1)
759 #define PREFIX_0F3A08 (PREFIX_0F38F1 + 1)
760 #define PREFIX_0F3A09 (PREFIX_0F3A08 + 1)
761 #define PREFIX_0F3A0A (PREFIX_0F3A09 + 1)
762 #define PREFIX_0F3A0B (PREFIX_0F3A0A + 1)
763 #define PREFIX_0F3A0C (PREFIX_0F3A0B + 1)
764 #define PREFIX_0F3A0D (PREFIX_0F3A0C + 1)
765 #define PREFIX_0F3A0E (PREFIX_0F3A0D + 1)
766 #define PREFIX_0F3A14 (PREFIX_0F3A0E + 1)
767 #define PREFIX_0F3A15 (PREFIX_0F3A14 + 1)
768 #define PREFIX_0F3A16 (PREFIX_0F3A15 + 1)
769 #define PREFIX_0F3A17 (PREFIX_0F3A16 + 1)
770 #define PREFIX_0F3A20 (PREFIX_0F3A17 + 1)
771 #define PREFIX_0F3A21 (PREFIX_0F3A20 + 1)
772 #define PREFIX_0F3A22 (PREFIX_0F3A21 + 1)
773 #define PREFIX_0F3A40 (PREFIX_0F3A22 + 1)
774 #define PREFIX_0F3A41 (PREFIX_0F3A40 + 1)
775 #define PREFIX_0F3A42 (PREFIX_0F3A41 + 1)
776 #define PREFIX_0F3A44 (PREFIX_0F3A42 + 1)
777 #define PREFIX_0F3A60 (PREFIX_0F3A44 + 1)
778 #define PREFIX_0F3A61 (PREFIX_0F3A60 + 1)
779 #define PREFIX_0F3A62 (PREFIX_0F3A61 + 1)
780 #define PREFIX_0F3A63 (PREFIX_0F3A62 + 1)
781 #define PREFIX_0F3ADF (PREFIX_0F3A63 + 1)
782 #define PREFIX_VEX_10 (PREFIX_0F3ADF + 1)
783 #define PREFIX_VEX_11 (PREFIX_VEX_10 + 1)
784 #define PREFIX_VEX_12 (PREFIX_VEX_11 + 1)
785 #define PREFIX_VEX_16 (PREFIX_VEX_12 + 1)
786 #define PREFIX_VEX_2A (PREFIX_VEX_16 + 1)
787 #define PREFIX_VEX_2C (PREFIX_VEX_2A + 1)
788 #define PREFIX_VEX_2D (PREFIX_VEX_2C + 1)
789 #define PREFIX_VEX_2E (PREFIX_VEX_2D + 1)
790 #define PREFIX_VEX_2F (PREFIX_VEX_2E + 1)
791 #define PREFIX_VEX_51 (PREFIX_VEX_2F + 1)
792 #define PREFIX_VEX_52 (PREFIX_VEX_51 + 1)
793 #define PREFIX_VEX_53 (PREFIX_VEX_52 + 1)
794 #define PREFIX_VEX_58 (PREFIX_VEX_53 + 1)
795 #define PREFIX_VEX_59 (PREFIX_VEX_58 + 1)
796 #define PREFIX_VEX_5A (PREFIX_VEX_59 + 1)
797 #define PREFIX_VEX_5B (PREFIX_VEX_5A + 1)
798 #define PREFIX_VEX_5C (PREFIX_VEX_5B + 1)
799 #define PREFIX_VEX_5D (PREFIX_VEX_5C + 1)
800 #define PREFIX_VEX_5E (PREFIX_VEX_5D + 1)
801 #define PREFIX_VEX_5F (PREFIX_VEX_5E + 1)
802 #define PREFIX_VEX_60 (PREFIX_VEX_5F + 1)
803 #define PREFIX_VEX_61 (PREFIX_VEX_60 + 1)
804 #define PREFIX_VEX_62 (PREFIX_VEX_61 + 1)
805 #define PREFIX_VEX_63 (PREFIX_VEX_62 + 1)
806 #define PREFIX_VEX_64 (PREFIX_VEX_63 + 1)
807 #define PREFIX_VEX_65 (PREFIX_VEX_64 + 1)
808 #define PREFIX_VEX_66 (PREFIX_VEX_65 + 1)
809 #define PREFIX_VEX_67 (PREFIX_VEX_66 + 1)
810 #define PREFIX_VEX_68 (PREFIX_VEX_67 + 1)
811 #define PREFIX_VEX_69 (PREFIX_VEX_68 + 1)
812 #define PREFIX_VEX_6A (PREFIX_VEX_69 + 1)
813 #define PREFIX_VEX_6B (PREFIX_VEX_6A + 1)
814 #define PREFIX_VEX_6C (PREFIX_VEX_6B + 1)
815 #define PREFIX_VEX_6D (PREFIX_VEX_6C + 1)
816 #define PREFIX_VEX_6E (PREFIX_VEX_6D + 1)
817 #define PREFIX_VEX_6F (PREFIX_VEX_6E + 1)
818 #define PREFIX_VEX_70 (PREFIX_VEX_6F + 1)
819 #define PREFIX_VEX_71_REG_2 (PREFIX_VEX_70 + 1)
820 #define PREFIX_VEX_71_REG_4 (PREFIX_VEX_71_REG_2 + 1)
821 #define PREFIX_VEX_71_REG_6 (PREFIX_VEX_71_REG_4 + 1)
822 #define PREFIX_VEX_72_REG_2 (PREFIX_VEX_71_REG_6 + 1)
823 #define PREFIX_VEX_72_REG_4 (PREFIX_VEX_72_REG_2 + 1)
824 #define PREFIX_VEX_72_REG_6 (PREFIX_VEX_72_REG_4 + 1)
825 #define PREFIX_VEX_73_REG_2 (PREFIX_VEX_72_REG_6 + 1)
826 #define PREFIX_VEX_73_REG_3 (PREFIX_VEX_73_REG_2 + 1)
827 #define PREFIX_VEX_73_REG_6 (PREFIX_VEX_73_REG_3 + 1)
828 #define PREFIX_VEX_73_REG_7 (PREFIX_VEX_73_REG_6 + 1)
829 #define PREFIX_VEX_74 (PREFIX_VEX_73_REG_7 + 1)
830 #define PREFIX_VEX_75 (PREFIX_VEX_74 + 1)
831 #define PREFIX_VEX_76 (PREFIX_VEX_75 + 1)
832 #define PREFIX_VEX_77 (PREFIX_VEX_76 + 1)
833 #define PREFIX_VEX_7C (PREFIX_VEX_77 + 1)
834 #define PREFIX_VEX_7D (PREFIX_VEX_7C + 1)
835 #define PREFIX_VEX_7E (PREFIX_VEX_7D + 1)
836 #define PREFIX_VEX_7F (PREFIX_VEX_7E + 1)
837 #define PREFIX_VEX_C2 (PREFIX_VEX_7F + 1)
838 #define PREFIX_VEX_C4 (PREFIX_VEX_C2 + 1)
839 #define PREFIX_VEX_C5 (PREFIX_VEX_C4 + 1)
840 #define PREFIX_VEX_D0 (PREFIX_VEX_C5 + 1)
841 #define PREFIX_VEX_D1 (PREFIX_VEX_D0 + 1)
842 #define PREFIX_VEX_D2 (PREFIX_VEX_D1 + 1)
843 #define PREFIX_VEX_D3 (PREFIX_VEX_D2 + 1)
844 #define PREFIX_VEX_D4 (PREFIX_VEX_D3 + 1)
845 #define PREFIX_VEX_D5 (PREFIX_VEX_D4 + 1)
846 #define PREFIX_VEX_D6 (PREFIX_VEX_D5 + 1)
847 #define PREFIX_VEX_D7 (PREFIX_VEX_D6 + 1)
848 #define PREFIX_VEX_D8 (PREFIX_VEX_D7 + 1)
849 #define PREFIX_VEX_D9 (PREFIX_VEX_D8 + 1)
850 #define PREFIX_VEX_DA (PREFIX_VEX_D9 + 1)
851 #define PREFIX_VEX_DB (PREFIX_VEX_DA + 1)
852 #define PREFIX_VEX_DC (PREFIX_VEX_DB + 1)
853 #define PREFIX_VEX_DD (PREFIX_VEX_DC + 1)
854 #define PREFIX_VEX_DE (PREFIX_VEX_DD + 1)
855 #define PREFIX_VEX_DF (PREFIX_VEX_DE + 1)
856 #define PREFIX_VEX_E0 (PREFIX_VEX_DF + 1)
857 #define PREFIX_VEX_E1 (PREFIX_VEX_E0 + 1)
858 #define PREFIX_VEX_E2 (PREFIX_VEX_E1 + 1)
859 #define PREFIX_VEX_E3 (PREFIX_VEX_E2 + 1)
860 #define PREFIX_VEX_E4 (PREFIX_VEX_E3 + 1)
861 #define PREFIX_VEX_E5 (PREFIX_VEX_E4 + 1)
862 #define PREFIX_VEX_E6 (PREFIX_VEX_E5 + 1)
863 #define PREFIX_VEX_E7 (PREFIX_VEX_E6 + 1)
864 #define PREFIX_VEX_E8 (PREFIX_VEX_E7 + 1)
865 #define PREFIX_VEX_E9 (PREFIX_VEX_E8 + 1)
866 #define PREFIX_VEX_EA (PREFIX_VEX_E9 + 1)
867 #define PREFIX_VEX_EB (PREFIX_VEX_EA + 1)
868 #define PREFIX_VEX_EC (PREFIX_VEX_EB + 1)
869 #define PREFIX_VEX_ED (PREFIX_VEX_EC + 1)
870 #define PREFIX_VEX_EE (PREFIX_VEX_ED + 1)
871 #define PREFIX_VEX_EF (PREFIX_VEX_EE + 1)
872 #define PREFIX_VEX_F0 (PREFIX_VEX_EF + 1)
873 #define PREFIX_VEX_F1 (PREFIX_VEX_F0 + 1)
874 #define PREFIX_VEX_F2 (PREFIX_VEX_F1 + 1)
875 #define PREFIX_VEX_F3 (PREFIX_VEX_F2 + 1)
876 #define PREFIX_VEX_F4 (PREFIX_VEX_F3 + 1)
877 #define PREFIX_VEX_F5 (PREFIX_VEX_F4 + 1)
878 #define PREFIX_VEX_F6 (PREFIX_VEX_F5 + 1)
879 #define PREFIX_VEX_F7 (PREFIX_VEX_F6 + 1)
880 #define PREFIX_VEX_F8 (PREFIX_VEX_F7 + 1)
881 #define PREFIX_VEX_F9 (PREFIX_VEX_F8 + 1)
882 #define PREFIX_VEX_FA (PREFIX_VEX_F9 + 1)
883 #define PREFIX_VEX_FB (PREFIX_VEX_FA + 1)
884 #define PREFIX_VEX_FC (PREFIX_VEX_FB + 1)
885 #define PREFIX_VEX_FD (PREFIX_VEX_FC + 1)
886 #define PREFIX_VEX_FE (PREFIX_VEX_FD + 1)
887 #define PREFIX_VEX_3800 (PREFIX_VEX_FE + 1)
888 #define PREFIX_VEX_3801 (PREFIX_VEX_3800 + 1)
889 #define PREFIX_VEX_3802 (PREFIX_VEX_3801 + 1)
890 #define PREFIX_VEX_3803 (PREFIX_VEX_3802 + 1)
891 #define PREFIX_VEX_3804 (PREFIX_VEX_3803 + 1)
892 #define PREFIX_VEX_3805 (PREFIX_VEX_3804 + 1)
893 #define PREFIX_VEX_3806 (PREFIX_VEX_3805 + 1)
894 #define PREFIX_VEX_3807 (PREFIX_VEX_3806 + 1)
895 #define PREFIX_VEX_3808 (PREFIX_VEX_3807 + 1)
896 #define PREFIX_VEX_3809 (PREFIX_VEX_3808 + 1)
897 #define PREFIX_VEX_380A (PREFIX_VEX_3809 + 1)
898 #define PREFIX_VEX_380B (PREFIX_VEX_380A + 1)
899 #define PREFIX_VEX_380C (PREFIX_VEX_380B + 1)
900 #define PREFIX_VEX_380D (PREFIX_VEX_380C + 1)
901 #define PREFIX_VEX_380E (PREFIX_VEX_380D + 1)
902 #define PREFIX_VEX_380F (PREFIX_VEX_380E + 1)
903 #define PREFIX_VEX_3817 (PREFIX_VEX_380F + 1)
904 #define PREFIX_VEX_3818 (PREFIX_VEX_3817 + 1)
905 #define PREFIX_VEX_3819 (PREFIX_VEX_3818 + 1)
906 #define PREFIX_VEX_381A (PREFIX_VEX_3819 + 1)
907 #define PREFIX_VEX_381C (PREFIX_VEX_381A + 1)
908 #define PREFIX_VEX_381D (PREFIX_VEX_381C + 1)
909 #define PREFIX_VEX_381E (PREFIX_VEX_381D + 1)
910 #define PREFIX_VEX_3820 (PREFIX_VEX_381E + 1)
911 #define PREFIX_VEX_3821 (PREFIX_VEX_3820 + 1)
912 #define PREFIX_VEX_3822 (PREFIX_VEX_3821 + 1)
913 #define PREFIX_VEX_3823 (PREFIX_VEX_3822 + 1)
914 #define PREFIX_VEX_3824 (PREFIX_VEX_3823 + 1)
915 #define PREFIX_VEX_3825 (PREFIX_VEX_3824 + 1)
916 #define PREFIX_VEX_3828 (PREFIX_VEX_3825 + 1)
917 #define PREFIX_VEX_3829 (PREFIX_VEX_3828 + 1)
918 #define PREFIX_VEX_382A (PREFIX_VEX_3829 + 1)
919 #define PREFIX_VEX_382B (PREFIX_VEX_382A + 1)
920 #define PREFIX_VEX_382C (PREFIX_VEX_382B + 1)
921 #define PREFIX_VEX_382D (PREFIX_VEX_382C + 1)
922 #define PREFIX_VEX_382E (PREFIX_VEX_382D + 1)
923 #define PREFIX_VEX_382F (PREFIX_VEX_382E + 1)
924 #define PREFIX_VEX_3830 (PREFIX_VEX_382F + 1)
925 #define PREFIX_VEX_3831 (PREFIX_VEX_3830 + 1)
926 #define PREFIX_VEX_3832 (PREFIX_VEX_3831 + 1)
927 #define PREFIX_VEX_3833 (PREFIX_VEX_3832 + 1)
928 #define PREFIX_VEX_3834 (PREFIX_VEX_3833 + 1)
929 #define PREFIX_VEX_3835 (PREFIX_VEX_3834 + 1)
930 #define PREFIX_VEX_3837 (PREFIX_VEX_3835 + 1)
931 #define PREFIX_VEX_3838 (PREFIX_VEX_3837 + 1)
932 #define PREFIX_VEX_3839 (PREFIX_VEX_3838 + 1)
933 #define PREFIX_VEX_383A (PREFIX_VEX_3839 + 1)
934 #define PREFIX_VEX_383B (PREFIX_VEX_383A + 1)
935 #define PREFIX_VEX_383C (PREFIX_VEX_383B + 1)
936 #define PREFIX_VEX_383D (PREFIX_VEX_383C + 1)
937 #define PREFIX_VEX_383E (PREFIX_VEX_383D + 1)
938 #define PREFIX_VEX_383F (PREFIX_VEX_383E + 1)
939 #define PREFIX_VEX_3840 (PREFIX_VEX_383F + 1)
940 #define PREFIX_VEX_3841 (PREFIX_VEX_3840 + 1)
941 #define PREFIX_VEX_3A04 (PREFIX_VEX_3841 + 1)
942 #define PREFIX_VEX_3A05 (PREFIX_VEX_3A04 + 1)
943 #define PREFIX_VEX_3A06 (PREFIX_VEX_3A05 + 1)
944 #define PREFIX_VEX_3A08 (PREFIX_VEX_3A06 + 1)
945 #define PREFIX_VEX_3A09 (PREFIX_VEX_3A08 + 1)
946 #define PREFIX_VEX_3A0A (PREFIX_VEX_3A09 + 1)
947 #define PREFIX_VEX_3A0B (PREFIX_VEX_3A0A + 1)
948 #define PREFIX_VEX_3A0C (PREFIX_VEX_3A0B + 1)
949 #define PREFIX_VEX_3A0D (PREFIX_VEX_3A0C + 1)
950 #define PREFIX_VEX_3A0E (PREFIX_VEX_3A0D + 1)
951 #define PREFIX_VEX_3A0F (PREFIX_VEX_3A0E + 1)
952 #define PREFIX_VEX_3A14 (PREFIX_VEX_3A0F + 1)
953 #define PREFIX_VEX_3A15 (PREFIX_VEX_3A14 + 1)
954 #define PREFIX_VEX_3A16 (PREFIX_VEX_3A15 + 1)
955 #define PREFIX_VEX_3A17 (PREFIX_VEX_3A16 + 1)
956 #define PREFIX_VEX_3A18 (PREFIX_VEX_3A17 + 1)
957 #define PREFIX_VEX_3A19 (PREFIX_VEX_3A18 + 1)
958 #define PREFIX_VEX_3A20 (PREFIX_VEX_3A19 + 1)
959 #define PREFIX_VEX_3A21 (PREFIX_VEX_3A20 + 1)
960 #define PREFIX_VEX_3A22 (PREFIX_VEX_3A21 + 1)
961 #define PREFIX_VEX_3A40 (PREFIX_VEX_3A22 + 1)
962 #define PREFIX_VEX_3A41 (PREFIX_VEX_3A40 + 1)
963 #define PREFIX_VEX_3A42 (PREFIX_VEX_3A41 + 1)
964 #define PREFIX_VEX_3A48 (PREFIX_VEX_3A42 + 1)
965 #define PREFIX_VEX_3A49 (PREFIX_VEX_3A48 + 1)
966 #define PREFIX_VEX_3A4A (PREFIX_VEX_3A49 + 1)
967 #define PREFIX_VEX_3A4B (PREFIX_VEX_3A4A + 1)
968 #define PREFIX_VEX_3A4C (PREFIX_VEX_3A4B + 1)
969 #define PREFIX_VEX_3A5C (PREFIX_VEX_3A4C + 1)
970 #define PREFIX_VEX_3A5D (PREFIX_VEX_3A5C + 1)
971 #define PREFIX_VEX_3A5E (PREFIX_VEX_3A5D + 1)
972 #define PREFIX_VEX_3A5F (PREFIX_VEX_3A5E + 1)
973 #define PREFIX_VEX_3A60 (PREFIX_VEX_3A5F + 1)
974 #define PREFIX_VEX_3A61 (PREFIX_VEX_3A60 + 1)
975 #define PREFIX_VEX_3A62 (PREFIX_VEX_3A61 + 1)
976 #define PREFIX_VEX_3A63 (PREFIX_VEX_3A62 + 1)
977 #define PREFIX_VEX_3A68 (PREFIX_VEX_3A63 + 1)
978 #define PREFIX_VEX_3A69 (PREFIX_VEX_3A68 + 1)
979 #define PREFIX_VEX_3A6A (PREFIX_VEX_3A69 + 1)
980 #define PREFIX_VEX_3A6B (PREFIX_VEX_3A6A + 1)
981 #define PREFIX_VEX_3A6C (PREFIX_VEX_3A6B + 1)
982 #define PREFIX_VEX_3A6D (PREFIX_VEX_3A6C + 1)
983 #define PREFIX_VEX_3A6E (PREFIX_VEX_3A6D + 1)
984 #define PREFIX_VEX_3A6F (PREFIX_VEX_3A6E + 1)
985 #define PREFIX_VEX_3A78 (PREFIX_VEX_3A6F + 1)
986 #define PREFIX_VEX_3A79 (PREFIX_VEX_3A78 + 1)
987 #define PREFIX_VEX_3A7A (PREFIX_VEX_3A79 + 1)
988 #define PREFIX_VEX_3A7B (PREFIX_VEX_3A7A + 1)
989 #define PREFIX_VEX_3A7C (PREFIX_VEX_3A7B + 1)
990 #define PREFIX_VEX_3A7D (PREFIX_VEX_3A7C + 1)
991 #define PREFIX_VEX_3A7E (PREFIX_VEX_3A7D + 1)
992 #define PREFIX_VEX_3A7F (PREFIX_VEX_3A7E + 1)
995 #define X86_64_07 (X86_64_06 + 1)
996 #define X86_64_0D (X86_64_07 + 1)
997 #define X86_64_16 (X86_64_0D + 1)
998 #define X86_64_17 (X86_64_16 + 1)
999 #define X86_64_1E (X86_64_17 + 1)
1000 #define X86_64_1F (X86_64_1E + 1)
1001 #define X86_64_27 (X86_64_1F + 1)
1002 #define X86_64_2F (X86_64_27 + 1)
1003 #define X86_64_37 (X86_64_2F + 1)
1004 #define X86_64_3F (X86_64_37 + 1)
1005 #define X86_64_60 (X86_64_3F + 1)
1006 #define X86_64_61 (X86_64_60 + 1)
1007 #define X86_64_62 (X86_64_61 + 1)
1008 #define X86_64_63 (X86_64_62 + 1)
1009 #define X86_64_6D (X86_64_63 + 1)
1010 #define X86_64_6F (X86_64_6D + 1)
1011 #define X86_64_9A (X86_64_6F + 1)
1012 #define X86_64_C4 (X86_64_9A + 1)
1013 #define X86_64_C5 (X86_64_C4 + 1)
1014 #define X86_64_CE (X86_64_C5 + 1)
1015 #define X86_64_D4 (X86_64_CE + 1)
1016 #define X86_64_D5 (X86_64_D4 + 1)
1017 #define X86_64_EA (X86_64_D5 + 1)
1018 #define X86_64_0F01_REG_0 (X86_64_EA + 1)
1019 #define X86_64_0F01_REG_1 (X86_64_0F01_REG_0 + 1)
1020 #define X86_64_0F01_REG_2 (X86_64_0F01_REG_1 + 1)
1021 #define X86_64_0F01_REG_3 (X86_64_0F01_REG_2 + 1)
1023 #define THREE_BYTE_0F24 0
1024 #define THREE_BYTE_0F25 (THREE_BYTE_0F24 + 1)
1025 #define THREE_BYTE_0F38 (THREE_BYTE_0F25 + 1)
1026 #define THREE_BYTE_0F3A (THREE_BYTE_0F38 + 1)
1027 #define THREE_BYTE_0F7A (THREE_BYTE_0F3A + 1)
1028 #define THREE_BYTE_0F7B (THREE_BYTE_0F7A + 1)
1031 #define VEX_0F38 (VEX_0F + 1)
1032 #define VEX_0F3A (VEX_0F38 + 1)
1034 #define VEX_LEN_10_P_1 0
1035 #define VEX_LEN_10_P_3 (VEX_LEN_10_P_1 + 1)
1036 #define VEX_LEN_11_P_1 (VEX_LEN_10_P_3 + 1)
1037 #define VEX_LEN_11_P_3 (VEX_LEN_11_P_1 + 1)
1038 #define VEX_LEN_12_P_0_M_0 (VEX_LEN_11_P_3 + 1)
1039 #define VEX_LEN_12_P_0_M_1 (VEX_LEN_12_P_0_M_0 + 1)
1040 #define VEX_LEN_12_P_2 (VEX_LEN_12_P_0_M_1 + 1)
1041 #define VEX_LEN_13_M_0 (VEX_LEN_12_P_2 + 1)
1042 #define VEX_LEN_16_P_0_M_0 (VEX_LEN_13_M_0 + 1)
1043 #define VEX_LEN_16_P_0_M_1 (VEX_LEN_16_P_0_M_0 + 1)
1044 #define VEX_LEN_16_P_2 (VEX_LEN_16_P_0_M_1 + 1)
1045 #define VEX_LEN_17_M_0 (VEX_LEN_16_P_2 + 1)
1046 #define VEX_LEN_2A_P_1 (VEX_LEN_17_M_0 + 1)
1047 #define VEX_LEN_2A_P_3 (VEX_LEN_2A_P_1 + 1)
1048 #define VEX_LEN_2B_M_0 (VEX_LEN_2A_P_3 + 1)
1049 #define VEX_LEN_2C_P_1 (VEX_LEN_2B_M_0 + 1)
1050 #define VEX_LEN_2C_P_3 (VEX_LEN_2C_P_1 + 1)
1051 #define VEX_LEN_2D_P_1 (VEX_LEN_2C_P_3 + 1)
1052 #define VEX_LEN_2D_P_3 (VEX_LEN_2D_P_1 + 1)
1053 #define VEX_LEN_2E_P_0 (VEX_LEN_2D_P_3 + 1)
1054 #define VEX_LEN_2E_P_2 (VEX_LEN_2E_P_0 + 1)
1055 #define VEX_LEN_2F_P_0 (VEX_LEN_2E_P_2 + 1)
1056 #define VEX_LEN_2F_P_2 (VEX_LEN_2F_P_0 + 1)
1057 #define VEX_LEN_51_P_1 (VEX_LEN_2F_P_2 + 1)
1058 #define VEX_LEN_51_P_3 (VEX_LEN_51_P_1 + 1)
1059 #define VEX_LEN_52_P_1 (VEX_LEN_51_P_3 + 1)
1060 #define VEX_LEN_53_P_1 (VEX_LEN_52_P_1 + 1)
1061 #define VEX_LEN_58_P_1 (VEX_LEN_53_P_1 + 1)
1062 #define VEX_LEN_58_P_3 (VEX_LEN_58_P_1 + 1)
1063 #define VEX_LEN_59_P_1 (VEX_LEN_58_P_3 + 1)
1064 #define VEX_LEN_59_P_3 (VEX_LEN_59_P_1 + 1)
1065 #define VEX_LEN_5A_P_1 (VEX_LEN_59_P_3 + 1)
1066 #define VEX_LEN_5A_P_3 (VEX_LEN_5A_P_1 + 1)
1067 #define VEX_LEN_5C_P_1 (VEX_LEN_5A_P_3 + 1)
1068 #define VEX_LEN_5C_P_3 (VEX_LEN_5C_P_1 + 1)
1069 #define VEX_LEN_5D_P_1 (VEX_LEN_5C_P_3 + 1)
1070 #define VEX_LEN_5D_P_3 (VEX_LEN_5D_P_1 + 1)
1071 #define VEX_LEN_5E_P_1 (VEX_LEN_5D_P_3 + 1)
1072 #define VEX_LEN_5E_P_3 (VEX_LEN_5E_P_1 + 1)
1073 #define VEX_LEN_5F_P_1 (VEX_LEN_5E_P_3 + 1)
1074 #define VEX_LEN_5F_P_3 (VEX_LEN_5F_P_1 + 1)
1075 #define VEX_LEN_60_P_2 (VEX_LEN_5F_P_3 + 1)
1076 #define VEX_LEN_61_P_2 (VEX_LEN_60_P_2 + 1)
1077 #define VEX_LEN_62_P_2 (VEX_LEN_61_P_2 + 1)
1078 #define VEX_LEN_63_P_2 (VEX_LEN_62_P_2 + 1)
1079 #define VEX_LEN_64_P_2 (VEX_LEN_63_P_2 + 1)
1080 #define VEX_LEN_65_P_2 (VEX_LEN_64_P_2 + 1)
1081 #define VEX_LEN_66_P_2 (VEX_LEN_65_P_2 + 1)
1082 #define VEX_LEN_67_P_2 (VEX_LEN_66_P_2 + 1)
1083 #define VEX_LEN_68_P_2 (VEX_LEN_67_P_2 + 1)
1084 #define VEX_LEN_69_P_2 (VEX_LEN_68_P_2 + 1)
1085 #define VEX_LEN_6A_P_2 (VEX_LEN_69_P_2 + 1)
1086 #define VEX_LEN_6B_P_2 (VEX_LEN_6A_P_2 + 1)
1087 #define VEX_LEN_6C_P_2 (VEX_LEN_6B_P_2 + 1)
1088 #define VEX_LEN_6D_P_2 (VEX_LEN_6C_P_2 + 1)
1089 #define VEX_LEN_6E_P_2 (VEX_LEN_6D_P_2 + 1)
1090 #define VEX_LEN_70_P_1 (VEX_LEN_6E_P_2 + 1)
1091 #define VEX_LEN_70_P_2 (VEX_LEN_70_P_1 + 1)
1092 #define VEX_LEN_70_P_3 (VEX_LEN_70_P_2 + 1)
1093 #define VEX_LEN_71_R_2_P_2 (VEX_LEN_70_P_3 + 1)
1094 #define VEX_LEN_71_R_4_P_2 (VEX_LEN_71_R_2_P_2 + 1)
1095 #define VEX_LEN_71_R_6_P_2 (VEX_LEN_71_R_4_P_2 + 1)
1096 #define VEX_LEN_72_R_2_P_2 (VEX_LEN_71_R_6_P_2 + 1)
1097 #define VEX_LEN_72_R_4_P_2 (VEX_LEN_72_R_2_P_2 + 1)
1098 #define VEX_LEN_72_R_6_P_2 (VEX_LEN_72_R_4_P_2 + 1)
1099 #define VEX_LEN_73_R_2_P_2 (VEX_LEN_72_R_6_P_2 + 1)
1100 #define VEX_LEN_73_R_3_P_2 (VEX_LEN_73_R_2_P_2 + 1)
1101 #define VEX_LEN_73_R_6_P_2 (VEX_LEN_73_R_3_P_2 + 1)
1102 #define VEX_LEN_73_R_7_P_2 (VEX_LEN_73_R_6_P_2 + 1)
1103 #define VEX_LEN_74_P_2 (VEX_LEN_73_R_7_P_2 + 1)
1104 #define VEX_LEN_75_P_2 (VEX_LEN_74_P_2 + 1)
1105 #define VEX_LEN_76_P_2 (VEX_LEN_75_P_2 + 1)
1106 #define VEX_LEN_7E_P_1 (VEX_LEN_76_P_2 + 1)
1107 #define VEX_LEN_7E_P_2 (VEX_LEN_7E_P_1 + 1)
1108 #define VEX_LEN_AE_R_2_M_0 (VEX_LEN_7E_P_2 + 1)
1109 #define VEX_LEN_AE_R_3_M_0 (VEX_LEN_AE_R_2_M_0 + 1)
1110 #define VEX_LEN_C2_P_1 (VEX_LEN_AE_R_3_M_0 + 1)
1111 #define VEX_LEN_C2_P_3 (VEX_LEN_C2_P_1 + 1)
1112 #define VEX_LEN_C4_P_2 (VEX_LEN_C2_P_3 + 1)
1113 #define VEX_LEN_C5_P_2 (VEX_LEN_C4_P_2 + 1)
1114 #define VEX_LEN_D1_P_2 (VEX_LEN_C5_P_2 + 1)
1115 #define VEX_LEN_D2_P_2 (VEX_LEN_D1_P_2 + 1)
1116 #define VEX_LEN_D3_P_2 (VEX_LEN_D2_P_2 + 1)
1117 #define VEX_LEN_D4_P_2 (VEX_LEN_D3_P_2 + 1)
1118 #define VEX_LEN_D5_P_2 (VEX_LEN_D4_P_2 + 1)
1119 #define VEX_LEN_D6_P_2 (VEX_LEN_D5_P_2 + 1)
1120 #define VEX_LEN_D7_P_2_M_1 (VEX_LEN_D6_P_2 + 1)
1121 #define VEX_LEN_D8_P_2 (VEX_LEN_D7_P_2_M_1 + 1)
1122 #define VEX_LEN_D9_P_2 (VEX_LEN_D8_P_2 + 1)
1123 #define VEX_LEN_DA_P_2 (VEX_LEN_D9_P_2 + 1)
1124 #define VEX_LEN_DB_P_2 (VEX_LEN_DA_P_2 + 1)
1125 #define VEX_LEN_DC_P_2 (VEX_LEN_DB_P_2 + 1)
1126 #define VEX_LEN_DD_P_2 (VEX_LEN_DC_P_2 + 1)
1127 #define VEX_LEN_DE_P_2 (VEX_LEN_DD_P_2 + 1)
1128 #define VEX_LEN_DF_P_2 (VEX_LEN_DE_P_2 + 1)
1129 #define VEX_LEN_E0_P_2 (VEX_LEN_DF_P_2 + 1)
1130 #define VEX_LEN_E1_P_2 (VEX_LEN_E0_P_2 + 1)
1131 #define VEX_LEN_E2_P_2 (VEX_LEN_E1_P_2 + 1)
1132 #define VEX_LEN_E3_P_2 (VEX_LEN_E2_P_2 + 1)
1133 #define VEX_LEN_E4_P_2 (VEX_LEN_E3_P_2 + 1)
1134 #define VEX_LEN_E5_P_2 (VEX_LEN_E4_P_2 + 1)
1135 #define VEX_LEN_E7_P_2_M_0 (VEX_LEN_E5_P_2 + 1)
1136 #define VEX_LEN_E8_P_2 (VEX_LEN_E7_P_2_M_0 + 1)
1137 #define VEX_LEN_E9_P_2 (VEX_LEN_E8_P_2 + 1)
1138 #define VEX_LEN_EA_P_2 (VEX_LEN_E9_P_2 + 1)
1139 #define VEX_LEN_EB_P_2 (VEX_LEN_EA_P_2 + 1)
1140 #define VEX_LEN_EC_P_2 (VEX_LEN_EB_P_2 + 1)
1141 #define VEX_LEN_ED_P_2 (VEX_LEN_EC_P_2 + 1)
1142 #define VEX_LEN_EE_P_2 (VEX_LEN_ED_P_2 + 1)
1143 #define VEX_LEN_EF_P_2 (VEX_LEN_EE_P_2 + 1)
1144 #define VEX_LEN_F1_P_2 (VEX_LEN_EF_P_2 + 1)
1145 #define VEX_LEN_F2_P_2 (VEX_LEN_F1_P_2 + 1)
1146 #define VEX_LEN_F3_P_2 (VEX_LEN_F2_P_2 + 1)
1147 #define VEX_LEN_F4_P_2 (VEX_LEN_F3_P_2 + 1)
1148 #define VEX_LEN_F5_P_2 (VEX_LEN_F4_P_2 + 1)
1149 #define VEX_LEN_F6_P_2 (VEX_LEN_F5_P_2 + 1)
1150 #define VEX_LEN_F7_P_2 (VEX_LEN_F6_P_2 + 1)
1151 #define VEX_LEN_F8_P_2 (VEX_LEN_F7_P_2 + 1)
1152 #define VEX_LEN_F9_P_2 (VEX_LEN_F8_P_2 + 1)
1153 #define VEX_LEN_FA_P_2 (VEX_LEN_F9_P_2 + 1)
1154 #define VEX_LEN_FB_P_2 (VEX_LEN_FA_P_2 + 1)
1155 #define VEX_LEN_FC_P_2 (VEX_LEN_FB_P_2 + 1)
1156 #define VEX_LEN_FD_P_2 (VEX_LEN_FC_P_2 + 1)
1157 #define VEX_LEN_FE_P_2 (VEX_LEN_FD_P_2 + 1)
1158 #define VEX_LEN_3800_P_2 (VEX_LEN_FE_P_2 + 1)
1159 #define VEX_LEN_3801_P_2 (VEX_LEN_3800_P_2 + 1)
1160 #define VEX_LEN_3802_P_2 (VEX_LEN_3801_P_2 + 1)
1161 #define VEX_LEN_3803_P_2 (VEX_LEN_3802_P_2 + 1)
1162 #define VEX_LEN_3804_P_2 (VEX_LEN_3803_P_2 + 1)
1163 #define VEX_LEN_3805_P_2 (VEX_LEN_3804_P_2 + 1)
1164 #define VEX_LEN_3806_P_2 (VEX_LEN_3805_P_2 + 1)
1165 #define VEX_LEN_3807_P_2 (VEX_LEN_3806_P_2 + 1)
1166 #define VEX_LEN_3808_P_2 (VEX_LEN_3807_P_2 + 1)
1167 #define VEX_LEN_3809_P_2 (VEX_LEN_3808_P_2 + 1)
1168 #define VEX_LEN_380A_P_2 (VEX_LEN_3809_P_2 + 1)
1169 #define VEX_LEN_380B_P_2 (VEX_LEN_380A_P_2 + 1)
1170 #define VEX_LEN_3819_P_2_M_0 (VEX_LEN_380B_P_2 + 1)
1171 #define VEX_LEN_381A_P_2_M_0 (VEX_LEN_3819_P_2_M_0 + 1)
1172 #define VEX_LEN_381C_P_2 (VEX_LEN_381A_P_2_M_0 + 1)
1173 #define VEX_LEN_381D_P_2 (VEX_LEN_381C_P_2 + 1)
1174 #define VEX_LEN_381E_P_2 (VEX_LEN_381D_P_2 + 1)
1175 #define VEX_LEN_3820_P_2 (VEX_LEN_381E_P_2 + 1)
1176 #define VEX_LEN_3821_P_2 (VEX_LEN_3820_P_2 + 1)
1177 #define VEX_LEN_3822_P_2 (VEX_LEN_3821_P_2 + 1)
1178 #define VEX_LEN_3823_P_2 (VEX_LEN_3822_P_2 + 1)
1179 #define VEX_LEN_3824_P_2 (VEX_LEN_3823_P_2 + 1)
1180 #define VEX_LEN_3825_P_2 (VEX_LEN_3824_P_2 + 1)
1181 #define VEX_LEN_3828_P_2 (VEX_LEN_3825_P_2 + 1)
1182 #define VEX_LEN_3829_P_2 (VEX_LEN_3828_P_2 + 1)
1183 #define VEX_LEN_382A_P_2_M_0 (VEX_LEN_3829_P_2 + 1)
1184 #define VEX_LEN_382B_P_2 (VEX_LEN_382A_P_2_M_0 + 1)
1185 #define VEX_LEN_3830_P_2 (VEX_LEN_382B_P_2 + 1)
1186 #define VEX_LEN_3831_P_2 (VEX_LEN_3830_P_2 + 1)
1187 #define VEX_LEN_3832_P_2 (VEX_LEN_3831_P_2 + 1)
1188 #define VEX_LEN_3833_P_2 (VEX_LEN_3832_P_2 + 1)
1189 #define VEX_LEN_3834_P_2 (VEX_LEN_3833_P_2 + 1)
1190 #define VEX_LEN_3835_P_2 (VEX_LEN_3834_P_2 + 1)
1191 #define VEX_LEN_3837_P_2 (VEX_LEN_3835_P_2 + 1)
1192 #define VEX_LEN_3838_P_2 (VEX_LEN_3837_P_2 + 1)
1193 #define VEX_LEN_3839_P_2 (VEX_LEN_3838_P_2 + 1)
1194 #define VEX_LEN_383A_P_2 (VEX_LEN_3839_P_2 + 1)
1195 #define VEX_LEN_383B_P_2 (VEX_LEN_383A_P_2 + 1)
1196 #define VEX_LEN_383C_P_2 (VEX_LEN_383B_P_2 + 1)
1197 #define VEX_LEN_383D_P_2 (VEX_LEN_383C_P_2 + 1)
1198 #define VEX_LEN_383E_P_2 (VEX_LEN_383D_P_2 + 1)
1199 #define VEX_LEN_383F_P_2 (VEX_LEN_383E_P_2 + 1)
1200 #define VEX_LEN_3840_P_2 (VEX_LEN_383F_P_2 + 1)
1201 #define VEX_LEN_3841_P_2 (VEX_LEN_3840_P_2 + 1)
1202 #define VEX_LEN_3A06_P_2 (VEX_LEN_3841_P_2 + 1)
1203 #define VEX_LEN_3A0A_P_2 (VEX_LEN_3A06_P_2 + 1)
1204 #define VEX_LEN_3A0B_P_2 (VEX_LEN_3A0A_P_2 + 1)
1205 #define VEX_LEN_3A0E_P_2 (VEX_LEN_3A0B_P_2 + 1)
1206 #define VEX_LEN_3A0F_P_2 (VEX_LEN_3A0E_P_2 + 1)
1207 #define VEX_LEN_3A14_P_2 (VEX_LEN_3A0F_P_2 + 1)
1208 #define VEX_LEN_3A15_P_2 (VEX_LEN_3A14_P_2 + 1)
1209 #define VEX_LEN_3A16_P_2 (VEX_LEN_3A15_P_2 + 1)
1210 #define VEX_LEN_3A17_P_2 (VEX_LEN_3A16_P_2 + 1)
1211 #define VEX_LEN_3A18_P_2 (VEX_LEN_3A17_P_2 + 1)
1212 #define VEX_LEN_3A19_P_2 (VEX_LEN_3A18_P_2 + 1)
1213 #define VEX_LEN_3A20_P_2 (VEX_LEN_3A19_P_2 + 1)
1214 #define VEX_LEN_3A21_P_2 (VEX_LEN_3A20_P_2 + 1)
1215 #define VEX_LEN_3A22_P_2 (VEX_LEN_3A21_P_2 + 1)
1216 #define VEX_LEN_3A41_P_2 (VEX_LEN_3A22_P_2 + 1)
1217 #define VEX_LEN_3A42_P_2 (VEX_LEN_3A41_P_2 + 1)
1218 #define VEX_LEN_3A4C_P_2 (VEX_LEN_3A42_P_2 + 1)
1219 #define VEX_LEN_3A60_P_2 (VEX_LEN_3A4C_P_2 + 1)
1220 #define VEX_LEN_3A61_P_2 (VEX_LEN_3A60_P_2 + 1)
1221 #define VEX_LEN_3A62_P_2 (VEX_LEN_3A61_P_2 + 1)
1222 #define VEX_LEN_3A63_P_2 (VEX_LEN_3A62_P_2 + 1)
1223 #define VEX_LEN_3A6A_P_2 (VEX_LEN_3A63_P_2 + 1)
1224 #define VEX_LEN_3A6B_P_2 (VEX_LEN_3A6A_P_2 + 1)
1225 #define VEX_LEN_3A6E_P_2 (VEX_LEN_3A6B_P_2 + 1)
1226 #define VEX_LEN_3A6F_P_2 (VEX_LEN_3A6E_P_2 + 1)
1227 #define VEX_LEN_3A7A_P_2 (VEX_LEN_3A6F_P_2 + 1)
1228 #define VEX_LEN_3A7B_P_2 (VEX_LEN_3A7A_P_2 + 1)
1229 #define VEX_LEN_3A7E_P_2 (VEX_LEN_3A7B_P_2 + 1)
1230 #define VEX_LEN_3A7F_P_2 (VEX_LEN_3A7E_P_2 + 1)
1232 typedef void (*op_rtn) (int bytemode, int sizeflag);
1243 /* Upper case letters in the instruction names here are macros.
1244 'A' => print 'b' if no register operands or suffix_always is true
1245 'B' => print 'b' if suffix_always is true
1246 'C' => print 's' or 'l' ('w' or 'd' in Intel mode) depending on operand
1248 'D' => print 'w' if no register operands or 'w', 'l' or 'q', if
1249 suffix_always is true
1250 'E' => print 'e' if 32-bit form of jcxz
1251 'F' => print 'w' or 'l' depending on address size prefix (loop insns)
1252 'G' => print 'w' or 'l' depending on operand size prefix (i/o insns)
1253 'H' => print ",pt" or ",pn" branch hint
1254 'I' => honor following macro letter even in Intel mode (implemented only
1255 for some of the macro letters)
1257 'K' => print 'd' or 'q' if rex prefix is present.
1258 'L' => print 'l' if suffix_always is true
1259 'M' => print 'r' if intel_mnemonic is false.
1260 'N' => print 'n' if instruction has no wait "prefix"
1261 'O' => print 'd' or 'o' (or 'q' in Intel mode)
1262 'P' => print 'w', 'l' or 'q' if instruction has an operand size prefix,
1263 or suffix_always is true. print 'q' if rex prefix is present.
1264 'Q' => print 'w', 'l' or 'q' for memory operand or suffix_always
1266 'R' => print 'w', 'l' or 'q' ('d' for 'l' and 'e' in Intel mode)
1267 'S' => print 'w', 'l' or 'q' if suffix_always is true
1268 'T' => print 'q' in 64bit mode and behave as 'P' otherwise
1269 'U' => print 'q' in 64bit mode and behave as 'Q' otherwise
1270 'V' => print 'q' in 64bit mode and behave as 'S' otherwise
1271 'W' => print 'b', 'w' or 'l' ('d' in Intel mode)
1272 'X' => print 's', 'd' depending on data16 prefix (for XMM)
1273 'Y' => 'q' if instruction has an REX 64bit overwrite prefix and
1274 suffix_always is true.
1275 'Z' => print 'q' in 64bit mode and behave as 'L' otherwise
1276 '!' => change condition from true to false or from false to true.
1277 '%' => add 1 upper case letter to the macro.
1279 2 upper case letter macros:
1280 "XY" => print 'x' or 'y' if no register operands or suffix_always
1282 'LQ' => print 'l' ('d' in Intel mode) or 'q' for memory operand
1283 or suffix_always is true
1285 Many of the above letters print nothing in Intel mode. See "putop"
1288 Braces '{' and '}', and vertical bars '|', indicate alternative
1289 mnemonic strings for AT&T and Intel. */
1291 static const struct dis386 dis386[] = {
1293 { "addB", { Eb, Gb } },
1294 { "addS", { Ev, Gv } },
1295 { "addB", { Gb, Eb } },
1296 { "addS", { Gv, Ev } },
1297 { "addB", { AL, Ib } },
1298 { "addS", { eAX, Iv } },
1299 { X86_64_TABLE (X86_64_06) },
1300 { X86_64_TABLE (X86_64_07) },
1302 { "orB", { Eb, Gb } },
1303 { "orS", { Ev, Gv } },
1304 { "orB", { Gb, Eb } },
1305 { "orS", { Gv, Ev } },
1306 { "orB", { AL, Ib } },
1307 { "orS", { eAX, Iv } },
1308 { X86_64_TABLE (X86_64_0D) },
1309 { "(bad)", { XX } }, /* 0x0f extended opcode escape */
1311 { "adcB", { Eb, Gb } },
1312 { "adcS", { Ev, Gv } },
1313 { "adcB", { Gb, Eb } },
1314 { "adcS", { Gv, Ev } },
1315 { "adcB", { AL, Ib } },
1316 { "adcS", { eAX, Iv } },
1317 { X86_64_TABLE (X86_64_16) },
1318 { X86_64_TABLE (X86_64_17) },
1320 { "sbbB", { Eb, Gb } },
1321 { "sbbS", { Ev, Gv } },
1322 { "sbbB", { Gb, Eb } },
1323 { "sbbS", { Gv, Ev } },
1324 { "sbbB", { AL, Ib } },
1325 { "sbbS", { eAX, Iv } },
1326 { X86_64_TABLE (X86_64_1E) },
1327 { X86_64_TABLE (X86_64_1F) },
1329 { "andB", { Eb, Gb } },
1330 { "andS", { Ev, Gv } },
1331 { "andB", { Gb, Eb } },
1332 { "andS", { Gv, Ev } },
1333 { "andB", { AL, Ib } },
1334 { "andS", { eAX, Iv } },
1335 { "(bad)", { XX } }, /* SEG ES prefix */
1336 { X86_64_TABLE (X86_64_27) },
1338 { "subB", { Eb, Gb } },
1339 { "subS", { Ev, Gv } },
1340 { "subB", { Gb, Eb } },
1341 { "subS", { Gv, Ev } },
1342 { "subB", { AL, Ib } },
1343 { "subS", { eAX, Iv } },
1344 { "(bad)", { XX } }, /* SEG CS prefix */
1345 { X86_64_TABLE (X86_64_2F) },
1347 { "xorB", { Eb, Gb } },
1348 { "xorS", { Ev, Gv } },
1349 { "xorB", { Gb, Eb } },
1350 { "xorS", { Gv, Ev } },
1351 { "xorB", { AL, Ib } },
1352 { "xorS", { eAX, Iv } },
1353 { "(bad)", { XX } }, /* SEG SS prefix */
1354 { X86_64_TABLE (X86_64_37) },
1356 { "cmpB", { Eb, Gb } },
1357 { "cmpS", { Ev, Gv } },
1358 { "cmpB", { Gb, Eb } },
1359 { "cmpS", { Gv, Ev } },
1360 { "cmpB", { AL, Ib } },
1361 { "cmpS", { eAX, Iv } },
1362 { "(bad)", { XX } }, /* SEG DS prefix */
1363 { X86_64_TABLE (X86_64_3F) },
1365 { "inc{S|}", { RMeAX } },
1366 { "inc{S|}", { RMeCX } },
1367 { "inc{S|}", { RMeDX } },
1368 { "inc{S|}", { RMeBX } },
1369 { "inc{S|}", { RMeSP } },
1370 { "inc{S|}", { RMeBP } },
1371 { "inc{S|}", { RMeSI } },
1372 { "inc{S|}", { RMeDI } },
1374 { "dec{S|}", { RMeAX } },
1375 { "dec{S|}", { RMeCX } },
1376 { "dec{S|}", { RMeDX } },
1377 { "dec{S|}", { RMeBX } },
1378 { "dec{S|}", { RMeSP } },
1379 { "dec{S|}", { RMeBP } },
1380 { "dec{S|}", { RMeSI } },
1381 { "dec{S|}", { RMeDI } },
1383 { "pushV", { RMrAX } },
1384 { "pushV", { RMrCX } },
1385 { "pushV", { RMrDX } },
1386 { "pushV", { RMrBX } },
1387 { "pushV", { RMrSP } },
1388 { "pushV", { RMrBP } },
1389 { "pushV", { RMrSI } },
1390 { "pushV", { RMrDI } },
1392 { "popV", { RMrAX } },
1393 { "popV", { RMrCX } },
1394 { "popV", { RMrDX } },
1395 { "popV", { RMrBX } },
1396 { "popV", { RMrSP } },
1397 { "popV", { RMrBP } },
1398 { "popV", { RMrSI } },
1399 { "popV", { RMrDI } },
1401 { X86_64_TABLE (X86_64_60) },
1402 { X86_64_TABLE (X86_64_61) },
1403 { X86_64_TABLE (X86_64_62) },
1404 { X86_64_TABLE (X86_64_63) },
1405 { "(bad)", { XX } }, /* seg fs */
1406 { "(bad)", { XX } }, /* seg gs */
1407 { "(bad)", { XX } }, /* op size prefix */
1408 { "(bad)", { XX } }, /* adr size prefix */
1410 { "pushT", { Iq } },
1411 { "imulS", { Gv, Ev, Iv } },
1412 { "pushT", { sIb } },
1413 { "imulS", { Gv, Ev, sIb } },
1414 { "ins{b|}", { Ybr, indirDX } },
1415 { X86_64_TABLE (X86_64_6D) },
1416 { "outs{b|}", { indirDXr, Xb } },
1417 { X86_64_TABLE (X86_64_6F) },
1419 { "joH", { Jb, XX, cond_jump_flag } },
1420 { "jnoH", { Jb, XX, cond_jump_flag } },
1421 { "jbH", { Jb, XX, cond_jump_flag } },
1422 { "jaeH", { Jb, XX, cond_jump_flag } },
1423 { "jeH", { Jb, XX, cond_jump_flag } },
1424 { "jneH", { Jb, XX, cond_jump_flag } },
1425 { "jbeH", { Jb, XX, cond_jump_flag } },
1426 { "jaH", { Jb, XX, cond_jump_flag } },
1428 { "jsH", { Jb, XX, cond_jump_flag } },
1429 { "jnsH", { Jb, XX, cond_jump_flag } },
1430 { "jpH", { Jb, XX, cond_jump_flag } },
1431 { "jnpH", { Jb, XX, cond_jump_flag } },
1432 { "jlH", { Jb, XX, cond_jump_flag } },
1433 { "jgeH", { Jb, XX, cond_jump_flag } },
1434 { "jleH", { Jb, XX, cond_jump_flag } },
1435 { "jgH", { Jb, XX, cond_jump_flag } },
1437 { REG_TABLE (REG_80) },
1438 { REG_TABLE (REG_81) },
1439 { "(bad)", { XX } },
1440 { REG_TABLE (REG_82) },
1441 { "testB", { Eb, Gb } },
1442 { "testS", { Ev, Gv } },
1443 { "xchgB", { Eb, Gb } },
1444 { "xchgS", { Ev, Gv } },
1446 { "movB", { Eb, Gb } },
1447 { "movS", { Ev, Gv } },
1448 { "movB", { Gb, Eb } },
1449 { "movS", { Gv, Ev } },
1450 { "movD", { Sv, Sw } },
1451 { MOD_TABLE (MOD_8D) },
1452 { "movD", { Sw, Sv } },
1453 { REG_TABLE (REG_8F) },
1455 { PREFIX_TABLE (PREFIX_90) },
1456 { "xchgS", { RMeCX, eAX } },
1457 { "xchgS", { RMeDX, eAX } },
1458 { "xchgS", { RMeBX, eAX } },
1459 { "xchgS", { RMeSP, eAX } },
1460 { "xchgS", { RMeBP, eAX } },
1461 { "xchgS", { RMeSI, eAX } },
1462 { "xchgS", { RMeDI, eAX } },
1464 { "cW{t|}R", { XX } },
1465 { "cR{t|}O", { XX } },
1466 { X86_64_TABLE (X86_64_9A) },
1467 { "(bad)", { XX } }, /* fwait */
1468 { "pushfT", { XX } },
1469 { "popfT", { XX } },
1473 { "movB", { AL, Ob } },
1474 { "movS", { eAX, Ov } },
1475 { "movB", { Ob, AL } },
1476 { "movS", { Ov, eAX } },
1477 { "movs{b|}", { Ybr, Xb } },
1478 { "movs{R|}", { Yvr, Xv } },
1479 { "cmps{b|}", { Xb, Yb } },
1480 { "cmps{R|}", { Xv, Yv } },
1482 { "testB", { AL, Ib } },
1483 { "testS", { eAX, Iv } },
1484 { "stosB", { Ybr, AL } },
1485 { "stosS", { Yvr, eAX } },
1486 { "lodsB", { ALr, Xb } },
1487 { "lodsS", { eAXr, Xv } },
1488 { "scasB", { AL, Yb } },
1489 { "scasS", { eAX, Yv } },
1491 { "movB", { RMAL, Ib } },
1492 { "movB", { RMCL, Ib } },
1493 { "movB", { RMDL, Ib } },
1494 { "movB", { RMBL, Ib } },
1495 { "movB", { RMAH, Ib } },
1496 { "movB", { RMCH, Ib } },
1497 { "movB", { RMDH, Ib } },
1498 { "movB", { RMBH, Ib } },
1500 { "movS", { RMeAX, Iv64 } },
1501 { "movS", { RMeCX, Iv64 } },
1502 { "movS", { RMeDX, Iv64 } },
1503 { "movS", { RMeBX, Iv64 } },
1504 { "movS", { RMeSP, Iv64 } },
1505 { "movS", { RMeBP, Iv64 } },
1506 { "movS", { RMeSI, Iv64 } },
1507 { "movS", { RMeDI, Iv64 } },
1509 { REG_TABLE (REG_C0) },
1510 { REG_TABLE (REG_C1) },
1513 { X86_64_TABLE (X86_64_C4) },
1514 { X86_64_TABLE (X86_64_C5) },
1515 { REG_TABLE (REG_C6) },
1516 { REG_TABLE (REG_C7) },
1518 { "enterT", { Iw, Ib } },
1519 { "leaveT", { XX } },
1520 { "lretP", { Iw } },
1521 { "lretP", { XX } },
1524 { X86_64_TABLE (X86_64_CE) },
1525 { "iretP", { XX } },
1527 { REG_TABLE (REG_D0) },
1528 { REG_TABLE (REG_D1) },
1529 { REG_TABLE (REG_D2) },
1530 { REG_TABLE (REG_D3) },
1531 { X86_64_TABLE (X86_64_D4) },
1532 { X86_64_TABLE (X86_64_D5) },
1533 { "(bad)", { XX } },
1534 { "xlat", { DSBX } },
1545 { "loopneFH", { Jb, XX, loop_jcxz_flag } },
1546 { "loopeFH", { Jb, XX, loop_jcxz_flag } },
1547 { "loopFH", { Jb, XX, loop_jcxz_flag } },
1548 { "jEcxzH", { Jb, XX, loop_jcxz_flag } },
1549 { "inB", { AL, Ib } },
1550 { "inG", { zAX, Ib } },
1551 { "outB", { Ib, AL } },
1552 { "outG", { Ib, zAX } },
1554 { "callT", { Jv } },
1556 { X86_64_TABLE (X86_64_EA) },
1558 { "inB", { AL, indirDX } },
1559 { "inG", { zAX, indirDX } },
1560 { "outB", { indirDX, AL } },
1561 { "outG", { indirDX, zAX } },
1563 { "(bad)", { XX } }, /* lock prefix */
1564 { "icebp", { XX } },
1565 { "(bad)", { XX } }, /* repne */
1566 { "(bad)", { XX } }, /* repz */
1569 { REG_TABLE (REG_F6) },
1570 { REG_TABLE (REG_F7) },
1578 { REG_TABLE (REG_FE) },
1579 { REG_TABLE (REG_FF) },
1582 static const struct dis386 dis386_twobyte[] = {
1584 { REG_TABLE (REG_0F00 ) },
1585 { REG_TABLE (REG_0F01 ) },
1586 { "larS", { Gv, Ew } },
1587 { "lslS", { Gv, Ew } },
1588 { "(bad)", { XX } },
1589 { "syscall", { XX } },
1591 { "sysretP", { XX } },
1594 { "wbinvd", { XX } },
1595 { "(bad)", { XX } },
1597 { "(bad)", { XX } },
1598 { REG_TABLE (REG_0F0D) },
1599 { "femms", { XX } },
1600 { "", { MX, EM, OPSUF } }, /* See OP_3DNowSuffix. */
1602 { PREFIX_TABLE (PREFIX_0F10) },
1603 { PREFIX_TABLE (PREFIX_0F11) },
1604 { PREFIX_TABLE (PREFIX_0F12) },
1605 { MOD_TABLE (MOD_0F13) },
1606 { "unpcklpX", { XM, EXx } },
1607 { "unpckhpX", { XM, EXx } },
1608 { PREFIX_TABLE (PREFIX_0F16) },
1609 { MOD_TABLE (MOD_0F17) },
1611 { REG_TABLE (REG_0F18) },
1620 { MOD_TABLE (MOD_0F20) },
1621 { MOD_TABLE (MOD_0F21) },
1622 { MOD_TABLE (MOD_0F22) },
1623 { MOD_TABLE (MOD_0F23) },
1624 { MOD_TABLE (MOD_0F24) },
1625 { THREE_BYTE_TABLE (THREE_BYTE_0F25) },
1626 { MOD_TABLE (MOD_0F26) },
1627 { "(bad)", { XX } },
1629 { "movapX", { XM, EXx } },
1630 { "movapX", { EXx, XM } },
1631 { PREFIX_TABLE (PREFIX_0F2A) },
1632 { PREFIX_TABLE (PREFIX_0F2B) },
1633 { PREFIX_TABLE (PREFIX_0F2C) },
1634 { PREFIX_TABLE (PREFIX_0F2D) },
1635 { PREFIX_TABLE (PREFIX_0F2E) },
1636 { PREFIX_TABLE (PREFIX_0F2F) },
1638 { "wrmsr", { XX } },
1639 { "rdtsc", { XX } },
1640 { "rdmsr", { XX } },
1641 { "rdpmc", { XX } },
1642 { "sysenter", { XX } },
1643 { "sysexit", { XX } },
1644 { "(bad)", { XX } },
1645 { "getsec", { XX } },
1647 { THREE_BYTE_TABLE (THREE_BYTE_0F38) },
1648 { "(bad)", { XX } },
1649 { THREE_BYTE_TABLE (THREE_BYTE_0F3A) },
1650 { "(bad)", { XX } },
1651 { "(bad)", { XX } },
1652 { "(bad)", { XX } },
1653 { "(bad)", { XX } },
1654 { "(bad)", { XX } },
1656 { "cmovo", { Gv, Ev } },
1657 { "cmovno", { Gv, Ev } },
1658 { "cmovb", { Gv, Ev } },
1659 { "cmovae", { Gv, Ev } },
1660 { "cmove", { Gv, Ev } },
1661 { "cmovne", { Gv, Ev } },
1662 { "cmovbe", { Gv, Ev } },
1663 { "cmova", { Gv, Ev } },
1665 { "cmovs", { Gv, Ev } },
1666 { "cmovns", { Gv, Ev } },
1667 { "cmovp", { Gv, Ev } },
1668 { "cmovnp", { Gv, Ev } },
1669 { "cmovl", { Gv, Ev } },
1670 { "cmovge", { Gv, Ev } },
1671 { "cmovle", { Gv, Ev } },
1672 { "cmovg", { Gv, Ev } },
1674 { MOD_TABLE (MOD_0F51) },
1675 { PREFIX_TABLE (PREFIX_0F51) },
1676 { PREFIX_TABLE (PREFIX_0F52) },
1677 { PREFIX_TABLE (PREFIX_0F53) },
1678 { "andpX", { XM, EXx } },
1679 { "andnpX", { XM, EXx } },
1680 { "orpX", { XM, EXx } },
1681 { "xorpX", { XM, EXx } },
1683 { PREFIX_TABLE (PREFIX_0F58) },
1684 { PREFIX_TABLE (PREFIX_0F59) },
1685 { PREFIX_TABLE (PREFIX_0F5A) },
1686 { PREFIX_TABLE (PREFIX_0F5B) },
1687 { PREFIX_TABLE (PREFIX_0F5C) },
1688 { PREFIX_TABLE (PREFIX_0F5D) },
1689 { PREFIX_TABLE (PREFIX_0F5E) },
1690 { PREFIX_TABLE (PREFIX_0F5F) },
1692 { PREFIX_TABLE (PREFIX_0F60) },
1693 { PREFIX_TABLE (PREFIX_0F61) },
1694 { PREFIX_TABLE (PREFIX_0F62) },
1695 { "packsswb", { MX, EM } },
1696 { "pcmpgtb", { MX, EM } },
1697 { "pcmpgtw", { MX, EM } },
1698 { "pcmpgtd", { MX, EM } },
1699 { "packuswb", { MX, EM } },
1701 { "punpckhbw", { MX, EM } },
1702 { "punpckhwd", { MX, EM } },
1703 { "punpckhdq", { MX, EM } },
1704 { "packssdw", { MX, EM } },
1705 { PREFIX_TABLE (PREFIX_0F6C) },
1706 { PREFIX_TABLE (PREFIX_0F6D) },
1707 { "movK", { MX, Edq } },
1708 { PREFIX_TABLE (PREFIX_0F6F) },
1710 { PREFIX_TABLE (PREFIX_0F70) },
1711 { REG_TABLE (REG_0F71) },
1712 { REG_TABLE (REG_0F72) },
1713 { REG_TABLE (REG_0F73) },
1714 { "pcmpeqb", { MX, EM } },
1715 { "pcmpeqw", { MX, EM } },
1716 { "pcmpeqd", { MX, EM } },
1719 { PREFIX_TABLE (PREFIX_0F78) },
1720 { PREFIX_TABLE (PREFIX_0F79) },
1721 { THREE_BYTE_TABLE (THREE_BYTE_0F7A) },
1722 { THREE_BYTE_TABLE (THREE_BYTE_0F7B) },
1723 { PREFIX_TABLE (PREFIX_0F7C) },
1724 { PREFIX_TABLE (PREFIX_0F7D) },
1725 { PREFIX_TABLE (PREFIX_0F7E) },
1726 { PREFIX_TABLE (PREFIX_0F7F) },
1728 { "joH", { Jv, XX, cond_jump_flag } },
1729 { "jnoH", { Jv, XX, cond_jump_flag } },
1730 { "jbH", { Jv, XX, cond_jump_flag } },
1731 { "jaeH", { Jv, XX, cond_jump_flag } },
1732 { "jeH", { Jv, XX, cond_jump_flag } },
1733 { "jneH", { Jv, XX, cond_jump_flag } },
1734 { "jbeH", { Jv, XX, cond_jump_flag } },
1735 { "jaH", { Jv, XX, cond_jump_flag } },
1737 { "jsH", { Jv, XX, cond_jump_flag } },
1738 { "jnsH", { Jv, XX, cond_jump_flag } },
1739 { "jpH", { Jv, XX, cond_jump_flag } },
1740 { "jnpH", { Jv, XX, cond_jump_flag } },
1741 { "jlH", { Jv, XX, cond_jump_flag } },
1742 { "jgeH", { Jv, XX, cond_jump_flag } },
1743 { "jleH", { Jv, XX, cond_jump_flag } },
1744 { "jgH", { Jv, XX, cond_jump_flag } },
1747 { "setno", { Eb } },
1749 { "setae", { Eb } },
1751 { "setne", { Eb } },
1752 { "setbe", { Eb } },
1756 { "setns", { Eb } },
1758 { "setnp", { Eb } },
1760 { "setge", { Eb } },
1761 { "setle", { Eb } },
1764 { "pushT", { fs } },
1766 { "cpuid", { XX } },
1767 { "btS", { Ev, Gv } },
1768 { "shldS", { Ev, Gv, Ib } },
1769 { "shldS", { Ev, Gv, CL } },
1770 { REG_TABLE (REG_0FA6) },
1771 { REG_TABLE (REG_0FA7) },
1773 { "pushT", { gs } },
1776 { "btsS", { Ev, Gv } },
1777 { "shrdS", { Ev, Gv, Ib } },
1778 { "shrdS", { Ev, Gv, CL } },
1779 { REG_TABLE (REG_0FAE) },
1780 { "imulS", { Gv, Ev } },
1782 { "cmpxchgB", { Eb, Gb } },
1783 { "cmpxchgS", { Ev, Gv } },
1784 { MOD_TABLE (MOD_0FB2) },
1785 { "btrS", { Ev, Gv } },
1786 { MOD_TABLE (MOD_0FB4) },
1787 { MOD_TABLE (MOD_0FB5) },
1788 { "movz{bR|x}", { Gv, Eb } },
1789 { "movz{wR|x}", { Gv, Ew } }, /* yes, there really is movzww ! */
1791 { PREFIX_TABLE (PREFIX_0FB8) },
1793 { REG_TABLE (REG_0FBA) },
1794 { "btcS", { Ev, Gv } },
1795 { "bsfS", { Gv, Ev } },
1796 { PREFIX_TABLE (PREFIX_0FBD) },
1797 { "movs{bR|x}", { Gv, Eb } },
1798 { "movs{wR|x}", { Gv, Ew } }, /* yes, there really is movsww ! */
1800 { "xaddB", { Eb, Gb } },
1801 { "xaddS", { Ev, Gv } },
1802 { PREFIX_TABLE (PREFIX_0FC2) },
1803 { PREFIX_TABLE (PREFIX_0FC3) },
1804 { "pinsrw", { MX, Edqw, Ib } },
1805 { "pextrw", { Gdq, MS, Ib } },
1806 { "shufpX", { XM, EXx, Ib } },
1807 { REG_TABLE (REG_0FC7) },
1809 { "bswap", { RMeAX } },
1810 { "bswap", { RMeCX } },
1811 { "bswap", { RMeDX } },
1812 { "bswap", { RMeBX } },
1813 { "bswap", { RMeSP } },
1814 { "bswap", { RMeBP } },
1815 { "bswap", { RMeSI } },
1816 { "bswap", { RMeDI } },
1818 { PREFIX_TABLE (PREFIX_0FD0) },
1819 { "psrlw", { MX, EM } },
1820 { "psrld", { MX, EM } },
1821 { "psrlq", { MX, EM } },
1822 { "paddq", { MX, EM } },
1823 { "pmullw", { MX, EM } },
1824 { PREFIX_TABLE (PREFIX_0FD6) },
1825 { MOD_TABLE (MOD_0FD7) },
1827 { "psubusb", { MX, EM } },
1828 { "psubusw", { MX, EM } },
1829 { "pminub", { MX, EM } },
1830 { "pand", { MX, EM } },
1831 { "paddusb", { MX, EM } },
1832 { "paddusw", { MX, EM } },
1833 { "pmaxub", { MX, EM } },
1834 { "pandn", { MX, EM } },
1836 { "pavgb", { MX, EM } },
1837 { "psraw", { MX, EM } },
1838 { "psrad", { MX, EM } },
1839 { "pavgw", { MX, EM } },
1840 { "pmulhuw", { MX, EM } },
1841 { "pmulhw", { MX, EM } },
1842 { PREFIX_TABLE (PREFIX_0FE6) },
1843 { PREFIX_TABLE (PREFIX_0FE7) },
1845 { "psubsb", { MX, EM } },
1846 { "psubsw", { MX, EM } },
1847 { "pminsw", { MX, EM } },
1848 { "por", { MX, EM } },
1849 { "paddsb", { MX, EM } },
1850 { "paddsw", { MX, EM } },
1851 { "pmaxsw", { MX, EM } },
1852 { "pxor", { MX, EM } },
1854 { PREFIX_TABLE (PREFIX_0FF0) },
1855 { "psllw", { MX, EM } },
1856 { "pslld", { MX, EM } },
1857 { "psllq", { MX, EM } },
1858 { "pmuludq", { MX, EM } },
1859 { "pmaddwd", { MX, EM } },
1860 { "psadbw", { MX, EM } },
1861 { PREFIX_TABLE (PREFIX_0FF7) },
1863 { "psubb", { MX, EM } },
1864 { "psubw", { MX, EM } },
1865 { "psubd", { MX, EM } },
1866 { "psubq", { MX, EM } },
1867 { "paddb", { MX, EM } },
1868 { "paddw", { MX, EM } },
1869 { "paddd", { MX, EM } },
1870 { "(bad)", { XX } },
1873 static const unsigned char onebyte_has_modrm[256] = {
1874 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1875 /* ------------------------------- */
1876 /* 00 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 00 */
1877 /* 10 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 10 */
1878 /* 20 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 20 */
1879 /* 30 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 30 */
1880 /* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 40 */
1881 /* 50 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 50 */
1882 /* 60 */ 0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0, /* 60 */
1883 /* 70 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 70 */
1884 /* 80 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 80 */
1885 /* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 90 */
1886 /* a0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* a0 */
1887 /* b0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* b0 */
1888 /* c0 */ 1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0, /* c0 */
1889 /* d0 */ 1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1, /* d0 */
1890 /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* e0 */
1891 /* f0 */ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1 /* f0 */
1892 /* ------------------------------- */
1893 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1896 static const unsigned char twobyte_has_modrm[256] = {
1897 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1898 /* ------------------------------- */
1899 /* 00 */ 1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,1, /* 0f */
1900 /* 10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 1f */
1901 /* 20 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 2f */
1902 /* 30 */ 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0, /* 3f */
1903 /* 40 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 4f */
1904 /* 50 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 5f */
1905 /* 60 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 6f */
1906 /* 70 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 7f */
1907 /* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */
1908 /* 90 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 9f */
1909 /* a0 */ 0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1, /* af */
1910 /* b0 */ 1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1, /* bf */
1911 /* c0 */ 1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* cf */
1912 /* d0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* df */
1913 /* e0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ef */
1914 /* f0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0 /* ff */
1915 /* ------------------------------- */
1916 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1919 static char obuf[100];
1921 static char scratchbuf[100];
1922 static unsigned char *start_codep;
1923 static unsigned char *insn_codep;
1924 static unsigned char *codep;
1925 static const char *lock_prefix;
1926 static const char *data_prefix;
1927 static const char *addr_prefix;
1928 static const char *repz_prefix;
1929 static const char *repnz_prefix;
1930 static disassemble_info *the_info;
1938 static unsigned char need_modrm;
1941 int register_specifier;
1947 static unsigned char need_vex;
1948 static unsigned char need_vex_reg;
1949 static unsigned char vex_w_done;
1951 /* If we are accessing mod/rm/reg without need_modrm set, then the
1952 values are stale. Hitting this abort likely indicates that you
1953 need to update onebyte_has_modrm or twobyte_has_modrm. */
1954 #define MODRM_CHECK if (!need_modrm) abort ()
1956 static const char **names64;
1957 static const char **names32;
1958 static const char **names16;
1959 static const char **names8;
1960 static const char **names8rex;
1961 static const char **names_seg;
1962 static const char *index64;
1963 static const char *index32;
1964 static const char **index16;
1966 static const char *intel_names64[] = {
1967 "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
1968 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
1970 static const char *intel_names32[] = {
1971 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi",
1972 "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d"
1974 static const char *intel_names16[] = {
1975 "ax", "cx", "dx", "bx", "sp", "bp", "si", "di",
1976 "r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w"
1978 static const char *intel_names8[] = {
1979 "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh",
1981 static const char *intel_names8rex[] = {
1982 "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil",
1983 "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b"
1985 static const char *intel_names_seg[] = {
1986 "es", "cs", "ss", "ds", "fs", "gs", "?", "?",
1988 static const char *intel_index64 = "riz";
1989 static const char *intel_index32 = "eiz";
1990 static const char *intel_index16[] = {
1991 "bx+si", "bx+di", "bp+si", "bp+di", "si", "di", "bp", "bx"
1994 static const char *att_names64[] = {
1995 "%rax", "%rcx", "%rdx", "%rbx", "%rsp", "%rbp", "%rsi", "%rdi",
1996 "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"
1998 static const char *att_names32[] = {
1999 "%eax", "%ecx", "%edx", "%ebx", "%esp", "%ebp", "%esi", "%edi",
2000 "%r8d", "%r9d", "%r10d", "%r11d", "%r12d", "%r13d", "%r14d", "%r15d"
2002 static const char *att_names16[] = {
2003 "%ax", "%cx", "%dx", "%bx", "%sp", "%bp", "%si", "%di",
2004 "%r8w", "%r9w", "%r10w", "%r11w", "%r12w", "%r13w", "%r14w", "%r15w"
2006 static const char *att_names8[] = {
2007 "%al", "%cl", "%dl", "%bl", "%ah", "%ch", "%dh", "%bh",
2009 static const char *att_names8rex[] = {
2010 "%al", "%cl", "%dl", "%bl", "%spl", "%bpl", "%sil", "%dil",
2011 "%r8b", "%r9b", "%r10b", "%r11b", "%r12b", "%r13b", "%r14b", "%r15b"
2013 static const char *att_names_seg[] = {
2014 "%es", "%cs", "%ss", "%ds", "%fs", "%gs", "%?", "%?",
2016 static const char *att_index64 = "%riz";
2017 static const char *att_index32 = "%eiz";
2018 static const char *att_index16[] = {
2019 "%bx,%si", "%bx,%di", "%bp,%si", "%bp,%di", "%si", "%di", "%bp", "%bx"
2022 static const struct dis386 reg_table[][8] = {
2025 { "addA", { Eb, Ib } },
2026 { "orA", { Eb, Ib } },
2027 { "adcA", { Eb, Ib } },
2028 { "sbbA", { Eb, Ib } },
2029 { "andA", { Eb, Ib } },
2030 { "subA", { Eb, Ib } },
2031 { "xorA", { Eb, Ib } },
2032 { "cmpA", { Eb, Ib } },
2036 { "addQ", { Ev, Iv } },
2037 { "orQ", { Ev, Iv } },
2038 { "adcQ", { Ev, Iv } },
2039 { "sbbQ", { Ev, Iv } },
2040 { "andQ", { Ev, Iv } },
2041 { "subQ", { Ev, Iv } },
2042 { "xorQ", { Ev, Iv } },
2043 { "cmpQ", { Ev, Iv } },
2047 { "addQ", { Ev, sIb } },
2048 { "orQ", { Ev, sIb } },
2049 { "adcQ", { Ev, sIb } },
2050 { "sbbQ", { Ev, sIb } },
2051 { "andQ", { Ev, sIb } },
2052 { "subQ", { Ev, sIb } },
2053 { "xorQ", { Ev, sIb } },
2054 { "cmpQ", { Ev, sIb } },
2058 { "popU", { stackEv } },
2059 { "(bad)", { XX } },
2060 { "(bad)", { XX } },
2061 { "(bad)", { XX } },
2062 { "(bad)", { XX } },
2063 { "(bad)", { XX } },
2064 { "(bad)", { XX } },
2065 { "(bad)", { XX } },
2069 { "rolA", { Eb, Ib } },
2070 { "rorA", { Eb, Ib } },
2071 { "rclA", { Eb, Ib } },
2072 { "rcrA", { Eb, Ib } },
2073 { "shlA", { Eb, Ib } },
2074 { "shrA", { Eb, Ib } },
2075 { "(bad)", { XX } },
2076 { "sarA", { Eb, Ib } },
2080 { "rolQ", { Ev, Ib } },
2081 { "rorQ", { Ev, Ib } },
2082 { "rclQ", { Ev, Ib } },
2083 { "rcrQ", { Ev, Ib } },
2084 { "shlQ", { Ev, Ib } },
2085 { "shrQ", { Ev, Ib } },
2086 { "(bad)", { XX } },
2087 { "sarQ", { Ev, Ib } },
2091 { "movA", { Eb, Ib } },
2092 { "(bad)", { XX } },
2093 { "(bad)", { XX } },
2094 { "(bad)", { XX } },
2095 { "(bad)", { XX } },
2096 { "(bad)", { XX } },
2097 { "(bad)", { XX } },
2098 { "(bad)", { XX } },
2102 { "movQ", { Ev, Iv } },
2103 { "(bad)", { XX } },
2104 { "(bad)", { XX } },
2105 { "(bad)", { XX } },
2106 { "(bad)", { XX } },
2107 { "(bad)", { XX } },
2108 { "(bad)", { XX } },
2109 { "(bad)", { XX } },
2113 { "rolA", { Eb, I1 } },
2114 { "rorA", { Eb, I1 } },
2115 { "rclA", { Eb, I1 } },
2116 { "rcrA", { Eb, I1 } },
2117 { "shlA", { Eb, I1 } },
2118 { "shrA", { Eb, I1 } },
2119 { "(bad)", { XX } },
2120 { "sarA", { Eb, I1 } },
2124 { "rolQ", { Ev, I1 } },
2125 { "rorQ", { Ev, I1 } },
2126 { "rclQ", { Ev, I1 } },
2127 { "rcrQ", { Ev, I1 } },
2128 { "shlQ", { Ev, I1 } },
2129 { "shrQ", { Ev, I1 } },
2130 { "(bad)", { XX } },
2131 { "sarQ", { Ev, I1 } },
2135 { "rolA", { Eb, CL } },
2136 { "rorA", { Eb, CL } },
2137 { "rclA", { Eb, CL } },
2138 { "rcrA", { Eb, CL } },
2139 { "shlA", { Eb, CL } },
2140 { "shrA", { Eb, CL } },
2141 { "(bad)", { XX } },
2142 { "sarA", { Eb, CL } },
2146 { "rolQ", { Ev, CL } },
2147 { "rorQ", { Ev, CL } },
2148 { "rclQ", { Ev, CL } },
2149 { "rcrQ", { Ev, CL } },
2150 { "shlQ", { Ev, CL } },
2151 { "shrQ", { Ev, CL } },
2152 { "(bad)", { XX } },
2153 { "sarQ", { Ev, CL } },
2157 { "testA", { Eb, Ib } },
2158 { "(bad)", { XX } },
2161 { "mulA", { Eb } }, /* Don't print the implicit %al register, */
2162 { "imulA", { Eb } }, /* to distinguish these opcodes from other */
2163 { "divA", { Eb } }, /* mul/imul opcodes. Do the same for div */
2164 { "idivA", { Eb } }, /* and idiv for consistency. */
2168 { "testQ", { Ev, Iv } },
2169 { "(bad)", { XX } },
2172 { "mulQ", { Ev } }, /* Don't print the implicit register. */
2173 { "imulQ", { Ev } },
2175 { "idivQ", { Ev } },
2181 { "(bad)", { XX } },
2182 { "(bad)", { XX } },
2183 { "(bad)", { XX } },
2184 { "(bad)", { XX } },
2185 { "(bad)", { XX } },
2186 { "(bad)", { XX } },
2192 { "callT", { indirEv } },
2193 { "JcallT", { indirEp } },
2194 { "jmpT", { indirEv } },
2195 { "JjmpT", { indirEp } },
2196 { "pushU", { stackEv } },
2197 { "(bad)", { XX } },
2201 { "sldtD", { Sv } },
2207 { "(bad)", { XX } },
2208 { "(bad)", { XX } },
2212 { MOD_TABLE (MOD_0F01_REG_0) },
2213 { MOD_TABLE (MOD_0F01_REG_1) },
2214 { MOD_TABLE (MOD_0F01_REG_2) },
2215 { MOD_TABLE (MOD_0F01_REG_3) },
2216 { "smswD", { Sv } },
2217 { "(bad)", { XX } },
2219 { MOD_TABLE (MOD_0F01_REG_7) },
2223 { "prefetch", { Eb } },
2224 { "prefetchw", { Eb } },
2225 { "(bad)", { XX } },
2226 { "(bad)", { XX } },
2227 { "(bad)", { XX } },
2228 { "(bad)", { XX } },
2229 { "(bad)", { XX } },
2230 { "(bad)", { XX } },
2234 { MOD_TABLE (MOD_0F18_REG_0) },
2235 { MOD_TABLE (MOD_0F18_REG_1) },
2236 { MOD_TABLE (MOD_0F18_REG_2) },
2237 { MOD_TABLE (MOD_0F18_REG_3) },
2238 { "(bad)", { XX } },
2239 { "(bad)", { XX } },
2240 { "(bad)", { XX } },
2241 { "(bad)", { XX } },
2245 { "(bad)", { XX } },
2246 { "(bad)", { XX } },
2247 { MOD_TABLE (MOD_0F71_REG_2) },
2248 { "(bad)", { XX } },
2249 { MOD_TABLE (MOD_0F71_REG_4) },
2250 { "(bad)", { XX } },
2251 { MOD_TABLE (MOD_0F71_REG_6) },
2252 { "(bad)", { XX } },
2256 { "(bad)", { XX } },
2257 { "(bad)", { XX } },
2258 { MOD_TABLE (MOD_0F72_REG_2) },
2259 { "(bad)", { XX } },
2260 { MOD_TABLE (MOD_0F72_REG_4) },
2261 { "(bad)", { XX } },
2262 { MOD_TABLE (MOD_0F72_REG_6) },
2263 { "(bad)", { XX } },
2267 { "(bad)", { XX } },
2268 { "(bad)", { XX } },
2269 { MOD_TABLE (MOD_0F73_REG_2) },
2270 { MOD_TABLE (MOD_0F73_REG_3) },
2271 { "(bad)", { XX } },
2272 { "(bad)", { XX } },
2273 { MOD_TABLE (MOD_0F73_REG_6) },
2274 { MOD_TABLE (MOD_0F73_REG_7) },
2278 { "montmul", { { OP_0f07, 0 } } },
2279 { "xsha1", { { OP_0f07, 0 } } },
2280 { "xsha256", { { OP_0f07, 0 } } },
2281 { "(bad)", { { OP_0f07, 0 } } },
2282 { "(bad)", { { OP_0f07, 0 } } },
2283 { "(bad)", { { OP_0f07, 0 } } },
2284 { "(bad)", { { OP_0f07, 0 } } },
2285 { "(bad)", { { OP_0f07, 0 } } },
2289 { "xstore-rng", { { OP_0f07, 0 } } },
2290 { "xcrypt-ecb", { { OP_0f07, 0 } } },
2291 { "xcrypt-cbc", { { OP_0f07, 0 } } },
2292 { "xcrypt-ctr", { { OP_0f07, 0 } } },
2293 { "xcrypt-cfb", { { OP_0f07, 0 } } },
2294 { "xcrypt-ofb", { { OP_0f07, 0 } } },
2295 { "(bad)", { { OP_0f07, 0 } } },
2296 { "(bad)", { { OP_0f07, 0 } } },
2300 { MOD_TABLE (MOD_0FAE_REG_0) },
2301 { MOD_TABLE (MOD_0FAE_REG_1) },
2302 { MOD_TABLE (MOD_0FAE_REG_2) },
2303 { MOD_TABLE (MOD_0FAE_REG_3) },
2304 { MOD_TABLE (MOD_0FAE_REG_4) },
2305 { MOD_TABLE (MOD_0FAE_REG_5) },
2306 { MOD_TABLE (MOD_0FAE_REG_6) },
2307 { MOD_TABLE (MOD_0FAE_REG_7) },
2311 { "(bad)", { XX } },
2312 { "(bad)", { XX } },
2313 { "(bad)", { XX } },
2314 { "(bad)", { XX } },
2315 { "btQ", { Ev, Ib } },
2316 { "btsQ", { Ev, Ib } },
2317 { "btrQ", { Ev, Ib } },
2318 { "btcQ", { Ev, Ib } },
2322 { "(bad)", { XX } },
2323 { "cmpxchg8b", { { CMPXCHG8B_Fixup, q_mode } } },
2324 { "(bad)", { XX } },
2325 { "(bad)", { XX } },
2326 { "(bad)", { XX } },
2327 { "(bad)", { XX } },
2328 { MOD_TABLE (MOD_0FC7_REG_6) },
2329 { MOD_TABLE (MOD_0FC7_REG_7) },
2333 { "(bad)", { XX } },
2334 { "(bad)", { XX } },
2335 { MOD_TABLE (MOD_VEX_71_REG_2) },
2336 { "(bad)", { XX } },
2337 { MOD_TABLE (MOD_VEX_71_REG_4) },
2338 { "(bad)", { XX } },
2339 { MOD_TABLE (MOD_VEX_71_REG_6) },
2340 { "(bad)", { XX } },
2344 { "(bad)", { XX } },
2345 { "(bad)", { XX } },
2346 { MOD_TABLE (MOD_VEX_72_REG_2) },
2347 { "(bad)", { XX } },
2348 { MOD_TABLE (MOD_VEX_72_REG_4) },
2349 { "(bad)", { XX } },
2350 { MOD_TABLE (MOD_VEX_72_REG_6) },
2351 { "(bad)", { XX } },
2355 { "(bad)", { XX } },
2356 { "(bad)", { XX } },
2357 { MOD_TABLE (MOD_VEX_73_REG_2) },
2358 { MOD_TABLE (MOD_VEX_73_REG_3) },
2359 { "(bad)", { XX } },
2360 { "(bad)", { XX } },
2361 { MOD_TABLE (MOD_VEX_73_REG_6) },
2362 { MOD_TABLE (MOD_VEX_73_REG_7) },
2366 { "(bad)", { XX } },
2367 { "(bad)", { XX } },
2368 { MOD_TABLE (MOD_VEX_AE_REG_2) },
2369 { MOD_TABLE (MOD_VEX_AE_REG_3) },
2370 { "(bad)", { XX } },
2371 { "(bad)", { XX } },
2372 { "(bad)", { XX } },
2373 { "(bad)", { XX } },
2377 static const struct dis386 prefix_table[][4] = {
2380 { "xchgS", { { NOP_Fixup1, eAX_reg }, { NOP_Fixup2, eAX_reg } } },
2381 { "pause", { XX } },
2382 { "xchgS", { { NOP_Fixup1, eAX_reg }, { NOP_Fixup2, eAX_reg } } },
2383 { "(bad)", { XX } },
2388 { "movups", { XM, EXx } },
2389 { "movss", { XM, EXd } },
2390 { "movupd", { XM, EXx } },
2391 { "movsd", { XM, EXq } },
2396 { "movups", { EXx, XM } },
2397 { "movss", { EXd, XM } },
2398 { "movupd", { EXx, XM } },
2399 { "movsd", { EXq, XM } },
2404 { MOD_TABLE (MOD_0F12_PREFIX_0) },
2405 { "movsldup", { XM, EXx } },
2406 { "movlpd", { XM, EXq } },
2407 { "movddup", { XM, EXq } },
2412 { MOD_TABLE (MOD_0F16_PREFIX_0) },
2413 { "movshdup", { XM, EXx } },
2414 { "movhpd", { XM, EXq } },
2415 { "(bad)", { XX } },
2420 { "cvtpi2ps", { XM, EMCq } },
2421 { "cvtsi2ss%LQ", { XM, Ev } },
2422 { "cvtpi2pd", { XM, EMCq } },
2423 { "cvtsi2sd%LQ", { XM, Ev } },
2428 { MOD_TABLE (MOD_0F2B_PREFIX_0) },
2429 { MOD_TABLE (MOD_0F2B_PREFIX_1) },
2430 { MOD_TABLE (MOD_0F2B_PREFIX_2) },
2431 { MOD_TABLE (MOD_0F2B_PREFIX_3) },
2436 { "cvttps2pi", { MXC, EXq } },
2437 { "cvttss2siY", { Gv, EXd } },
2438 { "cvttpd2pi", { MXC, EXx } },
2439 { "cvttsd2siY", { Gv, EXq } },
2444 { "cvtps2pi", { MXC, EXq } },
2445 { "cvtss2siY", { Gv, EXd } },
2446 { "cvtpd2pi", { MXC, EXx } },
2447 { "cvtsd2siY", { Gv, EXq } },
2452 { "ucomiss",{ XM, EXd } },
2453 { "(bad)", { XX } },
2454 { "ucomisd",{ XM, EXq } },
2455 { "(bad)", { XX } },
2460 { "comiss", { XM, EXd } },
2461 { "(bad)", { XX } },
2462 { "comisd", { XM, EXq } },
2463 { "(bad)", { XX } },
2468 { "sqrtps", { XM, EXx } },
2469 { "sqrtss", { XM, EXd } },
2470 { "sqrtpd", { XM, EXx } },
2471 { "sqrtsd", { XM, EXq } },
2476 { "rsqrtps",{ XM, EXx } },
2477 { "rsqrtss",{ XM, EXd } },
2478 { "(bad)", { XX } },
2479 { "(bad)", { XX } },
2484 { "rcpps", { XM, EXx } },
2485 { "rcpss", { XM, EXd } },
2486 { "(bad)", { XX } },
2487 { "(bad)", { XX } },
2492 { "addps", { XM, EXx } },
2493 { "addss", { XM, EXd } },
2494 { "addpd", { XM, EXx } },
2495 { "addsd", { XM, EXq } },
2500 { "mulps", { XM, EXx } },
2501 { "mulss", { XM, EXd } },
2502 { "mulpd", { XM, EXx } },
2503 { "mulsd", { XM, EXq } },
2508 { "cvtps2pd", { XM, EXq } },
2509 { "cvtss2sd", { XM, EXd } },
2510 { "cvtpd2ps", { XM, EXx } },
2511 { "cvtsd2ss", { XM, EXq } },
2516 { "cvtdq2ps", { XM, EXx } },
2517 { "cvttps2dq", { XM, EXx } },
2518 { "cvtps2dq", { XM, EXx } },
2519 { "(bad)", { XX } },
2524 { "subps", { XM, EXx } },
2525 { "subss", { XM, EXd } },
2526 { "subpd", { XM, EXx } },
2527 { "subsd", { XM, EXq } },
2532 { "minps", { XM, EXx } },
2533 { "minss", { XM, EXd } },
2534 { "minpd", { XM, EXx } },
2535 { "minsd", { XM, EXq } },
2540 { "divps", { XM, EXx } },
2541 { "divss", { XM, EXd } },
2542 { "divpd", { XM, EXx } },
2543 { "divsd", { XM, EXq } },
2548 { "maxps", { XM, EXx } },
2549 { "maxss", { XM, EXd } },
2550 { "maxpd", { XM, EXx } },
2551 { "maxsd", { XM, EXq } },
2556 { "punpcklbw",{ MX, EMd } },
2557 { "(bad)", { XX } },
2558 { "punpcklbw",{ MX, EMx } },
2559 { "(bad)", { XX } },
2564 { "punpcklwd",{ MX, EMd } },
2565 { "(bad)", { XX } },
2566 { "punpcklwd",{ MX, EMx } },
2567 { "(bad)", { XX } },
2572 { "punpckldq",{ MX, EMd } },
2573 { "(bad)", { XX } },
2574 { "punpckldq",{ MX, EMx } },
2575 { "(bad)", { XX } },
2580 { "(bad)", { XX } },
2581 { "(bad)", { XX } },
2582 { "punpcklqdq", { XM, EXx } },
2583 { "(bad)", { XX } },
2588 { "(bad)", { XX } },
2589 { "(bad)", { XX } },
2590 { "punpckhqdq", { XM, EXx } },
2591 { "(bad)", { XX } },
2596 { "movq", { MX, EM } },
2597 { "movdqu", { XM, EXx } },
2598 { "movdqa", { XM, EXx } },
2599 { "(bad)", { XX } },
2604 { "pshufw", { MX, EM, Ib } },
2605 { "pshufhw",{ XM, EXx, Ib } },
2606 { "pshufd", { XM, EXx, Ib } },
2607 { "pshuflw",{ XM, EXx, Ib } },
2610 /* PREFIX_0F73_REG_3 */
2612 { "(bad)", { XX } },
2613 { "(bad)", { XX } },
2614 { "psrldq", { XS, Ib } },
2615 { "(bad)", { XX } },
2618 /* PREFIX_0F73_REG_7 */
2620 { "(bad)", { XX } },
2621 { "(bad)", { XX } },
2622 { "pslldq", { XS, Ib } },
2623 { "(bad)", { XX } },
2628 {"vmread", { Em, Gm } },
2630 {"extrq", { XS, Ib, Ib } },
2631 {"insertq", { XM, XS, Ib, Ib } },
2636 {"vmwrite", { Gm, Em } },
2638 {"extrq", { XM, XS } },
2639 {"insertq", { XM, XS } },
2644 { "(bad)", { XX } },
2645 { "(bad)", { XX } },
2646 { "haddpd", { XM, EXx } },
2647 { "haddps", { XM, EXx } },
2652 { "(bad)", { XX } },
2653 { "(bad)", { XX } },
2654 { "hsubpd", { XM, EXx } },
2655 { "hsubps", { XM, EXx } },
2660 { "movK", { Edq, MX } },
2661 { "movq", { XM, EXq } },
2662 { "movK", { Edq, XM } },
2663 { "(bad)", { XX } },
2668 { "movq", { EM, MX } },
2669 { "movdqu", { EXx, XM } },
2670 { "movdqa", { EXx, XM } },
2671 { "(bad)", { XX } },
2676 { "(bad)", { XX } },
2677 { "popcntS", { Gv, Ev } },
2678 { "(bad)", { XX } },
2679 { "(bad)", { XX } },
2684 { "bsrS", { Gv, Ev } },
2685 { "lzcntS", { Gv, Ev } },
2686 { "bsrS", { Gv, Ev } },
2687 { "(bad)", { XX } },
2692 { "cmpps", { XM, EXx, CMP } },
2693 { "cmpss", { XM, EXd, CMP } },
2694 { "cmppd", { XM, EXx, CMP } },
2695 { "cmpsd", { XM, EXq, CMP } },
2700 { "movntiS", { Ma, Gv } },
2701 { "(bad)", { XX } },
2702 { "(bad)", { XX } },
2703 { "(bad)", { XX } },
2706 /* PREFIX_0FC7_REG_6 */
2708 { "vmptrld",{ Mq } },
2709 { "vmxon", { Mq } },
2710 { "vmclear",{ Mq } },
2711 { "(bad)", { XX } },
2716 { "(bad)", { XX } },
2717 { "(bad)", { XX } },
2718 { "addsubpd", { XM, EXx } },
2719 { "addsubps", { XM, EXx } },
2724 { "(bad)", { XX } },
2725 { "movq2dq",{ XM, MS } },
2726 { "movq", { EXq, XM } },
2727 { "movdq2q",{ MX, XS } },
2732 { "(bad)", { XX } },
2733 { "cvtdq2pd", { XM, EXq } },
2734 { "cvttpd2dq", { XM, EXx } },
2735 { "cvtpd2dq", { XM, EXx } },
2740 { "movntq", { Mq, MX } },
2741 { "(bad)", { XX } },
2742 { MOD_TABLE (MOD_0FE7_PREFIX_2) },
2743 { "(bad)", { XX } },
2748 { "(bad)", { XX } },
2749 { "(bad)", { XX } },
2750 { "(bad)", { XX } },
2751 { MOD_TABLE (MOD_0FF0_PREFIX_3) },
2756 { "maskmovq", { MX, MS } },
2757 { "(bad)", { XX } },
2758 { "maskmovdqu", { XM, XS } },
2759 { "(bad)", { XX } },
2764 { "(bad)", { XX } },
2765 { "(bad)", { XX } },
2766 { "pblendvb", { XM, EXx, XMM0 } },
2767 { "(bad)", { XX } },
2772 { "(bad)", { XX } },
2773 { "(bad)", { XX } },
2774 { "blendvps", { XM, EXx, XMM0 } },
2775 { "(bad)", { XX } },
2780 { "(bad)", { XX } },
2781 { "(bad)", { XX } },
2782 { "blendvpd", { XM, EXx, XMM0 } },
2783 { "(bad)", { XX } },
2788 { "(bad)", { XX } },
2789 { "(bad)", { XX } },
2790 { "ptest", { XM, EXx } },
2791 { "(bad)", { XX } },
2796 { "(bad)", { XX } },
2797 { "(bad)", { XX } },
2798 { "pmovsxbw", { XM, EXq } },
2799 { "(bad)", { XX } },
2804 { "(bad)", { XX } },
2805 { "(bad)", { XX } },
2806 { "pmovsxbd", { XM, EXd } },
2807 { "(bad)", { XX } },
2812 { "(bad)", { XX } },
2813 { "(bad)", { XX } },
2814 { "pmovsxbq", { XM, EXw } },
2815 { "(bad)", { XX } },
2820 { "(bad)", { XX } },
2821 { "(bad)", { XX } },
2822 { "pmovsxwd", { XM, EXq } },
2823 { "(bad)", { XX } },
2828 { "(bad)", { XX } },
2829 { "(bad)", { XX } },
2830 { "pmovsxwq", { XM, EXd } },
2831 { "(bad)", { XX } },
2836 { "(bad)", { XX } },
2837 { "(bad)", { XX } },
2838 { "pmovsxdq", { XM, EXq } },
2839 { "(bad)", { XX } },
2844 { "(bad)", { XX } },
2845 { "(bad)", { XX } },
2846 { "pmuldq", { XM, EXx } },
2847 { "(bad)", { XX } },
2852 { "(bad)", { XX } },
2853 { "(bad)", { XX } },
2854 { "pcmpeqq", { XM, EXx } },
2855 { "(bad)", { XX } },
2860 { "(bad)", { XX } },
2861 { "(bad)", { XX } },
2862 { MOD_TABLE (MOD_0F382A_PREFIX_2) },
2863 { "(bad)", { XX } },
2868 { "(bad)", { XX } },
2869 { "(bad)", { XX } },
2870 { "packusdw", { XM, EXx } },
2871 { "(bad)", { XX } },
2876 { "(bad)", { XX } },
2877 { "(bad)", { XX } },
2878 { "pmovzxbw", { XM, EXq } },
2879 { "(bad)", { XX } },
2884 { "(bad)", { XX } },
2885 { "(bad)", { XX } },
2886 { "pmovzxbd", { XM, EXd } },
2887 { "(bad)", { XX } },
2892 { "(bad)", { XX } },
2893 { "(bad)", { XX } },
2894 { "pmovzxbq", { XM, EXw } },
2895 { "(bad)", { XX } },
2900 { "(bad)", { XX } },
2901 { "(bad)", { XX } },
2902 { "pmovzxwd", { XM, EXq } },
2903 { "(bad)", { XX } },
2908 { "(bad)", { XX } },
2909 { "(bad)", { XX } },
2910 { "pmovzxwq", { XM, EXd } },
2911 { "(bad)", { XX } },
2916 { "(bad)", { XX } },
2917 { "(bad)", { XX } },
2918 { "pmovzxdq", { XM, EXq } },
2919 { "(bad)", { XX } },
2924 { "(bad)", { XX } },
2925 { "(bad)", { XX } },
2926 { "pcmpgtq", { XM, EXx } },
2927 { "(bad)", { XX } },
2932 { "(bad)", { XX } },
2933 { "(bad)", { XX } },
2934 { "pminsb", { XM, EXx } },
2935 { "(bad)", { XX } },
2940 { "(bad)", { XX } },
2941 { "(bad)", { XX } },
2942 { "pminsd", { XM, EXx } },
2943 { "(bad)", { XX } },
2948 { "(bad)", { XX } },
2949 { "(bad)", { XX } },
2950 { "pminuw", { XM, EXx } },
2951 { "(bad)", { XX } },
2956 { "(bad)", { XX } },
2957 { "(bad)", { XX } },
2958 { "pminud", { XM, EXx } },
2959 { "(bad)", { XX } },
2964 { "(bad)", { XX } },
2965 { "(bad)", { XX } },
2966 { "pmaxsb", { XM, EXx } },
2967 { "(bad)", { XX } },
2972 { "(bad)", { XX } },
2973 { "(bad)", { XX } },
2974 { "pmaxsd", { XM, EXx } },
2975 { "(bad)", { XX } },
2980 { "(bad)", { XX } },
2981 { "(bad)", { XX } },
2982 { "pmaxuw", { XM, EXx } },
2983 { "(bad)", { XX } },
2988 { "(bad)", { XX } },
2989 { "(bad)", { XX } },
2990 { "pmaxud", { XM, EXx } },
2991 { "(bad)", { XX } },
2996 { "(bad)", { XX } },
2997 { "(bad)", { XX } },
2998 { "pmulld", { XM, EXx } },
2999 { "(bad)", { XX } },
3004 { "(bad)", { XX } },
3005 { "(bad)", { XX } },
3006 { "phminposuw", { XM, EXx } },
3007 { "(bad)", { XX } },
3012 { "(bad)", { XX } },
3013 { "(bad)", { XX } },
3014 { "invept", { Gm, Mo } },
3015 { "(bad)", { XX } },
3020 { "(bad)", { XX } },
3021 { "(bad)", { XX } },
3022 { "invvpid", { Gm, Mo } },
3023 { "(bad)", { XX } },
3028 { "(bad)", { XX } },
3029 { "(bad)", { XX } },
3030 { "aesimc", { XM, EXx } },
3031 { "(bad)", { XX } },
3036 { "(bad)", { XX } },
3037 { "(bad)", { XX } },
3038 { "aesenc", { XM, EXx } },
3039 { "(bad)", { XX } },
3044 { "(bad)", { XX } },
3045 { "(bad)", { XX } },
3046 { "aesenclast", { XM, EXx } },
3047 { "(bad)", { XX } },
3052 { "(bad)", { XX } },
3053 { "(bad)", { XX } },
3054 { "aesdec", { XM, EXx } },
3055 { "(bad)", { XX } },
3060 { "(bad)", { XX } },
3061 { "(bad)", { XX } },
3062 { "aesdeclast", { XM, EXx } },
3063 { "(bad)", { XX } },
3068 { "movbeS", { Gv, { MOVBE_Fixup, v_mode } } },
3069 { "(bad)", { XX } },
3070 { "movbeS", { Gv, { MOVBE_Fixup, v_mode } } },
3071 { "crc32", { Gdq, { CRC32_Fixup, b_mode } } },
3076 { "movbeS", { { MOVBE_Fixup, v_mode }, Gv } },
3077 { "(bad)", { XX } },
3078 { "movbeS", { { MOVBE_Fixup, v_mode }, Gv } },
3079 { "crc32", { Gdq, { CRC32_Fixup, v_mode } } },
3084 { "(bad)", { XX } },
3085 { "(bad)", { XX } },
3086 { "roundps", { XM, EXx, Ib } },
3087 { "(bad)", { XX } },
3092 { "(bad)", { XX } },
3093 { "(bad)", { XX } },
3094 { "roundpd", { XM, EXx, Ib } },
3095 { "(bad)", { XX } },
3100 { "(bad)", { XX } },
3101 { "(bad)", { XX } },
3102 { "roundss", { XM, EXd, Ib } },
3103 { "(bad)", { XX } },
3108 { "(bad)", { XX } },
3109 { "(bad)", { XX } },
3110 { "roundsd", { XM, EXq, Ib } },
3111 { "(bad)", { XX } },
3116 { "(bad)", { XX } },
3117 { "(bad)", { XX } },
3118 { "blendps", { XM, EXx, Ib } },
3119 { "(bad)", { XX } },
3124 { "(bad)", { XX } },
3125 { "(bad)", { XX } },
3126 { "blendpd", { XM, EXx, Ib } },
3127 { "(bad)", { XX } },
3132 { "(bad)", { XX } },
3133 { "(bad)", { XX } },
3134 { "pblendw", { XM, EXx, Ib } },
3135 { "(bad)", { XX } },
3140 { "(bad)", { XX } },
3141 { "(bad)", { XX } },
3142 { "pextrb", { Edqb, XM, Ib } },
3143 { "(bad)", { XX } },
3148 { "(bad)", { XX } },
3149 { "(bad)", { XX } },
3150 { "pextrw", { Edqw, XM, Ib } },
3151 { "(bad)", { XX } },
3156 { "(bad)", { XX } },
3157 { "(bad)", { XX } },
3158 { "pextrK", { Edq, XM, Ib } },
3159 { "(bad)", { XX } },
3164 { "(bad)", { XX } },
3165 { "(bad)", { XX } },
3166 { "extractps", { Edqd, XM, Ib } },
3167 { "(bad)", { XX } },
3172 { "(bad)", { XX } },
3173 { "(bad)", { XX } },
3174 { "pinsrb", { XM, Edqb, Ib } },
3175 { "(bad)", { XX } },
3180 { "(bad)", { XX } },
3181 { "(bad)", { XX } },
3182 { "insertps", { XM, EXd, Ib } },
3183 { "(bad)", { XX } },
3188 { "(bad)", { XX } },
3189 { "(bad)", { XX } },
3190 { "pinsrK", { XM, Edq, Ib } },
3191 { "(bad)", { XX } },
3196 { "(bad)", { XX } },
3197 { "(bad)", { XX } },
3198 { "dpps", { XM, EXx, Ib } },
3199 { "(bad)", { XX } },
3204 { "(bad)", { XX } },
3205 { "(bad)", { XX } },
3206 { "dppd", { XM, EXx, Ib } },
3207 { "(bad)", { XX } },
3212 { "(bad)", { XX } },
3213 { "(bad)", { XX } },
3214 { "mpsadbw", { XM, EXx, Ib } },
3215 { "(bad)", { XX } },
3220 { "(bad)", { XX } },
3221 { "(bad)", { XX } },
3222 { "pclmulqdq", { XM, EXx, PCLMUL } },
3223 { "(bad)", { XX } },
3228 { "(bad)", { XX } },
3229 { "(bad)", { XX } },
3230 { "pcmpestrm", { XM, EXx, Ib } },
3231 { "(bad)", { XX } },
3236 { "(bad)", { XX } },
3237 { "(bad)", { XX } },
3238 { "pcmpestri", { XM, EXx, Ib } },
3239 { "(bad)", { XX } },
3244 { "(bad)", { XX } },
3245 { "(bad)", { XX } },
3246 { "pcmpistrm", { XM, EXx, Ib } },
3247 { "(bad)", { XX } },
3252 { "(bad)", { XX } },
3253 { "(bad)", { XX } },
3254 { "pcmpistri", { XM, EXx, Ib } },
3255 { "(bad)", { XX } },
3260 { "(bad)", { XX } },
3261 { "(bad)", { XX } },
3262 { "aeskeygenassist", { XM, EXx, Ib } },
3263 { "(bad)", { XX } },
3268 { "vmovups", { XM, EXx } },
3269 { VEX_LEN_TABLE (VEX_LEN_10_P_1) },
3270 { "vmovupd", { XM, EXx } },
3271 { VEX_LEN_TABLE (VEX_LEN_10_P_3) },
3276 { "vmovups", { EXx, XM } },
3277 { VEX_LEN_TABLE (VEX_LEN_11_P_1) },
3278 { "vmovupd", { EXx, XM } },
3279 { VEX_LEN_TABLE (VEX_LEN_11_P_3) },
3284 { MOD_TABLE (MOD_VEX_12_PREFIX_0) },
3285 { "vmovsldup", { XM, EXx } },
3286 { VEX_LEN_TABLE (VEX_LEN_12_P_2) },
3287 { "vmovddup", { XM, EXymmq } },
3292 { MOD_TABLE (MOD_VEX_16_PREFIX_0) },
3293 { "vmovshdup", { XM, EXx } },
3294 { VEX_LEN_TABLE (VEX_LEN_16_P_2) },
3295 { "(bad)", { XX } },
3300 { "(bad)", { XX } },
3301 { VEX_LEN_TABLE (VEX_LEN_2A_P_1) },
3302 { "(bad)", { XX } },
3303 { VEX_LEN_TABLE (VEX_LEN_2A_P_3) },
3308 { "(bad)", { XX } },
3309 { VEX_LEN_TABLE (VEX_LEN_2C_P_1) },
3310 { "(bad)", { XX } },
3311 { VEX_LEN_TABLE (VEX_LEN_2C_P_3) },
3316 { "(bad)", { XX } },
3317 { VEX_LEN_TABLE (VEX_LEN_2D_P_1) },
3318 { "(bad)", { XX } },
3319 { VEX_LEN_TABLE (VEX_LEN_2D_P_3) },
3324 { VEX_LEN_TABLE (VEX_LEN_2E_P_0) },
3325 { "(bad)", { XX } },
3326 { VEX_LEN_TABLE (VEX_LEN_2E_P_2) },
3327 { "(bad)", { XX } },
3332 { VEX_LEN_TABLE (VEX_LEN_2F_P_0) },
3333 { "(bad)", { XX } },
3334 { VEX_LEN_TABLE (VEX_LEN_2F_P_2) },
3335 { "(bad)", { XX } },
3340 { "vsqrtps", { XM, EXx } },
3341 { VEX_LEN_TABLE (VEX_LEN_51_P_1) },
3342 { "vsqrtpd", { XM, EXx } },
3343 { VEX_LEN_TABLE (VEX_LEN_51_P_3) },
3348 { "vrsqrtps", { XM, EXx } },
3349 { VEX_LEN_TABLE (VEX_LEN_52_P_1) },
3350 { "(bad)", { XX } },
3351 { "(bad)", { XX } },
3356 { "vrcpps", { XM, EXx } },
3357 { VEX_LEN_TABLE (VEX_LEN_53_P_1) },
3358 { "(bad)", { XX } },
3359 { "(bad)", { XX } },
3364 { "vaddps", { XM, Vex, EXx } },
3365 { VEX_LEN_TABLE (VEX_LEN_58_P_1) },
3366 { "vaddpd", { XM, Vex, EXx } },
3367 { VEX_LEN_TABLE (VEX_LEN_58_P_3) },
3372 { "vmulps", { XM, Vex, EXx } },
3373 { VEX_LEN_TABLE (VEX_LEN_59_P_1) },
3374 { "vmulpd", { XM, Vex, EXx } },
3375 { VEX_LEN_TABLE (VEX_LEN_59_P_3) },
3380 { "vcvtps2pd", { XM, EXxmmq } },
3381 { VEX_LEN_TABLE (VEX_LEN_5A_P_1) },
3382 { "vcvtpd2ps%XY", { XMM, EXx } },
3383 { VEX_LEN_TABLE (VEX_LEN_5A_P_3) },
3388 { "vcvtdq2ps", { XM, EXx } },
3389 { "vcvttps2dq", { XM, EXx } },
3390 { "vcvtps2dq", { XM, EXx } },
3391 { "(bad)", { XX } },
3396 { "vsubps", { XM, Vex, EXx } },
3397 { VEX_LEN_TABLE (VEX_LEN_5C_P_1) },
3398 { "vsubpd", { XM, Vex, EXx } },
3399 { VEX_LEN_TABLE (VEX_LEN_5C_P_3) },
3404 { "vminps", { XM, Vex, EXx } },
3405 { VEX_LEN_TABLE (VEX_LEN_5D_P_1) },
3406 { "vminpd", { XM, Vex, EXx } },
3407 { VEX_LEN_TABLE (VEX_LEN_5D_P_3) },
3412 { "vdivps", { XM, Vex, EXx } },
3413 { VEX_LEN_TABLE (VEX_LEN_5E_P_1) },
3414 { "vdivpd", { XM, Vex, EXx } },
3415 { VEX_LEN_TABLE (VEX_LEN_5E_P_3) },
3420 { "vmaxps", { XM, Vex, EXx } },
3421 { VEX_LEN_TABLE (VEX_LEN_5F_P_1) },
3422 { "vmaxpd", { XM, Vex, EXx } },
3423 { VEX_LEN_TABLE (VEX_LEN_5F_P_3) },
3428 { "(bad)", { XX } },
3429 { "(bad)", { XX } },
3430 { VEX_LEN_TABLE (VEX_LEN_60_P_2) },
3431 { "(bad)", { XX } },
3436 { "(bad)", { XX } },
3437 { "(bad)", { XX } },
3438 { VEX_LEN_TABLE (VEX_LEN_61_P_2) },
3439 { "(bad)", { XX } },
3444 { "(bad)", { XX } },
3445 { "(bad)", { XX } },
3446 { VEX_LEN_TABLE (VEX_LEN_62_P_2) },
3447 { "(bad)", { XX } },
3452 { "(bad)", { XX } },
3453 { "(bad)", { XX } },
3454 { VEX_LEN_TABLE (VEX_LEN_63_P_2) },
3455 { "(bad)", { XX } },
3460 { "(bad)", { XX } },
3461 { "(bad)", { XX } },
3462 { VEX_LEN_TABLE (VEX_LEN_64_P_2) },
3463 { "(bad)", { XX } },
3468 { "(bad)", { XX } },
3469 { "(bad)", { XX } },
3470 { VEX_LEN_TABLE (VEX_LEN_65_P_2) },
3471 { "(bad)", { XX } },
3476 { "(bad)", { XX } },
3477 { "(bad)", { XX } },
3478 { VEX_LEN_TABLE (VEX_LEN_66_P_2) },
3479 { "(bad)", { XX } },
3484 { "(bad)", { XX } },
3485 { "(bad)", { XX } },
3486 { VEX_LEN_TABLE (VEX_LEN_67_P_2) },
3487 { "(bad)", { XX } },
3492 { "(bad)", { XX } },
3493 { "(bad)", { XX } },
3494 { VEX_LEN_TABLE (VEX_LEN_68_P_2) },
3495 { "(bad)", { XX } },
3500 { "(bad)", { XX } },
3501 { "(bad)", { XX } },
3502 { VEX_LEN_TABLE (VEX_LEN_69_P_2) },
3503 { "(bad)", { XX } },
3508 { "(bad)", { XX } },
3509 { "(bad)", { XX } },
3510 { VEX_LEN_TABLE (VEX_LEN_6A_P_2) },
3511 { "(bad)", { XX } },
3516 { "(bad)", { XX } },
3517 { "(bad)", { XX } },
3518 { VEX_LEN_TABLE (VEX_LEN_6B_P_2) },
3519 { "(bad)", { XX } },
3524 { "(bad)", { XX } },
3525 { "(bad)", { XX } },
3526 { VEX_LEN_TABLE (VEX_LEN_6C_P_2) },
3527 { "(bad)", { XX } },
3532 { "(bad)", { XX } },
3533 { "(bad)", { XX } },
3534 { VEX_LEN_TABLE (VEX_LEN_6D_P_2) },
3535 { "(bad)", { XX } },
3540 { "(bad)", { XX } },
3541 { "(bad)", { XX } },
3542 { VEX_LEN_TABLE (VEX_LEN_6E_P_2) },
3543 { "(bad)", { XX } },
3548 { "(bad)", { XX } },
3549 { "vmovdqu", { XM, EXx } },
3550 { "vmovdqa", { XM, EXx } },
3551 { "(bad)", { XX } },
3556 { "(bad)", { XX } },
3557 { VEX_LEN_TABLE (VEX_LEN_70_P_1) },
3558 { VEX_LEN_TABLE (VEX_LEN_70_P_2) },
3559 { VEX_LEN_TABLE (VEX_LEN_70_P_3) },
3562 /* PREFIX_VEX_71_REG_2 */
3564 { "(bad)", { XX } },
3565 { "(bad)", { XX } },
3566 { VEX_LEN_TABLE (VEX_LEN_71_R_2_P_2) },
3567 { "(bad)", { XX } },
3570 /* PREFIX_VEX_71_REG_4 */
3572 { "(bad)", { XX } },
3573 { "(bad)", { XX } },
3574 { VEX_LEN_TABLE (VEX_LEN_71_R_4_P_2) },
3575 { "(bad)", { XX } },
3578 /* PREFIX_VEX_71_REG_6 */
3580 { "(bad)", { XX } },
3581 { "(bad)", { XX } },
3582 { VEX_LEN_TABLE (VEX_LEN_71_R_6_P_2) },
3583 { "(bad)", { XX } },
3586 /* PREFIX_VEX_72_REG_2 */
3588 { "(bad)", { XX } },
3589 { "(bad)", { XX } },
3590 { VEX_LEN_TABLE (VEX_LEN_72_R_2_P_2) },
3591 { "(bad)", { XX } },
3594 /* PREFIX_VEX_72_REG_4 */
3596 { "(bad)", { XX } },
3597 { "(bad)", { XX } },
3598 { VEX_LEN_TABLE (VEX_LEN_72_R_4_P_2) },
3599 { "(bad)", { XX } },
3602 /* PREFIX_VEX_72_REG_6 */
3604 { "(bad)", { XX } },
3605 { "(bad)", { XX } },
3606 { VEX_LEN_TABLE (VEX_LEN_72_R_6_P_2) },
3607 { "(bad)", { XX } },
3610 /* PREFIX_VEX_73_REG_2 */
3612 { "(bad)", { XX } },
3613 { "(bad)", { XX } },
3614 { VEX_LEN_TABLE (VEX_LEN_73_R_2_P_2) },
3615 { "(bad)", { XX } },
3618 /* PREFIX_VEX_73_REG_3 */
3620 { "(bad)", { XX } },
3621 { "(bad)", { XX } },
3622 { VEX_LEN_TABLE (VEX_LEN_73_R_3_P_2) },
3623 { "(bad)", { XX } },
3626 /* PREFIX_VEX_73_REG_6 */
3628 { "(bad)", { XX } },
3629 { "(bad)", { XX } },
3630 { VEX_LEN_TABLE (VEX_LEN_73_R_6_P_2) },
3631 { "(bad)", { XX } },
3634 /* PREFIX_VEX_73_REG_7 */
3636 { "(bad)", { XX } },
3637 { "(bad)", { XX } },
3638 { VEX_LEN_TABLE (VEX_LEN_73_R_7_P_2) },
3639 { "(bad)", { XX } },
3644 { "(bad)", { XX } },
3645 { "(bad)", { XX } },
3646 { VEX_LEN_TABLE (VEX_LEN_74_P_2) },
3647 { "(bad)", { XX } },
3652 { "(bad)", { XX } },
3653 { "(bad)", { XX } },
3654 { VEX_LEN_TABLE (VEX_LEN_75_P_2) },
3655 { "(bad)", { XX } },
3660 { "(bad)", { XX } },
3661 { "(bad)", { XX } },
3662 { VEX_LEN_TABLE (VEX_LEN_76_P_2) },
3663 { "(bad)", { XX } },
3669 { "(bad)", { XX } },
3670 { "(bad)", { XX } },
3671 { "(bad)", { XX } },
3676 { "(bad)", { XX } },
3677 { "(bad)", { XX } },
3678 { "vhaddpd", { XM, Vex, EXx } },
3679 { "vhaddps", { XM, Vex, EXx } },
3684 { "(bad)", { XX } },
3685 { "(bad)", { XX } },
3686 { "vhsubpd", { XM, Vex, EXx } },
3687 { "vhsubps", { XM, Vex, EXx } },
3692 { "(bad)", { XX } },
3693 { VEX_LEN_TABLE (VEX_LEN_7E_P_1) },
3694 { VEX_LEN_TABLE (VEX_LEN_7E_P_2) },
3695 { "(bad)", { XX } },
3700 { "(bad)", { XX } },
3701 { "vmovdqu", { EXx, XM } },
3702 { "vmovdqa", { EXx, XM } },
3703 { "(bad)", { XX } },
3708 { "vcmpps", { XM, Vex, EXx, VCMP } },
3709 { VEX_LEN_TABLE (VEX_LEN_C2_P_1) },
3710 { "vcmppd", { XM, Vex, EXx, VCMP } },
3711 { VEX_LEN_TABLE (VEX_LEN_C2_P_3) },
3716 { "(bad)", { XX } },
3717 { "(bad)", { XX } },
3718 { VEX_LEN_TABLE (VEX_LEN_C4_P_2) },
3719 { "(bad)", { XX } },
3724 { "(bad)", { XX } },
3725 { "(bad)", { XX } },
3726 { VEX_LEN_TABLE (VEX_LEN_C5_P_2) },
3727 { "(bad)", { XX } },
3732 { "(bad)", { XX } },
3733 { "(bad)", { XX } },
3734 { "vaddsubpd", { XM, Vex, EXx } },
3735 { "vaddsubps", { XM, Vex, EXx } },
3740 { "(bad)", { XX } },
3741 { "(bad)", { XX } },
3742 { VEX_LEN_TABLE (VEX_LEN_D1_P_2) },
3743 { "(bad)", { XX } },
3748 { "(bad)", { XX } },
3749 { "(bad)", { XX } },
3750 { VEX_LEN_TABLE (VEX_LEN_D2_P_2) },
3751 { "(bad)", { XX } },
3756 { "(bad)", { XX } },
3757 { "(bad)", { XX } },
3758 { VEX_LEN_TABLE (VEX_LEN_D3_P_2) },
3759 { "(bad)", { XX } },
3764 { "(bad)", { XX } },
3765 { "(bad)", { XX } },
3766 { VEX_LEN_TABLE (VEX_LEN_D4_P_2) },
3767 { "(bad)", { XX } },
3772 { "(bad)", { XX } },
3773 { "(bad)", { XX } },
3774 { VEX_LEN_TABLE (VEX_LEN_D5_P_2) },
3775 { "(bad)", { XX } },
3780 { "(bad)", { XX } },
3781 { "(bad)", { XX } },
3782 { VEX_LEN_TABLE (VEX_LEN_D6_P_2) },
3783 { "(bad)", { XX } },
3788 { "(bad)", { XX } },
3789 { "(bad)", { XX } },
3790 { MOD_TABLE (MOD_VEX_D7_PREFIX_2) },
3791 { "(bad)", { XX } },
3796 { "(bad)", { XX } },
3797 { "(bad)", { XX } },
3798 { VEX_LEN_TABLE (VEX_LEN_D8_P_2) },
3799 { "(bad)", { XX } },
3804 { "(bad)", { XX } },
3805 { "(bad)", { XX } },
3806 { VEX_LEN_TABLE (VEX_LEN_D9_P_2) },
3807 { "(bad)", { XX } },
3812 { "(bad)", { XX } },
3813 { "(bad)", { XX } },
3814 { VEX_LEN_TABLE (VEX_LEN_DA_P_2) },
3815 { "(bad)", { XX } },
3820 { "(bad)", { XX } },
3821 { "(bad)", { XX } },
3822 { VEX_LEN_TABLE (VEX_LEN_DB_P_2) },
3823 { "(bad)", { XX } },
3828 { "(bad)", { XX } },
3829 { "(bad)", { XX } },
3830 { VEX_LEN_TABLE (VEX_LEN_DC_P_2) },
3831 { "(bad)", { XX } },
3836 { "(bad)", { XX } },
3837 { "(bad)", { XX } },
3838 { VEX_LEN_TABLE (VEX_LEN_DD_P_2) },
3839 { "(bad)", { XX } },
3844 { "(bad)", { XX } },
3845 { "(bad)", { XX } },
3846 { VEX_LEN_TABLE (VEX_LEN_DE_P_2) },
3847 { "(bad)", { XX } },
3852 { "(bad)", { XX } },
3853 { "(bad)", { XX } },
3854 { VEX_LEN_TABLE (VEX_LEN_DF_P_2) },
3855 { "(bad)", { XX } },
3860 { "(bad)", { XX } },
3861 { "(bad)", { XX } },
3862 { VEX_LEN_TABLE (VEX_LEN_E0_P_2) },
3863 { "(bad)", { XX } },
3868 { "(bad)", { XX } },
3869 { "(bad)", { XX } },
3870 { VEX_LEN_TABLE (VEX_LEN_E1_P_2) },
3871 { "(bad)", { XX } },
3876 { "(bad)", { XX } },
3877 { "(bad)", { XX } },
3878 { VEX_LEN_TABLE (VEX_LEN_E2_P_2) },
3879 { "(bad)", { XX } },
3884 { "(bad)", { XX } },
3885 { "(bad)", { XX } },
3886 { VEX_LEN_TABLE (VEX_LEN_E3_P_2) },
3887 { "(bad)", { XX } },
3892 { "(bad)", { XX } },
3893 { "(bad)", { XX } },
3894 { VEX_LEN_TABLE (VEX_LEN_E4_P_2) },
3895 { "(bad)", { XX } },
3900 { "(bad)", { XX } },
3901 { "(bad)", { XX } },
3902 { VEX_LEN_TABLE (VEX_LEN_E5_P_2) },
3903 { "(bad)", { XX } },
3908 { "(bad)", { XX } },
3909 { "vcvtdq2pd", { XM, EXxmmq } },
3910 { "vcvttpd2dq%XY", { XMM, EXx } },
3911 { "vcvtpd2dq%XY", { XMM, EXx } },
3916 { "(bad)", { XX } },
3917 { "(bad)", { XX } },
3918 { MOD_TABLE (MOD_VEX_E7_PREFIX_2) },
3919 { "(bad)", { XX } },
3924 { "(bad)", { XX } },
3925 { "(bad)", { XX } },
3926 { VEX_LEN_TABLE (VEX_LEN_E8_P_2) },
3927 { "(bad)", { XX } },
3932 { "(bad)", { XX } },
3933 { "(bad)", { XX } },
3934 { VEX_LEN_TABLE (VEX_LEN_E9_P_2) },
3935 { "(bad)", { XX } },
3940 { "(bad)", { XX } },
3941 { "(bad)", { XX } },
3942 { VEX_LEN_TABLE (VEX_LEN_EA_P_2) },
3943 { "(bad)", { XX } },
3948 { "(bad)", { XX } },
3949 { "(bad)", { XX } },
3950 { VEX_LEN_TABLE (VEX_LEN_EB_P_2) },
3951 { "(bad)", { XX } },
3956 { "(bad)", { XX } },
3957 { "(bad)", { XX } },
3958 { VEX_LEN_TABLE (VEX_LEN_EC_P_2) },
3959 { "(bad)", { XX } },
3964 { "(bad)", { XX } },
3965 { "(bad)", { XX } },
3966 { VEX_LEN_TABLE (VEX_LEN_ED_P_2) },
3967 { "(bad)", { XX } },
3972 { "(bad)", { XX } },
3973 { "(bad)", { XX } },
3974 { VEX_LEN_TABLE (VEX_LEN_EE_P_2) },
3975 { "(bad)", { XX } },
3980 { "(bad)", { XX } },
3981 { "(bad)", { XX } },
3982 { VEX_LEN_TABLE (VEX_LEN_EF_P_2) },
3983 { "(bad)", { XX } },
3988 { "(bad)", { XX } },
3989 { "(bad)", { XX } },
3990 { "(bad)", { XX } },
3991 { MOD_TABLE (MOD_VEX_F0_PREFIX_3) },
3996 { "(bad)", { XX } },
3997 { "(bad)", { XX } },
3998 { VEX_LEN_TABLE (VEX_LEN_F1_P_2) },
3999 { "(bad)", { XX } },
4004 { "(bad)", { XX } },
4005 { "(bad)", { XX } },
4006 { VEX_LEN_TABLE (VEX_LEN_F2_P_2) },
4007 { "(bad)", { XX } },
4012 { "(bad)", { XX } },
4013 { "(bad)", { XX } },
4014 { VEX_LEN_TABLE (VEX_LEN_F3_P_2) },
4015 { "(bad)", { XX } },
4020 { "(bad)", { XX } },
4021 { "(bad)", { XX } },
4022 { VEX_LEN_TABLE (VEX_LEN_F4_P_2) },
4023 { "(bad)", { XX } },
4028 { "(bad)", { XX } },
4029 { "(bad)", { XX } },
4030 { VEX_LEN_TABLE (VEX_LEN_F5_P_2) },
4031 { "(bad)", { XX } },
4036 { "(bad)", { XX } },
4037 { "(bad)", { XX } },
4038 { VEX_LEN_TABLE (VEX_LEN_F6_P_2) },
4039 { "(bad)", { XX } },
4044 { "(bad)", { XX } },
4045 { "(bad)", { XX } },
4046 { VEX_LEN_TABLE (VEX_LEN_F7_P_2) },
4047 { "(bad)", { XX } },
4052 { "(bad)", { XX } },
4053 { "(bad)", { XX } },
4054 { VEX_LEN_TABLE (VEX_LEN_F8_P_2) },
4055 { "(bad)", { XX } },
4060 { "(bad)", { XX } },
4061 { "(bad)", { XX } },
4062 { VEX_LEN_TABLE (VEX_LEN_F9_P_2) },
4063 { "(bad)", { XX } },
4068 { "(bad)", { XX } },
4069 { "(bad)", { XX } },
4070 { VEX_LEN_TABLE (VEX_LEN_FA_P_2) },
4071 { "(bad)", { XX } },
4076 { "(bad)", { XX } },
4077 { "(bad)", { XX } },
4078 { VEX_LEN_TABLE (VEX_LEN_FB_P_2) },
4079 { "(bad)", { XX } },
4084 { "(bad)", { XX } },
4085 { "(bad)", { XX } },
4086 { VEX_LEN_TABLE (VEX_LEN_FC_P_2) },
4087 { "(bad)", { XX } },
4092 { "(bad)", { XX } },
4093 { "(bad)", { XX } },
4094 { VEX_LEN_TABLE (VEX_LEN_FD_P_2) },
4095 { "(bad)", { XX } },
4100 { "(bad)", { XX } },
4101 { "(bad)", { XX } },
4102 { VEX_LEN_TABLE (VEX_LEN_FE_P_2) },
4103 { "(bad)", { XX } },
4106 /* PREFIX_VEX_3800 */
4108 { "(bad)", { XX } },
4109 { "(bad)", { XX } },
4110 { VEX_LEN_TABLE (VEX_LEN_3800_P_2) },
4111 { "(bad)", { XX } },
4114 /* PREFIX_VEX_3801 */
4116 { "(bad)", { XX } },
4117 { "(bad)", { XX } },
4118 { VEX_LEN_TABLE (VEX_LEN_3801_P_2) },
4119 { "(bad)", { XX } },
4122 /* PREFIX_VEX_3802 */
4124 { "(bad)", { XX } },
4125 { "(bad)", { XX } },
4126 { VEX_LEN_TABLE (VEX_LEN_3802_P_2) },
4127 { "(bad)", { XX } },
4130 /* PREFIX_VEX_3803 */
4132 { "(bad)", { XX } },
4133 { "(bad)", { XX } },
4134 { VEX_LEN_TABLE (VEX_LEN_3803_P_2) },
4135 { "(bad)", { XX } },
4138 /* PREFIX_VEX_3804 */
4140 { "(bad)", { XX } },
4141 { "(bad)", { XX } },
4142 { VEX_LEN_TABLE (VEX_LEN_3804_P_2) },
4143 { "(bad)", { XX } },
4146 /* PREFIX_VEX_3805 */
4148 { "(bad)", { XX } },
4149 { "(bad)", { XX } },
4150 { VEX_LEN_TABLE (VEX_LEN_3805_P_2) },
4151 { "(bad)", { XX } },
4154 /* PREFIX_VEX_3806 */
4156 { "(bad)", { XX } },
4157 { "(bad)", { XX } },
4158 { VEX_LEN_TABLE (VEX_LEN_3806_P_2) },
4159 { "(bad)", { XX } },
4162 /* PREFIX_VEX_3807 */
4164 { "(bad)", { XX } },
4165 { "(bad)", { XX } },
4166 { VEX_LEN_TABLE (VEX_LEN_3807_P_2) },
4167 { "(bad)", { XX } },
4170 /* PREFIX_VEX_3808 */
4172 { "(bad)", { XX } },
4173 { "(bad)", { XX } },
4174 { VEX_LEN_TABLE (VEX_LEN_3808_P_2) },
4175 { "(bad)", { XX } },
4178 /* PREFIX_VEX_3809 */
4180 { "(bad)", { XX } },
4181 { "(bad)", { XX } },
4182 { VEX_LEN_TABLE (VEX_LEN_3809_P_2) },
4183 { "(bad)", { XX } },
4186 /* PREFIX_VEX_380A */
4188 { "(bad)", { XX } },
4189 { "(bad)", { XX } },
4190 { VEX_LEN_TABLE (VEX_LEN_380A_P_2) },
4191 { "(bad)", { XX } },
4194 /* PREFIX_VEX_380B */
4196 { "(bad)", { XX } },
4197 { "(bad)", { XX } },
4198 { VEX_LEN_TABLE (VEX_LEN_380B_P_2) },
4199 { "(bad)", { XX } },
4202 /* PREFIX_VEX_380C */
4204 { "(bad)", { XX } },
4205 { "(bad)", { XX } },
4206 { "vpermilps", { XM, Vex, EXx } },
4207 { "(bad)", { XX } },
4210 /* PREFIX_VEX_380D */
4212 { "(bad)", { XX } },
4213 { "(bad)", { XX } },
4214 { "vpermilpd", { XM, Vex, EXx } },
4215 { "(bad)", { XX } },
4218 /* PREFIX_VEX_380E */
4220 { "(bad)", { XX } },
4221 { "(bad)", { XX } },
4222 { "vtestps", { XM, EXx } },
4223 { "(bad)", { XX } },
4226 /* PREFIX_VEX_380F */
4228 { "(bad)", { XX } },
4229 { "(bad)", { XX } },
4230 { "vtestpd", { XM, EXx } },
4231 { "(bad)", { XX } },
4234 /* PREFIX_VEX_3817 */
4236 { "(bad)", { XX } },
4237 { "(bad)", { XX } },
4238 { "vptest", { XM, EXx } },
4239 { "(bad)", { XX } },
4242 /* PREFIX_VEX_3818 */
4244 { "(bad)", { XX } },
4245 { "(bad)", { XX } },
4246 { MOD_TABLE (MOD_VEX_3818_PREFIX_2) },
4247 { "(bad)", { XX } },
4250 /* PREFIX_VEX_3819 */
4252 { "(bad)", { XX } },
4253 { "(bad)", { XX } },
4254 { MOD_TABLE (MOD_VEX_3819_PREFIX_2) },
4255 { "(bad)", { XX } },
4258 /* PREFIX_VEX_381A */
4260 { "(bad)", { XX } },
4261 { "(bad)", { XX } },
4262 { MOD_TABLE (MOD_VEX_381A_PREFIX_2) },
4263 { "(bad)", { XX } },
4266 /* PREFIX_VEX_381C */
4268 { "(bad)", { XX } },
4269 { "(bad)", { XX } },
4270 { VEX_LEN_TABLE (VEX_LEN_381C_P_2) },
4271 { "(bad)", { XX } },
4274 /* PREFIX_VEX_381D */
4276 { "(bad)", { XX } },
4277 { "(bad)", { XX } },
4278 { VEX_LEN_TABLE (VEX_LEN_381D_P_2) },
4279 { "(bad)", { XX } },
4282 /* PREFIX_VEX_381E */
4284 { "(bad)", { XX } },
4285 { "(bad)", { XX } },
4286 { VEX_LEN_TABLE (VEX_LEN_381E_P_2) },
4287 { "(bad)", { XX } },
4290 /* PREFIX_VEX_3820 */
4292 { "(bad)", { XX } },
4293 { "(bad)", { XX } },
4294 { VEX_LEN_TABLE (VEX_LEN_3820_P_2) },
4295 { "(bad)", { XX } },
4298 /* PREFIX_VEX_3821 */
4300 { "(bad)", { XX } },
4301 { "(bad)", { XX } },
4302 { VEX_LEN_TABLE (VEX_LEN_3821_P_2) },
4303 { "(bad)", { XX } },
4306 /* PREFIX_VEX_3822 */
4308 { "(bad)", { XX } },
4309 { "(bad)", { XX } },
4310 { VEX_LEN_TABLE (VEX_LEN_3822_P_2) },
4311 { "(bad)", { XX } },
4314 /* PREFIX_VEX_3823 */
4316 { "(bad)", { XX } },
4317 { "(bad)", { XX } },
4318 { VEX_LEN_TABLE (VEX_LEN_3823_P_2) },
4319 { "(bad)", { XX } },
4322 /* PREFIX_VEX_3824 */
4324 { "(bad)", { XX } },
4325 { "(bad)", { XX } },
4326 { VEX_LEN_TABLE (VEX_LEN_3824_P_2) },
4327 { "(bad)", { XX } },
4330 /* PREFIX_VEX_3825 */
4332 { "(bad)", { XX } },
4333 { "(bad)", { XX } },
4334 { VEX_LEN_TABLE (VEX_LEN_3825_P_2) },
4335 { "(bad)", { XX } },
4338 /* PREFIX_VEX_3828 */
4340 { "(bad)", { XX } },
4341 { "(bad)", { XX } },
4342 { VEX_LEN_TABLE (VEX_LEN_3828_P_2) },
4343 { "(bad)", { XX } },
4346 /* PREFIX_VEX_3829 */
4348 { "(bad)", { XX } },
4349 { "(bad)", { XX } },
4350 { VEX_LEN_TABLE (VEX_LEN_3829_P_2) },
4351 { "(bad)", { XX } },
4354 /* PREFIX_VEX_382A */
4356 { "(bad)", { XX } },
4357 { "(bad)", { XX } },
4358 { MOD_TABLE (MOD_VEX_382A_PREFIX_2) },
4359 { "(bad)", { XX } },
4362 /* PREFIX_VEX_382B */
4364 { "(bad)", { XX } },
4365 { "(bad)", { XX } },
4366 { VEX_LEN_TABLE (VEX_LEN_382B_P_2) },
4367 { "(bad)", { XX } },
4370 /* PREFIX_VEX_382C */
4372 { "(bad)", { XX } },
4373 { "(bad)", { XX } },
4374 { MOD_TABLE (MOD_VEX_382C_PREFIX_2) },
4375 { "(bad)", { XX } },
4378 /* PREFIX_VEX_382D */
4380 { "(bad)", { XX } },
4381 { "(bad)", { XX } },
4382 { MOD_TABLE (MOD_VEX_382D_PREFIX_2) },
4383 { "(bad)", { XX } },
4386 /* PREFIX_VEX_382E */
4388 { "(bad)", { XX } },
4389 { "(bad)", { XX } },
4390 { MOD_TABLE (MOD_VEX_382E_PREFIX_2) },
4391 { "(bad)", { XX } },
4394 /* PREFIX_VEX_382F */
4396 { "(bad)", { XX } },
4397 { "(bad)", { XX } },
4398 { MOD_TABLE (MOD_VEX_382F_PREFIX_2) },
4399 { "(bad)", { XX } },
4402 /* PREFIX_VEX_3830 */
4404 { "(bad)", { XX } },
4405 { "(bad)", { XX } },
4406 { VEX_LEN_TABLE (VEX_LEN_3830_P_2) },
4407 { "(bad)", { XX } },
4410 /* PREFIX_VEX_3831 */
4412 { "(bad)", { XX } },
4413 { "(bad)", { XX } },
4414 { VEX_LEN_TABLE (VEX_LEN_3831_P_2) },
4415 { "(bad)", { XX } },
4418 /* PREFIX_VEX_3832 */
4420 { "(bad)", { XX } },
4421 { "(bad)", { XX } },
4422 { VEX_LEN_TABLE (VEX_LEN_3832_P_2) },
4423 { "(bad)", { XX } },
4426 /* PREFIX_VEX_3833 */
4428 { "(bad)", { XX } },
4429 { "(bad)", { XX } },
4430 { VEX_LEN_TABLE (VEX_LEN_3833_P_2) },
4431 { "(bad)", { XX } },
4434 /* PREFIX_VEX_3834 */
4436 { "(bad)", { XX } },
4437 { "(bad)", { XX } },
4438 { VEX_LEN_TABLE (VEX_LEN_3834_P_2) },
4439 { "(bad)", { XX } },
4442 /* PREFIX_VEX_3835 */
4444 { "(bad)", { XX } },
4445 { "(bad)", { XX } },
4446 { VEX_LEN_TABLE (VEX_LEN_3835_P_2) },
4447 { "(bad)", { XX } },
4450 /* PREFIX_VEX_3837 */
4452 { "(bad)", { XX } },
4453 { "(bad)", { XX } },
4454 { VEX_LEN_TABLE (VEX_LEN_3837_P_2) },
4455 { "(bad)", { XX } },
4458 /* PREFIX_VEX_3838 */
4460 { "(bad)", { XX } },
4461 { "(bad)", { XX } },
4462 { VEX_LEN_TABLE (VEX_LEN_3838_P_2) },
4463 { "(bad)", { XX } },
4466 /* PREFIX_VEX_3839 */
4468 { "(bad)", { XX } },
4469 { "(bad)", { XX } },
4470 { VEX_LEN_TABLE (VEX_LEN_3839_P_2) },
4471 { "(bad)", { XX } },
4474 /* PREFIX_VEX_383A */
4476 { "(bad)", { XX } },
4477 { "(bad)", { XX } },
4478 { VEX_LEN_TABLE (VEX_LEN_383A_P_2) },
4479 { "(bad)", { XX } },
4482 /* PREFIX_VEX_383B */
4484 { "(bad)", { XX } },
4485 { "(bad)", { XX } },
4486 { VEX_LEN_TABLE (VEX_LEN_383B_P_2) },
4487 { "(bad)", { XX } },
4490 /* PREFIX_VEX_383C */
4492 { "(bad)", { XX } },
4493 { "(bad)", { XX } },
4494 { VEX_LEN_TABLE (VEX_LEN_383C_P_2) },
4495 { "(bad)", { XX } },
4498 /* PREFIX_VEX_383D */
4500 { "(bad)", { XX } },
4501 { "(bad)", { XX } },
4502 { VEX_LEN_TABLE (VEX_LEN_383D_P_2) },
4503 { "(bad)", { XX } },
4506 /* PREFIX_VEX_383E */
4508 { "(bad)", { XX } },
4509 { "(bad)", { XX } },
4510 { VEX_LEN_TABLE (VEX_LEN_383E_P_2) },
4511 { "(bad)", { XX } },
4514 /* PREFIX_VEX_383F */
4516 { "(bad)", { XX } },
4517 { "(bad)", { XX } },
4518 { VEX_LEN_TABLE (VEX_LEN_383F_P_2) },
4519 { "(bad)", { XX } },
4522 /* PREFIX_VEX_3840 */
4524 { "(bad)", { XX } },
4525 { "(bad)", { XX } },
4526 { VEX_LEN_TABLE (VEX_LEN_3840_P_2) },
4527 { "(bad)", { XX } },
4530 /* PREFIX_VEX_3841 */
4532 { "(bad)", { XX } },
4533 { "(bad)", { XX } },
4534 { VEX_LEN_TABLE (VEX_LEN_3841_P_2) },
4535 { "(bad)", { XX } },
4538 /* PREFIX_VEX_3A04 */
4540 { "(bad)", { XX } },
4541 { "(bad)", { XX } },
4542 { "vpermilps", { XM, EXx, Ib } },
4543 { "(bad)", { XX } },
4546 /* PREFIX_VEX_3A05 */
4548 { "(bad)", { XX } },
4549 { "(bad)", { XX } },
4550 { "vpermilpd", { XM, EXx, Ib } },
4551 { "(bad)", { XX } },
4554 /* PREFIX_VEX_3A06 */
4556 { "(bad)", { XX } },
4557 { "(bad)", { XX } },
4558 { VEX_LEN_TABLE (VEX_LEN_3A06_P_2) },
4559 { "(bad)", { XX } },
4562 /* PREFIX_VEX_3A08 */
4564 { "(bad)", { XX } },
4565 { "(bad)", { XX } },
4566 { "vroundps", { XM, EXx, Ib } },
4567 { "(bad)", { XX } },
4570 /* PREFIX_VEX_3A09 */
4572 { "(bad)", { XX } },
4573 { "(bad)", { XX } },
4574 { "vroundpd", { XM, EXx, Ib } },
4575 { "(bad)", { XX } },
4578 /* PREFIX_VEX_3A0A */
4580 { "(bad)", { XX } },
4581 { "(bad)", { XX } },
4582 { VEX_LEN_TABLE (VEX_LEN_3A0A_P_2) },
4583 { "(bad)", { XX } },
4586 /* PREFIX_VEX_3A0B */
4588 { "(bad)", { XX } },
4589 { "(bad)", { XX } },
4590 { VEX_LEN_TABLE (VEX_LEN_3A0B_P_2) },
4591 { "(bad)", { XX } },
4594 /* PREFIX_VEX_3A0C */
4596 { "(bad)", { XX } },
4597 { "(bad)", { XX } },
4598 { "vblendps", { XM, Vex, EXx, Ib } },
4599 { "(bad)", { XX } },
4602 /* PREFIX_VEX_3A0D */
4604 { "(bad)", { XX } },
4605 { "(bad)", { XX } },
4606 { "vblendpd", { XM, Vex, EXx, Ib } },
4607 { "(bad)", { XX } },
4610 /* PREFIX_VEX_3A0E */
4612 { "(bad)", { XX } },
4613 { "(bad)", { XX } },
4614 { VEX_LEN_TABLE (VEX_LEN_3A0E_P_2) },
4615 { "(bad)", { XX } },
4618 /* PREFIX_VEX_3A0F */
4620 { "(bad)", { XX } },
4621 { "(bad)", { XX } },
4622 { VEX_LEN_TABLE (VEX_LEN_3A0F_P_2) },
4623 { "(bad)", { XX } },
4626 /* PREFIX_VEX_3A14 */
4628 { "(bad)", { XX } },
4629 { "(bad)", { XX } },
4630 { VEX_LEN_TABLE (VEX_LEN_3A14_P_2) },
4631 { "(bad)", { XX } },
4634 /* PREFIX_VEX_3A15 */
4636 { "(bad)", { XX } },
4637 { "(bad)", { XX } },
4638 { VEX_LEN_TABLE (VEX_LEN_3A15_P_2) },
4639 { "(bad)", { XX } },
4642 /* PREFIX_VEX_3A16 */
4644 { "(bad)", { XX } },
4645 { "(bad)", { XX } },
4646 { VEX_LEN_TABLE (VEX_LEN_3A16_P_2) },
4647 { "(bad)", { XX } },
4650 /* PREFIX_VEX_3A17 */
4652 { "(bad)", { XX } },
4653 { "(bad)", { XX } },
4654 { VEX_LEN_TABLE (VEX_LEN_3A17_P_2) },
4655 { "(bad)", { XX } },
4658 /* PREFIX_VEX_3A18 */
4660 { "(bad)", { XX } },
4661 { "(bad)", { XX } },
4662 { VEX_LEN_TABLE (VEX_LEN_3A18_P_2) },
4663 { "(bad)", { XX } },
4666 /* PREFIX_VEX_3A19 */
4668 { "(bad)", { XX } },
4669 { "(bad)", { XX } },
4670 { VEX_LEN_TABLE (VEX_LEN_3A19_P_2) },
4671 { "(bad)", { XX } },
4674 /* PREFIX_VEX_3A20 */
4676 { "(bad)", { XX } },
4677 { "(bad)", { XX } },
4678 { VEX_LEN_TABLE (VEX_LEN_3A20_P_2) },
4679 { "(bad)", { XX } },
4682 /* PREFIX_VEX_3A21 */
4684 { "(bad)", { XX } },
4685 { "(bad)", { XX } },
4686 { VEX_LEN_TABLE (VEX_LEN_3A21_P_2) },
4687 { "(bad)", { XX } },
4690 /* PREFIX_VEX_3A22 */
4692 { "(bad)", { XX } },
4693 { "(bad)", { XX } },
4694 { VEX_LEN_TABLE (VEX_LEN_3A22_P_2) },
4695 { "(bad)", { XX } },
4698 /* PREFIX_VEX_3A40 */
4700 { "(bad)", { XX } },
4701 { "(bad)", { XX } },
4702 { "vdpps", { XM, Vex, EXx, Ib } },
4703 { "(bad)", { XX } },
4706 /* PREFIX_VEX_3A41 */
4708 { "(bad)", { XX } },
4709 { "(bad)", { XX } },
4710 { VEX_LEN_TABLE (VEX_LEN_3A41_P_2) },
4711 { "(bad)", { XX } },
4714 /* PREFIX_VEX_3A42 */
4716 { "(bad)", { XX } },
4717 { "(bad)", { XX } },
4718 { VEX_LEN_TABLE (VEX_LEN_3A42_P_2) },
4719 { "(bad)", { XX } },
4722 /* PREFIX_VEX_3A48 */
4724 { "(bad)", { XX } },
4725 { "(bad)", { XX } },
4726 { "vpermil2ps", { XMVexW, Vex, EXVexImmW, EXVexImmW, VPERMIL2 } },
4727 { "(bad)", { XX } },
4730 /* PREFIX_VEX_3A49 */
4732 { "(bad)", { XX } },
4733 { "(bad)", { XX } },
4734 { "vpermil2pd", { XMVexW, Vex, EXVexImmW, EXVexImmW, VPERMIL2 } },
4735 { "(bad)", { XX } },
4738 /* PREFIX_VEX_3A4A */
4740 { "(bad)", { XX } },
4741 { "(bad)", { XX } },
4742 { "vblendvps", { XM, Vex, EXx, XMVexI4 } },
4743 { "(bad)", { XX } },
4746 /* PREFIX_VEX_3A4B */
4748 { "(bad)", { XX } },
4749 { "(bad)", { XX } },
4750 { "vblendvpd", { XM, Vex, EXx, XMVexI4 } },
4751 { "(bad)", { XX } },
4754 /* PREFIX_VEX_3A4C */
4756 { "(bad)", { XX } },
4757 { "(bad)", { XX } },
4758 { VEX_LEN_TABLE (VEX_LEN_3A4C_P_2) },
4759 { "(bad)", { XX } },
4762 /* PREFIX_VEX_3A5C */
4764 { "(bad)", { XX } },
4765 { "(bad)", { XX } },
4766 { "vfmaddsubps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4767 { "(bad)", { XX } },
4770 /* PREFIX_VEX_3A5D */
4772 { "(bad)", { XX } },
4773 { "(bad)", { XX } },
4774 { "vfmaddsubpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4775 { "(bad)", { XX } },
4778 /* PREFIX_VEX_3A5E */
4780 { "(bad)", { XX } },
4781 { "(bad)", { XX } },
4782 { "vfmsubaddps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4783 { "(bad)", { XX } },
4786 /* PREFIX_VEX_3A5F */
4788 { "(bad)", { XX } },
4789 { "(bad)", { XX } },
4790 { "vfmsubaddpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4791 { "(bad)", { XX } },
4794 /* PREFIX_VEX_3A60 */
4796 { "(bad)", { XX } },
4797 { "(bad)", { XX } },
4798 { VEX_LEN_TABLE (VEX_LEN_3A60_P_2) },
4799 { "(bad)", { XX } },
4802 /* PREFIX_VEX_3A61 */
4804 { "(bad)", { XX } },
4805 { "(bad)", { XX } },
4806 { VEX_LEN_TABLE (VEX_LEN_3A61_P_2) },
4807 { "(bad)", { XX } },
4810 /* PREFIX_VEX_3A62 */
4812 { "(bad)", { XX } },
4813 { "(bad)", { XX } },
4814 { VEX_LEN_TABLE (VEX_LEN_3A62_P_2) },
4815 { "(bad)", { XX } },
4818 /* PREFIX_VEX_3A63 */
4820 { "(bad)", { XX } },
4821 { "(bad)", { XX } },
4822 { VEX_LEN_TABLE (VEX_LEN_3A63_P_2) },
4823 { "(bad)", { XX } },
4826 /* PREFIX_VEX_3A68 */
4828 { "(bad)", { XX } },
4829 { "(bad)", { XX } },
4830 { "vfmaddps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4831 { "(bad)", { XX } },
4834 /* PREFIX_VEX_3A69 */
4836 { "(bad)", { XX } },
4837 { "(bad)", { XX } },
4838 { "vfmaddpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4839 { "(bad)", { XX } },
4842 /* PREFIX_VEX_3A6A */
4844 { "(bad)", { XX } },
4845 { "(bad)", { XX } },
4846 { VEX_LEN_TABLE (VEX_LEN_3A6A_P_2) },
4847 { "(bad)", { XX } },
4850 /* PREFIX_VEX_3A6B */
4852 { "(bad)", { XX } },
4853 { "(bad)", { XX } },
4854 { VEX_LEN_TABLE (VEX_LEN_3A6B_P_2) },
4855 { "(bad)", { XX } },
4858 /* PREFIX_VEX_3A6C */
4860 { "(bad)", { XX } },
4861 { "(bad)", { XX } },
4862 { "vfmsubps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4863 { "(bad)", { XX } },
4866 /* PREFIX_VEX_3A6D */
4868 { "(bad)", { XX } },
4869 { "(bad)", { XX } },
4870 { "vfmsubpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4871 { "(bad)", { XX } },
4874 /* PREFIX_VEX_3A6E */
4876 { "(bad)", { XX } },
4877 { "(bad)", { XX } },
4878 { VEX_LEN_TABLE (VEX_LEN_3A6E_P_2) },
4879 { "(bad)", { XX } },
4882 /* PREFIX_VEX_3A6F */
4884 { "(bad)", { XX } },
4885 { "(bad)", { XX } },
4886 { VEX_LEN_TABLE (VEX_LEN_3A6F_P_2) },
4887 { "(bad)", { XX } },
4890 /* PREFIX_VEX_3A78 */
4892 { "(bad)", { XX } },
4893 { "(bad)", { XX } },
4894 { "vfnmaddps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4895 { "(bad)", { XX } },
4898 /* PREFIX_VEX_3A79 */
4900 { "(bad)", { XX } },
4901 { "(bad)", { XX } },
4902 { "vfnmaddpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4903 { "(bad)", { XX } },
4906 /* PREFIX_VEX_3A7A */
4908 { "(bad)", { XX } },
4909 { "(bad)", { XX } },
4910 { VEX_LEN_TABLE (VEX_LEN_3A7A_P_2) },
4911 { "(bad)", { XX } },
4914 /* PREFIX_VEX_3A7B */
4916 { "(bad)", { XX } },
4917 { "(bad)", { XX } },
4918 { VEX_LEN_TABLE (VEX_LEN_3A7B_P_2) },
4919 { "(bad)", { XX } },
4922 /* PREFIX_VEX_3A7C */
4924 { "(bad)", { XX } },
4925 { "(bad)", { XX } },
4926 { "vfnmsubps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4927 { "(bad)", { XX } },
4930 /* PREFIX_VEX_3A7D */
4932 { "(bad)", { XX } },
4933 { "(bad)", { XX } },
4934 { "vfnmsubpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4935 { "(bad)", { XX } },
4938 /* PREFIX_VEX_3A7E */
4940 { "(bad)", { XX } },
4941 { "(bad)", { XX } },
4942 { VEX_LEN_TABLE (VEX_LEN_3A7E_P_2) },
4943 { "(bad)", { XX } },
4946 /* PREFIX_VEX_3A7F */
4948 { "(bad)", { XX } },
4949 { "(bad)", { XX } },
4950 { VEX_LEN_TABLE (VEX_LEN_3A7F_P_2) },
4951 { "(bad)", { XX } },
4955 static const struct dis386 x86_64_table[][2] = {
4958 { "push{T|}", { es } },
4959 { "(bad)", { XX } },
4964 { "pop{T|}", { es } },
4965 { "(bad)", { XX } },
4970 { "push{T|}", { cs } },
4971 { "(bad)", { XX } },
4976 { "push{T|}", { ss } },
4977 { "(bad)", { XX } },
4982 { "pop{T|}", { ss } },
4983 { "(bad)", { XX } },
4988 { "push{T|}", { ds } },
4989 { "(bad)", { XX } },
4994 { "pop{T|}", { ds } },
4995 { "(bad)", { XX } },
5001 { "(bad)", { XX } },
5007 { "(bad)", { XX } },
5013 { "(bad)", { XX } },
5019 { "(bad)", { XX } },
5024 { "pusha{P|}", { XX } },
5025 { "(bad)", { XX } },
5030 { "popa{P|}", { XX } },
5031 { "(bad)", { XX } },
5036 { MOD_TABLE (MOD_62_32BIT) },
5037 { "(bad)", { XX } },
5042 { "arpl", { Ew, Gw } },
5043 { "movs{lq|xd}", { Gv, Ed } },
5048 { "ins{R|}", { Yzr, indirDX } },
5049 { "ins{G|}", { Yzr, indirDX } },
5054 { "outs{R|}", { indirDXr, Xz } },
5055 { "outs{G|}", { indirDXr, Xz } },
5060 { "Jcall{T|}", { Ap } },
5061 { "(bad)", { XX } },
5066 { MOD_TABLE (MOD_C4_32BIT) },
5067 { VEX_C4_TABLE (VEX_0F) },
5072 { MOD_TABLE (MOD_C5_32BIT) },
5073 { VEX_C5_TABLE (VEX_0F) },
5079 { "(bad)", { XX } },
5085 { "(bad)", { XX } },
5091 { "(bad)", { XX } },
5096 { "Jjmp{T|}", { Ap } },
5097 { "(bad)", { XX } },
5100 /* X86_64_0F01_REG_0 */
5102 { "sgdt{Q|IQ}", { M } },
5106 /* X86_64_0F01_REG_1 */
5108 { "sidt{Q|IQ}", { M } },
5112 /* X86_64_0F01_REG_2 */
5114 { "lgdt{Q|Q}", { M } },
5118 /* X86_64_0F01_REG_3 */
5120 { "lidt{Q|Q}", { M } },
5125 static const struct dis386 three_byte_table[][256] = {
5126 /* THREE_BYTE_0F24 */
5129 { "fmaddps", { { OP_DREX4, q_mode } } },
5130 { "fmaddpd", { { OP_DREX4, q_mode } } },
5131 { "fmaddss", { { OP_DREX4, w_mode } } },
5132 { "fmaddsd", { { OP_DREX4, d_mode } } },
5133 { "fmaddps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5134 { "fmaddpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5135 { "fmaddss", { { OP_DREX4, DREX_OC1 + w_mode } } },
5136 { "fmaddsd", { { OP_DREX4, DREX_OC1 + d_mode } } },
5138 { "fmsubps", { { OP_DREX4, q_mode } } },
5139 { "fmsubpd", { { OP_DREX4, q_mode } } },
5140 { "fmsubss", { { OP_DREX4, w_mode } } },
5141 { "fmsubsd", { { OP_DREX4, d_mode } } },
5142 { "fmsubps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5143 { "fmsubpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5144 { "fmsubss", { { OP_DREX4, DREX_OC1 + w_mode } } },
5145 { "fmsubsd", { { OP_DREX4, DREX_OC1 + d_mode } } },
5147 { "fnmaddps", { { OP_DREX4, q_mode } } },
5148 { "fnmaddpd", { { OP_DREX4, q_mode } } },
5149 { "fnmaddss", { { OP_DREX4, w_mode } } },
5150 { "fnmaddsd", { { OP_DREX4, d_mode } } },
5151 { "fnmaddps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5152 { "fnmaddpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5153 { "fnmaddss", { { OP_DREX4, DREX_OC1 + w_mode } } },
5154 { "fnmaddsd", { { OP_DREX4, DREX_OC1 + d_mode } } },
5156 { "fnmsubps", { { OP_DREX4, q_mode } } },
5157 { "fnmsubpd", { { OP_DREX4, q_mode } } },
5158 { "fnmsubss", { { OP_DREX4, w_mode } } },
5159 { "fnmsubsd", { { OP_DREX4, d_mode } } },
5160 { "fnmsubps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5161 { "fnmsubpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5162 { "fnmsubss", { { OP_DREX4, DREX_OC1 + w_mode } } },
5163 { "fnmsubsd", { { OP_DREX4, DREX_OC1 + d_mode } } },
5165 { "permps", { { OP_DREX4, q_mode } } },
5166 { "permpd", { { OP_DREX4, q_mode } } },
5167 { "pcmov", { { OP_DREX4, q_mode } } },
5168 { "pperm", { { OP_DREX4, q_mode } } },
5169 { "permps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5170 { "permpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5171 { "pcmov", { { OP_DREX4, DREX_OC1 + w_mode } } },
5172 { "pperm", { { OP_DREX4, DREX_OC1 + d_mode } } },
5174 { "(bad)", { XX } },
5175 { "(bad)", { XX } },
5176 { "(bad)", { XX } },
5177 { "(bad)", { XX } },
5178 { "(bad)", { XX } },
5179 { "(bad)", { XX } },
5180 { "(bad)", { XX } },
5181 { "(bad)", { XX } },
5183 { "(bad)", { XX } },
5184 { "(bad)", { XX } },
5185 { "(bad)", { XX } },
5186 { "(bad)", { XX } },
5187 { "(bad)", { XX } },
5188 { "(bad)", { XX } },
5189 { "(bad)", { XX } },
5190 { "(bad)", { XX } },
5192 { "(bad)", { XX } },
5193 { "(bad)", { XX } },
5194 { "(bad)", { XX } },
5195 { "(bad)", { XX } },
5196 { "(bad)", { XX } },
5197 { "(bad)", { XX } },
5198 { "(bad)", { XX } },
5199 { "(bad)", { XX } },
5201 { "protb", { { OP_DREX3, q_mode } } },
5202 { "protw", { { OP_DREX3, q_mode } } },
5203 { "protd", { { OP_DREX3, q_mode } } },
5204 { "protq", { { OP_DREX3, q_mode } } },
5205 { "pshlb", { { OP_DREX3, q_mode } } },
5206 { "pshlw", { { OP_DREX3, q_mode } } },
5207 { "pshld", { { OP_DREX3, q_mode } } },
5208 { "pshlq", { { OP_DREX3, q_mode } } },
5210 { "pshab", { { OP_DREX3, q_mode } } },
5211 { "pshaw", { { OP_DREX3, q_mode } } },
5212 { "pshad", { { OP_DREX3, q_mode } } },
5213 { "pshaq", { { OP_DREX3, q_mode } } },
5214 { "(bad)", { XX } },
5215 { "(bad)", { XX } },
5216 { "(bad)", { XX } },
5217 { "(bad)", { XX } },
5219 { "(bad)", { XX } },
5220 { "(bad)", { XX } },
5221 { "(bad)", { XX } },
5222 { "(bad)", { XX } },
5223 { "(bad)", { XX } },
5224 { "(bad)", { XX } },
5225 { "(bad)", { XX } },
5226 { "(bad)", { XX } },
5228 { "(bad)", { XX } },
5229 { "(bad)", { XX } },
5230 { "(bad)", { XX } },
5231 { "(bad)", { XX } },
5232 { "(bad)", { XX } },
5233 { "(bad)", { XX } },
5234 { "(bad)", { XX } },
5235 { "(bad)", { XX } },
5237 { "(bad)", { XX } },
5238 { "(bad)", { XX } },
5239 { "(bad)", { XX } },
5240 { "(bad)", { XX } },
5241 { "(bad)", { XX } },
5242 { "(bad)", { XX } },
5243 { "(bad)", { XX } },
5244 { "(bad)", { XX } },
5246 { "(bad)", { XX } },
5247 { "(bad)", { XX } },
5248 { "(bad)", { XX } },
5249 { "(bad)", { XX } },
5250 { "(bad)", { XX } },
5251 { "(bad)", { XX } },
5252 { "(bad)", { XX } },
5253 { "(bad)", { XX } },
5255 { "(bad)", { XX } },
5256 { "(bad)", { XX } },
5257 { "(bad)", { XX } },
5258 { "(bad)", { XX } },
5259 { "(bad)", { XX } },
5260 { "(bad)", { XX } },
5261 { "(bad)", { XX } },
5262 { "(bad)", { XX } },
5264 { "(bad)", { XX } },
5265 { "(bad)", { XX } },
5266 { "(bad)", { XX } },
5267 { "(bad)", { XX } },
5268 { "(bad)", { XX } },
5269 { "(bad)", { XX } },
5270 { "(bad)", { XX } },
5271 { "(bad)", { XX } },
5273 { "(bad)", { XX } },
5274 { "(bad)", { XX } },
5275 { "(bad)", { XX } },
5276 { "(bad)", { XX } },
5277 { "(bad)", { XX } },
5278 { "pmacssww", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5279 { "pmacsswd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5280 { "pmacssdql", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5282 { "(bad)", { XX } },
5283 { "(bad)", { XX } },
5284 { "(bad)", { XX } },
5285 { "(bad)", { XX } },
5286 { "(bad)", { XX } },
5287 { "(bad)", { XX } },
5288 { "pmacssdd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5289 { "pmacssdqh", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5291 { "(bad)", { XX } },
5292 { "(bad)", { XX } },
5293 { "(bad)", { XX } },
5294 { "(bad)", { XX } },
5295 { "(bad)", { XX } },
5296 { "pmacsww", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5297 { "pmacswd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5298 { "pmacsdql", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5300 { "(bad)", { XX } },
5301 { "(bad)", { XX } },
5302 { "(bad)", { XX } },
5303 { "(bad)", { XX } },
5304 { "(bad)", { XX } },
5305 { "(bad)", { XX } },
5306 { "pmacsdd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5307 { "pmacsdqh", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5309 { "(bad)", { XX } },
5310 { "(bad)", { XX } },
5311 { "(bad)", { XX } },
5312 { "(bad)", { XX } },
5313 { "(bad)", { XX } },
5314 { "(bad)", { XX } },
5315 { "pmadcsswd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5316 { "(bad)", { XX } },
5318 { "(bad)", { XX } },
5319 { "(bad)", { XX } },
5320 { "(bad)", { XX } },
5321 { "(bad)", { XX } },
5322 { "(bad)", { XX } },
5323 { "(bad)", { XX } },
5324 { "(bad)", { XX } },
5325 { "(bad)", { XX } },
5327 { "(bad)", { XX } },
5328 { "(bad)", { XX } },
5329 { "(bad)", { XX } },
5330 { "(bad)", { XX } },
5331 { "(bad)", { XX } },
5332 { "(bad)", { XX } },
5333 { "pmadcswd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5334 { "(bad)", { XX } },
5336 { "(bad)", { XX } },
5337 { "(bad)", { XX } },
5338 { "(bad)", { XX } },
5339 { "(bad)", { XX } },
5340 { "(bad)", { XX } },
5341 { "(bad)", { XX } },
5342 { "(bad)", { XX } },
5343 { "(bad)", { XX } },
5345 { "(bad)", { XX } },
5346 { "(bad)", { XX } },
5347 { "(bad)", { XX } },
5348 { "(bad)", { XX } },
5349 { "(bad)", { XX } },
5350 { "(bad)", { XX } },
5351 { "(bad)", { XX } },
5352 { "(bad)", { XX } },
5354 { "(bad)", { XX } },
5355 { "(bad)", { XX } },
5356 { "(bad)", { XX } },
5357 { "(bad)", { XX } },
5358 { "(bad)", { XX } },
5359 { "(bad)", { XX } },
5360 { "(bad)", { XX } },
5361 { "(bad)", { XX } },
5363 { "(bad)", { XX } },
5364 { "(bad)", { XX } },
5365 { "(bad)", { XX } },
5366 { "(bad)", { XX } },
5367 { "(bad)", { XX } },
5368 { "(bad)", { XX } },
5369 { "(bad)", { XX } },
5370 { "(bad)", { XX } },
5372 { "(bad)", { XX } },
5373 { "(bad)", { XX } },
5374 { "(bad)", { XX } },
5375 { "(bad)", { XX } },
5376 { "(bad)", { XX } },
5377 { "(bad)", { XX } },
5378 { "(bad)", { XX } },
5379 { "(bad)", { XX } },
5381 { "(bad)", { XX } },
5382 { "(bad)", { XX } },
5383 { "(bad)", { XX } },
5384 { "(bad)", { XX } },
5385 { "(bad)", { XX } },
5386 { "(bad)", { XX } },
5387 { "(bad)", { XX } },
5388 { "(bad)", { XX } },
5390 { "(bad)", { XX } },
5391 { "(bad)", { XX } },
5392 { "(bad)", { XX } },
5393 { "(bad)", { XX } },
5394 { "(bad)", { XX } },
5395 { "(bad)", { XX } },
5396 { "(bad)", { XX } },
5397 { "(bad)", { XX } },
5399 { "(bad)", { XX } },
5400 { "(bad)", { XX } },
5401 { "(bad)", { XX } },
5402 { "(bad)", { XX } },
5403 { "(bad)", { XX } },
5404 { "(bad)", { XX } },
5405 { "(bad)", { XX } },
5406 { "(bad)", { XX } },
5408 { "(bad)", { XX } },
5409 { "(bad)", { XX } },
5410 { "(bad)", { XX } },
5411 { "(bad)", { XX } },
5412 { "(bad)", { XX } },
5413 { "(bad)", { XX } },
5414 { "(bad)", { XX } },
5415 { "(bad)", { XX } },
5417 /* THREE_BYTE_0F25 */
5420 { "(bad)", { XX } },
5421 { "(bad)", { XX } },
5422 { "(bad)", { XX } },
5423 { "(bad)", { XX } },
5424 { "(bad)", { XX } },
5425 { "(bad)", { XX } },
5426 { "(bad)", { XX } },
5427 { "(bad)", { XX } },
5429 { "(bad)", { XX } },
5430 { "(bad)", { XX } },
5431 { "(bad)", { XX } },
5432 { "(bad)", { XX } },
5433 { "(bad)", { XX } },
5434 { "(bad)", { XX } },
5435 { "(bad)", { XX } },
5436 { "(bad)", { XX } },
5438 { "(bad)", { XX } },
5439 { "(bad)", { XX } },
5440 { "(bad)", { XX } },
5441 { "(bad)", { XX } },
5442 { "(bad)", { XX } },
5443 { "(bad)", { XX } },
5444 { "(bad)", { XX } },
5445 { "(bad)", { XX } },
5447 { "(bad)", { XX } },
5448 { "(bad)", { XX } },
5449 { "(bad)", { XX } },
5450 { "(bad)", { XX } },
5451 { "(bad)", { XX } },
5452 { "(bad)", { XX } },
5453 { "(bad)", { XX } },
5454 { "(bad)", { XX } },
5456 { "(bad)", { XX } },
5457 { "(bad)", { XX } },
5458 { "(bad)", { XX } },
5459 { "(bad)", { XX } },
5460 { "(bad)", { XX } },
5461 { "(bad)", { XX } },
5462 { "(bad)", { XX } },
5463 { "(bad)", { XX } },
5465 { "(bad)", { XX } },
5466 { "(bad)", { XX } },
5467 { "(bad)", { XX } },
5468 { "(bad)", { XX } },
5469 { "comps", { { OP_DREX3, q_mode }, { OP_DREX_FCMP, b_mode } } },
5470 { "compd", { { OP_DREX3, q_mode }, { OP_DREX_FCMP, b_mode } } },
5471 { "comss", { { OP_DREX3, w_mode }, { OP_DREX_FCMP, b_mode } } },
5472 { "comsd", { { OP_DREX3, d_mode }, { OP_DREX_FCMP, b_mode } } },
5474 { "(bad)", { XX } },
5475 { "(bad)", { XX } },
5476 { "(bad)", { XX } },
5477 { "(bad)", { XX } },
5478 { "(bad)", { XX } },
5479 { "(bad)", { XX } },
5480 { "(bad)", { XX } },
5481 { "(bad)", { XX } },
5483 { "(bad)", { XX } },
5484 { "(bad)", { XX } },
5485 { "(bad)", { XX } },
5486 { "(bad)", { XX } },
5487 { "(bad)", { XX } },
5488 { "(bad)", { XX } },
5489 { "(bad)", { XX } },
5490 { "(bad)", { XX } },
5492 { "(bad)", { XX } },
5493 { "(bad)", { XX } },
5494 { "(bad)", { XX } },
5495 { "(bad)", { XX } },
5496 { "(bad)", { XX } },
5497 { "(bad)", { XX } },
5498 { "(bad)", { XX } },
5499 { "(bad)", { XX } },
5501 { "(bad)", { XX } },
5502 { "(bad)", { XX } },
5503 { "(bad)", { XX } },
5504 { "(bad)", { XX } },
5505 { "pcomb", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5506 { "pcomw", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5507 { "pcomd", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5508 { "pcomq", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5510 { "(bad)", { XX } },
5511 { "(bad)", { XX } },
5512 { "(bad)", { XX } },
5513 { "(bad)", { XX } },
5514 { "(bad)", { XX } },
5515 { "(bad)", { XX } },
5516 { "(bad)", { XX } },
5517 { "(bad)", { XX } },
5519 { "(bad)", { XX } },
5520 { "(bad)", { XX } },
5521 { "(bad)", { XX } },
5522 { "(bad)", { XX } },
5523 { "(bad)", { XX } },
5524 { "(bad)", { XX } },
5525 { "(bad)", { XX } },
5526 { "(bad)", { XX } },
5528 { "(bad)", { XX } },
5529 { "(bad)", { XX } },
5530 { "(bad)", { XX } },
5531 { "(bad)", { XX } },
5532 { "(bad)", { XX } },
5533 { "(bad)", { XX } },
5534 { "(bad)", { XX } },
5535 { "(bad)", { XX } },
5537 { "(bad)", { XX } },
5538 { "(bad)", { XX } },
5539 { "(bad)", { XX } },
5540 { "(bad)", { XX } },
5541 { "pcomub", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5542 { "pcomuw", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5543 { "pcomud", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5544 { "pcomuq", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5546 { "(bad)", { XX } },
5547 { "(bad)", { XX } },
5548 { "(bad)", { XX } },
5549 { "(bad)", { XX } },
5550 { "(bad)", { XX } },
5551 { "(bad)", { XX } },
5552 { "(bad)", { XX } },
5553 { "(bad)", { XX } },
5555 { "(bad)", { XX } },
5556 { "(bad)", { XX } },
5557 { "(bad)", { XX } },
5558 { "(bad)", { XX } },
5559 { "(bad)", { XX } },
5560 { "(bad)", { XX } },
5561 { "(bad)", { XX } },
5562 { "(bad)", { XX } },
5564 { "(bad)", { XX } },
5565 { "(bad)", { XX } },
5566 { "(bad)", { XX } },
5567 { "(bad)", { XX } },
5568 { "(bad)", { XX } },
5569 { "(bad)", { XX } },
5570 { "(bad)", { XX } },
5571 { "(bad)", { XX } },
5573 { "(bad)", { XX } },
5574 { "(bad)", { XX } },
5575 { "(bad)", { XX } },
5576 { "(bad)", { XX } },
5577 { "(bad)", { XX } },
5578 { "(bad)", { XX } },
5579 { "(bad)", { XX } },
5580 { "(bad)", { XX } },
5582 { "(bad)", { XX } },
5583 { "(bad)", { XX } },
5584 { "(bad)", { XX } },
5585 { "(bad)", { XX } },
5586 { "(bad)", { XX } },
5587 { "(bad)", { XX } },
5588 { "(bad)", { XX } },
5589 { "(bad)", { XX } },
5591 { "(bad)", { XX } },
5592 { "(bad)", { XX } },
5593 { "(bad)", { XX } },
5594 { "(bad)", { XX } },
5595 { "(bad)", { XX } },
5596 { "(bad)", { XX } },
5597 { "(bad)", { XX } },
5598 { "(bad)", { XX } },
5600 { "(bad)", { XX } },
5601 { "(bad)", { XX } },
5602 { "(bad)", { XX } },
5603 { "(bad)", { XX } },
5604 { "(bad)", { XX } },
5605 { "(bad)", { XX } },
5606 { "(bad)", { XX } },
5607 { "(bad)", { XX } },
5609 { "(bad)", { XX } },
5610 { "(bad)", { XX } },
5611 { "(bad)", { XX } },
5612 { "(bad)", { XX } },
5613 { "(bad)", { XX } },
5614 { "(bad)", { XX } },
5615 { "(bad)", { XX } },
5616 { "(bad)", { XX } },
5618 { "(bad)", { XX } },
5619 { "(bad)", { XX } },
5620 { "(bad)", { XX } },
5621 { "(bad)", { XX } },
5622 { "(bad)", { XX } },
5623 { "(bad)", { XX } },
5624 { "(bad)", { XX } },
5625 { "(bad)", { XX } },
5627 { "(bad)", { XX } },
5628 { "(bad)", { XX } },
5629 { "(bad)", { XX } },
5630 { "(bad)", { XX } },
5631 { "(bad)", { XX } },
5632 { "(bad)", { XX } },
5633 { "(bad)", { XX } },
5634 { "(bad)", { XX } },
5636 { "(bad)", { XX } },
5637 { "(bad)", { XX } },
5638 { "(bad)", { XX } },
5639 { "(bad)", { XX } },
5640 { "(bad)", { XX } },
5641 { "(bad)", { XX } },
5642 { "(bad)", { XX } },
5643 { "(bad)", { XX } },
5645 { "(bad)", { XX } },
5646 { "(bad)", { XX } },
5647 { "(bad)", { XX } },
5648 { "(bad)", { XX } },
5649 { "(bad)", { XX } },
5650 { "(bad)", { XX } },
5651 { "(bad)", { XX } },
5652 { "(bad)", { XX } },
5654 { "(bad)", { XX } },
5655 { "(bad)", { XX } },
5656 { "(bad)", { XX } },
5657 { "(bad)", { XX } },
5658 { "(bad)", { XX } },
5659 { "(bad)", { XX } },
5660 { "(bad)", { XX } },
5661 { "(bad)", { XX } },
5663 { "(bad)", { XX } },
5664 { "(bad)", { XX } },
5665 { "(bad)", { XX } },
5666 { "(bad)", { XX } },
5667 { "(bad)", { XX } },
5668 { "(bad)", { XX } },
5669 { "(bad)", { XX } },
5670 { "(bad)", { XX } },
5672 { "(bad)", { XX } },
5673 { "(bad)", { XX } },
5674 { "(bad)", { XX } },
5675 { "(bad)", { XX } },
5676 { "(bad)", { XX } },
5677 { "(bad)", { XX } },
5678 { "(bad)", { XX } },
5679 { "(bad)", { XX } },
5681 { "(bad)", { XX } },
5682 { "(bad)", { XX } },
5683 { "(bad)", { XX } },
5684 { "(bad)", { XX } },
5685 { "(bad)", { XX } },
5686 { "(bad)", { XX } },
5687 { "(bad)", { XX } },
5688 { "(bad)", { XX } },
5690 { "(bad)", { XX } },
5691 { "(bad)", { XX } },
5692 { "(bad)", { XX } },
5693 { "(bad)", { XX } },
5694 { "(bad)", { XX } },
5695 { "(bad)", { XX } },
5696 { "(bad)", { XX } },
5697 { "(bad)", { XX } },
5699 { "(bad)", { XX } },
5700 { "(bad)", { XX } },
5701 { "(bad)", { XX } },
5702 { "(bad)", { XX } },
5703 { "(bad)", { XX } },
5704 { "(bad)", { XX } },
5705 { "(bad)", { XX } },
5706 { "(bad)", { XX } },
5708 /* THREE_BYTE_0F38 */
5711 { "pshufb", { MX, EM } },
5712 { "phaddw", { MX, EM } },
5713 { "phaddd", { MX, EM } },
5714 { "phaddsw", { MX, EM } },
5715 { "pmaddubsw", { MX, EM } },
5716 { "phsubw", { MX, EM } },
5717 { "phsubd", { MX, EM } },
5718 { "phsubsw", { MX, EM } },
5720 { "psignb", { MX, EM } },
5721 { "psignw", { MX, EM } },
5722 { "psignd", { MX, EM } },
5723 { "pmulhrsw", { MX, EM } },
5724 { "(bad)", { XX } },
5725 { "(bad)", { XX } },
5726 { "(bad)", { XX } },
5727 { "(bad)", { XX } },
5729 { PREFIX_TABLE (PREFIX_0F3810) },
5730 { "(bad)", { XX } },
5731 { "(bad)", { XX } },
5732 { "(bad)", { XX } },
5733 { PREFIX_TABLE (PREFIX_0F3814) },
5734 { PREFIX_TABLE (PREFIX_0F3815) },
5735 { "(bad)", { XX } },
5736 { PREFIX_TABLE (PREFIX_0F3817) },
5738 { "(bad)", { XX } },
5739 { "(bad)", { XX } },
5740 { "(bad)", { XX } },
5741 { "(bad)", { XX } },
5742 { "pabsb", { MX, EM } },
5743 { "pabsw", { MX, EM } },
5744 { "pabsd", { MX, EM } },
5745 { "(bad)", { XX } },
5747 { PREFIX_TABLE (PREFIX_0F3820) },
5748 { PREFIX_TABLE (PREFIX_0F3821) },
5749 { PREFIX_TABLE (PREFIX_0F3822) },
5750 { PREFIX_TABLE (PREFIX_0F3823) },
5751 { PREFIX_TABLE (PREFIX_0F3824) },
5752 { PREFIX_TABLE (PREFIX_0F3825) },
5753 { "(bad)", { XX } },
5754 { "(bad)", { XX } },
5756 { PREFIX_TABLE (PREFIX_0F3828) },
5757 { PREFIX_TABLE (PREFIX_0F3829) },
5758 { PREFIX_TABLE (PREFIX_0F382A) },
5759 { PREFIX_TABLE (PREFIX_0F382B) },
5760 { "(bad)", { XX } },
5761 { "(bad)", { XX } },
5762 { "(bad)", { XX } },
5763 { "(bad)", { XX } },
5765 { PREFIX_TABLE (PREFIX_0F3830) },
5766 { PREFIX_TABLE (PREFIX_0F3831) },
5767 { PREFIX_TABLE (PREFIX_0F3832) },
5768 { PREFIX_TABLE (PREFIX_0F3833) },
5769 { PREFIX_TABLE (PREFIX_0F3834) },
5770 { PREFIX_TABLE (PREFIX_0F3835) },
5771 { "(bad)", { XX } },
5772 { PREFIX_TABLE (PREFIX_0F3837) },
5774 { PREFIX_TABLE (PREFIX_0F3838) },
5775 { PREFIX_TABLE (PREFIX_0F3839) },
5776 { PREFIX_TABLE (PREFIX_0F383A) },
5777 { PREFIX_TABLE (PREFIX_0F383B) },
5778 { PREFIX_TABLE (PREFIX_0F383C) },
5779 { PREFIX_TABLE (PREFIX_0F383D) },
5780 { PREFIX_TABLE (PREFIX_0F383E) },
5781 { PREFIX_TABLE (PREFIX_0F383F) },
5783 { PREFIX_TABLE (PREFIX_0F3840) },
5784 { PREFIX_TABLE (PREFIX_0F3841) },
5785 { "(bad)", { XX } },
5786 { "(bad)", { XX } },
5787 { "(bad)", { XX } },
5788 { "(bad)", { XX } },
5789 { "(bad)", { XX } },
5790 { "(bad)", { XX } },
5792 { "(bad)", { XX } },
5793 { "(bad)", { XX } },
5794 { "(bad)", { XX } },
5795 { "(bad)", { XX } },
5796 { "(bad)", { XX } },
5797 { "(bad)", { XX } },
5798 { "(bad)", { XX } },
5799 { "(bad)", { XX } },
5801 { "(bad)", { XX } },
5802 { "(bad)", { XX } },
5803 { "(bad)", { XX } },
5804 { "(bad)", { XX } },
5805 { "(bad)", { XX } },
5806 { "(bad)", { XX } },
5807 { "(bad)", { XX } },
5808 { "(bad)", { XX } },
5810 { "(bad)", { XX } },
5811 { "(bad)", { XX } },
5812 { "(bad)", { XX } },
5813 { "(bad)", { XX } },
5814 { "(bad)", { XX } },
5815 { "(bad)", { XX } },
5816 { "(bad)", { XX } },
5817 { "(bad)", { XX } },
5819 { "(bad)", { XX } },
5820 { "(bad)", { XX } },
5821 { "(bad)", { XX } },
5822 { "(bad)", { XX } },
5823 { "(bad)", { XX } },
5824 { "(bad)", { XX } },
5825 { "(bad)", { XX } },
5826 { "(bad)", { XX } },
5828 { "(bad)", { XX } },
5829 { "(bad)", { XX } },
5830 { "(bad)", { XX } },
5831 { "(bad)", { XX } },
5832 { "(bad)", { XX } },
5833 { "(bad)", { XX } },
5834 { "(bad)", { XX } },
5835 { "(bad)", { XX } },
5837 { "(bad)", { XX } },
5838 { "(bad)", { XX } },
5839 { "(bad)", { XX } },
5840 { "(bad)", { XX } },
5841 { "(bad)", { XX } },
5842 { "(bad)", { XX } },
5843 { "(bad)", { XX } },
5844 { "(bad)", { XX } },
5846 { "(bad)", { XX } },
5847 { "(bad)", { XX } },
5848 { "(bad)", { XX } },
5849 { "(bad)", { XX } },
5850 { "(bad)", { XX } },
5851 { "(bad)", { XX } },
5852 { "(bad)", { XX } },
5853 { "(bad)", { XX } },
5855 { PREFIX_TABLE (PREFIX_0F3880) },
5856 { PREFIX_TABLE (PREFIX_0F3881) },
5857 { "(bad)", { XX } },
5858 { "(bad)", { XX } },
5859 { "(bad)", { XX } },
5860 { "(bad)", { XX } },
5861 { "(bad)", { XX } },
5862 { "(bad)", { XX } },
5864 { "(bad)", { XX } },
5865 { "(bad)", { XX } },
5866 { "(bad)", { XX } },
5867 { "(bad)", { XX } },
5868 { "(bad)", { XX } },
5869 { "(bad)", { XX } },
5870 { "(bad)", { XX } },
5871 { "(bad)", { XX } },
5873 { "(bad)", { XX } },
5874 { "(bad)", { XX } },
5875 { "(bad)", { XX } },
5876 { "(bad)", { XX } },
5877 { "(bad)", { XX } },
5878 { "(bad)", { XX } },
5879 { "(bad)", { XX } },
5880 { "(bad)", { XX } },
5882 { "(bad)", { XX } },
5883 { "(bad)", { XX } },
5884 { "(bad)", { XX } },
5885 { "(bad)", { XX } },
5886 { "(bad)", { XX } },
5887 { "(bad)", { XX } },
5888 { "(bad)", { XX } },
5889 { "(bad)", { XX } },
5891 { "(bad)", { XX } },
5892 { "(bad)", { XX } },
5893 { "(bad)", { XX } },
5894 { "(bad)", { XX } },
5895 { "(bad)", { XX } },
5896 { "(bad)", { XX } },
5897 { "(bad)", { XX } },
5898 { "(bad)", { XX } },
5900 { "(bad)", { XX } },
5901 { "(bad)", { XX } },
5902 { "(bad)", { XX } },
5903 { "(bad)", { XX } },
5904 { "(bad)", { XX } },
5905 { "(bad)", { XX } },
5906 { "(bad)", { XX } },
5907 { "(bad)", { XX } },
5909 { "(bad)", { XX } },
5910 { "(bad)", { XX } },
5911 { "(bad)", { XX } },
5912 { "(bad)", { XX } },
5913 { "(bad)", { XX } },
5914 { "(bad)", { XX } },
5915 { "(bad)", { XX } },
5916 { "(bad)", { XX } },
5918 { "(bad)", { XX } },
5919 { "(bad)", { XX } },
5920 { "(bad)", { XX } },
5921 { "(bad)", { XX } },
5922 { "(bad)", { XX } },
5923 { "(bad)", { XX } },
5924 { "(bad)", { XX } },
5925 { "(bad)", { XX } },
5927 { "(bad)", { XX } },
5928 { "(bad)", { XX } },
5929 { "(bad)", { XX } },
5930 { "(bad)", { XX } },
5931 { "(bad)", { XX } },
5932 { "(bad)", { XX } },
5933 { "(bad)", { XX } },
5934 { "(bad)", { XX } },
5936 { "(bad)", { XX } },
5937 { "(bad)", { XX } },
5938 { "(bad)", { XX } },
5939 { "(bad)", { XX } },
5940 { "(bad)", { XX } },
5941 { "(bad)", { XX } },
5942 { "(bad)", { XX } },
5943 { "(bad)", { XX } },
5945 { "(bad)", { XX } },
5946 { "(bad)", { XX } },
5947 { "(bad)", { XX } },
5948 { "(bad)", { XX } },
5949 { "(bad)", { XX } },
5950 { "(bad)", { XX } },
5951 { "(bad)", { XX } },
5952 { "(bad)", { XX } },
5954 { "(bad)", { XX } },
5955 { "(bad)", { XX } },
5956 { "(bad)", { XX } },
5957 { PREFIX_TABLE (PREFIX_0F38DB) },
5958 { PREFIX_TABLE (PREFIX_0F38DC) },
5959 { PREFIX_TABLE (PREFIX_0F38DD) },
5960 { PREFIX_TABLE (PREFIX_0F38DE) },
5961 { PREFIX_TABLE (PREFIX_0F38DF) },
5963 { "(bad)", { XX } },
5964 { "(bad)", { XX } },
5965 { "(bad)", { XX } },
5966 { "(bad)", { XX } },
5967 { "(bad)", { XX } },
5968 { "(bad)", { XX } },
5969 { "(bad)", { XX } },
5970 { "(bad)", { XX } },
5972 { "(bad)", { XX } },
5973 { "(bad)", { XX } },
5974 { "(bad)", { XX } },
5975 { "(bad)", { XX } },
5976 { "(bad)", { XX } },
5977 { "(bad)", { XX } },
5978 { "(bad)", { XX } },
5979 { "(bad)", { XX } },
5981 { PREFIX_TABLE (PREFIX_0F38F0) },
5982 { PREFIX_TABLE (PREFIX_0F38F1) },
5983 { "(bad)", { XX } },
5984 { "(bad)", { XX } },
5985 { "(bad)", { XX } },
5986 { "(bad)", { XX } },
5987 { "(bad)", { XX } },
5988 { "(bad)", { XX } },
5990 { "(bad)", { XX } },
5991 { "(bad)", { XX } },
5992 { "(bad)", { XX } },
5993 { "(bad)", { XX } },
5994 { "(bad)", { XX } },
5995 { "(bad)", { XX } },
5996 { "(bad)", { XX } },
5997 { "(bad)", { XX } },
5999 /* THREE_BYTE_0F3A */
6002 { "(bad)", { XX } },
6003 { "(bad)", { XX } },
6004 { "(bad)", { XX } },
6005 { "(bad)", { XX } },
6006 { "(bad)", { XX } },
6007 { "(bad)", { XX } },
6008 { "(bad)", { XX } },
6009 { "(bad)", { XX } },
6011 { PREFIX_TABLE (PREFIX_0F3A08) },
6012 { PREFIX_TABLE (PREFIX_0F3A09) },
6013 { PREFIX_TABLE (PREFIX_0F3A0A) },
6014 { PREFIX_TABLE (PREFIX_0F3A0B) },
6015 { PREFIX_TABLE (PREFIX_0F3A0C) },
6016 { PREFIX_TABLE (PREFIX_0F3A0D) },
6017 { PREFIX_TABLE (PREFIX_0F3A0E) },
6018 { "palignr", { MX, EM, Ib } },
6020 { "(bad)", { XX } },
6021 { "(bad)", { XX } },
6022 { "(bad)", { XX } },
6023 { "(bad)", { XX } },
6024 { PREFIX_TABLE (PREFIX_0F3A14) },
6025 { PREFIX_TABLE (PREFIX_0F3A15) },
6026 { PREFIX_TABLE (PREFIX_0F3A16) },
6027 { PREFIX_TABLE (PREFIX_0F3A17) },
6029 { "(bad)", { XX } },
6030 { "(bad)", { XX } },
6031 { "(bad)", { XX } },
6032 { "(bad)", { XX } },
6033 { "(bad)", { XX } },
6034 { "(bad)", { XX } },
6035 { "(bad)", { XX } },
6036 { "(bad)", { XX } },
6038 { PREFIX_TABLE (PREFIX_0F3A20) },
6039 { PREFIX_TABLE (PREFIX_0F3A21) },
6040 { PREFIX_TABLE (PREFIX_0F3A22) },
6041 { "(bad)", { XX } },
6042 { "(bad)", { XX } },
6043 { "(bad)", { XX } },
6044 { "(bad)", { XX } },
6045 { "(bad)", { XX } },
6047 { "(bad)", { XX } },
6048 { "(bad)", { XX } },
6049 { "(bad)", { XX } },
6050 { "(bad)", { XX } },
6051 { "(bad)", { XX } },
6052 { "(bad)", { XX } },
6053 { "(bad)", { XX } },
6054 { "(bad)", { XX } },
6056 { "(bad)", { XX } },
6057 { "(bad)", { XX } },
6058 { "(bad)", { XX } },
6059 { "(bad)", { XX } },
6060 { "(bad)", { XX } },
6061 { "(bad)", { XX } },
6062 { "(bad)", { XX } },
6063 { "(bad)", { XX } },
6065 { "(bad)", { XX } },
6066 { "(bad)", { XX } },
6067 { "(bad)", { XX } },
6068 { "(bad)", { XX } },
6069 { "(bad)", { XX } },
6070 { "(bad)", { XX } },
6071 { "(bad)", { XX } },
6072 { "(bad)", { XX } },
6074 { PREFIX_TABLE (PREFIX_0F3A40) },
6075 { PREFIX_TABLE (PREFIX_0F3A41) },
6076 { PREFIX_TABLE (PREFIX_0F3A42) },
6077 { "(bad)", { XX } },
6078 { PREFIX_TABLE (PREFIX_0F3A44) },
6079 { "(bad)", { XX } },
6080 { "(bad)", { XX } },
6081 { "(bad)", { XX } },
6083 { "(bad)", { XX } },
6084 { "(bad)", { XX } },
6085 { "(bad)", { XX } },
6086 { "(bad)", { XX } },
6087 { "(bad)", { XX } },
6088 { "(bad)", { XX } },
6089 { "(bad)", { XX } },
6090 { "(bad)", { XX } },
6092 { "(bad)", { XX } },
6093 { "(bad)", { XX } },
6094 { "(bad)", { XX } },
6095 { "(bad)", { XX } },
6096 { "(bad)", { XX } },
6097 { "(bad)", { XX } },
6098 { "(bad)", { XX } },
6099 { "(bad)", { XX } },
6101 { "(bad)", { XX } },
6102 { "(bad)", { XX } },
6103 { "(bad)", { XX } },
6104 { "(bad)", { XX } },
6105 { "(bad)", { XX } },
6106 { "(bad)", { XX } },
6107 { "(bad)", { XX } },
6108 { "(bad)", { XX } },
6110 { PREFIX_TABLE (PREFIX_0F3A60) },
6111 { PREFIX_TABLE (PREFIX_0F3A61) },
6112 { PREFIX_TABLE (PREFIX_0F3A62) },
6113 { PREFIX_TABLE (PREFIX_0F3A63) },
6114 { "(bad)", { XX } },
6115 { "(bad)", { XX } },
6116 { "(bad)", { XX } },
6117 { "(bad)", { XX } },
6119 { "(bad)", { XX } },
6120 { "(bad)", { XX } },
6121 { "(bad)", { XX } },
6122 { "(bad)", { XX } },
6123 { "(bad)", { XX } },
6124 { "(bad)", { XX } },
6125 { "(bad)", { XX } },
6126 { "(bad)", { XX } },
6128 { "(bad)", { XX } },
6129 { "(bad)", { XX } },
6130 { "(bad)", { XX } },
6131 { "(bad)", { XX } },
6132 { "(bad)", { XX } },
6133 { "(bad)", { XX } },
6134 { "(bad)", { XX } },
6135 { "(bad)", { XX } },
6137 { "(bad)", { XX } },
6138 { "(bad)", { XX } },
6139 { "(bad)", { XX } },
6140 { "(bad)", { XX } },
6141 { "(bad)", { XX } },
6142 { "(bad)", { XX } },
6143 { "(bad)", { XX } },
6144 { "(bad)", { XX } },
6146 { "(bad)", { XX } },
6147 { "(bad)", { XX } },
6148 { "(bad)", { XX } },
6149 { "(bad)", { XX } },
6150 { "(bad)", { XX } },
6151 { "(bad)", { XX } },
6152 { "(bad)", { XX } },
6153 { "(bad)", { XX } },
6155 { "(bad)", { XX } },
6156 { "(bad)", { XX } },
6157 { "(bad)", { XX } },
6158 { "(bad)", { XX } },
6159 { "(bad)", { XX } },
6160 { "(bad)", { XX } },
6161 { "(bad)", { XX } },
6162 { "(bad)", { XX } },
6164 { "(bad)", { XX } },
6165 { "(bad)", { XX } },
6166 { "(bad)", { XX } },
6167 { "(bad)", { XX } },
6168 { "(bad)", { XX } },
6169 { "(bad)", { XX } },
6170 { "(bad)", { XX } },
6171 { "(bad)", { XX } },
6173 { "(bad)", { XX } },
6174 { "(bad)", { XX } },
6175 { "(bad)", { XX } },
6176 { "(bad)", { XX } },
6177 { "(bad)", { XX } },
6178 { "(bad)", { XX } },
6179 { "(bad)", { XX } },
6180 { "(bad)", { XX } },
6182 { "(bad)", { XX } },
6183 { "(bad)", { XX } },
6184 { "(bad)", { XX } },
6185 { "(bad)", { XX } },
6186 { "(bad)", { XX } },
6187 { "(bad)", { XX } },
6188 { "(bad)", { XX } },
6189 { "(bad)", { XX } },
6191 { "(bad)", { XX } },
6192 { "(bad)", { XX } },
6193 { "(bad)", { XX } },
6194 { "(bad)", { XX } },
6195 { "(bad)", { XX } },
6196 { "(bad)", { XX } },
6197 { "(bad)", { XX } },
6198 { "(bad)", { XX } },
6200 { "(bad)", { XX } },
6201 { "(bad)", { XX } },
6202 { "(bad)", { XX } },
6203 { "(bad)", { XX } },
6204 { "(bad)", { XX } },
6205 { "(bad)", { XX } },
6206 { "(bad)", { XX } },
6207 { "(bad)", { XX } },
6209 { "(bad)", { XX } },
6210 { "(bad)", { XX } },
6211 { "(bad)", { XX } },
6212 { "(bad)", { XX } },
6213 { "(bad)", { XX } },
6214 { "(bad)", { XX } },
6215 { "(bad)", { XX } },
6216 { "(bad)", { XX } },
6218 { "(bad)", { XX } },
6219 { "(bad)", { XX } },
6220 { "(bad)", { XX } },
6221 { "(bad)", { XX } },
6222 { "(bad)", { XX } },
6223 { "(bad)", { XX } },
6224 { "(bad)", { XX } },
6225 { "(bad)", { XX } },
6227 { "(bad)", { XX } },
6228 { "(bad)", { XX } },
6229 { "(bad)", { XX } },
6230 { "(bad)", { XX } },
6231 { "(bad)", { XX } },
6232 { "(bad)", { XX } },
6233 { "(bad)", { XX } },
6234 { "(bad)", { XX } },
6236 { "(bad)", { XX } },
6237 { "(bad)", { XX } },
6238 { "(bad)", { XX } },
6239 { "(bad)", { XX } },
6240 { "(bad)", { XX } },
6241 { "(bad)", { XX } },
6242 { "(bad)", { XX } },
6243 { "(bad)", { XX } },
6245 { "(bad)", { XX } },
6246 { "(bad)", { XX } },
6247 { "(bad)", { XX } },
6248 { "(bad)", { XX } },
6249 { "(bad)", { XX } },
6250 { "(bad)", { XX } },
6251 { "(bad)", { XX } },
6252 { PREFIX_TABLE (PREFIX_0F3ADF) },
6254 { "(bad)", { XX } },
6255 { "(bad)", { XX } },
6256 { "(bad)", { XX } },
6257 { "(bad)", { XX } },
6258 { "(bad)", { XX } },
6259 { "(bad)", { XX } },
6260 { "(bad)", { XX } },
6261 { "(bad)", { XX } },
6263 { "(bad)", { XX } },
6264 { "(bad)", { XX } },
6265 { "(bad)", { XX } },
6266 { "(bad)", { XX } },
6267 { "(bad)", { XX } },
6268 { "(bad)", { XX } },
6269 { "(bad)", { XX } },
6270 { "(bad)", { XX } },
6272 { "(bad)", { XX } },
6273 { "(bad)", { XX } },
6274 { "(bad)", { XX } },
6275 { "(bad)", { XX } },
6276 { "(bad)", { XX } },
6277 { "(bad)", { XX } },
6278 { "(bad)", { XX } },
6279 { "(bad)", { XX } },
6281 { "(bad)", { XX } },
6282 { "(bad)", { XX } },
6283 { "(bad)", { XX } },
6284 { "(bad)", { XX } },
6285 { "(bad)", { XX } },
6286 { "(bad)", { XX } },
6287 { "(bad)", { XX } },
6288 { "(bad)", { XX } },
6290 /* THREE_BYTE_0F7A */
6293 { "(bad)", { XX } },
6294 { "(bad)", { XX } },
6295 { "(bad)", { XX } },
6296 { "(bad)", { XX } },
6297 { "(bad)", { XX } },
6298 { "(bad)", { XX } },
6299 { "(bad)", { XX } },
6300 { "(bad)", { XX } },
6302 { "(bad)", { XX } },
6303 { "(bad)", { XX } },
6304 { "(bad)", { XX } },
6305 { "(bad)", { XX } },
6306 { "(bad)", { XX } },
6307 { "(bad)", { XX } },
6308 { "(bad)", { XX } },
6309 { "(bad)", { XX } },
6311 { "frczps", { XM, EXq } },
6312 { "frczpd", { XM, EXq } },
6313 { "frczss", { XM, EXq } },
6314 { "frczsd", { XM, EXq } },
6315 { "(bad)", { XX } },
6316 { "(bad)", { XX } },
6317 { "(bad)", { XX } },
6318 { "(bad)", { XX } },
6320 { "(bad)", { XX } },
6321 { "(bad)", { XX } },
6322 { "(bad)", { XX } },
6323 { "(bad)", { XX } },
6324 { "(bad)", { XX } },
6325 { "(bad)", { XX } },
6326 { "(bad)", { XX } },
6327 { "(bad)", { XX } },
6329 { "ptest", { XX } },
6330 { "(bad)", { XX } },
6331 { "(bad)", { XX } },
6332 { "(bad)", { XX } },
6333 { "(bad)", { XX } },
6334 { "(bad)", { XX } },
6335 { "(bad)", { XX } },
6336 { "(bad)", { XX } },
6338 { "(bad)", { XX } },
6339 { "(bad)", { XX } },
6340 { "(bad)", { XX } },
6341 { "(bad)", { XX } },
6342 { "(bad)", { XX } },
6343 { "(bad)", { XX } },
6344 { "(bad)", { XX } },
6345 { "(bad)", { XX } },
6347 { "cvtph2ps", { XM, EXd } },
6348 { "cvtps2ph", { EXd, XM } },
6349 { "(bad)", { XX } },
6350 { "(bad)", { XX } },
6351 { "(bad)", { XX } },
6352 { "(bad)", { XX } },
6353 { "(bad)", { XX } },
6354 { "(bad)", { XX } },
6356 { "(bad)", { XX } },
6357 { "(bad)", { XX } },
6358 { "(bad)", { XX } },
6359 { "(bad)", { XX } },
6360 { "(bad)", { XX } },
6361 { "(bad)", { XX } },
6362 { "(bad)", { XX } },
6363 { "(bad)", { XX } },
6365 { "(bad)", { XX } },
6366 { "phaddbw", { XM, EXq } },
6367 { "phaddbd", { XM, EXq } },
6368 { "phaddbq", { XM, EXq } },
6369 { "(bad)", { XX } },
6370 { "(bad)", { XX } },
6371 { "phaddwd", { XM, EXq } },
6372 { "phaddwq", { XM, EXq } },
6374 { "(bad)", { XX } },
6375 { "(bad)", { XX } },
6376 { "(bad)", { XX } },
6377 { "phadddq", { XM, EXq } },
6378 { "(bad)", { XX } },
6379 { "(bad)", { XX } },
6380 { "(bad)", { XX } },
6381 { "(bad)", { XX } },
6383 { "(bad)", { XX } },
6384 { "phaddubw", { XM, EXq } },
6385 { "phaddubd", { XM, EXq } },
6386 { "phaddubq", { XM, EXq } },
6387 { "(bad)", { XX } },
6388 { "(bad)", { XX } },
6389 { "phadduwd", { XM, EXq } },
6390 { "phadduwq", { XM, EXq } },
6392 { "(bad)", { XX } },
6393 { "(bad)", { XX } },
6394 { "(bad)", { XX } },
6395 { "phaddudq", { XM, EXq } },
6396 { "(bad)", { XX } },
6397 { "(bad)", { XX } },
6398 { "(bad)", { XX } },
6399 { "(bad)", { XX } },
6401 { "(bad)", { XX } },
6402 { "phsubbw", { XM, EXq } },
6403 { "phsubbd", { XM, EXq } },
6404 { "phsubbq", { XM, EXq } },
6405 { "(bad)", { XX } },
6406 { "(bad)", { XX } },
6407 { "(bad)", { XX } },
6408 { "(bad)", { XX } },
6410 { "(bad)", { XX } },
6411 { "(bad)", { XX } },
6412 { "(bad)", { XX } },
6413 { "(bad)", { XX } },
6414 { "(bad)", { XX } },
6415 { "(bad)", { XX } },
6416 { "(bad)", { XX } },
6417 { "(bad)", { XX } },
6419 { "(bad)", { XX } },
6420 { "(bad)", { XX } },
6421 { "(bad)", { XX } },
6422 { "(bad)", { XX } },
6423 { "(bad)", { XX } },
6424 { "(bad)", { XX } },
6425 { "(bad)", { XX } },
6426 { "(bad)", { XX } },
6428 { "(bad)", { XX } },
6429 { "(bad)", { XX } },
6430 { "(bad)", { XX } },
6431 { "(bad)", { XX } },
6432 { "(bad)", { XX } },
6433 { "(bad)", { XX } },
6434 { "(bad)", { XX } },
6435 { "(bad)", { XX } },
6437 { "(bad)", { XX } },
6438 { "(bad)", { XX } },
6439 { "(bad)", { XX } },
6440 { "(bad)", { XX } },
6441 { "(bad)", { XX } },
6442 { "(bad)", { XX } },
6443 { "(bad)", { XX } },
6444 { "(bad)", { XX } },
6446 { "(bad)", { XX } },
6447 { "(bad)", { XX } },
6448 { "(bad)", { XX } },
6449 { "(bad)", { XX } },
6450 { "(bad)", { XX } },
6451 { "(bad)", { XX } },
6452 { "(bad)", { XX } },
6453 { "(bad)", { XX } },
6455 { "(bad)", { XX } },
6456 { "(bad)", { XX } },
6457 { "(bad)", { XX } },
6458 { "(bad)", { XX } },
6459 { "(bad)", { XX } },
6460 { "(bad)", { XX } },
6461 { "(bad)", { XX } },
6462 { "(bad)", { XX } },
6464 { "(bad)", { XX } },
6465 { "(bad)", { XX } },
6466 { "(bad)", { XX } },
6467 { "(bad)", { XX } },
6468 { "(bad)", { XX } },
6469 { "(bad)", { XX } },
6470 { "(bad)", { XX } },
6471 { "(bad)", { XX } },
6473 { "(bad)", { XX } },
6474 { "(bad)", { XX } },
6475 { "(bad)", { XX } },
6476 { "(bad)", { XX } },
6477 { "(bad)", { XX } },
6478 { "(bad)", { XX } },
6479 { "(bad)", { XX } },
6480 { "(bad)", { XX } },
6482 { "(bad)", { XX } },
6483 { "(bad)", { XX } },
6484 { "(bad)", { XX } },
6485 { "(bad)", { XX } },
6486 { "(bad)", { XX } },
6487 { "(bad)", { XX } },
6488 { "(bad)", { XX } },
6489 { "(bad)", { XX } },
6491 { "(bad)", { XX } },
6492 { "(bad)", { XX } },
6493 { "(bad)", { XX } },
6494 { "(bad)", { XX } },
6495 { "(bad)", { XX } },
6496 { "(bad)", { XX } },
6497 { "(bad)", { XX } },
6498 { "(bad)", { XX } },
6500 { "(bad)", { XX } },
6501 { "(bad)", { XX } },
6502 { "(bad)", { XX } },
6503 { "(bad)", { XX } },
6504 { "(bad)", { XX } },
6505 { "(bad)", { XX } },
6506 { "(bad)", { XX } },
6507 { "(bad)", { XX } },
6509 { "(bad)", { XX } },
6510 { "(bad)", { XX } },
6511 { "(bad)", { XX } },
6512 { "(bad)", { XX } },
6513 { "(bad)", { XX } },
6514 { "(bad)", { XX } },
6515 { "(bad)", { XX } },
6516 { "(bad)", { XX } },
6518 { "(bad)", { XX } },
6519 { "(bad)", { XX } },
6520 { "(bad)", { XX } },
6521 { "(bad)", { XX } },
6522 { "(bad)", { XX } },
6523 { "(bad)", { XX } },
6524 { "(bad)", { XX } },
6525 { "(bad)", { XX } },
6527 { "(bad)", { XX } },
6528 { "(bad)", { XX } },
6529 { "(bad)", { XX } },
6530 { "(bad)", { XX } },
6531 { "(bad)", { XX } },
6532 { "(bad)", { XX } },
6533 { "(bad)", { XX } },
6534 { "(bad)", { XX } },
6536 { "(bad)", { XX } },
6537 { "(bad)", { XX } },
6538 { "(bad)", { XX } },
6539 { "(bad)", { XX } },
6540 { "(bad)", { XX } },
6541 { "(bad)", { XX } },
6542 { "(bad)", { XX } },
6543 { "(bad)", { XX } },
6545 { "(bad)", { XX } },
6546 { "(bad)", { XX } },
6547 { "(bad)", { XX } },
6548 { "(bad)", { XX } },
6549 { "(bad)", { XX } },
6550 { "(bad)", { XX } },
6551 { "(bad)", { XX } },
6552 { "(bad)", { XX } },
6554 { "(bad)", { XX } },
6555 { "(bad)", { XX } },
6556 { "(bad)", { XX } },
6557 { "(bad)", { XX } },
6558 { "(bad)", { XX } },
6559 { "(bad)", { XX } },
6560 { "(bad)", { XX } },
6561 { "(bad)", { XX } },
6563 { "(bad)", { XX } },
6564 { "(bad)", { XX } },
6565 { "(bad)", { XX } },
6566 { "(bad)", { XX } },
6567 { "(bad)", { XX } },
6568 { "(bad)", { XX } },
6569 { "(bad)", { XX } },
6570 { "(bad)", { XX } },
6572 { "(bad)", { XX } },
6573 { "(bad)", { XX } },
6574 { "(bad)", { XX } },
6575 { "(bad)", { XX } },
6576 { "(bad)", { XX } },
6577 { "(bad)", { XX } },
6578 { "(bad)", { XX } },
6579 { "(bad)", { XX } },
6581 /* THREE_BYTE_0F7B */
6584 { "(bad)", { XX } },
6585 { "(bad)", { XX } },
6586 { "(bad)", { XX } },
6587 { "(bad)", { XX } },
6588 { "(bad)", { XX } },
6589 { "(bad)", { XX } },
6590 { "(bad)", { XX } },
6591 { "(bad)", { XX } },
6593 { "(bad)", { XX } },
6594 { "(bad)", { XX } },
6595 { "(bad)", { XX } },
6596 { "(bad)", { XX } },
6597 { "(bad)", { XX } },
6598 { "(bad)", { XX } },
6599 { "(bad)", { XX } },
6600 { "(bad)", { XX } },
6602 { "(bad)", { XX } },
6603 { "(bad)", { XX } },
6604 { "(bad)", { XX } },
6605 { "(bad)", { XX } },
6606 { "(bad)", { XX } },
6607 { "(bad)", { XX } },
6608 { "(bad)", { XX } },
6609 { "(bad)", { XX } },
6611 { "(bad)", { XX } },
6612 { "(bad)", { XX } },
6613 { "(bad)", { XX } },
6614 { "(bad)", { XX } },
6615 { "(bad)", { XX } },
6616 { "(bad)", { XX } },
6617 { "(bad)", { XX } },
6618 { "(bad)", { XX } },
6620 { "(bad)", { XX } },
6621 { "(bad)", { XX } },
6622 { "(bad)", { XX } },
6623 { "(bad)", { XX } },
6624 { "(bad)", { XX } },
6625 { "(bad)", { XX } },
6626 { "(bad)", { XX } },
6627 { "(bad)", { XX } },
6629 { "(bad)", { XX } },
6630 { "(bad)", { XX } },
6631 { "(bad)", { XX } },
6632 { "(bad)", { XX } },
6633 { "(bad)", { XX } },
6634 { "(bad)", { XX } },
6635 { "(bad)", { XX } },
6636 { "(bad)", { XX } },
6638 { "(bad)", { XX } },
6639 { "(bad)", { XX } },
6640 { "(bad)", { XX } },
6641 { "(bad)", { XX } },
6642 { "(bad)", { XX } },
6643 { "(bad)", { XX } },
6644 { "(bad)", { XX } },
6645 { "(bad)", { XX } },
6647 { "(bad)", { XX } },
6648 { "(bad)", { XX } },
6649 { "(bad)", { XX } },
6650 { "(bad)", { XX } },
6651 { "(bad)", { XX } },
6652 { "(bad)", { XX } },
6653 { "(bad)", { XX } },
6654 { "(bad)", { XX } },
6656 { "protb", { XM, EXq, Ib } },
6657 { "protw", { XM, EXq, Ib } },
6658 { "protd", { XM, EXq, Ib } },
6659 { "protq", { XM, EXq, Ib } },
6660 { "pshlb", { XM, EXq, Ib } },
6661 { "pshlw", { XM, EXq, Ib } },
6662 { "pshld", { XM, EXq, Ib } },
6663 { "pshlq", { XM, EXq, Ib } },
6665 { "pshab", { XM, EXq, Ib } },
6666 { "pshaw", { XM, EXq, Ib } },
6667 { "pshad", { XM, EXq, Ib } },
6668 { "pshaq", { XM, EXq, Ib } },
6669 { "(bad)", { XX } },
6670 { "(bad)", { XX } },
6671 { "(bad)", { XX } },
6672 { "(bad)", { XX } },
6674 { "(bad)", { XX } },
6675 { "(bad)", { XX } },
6676 { "(bad)", { XX } },
6677 { "(bad)", { XX } },
6678 { "(bad)", { XX } },
6679 { "(bad)", { XX } },
6680 { "(bad)", { XX } },
6681 { "(bad)", { XX } },
6683 { "(bad)", { XX } },
6684 { "(bad)", { XX } },
6685 { "(bad)", { XX } },
6686 { "(bad)", { XX } },
6687 { "(bad)", { XX } },
6688 { "(bad)", { XX } },
6689 { "(bad)", { XX } },
6690 { "(bad)", { XX } },
6692 { "(bad)", { XX } },
6693 { "(bad)", { XX } },
6694 { "(bad)", { XX } },
6695 { "(bad)", { XX } },
6696 { "(bad)", { XX } },
6697 { "(bad)", { XX } },
6698 { "(bad)", { XX } },
6699 { "(bad)", { XX } },
6701 { "(bad)", { XX } },
6702 { "(bad)", { XX } },
6703 { "(bad)", { XX } },
6704 { "(bad)", { XX } },
6705 { "(bad)", { XX } },
6706 { "(bad)", { XX } },
6707 { "(bad)", { XX } },
6708 { "(bad)", { XX } },
6710 { "(bad)", { XX } },
6711 { "(bad)", { XX } },
6712 { "(bad)", { XX } },
6713 { "(bad)", { XX } },
6714 { "(bad)", { XX } },
6715 { "(bad)", { XX } },
6716 { "(bad)", { XX } },
6717 { "(bad)", { XX } },
6719 { "(bad)", { XX } },
6720 { "(bad)", { XX } },
6721 { "(bad)", { XX } },
6722 { "(bad)", { XX } },
6723 { "(bad)", { XX } },
6724 { "(bad)", { XX } },
6725 { "(bad)", { XX } },
6726 { "(bad)", { XX } },
6728 { "(bad)", { XX } },
6729 { "(bad)", { XX } },
6730 { "(bad)", { XX } },
6731 { "(bad)", { XX } },
6732 { "(bad)", { XX } },
6733 { "(bad)", { XX } },
6734 { "(bad)", { XX } },
6735 { "(bad)", { XX } },
6737 { "(bad)", { XX } },
6738 { "(bad)", { XX } },
6739 { "(bad)", { XX } },
6740 { "(bad)", { XX } },
6741 { "(bad)", { XX } },
6742 { "(bad)", { XX } },
6743 { "(bad)", { XX } },
6744 { "(bad)", { XX } },
6746 { "(bad)", { XX } },
6747 { "(bad)", { XX } },
6748 { "(bad)", { XX } },
6749 { "(bad)", { XX } },
6750 { "(bad)", { XX } },
6751 { "(bad)", { XX } },
6752 { "(bad)", { XX } },
6753 { "(bad)", { XX } },
6755 { "(bad)", { XX } },
6756 { "(bad)", { XX } },
6757 { "(bad)", { XX } },
6758 { "(bad)", { XX } },
6759 { "(bad)", { XX } },
6760 { "(bad)", { XX } },
6761 { "(bad)", { XX } },
6762 { "(bad)", { XX } },
6764 { "(bad)", { XX } },
6765 { "(bad)", { XX } },
6766 { "(bad)", { XX } },
6767 { "(bad)", { XX } },
6768 { "(bad)", { XX } },
6769 { "(bad)", { XX } },
6770 { "(bad)", { XX } },
6771 { "(bad)", { XX } },
6773 { "(bad)", { XX } },
6774 { "(bad)", { XX } },
6775 { "(bad)", { XX } },
6776 { "(bad)", { XX } },
6777 { "(bad)", { XX } },
6778 { "(bad)", { XX } },
6779 { "(bad)", { XX } },
6780 { "(bad)", { XX } },
6782 { "(bad)", { XX } },
6783 { "(bad)", { XX } },
6784 { "(bad)", { XX } },
6785 { "(bad)", { XX } },
6786 { "(bad)", { XX } },
6787 { "(bad)", { XX } },
6788 { "(bad)", { XX } },
6789 { "(bad)", { XX } },
6791 { "(bad)", { XX } },
6792 { "(bad)", { XX } },
6793 { "(bad)", { XX } },
6794 { "(bad)", { XX } },
6795 { "(bad)", { XX } },
6796 { "(bad)", { XX } },
6797 { "(bad)", { XX } },
6798 { "(bad)", { XX } },
6800 { "(bad)", { XX } },
6801 { "(bad)", { XX } },
6802 { "(bad)", { XX } },
6803 { "(bad)", { XX } },
6804 { "(bad)", { XX } },
6805 { "(bad)", { XX } },
6806 { "(bad)", { XX } },
6807 { "(bad)", { XX } },
6809 { "(bad)", { XX } },
6810 { "(bad)", { XX } },
6811 { "(bad)", { XX } },
6812 { "(bad)", { XX } },
6813 { "(bad)", { XX } },
6814 { "(bad)", { XX } },
6815 { "(bad)", { XX } },
6816 { "(bad)", { XX } },
6818 { "(bad)", { XX } },
6819 { "(bad)", { XX } },
6820 { "(bad)", { XX } },
6821 { "(bad)", { XX } },
6822 { "(bad)", { XX } },
6823 { "(bad)", { XX } },
6824 { "(bad)", { XX } },
6825 { "(bad)", { XX } },
6827 { "(bad)", { XX } },
6828 { "(bad)", { XX } },
6829 { "(bad)", { XX } },
6830 { "(bad)", { XX } },
6831 { "(bad)", { XX } },
6832 { "(bad)", { XX } },
6833 { "(bad)", { XX } },
6834 { "(bad)", { XX } },
6836 { "(bad)", { XX } },
6837 { "(bad)", { XX } },
6838 { "(bad)", { XX } },
6839 { "(bad)", { XX } },
6840 { "(bad)", { XX } },
6841 { "(bad)", { XX } },
6842 { "(bad)", { XX } },
6843 { "(bad)", { XX } },
6845 { "(bad)", { XX } },
6846 { "(bad)", { XX } },
6847 { "(bad)", { XX } },
6848 { "(bad)", { XX } },
6849 { "(bad)", { XX } },
6850 { "(bad)", { XX } },
6851 { "(bad)", { XX } },
6852 { "(bad)", { XX } },
6854 { "(bad)", { XX } },
6855 { "(bad)", { XX } },
6856 { "(bad)", { XX } },
6857 { "(bad)", { XX } },
6858 { "(bad)", { XX } },
6859 { "(bad)", { XX } },
6860 { "(bad)", { XX } },
6861 { "(bad)", { XX } },
6863 { "(bad)", { XX } },
6864 { "(bad)", { XX } },
6865 { "(bad)", { XX } },
6866 { "(bad)", { XX } },
6867 { "(bad)", { XX } },
6868 { "(bad)", { XX } },
6869 { "(bad)", { XX } },
6870 { "(bad)", { XX } },
6874 static const struct dis386 vex_table[][256] = {
6878 { "(bad)", { XX } },
6879 { "(bad)", { XX } },
6880 { "(bad)", { XX } },
6881 { "(bad)", { XX } },
6882 { "(bad)", { XX } },
6883 { "(bad)", { XX } },
6884 { "(bad)", { XX } },
6885 { "(bad)", { XX } },
6887 { "(bad)", { XX } },
6888 { "(bad)", { XX } },
6889 { "(bad)", { XX } },
6890 { "(bad)", { XX } },
6891 { "(bad)", { XX } },
6892 { "(bad)", { XX } },
6893 { "(bad)", { XX } },
6894 { "(bad)", { XX } },
6896 { PREFIX_TABLE (PREFIX_VEX_10) },
6897 { PREFIX_TABLE (PREFIX_VEX_11) },
6898 { PREFIX_TABLE (PREFIX_VEX_12) },
6899 { MOD_TABLE (MOD_VEX_13) },
6900 { "vunpcklpX", { XM, Vex, EXx } },
6901 { "vunpckhpX", { XM, Vex, EXx } },
6902 { PREFIX_TABLE (PREFIX_VEX_16) },
6903 { MOD_TABLE (MOD_VEX_17) },
6905 { "(bad)", { XX } },
6906 { "(bad)", { XX } },
6907 { "(bad)", { XX } },
6908 { "(bad)", { XX } },
6909 { "(bad)", { XX } },
6910 { "(bad)", { XX } },
6911 { "(bad)", { XX } },
6912 { "(bad)", { XX } },
6914 { "(bad)", { XX } },
6915 { "(bad)", { XX } },
6916 { "(bad)", { XX } },
6917 { "(bad)", { XX } },
6918 { "(bad)", { XX } },
6919 { "(bad)", { XX } },
6920 { "(bad)", { XX } },
6921 { "(bad)", { XX } },
6923 { "vmovapX", { XM, EXx } },
6924 { "vmovapX", { EXx, XM } },
6925 { PREFIX_TABLE (PREFIX_VEX_2A) },
6926 { MOD_TABLE (MOD_VEX_2B) },
6927 { PREFIX_TABLE (PREFIX_VEX_2C) },
6928 { PREFIX_TABLE (PREFIX_VEX_2D) },
6929 { PREFIX_TABLE (PREFIX_VEX_2E) },
6930 { PREFIX_TABLE (PREFIX_VEX_2F) },
6932 { "(bad)", { XX } },
6933 { "(bad)", { XX } },
6934 { "(bad)", { XX } },
6935 { "(bad)", { XX } },
6936 { "(bad)", { XX } },
6937 { "(bad)", { XX } },
6938 { "(bad)", { XX } },
6939 { "(bad)", { XX } },
6941 { "(bad)", { XX } },
6942 { "(bad)", { XX } },
6943 { "(bad)", { XX } },
6944 { "(bad)", { XX } },
6945 { "(bad)", { XX } },
6946 { "(bad)", { XX } },
6947 { "(bad)", { XX } },
6948 { "(bad)", { XX } },
6950 { "(bad)", { XX } },
6951 { "(bad)", { XX } },
6952 { "(bad)", { XX } },
6953 { "(bad)", { XX } },
6954 { "(bad)", { XX } },
6955 { "(bad)", { XX } },
6956 { "(bad)", { XX } },
6957 { "(bad)", { XX } },
6959 { "(bad)", { XX } },
6960 { "(bad)", { XX } },
6961 { "(bad)", { XX } },
6962 { "(bad)", { XX } },
6963 { "(bad)", { XX } },
6964 { "(bad)", { XX } },
6965 { "(bad)", { XX } },
6966 { "(bad)", { XX } },
6968 { MOD_TABLE (MOD_VEX_51) },
6969 { PREFIX_TABLE (PREFIX_VEX_51) },
6970 { PREFIX_TABLE (PREFIX_VEX_52) },
6971 { PREFIX_TABLE (PREFIX_VEX_53) },
6972 { "vandpX", { XM, Vex, EXx } },
6973 { "vandnpX", { XM, Vex, EXx } },
6974 { "vorpX", { XM, Vex, EXx } },
6975 { "vxorpX", { XM, Vex, EXx } },
6977 { PREFIX_TABLE (PREFIX_VEX_58) },
6978 { PREFIX_TABLE (PREFIX_VEX_59) },
6979 { PREFIX_TABLE (PREFIX_VEX_5A) },
6980 { PREFIX_TABLE (PREFIX_VEX_5B) },
6981 { PREFIX_TABLE (PREFIX_VEX_5C) },
6982 { PREFIX_TABLE (PREFIX_VEX_5D) },
6983 { PREFIX_TABLE (PREFIX_VEX_5E) },
6984 { PREFIX_TABLE (PREFIX_VEX_5F) },
6986 { PREFIX_TABLE (PREFIX_VEX_60) },
6987 { PREFIX_TABLE (PREFIX_VEX_61) },
6988 { PREFIX_TABLE (PREFIX_VEX_62) },
6989 { PREFIX_TABLE (PREFIX_VEX_63) },
6990 { PREFIX_TABLE (PREFIX_VEX_64) },
6991 { PREFIX_TABLE (PREFIX_VEX_65) },
6992 { PREFIX_TABLE (PREFIX_VEX_66) },
6993 { PREFIX_TABLE (PREFIX_VEX_67) },
6995 { PREFIX_TABLE (PREFIX_VEX_68) },
6996 { PREFIX_TABLE (PREFIX_VEX_69) },
6997 { PREFIX_TABLE (PREFIX_VEX_6A) },
6998 { PREFIX_TABLE (PREFIX_VEX_6B) },
6999 { PREFIX_TABLE (PREFIX_VEX_6C) },
7000 { PREFIX_TABLE (PREFIX_VEX_6D) },
7001 { PREFIX_TABLE (PREFIX_VEX_6E) },
7002 { PREFIX_TABLE (PREFIX_VEX_6F) },
7004 { PREFIX_TABLE (PREFIX_VEX_70) },
7005 { REG_TABLE (REG_VEX_71) },
7006 { REG_TABLE (REG_VEX_72) },
7007 { REG_TABLE (REG_VEX_73) },
7008 { PREFIX_TABLE (PREFIX_VEX_74) },
7009 { PREFIX_TABLE (PREFIX_VEX_75) },
7010 { PREFIX_TABLE (PREFIX_VEX_76) },
7011 { PREFIX_TABLE (PREFIX_VEX_77) },
7013 { "(bad)", { XX } },
7014 { "(bad)", { XX } },
7015 { "(bad)", { XX } },
7016 { "(bad)", { XX } },
7017 { PREFIX_TABLE (PREFIX_VEX_7C) },
7018 { PREFIX_TABLE (PREFIX_VEX_7D) },
7019 { PREFIX_TABLE (PREFIX_VEX_7E) },
7020 { PREFIX_TABLE (PREFIX_VEX_7F) },
7022 { "(bad)", { XX } },
7023 { "(bad)", { XX } },
7024 { "(bad)", { XX } },
7025 { "(bad)", { XX } },
7026 { "(bad)", { XX } },
7027 { "(bad)", { XX } },
7028 { "(bad)", { XX } },
7029 { "(bad)", { XX } },
7031 { "(bad)", { XX } },
7032 { "(bad)", { XX } },
7033 { "(bad)", { XX } },
7034 { "(bad)", { XX } },
7035 { "(bad)", { XX } },
7036 { "(bad)", { XX } },
7037 { "(bad)", { XX } },
7038 { "(bad)", { XX } },
7040 { "(bad)", { XX } },
7041 { "(bad)", { XX } },
7042 { "(bad)", { XX } },
7043 { "(bad)", { XX } },
7044 { "(bad)", { XX } },
7045 { "(bad)", { XX } },
7046 { "(bad)", { XX } },
7047 { "(bad)", { XX } },
7049 { "(bad)", { XX } },
7050 { "(bad)", { XX } },
7051 { "(bad)", { XX } },
7052 { "(bad)", { XX } },
7053 { "(bad)", { XX } },
7054 { "(bad)", { XX } },
7055 { "(bad)", { XX } },
7056 { "(bad)", { XX } },
7058 { "(bad)", { XX } },
7059 { "(bad)", { XX } },
7060 { "(bad)", { XX } },
7061 { "(bad)", { XX } },
7062 { "(bad)", { XX } },
7063 { "(bad)", { XX } },
7064 { "(bad)", { XX } },
7065 { "(bad)", { XX } },
7067 { "(bad)", { XX } },
7068 { "(bad)", { XX } },
7069 { "(bad)", { XX } },
7070 { "(bad)", { XX } },
7071 { "(bad)", { XX } },
7072 { "(bad)", { XX } },
7073 { REG_TABLE (REG_VEX_AE) },
7074 { "(bad)", { XX } },
7076 { "(bad)", { XX } },
7077 { "(bad)", { XX } },
7078 { "(bad)", { XX } },
7079 { "(bad)", { XX } },
7080 { "(bad)", { XX } },
7081 { "(bad)", { XX } },
7082 { "(bad)", { XX } },
7083 { "(bad)", { XX } },
7085 { "(bad)", { XX } },
7086 { "(bad)", { XX } },
7087 { "(bad)", { XX } },
7088 { "(bad)", { XX } },
7089 { "(bad)", { XX } },
7090 { "(bad)", { XX } },
7091 { "(bad)", { XX } },
7092 { "(bad)", { XX } },
7094 { "(bad)", { XX } },
7095 { "(bad)", { XX } },
7096 { PREFIX_TABLE (PREFIX_VEX_C2) },
7097 { "(bad)", { XX } },
7098 { PREFIX_TABLE (PREFIX_VEX_C4) },
7099 { PREFIX_TABLE (PREFIX_VEX_C5) },
7100 { "vshufpX", { XM, Vex, EXx, Ib } },
7101 { "(bad)", { XX } },
7103 { "(bad)", { XX } },
7104 { "(bad)", { XX } },
7105 { "(bad)", { XX } },
7106 { "(bad)", { XX } },
7107 { "(bad)", { XX } },
7108 { "(bad)", { XX } },
7109 { "(bad)", { XX } },
7110 { "(bad)", { XX } },
7112 { PREFIX_TABLE (PREFIX_VEX_D0) },
7113 { PREFIX_TABLE (PREFIX_VEX_D1) },
7114 { PREFIX_TABLE (PREFIX_VEX_D2) },
7115 { PREFIX_TABLE (PREFIX_VEX_D3) },
7116 { PREFIX_TABLE (PREFIX_VEX_D4) },
7117 { PREFIX_TABLE (PREFIX_VEX_D5) },
7118 { PREFIX_TABLE (PREFIX_VEX_D6) },
7119 { PREFIX_TABLE (PREFIX_VEX_D7) },
7121 { PREFIX_TABLE (PREFIX_VEX_D8) },
7122 { PREFIX_TABLE (PREFIX_VEX_D9) },
7123 { PREFIX_TABLE (PREFIX_VEX_DA) },
7124 { PREFIX_TABLE (PREFIX_VEX_DB) },
7125 { PREFIX_TABLE (PREFIX_VEX_DC) },
7126 { PREFIX_TABLE (PREFIX_VEX_DD) },
7127 { PREFIX_TABLE (PREFIX_VEX_DE) },
7128 { PREFIX_TABLE (PREFIX_VEX_DF) },
7130 { PREFIX_TABLE (PREFIX_VEX_E0) },
7131 { PREFIX_TABLE (PREFIX_VEX_E1) },
7132 { PREFIX_TABLE (PREFIX_VEX_E2) },
7133 { PREFIX_TABLE (PREFIX_VEX_E3) },
7134 { PREFIX_TABLE (PREFIX_VEX_E4) },
7135 { PREFIX_TABLE (PREFIX_VEX_E5) },
7136 { PREFIX_TABLE (PREFIX_VEX_E6) },
7137 { PREFIX_TABLE (PREFIX_VEX_E7) },
7139 { PREFIX_TABLE (PREFIX_VEX_E8) },
7140 { PREFIX_TABLE (PREFIX_VEX_E9) },
7141 { PREFIX_TABLE (PREFIX_VEX_EA) },
7142 { PREFIX_TABLE (PREFIX_VEX_EB) },
7143 { PREFIX_TABLE (PREFIX_VEX_EC) },
7144 { PREFIX_TABLE (PREFIX_VEX_ED) },
7145 { PREFIX_TABLE (PREFIX_VEX_EE) },
7146 { PREFIX_TABLE (PREFIX_VEX_EF) },
7148 { PREFIX_TABLE (PREFIX_VEX_F0) },
7149 { PREFIX_TABLE (PREFIX_VEX_F1) },
7150 { PREFIX_TABLE (PREFIX_VEX_F2) },
7151 { PREFIX_TABLE (PREFIX_VEX_F3) },
7152 { PREFIX_TABLE (PREFIX_VEX_F4) },
7153 { PREFIX_TABLE (PREFIX_VEX_F5) },
7154 { PREFIX_TABLE (PREFIX_VEX_F6) },
7155 { PREFIX_TABLE (PREFIX_VEX_F7) },
7157 { PREFIX_TABLE (PREFIX_VEX_F8) },
7158 { PREFIX_TABLE (PREFIX_VEX_F9) },
7159 { PREFIX_TABLE (PREFIX_VEX_FA) },
7160 { PREFIX_TABLE (PREFIX_VEX_FB) },
7161 { PREFIX_TABLE (PREFIX_VEX_FC) },
7162 { PREFIX_TABLE (PREFIX_VEX_FD) },
7163 { PREFIX_TABLE (PREFIX_VEX_FE) },
7164 { "(bad)", { XX } },
7169 { PREFIX_TABLE (PREFIX_VEX_3800) },
7170 { PREFIX_TABLE (PREFIX_VEX_3801) },
7171 { PREFIX_TABLE (PREFIX_VEX_3802) },
7172 { PREFIX_TABLE (PREFIX_VEX_3803) },
7173 { PREFIX_TABLE (PREFIX_VEX_3804) },
7174 { PREFIX_TABLE (PREFIX_VEX_3805) },
7175 { PREFIX_TABLE (PREFIX_VEX_3806) },
7176 { PREFIX_TABLE (PREFIX_VEX_3807) },
7178 { PREFIX_TABLE (PREFIX_VEX_3808) },
7179 { PREFIX_TABLE (PREFIX_VEX_3809) },
7180 { PREFIX_TABLE (PREFIX_VEX_380A) },
7181 { PREFIX_TABLE (PREFIX_VEX_380B) },
7182 { PREFIX_TABLE (PREFIX_VEX_380C) },
7183 { PREFIX_TABLE (PREFIX_VEX_380D) },
7184 { PREFIX_TABLE (PREFIX_VEX_380E) },
7185 { PREFIX_TABLE (PREFIX_VEX_380F) },
7187 { "(bad)", { XX } },
7188 { "(bad)", { XX } },
7189 { "(bad)", { XX } },
7190 { "(bad)", { XX } },
7191 { "(bad)", { XX } },
7192 { "(bad)", { XX } },
7193 { "(bad)", { XX } },
7194 { PREFIX_TABLE (PREFIX_VEX_3817) },
7196 { PREFIX_TABLE (PREFIX_VEX_3818) },
7197 { PREFIX_TABLE (PREFIX_VEX_3819) },
7198 { PREFIX_TABLE (PREFIX_VEX_381A) },
7199 { "(bad)", { XX } },
7200 { PREFIX_TABLE (PREFIX_VEX_381C) },
7201 { PREFIX_TABLE (PREFIX_VEX_381D) },
7202 { PREFIX_TABLE (PREFIX_VEX_381E) },
7203 { "(bad)", { XX } },
7205 { PREFIX_TABLE (PREFIX_VEX_3820) },
7206 { PREFIX_TABLE (PREFIX_VEX_3821) },
7207 { PREFIX_TABLE (PREFIX_VEX_3822) },
7208 { PREFIX_TABLE (PREFIX_VEX_3823) },
7209 { PREFIX_TABLE (PREFIX_VEX_3824) },
7210 { PREFIX_TABLE (PREFIX_VEX_3825) },
7211 { "(bad)", { XX } },
7212 { "(bad)", { XX } },
7214 { PREFIX_TABLE (PREFIX_VEX_3828) },
7215 { PREFIX_TABLE (PREFIX_VEX_3829) },
7216 { PREFIX_TABLE (PREFIX_VEX_382A) },
7217 { PREFIX_TABLE (PREFIX_VEX_382B) },
7218 { PREFIX_TABLE (PREFIX_VEX_382C) },
7219 { PREFIX_TABLE (PREFIX_VEX_382D) },
7220 { PREFIX_TABLE (PREFIX_VEX_382E) },
7221 { PREFIX_TABLE (PREFIX_VEX_382F) },
7223 { PREFIX_TABLE (PREFIX_VEX_3830) },
7224 { PREFIX_TABLE (PREFIX_VEX_3831) },
7225 { PREFIX_TABLE (PREFIX_VEX_3832) },
7226 { PREFIX_TABLE (PREFIX_VEX_3833) },
7227 { PREFIX_TABLE (PREFIX_VEX_3834) },
7228 { PREFIX_TABLE (PREFIX_VEX_3835) },
7229 { "(bad)", { XX } },
7230 { PREFIX_TABLE (PREFIX_VEX_3837) },
7232 { PREFIX_TABLE (PREFIX_VEX_3838) },
7233 { PREFIX_TABLE (PREFIX_VEX_3839) },
7234 { PREFIX_TABLE (PREFIX_VEX_383A) },
7235 { PREFIX_TABLE (PREFIX_VEX_383B) },
7236 { PREFIX_TABLE (PREFIX_VEX_383C) },
7237 { PREFIX_TABLE (PREFIX_VEX_383D) },
7238 { PREFIX_TABLE (PREFIX_VEX_383E) },
7239 { PREFIX_TABLE (PREFIX_VEX_383F) },
7241 { PREFIX_TABLE (PREFIX_VEX_3840) },
7242 { PREFIX_TABLE (PREFIX_VEX_3841) },
7243 { "(bad)", { XX } },
7244 { "(bad)", { XX } },
7245 { "(bad)", { XX } },
7246 { "(bad)", { XX } },
7247 { "(bad)", { XX } },
7248 { "(bad)", { XX } },
7250 { "(bad)", { XX } },
7251 { "(bad)", { XX } },
7252 { "(bad)", { XX } },
7253 { "(bad)", { XX } },
7254 { "(bad)", { XX } },
7255 { "(bad)", { XX } },
7256 { "(bad)", { XX } },
7257 { "(bad)", { XX } },
7259 { "(bad)", { XX } },
7260 { "(bad)", { XX } },
7261 { "(bad)", { XX } },
7262 { "(bad)", { XX } },
7263 { "(bad)", { XX } },
7264 { "(bad)", { XX } },
7265 { "(bad)", { XX } },
7266 { "(bad)", { XX } },
7268 { "(bad)", { XX } },
7269 { "(bad)", { XX } },
7270 { "(bad)", { XX } },
7271 { "(bad)", { XX } },
7272 { "(bad)", { XX } },
7273 { "(bad)", { XX } },
7274 { "(bad)", { XX } },
7275 { "(bad)", { XX } },
7277 { "(bad)", { XX } },
7278 { "(bad)", { XX } },
7279 { "(bad)", { XX } },
7280 { "(bad)", { XX } },
7281 { "(bad)", { XX } },
7282 { "(bad)", { XX } },
7283 { "(bad)", { XX } },
7284 { "(bad)", { XX } },
7286 { "(bad)", { XX } },
7287 { "(bad)", { XX } },
7288 { "(bad)", { XX } },
7289 { "(bad)", { XX } },
7290 { "(bad)", { XX } },
7291 { "(bad)", { XX } },
7292 { "(bad)", { XX } },
7293 { "(bad)", { XX } },
7295 { "(bad)", { XX } },
7296 { "(bad)", { XX } },
7297 { "(bad)", { XX } },
7298 { "(bad)", { XX } },
7299 { "(bad)", { XX } },
7300 { "(bad)", { XX } },
7301 { "(bad)", { XX } },
7302 { "(bad)", { XX } },
7304 { "(bad)", { XX } },
7305 { "(bad)", { XX } },
7306 { "(bad)", { XX } },
7307 { "(bad)", { XX } },
7308 { "(bad)", { XX } },
7309 { "(bad)", { XX } },
7310 { "(bad)", { XX } },
7311 { "(bad)", { XX } },
7313 { "(bad)", { XX } },
7314 { "(bad)", { XX } },
7315 { "(bad)", { XX } },
7316 { "(bad)", { XX } },
7317 { "(bad)", { XX } },
7318 { "(bad)", { XX } },
7319 { "(bad)", { XX } },
7320 { "(bad)", { XX } },
7322 { "(bad)", { XX } },
7323 { "(bad)", { XX } },
7324 { "(bad)", { XX } },
7325 { "(bad)", { XX } },
7326 { "(bad)", { XX } },
7327 { "(bad)", { XX } },
7328 { "(bad)", { XX } },
7329 { "(bad)", { XX } },
7331 { "(bad)", { XX } },
7332 { "(bad)", { XX } },
7333 { "(bad)", { XX } },
7334 { "(bad)", { XX } },
7335 { "(bad)", { XX } },
7336 { "(bad)", { XX } },
7337 { "(bad)", { XX } },
7338 { "(bad)", { XX } },
7340 { "(bad)", { XX } },
7341 { "(bad)", { XX } },
7342 { "(bad)", { XX } },
7343 { "(bad)", { XX } },
7344 { "(bad)", { XX } },
7345 { "(bad)", { XX } },
7346 { "(bad)", { XX } },
7347 { "(bad)", { XX } },
7349 { "(bad)", { XX } },
7350 { "(bad)", { XX } },
7351 { "(bad)", { XX } },
7352 { "(bad)", { XX } },
7353 { "(bad)", { XX } },
7354 { "(bad)", { XX } },
7355 { "(bad)", { XX } },
7356 { "(bad)", { XX } },
7358 { "(bad)", { XX } },
7359 { "(bad)", { XX } },
7360 { "(bad)", { XX } },
7361 { "(bad)", { XX } },
7362 { "(bad)", { XX } },
7363 { "(bad)", { XX } },
7364 { "(bad)", { XX } },
7365 { "(bad)", { XX } },
7367 { "(bad)", { XX } },
7368 { "(bad)", { XX } },
7369 { "(bad)", { XX } },
7370 { "(bad)", { XX } },
7371 { "(bad)", { XX } },
7372 { "(bad)", { XX } },
7373 { "(bad)", { XX } },
7374 { "(bad)", { XX } },
7376 { "(bad)", { XX } },
7377 { "(bad)", { XX } },
7378 { "(bad)", { XX } },
7379 { "(bad)", { XX } },
7380 { "(bad)", { XX } },
7381 { "(bad)", { XX } },
7382 { "(bad)", { XX } },
7383 { "(bad)", { XX } },
7385 { "(bad)", { XX } },
7386 { "(bad)", { XX } },
7387 { "(bad)", { XX } },
7388 { "(bad)", { XX } },
7389 { "(bad)", { XX } },
7390 { "(bad)", { XX } },
7391 { "(bad)", { XX } },
7392 { "(bad)", { XX } },
7394 { "(bad)", { XX } },
7395 { "(bad)", { XX } },
7396 { "(bad)", { XX } },
7397 { "(bad)", { XX } },
7398 { "(bad)", { XX } },
7399 { "(bad)", { XX } },
7400 { "(bad)", { XX } },
7401 { "(bad)", { XX } },
7403 { "(bad)", { XX } },
7404 { "(bad)", { XX } },
7405 { "(bad)", { XX } },
7406 { "(bad)", { XX } },
7407 { "(bad)", { XX } },
7408 { "(bad)", { XX } },
7409 { "(bad)", { XX } },
7410 { "(bad)", { XX } },
7412 { "(bad)", { XX } },
7413 { "(bad)", { XX } },
7414 { "(bad)", { XX } },
7415 { "(bad)", { XX } },
7416 { "(bad)", { XX } },
7417 { "(bad)", { XX } },
7418 { "(bad)", { XX } },
7419 { "(bad)", { XX } },
7421 { "(bad)", { XX } },
7422 { "(bad)", { XX } },
7423 { "(bad)", { XX } },
7424 { "(bad)", { XX } },
7425 { "(bad)", { XX } },
7426 { "(bad)", { XX } },
7427 { "(bad)", { XX } },
7428 { "(bad)", { XX } },
7430 { "(bad)", { XX } },
7431 { "(bad)", { XX } },
7432 { "(bad)", { XX } },
7433 { "(bad)", { XX } },
7434 { "(bad)", { XX } },
7435 { "(bad)", { XX } },
7436 { "(bad)", { XX } },
7437 { "(bad)", { XX } },
7439 { "(bad)", { XX } },
7440 { "(bad)", { XX } },
7441 { "(bad)", { XX } },
7442 { "(bad)", { XX } },
7443 { "(bad)", { XX } },
7444 { "(bad)", { XX } },
7445 { "(bad)", { XX } },
7446 { "(bad)", { XX } },
7448 { "(bad)", { XX } },
7449 { "(bad)", { XX } },
7450 { "(bad)", { XX } },
7451 { "(bad)", { XX } },
7452 { "(bad)", { XX } },
7453 { "(bad)", { XX } },
7454 { "(bad)", { XX } },
7455 { "(bad)", { XX } },
7460 { "(bad)", { XX } },
7461 { "(bad)", { XX } },
7462 { "(bad)", { XX } },
7463 { "(bad)", { XX } },
7464 { PREFIX_TABLE (PREFIX_VEX_3A04) },
7465 { PREFIX_TABLE (PREFIX_VEX_3A05) },
7466 { PREFIX_TABLE (PREFIX_VEX_3A06) },
7467 { "(bad)", { XX } },
7469 { PREFIX_TABLE (PREFIX_VEX_3A08) },
7470 { PREFIX_TABLE (PREFIX_VEX_3A09) },
7471 { PREFIX_TABLE (PREFIX_VEX_3A0A) },
7472 { PREFIX_TABLE (PREFIX_VEX_3A0B) },
7473 { PREFIX_TABLE (PREFIX_VEX_3A0C) },
7474 { PREFIX_TABLE (PREFIX_VEX_3A0D) },
7475 { PREFIX_TABLE (PREFIX_VEX_3A0E) },
7476 { PREFIX_TABLE (PREFIX_VEX_3A0F) },
7478 { "(bad)", { XX } },
7479 { "(bad)", { XX } },
7480 { "(bad)", { XX } },
7481 { "(bad)", { XX } },
7482 { PREFIX_TABLE (PREFIX_VEX_3A14) },
7483 { PREFIX_TABLE (PREFIX_VEX_3A15) },
7484 { PREFIX_TABLE (PREFIX_VEX_3A16) },
7485 { PREFIX_TABLE (PREFIX_VEX_3A17) },
7487 { PREFIX_TABLE (PREFIX_VEX_3A18) },
7488 { PREFIX_TABLE (PREFIX_VEX_3A19) },
7489 { "(bad)", { XX } },
7490 { "(bad)", { XX } },
7491 { "(bad)", { XX } },
7492 { "(bad)", { XX } },
7493 { "(bad)", { XX } },
7494 { "(bad)", { XX } },
7496 { PREFIX_TABLE (PREFIX_VEX_3A20) },
7497 { PREFIX_TABLE (PREFIX_VEX_3A21) },
7498 { PREFIX_TABLE (PREFIX_VEX_3A22) },
7499 { "(bad)", { XX } },
7500 { "(bad)", { XX } },
7501 { "(bad)", { XX } },
7502 { "(bad)", { XX } },
7503 { "(bad)", { XX } },
7505 { "(bad)", { XX } },
7506 { "(bad)", { XX } },
7507 { "(bad)", { XX } },
7508 { "(bad)", { XX } },
7509 { "(bad)", { XX } },
7510 { "(bad)", { XX } },
7511 { "(bad)", { XX } },
7512 { "(bad)", { XX } },
7514 { "(bad)", { XX } },
7515 { "(bad)", { XX } },
7516 { "(bad)", { XX } },
7517 { "(bad)", { XX } },
7518 { "(bad)", { XX } },
7519 { "(bad)", { XX } },
7520 { "(bad)", { XX } },
7521 { "(bad)", { XX } },
7523 { "(bad)", { XX } },
7524 { "(bad)", { XX } },
7525 { "(bad)", { XX } },
7526 { "(bad)", { XX } },
7527 { "(bad)", { XX } },
7528 { "(bad)", { XX } },
7529 { "(bad)", { XX } },
7530 { "(bad)", { XX } },
7532 { PREFIX_TABLE (PREFIX_VEX_3A40) },
7533 { PREFIX_TABLE (PREFIX_VEX_3A41) },
7534 { PREFIX_TABLE (PREFIX_VEX_3A42) },
7535 { "(bad)", { XX } },
7536 { "(bad)", { XX } },
7537 { "(bad)", { XX } },
7538 { "(bad)", { XX } },
7539 { "(bad)", { XX } },
7541 { PREFIX_TABLE (PREFIX_VEX_3A48) },
7542 { PREFIX_TABLE (PREFIX_VEX_3A49) },
7543 { PREFIX_TABLE (PREFIX_VEX_3A4A) },
7544 { PREFIX_TABLE (PREFIX_VEX_3A4B) },
7545 { PREFIX_TABLE (PREFIX_VEX_3A4C) },
7546 { "(bad)", { XX } },
7547 { "(bad)", { XX } },
7548 { "(bad)", { XX } },
7550 { "(bad)", { XX } },
7551 { "(bad)", { XX } },
7552 { "(bad)", { XX } },
7553 { "(bad)", { XX } },
7554 { "(bad)", { XX } },
7555 { "(bad)", { XX } },
7556 { "(bad)", { XX } },
7557 { "(bad)", { XX } },
7559 { "(bad)", { XX } },
7560 { "(bad)", { XX } },
7561 { "(bad)", { XX } },
7562 { "(bad)", { XX } },
7563 { PREFIX_TABLE (PREFIX_VEX_3A5C) },
7564 { PREFIX_TABLE (PREFIX_VEX_3A5D) },
7565 { PREFIX_TABLE (PREFIX_VEX_3A5E) },
7566 { PREFIX_TABLE (PREFIX_VEX_3A5F) },
7568 { PREFIX_TABLE (PREFIX_VEX_3A60) },
7569 { PREFIX_TABLE (PREFIX_VEX_3A61) },
7570 { PREFIX_TABLE (PREFIX_VEX_3A62) },
7571 { PREFIX_TABLE (PREFIX_VEX_3A63) },
7572 { "(bad)", { XX } },
7573 { "(bad)", { XX } },
7574 { "(bad)", { XX } },
7575 { "(bad)", { XX } },
7577 { PREFIX_TABLE (PREFIX_VEX_3A68) },
7578 { PREFIX_TABLE (PREFIX_VEX_3A69) },
7579 { PREFIX_TABLE (PREFIX_VEX_3A6A) },
7580 { PREFIX_TABLE (PREFIX_VEX_3A6B) },
7581 { PREFIX_TABLE (PREFIX_VEX_3A6C) },
7582 { PREFIX_TABLE (PREFIX_VEX_3A6D) },
7583 { PREFIX_TABLE (PREFIX_VEX_3A6E) },
7584 { PREFIX_TABLE (PREFIX_VEX_3A6F) },
7586 { "(bad)", { XX } },
7587 { "(bad)", { XX } },
7588 { "(bad)", { XX } },
7589 { "(bad)", { XX } },
7590 { "(bad)", { XX } },
7591 { "(bad)", { XX } },
7592 { "(bad)", { XX } },
7593 { "(bad)", { XX } },
7595 { PREFIX_TABLE (PREFIX_VEX_3A78) },
7596 { PREFIX_TABLE (PREFIX_VEX_3A79) },
7597 { PREFIX_TABLE (PREFIX_VEX_3A7A) },
7598 { PREFIX_TABLE (PREFIX_VEX_3A7B) },
7599 { PREFIX_TABLE (PREFIX_VEX_3A7C) },
7600 { PREFIX_TABLE (PREFIX_VEX_3A7D) },
7601 { PREFIX_TABLE (PREFIX_VEX_3A7E) },
7602 { PREFIX_TABLE (PREFIX_VEX_3A7F) },
7604 { "(bad)", { XX } },
7605 { "(bad)", { XX } },
7606 { "(bad)", { XX } },
7607 { "(bad)", { XX } },
7608 { "(bad)", { XX } },
7609 { "(bad)", { XX } },
7610 { "(bad)", { XX } },
7611 { "(bad)", { XX } },
7613 { "(bad)", { XX } },
7614 { "(bad)", { XX } },
7615 { "(bad)", { XX } },
7616 { "(bad)", { XX } },
7617 { "(bad)", { XX } },
7618 { "(bad)", { XX } },
7619 { "(bad)", { XX } },
7620 { "(bad)", { XX } },
7622 { "(bad)", { XX } },
7623 { "(bad)", { XX } },
7624 { "(bad)", { XX } },
7625 { "(bad)", { XX } },
7626 { "(bad)", { XX } },
7627 { "(bad)", { XX } },
7628 { "(bad)", { XX } },
7629 { "(bad)", { XX } },
7631 { "(bad)", { XX } },
7632 { "(bad)", { XX } },
7633 { "(bad)", { XX } },
7634 { "(bad)", { XX } },
7635 { "(bad)", { XX } },
7636 { "(bad)", { XX } },
7637 { "(bad)", { XX } },
7638 { "(bad)", { XX } },
7640 { "(bad)", { XX } },
7641 { "(bad)", { XX } },
7642 { "(bad)", { XX } },
7643 { "(bad)", { XX } },
7644 { "(bad)", { XX } },
7645 { "(bad)", { XX } },
7646 { "(bad)", { XX } },
7647 { "(bad)", { XX } },
7649 { "(bad)", { XX } },
7650 { "(bad)", { XX } },
7651 { "(bad)", { XX } },
7652 { "(bad)", { XX } },
7653 { "(bad)", { XX } },
7654 { "(bad)", { XX } },
7655 { "(bad)", { XX } },
7656 { "(bad)", { XX } },
7658 { "(bad)", { XX } },
7659 { "(bad)", { XX } },
7660 { "(bad)", { XX } },
7661 { "(bad)", { XX } },
7662 { "(bad)", { XX } },
7663 { "(bad)", { XX } },
7664 { "(bad)", { XX } },
7665 { "(bad)", { XX } },
7667 { "(bad)", { XX } },
7668 { "(bad)", { XX } },
7669 { "(bad)", { XX } },
7670 { "(bad)", { XX } },
7671 { "(bad)", { XX } },
7672 { "(bad)", { XX } },
7673 { "(bad)", { XX } },
7674 { "(bad)", { XX } },
7676 { "(bad)", { XX } },
7677 { "(bad)", { XX } },
7678 { "(bad)", { XX } },
7679 { "(bad)", { XX } },
7680 { "(bad)", { XX } },
7681 { "(bad)", { XX } },
7682 { "(bad)", { XX } },
7683 { "(bad)", { XX } },
7685 { "(bad)", { XX } },
7686 { "(bad)", { XX } },
7687 { "(bad)", { XX } },
7688 { "(bad)", { XX } },
7689 { "(bad)", { XX } },
7690 { "(bad)", { XX } },
7691 { "(bad)", { XX } },
7692 { "(bad)", { XX } },
7694 { "(bad)", { XX } },
7695 { "(bad)", { XX } },
7696 { "(bad)", { XX } },
7697 { "(bad)", { XX } },
7698 { "(bad)", { XX } },
7699 { "(bad)", { XX } },
7700 { "(bad)", { XX } },
7701 { "(bad)", { XX } },
7703 { "(bad)", { XX } },
7704 { "(bad)", { XX } },
7705 { "(bad)", { XX } },
7706 { "(bad)", { XX } },
7707 { "(bad)", { XX } },
7708 { "(bad)", { XX } },
7709 { "(bad)", { XX } },
7710 { "(bad)", { XX } },
7712 { "(bad)", { XX } },
7713 { "(bad)", { XX } },
7714 { "(bad)", { XX } },
7715 { "(bad)", { XX } },
7716 { "(bad)", { XX } },
7717 { "(bad)", { XX } },
7718 { "(bad)", { XX } },
7719 { "(bad)", { XX } },
7721 { "(bad)", { XX } },
7722 { "(bad)", { XX } },
7723 { "(bad)", { XX } },
7724 { "(bad)", { XX } },
7725 { "(bad)", { XX } },
7726 { "(bad)", { XX } },
7727 { "(bad)", { XX } },
7728 { "(bad)", { XX } },
7730 { "(bad)", { XX } },
7731 { "(bad)", { XX } },
7732 { "(bad)", { XX } },
7733 { "(bad)", { XX } },
7734 { "(bad)", { XX } },
7735 { "(bad)", { XX } },
7736 { "(bad)", { XX } },
7737 { "(bad)", { XX } },
7739 { "(bad)", { XX } },
7740 { "(bad)", { XX } },
7741 { "(bad)", { XX } },
7742 { "(bad)", { XX } },
7743 { "(bad)", { XX } },
7744 { "(bad)", { XX } },
7745 { "(bad)", { XX } },
7746 { "(bad)", { XX } },
7750 static const struct dis386 vex_len_table[][2] = {
7751 /* VEX_LEN_10_P_1 */
7753 { "vmovss", { XMVex, Vex128, EXd } },
7754 { "(bad)", { XX } },
7757 /* VEX_LEN_10_P_3 */
7759 { "vmovsd", { XMVex, Vex128, EXq } },
7760 { "(bad)", { XX } },
7763 /* VEX_LEN_11_P_1 */
7765 { "vmovss", { EXdVex, Vex128, XM } },
7766 { "(bad)", { XX } },
7769 /* VEX_LEN_11_P_3 */
7771 { "vmovsd", { EXqVex, Vex128, XM } },
7772 { "(bad)", { XX } },
7775 /* VEX_LEN_12_P_0_M_0 */
7777 { "vmovlps", { XM, Vex128, EXq } },
7778 { "(bad)", { XX } },
7781 /* VEX_LEN_12_P_0_M_1 */
7783 { "vmovhlps", { XM, Vex128, EXq } },
7784 { "(bad)", { XX } },
7787 /* VEX_LEN_12_P_2 */
7789 { "vmovlpd", { XM, Vex128, EXq } },
7790 { "(bad)", { XX } },
7793 /* VEX_LEN_13_M_0 */
7795 { "vmovlpX", { EXq, XM } },
7796 { "(bad)", { XX } },
7799 /* VEX_LEN_16_P_0_M_0 */
7801 { "vmovhps", { XM, Vex128, EXq } },
7802 { "(bad)", { XX } },
7805 /* VEX_LEN_16_P_0_M_1 */
7807 { "vmovlhps", { XM, Vex128, EXq } },
7808 { "(bad)", { XX } },
7811 /* VEX_LEN_16_P_2 */
7813 { "vmovhpd", { XM, Vex128, EXq } },
7814 { "(bad)", { XX } },
7817 /* VEX_LEN_17_M_0 */
7819 { "vmovhpX", { EXq, XM } },
7820 { "(bad)", { XX } },
7823 /* VEX_LEN_2A_P_1 */
7825 { "vcvtsi2ss%LQ", { XM, Vex128, Ev } },
7826 { "(bad)", { XX } },
7829 /* VEX_LEN_2A_P_3 */
7831 { "vcvtsi2sd%LQ", { XM, Vex128, Ev } },
7832 { "(bad)", { XX } },
7835 /* VEX_LEN_2B_M_0 */
7837 { "vmovntpX", { Mx, XM } },
7838 { "(bad)", { XX } },
7841 /* VEX_LEN_2C_P_1 */
7843 { "vcvttss2siY", { Gv, EXd } },
7844 { "(bad)", { XX } },
7847 /* VEX_LEN_2C_P_3 */
7849 { "vcvttsd2siY", { Gv, EXq } },
7850 { "(bad)", { XX } },
7853 /* VEX_LEN_2D_P_1 */
7855 { "vcvtss2siY", { Gv, EXd } },
7856 { "(bad)", { XX } },
7859 /* VEX_LEN_2D_P_3 */
7861 { "vcvtsd2siY", { Gv, EXq } },
7862 { "(bad)", { XX } },
7865 /* VEX_LEN_2E_P_0 */
7867 { "vucomiss", { XM, EXd } },
7868 { "(bad)", { XX } },
7871 /* VEX_LEN_2E_P_2 */
7873 { "vucomisd", { XM, EXq } },
7874 { "(bad)", { XX } },
7877 /* VEX_LEN_2F_P_0 */
7879 { "vcomiss", { XM, EXd } },
7880 { "(bad)", { XX } },
7883 /* VEX_LEN_2F_P_2 */
7885 { "vcomisd", { XM, EXq } },
7886 { "(bad)", { XX } },
7889 /* VEX_LEN_51_P_1 */
7891 { "vsqrtss", { XM, Vex128, EXd } },
7892 { "(bad)", { XX } },
7895 /* VEX_LEN_51_P_3 */
7897 { "vsqrtsd", { XM, Vex128, EXq } },
7898 { "(bad)", { XX } },
7901 /* VEX_LEN_52_P_1 */
7903 { "vrsqrtss", { XM, Vex128, EXd } },
7904 { "(bad)", { XX } },
7907 /* VEX_LEN_53_P_1 */
7909 { "vrcpss", { XM, Vex128, EXd } },
7910 { "(bad)", { XX } },
7913 /* VEX_LEN_58_P_1 */
7915 { "vaddss", { XM, Vex128, EXd } },
7916 { "(bad)", { XX } },
7919 /* VEX_LEN_58_P_3 */
7921 { "vaddsd", { XM, Vex128, EXq } },
7922 { "(bad)", { XX } },
7925 /* VEX_LEN_59_P_1 */
7927 { "vmulss", { XM, Vex128, EXd } },
7928 { "(bad)", { XX } },
7931 /* VEX_LEN_59_P_3 */
7933 { "vmulsd", { XM, Vex128, EXq } },
7934 { "(bad)", { XX } },
7937 /* VEX_LEN_5A_P_1 */
7939 { "vcvtss2sd", { XM, Vex128, EXd } },
7940 { "(bad)", { XX } },
7943 /* VEX_LEN_5A_P_3 */
7945 { "vcvtsd2ss", { XM, Vex128, EXq } },
7946 { "(bad)", { XX } },
7949 /* VEX_LEN_5C_P_1 */
7951 { "vsubss", { XM, Vex128, EXd } },
7952 { "(bad)", { XX } },
7955 /* VEX_LEN_5C_P_3 */
7957 { "vsubsd", { XM, Vex128, EXq } },
7958 { "(bad)", { XX } },
7961 /* VEX_LEN_5D_P_1 */
7963 { "vminss", { XM, Vex128, EXd } },
7964 { "(bad)", { XX } },
7967 /* VEX_LEN_5D_P_3 */
7969 { "vminsd", { XM, Vex128, EXq } },
7970 { "(bad)", { XX } },
7973 /* VEX_LEN_5E_P_1 */
7975 { "vdivss", { XM, Vex128, EXd } },
7976 { "(bad)", { XX } },
7979 /* VEX_LEN_5E_P_3 */
7981 { "vdivsd", { XM, Vex128, EXq } },
7982 { "(bad)", { XX } },
7985 /* VEX_LEN_5F_P_1 */
7987 { "vmaxss", { XM, Vex128, EXd } },
7988 { "(bad)", { XX } },
7991 /* VEX_LEN_5F_P_3 */
7993 { "vmaxsd", { XM, Vex128, EXq } },
7994 { "(bad)", { XX } },
7997 /* VEX_LEN_60_P_2 */
7999 { "vpunpcklbw", { XM, Vex128, EXx } },
8000 { "(bad)", { XX } },
8003 /* VEX_LEN_61_P_2 */
8005 { "vpunpcklwd", { XM, Vex128, EXx } },
8006 { "(bad)", { XX } },
8009 /* VEX_LEN_62_P_2 */
8011 { "vpunpckldq", { XM, Vex128, EXx } },
8012 { "(bad)", { XX } },
8015 /* VEX_LEN_63_P_2 */
8017 { "vpacksswb", { XM, Vex128, EXx } },
8018 { "(bad)", { XX } },
8021 /* VEX_LEN_64_P_2 */
8023 { "vpcmpgtb", { XM, Vex128, EXx } },
8024 { "(bad)", { XX } },
8027 /* VEX_LEN_65_P_2 */
8029 { "vpcmpgtw", { XM, Vex128, EXx } },
8030 { "(bad)", { XX } },
8033 /* VEX_LEN_66_P_2 */
8035 { "vpcmpgtd", { XM, Vex128, EXx } },
8036 { "(bad)", { XX } },
8039 /* VEX_LEN_67_P_2 */
8041 { "vpackuswb", { XM, Vex128, EXx } },
8042 { "(bad)", { XX } },
8045 /* VEX_LEN_68_P_2 */
8047 { "vpunpckhbw", { XM, Vex128, EXx } },
8048 { "(bad)", { XX } },
8051 /* VEX_LEN_69_P_2 */
8053 { "vpunpckhwd", { XM, Vex128, EXx } },
8054 { "(bad)", { XX } },
8057 /* VEX_LEN_6A_P_2 */
8059 { "vpunpckhdq", { XM, Vex128, EXx } },
8060 { "(bad)", { XX } },
8063 /* VEX_LEN_6B_P_2 */
8065 { "vpackssdw", { XM, Vex128, EXx } },
8066 { "(bad)", { XX } },
8069 /* VEX_LEN_6C_P_2 */
8071 { "vpunpcklqdq", { XM, Vex128, EXx } },
8072 { "(bad)", { XX } },
8075 /* VEX_LEN_6D_P_2 */
8077 { "vpunpckhqdq", { XM, Vex128, EXx } },
8078 { "(bad)", { XX } },
8081 /* VEX_LEN_6E_P_2 */
8083 { "vmovK", { XM, Edq } },
8084 { "(bad)", { XX } },
8087 /* VEX_LEN_70_P_1 */
8089 { "vpshufhw", { XM, EXx, Ib } },
8090 { "(bad)", { XX } },
8093 /* VEX_LEN_70_P_2 */
8095 { "vpshufd", { XM, EXx, Ib } },
8096 { "(bad)", { XX } },
8099 /* VEX_LEN_70_P_3 */
8101 { "vpshuflw", { XM, EXx, Ib } },
8102 { "(bad)", { XX } },
8105 /* VEX_LEN_71_R_2_P_2 */
8107 { "vpsrlw", { Vex128, XS, Ib } },
8108 { "(bad)", { XX } },
8111 /* VEX_LEN_71_R_4_P_2 */
8113 { "vpsraw", { Vex128, XS, Ib } },
8114 { "(bad)", { XX } },
8117 /* VEX_LEN_71_R_6_P_2 */
8119 { "vpsllw", { Vex128, XS, Ib } },
8120 { "(bad)", { XX } },
8123 /* VEX_LEN_72_R_2_P_2 */
8125 { "vpsrld", { Vex128, XS, Ib } },
8126 { "(bad)", { XX } },
8129 /* VEX_LEN_72_R_4_P_2 */
8131 { "vpsrad", { Vex128, XS, Ib } },
8132 { "(bad)", { XX } },
8135 /* VEX_LEN_72_R_6_P_2 */
8137 { "vpslld", { Vex128, XS, Ib } },
8138 { "(bad)", { XX } },
8141 /* VEX_LEN_73_R_2_P_2 */
8143 { "vpsrlq", { Vex128, XS, Ib } },
8144 { "(bad)", { XX } },
8147 /* VEX_LEN_73_R_3_P_2 */
8149 { "vpsrldq", { Vex128, XS, Ib } },
8150 { "(bad)", { XX } },
8153 /* VEX_LEN_73_R_6_P_2 */
8155 { "vpsllq", { Vex128, XS, Ib } },
8156 { "(bad)", { XX } },
8159 /* VEX_LEN_73_R_7_P_2 */
8161 { "vpslldq", { Vex128, XS, Ib } },
8162 { "(bad)", { XX } },
8165 /* VEX_LEN_74_P_2 */
8167 { "vpcmpeqb", { XM, Vex128, EXx } },
8168 { "(bad)", { XX } },
8171 /* VEX_LEN_75_P_2 */
8173 { "vpcmpeqw", { XM, Vex128, EXx } },
8174 { "(bad)", { XX } },
8177 /* VEX_LEN_76_P_2 */
8179 { "vpcmpeqd", { XM, Vex128, EXx } },
8180 { "(bad)", { XX } },
8183 /* VEX_LEN_7E_P_1 */
8185 { "vmovq", { XM, EXq } },
8186 { "(bad)", { XX } },
8189 /* VEX_LEN_7E_P_2 */
8191 { "vmovK", { Edq, XM } },
8192 { "(bad)", { XX } },
8195 /* VEX_LEN_AE_R_2_M0 */
8197 { "vldmxcsr", { Md } },
8198 { "(bad)", { XX } },
8201 /* VEX_LEN_AE_R_3_M0 */
8203 { "vstmxcsr", { Md } },
8204 { "(bad)", { XX } },
8207 /* VEX_LEN_C2_P_1 */
8209 { "vcmpss", { XM, Vex128, EXd, VCMP } },
8210 { "(bad)", { XX } },
8213 /* VEX_LEN_C2_P_3 */
8215 { "vcmpsd", { XM, Vex128, EXq, VCMP } },
8216 { "(bad)", { XX } },
8219 /* VEX_LEN_C4_P_2 */
8221 { "vpinsrw", { XM, Vex128, Edqw, Ib } },
8222 { "(bad)", { XX } },
8225 /* VEX_LEN_C5_P_2 */
8227 { "vpextrw", { Gdq, XS, Ib } },
8228 { "(bad)", { XX } },
8231 /* VEX_LEN_D1_P_2 */
8233 { "vpsrlw", { XM, Vex128, EXx } },
8234 { "(bad)", { XX } },
8237 /* VEX_LEN_D2_P_2 */
8239 { "vpsrld", { XM, Vex128, EXx } },
8240 { "(bad)", { XX } },
8243 /* VEX_LEN_D3_P_2 */
8245 { "vpsrlq", { XM, Vex128, EXx } },
8246 { "(bad)", { XX } },
8249 /* VEX_LEN_D4_P_2 */
8251 { "vpaddq", { XM, Vex128, EXx } },
8252 { "(bad)", { XX } },
8255 /* VEX_LEN_D5_P_2 */
8257 { "vpmullw", { XM, Vex128, EXx } },
8258 { "(bad)", { XX } },
8261 /* VEX_LEN_D6_P_2 */
8263 { "vmovq", { EXq, XM } },
8264 { "(bad)", { XX } },
8267 /* VEX_LEN_D7_P_2_M_1 */
8269 { "vpmovmskb", { Gdq, XS } },
8270 { "(bad)", { XX } },
8273 /* VEX_LEN_D8_P_2 */
8275 { "vpsubusb", { XM, Vex128, EXx } },
8276 { "(bad)", { XX } },
8279 /* VEX_LEN_D9_P_2 */
8281 { "vpsubusw", { XM, Vex128, EXx } },
8282 { "(bad)", { XX } },
8285 /* VEX_LEN_DA_P_2 */
8287 { "vpminub", { XM, Vex128, EXx } },
8288 { "(bad)", { XX } },
8291 /* VEX_LEN_DB_P_2 */
8293 { "vpand", { XM, Vex128, EXx } },
8294 { "(bad)", { XX } },
8297 /* VEX_LEN_DC_P_2 */
8299 { "vpaddusb", { XM, Vex128, EXx } },
8300 { "(bad)", { XX } },
8303 /* VEX_LEN_DD_P_2 */
8305 { "vpaddusw", { XM, Vex128, EXx } },
8306 { "(bad)", { XX } },
8309 /* VEX_LEN_DE_P_2 */
8311 { "vpmaxub", { XM, Vex128, EXx } },
8312 { "(bad)", { XX } },
8315 /* VEX_LEN_DF_P_2 */
8317 { "vpandn", { XM, Vex128, EXx } },
8318 { "(bad)", { XX } },
8321 /* VEX_LEN_E0_P_2 */
8323 { "vpavgb", { XM, Vex128, EXx } },
8324 { "(bad)", { XX } },
8327 /* VEX_LEN_E1_P_2 */
8329 { "vpsraw", { XM, Vex128, EXx } },
8330 { "(bad)", { XX } },
8333 /* VEX_LEN_E2_P_2 */
8335 { "vpsrad", { XM, Vex128, EXx } },
8336 { "(bad)", { XX } },
8339 /* VEX_LEN_E3_P_2 */
8341 { "vpavgw", { XM, Vex128, EXx } },
8342 { "(bad)", { XX } },
8345 /* VEX_LEN_E4_P_2 */
8347 { "vpmulhuw", { XM, Vex128, EXx } },
8348 { "(bad)", { XX } },
8351 /* VEX_LEN_E5_P_2 */
8353 { "vpmulhw", { XM, Vex128, EXx } },
8354 { "(bad)", { XX } },
8357 /* VEX_LEN_E7_P_2_M_0 */
8359 { "vmovntdq", { Mx, XM } },
8360 { "(bad)", { XX } },
8363 /* VEX_LEN_E8_P_2 */
8365 { "vpsubsb", { XM, Vex128, EXx } },
8366 { "(bad)", { XX } },
8369 /* VEX_LEN_E9_P_2 */
8371 { "vpsubsw", { XM, Vex128, EXx } },
8372 { "(bad)", { XX } },
8375 /* VEX_LEN_EA_P_2 */
8377 { "vpminsw", { XM, Vex128, EXx } },
8378 { "(bad)", { XX } },
8381 /* VEX_LEN_EB_P_2 */
8383 { "vpor", { XM, Vex128, EXx } },
8384 { "(bad)", { XX } },
8387 /* VEX_LEN_EC_P_2 */
8389 { "vpaddsb", { XM, Vex128, EXx } },
8390 { "(bad)", { XX } },
8393 /* VEX_LEN_ED_P_2 */
8395 { "vpaddsw", { XM, Vex128, EXx } },
8396 { "(bad)", { XX } },
8399 /* VEX_LEN_EE_P_2 */
8401 { "vpmaxsw", { XM, Vex128, EXx } },
8402 { "(bad)", { XX } },
8405 /* VEX_LEN_EF_P_2 */
8407 { "vpxor", { XM, Vex128, EXx } },
8408 { "(bad)", { XX } },
8411 /* VEX_LEN_F1_P_2 */
8413 { "vpsllw", { XM, Vex128, EXx } },
8414 { "(bad)", { XX } },
8417 /* VEX_LEN_F2_P_2 */
8419 { "vpslld", { XM, Vex128, EXx } },
8420 { "(bad)", { XX } },
8423 /* VEX_LEN_F3_P_2 */
8425 { "vpsllq", { XM, Vex128, EXx } },
8426 { "(bad)", { XX } },
8429 /* VEX_LEN_F4_P_2 */
8431 { "vpmuludq", { XM, Vex128, EXx } },
8432 { "(bad)", { XX } },
8435 /* VEX_LEN_F5_P_2 */
8437 { "vpmaddwd", { XM, Vex128, EXx } },
8438 { "(bad)", { XX } },
8441 /* VEX_LEN_F6_P_2 */
8443 { "vpsadbw", { XM, Vex128, EXx } },
8444 { "(bad)", { XX } },
8447 /* VEX_LEN_F7_P_2 */
8449 { "vmaskmovdqu", { XM, XS } },
8450 { "(bad)", { XX } },
8453 /* VEX_LEN_F8_P_2 */
8455 { "vpsubb", { XM, Vex128, EXx } },
8456 { "(bad)", { XX } },
8459 /* VEX_LEN_F9_P_2 */
8461 { "vpsubw", { XM, Vex128, EXx } },
8462 { "(bad)", { XX } },
8465 /* VEX_LEN_FA_P_2 */
8467 { "vpsubd", { XM, Vex128, EXx } },
8468 { "(bad)", { XX } },
8471 /* VEX_LEN_FB_P_2 */
8473 { "vpsubq", { XM, Vex128, EXx } },
8474 { "(bad)", { XX } },
8477 /* VEX_LEN_FC_P_2 */
8479 { "vpaddb", { XM, Vex128, EXx } },
8480 { "(bad)", { XX } },
8483 /* VEX_LEN_FD_P_2 */
8485 { "vpaddw", { XM, Vex128, EXx } },
8486 { "(bad)", { XX } },
8489 /* VEX_LEN_FE_P_2 */
8491 { "vpaddd", { XM, Vex128, EXx } },
8492 { "(bad)", { XX } },
8495 /* VEX_LEN_3800_P_2 */
8497 { "vpshufb", { XM, Vex128, EXx } },
8498 { "(bad)", { XX } },
8501 /* VEX_LEN_3801_P_2 */
8503 { "vphaddw", { XM, Vex128, EXx } },
8504 { "(bad)", { XX } },
8507 /* VEX_LEN_3802_P_2 */
8509 { "vphaddd", { XM, Vex128, EXx } },
8510 { "(bad)", { XX } },
8513 /* VEX_LEN_3803_P_2 */
8515 { "vphaddsw", { XM, Vex128, EXx } },
8516 { "(bad)", { XX } },
8519 /* VEX_LEN_3804_P_2 */
8521 { "vpmaddubsw", { XM, Vex128, EXx } },
8522 { "(bad)", { XX } },
8525 /* VEX_LEN_3805_P_2 */
8527 { "vphsubw", { XM, Vex128, EXx } },
8528 { "(bad)", { XX } },
8531 /* VEX_LEN_3806_P_2 */
8533 { "vphsubd", { XM, Vex128, EXx } },
8534 { "(bad)", { XX } },
8537 /* VEX_LEN_3807_P_2 */
8539 { "vphsubsw", { XM, Vex128, EXx } },
8540 { "(bad)", { XX } },
8543 /* VEX_LEN_3808_P_2 */
8545 { "vpsignb", { XM, Vex128, EXx } },
8546 { "(bad)", { XX } },
8549 /* VEX_LEN_3809_P_2 */
8551 { "vpsignw", { XM, Vex128, EXx } },
8552 { "(bad)", { XX } },
8555 /* VEX_LEN_380A_P_2 */
8557 { "vpsignd", { XM, Vex128, EXx } },
8558 { "(bad)", { XX } },
8561 /* VEX_LEN_380B_P_2 */
8563 { "vpmulhrsw", { XM, Vex128, EXx } },
8564 { "(bad)", { XX } },
8567 /* VEX_LEN_3819_P_2_M_0 */
8569 { "(bad)", { XX } },
8570 { "vbroadcastsd", { XM, Mq } },
8573 /* VEX_LEN_381A_P_2_M_0 */
8575 { "(bad)", { XX } },
8576 { "vbroadcastf128", { XM, Mxmm } },
8579 /* VEX_LEN_381C_P_2 */
8581 { "vpabsb", { XM, EXx } },
8582 { "(bad)", { XX } },
8585 /* VEX_LEN_381D_P_2 */
8587 { "vpabsw", { XM, EXx } },
8588 { "(bad)", { XX } },
8591 /* VEX_LEN_381E_P_2 */
8593 { "vpabsd", { XM, EXx } },
8594 { "(bad)", { XX } },
8597 /* VEX_LEN_3820_P_2 */
8599 { "vpmovsxbw", { XM, EXq } },
8600 { "(bad)", { XX } },
8603 /* VEX_LEN_3821_P_2 */
8605 { "vpmovsxbd", { XM, EXd } },
8606 { "(bad)", { XX } },
8609 /* VEX_LEN_3822_P_2 */
8611 { "vpmovsxbq", { XM, EXw } },
8612 { "(bad)", { XX } },
8615 /* VEX_LEN_3823_P_2 */
8617 { "vpmovsxwd", { XM, EXq } },
8618 { "(bad)", { XX } },
8621 /* VEX_LEN_3824_P_2 */
8623 { "vpmovsxwq", { XM, EXd } },
8624 { "(bad)", { XX } },
8627 /* VEX_LEN_3825_P_2 */
8629 { "vpmovsxdq", { XM, EXq } },
8630 { "(bad)", { XX } },
8633 /* VEX_LEN_3828_P_2 */
8635 { "vpmuldq", { XM, Vex128, EXx } },
8636 { "(bad)", { XX } },
8639 /* VEX_LEN_3829_P_2 */
8641 { "vpcmpeqq", { XM, Vex128, EXx } },
8642 { "(bad)", { XX } },
8645 /* VEX_LEN_382A_P_2_M_0 */
8647 { "vmovntdqa", { XM, Mx } },
8648 { "(bad)", { XX } },
8651 /* VEX_LEN_382B_P_2 */
8653 { "vpackusdw", { XM, Vex128, EXx } },
8654 { "(bad)", { XX } },
8657 /* VEX_LEN_3830_P_2 */
8659 { "vpmovzxbw", { XM, EXq } },
8660 { "(bad)", { XX } },
8663 /* VEX_LEN_3831_P_2 */
8665 { "vpmovzxbd", { XM, EXd } },
8666 { "(bad)", { XX } },
8669 /* VEX_LEN_3832_P_2 */
8671 { "vpmovzxbq", { XM, EXw } },
8672 { "(bad)", { XX } },
8675 /* VEX_LEN_3833_P_2 */
8677 { "vpmovzxwd", { XM, EXq } },
8678 { "(bad)", { XX } },
8681 /* VEX_LEN_3834_P_2 */
8683 { "vpmovzxwq", { XM, EXd } },
8684 { "(bad)", { XX } },
8687 /* VEX_LEN_3835_P_2 */
8689 { "vpmovzxdq", { XM, EXq } },
8690 { "(bad)", { XX } },
8693 /* VEX_LEN_3837_P_2 */
8695 { "vpcmpgtq", { XM, Vex128, EXx } },
8696 { "(bad)", { XX } },
8699 /* VEX_LEN_3838_P_2 */
8701 { "vpminsb", { XM, Vex128, EXx } },
8702 { "(bad)", { XX } },
8705 /* VEX_LEN_3839_P_2 */
8707 { "vpminsd", { XM, Vex128, EXx } },
8708 { "(bad)", { XX } },
8711 /* VEX_LEN_383A_P_2 */
8713 { "vpminuw", { XM, Vex128, EXx } },
8714 { "(bad)", { XX } },
8717 /* VEX_LEN_383B_P_2 */
8719 { "vpminud", { XM, Vex128, EXx } },
8720 { "(bad)", { XX } },
8723 /* VEX_LEN_383C_P_2 */
8725 { "vpmaxsb", { XM, Vex128, EXx } },
8726 { "(bad)", { XX } },
8729 /* VEX_LEN_383D_P_2 */
8731 { "vpmaxsd", { XM, Vex128, EXx } },
8732 { "(bad)", { XX } },
8735 /* VEX_LEN_383E_P_2 */
8737 { "vpmaxuw", { XM, Vex128, EXx } },
8738 { "(bad)", { XX } },
8741 /* VEX_LEN_383F_P_2 */
8743 { "vpmaxud", { XM, Vex128, EXx } },
8744 { "(bad)", { XX } },
8747 /* VEX_LEN_3840_P_2 */
8749 { "vpmulld", { XM, Vex128, EXx } },
8750 { "(bad)", { XX } },
8753 /* VEX_LEN_3841_P_2 */
8755 { "vphminposuw", { XM, EXx } },
8756 { "(bad)", { XX } },
8759 /* VEX_LEN_3A06_P_2 */
8761 { "(bad)", { XX } },
8762 { "vperm2f128", { XM, Vex256, EXx, Ib } },
8765 /* VEX_LEN_3A0A_P_2 */
8767 { "vroundss", { XM, Vex128, EXd, Ib } },
8768 { "(bad)", { XX } },
8771 /* VEX_LEN_3A0B_P_2 */
8773 { "vroundsd", { XM, Vex128, EXq, Ib } },
8774 { "(bad)", { XX } },
8777 /* VEX_LEN_3A0E_P_2 */
8779 { "vpblendw", { XM, Vex128, EXx, Ib } },
8780 { "(bad)", { XX } },
8783 /* VEX_LEN_3A0F_P_2 */
8785 { "vpalignr", { XM, Vex128, EXx, Ib } },
8786 { "(bad)", { XX } },
8789 /* VEX_LEN_3A14_P_2 */
8791 { "vpextrb", { Edqb, XM, Ib } },
8792 { "(bad)", { XX } },
8795 /* VEX_LEN_3A15_P_2 */
8797 { "vpextrw", { Edqw, XM, Ib } },
8798 { "(bad)", { XX } },
8801 /* VEX_LEN_3A16_P_2 */
8803 { "vpextrK", { Edq, XM, Ib } },
8804 { "(bad)", { XX } },
8807 /* VEX_LEN_3A17_P_2 */
8809 { "vextractps", { Edqd, XM, Ib } },
8810 { "(bad)", { XX } },
8813 /* VEX_LEN_3A18_P_2 */
8815 { "(bad)", { XX } },
8816 { "vinsertf128", { XM, Vex256, EXxmm, Ib } },
8819 /* VEX_LEN_3A19_P_2 */
8821 { "(bad)", { XX } },
8822 { "vextractf128", { EXxmm, XM, Ib } },
8825 /* VEX_LEN_3A20_P_2 */
8827 { "vpinsrb", { XM, Vex128, Edqb, Ib } },
8828 { "(bad)", { XX } },
8831 /* VEX_LEN_3A21_P_2 */
8833 { "vinsertps", { XM, Vex128, EXd, Ib } },
8834 { "(bad)", { XX } },
8837 /* VEX_LEN_3A22_P_2 */
8839 { "vpinsrK", { XM, Vex128, Edq, Ib } },
8840 { "(bad)", { XX } },
8843 /* VEX_LEN_3A41_P_2 */
8845 { "vdppd", { XM, Vex128, EXx, Ib } },
8846 { "(bad)", { XX } },
8849 /* VEX_LEN_3A42_P_2 */
8851 { "vmpsadbw", { XM, Vex128, EXx, Ib } },
8852 { "(bad)", { XX } },
8855 /* VEX_LEN_3A4C_P_2 */
8857 { "vpblendvb", { XM, Vex128, EXx, XMVexI4 } },
8858 { "(bad)", { XX } },
8861 /* VEX_LEN_3A60_P_2 */
8863 { "vpcmpestrm", { XM, EXx, Ib } },
8864 { "(bad)", { XX } },
8867 /* VEX_LEN_3A61_P_2 */
8869 { "vpcmpestri", { XM, EXx, Ib } },
8870 { "(bad)", { XX } },
8873 /* VEX_LEN_3A62_P_2 */
8875 { "vpcmpistrm", { XM, EXx, Ib } },
8876 { "(bad)", { XX } },
8879 /* VEX_LEN_3A63_P_2 */
8881 { "vpcmpistri", { XM, EXx, Ib } },
8882 { "(bad)", { XX } },
8885 /* VEX_LEN_3A6A_P_2 */
8887 { "vfmaddss", { XMVexW, Vex128FMA, EXdVexW, EXdVexW, VexI4 } },
8888 { "(bad)", { XX } },
8891 /* VEX_LEN_3A6B_P_2 */
8893 { "vfmaddsd", { XMVexW, Vex128FMA, EXqVexW, EXqVexW, VexI4 } },
8894 { "(bad)", { XX } },
8897 /* VEX_LEN_3A6E_P_2 */
8899 { "vfmsubss", { XMVexW, Vex128FMA, EXdVexW, EXdVexW, VexI4 } },
8900 { "(bad)", { XX } },
8903 /* VEX_LEN_3A6F_P_2 */
8905 { "vfmsubsd", { XMVexW, Vex128FMA, EXqVexW, EXqVexW, VexI4 } },
8906 { "(bad)", { XX } },
8909 /* VEX_LEN_3A7A_P_2 */
8911 { "vfnmaddss", { XMVexW, Vex128FMA, EXdVexW, EXdVexW, VexI4 } },
8912 { "(bad)", { XX } },
8915 /* VEX_LEN_3A7B_P_2 */
8917 { "vfnmaddsd", { XMVexW, Vex128FMA, EXqVexW, EXqVexW, VexI4 } },
8918 { "(bad)", { XX } },
8921 /* VEX_LEN_3A7E_P_2 */
8923 { "vfnmsubss", { XMVexW, Vex128FMA, EXdVexW, EXdVexW, VexI4 } },
8924 { "(bad)", { XX } },
8927 /* VEX_LEN_3A7F_P_2 */
8929 { "vfnmsubsd", { XMVexW, Vex128FMA, EXqVexW, EXqVexW, VexI4 } },
8930 { "(bad)", { XX } },
8934 static const struct dis386 mod_table[][2] = {
8937 { "leaS", { Gv, M } },
8938 { "(bad)", { XX } },
8941 /* MOD_0F01_REG_0 */
8942 { X86_64_TABLE (X86_64_0F01_REG_0) },
8943 { RM_TABLE (RM_0F01_REG_0) },
8946 /* MOD_0F01_REG_1 */
8947 { X86_64_TABLE (X86_64_0F01_REG_1) },
8948 { RM_TABLE (RM_0F01_REG_1) },
8951 /* MOD_0F01_REG_2 */
8952 { X86_64_TABLE (X86_64_0F01_REG_2) },
8953 { RM_TABLE (RM_0F01_REG_2) },
8956 /* MOD_0F01_REG_3 */
8957 { X86_64_TABLE (X86_64_0F01_REG_3) },
8958 { RM_TABLE (RM_0F01_REG_3) },
8961 /* MOD_0F01_REG_7 */
8962 { "invlpg", { Mb } },
8963 { RM_TABLE (RM_0F01_REG_7) },
8966 /* MOD_0F12_PREFIX_0 */
8967 { "movlps", { XM, EXq } },
8968 { "movhlps", { XM, EXq } },
8972 { "movlpX", { EXq, XM } },
8973 { "(bad)", { XX } },
8976 /* MOD_0F16_PREFIX_0 */
8977 { "movhps", { XM, EXq } },
8978 { "movlhps", { XM, EXq } },
8982 { "movhpX", { EXq, XM } },
8983 { "(bad)", { XX } },
8986 /* MOD_0F18_REG_0 */
8987 { "prefetchnta", { Mb } },
8988 { "(bad)", { XX } },
8991 /* MOD_0F18_REG_1 */
8992 { "prefetcht0", { Mb } },
8993 { "(bad)", { XX } },
8996 /* MOD_0F18_REG_2 */
8997 { "prefetcht1", { Mb } },
8998 { "(bad)", { XX } },
9001 /* MOD_0F18_REG_3 */
9002 { "prefetcht2", { Mb } },
9003 { "(bad)", { XX } },
9007 { "(bad)", { XX } },
9008 { "movZ", { Rm, Cm } },
9012 { "(bad)", { XX } },
9013 { "movZ", { Rm, Dm } },
9017 { "(bad)", { XX } },
9018 { "movZ", { Cm, Rm } },
9022 { "(bad)", { XX } },
9023 { "movZ", { Dm, Rm } },
9027 { THREE_BYTE_TABLE (THREE_BYTE_0F24) },
9028 { "movL", { Rd, Td } },
9032 { "(bad)", { XX } },
9033 { "movL", { Td, Rd } },
9036 /* MOD_0F2B_PREFIX_0 */
9037 {"movntps", { Mx, XM } },
9038 { "(bad)", { XX } },
9041 /* MOD_0F2B_PREFIX_1 */
9042 {"movntss", { Md, XM } },
9043 { "(bad)", { XX } },
9046 /* MOD_0F2B_PREFIX_2 */
9047 {"movntpd", { Mx, XM } },
9048 { "(bad)", { XX } },
9051 /* MOD_0F2B_PREFIX_3 */
9052 {"movntsd", { Mq, XM } },
9053 { "(bad)", { XX } },
9057 { "(bad)", { XX } },
9058 { "movmskpX", { Gdq, XS } },
9061 /* MOD_0F71_REG_2 */
9062 { "(bad)", { XX } },
9063 { "psrlw", { MS, Ib } },
9066 /* MOD_0F71_REG_4 */
9067 { "(bad)", { XX } },
9068 { "psraw", { MS, Ib } },
9071 /* MOD_0F71_REG_6 */
9072 { "(bad)", { XX } },
9073 { "psllw", { MS, Ib } },
9076 /* MOD_0F72_REG_2 */
9077 { "(bad)", { XX } },
9078 { "psrld", { MS, Ib } },
9081 /* MOD_0F72_REG_4 */
9082 { "(bad)", { XX } },
9083 { "psrad", { MS, Ib } },
9086 /* MOD_0F72_REG_6 */
9087 { "(bad)", { XX } },
9088 { "pslld", { MS, Ib } },
9091 /* MOD_0F73_REG_2 */
9092 { "(bad)", { XX } },
9093 { "psrlq", { MS, Ib } },
9096 /* MOD_0F73_REG_3 */
9097 { "(bad)", { XX } },
9098 { PREFIX_TABLE (PREFIX_0F73_REG_3) },
9101 /* MOD_0F73_REG_6 */
9102 { "(bad)", { XX } },
9103 { "psllq", { MS, Ib } },
9106 /* MOD_0F73_REG_7 */
9107 { "(bad)", { XX } },
9108 { PREFIX_TABLE (PREFIX_0F73_REG_7) },
9111 /* MOD_0FAE_REG_0 */
9112 { "fxsave", { M } },
9113 { "(bad)", { XX } },
9116 /* MOD_0FAE_REG_1 */
9117 { "fxrstor", { M } },
9118 { "(bad)", { XX } },
9121 /* MOD_0FAE_REG_2 */
9122 { "ldmxcsr", { Md } },
9123 { "(bad)", { XX } },
9126 /* MOD_0FAE_REG_3 */
9127 { "stmxcsr", { Md } },
9128 { "(bad)", { XX } },
9131 /* MOD_0FAE_REG_4 */
9133 { "(bad)", { XX } },
9136 /* MOD_0FAE_REG_5 */
9137 { "xrstor", { M } },
9138 { RM_TABLE (RM_0FAE_REG_5) },
9141 /* MOD_0FAE_REG_6 */
9142 { "xsaveopt", { M } },
9143 { RM_TABLE (RM_0FAE_REG_6) },
9146 /* MOD_0FAE_REG_7 */
9147 { "clflush", { Mb } },
9148 { RM_TABLE (RM_0FAE_REG_7) },
9152 { "lssS", { Gv, Mp } },
9153 { "(bad)", { XX } },
9157 { "lfsS", { Gv, Mp } },
9158 { "(bad)", { XX } },
9162 { "lgsS", { Gv, Mp } },
9163 { "(bad)", { XX } },
9166 /* MOD_0FC7_REG_6 */
9167 { PREFIX_TABLE (PREFIX_0FC7_REG_6) },
9168 { "(bad)", { XX } },
9171 /* MOD_0FC7_REG_7 */
9172 { "vmptrst", { Mq } },
9173 { "(bad)", { XX } },
9177 { "(bad)", { XX } },
9178 { "pmovmskb", { Gdq, MS } },
9181 /* MOD_0FE7_PREFIX_2 */
9182 { "movntdq", { Mx, XM } },
9183 { "(bad)", { XX } },
9186 /* MOD_0FF0_PREFIX_3 */
9187 { "lddqu", { XM, M } },
9188 { "(bad)", { XX } },
9191 /* MOD_0F382A_PREFIX_2 */
9192 { "movntdqa", { XM, Mx } },
9193 { "(bad)", { XX } },
9197 { "bound{S|}", { Gv, Ma } },
9198 { "(bad)", { XX } },
9202 { "lesS", { Gv, Mp } },
9203 { VEX_C4_TABLE (VEX_0F) },
9207 { "ldsS", { Gv, Mp } },
9208 { VEX_C5_TABLE (VEX_0F) },
9211 /* MOD_VEX_12_PREFIX_0 */
9212 { VEX_LEN_TABLE (VEX_LEN_12_P_0_M_0) },
9213 { VEX_LEN_TABLE (VEX_LEN_12_P_0_M_1) },
9217 { VEX_LEN_TABLE (VEX_LEN_13_M_0) },
9218 { "(bad)", { XX } },
9221 /* MOD_VEX_16_PREFIX_0 */
9222 { VEX_LEN_TABLE (VEX_LEN_16_P_0_M_0) },
9223 { VEX_LEN_TABLE (VEX_LEN_16_P_0_M_1) },
9227 { VEX_LEN_TABLE (VEX_LEN_17_M_0) },
9228 { "(bad)", { XX } },
9232 { VEX_LEN_TABLE (VEX_LEN_2B_M_0) },
9233 { "(bad)", { XX } },
9237 { "(bad)", { XX } },
9238 { "vmovmskpX", { Gdq, XS } },
9241 /* MOD_VEX_71_REG_2 */
9242 { "(bad)", { XX } },
9243 { PREFIX_TABLE (PREFIX_VEX_71_REG_2) },
9246 /* MOD_VEX_71_REG_4 */
9247 { "(bad)", { XX } },
9248 { PREFIX_TABLE (PREFIX_VEX_71_REG_4) },
9251 /* MOD_VEX_71_REG_6 */
9252 { "(bad)", { XX } },
9253 { PREFIX_TABLE (PREFIX_VEX_71_REG_6) },
9256 /* MOD_VEX_72_REG_2 */
9257 { "(bad)", { XX } },
9258 { PREFIX_TABLE (PREFIX_VEX_72_REG_2) },
9261 /* MOD_VEX_72_REG_4 */
9262 { "(bad)", { XX } },
9263 { PREFIX_TABLE (PREFIX_VEX_72_REG_4) },
9266 /* MOD_VEX_72_REG_6 */
9267 { "(bad)", { XX } },
9268 { PREFIX_TABLE (PREFIX_VEX_72_REG_6) },
9271 /* MOD_VEX_73_REG_2 */
9272 { "(bad)", { XX } },
9273 { PREFIX_TABLE (PREFIX_VEX_73_REG_2) },
9276 /* MOD_VEX_73_REG_3 */
9277 { "(bad)", { XX } },
9278 { PREFIX_TABLE (PREFIX_VEX_73_REG_3) },
9281 /* MOD_VEX_73_REG_6 */
9282 { "(bad)", { XX } },
9283 { PREFIX_TABLE (PREFIX_VEX_73_REG_6) },
9286 /* MOD_VEX_73_REG_7 */
9287 { "(bad)", { XX } },
9288 { PREFIX_TABLE (PREFIX_VEX_73_REG_7) },
9291 /* MOD_VEX_AE_REG_2 */
9292 { VEX_LEN_TABLE (VEX_LEN_AE_R_2_M_0) },
9293 { "(bad)", { XX } },
9296 /* MOD_VEX_AE_REG_3 */
9297 { VEX_LEN_TABLE (VEX_LEN_AE_R_3_M_0) },
9298 { "(bad)", { XX } },
9301 /* MOD_VEX_D7_PREFIX_2 */
9302 { "(bad)", { XX } },
9303 { VEX_LEN_TABLE (VEX_LEN_D7_P_2_M_1) },
9306 /* MOD_VEX_E7_PREFIX_2 */
9307 { VEX_LEN_TABLE (VEX_LEN_E7_P_2_M_0) },
9308 { "(bad)", { XX } },
9311 /* MOD_VEX_F0_PREFIX_3 */
9312 { "vlddqu", { XM, M } },
9313 { "(bad)", { XX } },
9316 /* MOD_VEX_3818_PREFIX_2 */
9317 { "vbroadcastss", { XM, Md } },
9318 { "(bad)", { XX } },
9321 /* MOD_VEX_3819_PREFIX_2 */
9322 { VEX_LEN_TABLE (VEX_LEN_3819_P_2_M_0) },
9323 { "(bad)", { XX } },
9326 /* MOD_VEX_381A_PREFIX_2 */
9327 { VEX_LEN_TABLE (VEX_LEN_381A_P_2_M_0) },
9328 { "(bad)", { XX } },
9331 /* MOD_VEX_382A_PREFIX_2 */
9332 { VEX_LEN_TABLE (VEX_LEN_382A_P_2_M_0) },
9333 { "(bad)", { XX } },
9336 /* MOD_VEX_382C_PREFIX_2 */
9337 { "vmaskmovps", { XM, Vex, Mx } },
9338 { "(bad)", { XX } },
9341 /* MOD_VEX_382D_PREFIX_2 */
9342 { "vmaskmovpd", { XM, Vex, Mx } },
9343 { "(bad)", { XX } },
9346 /* MOD_VEX_382E_PREFIX_2 */
9347 { "vmaskmovps", { Mx, Vex, XM } },
9348 { "(bad)", { XX } },
9351 /* MOD_VEX_382F_PREFIX_2 */
9352 { "vmaskmovpd", { Mx, Vex, XM } },
9353 { "(bad)", { XX } },
9357 static const struct dis386 rm_table[][8] = {
9360 { "(bad)", { XX } },
9361 { "vmcall", { Skip_MODRM } },
9362 { "vmlaunch", { Skip_MODRM } },
9363 { "vmresume", { Skip_MODRM } },
9364 { "vmxoff", { Skip_MODRM } },
9365 { "(bad)", { XX } },
9366 { "(bad)", { XX } },
9367 { "(bad)", { XX } },
9371 { "monitor", { { OP_Monitor, 0 } } },
9372 { "mwait", { { OP_Mwait, 0 } } },
9373 { "(bad)", { XX } },
9374 { "(bad)", { XX } },
9375 { "(bad)", { XX } },
9376 { "(bad)", { XX } },
9377 { "(bad)", { XX } },
9378 { "(bad)", { XX } },
9382 { "xgetbv", { Skip_MODRM } },
9383 { "xsetbv", { Skip_MODRM } },
9384 { "(bad)", { XX } },
9385 { "(bad)", { XX } },
9386 { "(bad)", { XX } },
9387 { "(bad)", { XX } },
9388 { "(bad)", { XX } },
9389 { "(bad)", { XX } },
9393 { "vmrun", { Skip_MODRM } },
9394 { "vmmcall", { Skip_MODRM } },
9395 { "vmload", { Skip_MODRM } },
9396 { "vmsave", { Skip_MODRM } },
9397 { "stgi", { Skip_MODRM } },
9398 { "clgi", { Skip_MODRM } },
9399 { "skinit", { Skip_MODRM } },
9400 { "invlpga", { Skip_MODRM } },
9404 { "swapgs", { Skip_MODRM } },
9405 { "rdtscp", { Skip_MODRM } },
9406 { "(bad)", { XX } },
9407 { "(bad)", { XX } },
9408 { "(bad)", { XX } },
9409 { "(bad)", { XX } },
9410 { "(bad)", { XX } },
9411 { "(bad)", { XX } },
9415 { "lfence", { Skip_MODRM } },
9416 { "(bad)", { XX } },
9417 { "(bad)", { XX } },
9418 { "(bad)", { XX } },
9419 { "(bad)", { XX } },
9420 { "(bad)", { XX } },
9421 { "(bad)", { XX } },
9422 { "(bad)", { XX } },
9426 { "mfence", { Skip_MODRM } },
9427 { "(bad)", { XX } },
9428 { "(bad)", { XX } },
9429 { "(bad)", { XX } },
9430 { "(bad)", { XX } },
9431 { "(bad)", { XX } },
9432 { "(bad)", { XX } },
9433 { "(bad)", { XX } },
9437 { "sfence", { Skip_MODRM } },
9438 { "(bad)", { XX } },
9439 { "(bad)", { XX } },
9440 { "(bad)", { XX } },
9441 { "(bad)", { XX } },
9442 { "(bad)", { XX } },
9443 { "(bad)", { XX } },
9444 { "(bad)", { XX } },
9448 #define INTERNAL_DISASSEMBLER_ERROR _("<internal disassembler error>")
9462 FETCH_DATA (the_info, codep + 1);
9466 /* REX prefixes family. */
9483 if (address_mode == mode_64bit)
9489 prefixes |= PREFIX_REPZ;
9492 prefixes |= PREFIX_REPNZ;
9495 prefixes |= PREFIX_LOCK;
9498 prefixes |= PREFIX_CS;
9501 prefixes |= PREFIX_SS;
9504 prefixes |= PREFIX_DS;
9507 prefixes |= PREFIX_ES;
9510 prefixes |= PREFIX_FS;
9513 prefixes |= PREFIX_GS;
9516 prefixes |= PREFIX_DATA;
9519 prefixes |= PREFIX_ADDR;
9522 /* fwait is really an instruction. If there are prefixes
9523 before the fwait, they belong to the fwait, *not* to the
9524 following instruction. */
9525 if (prefixes || rex)
9527 prefixes |= PREFIX_FWAIT;
9531 prefixes = PREFIX_FWAIT;
9536 /* Rex is ignored when followed by another prefix. */
9548 /* Return the name of the prefix byte PREF, or NULL if PREF is not a
9552 prefix_name (int pref, int sizeflag)
9554 static const char *rexes [16] =
9559 "rex.XB", /* 0x43 */
9561 "rex.RB", /* 0x45 */
9562 "rex.RX", /* 0x46 */
9563 "rex.RXB", /* 0x47 */
9565 "rex.WB", /* 0x49 */
9566 "rex.WX", /* 0x4a */
9567 "rex.WXB", /* 0x4b */
9568 "rex.WR", /* 0x4c */
9569 "rex.WRB", /* 0x4d */
9570 "rex.WRX", /* 0x4e */
9571 "rex.WRXB", /* 0x4f */
9576 /* REX prefixes family. */
9593 return rexes [pref - 0x40];
9613 return (sizeflag & DFLAG) ? "data16" : "data32";
9615 if (address_mode == mode_64bit)
9616 return (sizeflag & AFLAG) ? "addr32" : "addr64";
9618 return (sizeflag & AFLAG) ? "addr16" : "addr32";
9626 static char op_out[MAX_OPERANDS][100];
9627 static int op_ad, op_index[MAX_OPERANDS];
9628 static int two_source_ops;
9629 static bfd_vma op_address[MAX_OPERANDS];
9630 static bfd_vma op_riprel[MAX_OPERANDS];
9631 static bfd_vma start_pc;
9634 * On the 386's of 1988, the maximum length of an instruction is 15 bytes.
9635 * (see topic "Redundant prefixes" in the "Differences from 8086"
9636 * section of the "Virtual 8086 Mode" chapter.)
9637 * 'pc' should be the address of this instruction, it will
9638 * be used to print the target address if this is a relative jump or call
9639 * The function returns the length of this instruction in bytes.
9642 static char intel_syntax;
9643 static char intel_mnemonic = !SYSV386_COMPAT;
9644 static char open_char;
9645 static char close_char;
9646 static char separator_char;
9647 static char scale_char;
9649 /* Here for backwards compatibility. When gdb stops using
9650 print_insn_i386_att and print_insn_i386_intel these functions can
9651 disappear, and print_insn_i386 be merged into print_insn. */
9653 print_insn_i386_att (bfd_vma pc, disassemble_info *info)
9657 return print_insn (pc, info);
9661 print_insn_i386_intel (bfd_vma pc, disassemble_info *info)
9665 return print_insn (pc, info);
9669 print_insn_i386 (bfd_vma pc, disassemble_info *info)
9673 return print_insn (pc, info);
9677 print_i386_disassembler_options (FILE *stream)
9679 fprintf (stream, _("\n\
9680 The following i386/x86-64 specific disassembler options are supported for use\n\
9681 with the -M switch (multiple options should be separated by commas):\n"));
9683 fprintf (stream, _(" x86-64 Disassemble in 64bit mode\n"));
9684 fprintf (stream, _(" i386 Disassemble in 32bit mode\n"));
9685 fprintf (stream, _(" i8086 Disassemble in 16bit mode\n"));
9686 fprintf (stream, _(" att Display instruction in AT&T syntax\n"));
9687 fprintf (stream, _(" intel Display instruction in Intel syntax\n"));
9688 fprintf (stream, _(" att-mnemonic\n"
9689 " Display instruction in AT&T mnemonic\n"));
9690 fprintf (stream, _(" intel-mnemonic\n"
9691 " Display instruction in Intel mnemonic\n"));
9692 fprintf (stream, _(" addr64 Assume 64bit address size\n"));
9693 fprintf (stream, _(" addr32 Assume 32bit address size\n"));
9694 fprintf (stream, _(" addr16 Assume 16bit address size\n"));
9695 fprintf (stream, _(" data32 Assume 32bit data size\n"));
9696 fprintf (stream, _(" data16 Assume 16bit data size\n"));
9697 fprintf (stream, _(" suffix Always display instruction suffix in AT&T syntax\n"));
9700 /* Get a pointer to struct dis386 with a valid name. */
9702 static const struct dis386 *
9703 get_valid_dis386 (const struct dis386 *dp, disassemble_info *info)
9705 int index, vex_table_index;
9707 if (dp->name != NULL)
9710 switch (dp->op[0].bytemode)
9713 dp = ®_table[dp->op[1].bytemode][modrm.reg];
9717 index = modrm.mod == 0x3 ? 1 : 0;
9718 dp = &mod_table[dp->op[1].bytemode][index];
9722 dp = &rm_table[dp->op[1].bytemode][modrm.rm];
9725 case USE_PREFIX_TABLE:
9728 /* The prefix in VEX is implicit. */
9734 case REPE_PREFIX_OPCODE:
9737 case DATA_PREFIX_OPCODE:
9740 case REPNE_PREFIX_OPCODE:
9751 used_prefixes |= (prefixes & PREFIX_REPZ);
9752 if (prefixes & PREFIX_REPZ)
9759 /* We should check PREFIX_REPNZ and PREFIX_REPZ before
9761 used_prefixes |= (prefixes & PREFIX_REPNZ);
9762 if (prefixes & PREFIX_REPNZ)
9765 repnz_prefix = NULL;
9769 used_prefixes |= (prefixes & PREFIX_DATA);
9770 if (prefixes & PREFIX_DATA)
9778 dp = &prefix_table[dp->op[1].bytemode][index];
9781 case USE_X86_64_TABLE:
9782 index = address_mode == mode_64bit ? 1 : 0;
9783 dp = &x86_64_table[dp->op[1].bytemode][index];
9786 case USE_3BYTE_TABLE:
9787 FETCH_DATA (info, codep + 2);
9789 dp = &three_byte_table[dp->op[1].bytemode][index];
9790 modrm.mod = (*codep >> 6) & 3;
9791 modrm.reg = (*codep >> 3) & 7;
9792 modrm.rm = *codep & 7;
9795 case USE_VEX_LEN_TABLE:
9812 dp = &vex_len_table[dp->op[1].bytemode][index];
9815 case USE_VEX_C4_TABLE:
9816 FETCH_DATA (info, codep + 3);
9817 /* All bits in the REX prefix are ignored. */
9819 rex = ~(*codep >> 5) & 0x7;
9820 switch ((*codep & 0x1f))
9825 vex_table_index = 0;
9828 vex_table_index = 1;
9831 vex_table_index = 2;
9835 vex.w = *codep & 0x80;
9836 if (vex.w && address_mode == mode_64bit)
9839 vex.register_specifier = (~(*codep >> 3)) & 0xf;
9840 if (address_mode != mode_64bit
9841 && vex.register_specifier > 0x7)
9844 vex.length = (*codep & 0x4) ? 256 : 128;
9845 switch ((*codep & 0x3))
9851 vex.prefix = DATA_PREFIX_OPCODE;
9854 vex.prefix = REPE_PREFIX_OPCODE;
9857 vex.prefix = REPNE_PREFIX_OPCODE;
9864 dp = &vex_table[vex_table_index][index];
9865 /* There is no MODRM byte for VEX [82|77]. */
9866 if (index != 0x77 && index != 0x82)
9868 FETCH_DATA (info, codep + 1);
9869 modrm.mod = (*codep >> 6) & 3;
9870 modrm.reg = (*codep >> 3) & 7;
9871 modrm.rm = *codep & 7;
9875 case USE_VEX_C5_TABLE:
9876 FETCH_DATA (info, codep + 2);
9877 /* All bits in the REX prefix are ignored. */
9879 rex = (*codep & 0x80) ? 0 : REX_R;
9881 vex.register_specifier = (~(*codep >> 3)) & 0xf;
9882 if (address_mode != mode_64bit
9883 && vex.register_specifier > 0x7)
9886 vex.length = (*codep & 0x4) ? 256 : 128;
9887 switch ((*codep & 0x3))
9893 vex.prefix = DATA_PREFIX_OPCODE;
9896 vex.prefix = REPE_PREFIX_OPCODE;
9899 vex.prefix = REPNE_PREFIX_OPCODE;
9906 dp = &vex_table[dp->op[1].bytemode][index];
9907 /* There is no MODRM byte for VEX [82|77]. */
9908 if (index != 0x77 && index != 0x82)
9910 FETCH_DATA (info, codep + 1);
9911 modrm.mod = (*codep >> 6) & 3;
9912 modrm.reg = (*codep >> 3) & 7;
9913 modrm.rm = *codep & 7;
9918 oappend (INTERNAL_DISASSEMBLER_ERROR);
9922 if (dp->name != NULL)
9925 return get_valid_dis386 (dp, info);
9929 print_insn (bfd_vma pc, disassemble_info *info)
9931 const struct dis386 *dp;
9933 char *op_txt[MAX_OPERANDS];
9937 struct dis_private priv;
9939 char prefix_obuf[32];
9942 if (info->mach == bfd_mach_x86_64_intel_syntax
9943 || info->mach == bfd_mach_x86_64)
9944 address_mode = mode_64bit;
9946 address_mode = mode_32bit;
9948 if (intel_syntax == (char) -1)
9949 intel_syntax = (info->mach == bfd_mach_i386_i386_intel_syntax
9950 || info->mach == bfd_mach_x86_64_intel_syntax);
9952 if (info->mach == bfd_mach_i386_i386
9953 || info->mach == bfd_mach_x86_64
9954 || info->mach == bfd_mach_i386_i386_intel_syntax
9955 || info->mach == bfd_mach_x86_64_intel_syntax)
9956 priv.orig_sizeflag = AFLAG | DFLAG;
9957 else if (info->mach == bfd_mach_i386_i8086)
9958 priv.orig_sizeflag = 0;
9962 for (p = info->disassembler_options; p != NULL; )
9964 if (CONST_STRNEQ (p, "x86-64"))
9966 address_mode = mode_64bit;
9967 priv.orig_sizeflag = AFLAG | DFLAG;
9969 else if (CONST_STRNEQ (p, "i386"))
9971 address_mode = mode_32bit;
9972 priv.orig_sizeflag = AFLAG | DFLAG;
9974 else if (CONST_STRNEQ (p, "i8086"))
9976 address_mode = mode_16bit;
9977 priv.orig_sizeflag = 0;
9979 else if (CONST_STRNEQ (p, "intel"))
9982 if (CONST_STRNEQ (p + 5, "-mnemonic"))
9985 else if (CONST_STRNEQ (p, "att"))
9988 if (CONST_STRNEQ (p + 3, "-mnemonic"))
9991 else if (CONST_STRNEQ (p, "addr"))
9993 if (address_mode == mode_64bit)
9995 if (p[4] == '3' && p[5] == '2')
9996 priv.orig_sizeflag &= ~AFLAG;
9997 else if (p[4] == '6' && p[5] == '4')
9998 priv.orig_sizeflag |= AFLAG;
10002 if (p[4] == '1' && p[5] == '6')
10003 priv.orig_sizeflag &= ~AFLAG;
10004 else if (p[4] == '3' && p[5] == '2')
10005 priv.orig_sizeflag |= AFLAG;
10008 else if (CONST_STRNEQ (p, "data"))
10010 if (p[4] == '1' && p[5] == '6')
10011 priv.orig_sizeflag &= ~DFLAG;
10012 else if (p[4] == '3' && p[5] == '2')
10013 priv.orig_sizeflag |= DFLAG;
10015 else if (CONST_STRNEQ (p, "suffix"))
10016 priv.orig_sizeflag |= SUFFIX_ALWAYS;
10018 p = strchr (p, ',');
10025 names64 = intel_names64;
10026 names32 = intel_names32;
10027 names16 = intel_names16;
10028 names8 = intel_names8;
10029 names8rex = intel_names8rex;
10030 names_seg = intel_names_seg;
10031 index64 = intel_index64;
10032 index32 = intel_index32;
10033 index16 = intel_index16;
10036 separator_char = '+';
10041 names64 = att_names64;
10042 names32 = att_names32;
10043 names16 = att_names16;
10044 names8 = att_names8;
10045 names8rex = att_names8rex;
10046 names_seg = att_names_seg;
10047 index64 = att_index64;
10048 index32 = att_index32;
10049 index16 = att_index16;
10052 separator_char = ',';
10056 /* The output looks better if we put 7 bytes on a line, since that
10057 puts most long word instructions on a single line. */
10058 info->bytes_per_line = 7;
10060 info->private_data = &priv;
10061 priv.max_fetched = priv.the_buffer;
10062 priv.insn_start = pc;
10065 for (i = 0; i < MAX_OPERANDS; ++i)
10073 start_codep = priv.the_buffer;
10074 codep = priv.the_buffer;
10076 if (setjmp (priv.bailout) != 0)
10080 /* Getting here means we tried for data but didn't get it. That
10081 means we have an incomplete instruction of some sort. Just
10082 print the first byte as a prefix or a .byte pseudo-op. */
10083 if (codep > priv.the_buffer)
10085 name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag);
10087 (*info->fprintf_func) (info->stream, "%s", name);
10090 /* Just print the first byte as a .byte instruction. */
10091 (*info->fprintf_func) (info->stream, ".byte 0x%x",
10092 (unsigned int) priv.the_buffer[0]);
10104 insn_codep = codep;
10105 sizeflag = priv.orig_sizeflag;
10107 FETCH_DATA (info, codep + 1);
10108 two_source_ops = (*codep == 0x62) || (*codep == 0xc8);
10110 if (((prefixes & PREFIX_FWAIT)
10111 && ((*codep < 0xd8) || (*codep > 0xdf)))
10112 || (rex && rex_used))
10116 /* fwait not followed by floating point instruction, or rex followed
10117 by other prefixes. Print the first prefix. */
10118 name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag);
10120 name = INTERNAL_DISASSEMBLER_ERROR;
10121 (*info->fprintf_func) (info->stream, "%s", name);
10126 if (*codep == 0x0f)
10128 unsigned char threebyte;
10129 FETCH_DATA (info, codep + 2);
10130 threebyte = *++codep;
10131 dp = &dis386_twobyte[threebyte];
10132 need_modrm = twobyte_has_modrm[*codep];
10137 dp = &dis386[*codep];
10138 need_modrm = onebyte_has_modrm[*codep];
10142 if ((prefixes & PREFIX_REPZ))
10144 repz_prefix = "repz ";
10145 used_prefixes |= PREFIX_REPZ;
10148 repz_prefix = NULL;
10150 if ((prefixes & PREFIX_REPNZ))
10152 repnz_prefix = "repnz ";
10153 used_prefixes |= PREFIX_REPNZ;
10156 repnz_prefix = NULL;
10158 if ((prefixes & PREFIX_LOCK))
10160 lock_prefix = "lock ";
10161 used_prefixes |= PREFIX_LOCK;
10164 lock_prefix = NULL;
10166 addr_prefix = NULL;
10167 if (prefixes & PREFIX_ADDR)
10170 if (dp->op[2].bytemode != loop_jcxz_mode || intel_syntax)
10172 if ((sizeflag & AFLAG) || address_mode == mode_64bit)
10173 addr_prefix = "addr32 ";
10175 addr_prefix = "addr16 ";
10176 used_prefixes |= PREFIX_ADDR;
10180 data_prefix = NULL;
10181 if ((prefixes & PREFIX_DATA))
10184 if (dp->op[2].bytemode == cond_jump_mode
10185 && dp->op[0].bytemode == v_mode
10188 if (sizeflag & DFLAG)
10189 data_prefix = "data32 ";
10191 data_prefix = "data16 ";
10192 used_prefixes |= PREFIX_DATA;
10198 FETCH_DATA (info, codep + 1);
10199 modrm.mod = (*codep >> 6) & 3;
10200 modrm.reg = (*codep >> 3) & 7;
10201 modrm.rm = *codep & 7;
10204 if (dp->name == NULL && dp->op[0].bytemode == FLOATCODE)
10206 dofloat (sizeflag);
10213 dp = get_valid_dis386 (dp, info);
10214 if (dp != NULL && putop (dp->name, sizeflag) == 0)
10216 for (i = 0; i < MAX_OPERANDS; ++i)
10219 op_ad = MAX_OPERANDS - 1 - i;
10221 (*dp->op[i].rtn) (dp->op[i].bytemode, sizeflag);
10226 /* See if any prefixes were not used. If so, print the first one
10227 separately. If we don't do this, we'll wind up printing an
10228 instruction stream which does not precisely correspond to the
10229 bytes we are disassembling. */
10230 if ((prefixes & ~used_prefixes) != 0)
10234 name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag);
10236 name = INTERNAL_DISASSEMBLER_ERROR;
10237 (*info->fprintf_func) (info->stream, "%s", name);
10240 if ((rex_original & ~rex_used) || rex_ignored)
10243 name = prefix_name (rex_original, priv.orig_sizeflag);
10245 name = INTERNAL_DISASSEMBLER_ERROR;
10246 (*info->fprintf_func) (info->stream, "%s ", name);
10249 prefix_obuf[0] = 0;
10250 prefix_obufp = prefix_obuf;
10252 prefix_obufp = stpcpy (prefix_obufp, lock_prefix);
10254 prefix_obufp = stpcpy (prefix_obufp, repz_prefix);
10256 prefix_obufp = stpcpy (prefix_obufp, repnz_prefix);
10258 prefix_obufp = stpcpy (prefix_obufp, addr_prefix);
10260 prefix_obufp = stpcpy (prefix_obufp, data_prefix);
10262 if (prefix_obuf[0] != 0)
10263 (*info->fprintf_func) (info->stream, "%s", prefix_obuf);
10265 obufp = obuf + strlen (obuf);
10266 for (i = strlen (obuf) + strlen (prefix_obuf); i < 6; i++)
10269 (*info->fprintf_func) (info->stream, "%s", obuf);
10271 /* The enter and bound instructions are printed with operands in the same
10272 order as the intel book; everything else is printed in reverse order. */
10273 if (intel_syntax || two_source_ops)
10277 for (i = 0; i < MAX_OPERANDS; ++i)
10278 op_txt[i] = op_out[i];
10280 for (i = 0; i < (MAX_OPERANDS >> 1); ++i)
10282 op_ad = op_index[i];
10283 op_index[i] = op_index[MAX_OPERANDS - 1 - i];
10284 op_index[MAX_OPERANDS - 1 - i] = op_ad;
10285 riprel = op_riprel[i];
10286 op_riprel[i] = op_riprel [MAX_OPERANDS - 1 - i];
10287 op_riprel[MAX_OPERANDS - 1 - i] = riprel;
10292 for (i = 0; i < MAX_OPERANDS; ++i)
10293 op_txt[MAX_OPERANDS - 1 - i] = op_out[i];
10297 for (i = 0; i < MAX_OPERANDS; ++i)
10301 (*info->fprintf_func) (info->stream, ",");
10302 if (op_index[i] != -1 && !op_riprel[i])
10303 (*info->print_address_func) ((bfd_vma) op_address[op_index[i]], info);
10305 (*info->fprintf_func) (info->stream, "%s", op_txt[i]);
10309 for (i = 0; i < MAX_OPERANDS; i++)
10310 if (op_index[i] != -1 && op_riprel[i])
10312 (*info->fprintf_func) (info->stream, " # ");
10313 (*info->print_address_func) ((bfd_vma) (start_pc + codep - start_codep
10314 + op_address[op_index[i]]), info);
10317 return codep - priv.the_buffer;
10320 static const char *float_mem[] = {
10395 static const unsigned char float_mem_mode[] = {
10470 #define ST { OP_ST, 0 }
10471 #define STi { OP_STi, 0 }
10473 #define FGRPd9_2 NULL, { { NULL, 0 } }
10474 #define FGRPd9_4 NULL, { { NULL, 1 } }
10475 #define FGRPd9_5 NULL, { { NULL, 2 } }
10476 #define FGRPd9_6 NULL, { { NULL, 3 } }
10477 #define FGRPd9_7 NULL, { { NULL, 4 } }
10478 #define FGRPda_5 NULL, { { NULL, 5 } }
10479 #define FGRPdb_4 NULL, { { NULL, 6 } }
10480 #define FGRPde_3 NULL, { { NULL, 7 } }
10481 #define FGRPdf_4 NULL, { { NULL, 8 } }
10483 static const struct dis386 float_reg[][8] = {
10486 { "fadd", { ST, STi } },
10487 { "fmul", { ST, STi } },
10488 { "fcom", { STi } },
10489 { "fcomp", { STi } },
10490 { "fsub", { ST, STi } },
10491 { "fsubr", { ST, STi } },
10492 { "fdiv", { ST, STi } },
10493 { "fdivr", { ST, STi } },
10497 { "fld", { STi } },
10498 { "fxch", { STi } },
10500 { "(bad)", { XX } },
10508 { "fcmovb", { ST, STi } },
10509 { "fcmove", { ST, STi } },
10510 { "fcmovbe",{ ST, STi } },
10511 { "fcmovu", { ST, STi } },
10512 { "(bad)", { XX } },
10514 { "(bad)", { XX } },
10515 { "(bad)", { XX } },
10519 { "fcmovnb",{ ST, STi } },
10520 { "fcmovne",{ ST, STi } },
10521 { "fcmovnbe",{ ST, STi } },
10522 { "fcmovnu",{ ST, STi } },
10524 { "fucomi", { ST, STi } },
10525 { "fcomi", { ST, STi } },
10526 { "(bad)", { XX } },
10530 { "fadd", { STi, ST } },
10531 { "fmul", { STi, ST } },
10532 { "(bad)", { XX } },
10533 { "(bad)", { XX } },
10534 { "fsub!M", { STi, ST } },
10535 { "fsubM", { STi, ST } },
10536 { "fdiv!M", { STi, ST } },
10537 { "fdivM", { STi, ST } },
10541 { "ffree", { STi } },
10542 { "(bad)", { XX } },
10543 { "fst", { STi } },
10544 { "fstp", { STi } },
10545 { "fucom", { STi } },
10546 { "fucomp", { STi } },
10547 { "(bad)", { XX } },
10548 { "(bad)", { XX } },
10552 { "faddp", { STi, ST } },
10553 { "fmulp", { STi, ST } },
10554 { "(bad)", { XX } },
10556 { "fsub!Mp", { STi, ST } },
10557 { "fsubMp", { STi, ST } },
10558 { "fdiv!Mp", { STi, ST } },
10559 { "fdivMp", { STi, ST } },
10563 { "ffreep", { STi } },
10564 { "(bad)", { XX } },
10565 { "(bad)", { XX } },
10566 { "(bad)", { XX } },
10568 { "fucomip", { ST, STi } },
10569 { "fcomip", { ST, STi } },
10570 { "(bad)", { XX } },
10574 static char *fgrps[][8] = {
10577 "fnop","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10582 "fchs","fabs","(bad)","(bad)","ftst","fxam","(bad)","(bad)",
10587 "fld1","fldl2t","fldl2e","fldpi","fldlg2","fldln2","fldz","(bad)",
10592 "f2xm1","fyl2x","fptan","fpatan","fxtract","fprem1","fdecstp","fincstp",
10597 "fprem","fyl2xp1","fsqrt","fsincos","frndint","fscale","fsin","fcos",
10602 "(bad)","fucompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10607 "feni(287 only)","fdisi(287 only)","fNclex","fNinit",
10608 "fNsetpm(287 only)","(bad)","(bad)","(bad)",
10613 "(bad)","fcompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10618 "fNstsw","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10623 OP_Skip_MODRM (int bytemode ATTRIBUTE_UNUSED,
10624 int sizeflag ATTRIBUTE_UNUSED)
10626 /* Skip mod/rm byte. */
10632 dofloat (int sizeflag)
10634 const struct dis386 *dp;
10635 unsigned char floatop;
10637 floatop = codep[-1];
10639 if (modrm.mod != 3)
10641 int fp_indx = (floatop - 0xd8) * 8 + modrm.reg;
10643 putop (float_mem[fp_indx], sizeflag);
10646 OP_E (float_mem_mode[fp_indx], sizeflag);
10649 /* Skip mod/rm byte. */
10653 dp = &float_reg[floatop - 0xd8][modrm.reg];
10654 if (dp->name == NULL)
10656 putop (fgrps[dp->op[0].bytemode][modrm.rm], sizeflag);
10658 /* Instruction fnstsw is only one with strange arg. */
10659 if (floatop == 0xdf && codep[-1] == 0xe0)
10660 strcpy (op_out[0], names16[0]);
10664 putop (dp->name, sizeflag);
10669 (*dp->op[0].rtn) (dp->op[0].bytemode, sizeflag);
10674 (*dp->op[1].rtn) (dp->op[1].bytemode, sizeflag);
10679 OP_ST (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
10681 oappend ("%st" + intel_syntax);
10685 OP_STi (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
10687 sprintf (scratchbuf, "%%st(%d)", modrm.rm);
10688 oappend (scratchbuf + intel_syntax);
10691 /* Capital letters in template are macros. */
10693 putop (const char *template, int sizeflag)
10698 unsigned int l = 0, len = 1;
10701 #define SAVE_LAST(c) \
10702 if (l < len && l < sizeof (last)) \
10707 for (p = template; *p; p++)
10724 while (*++p != '|')
10725 if (*p == '}' || *p == '\0')
10728 /* Fall through. */
10733 while (*++p != '}')
10744 if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS))
10750 if (sizeflag & SUFFIX_ALWAYS)
10754 if (intel_syntax && !alt)
10756 if ((prefixes & PREFIX_DATA) || (sizeflag & SUFFIX_ALWAYS))
10758 if (sizeflag & DFLAG)
10759 *obufp++ = intel_syntax ? 'd' : 'l';
10761 *obufp++ = intel_syntax ? 'w' : 's';
10762 used_prefixes |= (prefixes & PREFIX_DATA);
10766 if (intel_syntax || !(sizeflag & SUFFIX_ALWAYS))
10769 if (modrm.mod == 3)
10773 else if (sizeflag & DFLAG)
10774 *obufp++ = intel_syntax ? 'd' : 'l';
10777 used_prefixes |= (prefixes & PREFIX_DATA);
10782 case 'E': /* For jcxz/jecxz */
10783 if (address_mode == mode_64bit)
10785 if (sizeflag & AFLAG)
10791 if (sizeflag & AFLAG)
10793 used_prefixes |= (prefixes & PREFIX_ADDR);
10798 if ((prefixes & PREFIX_ADDR) || (sizeflag & SUFFIX_ALWAYS))
10800 if (sizeflag & AFLAG)
10801 *obufp++ = address_mode == mode_64bit ? 'q' : 'l';
10803 *obufp++ = address_mode == mode_64bit ? 'l' : 'w';
10804 used_prefixes |= (prefixes & PREFIX_ADDR);
10808 if (intel_syntax || (obufp[-1] != 's' && !(sizeflag & SUFFIX_ALWAYS)))
10810 if ((rex & REX_W) || (sizeflag & DFLAG))
10814 if (!(rex & REX_W))
10815 used_prefixes |= (prefixes & PREFIX_DATA);
10820 if ((prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_CS
10821 || (prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_DS)
10823 used_prefixes |= prefixes & (PREFIX_CS | PREFIX_DS);
10826 if (prefixes & PREFIX_DS)
10847 if (address_mode == mode_64bit && (sizeflag & SUFFIX_ALWAYS))
10852 /* Fall through. */
10855 if (l != 0 || len != 1)
10863 if (sizeflag & SUFFIX_ALWAYS)
10867 if (intel_mnemonic != cond)
10871 if ((prefixes & PREFIX_FWAIT) == 0)
10874 used_prefixes |= PREFIX_FWAIT;
10880 else if (intel_syntax && (sizeflag & DFLAG))
10884 if (!(rex & REX_W))
10885 used_prefixes |= (prefixes & PREFIX_DATA);
10890 if (address_mode == mode_64bit && (sizeflag & DFLAG))
10895 /* Fall through. */
10899 if ((prefixes & PREFIX_DATA)
10901 || (sizeflag & SUFFIX_ALWAYS))
10908 if (sizeflag & DFLAG)
10913 used_prefixes |= (prefixes & PREFIX_DATA);
10919 if (address_mode == mode_64bit && (sizeflag & DFLAG))
10921 if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS))
10925 /* Fall through. */
10928 if (l == 0 && len == 1)
10931 if (intel_syntax && !alt)
10934 if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS))
10940 if (sizeflag & DFLAG)
10941 *obufp++ = intel_syntax ? 'd' : 'l';
10945 used_prefixes |= (prefixes & PREFIX_DATA);
10950 if (l != 1 || len != 2 || last[0] != 'L')
10956 || (modrm.mod == 3 && !(sizeflag & SUFFIX_ALWAYS)))
10971 else if (sizeflag & DFLAG)
10980 if (intel_syntax && !p[1]
10981 && ((rex & REX_W) || (sizeflag & DFLAG)))
10983 if (!(rex & REX_W))
10984 used_prefixes |= (prefixes & PREFIX_DATA);
10989 if (address_mode == mode_64bit && (sizeflag & DFLAG))
10991 if (sizeflag & SUFFIX_ALWAYS)
10995 /* Fall through. */
10999 if (sizeflag & SUFFIX_ALWAYS)
11005 if (sizeflag & DFLAG)
11009 used_prefixes |= (prefixes & PREFIX_DATA);
11014 if (l != 0 || len != 1)
11019 if (need_vex && vex.prefix)
11021 if (vex.prefix == DATA_PREFIX_OPCODE)
11026 else if (prefixes & PREFIX_DATA)
11030 used_prefixes |= (prefixes & PREFIX_DATA);
11033 if (l == 0 && len == 1)
11035 if (intel_syntax || !(sizeflag & SUFFIX_ALWAYS))
11046 if (l != 1 || len != 2 || last[0] != 'X')
11054 || (modrm.mod == 3 && !(sizeflag & SUFFIX_ALWAYS)))
11056 switch (vex.length)
11069 /* implicit operand size 'l' for i386 or 'q' for x86-64 */
11071 /* operand size flag for cwtl, cbtw */
11080 else if (sizeflag & DFLAG)
11084 if (!(rex & REX_W))
11085 used_prefixes |= (prefixes & PREFIX_DATA);
11095 oappend (const char *s)
11098 obufp += strlen (s);
11104 if (prefixes & PREFIX_CS)
11106 used_prefixes |= PREFIX_CS;
11107 oappend ("%cs:" + intel_syntax);
11109 if (prefixes & PREFIX_DS)
11111 used_prefixes |= PREFIX_DS;
11112 oappend ("%ds:" + intel_syntax);
11114 if (prefixes & PREFIX_SS)
11116 used_prefixes |= PREFIX_SS;
11117 oappend ("%ss:" + intel_syntax);
11119 if (prefixes & PREFIX_ES)
11121 used_prefixes |= PREFIX_ES;
11122 oappend ("%es:" + intel_syntax);
11124 if (prefixes & PREFIX_FS)
11126 used_prefixes |= PREFIX_FS;
11127 oappend ("%fs:" + intel_syntax);
11129 if (prefixes & PREFIX_GS)
11131 used_prefixes |= PREFIX_GS;
11132 oappend ("%gs:" + intel_syntax);
11137 OP_indirE (int bytemode, int sizeflag)
11141 OP_E (bytemode, sizeflag);
11145 print_operand_value (char *buf, int hex, bfd_vma disp)
11147 if (address_mode == mode_64bit)
11155 sprintf_vma (tmp, disp);
11156 for (i = 0; tmp[i] == '0' && tmp[i + 1]; i++);
11157 strcpy (buf + 2, tmp + i);
11161 bfd_signed_vma v = disp;
11168 /* Check for possible overflow on 0x8000000000000000. */
11171 strcpy (buf, "9223372036854775808");
11185 tmp[28 - i] = (v % 10) + '0';
11189 strcpy (buf, tmp + 29 - i);
11195 sprintf (buf, "0x%x", (unsigned int) disp);
11197 sprintf (buf, "%d", (int) disp);
11201 /* Put DISP in BUF as signed hex number. */
11204 print_displacement (char *buf, bfd_vma disp)
11206 bfd_signed_vma val = disp;
11215 /* Check for possible overflow. */
11218 switch (address_mode)
11221 strcpy (buf + j, "0x8000000000000000");
11224 strcpy (buf + j, "0x80000000");
11227 strcpy (buf + j, "0x8000");
11237 sprintf_vma (tmp, val);
11238 for (i = 0; tmp[i] == '0'; i++)
11240 if (tmp[i] == '\0')
11242 strcpy (buf + j, tmp + i);
11246 intel_operand_size (int bytemode, int sizeflag)
11252 oappend ("BYTE PTR ");
11256 oappend ("WORD PTR ");
11259 if (address_mode == mode_64bit && (sizeflag & DFLAG))
11261 oappend ("QWORD PTR ");
11262 used_prefixes |= (prefixes & PREFIX_DATA);
11270 oappend ("QWORD PTR ");
11271 else if ((sizeflag & DFLAG) || bytemode == dq_mode)
11272 oappend ("DWORD PTR ");
11274 oappend ("WORD PTR ");
11275 used_prefixes |= (prefixes & PREFIX_DATA);
11278 if ((rex & REX_W) || (sizeflag & DFLAG))
11280 oappend ("WORD PTR ");
11281 if (!(rex & REX_W))
11282 used_prefixes |= (prefixes & PREFIX_DATA);
11285 if (sizeflag & DFLAG)
11286 oappend ("QWORD PTR ");
11288 oappend ("DWORD PTR ");
11289 used_prefixes |= (prefixes & PREFIX_DATA);
11293 oappend ("DWORD PTR ");
11296 oappend ("QWORD PTR ");
11299 if (address_mode == mode_64bit)
11300 oappend ("QWORD PTR ");
11302 oappend ("DWORD PTR ");
11305 if (sizeflag & DFLAG)
11306 oappend ("FWORD PTR ");
11308 oappend ("DWORD PTR ");
11309 used_prefixes |= (prefixes & PREFIX_DATA);
11312 oappend ("TBYTE PTR ");
11317 switch (vex.length)
11320 oappend ("XMMWORD PTR ");
11323 oappend ("YMMWORD PTR ");
11330 oappend ("XMMWORD PTR ");
11333 oappend ("XMMWORD PTR ");
11339 switch (vex.length)
11342 oappend ("QWORD PTR ");
11345 oappend ("XMMWORD PTR ");
11355 switch (vex.length)
11358 oappend ("QWORD PTR ");
11361 oappend ("YMMWORD PTR ");
11368 oappend ("OWORD PTR ");
11376 OP_E_register (int bytemode, int sizeflag)
11378 int reg = modrm.rm;
11379 const char **names;
11404 names = address_mode == mode_64bit ? names64 : names32;
11407 if (address_mode == mode_64bit && (sizeflag & DFLAG))
11410 used_prefixes |= (prefixes & PREFIX_DATA);
11423 else if ((sizeflag & DFLAG) || bytemode != v_mode)
11427 used_prefixes |= (prefixes & PREFIX_DATA);
11432 oappend (INTERNAL_DISASSEMBLER_ERROR);
11435 oappend (names[reg]);
11439 OP_E_memory (int bytemode, int sizeflag, int has_drex)
11442 int add = (rex & REX_B) ? 8 : 0;
11447 intel_operand_size (bytemode, sizeflag);
11450 if ((sizeflag & AFLAG) || address_mode == mode_64bit)
11452 /* 32/64 bit address mode */
11470 FETCH_DATA (the_info, codep + 1);
11471 index = (*codep >> 3) & 7;
11472 scale = (*codep >> 6) & 3;
11477 haveindex = index != 4;
11480 rbase = base + add;
11482 /* If we have a DREX byte, skip it now
11483 (it has already been handled) */
11486 FETCH_DATA (the_info, codep + 1);
11496 if (address_mode == mode_64bit && !havesib)
11502 FETCH_DATA (the_info, codep + 1);
11504 if ((disp & 0x80) != 0)
11512 /* In 32bit mode, we need index register to tell [offset] from
11513 [eiz*1 + offset]. */
11514 needindex = (havesib
11517 && address_mode == mode_32bit);
11518 havedisp = (havebase
11520 || (havesib && (haveindex || scale != 0)));
11523 if (modrm.mod != 0 || base == 5)
11525 if (havedisp || riprel)
11526 print_displacement (scratchbuf, disp);
11528 print_operand_value (scratchbuf, 1, disp);
11529 oappend (scratchbuf);
11533 oappend (sizeflag & AFLAG ? "(%rip)" : "(%eip)");
11537 if (havebase || haveindex || riprel)
11538 used_prefixes |= PREFIX_ADDR;
11540 if (havedisp || (intel_syntax && riprel))
11542 *obufp++ = open_char;
11543 if (intel_syntax && riprel)
11546 oappend (sizeflag & AFLAG ? "rip" : "eip");
11550 oappend (address_mode == mode_64bit && (sizeflag & AFLAG)
11551 ? names64[rbase] : names32[rbase]);
11554 /* ESP/RSP won't allow index. If base isn't ESP/RSP,
11555 print index to tell base + index from base. */
11559 || (havebase && base != ESP_REG_NUM))
11561 if (!intel_syntax || havebase)
11563 *obufp++ = separator_char;
11567 oappend (address_mode == mode_64bit
11568 && (sizeflag & AFLAG)
11569 ? names64[index] : names32[index]);
11571 oappend (address_mode == mode_64bit
11572 && (sizeflag & AFLAG)
11573 ? index64 : index32);
11575 *obufp++ = scale_char;
11577 sprintf (scratchbuf, "%d", 1 << scale);
11578 oappend (scratchbuf);
11582 && (disp || modrm.mod != 0 || base == 5))
11584 if (!havedisp || (bfd_signed_vma) disp >= 0)
11589 else if (modrm.mod != 1)
11593 disp = - (bfd_signed_vma) disp;
11597 print_displacement (scratchbuf, disp);
11599 print_operand_value (scratchbuf, 1, disp);
11600 oappend (scratchbuf);
11603 *obufp++ = close_char;
11606 else if (intel_syntax)
11608 if (modrm.mod != 0 || base == 5)
11610 if (prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
11611 | PREFIX_ES | PREFIX_FS | PREFIX_GS))
11615 oappend (names_seg[ds_reg - es_reg]);
11618 print_operand_value (scratchbuf, 1, disp);
11619 oappend (scratchbuf);
11624 { /* 16 bit address mode */
11631 if ((disp & 0x8000) != 0)
11636 FETCH_DATA (the_info, codep + 1);
11638 if ((disp & 0x80) != 0)
11643 if ((disp & 0x8000) != 0)
11649 if (modrm.mod != 0 || modrm.rm == 6)
11651 print_displacement (scratchbuf, disp);
11652 oappend (scratchbuf);
11655 if (modrm.mod != 0 || modrm.rm != 6)
11657 *obufp++ = open_char;
11659 oappend (index16[modrm.rm]);
11661 && (disp || modrm.mod != 0 || modrm.rm == 6))
11663 if ((bfd_signed_vma) disp >= 0)
11668 else if (modrm.mod != 1)
11672 disp = - (bfd_signed_vma) disp;
11675 print_displacement (scratchbuf, disp);
11676 oappend (scratchbuf);
11679 *obufp++ = close_char;
11682 else if (intel_syntax)
11684 if (prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
11685 | PREFIX_ES | PREFIX_FS | PREFIX_GS))
11689 oappend (names_seg[ds_reg - es_reg]);
11692 print_operand_value (scratchbuf, 1, disp & 0xffff);
11693 oappend (scratchbuf);
11699 OP_E_extended (int bytemode, int sizeflag, int has_drex)
11701 /* Skip mod/rm byte. */
11705 if (modrm.mod == 3)
11706 OP_E_register (bytemode, sizeflag);
11708 OP_E_memory (bytemode, sizeflag, has_drex);
11712 OP_E (int bytemode, int sizeflag)
11714 OP_E_extended (bytemode, sizeflag, 0);
11719 OP_G (int bytemode, int sizeflag)
11730 oappend (names8rex[modrm.reg + add]);
11732 oappend (names8[modrm.reg + add]);
11735 oappend (names16[modrm.reg + add]);
11738 oappend (names32[modrm.reg + add]);
11741 oappend (names64[modrm.reg + add]);
11750 oappend (names64[modrm.reg + add]);
11751 else if ((sizeflag & DFLAG) || bytemode != v_mode)
11752 oappend (names32[modrm.reg + add]);
11754 oappend (names16[modrm.reg + add]);
11755 used_prefixes |= (prefixes & PREFIX_DATA);
11758 if (address_mode == mode_64bit)
11759 oappend (names64[modrm.reg + add]);
11761 oappend (names32[modrm.reg + add]);
11764 oappend (INTERNAL_DISASSEMBLER_ERROR);
11777 FETCH_DATA (the_info, codep + 8);
11778 a = *codep++ & 0xff;
11779 a |= (*codep++ & 0xff) << 8;
11780 a |= (*codep++ & 0xff) << 16;
11781 a |= (*codep++ & 0xff) << 24;
11782 b = *codep++ & 0xff;
11783 b |= (*codep++ & 0xff) << 8;
11784 b |= (*codep++ & 0xff) << 16;
11785 b |= (*codep++ & 0xff) << 24;
11786 x = a + ((bfd_vma) b << 32);
11794 static bfd_signed_vma
11797 bfd_signed_vma x = 0;
11799 FETCH_DATA (the_info, codep + 4);
11800 x = *codep++ & (bfd_signed_vma) 0xff;
11801 x |= (*codep++ & (bfd_signed_vma) 0xff) << 8;
11802 x |= (*codep++ & (bfd_signed_vma) 0xff) << 16;
11803 x |= (*codep++ & (bfd_signed_vma) 0xff) << 24;
11807 static bfd_signed_vma
11810 bfd_signed_vma x = 0;
11812 FETCH_DATA (the_info, codep + 4);
11813 x = *codep++ & (bfd_signed_vma) 0xff;
11814 x |= (*codep++ & (bfd_signed_vma) 0xff) << 8;
11815 x |= (*codep++ & (bfd_signed_vma) 0xff) << 16;
11816 x |= (*codep++ & (bfd_signed_vma) 0xff) << 24;
11818 x = (x ^ ((bfd_signed_vma) 1 << 31)) - ((bfd_signed_vma) 1 << 31);
11828 FETCH_DATA (the_info, codep + 2);
11829 x = *codep++ & 0xff;
11830 x |= (*codep++ & 0xff) << 8;
11835 set_op (bfd_vma op, int riprel)
11837 op_index[op_ad] = op_ad;
11838 if (address_mode == mode_64bit)
11840 op_address[op_ad] = op;
11841 op_riprel[op_ad] = riprel;
11845 /* Mask to get a 32-bit address. */
11846 op_address[op_ad] = op & 0xffffffff;
11847 op_riprel[op_ad] = riprel & 0xffffffff;
11852 OP_REG (int code, int sizeflag)
11864 case ax_reg: case cx_reg: case dx_reg: case bx_reg:
11865 case sp_reg: case bp_reg: case si_reg: case di_reg:
11866 s = names16[code - ax_reg + add];
11868 case es_reg: case ss_reg: case cs_reg:
11869 case ds_reg: case fs_reg: case gs_reg:
11870 s = names_seg[code - es_reg + add];
11872 case al_reg: case ah_reg: case cl_reg: case ch_reg:
11873 case dl_reg: case dh_reg: case bl_reg: case bh_reg:
11876 s = names8rex[code - al_reg + add];
11878 s = names8[code - al_reg];
11880 case rAX_reg: case rCX_reg: case rDX_reg: case rBX_reg:
11881 case rSP_reg: case rBP_reg: case rSI_reg: case rDI_reg:
11882 if (address_mode == mode_64bit && (sizeflag & DFLAG))
11884 s = names64[code - rAX_reg + add];
11887 code += eAX_reg - rAX_reg;
11888 /* Fall through. */
11889 case eAX_reg: case eCX_reg: case eDX_reg: case eBX_reg:
11890 case eSP_reg: case eBP_reg: case eSI_reg: case eDI_reg:
11893 s = names64[code - eAX_reg + add];
11894 else if (sizeflag & DFLAG)
11895 s = names32[code - eAX_reg + add];
11897 s = names16[code - eAX_reg + add];
11898 used_prefixes |= (prefixes & PREFIX_DATA);
11901 s = INTERNAL_DISASSEMBLER_ERROR;
11908 OP_IMREG (int code, int sizeflag)
11920 case ax_reg: case cx_reg: case dx_reg: case bx_reg:
11921 case sp_reg: case bp_reg: case si_reg: case di_reg:
11922 s = names16[code - ax_reg];
11924 case es_reg: case ss_reg: case cs_reg:
11925 case ds_reg: case fs_reg: case gs_reg:
11926 s = names_seg[code - es_reg];
11928 case al_reg: case ah_reg: case cl_reg: case ch_reg:
11929 case dl_reg: case dh_reg: case bl_reg: case bh_reg:
11932 s = names8rex[code - al_reg];
11934 s = names8[code - al_reg];
11936 case eAX_reg: case eCX_reg: case eDX_reg: case eBX_reg:
11937 case eSP_reg: case eBP_reg: case eSI_reg: case eDI_reg:
11940 s = names64[code - eAX_reg];
11941 else if (sizeflag & DFLAG)
11942 s = names32[code - eAX_reg];
11944 s = names16[code - eAX_reg];
11945 used_prefixes |= (prefixes & PREFIX_DATA);
11947 case z_mode_ax_reg:
11948 if ((rex & REX_W) || (sizeflag & DFLAG))
11952 if (!(rex & REX_W))
11953 used_prefixes |= (prefixes & PREFIX_DATA);
11956 s = INTERNAL_DISASSEMBLER_ERROR;
11963 OP_I (int bytemode, int sizeflag)
11966 bfd_signed_vma mask = -1;
11971 FETCH_DATA (the_info, codep + 1);
11976 if (address_mode == mode_64bit)
11981 /* Fall through. */
11986 else if (sizeflag & DFLAG)
11996 used_prefixes |= (prefixes & PREFIX_DATA);
12007 oappend (INTERNAL_DISASSEMBLER_ERROR);
12012 scratchbuf[0] = '$';
12013 print_operand_value (scratchbuf + 1, 1, op);
12014 oappend (scratchbuf + intel_syntax);
12015 scratchbuf[0] = '\0';
12019 OP_I64 (int bytemode, int sizeflag)
12022 bfd_signed_vma mask = -1;
12024 if (address_mode != mode_64bit)
12026 OP_I (bytemode, sizeflag);
12033 FETCH_DATA (the_info, codep + 1);
12041 else if (sizeflag & DFLAG)
12051 used_prefixes |= (prefixes & PREFIX_DATA);
12058 oappend (INTERNAL_DISASSEMBLER_ERROR);
12063 scratchbuf[0] = '$';
12064 print_operand_value (scratchbuf + 1, 1, op);
12065 oappend (scratchbuf + intel_syntax);
12066 scratchbuf[0] = '\0';
12070 OP_sI (int bytemode, int sizeflag)
12073 bfd_signed_vma mask = -1;
12078 FETCH_DATA (the_info, codep + 1);
12080 if ((op & 0x80) != 0)
12088 else if (sizeflag & DFLAG)
12097 if ((op & 0x8000) != 0)
12100 used_prefixes |= (prefixes & PREFIX_DATA);
12105 if ((op & 0x8000) != 0)
12109 oappend (INTERNAL_DISASSEMBLER_ERROR);
12113 scratchbuf[0] = '$';
12114 print_operand_value (scratchbuf + 1, 1, op);
12115 oappend (scratchbuf + intel_syntax);
12119 OP_J (int bytemode, int sizeflag)
12123 bfd_vma segment = 0;
12128 FETCH_DATA (the_info, codep + 1);
12130 if ((disp & 0x80) != 0)
12134 if ((sizeflag & DFLAG) || (rex & REX_W))
12139 if ((disp & 0x8000) != 0)
12141 /* In 16bit mode, address is wrapped around at 64k within
12142 the same segment. Otherwise, a data16 prefix on a jump
12143 instruction means that the pc is masked to 16 bits after
12144 the displacement is added! */
12146 if ((prefixes & PREFIX_DATA) == 0)
12147 segment = ((start_pc + codep - start_codep)
12148 & ~((bfd_vma) 0xffff));
12150 used_prefixes |= (prefixes & PREFIX_DATA);
12153 oappend (INTERNAL_DISASSEMBLER_ERROR);
12156 disp = ((start_pc + codep - start_codep + disp) & mask) | segment;
12158 print_operand_value (scratchbuf, 1, disp);
12159 oappend (scratchbuf);
12163 OP_SEG (int bytemode, int sizeflag)
12165 if (bytemode == w_mode)
12166 oappend (names_seg[modrm.reg]);
12168 OP_E (modrm.mod == 3 ? bytemode : w_mode, sizeflag);
12172 OP_DIR (int dummy ATTRIBUTE_UNUSED, int sizeflag)
12176 if (sizeflag & DFLAG)
12186 used_prefixes |= (prefixes & PREFIX_DATA);
12188 sprintf (scratchbuf, "0x%x:0x%x", seg, offset);
12190 sprintf (scratchbuf, "$0x%x,$0x%x", seg, offset);
12191 oappend (scratchbuf);
12195 OP_OFF (int bytemode, int sizeflag)
12199 if (intel_syntax && (sizeflag & SUFFIX_ALWAYS))
12200 intel_operand_size (bytemode, sizeflag);
12203 if ((sizeflag & AFLAG) || address_mode == mode_64bit)
12210 if (!(prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
12211 | PREFIX_ES | PREFIX_FS | PREFIX_GS)))
12213 oappend (names_seg[ds_reg - es_reg]);
12217 print_operand_value (scratchbuf, 1, off);
12218 oappend (scratchbuf);
12222 OP_OFF64 (int bytemode, int sizeflag)
12226 if (address_mode != mode_64bit
12227 || (prefixes & PREFIX_ADDR))
12229 OP_OFF (bytemode, sizeflag);
12233 if (intel_syntax && (sizeflag & SUFFIX_ALWAYS))
12234 intel_operand_size (bytemode, sizeflag);
12241 if (!(prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
12242 | PREFIX_ES | PREFIX_FS | PREFIX_GS)))
12244 oappend (names_seg[ds_reg - es_reg]);
12248 print_operand_value (scratchbuf, 1, off);
12249 oappend (scratchbuf);
12253 ptr_reg (int code, int sizeflag)
12257 *obufp++ = open_char;
12258 used_prefixes |= (prefixes & PREFIX_ADDR);
12259 if (address_mode == mode_64bit)
12261 if (!(sizeflag & AFLAG))
12262 s = names32[code - eAX_reg];
12264 s = names64[code - eAX_reg];
12266 else if (sizeflag & AFLAG)
12267 s = names32[code - eAX_reg];
12269 s = names16[code - eAX_reg];
12271 *obufp++ = close_char;
12276 OP_ESreg (int code, int sizeflag)
12282 case 0x6d: /* insw/insl */
12283 intel_operand_size (z_mode, sizeflag);
12285 case 0xa5: /* movsw/movsl/movsq */
12286 case 0xa7: /* cmpsw/cmpsl/cmpsq */
12287 case 0xab: /* stosw/stosl */
12288 case 0xaf: /* scasw/scasl */
12289 intel_operand_size (v_mode, sizeflag);
12292 intel_operand_size (b_mode, sizeflag);
12295 oappend ("%es:" + intel_syntax);
12296 ptr_reg (code, sizeflag);
12300 OP_DSreg (int code, int sizeflag)
12306 case 0x6f: /* outsw/outsl */
12307 intel_operand_size (z_mode, sizeflag);
12309 case 0xa5: /* movsw/movsl/movsq */
12310 case 0xa7: /* cmpsw/cmpsl/cmpsq */
12311 case 0xad: /* lodsw/lodsl/lodsq */
12312 intel_operand_size (v_mode, sizeflag);
12315 intel_operand_size (b_mode, sizeflag);
12324 | PREFIX_GS)) == 0)
12325 prefixes |= PREFIX_DS;
12327 ptr_reg (code, sizeflag);
12331 OP_C (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12339 else if (address_mode != mode_64bit && (prefixes & PREFIX_LOCK))
12341 lock_prefix = NULL;
12342 used_prefixes |= PREFIX_LOCK;
12347 sprintf (scratchbuf, "%%cr%d", modrm.reg + add);
12348 oappend (scratchbuf + intel_syntax);
12352 OP_D (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12361 sprintf (scratchbuf, "db%d", modrm.reg + add);
12363 sprintf (scratchbuf, "%%db%d", modrm.reg + add);
12364 oappend (scratchbuf);
12368 OP_T (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12370 sprintf (scratchbuf, "%%tr%d", modrm.reg);
12371 oappend (scratchbuf + intel_syntax);
12375 OP_R (int bytemode, int sizeflag)
12377 if (modrm.mod == 3)
12378 OP_E (bytemode, sizeflag);
12384 OP_MMX (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12386 used_prefixes |= (prefixes & PREFIX_DATA);
12387 if (prefixes & PREFIX_DATA)
12395 sprintf (scratchbuf, "%%xmm%d", modrm.reg + add);
12398 sprintf (scratchbuf, "%%mm%d", modrm.reg);
12399 oappend (scratchbuf + intel_syntax);
12403 OP_XMM (int bytemode, int sizeflag ATTRIBUTE_UNUSED)
12411 if (need_vex && bytemode != xmm_mode)
12413 switch (vex.length)
12416 sprintf (scratchbuf, "%%xmm%d", modrm.reg + add);
12419 sprintf (scratchbuf, "%%ymm%d", modrm.reg + add);
12426 sprintf (scratchbuf, "%%xmm%d", modrm.reg + add);
12427 oappend (scratchbuf + intel_syntax);
12431 OP_EM (int bytemode, int sizeflag)
12433 if (modrm.mod != 3)
12435 if (intel_syntax && bytemode == v_mode)
12437 bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode;
12438 used_prefixes |= (prefixes & PREFIX_DATA);
12440 OP_E (bytemode, sizeflag);
12444 /* Skip mod/rm byte. */
12447 used_prefixes |= (prefixes & PREFIX_DATA);
12448 if (prefixes & PREFIX_DATA)
12457 sprintf (scratchbuf, "%%xmm%d", modrm.rm + add);
12460 sprintf (scratchbuf, "%%mm%d", modrm.rm);
12461 oappend (scratchbuf + intel_syntax);
12464 /* cvt* are the only instructions in sse2 which have
12465 both SSE and MMX operands and also have 0x66 prefix
12466 in their opcode. 0x66 was originally used to differentiate
12467 between SSE and MMX instruction(operands). So we have to handle the
12468 cvt* separately using OP_EMC and OP_MXC */
12470 OP_EMC (int bytemode, int sizeflag)
12472 if (modrm.mod != 3)
12474 if (intel_syntax && bytemode == v_mode)
12476 bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode;
12477 used_prefixes |= (prefixes & PREFIX_DATA);
12479 OP_E (bytemode, sizeflag);
12483 /* Skip mod/rm byte. */
12486 used_prefixes |= (prefixes & PREFIX_DATA);
12487 sprintf (scratchbuf, "%%mm%d", modrm.rm);
12488 oappend (scratchbuf + intel_syntax);
12492 OP_MXC (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12494 used_prefixes |= (prefixes & PREFIX_DATA);
12495 sprintf (scratchbuf, "%%mm%d", modrm.reg);
12496 oappend (scratchbuf + intel_syntax);
12500 OP_EX (int bytemode, int sizeflag)
12503 if (modrm.mod != 3)
12505 OP_E (bytemode, sizeflag);
12514 /* Skip mod/rm byte. */
12518 && bytemode != xmm_mode
12519 && bytemode != xmmq_mode)
12521 switch (vex.length)
12524 sprintf (scratchbuf, "%%xmm%d", modrm.rm + add);
12527 sprintf (scratchbuf, "%%ymm%d", modrm.rm + add);
12534 sprintf (scratchbuf, "%%xmm%d", modrm.rm + add);
12535 oappend (scratchbuf + intel_syntax);
12539 OP_MS (int bytemode, int sizeflag)
12541 if (modrm.mod == 3)
12542 OP_EM (bytemode, sizeflag);
12548 OP_XS (int bytemode, int sizeflag)
12550 if (modrm.mod == 3)
12551 OP_EX (bytemode, sizeflag);
12557 OP_M (int bytemode, int sizeflag)
12559 if (modrm.mod == 3)
12560 /* bad bound,lea,lds,les,lfs,lgs,lss,cmpxchg8b,vmptrst modrm */
12563 OP_E (bytemode, sizeflag);
12567 OP_0f07 (int bytemode, int sizeflag)
12569 if (modrm.mod != 3 || modrm.rm != 0)
12572 OP_E (bytemode, sizeflag);
12575 /* NOP is an alias of "xchg %ax,%ax" in 16bit mode, "xchg %eax,%eax" in
12576 32bit mode and "xchg %rax,%rax" in 64bit mode. */
12579 NOP_Fixup1 (int bytemode, int sizeflag)
12581 if ((prefixes & PREFIX_DATA) != 0
12584 && address_mode == mode_64bit))
12585 OP_REG (bytemode, sizeflag);
12587 strcpy (obuf, "nop");
12591 NOP_Fixup2 (int bytemode, int sizeflag)
12593 if ((prefixes & PREFIX_DATA) != 0
12596 && address_mode == mode_64bit))
12597 OP_IMREG (bytemode, sizeflag);
12600 static const char *const Suffix3DNow[] = {
12601 /* 00 */ NULL, NULL, NULL, NULL,
12602 /* 04 */ NULL, NULL, NULL, NULL,
12603 /* 08 */ NULL, NULL, NULL, NULL,
12604 /* 0C */ "pi2fw", "pi2fd", NULL, NULL,
12605 /* 10 */ NULL, NULL, NULL, NULL,
12606 /* 14 */ NULL, NULL, NULL, NULL,
12607 /* 18 */ NULL, NULL, NULL, NULL,
12608 /* 1C */ "pf2iw", "pf2id", NULL, NULL,
12609 /* 20 */ NULL, NULL, NULL, NULL,
12610 /* 24 */ NULL, NULL, NULL, NULL,
12611 /* 28 */ NULL, NULL, NULL, NULL,
12612 /* 2C */ NULL, NULL, NULL, NULL,
12613 /* 30 */ NULL, NULL, NULL, NULL,
12614 /* 34 */ NULL, NULL, NULL, NULL,
12615 /* 38 */ NULL, NULL, NULL, NULL,
12616 /* 3C */ NULL, NULL, NULL, NULL,
12617 /* 40 */ NULL, NULL, NULL, NULL,
12618 /* 44 */ NULL, NULL, NULL, NULL,
12619 /* 48 */ NULL, NULL, NULL, NULL,
12620 /* 4C */ NULL, NULL, NULL, NULL,
12621 /* 50 */ NULL, NULL, NULL, NULL,
12622 /* 54 */ NULL, NULL, NULL, NULL,
12623 /* 58 */ NULL, NULL, NULL, NULL,
12624 /* 5C */ NULL, NULL, NULL, NULL,
12625 /* 60 */ NULL, NULL, NULL, NULL,
12626 /* 64 */ NULL, NULL, NULL, NULL,
12627 /* 68 */ NULL, NULL, NULL, NULL,
12628 /* 6C */ NULL, NULL, NULL, NULL,
12629 /* 70 */ NULL, NULL, NULL, NULL,
12630 /* 74 */ NULL, NULL, NULL, NULL,
12631 /* 78 */ NULL, NULL, NULL, NULL,
12632 /* 7C */ NULL, NULL, NULL, NULL,
12633 /* 80 */ NULL, NULL, NULL, NULL,
12634 /* 84 */ NULL, NULL, NULL, NULL,
12635 /* 88 */ NULL, NULL, "pfnacc", NULL,
12636 /* 8C */ NULL, NULL, "pfpnacc", NULL,
12637 /* 90 */ "pfcmpge", NULL, NULL, NULL,
12638 /* 94 */ "pfmin", NULL, "pfrcp", "pfrsqrt",
12639 /* 98 */ NULL, NULL, "pfsub", NULL,
12640 /* 9C */ NULL, NULL, "pfadd", NULL,
12641 /* A0 */ "pfcmpgt", NULL, NULL, NULL,
12642 /* A4 */ "pfmax", NULL, "pfrcpit1", "pfrsqit1",
12643 /* A8 */ NULL, NULL, "pfsubr", NULL,
12644 /* AC */ NULL, NULL, "pfacc", NULL,
12645 /* B0 */ "pfcmpeq", NULL, NULL, NULL,
12646 /* B4 */ "pfmul", NULL, "pfrcpit2", "pmulhrw",
12647 /* B8 */ NULL, NULL, NULL, "pswapd",
12648 /* BC */ NULL, NULL, NULL, "pavgusb",
12649 /* C0 */ NULL, NULL, NULL, NULL,
12650 /* C4 */ NULL, NULL, NULL, NULL,
12651 /* C8 */ NULL, NULL, NULL, NULL,
12652 /* CC */ NULL, NULL, NULL, NULL,
12653 /* D0 */ NULL, NULL, NULL, NULL,
12654 /* D4 */ NULL, NULL, NULL, NULL,
12655 /* D8 */ NULL, NULL, NULL, NULL,
12656 /* DC */ NULL, NULL, NULL, NULL,
12657 /* E0 */ NULL, NULL, NULL, NULL,
12658 /* E4 */ NULL, NULL, NULL, NULL,
12659 /* E8 */ NULL, NULL, NULL, NULL,
12660 /* EC */ NULL, NULL, NULL, NULL,
12661 /* F0 */ NULL, NULL, NULL, NULL,
12662 /* F4 */ NULL, NULL, NULL, NULL,
12663 /* F8 */ NULL, NULL, NULL, NULL,
12664 /* FC */ NULL, NULL, NULL, NULL,
12668 OP_3DNowSuffix (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12670 const char *mnemonic;
12672 FETCH_DATA (the_info, codep + 1);
12673 /* AMD 3DNow! instructions are specified by an opcode suffix in the
12674 place where an 8-bit immediate would normally go. ie. the last
12675 byte of the instruction. */
12676 obufp = obuf + strlen (obuf);
12677 mnemonic = Suffix3DNow[*codep++ & 0xff];
12679 oappend (mnemonic);
12682 /* Since a variable sized modrm/sib chunk is between the start
12683 of the opcode (0x0f0f) and the opcode suffix, we need to do
12684 all the modrm processing first, and don't know until now that
12685 we have a bad opcode. This necessitates some cleaning up. */
12686 op_out[0][0] = '\0';
12687 op_out[1][0] = '\0';
12692 static const char *simd_cmp_op[] = {
12704 CMP_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12706 unsigned int cmp_type;
12708 FETCH_DATA (the_info, codep + 1);
12709 cmp_type = *codep++ & 0xff;
12710 if (cmp_type < ARRAY_SIZE (simd_cmp_op))
12713 char *p = obuf + strlen (obuf) - 2;
12717 sprintf (p, "%s%s", simd_cmp_op[cmp_type], suffix);
12721 /* We have a reserved extension byte. Output it directly. */
12722 scratchbuf[0] = '$';
12723 print_operand_value (scratchbuf + 1, 1, cmp_type);
12724 oappend (scratchbuf + intel_syntax);
12725 scratchbuf[0] = '\0';
12730 OP_Mwait (int bytemode ATTRIBUTE_UNUSED,
12731 int sizeflag ATTRIBUTE_UNUSED)
12733 /* mwait %eax,%ecx */
12736 const char **names = (address_mode == mode_64bit
12737 ? names64 : names32);
12738 strcpy (op_out[0], names[0]);
12739 strcpy (op_out[1], names[1]);
12740 two_source_ops = 1;
12742 /* Skip mod/rm byte. */
12748 OP_Monitor (int bytemode ATTRIBUTE_UNUSED,
12749 int sizeflag ATTRIBUTE_UNUSED)
12751 /* monitor %eax,%ecx,%edx" */
12754 const char **op1_names;
12755 const char **names = (address_mode == mode_64bit
12756 ? names64 : names32);
12758 if (!(prefixes & PREFIX_ADDR))
12759 op1_names = (address_mode == mode_16bit
12760 ? names16 : names);
12763 /* Remove "addr16/addr32". */
12764 addr_prefix = NULL;
12765 op1_names = (address_mode != mode_32bit
12766 ? names32 : names16);
12767 used_prefixes |= PREFIX_ADDR;
12769 strcpy (op_out[0], op1_names[0]);
12770 strcpy (op_out[1], names[1]);
12771 strcpy (op_out[2], names[2]);
12772 two_source_ops = 1;
12774 /* Skip mod/rm byte. */
12782 /* Throw away prefixes and 1st. opcode byte. */
12783 codep = insn_codep + 1;
12788 REP_Fixup (int bytemode, int sizeflag)
12790 /* The 0xf3 prefix should be displayed as "rep" for ins, outs, movs,
12792 if (prefixes & PREFIX_REPZ)
12793 repz_prefix = "rep ";
12800 OP_IMREG (bytemode, sizeflag);
12803 OP_ESreg (bytemode, sizeflag);
12806 OP_DSreg (bytemode, sizeflag);
12815 CMPXCHG8B_Fixup (int bytemode, int sizeflag)
12820 /* Change cmpxchg8b to cmpxchg16b. */
12821 char *p = obuf + strlen (obuf) - 2;
12825 OP_M (bytemode, sizeflag);
12829 XMM_Fixup (int reg, int sizeflag ATTRIBUTE_UNUSED)
12833 switch (vex.length)
12836 sprintf (scratchbuf, "%%xmm%d", reg);
12839 sprintf (scratchbuf, "%%ymm%d", reg);
12846 sprintf (scratchbuf, "%%xmm%d", reg);
12847 oappend (scratchbuf + intel_syntax);
12851 CRC32_Fixup (int bytemode, int sizeflag)
12853 /* Add proper suffix to "crc32". */
12854 char *p = obuf + strlen (obuf);
12871 else if (sizeflag & DFLAG)
12875 used_prefixes |= (prefixes & PREFIX_DATA);
12878 oappend (INTERNAL_DISASSEMBLER_ERROR);
12883 if (modrm.mod == 3)
12887 /* Skip mod/rm byte. */
12892 add = (rex & REX_B) ? 8 : 0;
12893 if (bytemode == b_mode)
12897 oappend (names8rex[modrm.rm + add]);
12899 oappend (names8[modrm.rm + add]);
12905 oappend (names64[modrm.rm + add]);
12906 else if ((prefixes & PREFIX_DATA))
12907 oappend (names16[modrm.rm + add]);
12909 oappend (names32[modrm.rm + add]);
12913 OP_E (bytemode, sizeflag);
12916 /* Print a DREX argument as either a register or memory operation. */
12918 print_drex_arg (unsigned int reg, int bytemode, int sizeflag)
12920 if (reg == DREX_REG_UNKNOWN)
12923 else if (reg != DREX_REG_MEMORY)
12925 sprintf (scratchbuf, "%%xmm%d", reg);
12926 oappend (scratchbuf + intel_syntax);
12930 OP_E_extended (bytemode, sizeflag, 1);
12933 /* SSE5 instructions that have 4 arguments are encoded as:
12934 0f 24 <sub-opcode> <modrm> <optional-sib> <drex> <offset>.
12936 The <sub-opcode> byte has 1 bit (0x4) that is combined with 1 bit in
12937 the DREX field (0x8) to determine how the arguments are laid out.
12938 The destination register must be the same register as one of the
12939 inputs, and it is encoded in the DREX byte. No REX prefix is used
12940 for these instructions, since the DREX field contains the 3 extension
12941 bits provided by the REX prefix.
12943 The bytemode argument adds 2 extra bits for passing extra information:
12944 DREX_OC1 -- Set the OC1 bit to indicate dest == 1st arg
12945 DREX_NO_OC0 -- OC0 in DREX is invalid
12946 (but pretend it is set). */
12949 OP_DREX4 (int flag_bytemode, int sizeflag)
12951 unsigned int drex_byte;
12952 unsigned int regs[4];
12953 unsigned int modrm_regmem;
12954 unsigned int modrm_reg;
12955 unsigned int drex_reg;
12957 int rex_save = rex;
12958 int rex_used_save = rex_used;
12960 int oc1 = (flag_bytemode & DREX_OC1) ? 2 : 0;
12964 bytemode = flag_bytemode & ~ DREX_MASK;
12966 for (i = 0; i < 4; i++)
12967 regs[i] = DREX_REG_UNKNOWN;
12969 /* Determine if we have a SIB byte in addition to MODRM before the
12971 if (((sizeflag & AFLAG) || address_mode == mode_64bit)
12972 && (modrm.mod != 3)
12973 && (modrm.rm == 4))
12976 /* Get the DREX byte. */
12977 FETCH_DATA (the_info, codep + 2 + has_sib);
12978 drex_byte = codep[has_sib+1];
12979 drex_reg = DREX_XMM (drex_byte);
12980 modrm_reg = modrm.reg + ((drex_byte & REX_R) ? 8 : 0);
12982 /* Is OC0 legal? If not, hardwire oc0 == 1. */
12983 if (flag_bytemode & DREX_NO_OC0)
12986 if (DREX_OC0 (drex_byte))
12990 oc0 = DREX_OC0 (drex_byte);
12992 if (modrm.mod == 3)
12994 /* regmem == register */
12995 modrm_regmem = modrm.rm + ((drex_byte & REX_B) ? 8 : 0);
12996 rex = rex_used = 0;
12997 /* skip modrm/drex since we don't call OP_E_extended */
13002 /* regmem == memory, fill in appropriate REX bits */
13003 modrm_regmem = DREX_REG_MEMORY;
13004 rex = drex_byte & (REX_B | REX_X | REX_R);
13010 /* Based on the OC1/OC0 bits, lay out the arguments in the correct
13019 regs[0] = modrm_regmem;
13020 regs[1] = modrm_reg;
13021 regs[2] = drex_reg;
13022 regs[3] = drex_reg;
13026 regs[0] = modrm_reg;
13027 regs[1] = modrm_regmem;
13028 regs[2] = drex_reg;
13029 regs[3] = drex_reg;
13033 regs[0] = drex_reg;
13034 regs[1] = modrm_regmem;
13035 regs[2] = modrm_reg;
13036 regs[3] = drex_reg;
13040 regs[0] = drex_reg;
13041 regs[1] = modrm_reg;
13042 regs[2] = modrm_regmem;
13043 regs[3] = drex_reg;
13047 /* Print out the arguments. */
13048 for (i = 0; i < 4; i++)
13050 int j = (intel_syntax) ? 3 - i : i;
13057 print_drex_arg (regs[j], bytemode, sizeflag);
13061 rex_used = rex_used_save;
13064 /* SSE5 instructions that have 3 arguments, and are encoded as:
13065 0f 24 <sub-opcode> <modrm> <optional-sib> <drex> <offset> (or)
13066 0f 25 <sub-opcode> <modrm> <optional-sib> <drex> <offset> <cmp-byte>
13068 The DREX field has 1 bit (0x8) to determine how the arguments are
13069 laid out. The destination register is encoded in the DREX byte.
13070 No REX prefix is used for these instructions, since the DREX field
13071 contains the 3 extension bits provided by the REX prefix. */
13074 OP_DREX3 (int flag_bytemode, int sizeflag)
13076 unsigned int drex_byte;
13077 unsigned int regs[3];
13078 unsigned int modrm_regmem;
13079 unsigned int modrm_reg;
13080 unsigned int drex_reg;
13082 int rex_save = rex;
13083 int rex_used_save = rex_used;
13088 bytemode = flag_bytemode & ~ DREX_MASK;
13090 for (i = 0; i < 3; i++)
13091 regs[i] = DREX_REG_UNKNOWN;
13093 /* Determine if we have a SIB byte in addition to MODRM before the
13095 if (((sizeflag & AFLAG) || address_mode == mode_64bit)
13096 && (modrm.mod != 3)
13097 && (modrm.rm == 4))
13100 /* Get the DREX byte. */
13101 FETCH_DATA (the_info, codep + 2 + has_sib);
13102 drex_byte = codep[has_sib+1];
13103 drex_reg = DREX_XMM (drex_byte);
13104 modrm_reg = modrm.reg + ((drex_byte & REX_R) ? 8 : 0);
13106 /* Is OC0 legal? If not, hardwire oc0 == 0 */
13107 oc0 = DREX_OC0 (drex_byte);
13108 if ((flag_bytemode & DREX_NO_OC0) && oc0)
13111 if (modrm.mod == 3)
13113 /* regmem == register */
13114 modrm_regmem = modrm.rm + ((drex_byte & REX_B) ? 8 : 0);
13115 rex = rex_used = 0;
13116 /* skip modrm/drex since we don't call OP_E_extended. */
13121 /* regmem == memory, fill in appropriate REX bits. */
13122 modrm_regmem = DREX_REG_MEMORY;
13123 rex = drex_byte & (REX_B | REX_X | REX_R);
13129 /* Based on the OC1/OC0 bits, lay out the arguments in the correct
13138 regs[0] = modrm_regmem;
13139 regs[1] = modrm_reg;
13140 regs[2] = drex_reg;
13144 regs[0] = modrm_reg;
13145 regs[1] = modrm_regmem;
13146 regs[2] = drex_reg;
13150 /* Print out the arguments. */
13151 for (i = 0; i < 3; i++)
13153 int j = (intel_syntax) ? 2 - i : i;
13160 print_drex_arg (regs[j], bytemode, sizeflag);
13164 rex_used = rex_used_save;
13167 /* Emit a floating point comparison for comp<xx> instructions. */
13170 OP_DREX_FCMP (int bytemode ATTRIBUTE_UNUSED,
13171 int sizeflag ATTRIBUTE_UNUSED)
13173 unsigned char byte;
13175 static const char *const cmp_test[] = {
13194 FETCH_DATA (the_info, codep + 1);
13195 byte = *codep & 0xff;
13197 if (byte >= ARRAY_SIZE (cmp_test)
13202 /* The instruction isn't one we know about, so just append the
13203 extension byte as a numeric value. */
13209 sprintf (scratchbuf, "com%s%s", cmp_test[byte], obuf+3);
13210 strcpy (obuf, scratchbuf);
13215 /* Emit an integer point comparison for pcom<xx> instructions,
13216 rewriting the instruction to have the test inside of it. */
13219 OP_DREX_ICMP (int bytemode ATTRIBUTE_UNUSED,
13220 int sizeflag ATTRIBUTE_UNUSED)
13222 unsigned char byte;
13224 static const char *const cmp_test[] = {
13235 FETCH_DATA (the_info, codep + 1);
13236 byte = *codep & 0xff;
13238 if (byte >= ARRAY_SIZE (cmp_test)
13244 /* The instruction isn't one we know about, so just print the
13245 comparison test byte as a numeric value. */
13251 sprintf (scratchbuf, "pcom%s%s", cmp_test[byte], obuf+4);
13252 strcpy (obuf, scratchbuf);
13257 /* Display the destination register operand for instructions with
13261 OP_VEX (int bytemode, int sizeflag ATTRIBUTE_UNUSED)
13269 switch (vex.length)
13282 sprintf (scratchbuf, "%%xmm%d", vex.register_specifier);
13295 sprintf (scratchbuf, "%%ymm%d", vex.register_specifier);
13301 oappend (scratchbuf + intel_syntax);
13304 /* Get the VEX immediate byte without moving codep. */
13306 static unsigned char
13307 get_vex_imm8 (int sizeflag)
13309 int bytes_before_imm = 0;
13311 /* Skip mod/rm byte. */
13315 if (modrm.mod != 3)
13317 /* There are SIB/displacement bytes. */
13318 if ((sizeflag & AFLAG) || address_mode == mode_64bit)
13320 /* 32/64 bit address mode */
13321 int base = modrm.rm;
13323 /* Check SIB byte. */
13326 FETCH_DATA (the_info, codep + 1);
13328 bytes_before_imm++;
13334 /* When modrm.rm == 5 or modrm.rm == 4 and base in
13335 SIB == 5, there is a 4 byte displacement. */
13337 /* No displacement. */
13340 /* 4 byte displacement. */
13341 bytes_before_imm += 4;
13344 /* 1 byte displacement. */
13345 bytes_before_imm++;
13350 { /* 16 bit address mode */
13354 /* When modrm.rm == 6, there is a 2 byte displacement. */
13356 /* No displacement. */
13359 /* 2 byte displacement. */
13360 bytes_before_imm += 2;
13363 /* 1 byte displacement. */
13364 bytes_before_imm++;
13370 FETCH_DATA (the_info, codep + bytes_before_imm + 1);
13371 return codep [bytes_before_imm];
13375 OP_EX_VexReg (int bytemode, int sizeflag, int reg)
13377 if (reg == -1 && modrm.mod != 3)
13379 OP_E_memory (bytemode, sizeflag, 0);
13391 else if (reg > 7 && address_mode != mode_64bit)
13395 switch (vex.length)
13398 sprintf (scratchbuf, "%%xmm%d", reg);
13401 sprintf (scratchbuf, "%%ymm%d", reg);
13406 oappend (scratchbuf + intel_syntax);
13410 OP_EX_VexImmW (int bytemode, int sizeflag)
13413 static unsigned char vex_imm8;
13417 vex_imm8 = get_vex_imm8 (sizeflag);
13419 reg = vex_imm8 >> 4;
13425 reg = vex_imm8 >> 4;
13428 OP_EX_VexReg (bytemode, sizeflag, reg);
13432 OP_EX_VexW (int bytemode, int sizeflag)
13440 reg = vex.register_specifier;
13445 reg = vex.register_specifier;
13448 OP_EX_VexReg (bytemode, sizeflag, reg);
13452 OP_VEX_FMA (int bytemode, int sizeflag)
13454 int reg = get_vex_imm8 (sizeflag) >> 4;
13456 if (reg > 7 && address_mode != mode_64bit)
13459 switch (vex.length)
13472 sprintf (scratchbuf, "%%xmm%d", reg);
13484 sprintf (scratchbuf, "%%ymm%d", reg);
13489 oappend (scratchbuf + intel_syntax);
13493 VEXI4_Fixup (int bytemode ATTRIBUTE_UNUSED,
13494 int sizeflag ATTRIBUTE_UNUSED)
13496 /* Skip the immediate byte and check for invalid bits. */
13497 FETCH_DATA (the_info, codep + 1);
13498 if (*codep++ & 0xf)
13503 OP_REG_VexI4 (int bytemode, int sizeflag ATTRIBUTE_UNUSED)
13506 FETCH_DATA (the_info, codep + 1);
13509 if (bytemode != x_mode)
13516 if (reg > 7 && address_mode != mode_64bit)
13519 switch (vex.length)
13522 sprintf (scratchbuf, "%%xmm%d", reg);
13525 sprintf (scratchbuf, "%%ymm%d", reg);
13530 oappend (scratchbuf + intel_syntax);
13534 OP_XMM_VexW (int bytemode, int sizeflag)
13536 /* Turn off the REX.W bit since it is used for swapping operands
13539 OP_XMM (bytemode, sizeflag);
13543 OP_EX_Vex (int bytemode, int sizeflag)
13545 if (modrm.mod != 3)
13547 if (vex.register_specifier != 0)
13551 OP_EX (bytemode, sizeflag);
13555 OP_XMM_Vex (int bytemode, int sizeflag)
13557 if (modrm.mod != 3)
13559 if (vex.register_specifier != 0)
13563 OP_XMM (bytemode, sizeflag);
13567 VZERO_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
13569 switch (vex.length)
13572 strcpy (obuf, "vzeroupper");
13575 strcpy (obuf, "vzeroall");
13582 static const char *vex_cmp_op[] = {
13618 VCMP_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
13620 unsigned int cmp_type;
13622 FETCH_DATA (the_info, codep + 1);
13623 cmp_type = *codep++ & 0xff;
13624 if (cmp_type < ARRAY_SIZE (vex_cmp_op))
13627 char *p = obuf + strlen (obuf) - 2;
13631 sprintf (p, "%s%s", vex_cmp_op[cmp_type], suffix);
13635 /* We have a reserved extension byte. Output it directly. */
13636 scratchbuf[0] = '$';
13637 print_operand_value (scratchbuf + 1, 1, cmp_type);
13638 oappend (scratchbuf + intel_syntax);
13639 scratchbuf[0] = '\0';
13643 static const char *pclmul_op[] = {
13651 PCLMUL_Fixup (int bytemode ATTRIBUTE_UNUSED,
13652 int sizeflag ATTRIBUTE_UNUSED)
13654 unsigned int pclmul_type;
13656 FETCH_DATA (the_info, codep + 1);
13657 pclmul_type = *codep++ & 0xff;
13658 switch (pclmul_type)
13669 if (pclmul_type < ARRAY_SIZE (pclmul_op))
13672 char *p = obuf + strlen (obuf) - 3;
13677 sprintf (p, "%s%s", pclmul_op[pclmul_type], suffix);
13681 /* We have a reserved extension byte. Output it directly. */
13682 scratchbuf[0] = '$';
13683 print_operand_value (scratchbuf + 1, 1, pclmul_type);
13684 oappend (scratchbuf + intel_syntax);
13685 scratchbuf[0] = '\0';
13689 static const char *vpermil2_op[] = {
13697 VPERMIL2_Fixup (int bytemode ATTRIBUTE_UNUSED,
13698 int sizeflag ATTRIBUTE_UNUSED)
13700 unsigned int vpermil2_type;
13702 FETCH_DATA (the_info, codep + 1);
13703 vpermil2_type = *codep++ & 0xf;
13704 if (vpermil2_type < ARRAY_SIZE (vpermil2_op))
13707 char *p = obuf + strlen (obuf) - 3;
13712 sprintf (p, "%s%s", vpermil2_op[vpermil2_type], suffix);
13716 /* We have a reserved extension byte. Output it directly. */
13717 scratchbuf[0] = '$';
13718 print_operand_value (scratchbuf + 1, 1, vpermil2_type);
13719 oappend (scratchbuf + intel_syntax);
13720 scratchbuf[0] = '\0';
13725 MOVBE_Fixup (int bytemode, int sizeflag)
13727 /* Add proper suffix to "movbe". */
13728 char *p = obuf + strlen (obuf);
13737 if (sizeflag & SUFFIX_ALWAYS)
13741 else if (sizeflag & DFLAG)
13746 used_prefixes |= (prefixes & PREFIX_DATA);
13749 oappend (INTERNAL_DISASSEMBLER_ERROR);
13754 OP_M (bytemode, sizeflag);