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, 2008
4 Free Software Foundation, Inc.
6 This file is part of the GNU opcodes library.
8 This library is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3, or (at your option)
13 It is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
16 License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
21 MA 02110-1301, USA. */
24 /* 80386 instruction printer by Pace Willisson (pace@prep.ai.mit.edu)
26 modified by John Hassey (hassey@dg-rtp.dg.com)
27 x86-64 support added by Jan Hubicka (jh@suse.cz)
28 VIA PadLock support by Michal Ludvig (mludvig@suse.cz). */
30 /* The main tables describing the instructions is essentially a copy
31 of the "Opcode Map" chapter (Appendix A) of the Intel 80386
32 Programmers Manual. Usually, there is a capital letter, followed
33 by a small letter. The capital letter tell the addressing mode,
34 and the small letter tells about the operand size. Refer to
35 the Intel manual for details. */
40 #include "opcode/i386.h"
41 #include "libiberty.h"
45 static int fetch_data (struct disassemble_info *, bfd_byte *);
46 static void ckprefix (void);
47 static const char *prefix_name (int, int);
48 static int print_insn (bfd_vma, disassemble_info *);
49 static void dofloat (int);
50 static void OP_ST (int, int);
51 static void OP_STi (int, int);
52 static int putop (const char *, int);
53 static void oappend (const char *);
54 static void append_seg (void);
55 static void OP_indirE (int, int);
56 static void print_operand_value (char *, int, bfd_vma);
57 static void OP_E_register (int, int);
58 static void OP_E_memory (int, int, int);
59 static void OP_E_extended (int, int, int);
60 static void print_displacement (char *, bfd_vma);
61 static void OP_E (int, int);
62 static void OP_G (int, int);
63 static bfd_vma get64 (void);
64 static bfd_signed_vma get32 (void);
65 static bfd_signed_vma get32s (void);
66 static int get16 (void);
67 static void set_op (bfd_vma, int);
68 static void OP_Skip_MODRM (int, int);
69 static void OP_REG (int, int);
70 static void OP_IMREG (int, int);
71 static void OP_I (int, int);
72 static void OP_I64 (int, int);
73 static void OP_sI (int, int);
74 static void OP_J (int, int);
75 static void OP_SEG (int, int);
76 static void OP_DIR (int, int);
77 static void OP_OFF (int, int);
78 static void OP_OFF64 (int, int);
79 static void ptr_reg (int, int);
80 static void OP_ESreg (int, int);
81 static void OP_DSreg (int, int);
82 static void OP_C (int, int);
83 static void OP_D (int, int);
84 static void OP_T (int, int);
85 static void OP_R (int, int);
86 static void OP_MMX (int, int);
87 static void OP_XMM (int, int);
88 static void OP_EM (int, int);
89 static void OP_EX (int, int);
90 static void OP_EMC (int,int);
91 static void OP_MXC (int,int);
92 static void OP_MS (int, int);
93 static void OP_XS (int, int);
94 static void OP_M (int, int);
95 static void OP_VEX (int, int);
96 static void OP_VEX_FMA (int, int);
97 static void OP_EX_Vex (int, int);
98 static void OP_EX_VexW (int, int);
99 static void OP_EX_VexImmW (int, int);
100 static void OP_XMM_Vex (int, int);
101 static void OP_XMM_VexW (int, int);
102 static void OP_REG_VexI4 (int, int);
103 static void PCLMUL_Fixup (int, int);
104 static void VEXI4_Fixup (int, int);
105 static void VZERO_Fixup (int, int);
106 static void VCMP_Fixup (int, int);
107 static void VPERMIL2_Fixup (int, int);
108 static void OP_0f07 (int, int);
109 static void OP_Monitor (int, int);
110 static void OP_Mwait (int, int);
111 static void NOP_Fixup1 (int, int);
112 static void NOP_Fixup2 (int, int);
113 static void OP_3DNowSuffix (int, int);
114 static void CMP_Fixup (int, int);
115 static void BadOp (void);
116 static void REP_Fixup (int, int);
117 static void CMPXCHG8B_Fixup (int, int);
118 static void XMM_Fixup (int, int);
119 static void CRC32_Fixup (int, int);
120 static void print_drex_arg (unsigned int, int, int);
121 static void OP_DREX4 (int, int);
122 static void OP_DREX3 (int, int);
123 static void OP_DREX_ICMP (int, int);
124 static void OP_DREX_FCMP (int, int);
125 static void MOVBE_Fixup (int, int);
128 /* Points to first byte not fetched. */
129 bfd_byte *max_fetched;
130 bfd_byte the_buffer[MAX_MNEM_SIZE];
143 enum address_mode address_mode;
145 /* Flags for the prefixes for the current instruction. See below. */
148 /* REX prefix the current instruction. See below. */
150 /* Bits of REX we've already used. */
152 /* Original REX prefix. */
153 static int rex_original;
154 /* REX bits in original REX prefix ignored. It may not be the same
155 as rex_original since some bits may not be ignored. */
156 static int rex_ignored;
157 /* Mark parts used in the REX prefix. When we are testing for
158 empty prefix (for 8bit register REX extension), just mask it
159 out. Otherwise test for REX bit is excuse for existence of REX
160 only in case value is nonzero. */
161 #define USED_REX(value) \
166 rex_used |= (value) | REX_OPCODE; \
169 rex_used |= REX_OPCODE; \
172 /* Special 'registers' for DREX handling */
173 #define DREX_REG_UNKNOWN 1000 /* not initialized */
174 #define DREX_REG_MEMORY 1001 /* use MODRM/SIB/OFFSET memory */
176 /* The DREX byte has the following fields:
177 Bits 7-4 -- DREX.Dest, xmm destination register
178 Bit 3 -- DREX.OC0, operand config bit defines operand order
179 Bit 2 -- DREX.R, equivalent to REX_R bit, to extend ModRM register
180 Bit 1 -- DREX.X, equivalent to REX_X bit, to extend SIB index field
181 Bit 0 -- DREX.W, equivalent to REX_B bit, to extend ModRM r/m field,
182 SIB base field, or opcode reg field. */
183 #define DREX_XMM(drex) ((drex >> 4) & 0xf)
184 #define DREX_OC0(drex) ((drex >> 3) & 0x1)
186 /* Flags for prefixes which we somehow handled when printing the
187 current instruction. */
188 static int used_prefixes;
190 /* Flags stored in PREFIXES. */
191 #define PREFIX_REPZ 1
192 #define PREFIX_REPNZ 2
193 #define PREFIX_LOCK 4
195 #define PREFIX_SS 0x10
196 #define PREFIX_DS 0x20
197 #define PREFIX_ES 0x40
198 #define PREFIX_FS 0x80
199 #define PREFIX_GS 0x100
200 #define PREFIX_DATA 0x200
201 #define PREFIX_ADDR 0x400
202 #define PREFIX_FWAIT 0x800
204 /* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive)
205 to ADDR (exclusive) are valid. Returns 1 for success, longjmps
207 #define FETCH_DATA(info, addr) \
208 ((addr) <= ((struct dis_private *) (info->private_data))->max_fetched \
209 ? 1 : fetch_data ((info), (addr)))
212 fetch_data (struct disassemble_info *info, bfd_byte *addr)
215 struct dis_private *priv = (struct dis_private *) info->private_data;
216 bfd_vma start = priv->insn_start + (priv->max_fetched - priv->the_buffer);
218 if (addr <= priv->the_buffer + MAX_MNEM_SIZE)
219 status = (*info->read_memory_func) (start,
221 addr - priv->max_fetched,
227 /* If we did manage to read at least one byte, then
228 print_insn_i386 will do something sensible. Otherwise, print
229 an error. We do that here because this is where we know
231 if (priv->max_fetched == priv->the_buffer)
232 (*info->memory_error_func) (status, start, info);
233 longjmp (priv->bailout, 1);
236 priv->max_fetched = addr;
240 #define XX { NULL, 0 }
242 #define Eb { OP_E, b_mode }
243 #define Ev { OP_E, v_mode }
244 #define Ed { OP_E, d_mode }
245 #define Edq { OP_E, dq_mode }
246 #define Edqw { OP_E, dqw_mode }
247 #define Edqb { OP_E, dqb_mode }
248 #define Edqd { OP_E, dqd_mode }
249 #define Eq { OP_E, q_mode }
250 #define indirEv { OP_indirE, stack_v_mode }
251 #define indirEp { OP_indirE, f_mode }
252 #define stackEv { OP_E, stack_v_mode }
253 #define Em { OP_E, m_mode }
254 #define Ew { OP_E, w_mode }
255 #define M { OP_M, 0 } /* lea, lgdt, etc. */
256 #define Ma { OP_M, a_mode }
257 #define Mb { OP_M, b_mode }
258 #define Md { OP_M, d_mode }
259 #define Mo { OP_M, o_mode }
260 #define Mp { OP_M, f_mode } /* 32 or 48 bit memory operand for LDS, LES etc */
261 #define Mq { OP_M, q_mode }
262 #define Mx { OP_M, x_mode }
263 #define Mxmm { OP_M, xmm_mode }
264 #define Gb { OP_G, b_mode }
265 #define Gv { OP_G, v_mode }
266 #define Gd { OP_G, d_mode }
267 #define Gdq { OP_G, dq_mode }
268 #define Gm { OP_G, m_mode }
269 #define Gw { OP_G, w_mode }
270 #define Rd { OP_R, d_mode }
271 #define Rm { OP_R, m_mode }
272 #define Ib { OP_I, b_mode }
273 #define sIb { OP_sI, b_mode } /* sign extened byte */
274 #define Iv { OP_I, v_mode }
275 #define Iq { OP_I, q_mode }
276 #define Iv64 { OP_I64, v_mode }
277 #define Iw { OP_I, w_mode }
278 #define I1 { OP_I, const_1_mode }
279 #define Jb { OP_J, b_mode }
280 #define Jv { OP_J, v_mode }
281 #define Cm { OP_C, m_mode }
282 #define Dm { OP_D, m_mode }
283 #define Td { OP_T, d_mode }
284 #define Skip_MODRM { OP_Skip_MODRM, 0 }
286 #define RMeAX { OP_REG, eAX_reg }
287 #define RMeBX { OP_REG, eBX_reg }
288 #define RMeCX { OP_REG, eCX_reg }
289 #define RMeDX { OP_REG, eDX_reg }
290 #define RMeSP { OP_REG, eSP_reg }
291 #define RMeBP { OP_REG, eBP_reg }
292 #define RMeSI { OP_REG, eSI_reg }
293 #define RMeDI { OP_REG, eDI_reg }
294 #define RMrAX { OP_REG, rAX_reg }
295 #define RMrBX { OP_REG, rBX_reg }
296 #define RMrCX { OP_REG, rCX_reg }
297 #define RMrDX { OP_REG, rDX_reg }
298 #define RMrSP { OP_REG, rSP_reg }
299 #define RMrBP { OP_REG, rBP_reg }
300 #define RMrSI { OP_REG, rSI_reg }
301 #define RMrDI { OP_REG, rDI_reg }
302 #define RMAL { OP_REG, al_reg }
303 #define RMAL { OP_REG, al_reg }
304 #define RMCL { OP_REG, cl_reg }
305 #define RMDL { OP_REG, dl_reg }
306 #define RMBL { OP_REG, bl_reg }
307 #define RMAH { OP_REG, ah_reg }
308 #define RMCH { OP_REG, ch_reg }
309 #define RMDH { OP_REG, dh_reg }
310 #define RMBH { OP_REG, bh_reg }
311 #define RMAX { OP_REG, ax_reg }
312 #define RMDX { OP_REG, dx_reg }
314 #define eAX { OP_IMREG, eAX_reg }
315 #define eBX { OP_IMREG, eBX_reg }
316 #define eCX { OP_IMREG, eCX_reg }
317 #define eDX { OP_IMREG, eDX_reg }
318 #define eSP { OP_IMREG, eSP_reg }
319 #define eBP { OP_IMREG, eBP_reg }
320 #define eSI { OP_IMREG, eSI_reg }
321 #define eDI { OP_IMREG, eDI_reg }
322 #define AL { OP_IMREG, al_reg }
323 #define CL { OP_IMREG, cl_reg }
324 #define DL { OP_IMREG, dl_reg }
325 #define BL { OP_IMREG, bl_reg }
326 #define AH { OP_IMREG, ah_reg }
327 #define CH { OP_IMREG, ch_reg }
328 #define DH { OP_IMREG, dh_reg }
329 #define BH { OP_IMREG, bh_reg }
330 #define AX { OP_IMREG, ax_reg }
331 #define DX { OP_IMREG, dx_reg }
332 #define zAX { OP_IMREG, z_mode_ax_reg }
333 #define indirDX { OP_IMREG, indir_dx_reg }
335 #define Sw { OP_SEG, w_mode }
336 #define Sv { OP_SEG, v_mode }
337 #define Ap { OP_DIR, 0 }
338 #define Ob { OP_OFF64, b_mode }
339 #define Ov { OP_OFF64, v_mode }
340 #define Xb { OP_DSreg, eSI_reg }
341 #define Xv { OP_DSreg, eSI_reg }
342 #define Xz { OP_DSreg, eSI_reg }
343 #define Yb { OP_ESreg, eDI_reg }
344 #define Yv { OP_ESreg, eDI_reg }
345 #define DSBX { OP_DSreg, eBX_reg }
347 #define es { OP_REG, es_reg }
348 #define ss { OP_REG, ss_reg }
349 #define cs { OP_REG, cs_reg }
350 #define ds { OP_REG, ds_reg }
351 #define fs { OP_REG, fs_reg }
352 #define gs { OP_REG, gs_reg }
354 #define MX { OP_MMX, 0 }
355 #define XM { OP_XMM, 0 }
356 #define XMM { OP_XMM, xmm_mode }
357 #define EM { OP_EM, v_mode }
358 #define EMd { OP_EM, d_mode }
359 #define EMx { OP_EM, x_mode }
360 #define EXw { OP_EX, w_mode }
361 #define EXd { OP_EX, d_mode }
362 #define EXq { OP_EX, q_mode }
363 #define EXx { OP_EX, x_mode }
364 #define EXxmm { OP_EX, xmm_mode }
365 #define EXxmmq { OP_EX, xmmq_mode }
366 #define EXymmq { OP_EX, ymmq_mode }
367 #define MS { OP_MS, v_mode }
368 #define XS { OP_XS, v_mode }
369 #define EMCq { OP_EMC, q_mode }
370 #define MXC { OP_MXC, 0 }
371 #define OPSUF { OP_3DNowSuffix, 0 }
372 #define CMP { CMP_Fixup, 0 }
373 #define XMM0 { XMM_Fixup, 0 }
375 #define Vex { OP_VEX, vex_mode }
376 #define Vex128 { OP_VEX, vex128_mode }
377 #define Vex256 { OP_VEX, vex256_mode }
378 #define VexI4 { VEXI4_Fixup, 0}
379 #define VexFMA { OP_VEX_FMA, vex_mode }
380 #define Vex128FMA { OP_VEX_FMA, vex128_mode }
381 #define EXdVex { OP_EX_Vex, d_mode }
382 #define EXqVex { OP_EX_Vex, q_mode }
383 #define EXVexW { OP_EX_VexW, x_mode }
384 #define EXdVexW { OP_EX_VexW, d_mode }
385 #define EXqVexW { OP_EX_VexW, q_mode }
386 #define EXVexImmW { OP_EX_VexImmW, x_mode }
387 #define XMVex { OP_XMM_Vex, 0 }
388 #define XMVexW { OP_XMM_VexW, 0 }
389 #define XMVexI4 { OP_REG_VexI4, x_mode }
390 #define PCLMUL { PCLMUL_Fixup, 0 }
391 #define VZERO { VZERO_Fixup, 0 }
392 #define VCMP { VCMP_Fixup, 0 }
393 #define VPERMIL2 { VPERMIL2_Fixup, 0 }
395 /* Used handle "rep" prefix for string instructions. */
396 #define Xbr { REP_Fixup, eSI_reg }
397 #define Xvr { REP_Fixup, eSI_reg }
398 #define Ybr { REP_Fixup, eDI_reg }
399 #define Yvr { REP_Fixup, eDI_reg }
400 #define Yzr { REP_Fixup, eDI_reg }
401 #define indirDXr { REP_Fixup, indir_dx_reg }
402 #define ALr { REP_Fixup, al_reg }
403 #define eAXr { REP_Fixup, eAX_reg }
405 #define cond_jump_flag { NULL, cond_jump_mode }
406 #define loop_jcxz_flag { NULL, loop_jcxz_mode }
408 /* bits in sizeflag */
409 #define SUFFIX_ALWAYS 4
415 /* operand size depends on prefixes */
416 #define v_mode (b_mode + 1)
418 #define w_mode (v_mode + 1)
419 /* double word operand */
420 #define d_mode (w_mode + 1)
421 /* quad word operand */
422 #define q_mode (d_mode + 1)
423 /* ten-byte operand */
424 #define t_mode (q_mode + 1)
425 /* 16-byte XMM or 32-byte YMM operand */
426 #define x_mode (t_mode + 1)
427 /* 16-byte XMM operand */
428 #define xmm_mode (x_mode + 1)
429 /* 16-byte XMM or quad word operand */
430 #define xmmq_mode (xmm_mode + 1)
431 /* 32-byte YMM or quad word operand */
432 #define ymmq_mode (xmmq_mode + 1)
433 /* d_mode in 32bit, q_mode in 64bit mode. */
434 #define m_mode (ymmq_mode + 1)
435 /* pair of v_mode operands */
436 #define a_mode (m_mode + 1)
437 #define cond_jump_mode (a_mode + 1)
438 #define loop_jcxz_mode (cond_jump_mode + 1)
439 /* operand size depends on REX prefixes. */
440 #define dq_mode (loop_jcxz_mode + 1)
441 /* registers like dq_mode, memory like w_mode. */
442 #define dqw_mode (dq_mode + 1)
443 /* 4- or 6-byte pointer operand */
444 #define f_mode (dqw_mode + 1)
445 #define const_1_mode (f_mode + 1)
446 /* v_mode for stack-related opcodes. */
447 #define stack_v_mode (const_1_mode + 1)
448 /* non-quad operand size depends on prefixes */
449 #define z_mode (stack_v_mode + 1)
450 /* 16-byte operand */
451 #define o_mode (z_mode + 1)
452 /* registers like dq_mode, memory like b_mode. */
453 #define dqb_mode (o_mode + 1)
454 /* registers like dq_mode, memory like d_mode. */
455 #define dqd_mode (dqb_mode + 1)
456 /* normal vex mode */
457 #define vex_mode (dqd_mode + 1)
458 /* 128bit vex mode */
459 #define vex128_mode (vex_mode + 1)
460 /* 256bit vex mode */
461 #define vex256_mode (vex128_mode + 1)
463 #define es_reg (vex256_mode + 1)
464 #define cs_reg (es_reg + 1)
465 #define ss_reg (cs_reg + 1)
466 #define ds_reg (ss_reg + 1)
467 #define fs_reg (ds_reg + 1)
468 #define gs_reg (fs_reg + 1)
470 #define eAX_reg (gs_reg + 1)
471 #define eCX_reg (eAX_reg + 1)
472 #define eDX_reg (eCX_reg + 1)
473 #define eBX_reg (eDX_reg + 1)
474 #define eSP_reg (eBX_reg + 1)
475 #define eBP_reg (eSP_reg + 1)
476 #define eSI_reg (eBP_reg + 1)
477 #define eDI_reg (eSI_reg + 1)
479 #define al_reg (eDI_reg + 1)
480 #define cl_reg (al_reg + 1)
481 #define dl_reg (cl_reg + 1)
482 #define bl_reg (dl_reg + 1)
483 #define ah_reg (bl_reg + 1)
484 #define ch_reg (ah_reg + 1)
485 #define dh_reg (ch_reg + 1)
486 #define bh_reg (dh_reg + 1)
488 #define ax_reg (bh_reg + 1)
489 #define cx_reg (ax_reg + 1)
490 #define dx_reg (cx_reg + 1)
491 #define bx_reg (dx_reg + 1)
492 #define sp_reg (bx_reg + 1)
493 #define bp_reg (sp_reg + 1)
494 #define si_reg (bp_reg + 1)
495 #define di_reg (si_reg + 1)
497 #define rAX_reg (di_reg + 1)
498 #define rCX_reg (rAX_reg + 1)
499 #define rDX_reg (rCX_reg + 1)
500 #define rBX_reg (rDX_reg + 1)
501 #define rSP_reg (rBX_reg + 1)
502 #define rBP_reg (rSP_reg + 1)
503 #define rSI_reg (rBP_reg + 1)
504 #define rDI_reg (rSI_reg + 1)
506 #define z_mode_ax_reg (rDI_reg + 1)
507 #define indir_dx_reg (z_mode_ax_reg + 1)
509 #define MAX_BYTEMODE indir_dx_reg
511 /* Flags that are OR'ed into the bytemode field to pass extra
513 #define DREX_OC1 0x10000 /* OC1 bit set */
514 #define DREX_NO_OC0 0x20000 /* OC0 bit not used */
515 #define DREX_MASK 0x40000 /* mask to delete */
517 #if MAX_BYTEMODE >= DREX_OC1
518 #error MAX_BYTEMODE must be less than DREX_OC1
522 #define USE_REG_TABLE (FLOATCODE + 1)
523 #define USE_MOD_TABLE (USE_REG_TABLE + 1)
524 #define USE_RM_TABLE (USE_MOD_TABLE + 1)
525 #define USE_PREFIX_TABLE (USE_RM_TABLE + 1)
526 #define USE_X86_64_TABLE (USE_PREFIX_TABLE + 1)
527 #define USE_3BYTE_TABLE (USE_X86_64_TABLE + 1)
528 #define USE_VEX_C4_TABLE (USE_3BYTE_TABLE + 1)
529 #define USE_VEX_C5_TABLE (USE_VEX_C4_TABLE + 1)
530 #define USE_VEX_LEN_TABLE (USE_VEX_C5_TABLE + 1)
532 #define FLOAT NULL, { { NULL, FLOATCODE } }
534 #define DIS386(T, I) NULL, { { NULL, (T)}, { NULL, (I) } }
535 #define REG_TABLE(I) DIS386 (USE_REG_TABLE, (I))
536 #define MOD_TABLE(I) DIS386 (USE_MOD_TABLE, (I))
537 #define RM_TABLE(I) DIS386 (USE_RM_TABLE, (I))
538 #define PREFIX_TABLE(I) DIS386 (USE_PREFIX_TABLE, (I))
539 #define X86_64_TABLE(I) DIS386 (USE_X86_64_TABLE, (I))
540 #define THREE_BYTE_TABLE(I) DIS386 (USE_3BYTE_TABLE, (I))
541 #define VEX_C4_TABLE(I) DIS386 (USE_VEX_C4_TABLE, (I))
542 #define VEX_C5_TABLE(I) DIS386 (USE_VEX_C5_TABLE, (I))
543 #define VEX_LEN_TABLE(I) DIS386 (USE_VEX_LEN_TABLE, (I))
546 #define REG_81 (REG_80 + 1)
547 #define REG_82 (REG_81 + 1)
548 #define REG_8F (REG_82 + 1)
549 #define REG_C0 (REG_8F + 1)
550 #define REG_C1 (REG_C0 + 1)
551 #define REG_C6 (REG_C1 + 1)
552 #define REG_C7 (REG_C6 + 1)
553 #define REG_D0 (REG_C7 + 1)
554 #define REG_D1 (REG_D0 + 1)
555 #define REG_D2 (REG_D1 + 1)
556 #define REG_D3 (REG_D2 + 1)
557 #define REG_F6 (REG_D3 + 1)
558 #define REG_F7 (REG_F6 + 1)
559 #define REG_FE (REG_F7 + 1)
560 #define REG_FF (REG_FE + 1)
561 #define REG_0F00 (REG_FF + 1)
562 #define REG_0F01 (REG_0F00 + 1)
563 #define REG_0F0D (REG_0F01 + 1)
564 #define REG_0F18 (REG_0F0D + 1)
565 #define REG_0F71 (REG_0F18 + 1)
566 #define REG_0F72 (REG_0F71 + 1)
567 #define REG_0F73 (REG_0F72 + 1)
568 #define REG_0FA6 (REG_0F73 + 1)
569 #define REG_0FA7 (REG_0FA6 + 1)
570 #define REG_0FAE (REG_0FA7 + 1)
571 #define REG_0FBA (REG_0FAE + 1)
572 #define REG_0FC7 (REG_0FBA + 1)
573 #define REG_VEX_71 (REG_0FC7 + 1)
574 #define REG_VEX_72 (REG_VEX_71 + 1)
575 #define REG_VEX_73 (REG_VEX_72 + 1)
576 #define REG_VEX_AE (REG_VEX_73 + 1)
579 #define MOD_0F01_REG_0 (MOD_8D + 1)
580 #define MOD_0F01_REG_1 (MOD_0F01_REG_0 + 1)
581 #define MOD_0F01_REG_2 (MOD_0F01_REG_1 + 1)
582 #define MOD_0F01_REG_3 (MOD_0F01_REG_2 + 1)
583 #define MOD_0F01_REG_7 (MOD_0F01_REG_3 + 1)
584 #define MOD_0F12_PREFIX_0 (MOD_0F01_REG_7 + 1)
585 #define MOD_0F13 (MOD_0F12_PREFIX_0 + 1)
586 #define MOD_0F16_PREFIX_0 (MOD_0F13 + 1)
587 #define MOD_0F17 (MOD_0F16_PREFIX_0 + 1)
588 #define MOD_0F18_REG_0 (MOD_0F17 + 1)
589 #define MOD_0F18_REG_1 (MOD_0F18_REG_0 + 1)
590 #define MOD_0F18_REG_2 (MOD_0F18_REG_1 + 1)
591 #define MOD_0F18_REG_3 (MOD_0F18_REG_2 + 1)
592 #define MOD_0F20 (MOD_0F18_REG_3 + 1)
593 #define MOD_0F21 (MOD_0F20 + 1)
594 #define MOD_0F22 (MOD_0F21 + 1)
595 #define MOD_0F23 (MOD_0F22 + 1)
596 #define MOD_0F24 (MOD_0F23 + 1)
597 #define MOD_0F26 (MOD_0F24 + 1)
598 #define MOD_0F2B_PREFIX_0 (MOD_0F26 + 1)
599 #define MOD_0F2B_PREFIX_1 (MOD_0F2B_PREFIX_0 + 1)
600 #define MOD_0F2B_PREFIX_2 (MOD_0F2B_PREFIX_1 + 1)
601 #define MOD_0F2B_PREFIX_3 (MOD_0F2B_PREFIX_2 + 1)
602 #define MOD_0F51 (MOD_0F2B_PREFIX_3 + 1)
603 #define MOD_0F71_REG_2 (MOD_0F51 + 1)
604 #define MOD_0F71_REG_4 (MOD_0F71_REG_2 + 1)
605 #define MOD_0F71_REG_6 (MOD_0F71_REG_4 + 1)
606 #define MOD_0F72_REG_2 (MOD_0F71_REG_6 + 1)
607 #define MOD_0F72_REG_4 (MOD_0F72_REG_2 + 1)
608 #define MOD_0F72_REG_6 (MOD_0F72_REG_4 + 1)
609 #define MOD_0F73_REG_2 (MOD_0F72_REG_6 + 1)
610 #define MOD_0F73_REG_3 (MOD_0F73_REG_2 + 1)
611 #define MOD_0F73_REG_6 (MOD_0F73_REG_3 + 1)
612 #define MOD_0F73_REG_7 (MOD_0F73_REG_6 + 1)
613 #define MOD_0FAE_REG_0 (MOD_0F73_REG_7 + 1)
614 #define MOD_0FAE_REG_1 (MOD_0FAE_REG_0 + 1)
615 #define MOD_0FAE_REG_2 (MOD_0FAE_REG_1 + 1)
616 #define MOD_0FAE_REG_3 (MOD_0FAE_REG_2 + 1)
617 #define MOD_0FAE_REG_4 (MOD_0FAE_REG_3 + 1)
618 #define MOD_0FAE_REG_5 (MOD_0FAE_REG_4 + 1)
619 #define MOD_0FAE_REG_6 (MOD_0FAE_REG_5 + 1)
620 #define MOD_0FAE_REG_7 (MOD_0FAE_REG_6 + 1)
621 #define MOD_0FB2 (MOD_0FAE_REG_7 + 1)
622 #define MOD_0FB4 (MOD_0FB2 + 1)
623 #define MOD_0FB5 (MOD_0FB4 + 1)
624 #define MOD_0FC7_REG_6 (MOD_0FB5 + 1)
625 #define MOD_0FC7_REG_7 (MOD_0FC7_REG_6 + 1)
626 #define MOD_0FD7 (MOD_0FC7_REG_7 + 1)
627 #define MOD_0FE7_PREFIX_2 (MOD_0FD7 + 1)
628 #define MOD_0FF0_PREFIX_3 (MOD_0FE7_PREFIX_2 + 1)
629 #define MOD_0F382A_PREFIX_2 (MOD_0FF0_PREFIX_3 + 1)
630 #define MOD_62_32BIT (MOD_0F382A_PREFIX_2 + 1)
631 #define MOD_C4_32BIT (MOD_62_32BIT + 1)
632 #define MOD_C5_32BIT (MOD_C4_32BIT + 1)
633 #define MOD_VEX_12_PREFIX_0 (MOD_C5_32BIT + 1)
634 #define MOD_VEX_13 (MOD_VEX_12_PREFIX_0 + 1)
635 #define MOD_VEX_16_PREFIX_0 (MOD_VEX_13 + 1)
636 #define MOD_VEX_17 (MOD_VEX_16_PREFIX_0 + 1)
637 #define MOD_VEX_2B (MOD_VEX_17 + 1)
638 #define MOD_VEX_51 (MOD_VEX_2B + 1)
639 #define MOD_VEX_71_REG_2 (MOD_VEX_51 + 1)
640 #define MOD_VEX_71_REG_4 (MOD_VEX_71_REG_2 + 1)
641 #define MOD_VEX_71_REG_6 (MOD_VEX_71_REG_4 + 1)
642 #define MOD_VEX_72_REG_2 (MOD_VEX_71_REG_6 + 1)
643 #define MOD_VEX_72_REG_4 (MOD_VEX_72_REG_2 + 1)
644 #define MOD_VEX_72_REG_6 (MOD_VEX_72_REG_4 + 1)
645 #define MOD_VEX_73_REG_2 (MOD_VEX_72_REG_6 + 1)
646 #define MOD_VEX_73_REG_3 (MOD_VEX_73_REG_2 + 1)
647 #define MOD_VEX_73_REG_6 (MOD_VEX_73_REG_3 + 1)
648 #define MOD_VEX_73_REG_7 (MOD_VEX_73_REG_6 + 1)
649 #define MOD_VEX_AE_REG_2 (MOD_VEX_73_REG_7 + 1)
650 #define MOD_VEX_AE_REG_3 (MOD_VEX_AE_REG_2 + 1)
651 #define MOD_VEX_D7_PREFIX_2 (MOD_VEX_AE_REG_3 + 1)
652 #define MOD_VEX_E7_PREFIX_2 (MOD_VEX_D7_PREFIX_2 + 1)
653 #define MOD_VEX_F0_PREFIX_3 (MOD_VEX_E7_PREFIX_2 + 1)
654 #define MOD_VEX_3818_PREFIX_2 (MOD_VEX_F0_PREFIX_3 + 1)
655 #define MOD_VEX_3819_PREFIX_2 (MOD_VEX_3818_PREFIX_2 + 1)
656 #define MOD_VEX_381A_PREFIX_2 (MOD_VEX_3819_PREFIX_2 + 1)
657 #define MOD_VEX_382A_PREFIX_2 (MOD_VEX_381A_PREFIX_2 + 1)
658 #define MOD_VEX_382C_PREFIX_2 (MOD_VEX_382A_PREFIX_2 + 1)
659 #define MOD_VEX_382D_PREFIX_2 (MOD_VEX_382C_PREFIX_2 + 1)
660 #define MOD_VEX_382E_PREFIX_2 (MOD_VEX_382D_PREFIX_2 + 1)
661 #define MOD_VEX_382F_PREFIX_2 (MOD_VEX_382E_PREFIX_2 + 1)
663 #define RM_0F01_REG_0 0
664 #define RM_0F01_REG_1 (RM_0F01_REG_0 + 1)
665 #define RM_0F01_REG_2 (RM_0F01_REG_1 + 1)
666 #define RM_0F01_REG_3 (RM_0F01_REG_2 + 1)
667 #define RM_0F01_REG_7 (RM_0F01_REG_3 + 1)
668 #define RM_0FAE_REG_5 (RM_0F01_REG_7 + 1)
669 #define RM_0FAE_REG_6 (RM_0FAE_REG_5 + 1)
670 #define RM_0FAE_REG_7 (RM_0FAE_REG_6 + 1)
673 #define PREFIX_0F10 (PREFIX_90 + 1)
674 #define PREFIX_0F11 (PREFIX_0F10 + 1)
675 #define PREFIX_0F12 (PREFIX_0F11 + 1)
676 #define PREFIX_0F16 (PREFIX_0F12 + 1)
677 #define PREFIX_0F2A (PREFIX_0F16 + 1)
678 #define PREFIX_0F2B (PREFIX_0F2A + 1)
679 #define PREFIX_0F2C (PREFIX_0F2B + 1)
680 #define PREFIX_0F2D (PREFIX_0F2C + 1)
681 #define PREFIX_0F2E (PREFIX_0F2D + 1)
682 #define PREFIX_0F2F (PREFIX_0F2E + 1)
683 #define PREFIX_0F51 (PREFIX_0F2F + 1)
684 #define PREFIX_0F52 (PREFIX_0F51 + 1)
685 #define PREFIX_0F53 (PREFIX_0F52 + 1)
686 #define PREFIX_0F58 (PREFIX_0F53 + 1)
687 #define PREFIX_0F59 (PREFIX_0F58 + 1)
688 #define PREFIX_0F5A (PREFIX_0F59 + 1)
689 #define PREFIX_0F5B (PREFIX_0F5A + 1)
690 #define PREFIX_0F5C (PREFIX_0F5B + 1)
691 #define PREFIX_0F5D (PREFIX_0F5C + 1)
692 #define PREFIX_0F5E (PREFIX_0F5D + 1)
693 #define PREFIX_0F5F (PREFIX_0F5E + 1)
694 #define PREFIX_0F60 (PREFIX_0F5F + 1)
695 #define PREFIX_0F61 (PREFIX_0F60 + 1)
696 #define PREFIX_0F62 (PREFIX_0F61 + 1)
697 #define PREFIX_0F6C (PREFIX_0F62 + 1)
698 #define PREFIX_0F6D (PREFIX_0F6C + 1)
699 #define PREFIX_0F6F (PREFIX_0F6D + 1)
700 #define PREFIX_0F70 (PREFIX_0F6F + 1)
701 #define PREFIX_0F73_REG_3 (PREFIX_0F70 + 1)
702 #define PREFIX_0F73_REG_7 (PREFIX_0F73_REG_3 + 1)
703 #define PREFIX_0F78 (PREFIX_0F73_REG_7 + 1)
704 #define PREFIX_0F79 (PREFIX_0F78 + 1)
705 #define PREFIX_0F7C (PREFIX_0F79 + 1)
706 #define PREFIX_0F7D (PREFIX_0F7C + 1)
707 #define PREFIX_0F7E (PREFIX_0F7D + 1)
708 #define PREFIX_0F7F (PREFIX_0F7E + 1)
709 #define PREFIX_0FB8 (PREFIX_0F7F + 1)
710 #define PREFIX_0FBD (PREFIX_0FB8 + 1)
711 #define PREFIX_0FC2 (PREFIX_0FBD + 1)
712 #define PREFIX_0FC3 (PREFIX_0FC2 + 1)
713 #define PREFIX_0FC7_REG_6 (PREFIX_0FC3 + 1)
714 #define PREFIX_0FD0 (PREFIX_0FC7_REG_6 + 1)
715 #define PREFIX_0FD6 (PREFIX_0FD0 + 1)
716 #define PREFIX_0FE6 (PREFIX_0FD6 + 1)
717 #define PREFIX_0FE7 (PREFIX_0FE6 + 1)
718 #define PREFIX_0FF0 (PREFIX_0FE7 + 1)
719 #define PREFIX_0FF7 (PREFIX_0FF0 + 1)
720 #define PREFIX_0F3810 (PREFIX_0FF7 + 1)
721 #define PREFIX_0F3814 (PREFIX_0F3810 + 1)
722 #define PREFIX_0F3815 (PREFIX_0F3814 + 1)
723 #define PREFIX_0F3817 (PREFIX_0F3815 + 1)
724 #define PREFIX_0F3820 (PREFIX_0F3817 + 1)
725 #define PREFIX_0F3821 (PREFIX_0F3820 + 1)
726 #define PREFIX_0F3822 (PREFIX_0F3821 + 1)
727 #define PREFIX_0F3823 (PREFIX_0F3822 + 1)
728 #define PREFIX_0F3824 (PREFIX_0F3823 + 1)
729 #define PREFIX_0F3825 (PREFIX_0F3824 + 1)
730 #define PREFIX_0F3828 (PREFIX_0F3825 + 1)
731 #define PREFIX_0F3829 (PREFIX_0F3828 + 1)
732 #define PREFIX_0F382A (PREFIX_0F3829 + 1)
733 #define PREFIX_0F382B (PREFIX_0F382A + 1)
734 #define PREFIX_0F3830 (PREFIX_0F382B + 1)
735 #define PREFIX_0F3831 (PREFIX_0F3830 + 1)
736 #define PREFIX_0F3832 (PREFIX_0F3831 + 1)
737 #define PREFIX_0F3833 (PREFIX_0F3832 + 1)
738 #define PREFIX_0F3834 (PREFIX_0F3833 + 1)
739 #define PREFIX_0F3835 (PREFIX_0F3834 + 1)
740 #define PREFIX_0F3837 (PREFIX_0F3835 + 1)
741 #define PREFIX_0F3838 (PREFIX_0F3837 + 1)
742 #define PREFIX_0F3839 (PREFIX_0F3838 + 1)
743 #define PREFIX_0F383A (PREFIX_0F3839 + 1)
744 #define PREFIX_0F383B (PREFIX_0F383A + 1)
745 #define PREFIX_0F383C (PREFIX_0F383B + 1)
746 #define PREFIX_0F383D (PREFIX_0F383C + 1)
747 #define PREFIX_0F383E (PREFIX_0F383D + 1)
748 #define PREFIX_0F383F (PREFIX_0F383E + 1)
749 #define PREFIX_0F3840 (PREFIX_0F383F + 1)
750 #define PREFIX_0F3841 (PREFIX_0F3840 + 1)
751 #define PREFIX_0F3880 (PREFIX_0F3841 + 1)
752 #define PREFIX_0F3881 (PREFIX_0F3880 + 1)
753 #define PREFIX_0F38DB (PREFIX_0F3881 + 1)
754 #define PREFIX_0F38DC (PREFIX_0F38DB + 1)
755 #define PREFIX_0F38DD (PREFIX_0F38DC + 1)
756 #define PREFIX_0F38DE (PREFIX_0F38DD + 1)
757 #define PREFIX_0F38DF (PREFIX_0F38DE + 1)
758 #define PREFIX_0F38F0 (PREFIX_0F38DF + 1)
759 #define PREFIX_0F38F1 (PREFIX_0F38F0 + 1)
760 #define PREFIX_0F3A08 (PREFIX_0F38F1 + 1)
761 #define PREFIX_0F3A09 (PREFIX_0F3A08 + 1)
762 #define PREFIX_0F3A0A (PREFIX_0F3A09 + 1)
763 #define PREFIX_0F3A0B (PREFIX_0F3A0A + 1)
764 #define PREFIX_0F3A0C (PREFIX_0F3A0B + 1)
765 #define PREFIX_0F3A0D (PREFIX_0F3A0C + 1)
766 #define PREFIX_0F3A0E (PREFIX_0F3A0D + 1)
767 #define PREFIX_0F3A14 (PREFIX_0F3A0E + 1)
768 #define PREFIX_0F3A15 (PREFIX_0F3A14 + 1)
769 #define PREFIX_0F3A16 (PREFIX_0F3A15 + 1)
770 #define PREFIX_0F3A17 (PREFIX_0F3A16 + 1)
771 #define PREFIX_0F3A20 (PREFIX_0F3A17 + 1)
772 #define PREFIX_0F3A21 (PREFIX_0F3A20 + 1)
773 #define PREFIX_0F3A22 (PREFIX_0F3A21 + 1)
774 #define PREFIX_0F3A40 (PREFIX_0F3A22 + 1)
775 #define PREFIX_0F3A41 (PREFIX_0F3A40 + 1)
776 #define PREFIX_0F3A42 (PREFIX_0F3A41 + 1)
777 #define PREFIX_0F3A44 (PREFIX_0F3A42 + 1)
778 #define PREFIX_0F3A60 (PREFIX_0F3A44 + 1)
779 #define PREFIX_0F3A61 (PREFIX_0F3A60 + 1)
780 #define PREFIX_0F3A62 (PREFIX_0F3A61 + 1)
781 #define PREFIX_0F3A63 (PREFIX_0F3A62 + 1)
782 #define PREFIX_0F3ADF (PREFIX_0F3A63 + 1)
783 #define PREFIX_VEX_10 (PREFIX_0F3ADF + 1)
784 #define PREFIX_VEX_11 (PREFIX_VEX_10 + 1)
785 #define PREFIX_VEX_12 (PREFIX_VEX_11 + 1)
786 #define PREFIX_VEX_16 (PREFIX_VEX_12 + 1)
787 #define PREFIX_VEX_2A (PREFIX_VEX_16 + 1)
788 #define PREFIX_VEX_2C (PREFIX_VEX_2A + 1)
789 #define PREFIX_VEX_2D (PREFIX_VEX_2C + 1)
790 #define PREFIX_VEX_2E (PREFIX_VEX_2D + 1)
791 #define PREFIX_VEX_2F (PREFIX_VEX_2E + 1)
792 #define PREFIX_VEX_51 (PREFIX_VEX_2F + 1)
793 #define PREFIX_VEX_52 (PREFIX_VEX_51 + 1)
794 #define PREFIX_VEX_53 (PREFIX_VEX_52 + 1)
795 #define PREFIX_VEX_58 (PREFIX_VEX_53 + 1)
796 #define PREFIX_VEX_59 (PREFIX_VEX_58 + 1)
797 #define PREFIX_VEX_5A (PREFIX_VEX_59 + 1)
798 #define PREFIX_VEX_5B (PREFIX_VEX_5A + 1)
799 #define PREFIX_VEX_5C (PREFIX_VEX_5B + 1)
800 #define PREFIX_VEX_5D (PREFIX_VEX_5C + 1)
801 #define PREFIX_VEX_5E (PREFIX_VEX_5D + 1)
802 #define PREFIX_VEX_5F (PREFIX_VEX_5E + 1)
803 #define PREFIX_VEX_60 (PREFIX_VEX_5F + 1)
804 #define PREFIX_VEX_61 (PREFIX_VEX_60 + 1)
805 #define PREFIX_VEX_62 (PREFIX_VEX_61 + 1)
806 #define PREFIX_VEX_63 (PREFIX_VEX_62 + 1)
807 #define PREFIX_VEX_64 (PREFIX_VEX_63 + 1)
808 #define PREFIX_VEX_65 (PREFIX_VEX_64 + 1)
809 #define PREFIX_VEX_66 (PREFIX_VEX_65 + 1)
810 #define PREFIX_VEX_67 (PREFIX_VEX_66 + 1)
811 #define PREFIX_VEX_68 (PREFIX_VEX_67 + 1)
812 #define PREFIX_VEX_69 (PREFIX_VEX_68 + 1)
813 #define PREFIX_VEX_6A (PREFIX_VEX_69 + 1)
814 #define PREFIX_VEX_6B (PREFIX_VEX_6A + 1)
815 #define PREFIX_VEX_6C (PREFIX_VEX_6B + 1)
816 #define PREFIX_VEX_6D (PREFIX_VEX_6C + 1)
817 #define PREFIX_VEX_6E (PREFIX_VEX_6D + 1)
818 #define PREFIX_VEX_6F (PREFIX_VEX_6E + 1)
819 #define PREFIX_VEX_70 (PREFIX_VEX_6F + 1)
820 #define PREFIX_VEX_71_REG_2 (PREFIX_VEX_70 + 1)
821 #define PREFIX_VEX_71_REG_4 (PREFIX_VEX_71_REG_2 + 1)
822 #define PREFIX_VEX_71_REG_6 (PREFIX_VEX_71_REG_4 + 1)
823 #define PREFIX_VEX_72_REG_2 (PREFIX_VEX_71_REG_6 + 1)
824 #define PREFIX_VEX_72_REG_4 (PREFIX_VEX_72_REG_2 + 1)
825 #define PREFIX_VEX_72_REG_6 (PREFIX_VEX_72_REG_4 + 1)
826 #define PREFIX_VEX_73_REG_2 (PREFIX_VEX_72_REG_6 + 1)
827 #define PREFIX_VEX_73_REG_3 (PREFIX_VEX_73_REG_2 + 1)
828 #define PREFIX_VEX_73_REG_6 (PREFIX_VEX_73_REG_3 + 1)
829 #define PREFIX_VEX_73_REG_7 (PREFIX_VEX_73_REG_6 + 1)
830 #define PREFIX_VEX_74 (PREFIX_VEX_73_REG_7 + 1)
831 #define PREFIX_VEX_75 (PREFIX_VEX_74 + 1)
832 #define PREFIX_VEX_76 (PREFIX_VEX_75 + 1)
833 #define PREFIX_VEX_77 (PREFIX_VEX_76 + 1)
834 #define PREFIX_VEX_7C (PREFIX_VEX_77 + 1)
835 #define PREFIX_VEX_7D (PREFIX_VEX_7C + 1)
836 #define PREFIX_VEX_7E (PREFIX_VEX_7D + 1)
837 #define PREFIX_VEX_7F (PREFIX_VEX_7E + 1)
838 #define PREFIX_VEX_C2 (PREFIX_VEX_7F + 1)
839 #define PREFIX_VEX_C4 (PREFIX_VEX_C2 + 1)
840 #define PREFIX_VEX_C5 (PREFIX_VEX_C4 + 1)
841 #define PREFIX_VEX_D0 (PREFIX_VEX_C5 + 1)
842 #define PREFIX_VEX_D1 (PREFIX_VEX_D0 + 1)
843 #define PREFIX_VEX_D2 (PREFIX_VEX_D1 + 1)
844 #define PREFIX_VEX_D3 (PREFIX_VEX_D2 + 1)
845 #define PREFIX_VEX_D4 (PREFIX_VEX_D3 + 1)
846 #define PREFIX_VEX_D5 (PREFIX_VEX_D4 + 1)
847 #define PREFIX_VEX_D6 (PREFIX_VEX_D5 + 1)
848 #define PREFIX_VEX_D7 (PREFIX_VEX_D6 + 1)
849 #define PREFIX_VEX_D8 (PREFIX_VEX_D7 + 1)
850 #define PREFIX_VEX_D9 (PREFIX_VEX_D8 + 1)
851 #define PREFIX_VEX_DA (PREFIX_VEX_D9 + 1)
852 #define PREFIX_VEX_DB (PREFIX_VEX_DA + 1)
853 #define PREFIX_VEX_DC (PREFIX_VEX_DB + 1)
854 #define PREFIX_VEX_DD (PREFIX_VEX_DC + 1)
855 #define PREFIX_VEX_DE (PREFIX_VEX_DD + 1)
856 #define PREFIX_VEX_DF (PREFIX_VEX_DE + 1)
857 #define PREFIX_VEX_E0 (PREFIX_VEX_DF + 1)
858 #define PREFIX_VEX_E1 (PREFIX_VEX_E0 + 1)
859 #define PREFIX_VEX_E2 (PREFIX_VEX_E1 + 1)
860 #define PREFIX_VEX_E3 (PREFIX_VEX_E2 + 1)
861 #define PREFIX_VEX_E4 (PREFIX_VEX_E3 + 1)
862 #define PREFIX_VEX_E5 (PREFIX_VEX_E4 + 1)
863 #define PREFIX_VEX_E6 (PREFIX_VEX_E5 + 1)
864 #define PREFIX_VEX_E7 (PREFIX_VEX_E6 + 1)
865 #define PREFIX_VEX_E8 (PREFIX_VEX_E7 + 1)
866 #define PREFIX_VEX_E9 (PREFIX_VEX_E8 + 1)
867 #define PREFIX_VEX_EA (PREFIX_VEX_E9 + 1)
868 #define PREFIX_VEX_EB (PREFIX_VEX_EA + 1)
869 #define PREFIX_VEX_EC (PREFIX_VEX_EB + 1)
870 #define PREFIX_VEX_ED (PREFIX_VEX_EC + 1)
871 #define PREFIX_VEX_EE (PREFIX_VEX_ED + 1)
872 #define PREFIX_VEX_EF (PREFIX_VEX_EE + 1)
873 #define PREFIX_VEX_F0 (PREFIX_VEX_EF + 1)
874 #define PREFIX_VEX_F1 (PREFIX_VEX_F0 + 1)
875 #define PREFIX_VEX_F2 (PREFIX_VEX_F1 + 1)
876 #define PREFIX_VEX_F3 (PREFIX_VEX_F2 + 1)
877 #define PREFIX_VEX_F4 (PREFIX_VEX_F3 + 1)
878 #define PREFIX_VEX_F5 (PREFIX_VEX_F4 + 1)
879 #define PREFIX_VEX_F6 (PREFIX_VEX_F5 + 1)
880 #define PREFIX_VEX_F7 (PREFIX_VEX_F6 + 1)
881 #define PREFIX_VEX_F8 (PREFIX_VEX_F7 + 1)
882 #define PREFIX_VEX_F9 (PREFIX_VEX_F8 + 1)
883 #define PREFIX_VEX_FA (PREFIX_VEX_F9 + 1)
884 #define PREFIX_VEX_FB (PREFIX_VEX_FA + 1)
885 #define PREFIX_VEX_FC (PREFIX_VEX_FB + 1)
886 #define PREFIX_VEX_FD (PREFIX_VEX_FC + 1)
887 #define PREFIX_VEX_FE (PREFIX_VEX_FD + 1)
888 #define PREFIX_VEX_3800 (PREFIX_VEX_FE + 1)
889 #define PREFIX_VEX_3801 (PREFIX_VEX_3800 + 1)
890 #define PREFIX_VEX_3802 (PREFIX_VEX_3801 + 1)
891 #define PREFIX_VEX_3803 (PREFIX_VEX_3802 + 1)
892 #define PREFIX_VEX_3804 (PREFIX_VEX_3803 + 1)
893 #define PREFIX_VEX_3805 (PREFIX_VEX_3804 + 1)
894 #define PREFIX_VEX_3806 (PREFIX_VEX_3805 + 1)
895 #define PREFIX_VEX_3807 (PREFIX_VEX_3806 + 1)
896 #define PREFIX_VEX_3808 (PREFIX_VEX_3807 + 1)
897 #define PREFIX_VEX_3809 (PREFIX_VEX_3808 + 1)
898 #define PREFIX_VEX_380A (PREFIX_VEX_3809 + 1)
899 #define PREFIX_VEX_380B (PREFIX_VEX_380A + 1)
900 #define PREFIX_VEX_380C (PREFIX_VEX_380B + 1)
901 #define PREFIX_VEX_380D (PREFIX_VEX_380C + 1)
902 #define PREFIX_VEX_380E (PREFIX_VEX_380D + 1)
903 #define PREFIX_VEX_380F (PREFIX_VEX_380E + 1)
904 #define PREFIX_VEX_3817 (PREFIX_VEX_380F + 1)
905 #define PREFIX_VEX_3818 (PREFIX_VEX_3817 + 1)
906 #define PREFIX_VEX_3819 (PREFIX_VEX_3818 + 1)
907 #define PREFIX_VEX_381A (PREFIX_VEX_3819 + 1)
908 #define PREFIX_VEX_381C (PREFIX_VEX_381A + 1)
909 #define PREFIX_VEX_381D (PREFIX_VEX_381C + 1)
910 #define PREFIX_VEX_381E (PREFIX_VEX_381D + 1)
911 #define PREFIX_VEX_3820 (PREFIX_VEX_381E + 1)
912 #define PREFIX_VEX_3821 (PREFIX_VEX_3820 + 1)
913 #define PREFIX_VEX_3822 (PREFIX_VEX_3821 + 1)
914 #define PREFIX_VEX_3823 (PREFIX_VEX_3822 + 1)
915 #define PREFIX_VEX_3824 (PREFIX_VEX_3823 + 1)
916 #define PREFIX_VEX_3825 (PREFIX_VEX_3824 + 1)
917 #define PREFIX_VEX_3828 (PREFIX_VEX_3825 + 1)
918 #define PREFIX_VEX_3829 (PREFIX_VEX_3828 + 1)
919 #define PREFIX_VEX_382A (PREFIX_VEX_3829 + 1)
920 #define PREFIX_VEX_382B (PREFIX_VEX_382A + 1)
921 #define PREFIX_VEX_382C (PREFIX_VEX_382B + 1)
922 #define PREFIX_VEX_382D (PREFIX_VEX_382C + 1)
923 #define PREFIX_VEX_382E (PREFIX_VEX_382D + 1)
924 #define PREFIX_VEX_382F (PREFIX_VEX_382E + 1)
925 #define PREFIX_VEX_3830 (PREFIX_VEX_382F + 1)
926 #define PREFIX_VEX_3831 (PREFIX_VEX_3830 + 1)
927 #define PREFIX_VEX_3832 (PREFIX_VEX_3831 + 1)
928 #define PREFIX_VEX_3833 (PREFIX_VEX_3832 + 1)
929 #define PREFIX_VEX_3834 (PREFIX_VEX_3833 + 1)
930 #define PREFIX_VEX_3835 (PREFIX_VEX_3834 + 1)
931 #define PREFIX_VEX_3837 (PREFIX_VEX_3835 + 1)
932 #define PREFIX_VEX_3838 (PREFIX_VEX_3837 + 1)
933 #define PREFIX_VEX_3839 (PREFIX_VEX_3838 + 1)
934 #define PREFIX_VEX_383A (PREFIX_VEX_3839 + 1)
935 #define PREFIX_VEX_383B (PREFIX_VEX_383A + 1)
936 #define PREFIX_VEX_383C (PREFIX_VEX_383B + 1)
937 #define PREFIX_VEX_383D (PREFIX_VEX_383C + 1)
938 #define PREFIX_VEX_383E (PREFIX_VEX_383D + 1)
939 #define PREFIX_VEX_383F (PREFIX_VEX_383E + 1)
940 #define PREFIX_VEX_3840 (PREFIX_VEX_383F + 1)
941 #define PREFIX_VEX_3841 (PREFIX_VEX_3840 + 1)
942 #define PREFIX_VEX_38DB (PREFIX_VEX_3841 + 1)
943 #define PREFIX_VEX_38DC (PREFIX_VEX_38DB + 1)
944 #define PREFIX_VEX_38DD (PREFIX_VEX_38DC + 1)
945 #define PREFIX_VEX_38DE (PREFIX_VEX_38DD + 1)
946 #define PREFIX_VEX_38DF (PREFIX_VEX_38DE + 1)
947 #define PREFIX_VEX_3A04 (PREFIX_VEX_38DF + 1)
948 #define PREFIX_VEX_3A05 (PREFIX_VEX_3A04 + 1)
949 #define PREFIX_VEX_3A06 (PREFIX_VEX_3A05 + 1)
950 #define PREFIX_VEX_3A08 (PREFIX_VEX_3A06 + 1)
951 #define PREFIX_VEX_3A09 (PREFIX_VEX_3A08 + 1)
952 #define PREFIX_VEX_3A0A (PREFIX_VEX_3A09 + 1)
953 #define PREFIX_VEX_3A0B (PREFIX_VEX_3A0A + 1)
954 #define PREFIX_VEX_3A0C (PREFIX_VEX_3A0B + 1)
955 #define PREFIX_VEX_3A0D (PREFIX_VEX_3A0C + 1)
956 #define PREFIX_VEX_3A0E (PREFIX_VEX_3A0D + 1)
957 #define PREFIX_VEX_3A0F (PREFIX_VEX_3A0E + 1)
958 #define PREFIX_VEX_3A14 (PREFIX_VEX_3A0F + 1)
959 #define PREFIX_VEX_3A15 (PREFIX_VEX_3A14 + 1)
960 #define PREFIX_VEX_3A16 (PREFIX_VEX_3A15 + 1)
961 #define PREFIX_VEX_3A17 (PREFIX_VEX_3A16 + 1)
962 #define PREFIX_VEX_3A18 (PREFIX_VEX_3A17 + 1)
963 #define PREFIX_VEX_3A19 (PREFIX_VEX_3A18 + 1)
964 #define PREFIX_VEX_3A20 (PREFIX_VEX_3A19 + 1)
965 #define PREFIX_VEX_3A21 (PREFIX_VEX_3A20 + 1)
966 #define PREFIX_VEX_3A22 (PREFIX_VEX_3A21 + 1)
967 #define PREFIX_VEX_3A40 (PREFIX_VEX_3A22 + 1)
968 #define PREFIX_VEX_3A41 (PREFIX_VEX_3A40 + 1)
969 #define PREFIX_VEX_3A42 (PREFIX_VEX_3A41 + 1)
970 #define PREFIX_VEX_3A48 (PREFIX_VEX_3A42 + 1)
971 #define PREFIX_VEX_3A49 (PREFIX_VEX_3A48 + 1)
972 #define PREFIX_VEX_3A4A (PREFIX_VEX_3A49 + 1)
973 #define PREFIX_VEX_3A4B (PREFIX_VEX_3A4A + 1)
974 #define PREFIX_VEX_3A4C (PREFIX_VEX_3A4B + 1)
975 #define PREFIX_VEX_3A5C (PREFIX_VEX_3A4C + 1)
976 #define PREFIX_VEX_3A5D (PREFIX_VEX_3A5C + 1)
977 #define PREFIX_VEX_3A5E (PREFIX_VEX_3A5D + 1)
978 #define PREFIX_VEX_3A5F (PREFIX_VEX_3A5E + 1)
979 #define PREFIX_VEX_3A60 (PREFIX_VEX_3A5F + 1)
980 #define PREFIX_VEX_3A61 (PREFIX_VEX_3A60 + 1)
981 #define PREFIX_VEX_3A62 (PREFIX_VEX_3A61 + 1)
982 #define PREFIX_VEX_3A63 (PREFIX_VEX_3A62 + 1)
983 #define PREFIX_VEX_3A68 (PREFIX_VEX_3A63 + 1)
984 #define PREFIX_VEX_3A69 (PREFIX_VEX_3A68 + 1)
985 #define PREFIX_VEX_3A6A (PREFIX_VEX_3A69 + 1)
986 #define PREFIX_VEX_3A6B (PREFIX_VEX_3A6A + 1)
987 #define PREFIX_VEX_3A6C (PREFIX_VEX_3A6B + 1)
988 #define PREFIX_VEX_3A6D (PREFIX_VEX_3A6C + 1)
989 #define PREFIX_VEX_3A6E (PREFIX_VEX_3A6D + 1)
990 #define PREFIX_VEX_3A6F (PREFIX_VEX_3A6E + 1)
991 #define PREFIX_VEX_3A78 (PREFIX_VEX_3A6F + 1)
992 #define PREFIX_VEX_3A79 (PREFIX_VEX_3A78 + 1)
993 #define PREFIX_VEX_3A7A (PREFIX_VEX_3A79 + 1)
994 #define PREFIX_VEX_3A7B (PREFIX_VEX_3A7A + 1)
995 #define PREFIX_VEX_3A7C (PREFIX_VEX_3A7B + 1)
996 #define PREFIX_VEX_3A7D (PREFIX_VEX_3A7C + 1)
997 #define PREFIX_VEX_3A7E (PREFIX_VEX_3A7D + 1)
998 #define PREFIX_VEX_3A7F (PREFIX_VEX_3A7E + 1)
999 #define PREFIX_VEX_3ADF (PREFIX_VEX_3A7F + 1)
1002 #define X86_64_07 (X86_64_06 + 1)
1003 #define X86_64_0D (X86_64_07 + 1)
1004 #define X86_64_16 (X86_64_0D + 1)
1005 #define X86_64_17 (X86_64_16 + 1)
1006 #define X86_64_1E (X86_64_17 + 1)
1007 #define X86_64_1F (X86_64_1E + 1)
1008 #define X86_64_27 (X86_64_1F + 1)
1009 #define X86_64_2F (X86_64_27 + 1)
1010 #define X86_64_37 (X86_64_2F + 1)
1011 #define X86_64_3F (X86_64_37 + 1)
1012 #define X86_64_60 (X86_64_3F + 1)
1013 #define X86_64_61 (X86_64_60 + 1)
1014 #define X86_64_62 (X86_64_61 + 1)
1015 #define X86_64_63 (X86_64_62 + 1)
1016 #define X86_64_6D (X86_64_63 + 1)
1017 #define X86_64_6F (X86_64_6D + 1)
1018 #define X86_64_9A (X86_64_6F + 1)
1019 #define X86_64_C4 (X86_64_9A + 1)
1020 #define X86_64_C5 (X86_64_C4 + 1)
1021 #define X86_64_CE (X86_64_C5 + 1)
1022 #define X86_64_D4 (X86_64_CE + 1)
1023 #define X86_64_D5 (X86_64_D4 + 1)
1024 #define X86_64_EA (X86_64_D5 + 1)
1025 #define X86_64_0F01_REG_0 (X86_64_EA + 1)
1026 #define X86_64_0F01_REG_1 (X86_64_0F01_REG_0 + 1)
1027 #define X86_64_0F01_REG_2 (X86_64_0F01_REG_1 + 1)
1028 #define X86_64_0F01_REG_3 (X86_64_0F01_REG_2 + 1)
1030 #define THREE_BYTE_0F24 0
1031 #define THREE_BYTE_0F25 (THREE_BYTE_0F24 + 1)
1032 #define THREE_BYTE_0F38 (THREE_BYTE_0F25 + 1)
1033 #define THREE_BYTE_0F3A (THREE_BYTE_0F38 + 1)
1034 #define THREE_BYTE_0F7A (THREE_BYTE_0F3A + 1)
1035 #define THREE_BYTE_0F7B (THREE_BYTE_0F7A + 1)
1038 #define VEX_0F38 (VEX_0F + 1)
1039 #define VEX_0F3A (VEX_0F38 + 1)
1041 #define VEX_LEN_10_P_1 0
1042 #define VEX_LEN_10_P_3 (VEX_LEN_10_P_1 + 1)
1043 #define VEX_LEN_11_P_1 (VEX_LEN_10_P_3 + 1)
1044 #define VEX_LEN_11_P_3 (VEX_LEN_11_P_1 + 1)
1045 #define VEX_LEN_12_P_0_M_0 (VEX_LEN_11_P_3 + 1)
1046 #define VEX_LEN_12_P_0_M_1 (VEX_LEN_12_P_0_M_0 + 1)
1047 #define VEX_LEN_12_P_2 (VEX_LEN_12_P_0_M_1 + 1)
1048 #define VEX_LEN_13_M_0 (VEX_LEN_12_P_2 + 1)
1049 #define VEX_LEN_16_P_0_M_0 (VEX_LEN_13_M_0 + 1)
1050 #define VEX_LEN_16_P_0_M_1 (VEX_LEN_16_P_0_M_0 + 1)
1051 #define VEX_LEN_16_P_2 (VEX_LEN_16_P_0_M_1 + 1)
1052 #define VEX_LEN_17_M_0 (VEX_LEN_16_P_2 + 1)
1053 #define VEX_LEN_2A_P_1 (VEX_LEN_17_M_0 + 1)
1054 #define VEX_LEN_2A_P_3 (VEX_LEN_2A_P_1 + 1)
1055 #define VEX_LEN_2B_M_0 (VEX_LEN_2A_P_3 + 1)
1056 #define VEX_LEN_2C_P_1 (VEX_LEN_2B_M_0 + 1)
1057 #define VEX_LEN_2C_P_3 (VEX_LEN_2C_P_1 + 1)
1058 #define VEX_LEN_2D_P_1 (VEX_LEN_2C_P_3 + 1)
1059 #define VEX_LEN_2D_P_3 (VEX_LEN_2D_P_1 + 1)
1060 #define VEX_LEN_2E_P_0 (VEX_LEN_2D_P_3 + 1)
1061 #define VEX_LEN_2E_P_2 (VEX_LEN_2E_P_0 + 1)
1062 #define VEX_LEN_2F_P_0 (VEX_LEN_2E_P_2 + 1)
1063 #define VEX_LEN_2F_P_2 (VEX_LEN_2F_P_0 + 1)
1064 #define VEX_LEN_51_P_1 (VEX_LEN_2F_P_2 + 1)
1065 #define VEX_LEN_51_P_3 (VEX_LEN_51_P_1 + 1)
1066 #define VEX_LEN_52_P_1 (VEX_LEN_51_P_3 + 1)
1067 #define VEX_LEN_53_P_1 (VEX_LEN_52_P_1 + 1)
1068 #define VEX_LEN_58_P_1 (VEX_LEN_53_P_1 + 1)
1069 #define VEX_LEN_58_P_3 (VEX_LEN_58_P_1 + 1)
1070 #define VEX_LEN_59_P_1 (VEX_LEN_58_P_3 + 1)
1071 #define VEX_LEN_59_P_3 (VEX_LEN_59_P_1 + 1)
1072 #define VEX_LEN_5A_P_1 (VEX_LEN_59_P_3 + 1)
1073 #define VEX_LEN_5A_P_3 (VEX_LEN_5A_P_1 + 1)
1074 #define VEX_LEN_5C_P_1 (VEX_LEN_5A_P_3 + 1)
1075 #define VEX_LEN_5C_P_3 (VEX_LEN_5C_P_1 + 1)
1076 #define VEX_LEN_5D_P_1 (VEX_LEN_5C_P_3 + 1)
1077 #define VEX_LEN_5D_P_3 (VEX_LEN_5D_P_1 + 1)
1078 #define VEX_LEN_5E_P_1 (VEX_LEN_5D_P_3 + 1)
1079 #define VEX_LEN_5E_P_3 (VEX_LEN_5E_P_1 + 1)
1080 #define VEX_LEN_5F_P_1 (VEX_LEN_5E_P_3 + 1)
1081 #define VEX_LEN_5F_P_3 (VEX_LEN_5F_P_1 + 1)
1082 #define VEX_LEN_60_P_2 (VEX_LEN_5F_P_3 + 1)
1083 #define VEX_LEN_61_P_2 (VEX_LEN_60_P_2 + 1)
1084 #define VEX_LEN_62_P_2 (VEX_LEN_61_P_2 + 1)
1085 #define VEX_LEN_63_P_2 (VEX_LEN_62_P_2 + 1)
1086 #define VEX_LEN_64_P_2 (VEX_LEN_63_P_2 + 1)
1087 #define VEX_LEN_65_P_2 (VEX_LEN_64_P_2 + 1)
1088 #define VEX_LEN_66_P_2 (VEX_LEN_65_P_2 + 1)
1089 #define VEX_LEN_67_P_2 (VEX_LEN_66_P_2 + 1)
1090 #define VEX_LEN_68_P_2 (VEX_LEN_67_P_2 + 1)
1091 #define VEX_LEN_69_P_2 (VEX_LEN_68_P_2 + 1)
1092 #define VEX_LEN_6A_P_2 (VEX_LEN_69_P_2 + 1)
1093 #define VEX_LEN_6B_P_2 (VEX_LEN_6A_P_2 + 1)
1094 #define VEX_LEN_6C_P_2 (VEX_LEN_6B_P_2 + 1)
1095 #define VEX_LEN_6D_P_2 (VEX_LEN_6C_P_2 + 1)
1096 #define VEX_LEN_6E_P_2 (VEX_LEN_6D_P_2 + 1)
1097 #define VEX_LEN_70_P_1 (VEX_LEN_6E_P_2 + 1)
1098 #define VEX_LEN_70_P_2 (VEX_LEN_70_P_1 + 1)
1099 #define VEX_LEN_70_P_3 (VEX_LEN_70_P_2 + 1)
1100 #define VEX_LEN_71_R_2_P_2 (VEX_LEN_70_P_3 + 1)
1101 #define VEX_LEN_71_R_4_P_2 (VEX_LEN_71_R_2_P_2 + 1)
1102 #define VEX_LEN_71_R_6_P_2 (VEX_LEN_71_R_4_P_2 + 1)
1103 #define VEX_LEN_72_R_2_P_2 (VEX_LEN_71_R_6_P_2 + 1)
1104 #define VEX_LEN_72_R_4_P_2 (VEX_LEN_72_R_2_P_2 + 1)
1105 #define VEX_LEN_72_R_6_P_2 (VEX_LEN_72_R_4_P_2 + 1)
1106 #define VEX_LEN_73_R_2_P_2 (VEX_LEN_72_R_6_P_2 + 1)
1107 #define VEX_LEN_73_R_3_P_2 (VEX_LEN_73_R_2_P_2 + 1)
1108 #define VEX_LEN_73_R_6_P_2 (VEX_LEN_73_R_3_P_2 + 1)
1109 #define VEX_LEN_73_R_7_P_2 (VEX_LEN_73_R_6_P_2 + 1)
1110 #define VEX_LEN_74_P_2 (VEX_LEN_73_R_7_P_2 + 1)
1111 #define VEX_LEN_75_P_2 (VEX_LEN_74_P_2 + 1)
1112 #define VEX_LEN_76_P_2 (VEX_LEN_75_P_2 + 1)
1113 #define VEX_LEN_7E_P_1 (VEX_LEN_76_P_2 + 1)
1114 #define VEX_LEN_7E_P_2 (VEX_LEN_7E_P_1 + 1)
1115 #define VEX_LEN_AE_R_2_M_0 (VEX_LEN_7E_P_2 + 1)
1116 #define VEX_LEN_AE_R_3_M_0 (VEX_LEN_AE_R_2_M_0 + 1)
1117 #define VEX_LEN_C2_P_1 (VEX_LEN_AE_R_3_M_0 + 1)
1118 #define VEX_LEN_C2_P_3 (VEX_LEN_C2_P_1 + 1)
1119 #define VEX_LEN_C4_P_2 (VEX_LEN_C2_P_3 + 1)
1120 #define VEX_LEN_C5_P_2 (VEX_LEN_C4_P_2 + 1)
1121 #define VEX_LEN_D1_P_2 (VEX_LEN_C5_P_2 + 1)
1122 #define VEX_LEN_D2_P_2 (VEX_LEN_D1_P_2 + 1)
1123 #define VEX_LEN_D3_P_2 (VEX_LEN_D2_P_2 + 1)
1124 #define VEX_LEN_D4_P_2 (VEX_LEN_D3_P_2 + 1)
1125 #define VEX_LEN_D5_P_2 (VEX_LEN_D4_P_2 + 1)
1126 #define VEX_LEN_D6_P_2 (VEX_LEN_D5_P_2 + 1)
1127 #define VEX_LEN_D7_P_2_M_1 (VEX_LEN_D6_P_2 + 1)
1128 #define VEX_LEN_D8_P_2 (VEX_LEN_D7_P_2_M_1 + 1)
1129 #define VEX_LEN_D9_P_2 (VEX_LEN_D8_P_2 + 1)
1130 #define VEX_LEN_DA_P_2 (VEX_LEN_D9_P_2 + 1)
1131 #define VEX_LEN_DB_P_2 (VEX_LEN_DA_P_2 + 1)
1132 #define VEX_LEN_DC_P_2 (VEX_LEN_DB_P_2 + 1)
1133 #define VEX_LEN_DD_P_2 (VEX_LEN_DC_P_2 + 1)
1134 #define VEX_LEN_DE_P_2 (VEX_LEN_DD_P_2 + 1)
1135 #define VEX_LEN_DF_P_2 (VEX_LEN_DE_P_2 + 1)
1136 #define VEX_LEN_E0_P_2 (VEX_LEN_DF_P_2 + 1)
1137 #define VEX_LEN_E1_P_2 (VEX_LEN_E0_P_2 + 1)
1138 #define VEX_LEN_E2_P_2 (VEX_LEN_E1_P_2 + 1)
1139 #define VEX_LEN_E3_P_2 (VEX_LEN_E2_P_2 + 1)
1140 #define VEX_LEN_E4_P_2 (VEX_LEN_E3_P_2 + 1)
1141 #define VEX_LEN_E5_P_2 (VEX_LEN_E4_P_2 + 1)
1142 #define VEX_LEN_E7_P_2_M_0 (VEX_LEN_E5_P_2 + 1)
1143 #define VEX_LEN_E8_P_2 (VEX_LEN_E7_P_2_M_0 + 1)
1144 #define VEX_LEN_E9_P_2 (VEX_LEN_E8_P_2 + 1)
1145 #define VEX_LEN_EA_P_2 (VEX_LEN_E9_P_2 + 1)
1146 #define VEX_LEN_EB_P_2 (VEX_LEN_EA_P_2 + 1)
1147 #define VEX_LEN_EC_P_2 (VEX_LEN_EB_P_2 + 1)
1148 #define VEX_LEN_ED_P_2 (VEX_LEN_EC_P_2 + 1)
1149 #define VEX_LEN_EE_P_2 (VEX_LEN_ED_P_2 + 1)
1150 #define VEX_LEN_EF_P_2 (VEX_LEN_EE_P_2 + 1)
1151 #define VEX_LEN_F1_P_2 (VEX_LEN_EF_P_2 + 1)
1152 #define VEX_LEN_F2_P_2 (VEX_LEN_F1_P_2 + 1)
1153 #define VEX_LEN_F3_P_2 (VEX_LEN_F2_P_2 + 1)
1154 #define VEX_LEN_F4_P_2 (VEX_LEN_F3_P_2 + 1)
1155 #define VEX_LEN_F5_P_2 (VEX_LEN_F4_P_2 + 1)
1156 #define VEX_LEN_F6_P_2 (VEX_LEN_F5_P_2 + 1)
1157 #define VEX_LEN_F7_P_2 (VEX_LEN_F6_P_2 + 1)
1158 #define VEX_LEN_F8_P_2 (VEX_LEN_F7_P_2 + 1)
1159 #define VEX_LEN_F9_P_2 (VEX_LEN_F8_P_2 + 1)
1160 #define VEX_LEN_FA_P_2 (VEX_LEN_F9_P_2 + 1)
1161 #define VEX_LEN_FB_P_2 (VEX_LEN_FA_P_2 + 1)
1162 #define VEX_LEN_FC_P_2 (VEX_LEN_FB_P_2 + 1)
1163 #define VEX_LEN_FD_P_2 (VEX_LEN_FC_P_2 + 1)
1164 #define VEX_LEN_FE_P_2 (VEX_LEN_FD_P_2 + 1)
1165 #define VEX_LEN_3800_P_2 (VEX_LEN_FE_P_2 + 1)
1166 #define VEX_LEN_3801_P_2 (VEX_LEN_3800_P_2 + 1)
1167 #define VEX_LEN_3802_P_2 (VEX_LEN_3801_P_2 + 1)
1168 #define VEX_LEN_3803_P_2 (VEX_LEN_3802_P_2 + 1)
1169 #define VEX_LEN_3804_P_2 (VEX_LEN_3803_P_2 + 1)
1170 #define VEX_LEN_3805_P_2 (VEX_LEN_3804_P_2 + 1)
1171 #define VEX_LEN_3806_P_2 (VEX_LEN_3805_P_2 + 1)
1172 #define VEX_LEN_3807_P_2 (VEX_LEN_3806_P_2 + 1)
1173 #define VEX_LEN_3808_P_2 (VEX_LEN_3807_P_2 + 1)
1174 #define VEX_LEN_3809_P_2 (VEX_LEN_3808_P_2 + 1)
1175 #define VEX_LEN_380A_P_2 (VEX_LEN_3809_P_2 + 1)
1176 #define VEX_LEN_380B_P_2 (VEX_LEN_380A_P_2 + 1)
1177 #define VEX_LEN_3819_P_2_M_0 (VEX_LEN_380B_P_2 + 1)
1178 #define VEX_LEN_381A_P_2_M_0 (VEX_LEN_3819_P_2_M_0 + 1)
1179 #define VEX_LEN_381C_P_2 (VEX_LEN_381A_P_2_M_0 + 1)
1180 #define VEX_LEN_381D_P_2 (VEX_LEN_381C_P_2 + 1)
1181 #define VEX_LEN_381E_P_2 (VEX_LEN_381D_P_2 + 1)
1182 #define VEX_LEN_3820_P_2 (VEX_LEN_381E_P_2 + 1)
1183 #define VEX_LEN_3821_P_2 (VEX_LEN_3820_P_2 + 1)
1184 #define VEX_LEN_3822_P_2 (VEX_LEN_3821_P_2 + 1)
1185 #define VEX_LEN_3823_P_2 (VEX_LEN_3822_P_2 + 1)
1186 #define VEX_LEN_3824_P_2 (VEX_LEN_3823_P_2 + 1)
1187 #define VEX_LEN_3825_P_2 (VEX_LEN_3824_P_2 + 1)
1188 #define VEX_LEN_3828_P_2 (VEX_LEN_3825_P_2 + 1)
1189 #define VEX_LEN_3829_P_2 (VEX_LEN_3828_P_2 + 1)
1190 #define VEX_LEN_382A_P_2_M_0 (VEX_LEN_3829_P_2 + 1)
1191 #define VEX_LEN_382B_P_2 (VEX_LEN_382A_P_2_M_0 + 1)
1192 #define VEX_LEN_3830_P_2 (VEX_LEN_382B_P_2 + 1)
1193 #define VEX_LEN_3831_P_2 (VEX_LEN_3830_P_2 + 1)
1194 #define VEX_LEN_3832_P_2 (VEX_LEN_3831_P_2 + 1)
1195 #define VEX_LEN_3833_P_2 (VEX_LEN_3832_P_2 + 1)
1196 #define VEX_LEN_3834_P_2 (VEX_LEN_3833_P_2 + 1)
1197 #define VEX_LEN_3835_P_2 (VEX_LEN_3834_P_2 + 1)
1198 #define VEX_LEN_3837_P_2 (VEX_LEN_3835_P_2 + 1)
1199 #define VEX_LEN_3838_P_2 (VEX_LEN_3837_P_2 + 1)
1200 #define VEX_LEN_3839_P_2 (VEX_LEN_3838_P_2 + 1)
1201 #define VEX_LEN_383A_P_2 (VEX_LEN_3839_P_2 + 1)
1202 #define VEX_LEN_383B_P_2 (VEX_LEN_383A_P_2 + 1)
1203 #define VEX_LEN_383C_P_2 (VEX_LEN_383B_P_2 + 1)
1204 #define VEX_LEN_383D_P_2 (VEX_LEN_383C_P_2 + 1)
1205 #define VEX_LEN_383E_P_2 (VEX_LEN_383D_P_2 + 1)
1206 #define VEX_LEN_383F_P_2 (VEX_LEN_383E_P_2 + 1)
1207 #define VEX_LEN_3840_P_2 (VEX_LEN_383F_P_2 + 1)
1208 #define VEX_LEN_3841_P_2 (VEX_LEN_3840_P_2 + 1)
1209 #define VEX_LEN_38DB_P_2 (VEX_LEN_3841_P_2 + 1)
1210 #define VEX_LEN_38DC_P_2 (VEX_LEN_38DB_P_2 + 1)
1211 #define VEX_LEN_38DD_P_2 (VEX_LEN_38DC_P_2 + 1)
1212 #define VEX_LEN_38DE_P_2 (VEX_LEN_38DD_P_2 + 1)
1213 #define VEX_LEN_38DF_P_2 (VEX_LEN_38DE_P_2 + 1)
1214 #define VEX_LEN_3A06_P_2 (VEX_LEN_38DF_P_2 + 1)
1215 #define VEX_LEN_3A0A_P_2 (VEX_LEN_3A06_P_2 + 1)
1216 #define VEX_LEN_3A0B_P_2 (VEX_LEN_3A0A_P_2 + 1)
1217 #define VEX_LEN_3A0E_P_2 (VEX_LEN_3A0B_P_2 + 1)
1218 #define VEX_LEN_3A0F_P_2 (VEX_LEN_3A0E_P_2 + 1)
1219 #define VEX_LEN_3A14_P_2 (VEX_LEN_3A0F_P_2 + 1)
1220 #define VEX_LEN_3A15_P_2 (VEX_LEN_3A14_P_2 + 1)
1221 #define VEX_LEN_3A16_P_2 (VEX_LEN_3A15_P_2 + 1)
1222 #define VEX_LEN_3A17_P_2 (VEX_LEN_3A16_P_2 + 1)
1223 #define VEX_LEN_3A18_P_2 (VEX_LEN_3A17_P_2 + 1)
1224 #define VEX_LEN_3A19_P_2 (VEX_LEN_3A18_P_2 + 1)
1225 #define VEX_LEN_3A20_P_2 (VEX_LEN_3A19_P_2 + 1)
1226 #define VEX_LEN_3A21_P_2 (VEX_LEN_3A20_P_2 + 1)
1227 #define VEX_LEN_3A22_P_2 (VEX_LEN_3A21_P_2 + 1)
1228 #define VEX_LEN_3A41_P_2 (VEX_LEN_3A22_P_2 + 1)
1229 #define VEX_LEN_3A42_P_2 (VEX_LEN_3A41_P_2 + 1)
1230 #define VEX_LEN_3A4C_P_2 (VEX_LEN_3A42_P_2 + 1)
1231 #define VEX_LEN_3A60_P_2 (VEX_LEN_3A4C_P_2 + 1)
1232 #define VEX_LEN_3A61_P_2 (VEX_LEN_3A60_P_2 + 1)
1233 #define VEX_LEN_3A62_P_2 (VEX_LEN_3A61_P_2 + 1)
1234 #define VEX_LEN_3A63_P_2 (VEX_LEN_3A62_P_2 + 1)
1235 #define VEX_LEN_3A6A_P_2 (VEX_LEN_3A63_P_2 + 1)
1236 #define VEX_LEN_3A6B_P_2 (VEX_LEN_3A6A_P_2 + 1)
1237 #define VEX_LEN_3A6E_P_2 (VEX_LEN_3A6B_P_2 + 1)
1238 #define VEX_LEN_3A6F_P_2 (VEX_LEN_3A6E_P_2 + 1)
1239 #define VEX_LEN_3A7A_P_2 (VEX_LEN_3A6F_P_2 + 1)
1240 #define VEX_LEN_3A7B_P_2 (VEX_LEN_3A7A_P_2 + 1)
1241 #define VEX_LEN_3A7E_P_2 (VEX_LEN_3A7B_P_2 + 1)
1242 #define VEX_LEN_3A7F_P_2 (VEX_LEN_3A7E_P_2 + 1)
1243 #define VEX_LEN_3ADF_P_2 (VEX_LEN_3A7F_P_2 + 1)
1245 typedef void (*op_rtn) (int bytemode, int sizeflag);
1256 /* Upper case letters in the instruction names here are macros.
1257 'A' => print 'b' if no register operands or suffix_always is true
1258 'B' => print 'b' if suffix_always is true
1259 'C' => print 's' or 'l' ('w' or 'd' in Intel mode) depending on operand
1261 'D' => print 'w' if no register operands or 'w', 'l' or 'q', if
1262 suffix_always is true
1263 'E' => print 'e' if 32-bit form of jcxz
1264 'F' => print 'w' or 'l' depending on address size prefix (loop insns)
1265 'G' => print 'w' or 'l' depending on operand size prefix (i/o insns)
1266 'H' => print ",pt" or ",pn" branch hint
1267 'I' => honor following macro letter even in Intel mode (implemented only
1268 for some of the macro letters)
1270 'K' => print 'd' or 'q' if rex prefix is present.
1271 'L' => print 'l' if suffix_always is true
1272 'M' => print 'r' if intel_mnemonic is false.
1273 'N' => print 'n' if instruction has no wait "prefix"
1274 'O' => print 'd' or 'o' (or 'q' in Intel mode)
1275 'P' => print 'w', 'l' or 'q' if instruction has an operand size prefix,
1276 or suffix_always is true. print 'q' if rex prefix is present.
1277 'Q' => print 'w', 'l' or 'q' for memory operand or suffix_always
1279 'R' => print 'w', 'l' or 'q' ('d' for 'l' and 'e' in Intel mode)
1280 'S' => print 'w', 'l' or 'q' if suffix_always is true
1281 'T' => print 'q' in 64bit mode and behave as 'P' otherwise
1282 'U' => print 'q' in 64bit mode and behave as 'Q' otherwise
1283 'V' => print 'q' in 64bit mode and behave as 'S' otherwise
1284 'W' => print 'b', 'w' or 'l' ('d' in Intel mode)
1285 'X' => print 's', 'd' depending on data16 prefix (for XMM)
1286 'Y' => 'q' if instruction has an REX 64bit overwrite prefix and
1287 suffix_always is true.
1288 'Z' => print 'q' in 64bit mode and behave as 'L' otherwise
1289 '!' => change condition from true to false or from false to true.
1290 '%' => add 1 upper case letter to the macro.
1292 2 upper case letter macros:
1293 "XY" => print 'x' or 'y' if no register operands or suffix_always
1295 'LQ' => print 'l' ('d' in Intel mode) or 'q' for memory operand
1296 or suffix_always is true
1298 Many of the above letters print nothing in Intel mode. See "putop"
1301 Braces '{' and '}', and vertical bars '|', indicate alternative
1302 mnemonic strings for AT&T and Intel. */
1304 static const struct dis386 dis386[] = {
1306 { "addB", { Eb, Gb } },
1307 { "addS", { Ev, Gv } },
1308 { "addB", { Gb, Eb } },
1309 { "addS", { Gv, Ev } },
1310 { "addB", { AL, Ib } },
1311 { "addS", { eAX, Iv } },
1312 { X86_64_TABLE (X86_64_06) },
1313 { X86_64_TABLE (X86_64_07) },
1315 { "orB", { Eb, Gb } },
1316 { "orS", { Ev, Gv } },
1317 { "orB", { Gb, Eb } },
1318 { "orS", { Gv, Ev } },
1319 { "orB", { AL, Ib } },
1320 { "orS", { eAX, Iv } },
1321 { X86_64_TABLE (X86_64_0D) },
1322 { "(bad)", { XX } }, /* 0x0f extended opcode escape */
1324 { "adcB", { Eb, Gb } },
1325 { "adcS", { Ev, Gv } },
1326 { "adcB", { Gb, Eb } },
1327 { "adcS", { Gv, Ev } },
1328 { "adcB", { AL, Ib } },
1329 { "adcS", { eAX, Iv } },
1330 { X86_64_TABLE (X86_64_16) },
1331 { X86_64_TABLE (X86_64_17) },
1333 { "sbbB", { Eb, Gb } },
1334 { "sbbS", { Ev, Gv } },
1335 { "sbbB", { Gb, Eb } },
1336 { "sbbS", { Gv, Ev } },
1337 { "sbbB", { AL, Ib } },
1338 { "sbbS", { eAX, Iv } },
1339 { X86_64_TABLE (X86_64_1E) },
1340 { X86_64_TABLE (X86_64_1F) },
1342 { "andB", { Eb, Gb } },
1343 { "andS", { Ev, Gv } },
1344 { "andB", { Gb, Eb } },
1345 { "andS", { Gv, Ev } },
1346 { "andB", { AL, Ib } },
1347 { "andS", { eAX, Iv } },
1348 { "(bad)", { XX } }, /* SEG ES prefix */
1349 { X86_64_TABLE (X86_64_27) },
1351 { "subB", { Eb, Gb } },
1352 { "subS", { Ev, Gv } },
1353 { "subB", { Gb, Eb } },
1354 { "subS", { Gv, Ev } },
1355 { "subB", { AL, Ib } },
1356 { "subS", { eAX, Iv } },
1357 { "(bad)", { XX } }, /* SEG CS prefix */
1358 { X86_64_TABLE (X86_64_2F) },
1360 { "xorB", { Eb, Gb } },
1361 { "xorS", { Ev, Gv } },
1362 { "xorB", { Gb, Eb } },
1363 { "xorS", { Gv, Ev } },
1364 { "xorB", { AL, Ib } },
1365 { "xorS", { eAX, Iv } },
1366 { "(bad)", { XX } }, /* SEG SS prefix */
1367 { X86_64_TABLE (X86_64_37) },
1369 { "cmpB", { Eb, Gb } },
1370 { "cmpS", { Ev, Gv } },
1371 { "cmpB", { Gb, Eb } },
1372 { "cmpS", { Gv, Ev } },
1373 { "cmpB", { AL, Ib } },
1374 { "cmpS", { eAX, Iv } },
1375 { "(bad)", { XX } }, /* SEG DS prefix */
1376 { X86_64_TABLE (X86_64_3F) },
1378 { "inc{S|}", { RMeAX } },
1379 { "inc{S|}", { RMeCX } },
1380 { "inc{S|}", { RMeDX } },
1381 { "inc{S|}", { RMeBX } },
1382 { "inc{S|}", { RMeSP } },
1383 { "inc{S|}", { RMeBP } },
1384 { "inc{S|}", { RMeSI } },
1385 { "inc{S|}", { RMeDI } },
1387 { "dec{S|}", { RMeAX } },
1388 { "dec{S|}", { RMeCX } },
1389 { "dec{S|}", { RMeDX } },
1390 { "dec{S|}", { RMeBX } },
1391 { "dec{S|}", { RMeSP } },
1392 { "dec{S|}", { RMeBP } },
1393 { "dec{S|}", { RMeSI } },
1394 { "dec{S|}", { RMeDI } },
1396 { "pushV", { RMrAX } },
1397 { "pushV", { RMrCX } },
1398 { "pushV", { RMrDX } },
1399 { "pushV", { RMrBX } },
1400 { "pushV", { RMrSP } },
1401 { "pushV", { RMrBP } },
1402 { "pushV", { RMrSI } },
1403 { "pushV", { RMrDI } },
1405 { "popV", { RMrAX } },
1406 { "popV", { RMrCX } },
1407 { "popV", { RMrDX } },
1408 { "popV", { RMrBX } },
1409 { "popV", { RMrSP } },
1410 { "popV", { RMrBP } },
1411 { "popV", { RMrSI } },
1412 { "popV", { RMrDI } },
1414 { X86_64_TABLE (X86_64_60) },
1415 { X86_64_TABLE (X86_64_61) },
1416 { X86_64_TABLE (X86_64_62) },
1417 { X86_64_TABLE (X86_64_63) },
1418 { "(bad)", { XX } }, /* seg fs */
1419 { "(bad)", { XX } }, /* seg gs */
1420 { "(bad)", { XX } }, /* op size prefix */
1421 { "(bad)", { XX } }, /* adr size prefix */
1423 { "pushT", { Iq } },
1424 { "imulS", { Gv, Ev, Iv } },
1425 { "pushT", { sIb } },
1426 { "imulS", { Gv, Ev, sIb } },
1427 { "ins{b|}", { Ybr, indirDX } },
1428 { X86_64_TABLE (X86_64_6D) },
1429 { "outs{b|}", { indirDXr, Xb } },
1430 { X86_64_TABLE (X86_64_6F) },
1432 { "joH", { Jb, XX, cond_jump_flag } },
1433 { "jnoH", { Jb, XX, cond_jump_flag } },
1434 { "jbH", { Jb, XX, cond_jump_flag } },
1435 { "jaeH", { Jb, XX, cond_jump_flag } },
1436 { "jeH", { Jb, XX, cond_jump_flag } },
1437 { "jneH", { Jb, XX, cond_jump_flag } },
1438 { "jbeH", { Jb, XX, cond_jump_flag } },
1439 { "jaH", { Jb, XX, cond_jump_flag } },
1441 { "jsH", { Jb, XX, cond_jump_flag } },
1442 { "jnsH", { Jb, XX, cond_jump_flag } },
1443 { "jpH", { Jb, XX, cond_jump_flag } },
1444 { "jnpH", { Jb, XX, cond_jump_flag } },
1445 { "jlH", { Jb, XX, cond_jump_flag } },
1446 { "jgeH", { Jb, XX, cond_jump_flag } },
1447 { "jleH", { Jb, XX, cond_jump_flag } },
1448 { "jgH", { Jb, XX, cond_jump_flag } },
1450 { REG_TABLE (REG_80) },
1451 { REG_TABLE (REG_81) },
1452 { "(bad)", { XX } },
1453 { REG_TABLE (REG_82) },
1454 { "testB", { Eb, Gb } },
1455 { "testS", { Ev, Gv } },
1456 { "xchgB", { Eb, Gb } },
1457 { "xchgS", { Ev, Gv } },
1459 { "movB", { Eb, Gb } },
1460 { "movS", { Ev, Gv } },
1461 { "movB", { Gb, Eb } },
1462 { "movS", { Gv, Ev } },
1463 { "movD", { Sv, Sw } },
1464 { MOD_TABLE (MOD_8D) },
1465 { "movD", { Sw, Sv } },
1466 { REG_TABLE (REG_8F) },
1468 { PREFIX_TABLE (PREFIX_90) },
1469 { "xchgS", { RMeCX, eAX } },
1470 { "xchgS", { RMeDX, eAX } },
1471 { "xchgS", { RMeBX, eAX } },
1472 { "xchgS", { RMeSP, eAX } },
1473 { "xchgS", { RMeBP, eAX } },
1474 { "xchgS", { RMeSI, eAX } },
1475 { "xchgS", { RMeDI, eAX } },
1477 { "cW{t|}R", { XX } },
1478 { "cR{t|}O", { XX } },
1479 { X86_64_TABLE (X86_64_9A) },
1480 { "(bad)", { XX } }, /* fwait */
1481 { "pushfT", { XX } },
1482 { "popfT", { XX } },
1486 { "movB", { AL, Ob } },
1487 { "movS", { eAX, Ov } },
1488 { "movB", { Ob, AL } },
1489 { "movS", { Ov, eAX } },
1490 { "movs{b|}", { Ybr, Xb } },
1491 { "movs{R|}", { Yvr, Xv } },
1492 { "cmps{b|}", { Xb, Yb } },
1493 { "cmps{R|}", { Xv, Yv } },
1495 { "testB", { AL, Ib } },
1496 { "testS", { eAX, Iv } },
1497 { "stosB", { Ybr, AL } },
1498 { "stosS", { Yvr, eAX } },
1499 { "lodsB", { ALr, Xb } },
1500 { "lodsS", { eAXr, Xv } },
1501 { "scasB", { AL, Yb } },
1502 { "scasS", { eAX, Yv } },
1504 { "movB", { RMAL, Ib } },
1505 { "movB", { RMCL, Ib } },
1506 { "movB", { RMDL, Ib } },
1507 { "movB", { RMBL, Ib } },
1508 { "movB", { RMAH, Ib } },
1509 { "movB", { RMCH, Ib } },
1510 { "movB", { RMDH, Ib } },
1511 { "movB", { RMBH, Ib } },
1513 { "movS", { RMeAX, Iv64 } },
1514 { "movS", { RMeCX, Iv64 } },
1515 { "movS", { RMeDX, Iv64 } },
1516 { "movS", { RMeBX, Iv64 } },
1517 { "movS", { RMeSP, Iv64 } },
1518 { "movS", { RMeBP, Iv64 } },
1519 { "movS", { RMeSI, Iv64 } },
1520 { "movS", { RMeDI, Iv64 } },
1522 { REG_TABLE (REG_C0) },
1523 { REG_TABLE (REG_C1) },
1526 { X86_64_TABLE (X86_64_C4) },
1527 { X86_64_TABLE (X86_64_C5) },
1528 { REG_TABLE (REG_C6) },
1529 { REG_TABLE (REG_C7) },
1531 { "enterT", { Iw, Ib } },
1532 { "leaveT", { XX } },
1533 { "Jret{|f}P", { Iw } },
1534 { "Jret{|f}P", { XX } },
1537 { X86_64_TABLE (X86_64_CE) },
1538 { "iretP", { XX } },
1540 { REG_TABLE (REG_D0) },
1541 { REG_TABLE (REG_D1) },
1542 { REG_TABLE (REG_D2) },
1543 { REG_TABLE (REG_D3) },
1544 { X86_64_TABLE (X86_64_D4) },
1545 { X86_64_TABLE (X86_64_D5) },
1546 { "(bad)", { XX } },
1547 { "xlat", { DSBX } },
1558 { "loopneFH", { Jb, XX, loop_jcxz_flag } },
1559 { "loopeFH", { Jb, XX, loop_jcxz_flag } },
1560 { "loopFH", { Jb, XX, loop_jcxz_flag } },
1561 { "jEcxzH", { Jb, XX, loop_jcxz_flag } },
1562 { "inB", { AL, Ib } },
1563 { "inG", { zAX, Ib } },
1564 { "outB", { Ib, AL } },
1565 { "outG", { Ib, zAX } },
1567 { "callT", { Jv } },
1569 { X86_64_TABLE (X86_64_EA) },
1571 { "inB", { AL, indirDX } },
1572 { "inG", { zAX, indirDX } },
1573 { "outB", { indirDX, AL } },
1574 { "outG", { indirDX, zAX } },
1576 { "(bad)", { XX } }, /* lock prefix */
1577 { "icebp", { XX } },
1578 { "(bad)", { XX } }, /* repne */
1579 { "(bad)", { XX } }, /* repz */
1582 { REG_TABLE (REG_F6) },
1583 { REG_TABLE (REG_F7) },
1591 { REG_TABLE (REG_FE) },
1592 { REG_TABLE (REG_FF) },
1595 static const struct dis386 dis386_twobyte[] = {
1597 { REG_TABLE (REG_0F00 ) },
1598 { REG_TABLE (REG_0F01 ) },
1599 { "larS", { Gv, Ew } },
1600 { "lslS", { Gv, Ew } },
1601 { "(bad)", { XX } },
1602 { "syscall", { XX } },
1604 { "sysretP", { XX } },
1607 { "wbinvd", { XX } },
1608 { "(bad)", { XX } },
1610 { "(bad)", { XX } },
1611 { REG_TABLE (REG_0F0D) },
1612 { "femms", { XX } },
1613 { "", { MX, EM, OPSUF } }, /* See OP_3DNowSuffix. */
1615 { PREFIX_TABLE (PREFIX_0F10) },
1616 { PREFIX_TABLE (PREFIX_0F11) },
1617 { PREFIX_TABLE (PREFIX_0F12) },
1618 { MOD_TABLE (MOD_0F13) },
1619 { "unpcklpX", { XM, EXx } },
1620 { "unpckhpX", { XM, EXx } },
1621 { PREFIX_TABLE (PREFIX_0F16) },
1622 { MOD_TABLE (MOD_0F17) },
1624 { REG_TABLE (REG_0F18) },
1633 { MOD_TABLE (MOD_0F20) },
1634 { MOD_TABLE (MOD_0F21) },
1635 { MOD_TABLE (MOD_0F22) },
1636 { MOD_TABLE (MOD_0F23) },
1637 { MOD_TABLE (MOD_0F24) },
1638 { THREE_BYTE_TABLE (THREE_BYTE_0F25) },
1639 { MOD_TABLE (MOD_0F26) },
1640 { "(bad)", { XX } },
1642 { "movapX", { XM, EXx } },
1643 { "movapX", { EXx, XM } },
1644 { PREFIX_TABLE (PREFIX_0F2A) },
1645 { PREFIX_TABLE (PREFIX_0F2B) },
1646 { PREFIX_TABLE (PREFIX_0F2C) },
1647 { PREFIX_TABLE (PREFIX_0F2D) },
1648 { PREFIX_TABLE (PREFIX_0F2E) },
1649 { PREFIX_TABLE (PREFIX_0F2F) },
1651 { "wrmsr", { XX } },
1652 { "rdtsc", { XX } },
1653 { "rdmsr", { XX } },
1654 { "rdpmc", { XX } },
1655 { "sysenter", { XX } },
1656 { "sysexit", { XX } },
1657 { "(bad)", { XX } },
1658 { "getsec", { XX } },
1660 { THREE_BYTE_TABLE (THREE_BYTE_0F38) },
1661 { "(bad)", { XX } },
1662 { THREE_BYTE_TABLE (THREE_BYTE_0F3A) },
1663 { "(bad)", { XX } },
1664 { "(bad)", { XX } },
1665 { "(bad)", { XX } },
1666 { "(bad)", { XX } },
1667 { "(bad)", { XX } },
1669 { "cmovoS", { Gv, Ev } },
1670 { "cmovnoS", { Gv, Ev } },
1671 { "cmovbS", { Gv, Ev } },
1672 { "cmovaeS", { Gv, Ev } },
1673 { "cmoveS", { Gv, Ev } },
1674 { "cmovneS", { Gv, Ev } },
1675 { "cmovbeS", { Gv, Ev } },
1676 { "cmovaS", { Gv, Ev } },
1678 { "cmovsS", { Gv, Ev } },
1679 { "cmovnsS", { Gv, Ev } },
1680 { "cmovpS", { Gv, Ev } },
1681 { "cmovnpS", { Gv, Ev } },
1682 { "cmovlS", { Gv, Ev } },
1683 { "cmovgeS", { Gv, Ev } },
1684 { "cmovleS", { Gv, Ev } },
1685 { "cmovgS", { Gv, Ev } },
1687 { MOD_TABLE (MOD_0F51) },
1688 { PREFIX_TABLE (PREFIX_0F51) },
1689 { PREFIX_TABLE (PREFIX_0F52) },
1690 { PREFIX_TABLE (PREFIX_0F53) },
1691 { "andpX", { XM, EXx } },
1692 { "andnpX", { XM, EXx } },
1693 { "orpX", { XM, EXx } },
1694 { "xorpX", { XM, EXx } },
1696 { PREFIX_TABLE (PREFIX_0F58) },
1697 { PREFIX_TABLE (PREFIX_0F59) },
1698 { PREFIX_TABLE (PREFIX_0F5A) },
1699 { PREFIX_TABLE (PREFIX_0F5B) },
1700 { PREFIX_TABLE (PREFIX_0F5C) },
1701 { PREFIX_TABLE (PREFIX_0F5D) },
1702 { PREFIX_TABLE (PREFIX_0F5E) },
1703 { PREFIX_TABLE (PREFIX_0F5F) },
1705 { PREFIX_TABLE (PREFIX_0F60) },
1706 { PREFIX_TABLE (PREFIX_0F61) },
1707 { PREFIX_TABLE (PREFIX_0F62) },
1708 { "packsswb", { MX, EM } },
1709 { "pcmpgtb", { MX, EM } },
1710 { "pcmpgtw", { MX, EM } },
1711 { "pcmpgtd", { MX, EM } },
1712 { "packuswb", { MX, EM } },
1714 { "punpckhbw", { MX, EM } },
1715 { "punpckhwd", { MX, EM } },
1716 { "punpckhdq", { MX, EM } },
1717 { "packssdw", { MX, EM } },
1718 { PREFIX_TABLE (PREFIX_0F6C) },
1719 { PREFIX_TABLE (PREFIX_0F6D) },
1720 { "movK", { MX, Edq } },
1721 { PREFIX_TABLE (PREFIX_0F6F) },
1723 { PREFIX_TABLE (PREFIX_0F70) },
1724 { REG_TABLE (REG_0F71) },
1725 { REG_TABLE (REG_0F72) },
1726 { REG_TABLE (REG_0F73) },
1727 { "pcmpeqb", { MX, EM } },
1728 { "pcmpeqw", { MX, EM } },
1729 { "pcmpeqd", { MX, EM } },
1732 { PREFIX_TABLE (PREFIX_0F78) },
1733 { PREFIX_TABLE (PREFIX_0F79) },
1734 { THREE_BYTE_TABLE (THREE_BYTE_0F7A) },
1735 { THREE_BYTE_TABLE (THREE_BYTE_0F7B) },
1736 { PREFIX_TABLE (PREFIX_0F7C) },
1737 { PREFIX_TABLE (PREFIX_0F7D) },
1738 { PREFIX_TABLE (PREFIX_0F7E) },
1739 { PREFIX_TABLE (PREFIX_0F7F) },
1741 { "joH", { Jv, XX, cond_jump_flag } },
1742 { "jnoH", { Jv, XX, cond_jump_flag } },
1743 { "jbH", { Jv, XX, cond_jump_flag } },
1744 { "jaeH", { Jv, XX, cond_jump_flag } },
1745 { "jeH", { Jv, XX, cond_jump_flag } },
1746 { "jneH", { Jv, XX, cond_jump_flag } },
1747 { "jbeH", { Jv, XX, cond_jump_flag } },
1748 { "jaH", { Jv, XX, cond_jump_flag } },
1750 { "jsH", { Jv, XX, cond_jump_flag } },
1751 { "jnsH", { Jv, XX, cond_jump_flag } },
1752 { "jpH", { Jv, XX, cond_jump_flag } },
1753 { "jnpH", { Jv, XX, cond_jump_flag } },
1754 { "jlH", { Jv, XX, cond_jump_flag } },
1755 { "jgeH", { Jv, XX, cond_jump_flag } },
1756 { "jleH", { Jv, XX, cond_jump_flag } },
1757 { "jgH", { Jv, XX, cond_jump_flag } },
1760 { "setno", { Eb } },
1762 { "setae", { Eb } },
1764 { "setne", { Eb } },
1765 { "setbe", { Eb } },
1769 { "setns", { Eb } },
1771 { "setnp", { Eb } },
1773 { "setge", { Eb } },
1774 { "setle", { Eb } },
1777 { "pushT", { fs } },
1779 { "cpuid", { XX } },
1780 { "btS", { Ev, Gv } },
1781 { "shldS", { Ev, Gv, Ib } },
1782 { "shldS", { Ev, Gv, CL } },
1783 { REG_TABLE (REG_0FA6) },
1784 { REG_TABLE (REG_0FA7) },
1786 { "pushT", { gs } },
1789 { "btsS", { Ev, Gv } },
1790 { "shrdS", { Ev, Gv, Ib } },
1791 { "shrdS", { Ev, Gv, CL } },
1792 { REG_TABLE (REG_0FAE) },
1793 { "imulS", { Gv, Ev } },
1795 { "cmpxchgB", { Eb, Gb } },
1796 { "cmpxchgS", { Ev, Gv } },
1797 { MOD_TABLE (MOD_0FB2) },
1798 { "btrS", { Ev, Gv } },
1799 { MOD_TABLE (MOD_0FB4) },
1800 { MOD_TABLE (MOD_0FB5) },
1801 { "movz{bR|x}", { Gv, Eb } },
1802 { "movz{wR|x}", { Gv, Ew } }, /* yes, there really is movzww ! */
1804 { PREFIX_TABLE (PREFIX_0FB8) },
1806 { REG_TABLE (REG_0FBA) },
1807 { "btcS", { Ev, Gv } },
1808 { "bsfS", { Gv, Ev } },
1809 { PREFIX_TABLE (PREFIX_0FBD) },
1810 { "movs{bR|x}", { Gv, Eb } },
1811 { "movs{wR|x}", { Gv, Ew } }, /* yes, there really is movsww ! */
1813 { "xaddB", { Eb, Gb } },
1814 { "xaddS", { Ev, Gv } },
1815 { PREFIX_TABLE (PREFIX_0FC2) },
1816 { PREFIX_TABLE (PREFIX_0FC3) },
1817 { "pinsrw", { MX, Edqw, Ib } },
1818 { "pextrw", { Gdq, MS, Ib } },
1819 { "shufpX", { XM, EXx, Ib } },
1820 { REG_TABLE (REG_0FC7) },
1822 { "bswap", { RMeAX } },
1823 { "bswap", { RMeCX } },
1824 { "bswap", { RMeDX } },
1825 { "bswap", { RMeBX } },
1826 { "bswap", { RMeSP } },
1827 { "bswap", { RMeBP } },
1828 { "bswap", { RMeSI } },
1829 { "bswap", { RMeDI } },
1831 { PREFIX_TABLE (PREFIX_0FD0) },
1832 { "psrlw", { MX, EM } },
1833 { "psrld", { MX, EM } },
1834 { "psrlq", { MX, EM } },
1835 { "paddq", { MX, EM } },
1836 { "pmullw", { MX, EM } },
1837 { PREFIX_TABLE (PREFIX_0FD6) },
1838 { MOD_TABLE (MOD_0FD7) },
1840 { "psubusb", { MX, EM } },
1841 { "psubusw", { MX, EM } },
1842 { "pminub", { MX, EM } },
1843 { "pand", { MX, EM } },
1844 { "paddusb", { MX, EM } },
1845 { "paddusw", { MX, EM } },
1846 { "pmaxub", { MX, EM } },
1847 { "pandn", { MX, EM } },
1849 { "pavgb", { MX, EM } },
1850 { "psraw", { MX, EM } },
1851 { "psrad", { MX, EM } },
1852 { "pavgw", { MX, EM } },
1853 { "pmulhuw", { MX, EM } },
1854 { "pmulhw", { MX, EM } },
1855 { PREFIX_TABLE (PREFIX_0FE6) },
1856 { PREFIX_TABLE (PREFIX_0FE7) },
1858 { "psubsb", { MX, EM } },
1859 { "psubsw", { MX, EM } },
1860 { "pminsw", { MX, EM } },
1861 { "por", { MX, EM } },
1862 { "paddsb", { MX, EM } },
1863 { "paddsw", { MX, EM } },
1864 { "pmaxsw", { MX, EM } },
1865 { "pxor", { MX, EM } },
1867 { PREFIX_TABLE (PREFIX_0FF0) },
1868 { "psllw", { MX, EM } },
1869 { "pslld", { MX, EM } },
1870 { "psllq", { MX, EM } },
1871 { "pmuludq", { MX, EM } },
1872 { "pmaddwd", { MX, EM } },
1873 { "psadbw", { MX, EM } },
1874 { PREFIX_TABLE (PREFIX_0FF7) },
1876 { "psubb", { MX, EM } },
1877 { "psubw", { MX, EM } },
1878 { "psubd", { MX, EM } },
1879 { "psubq", { MX, EM } },
1880 { "paddb", { MX, EM } },
1881 { "paddw", { MX, EM } },
1882 { "paddd", { MX, EM } },
1883 { "(bad)", { XX } },
1886 static const unsigned char onebyte_has_modrm[256] = {
1887 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1888 /* ------------------------------- */
1889 /* 00 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 00 */
1890 /* 10 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 10 */
1891 /* 20 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 20 */
1892 /* 30 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 30 */
1893 /* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 40 */
1894 /* 50 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 50 */
1895 /* 60 */ 0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0, /* 60 */
1896 /* 70 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 70 */
1897 /* 80 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 80 */
1898 /* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 90 */
1899 /* a0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* a0 */
1900 /* b0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* b0 */
1901 /* c0 */ 1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0, /* c0 */
1902 /* d0 */ 1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1, /* d0 */
1903 /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* e0 */
1904 /* f0 */ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1 /* f0 */
1905 /* ------------------------------- */
1906 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1909 static const unsigned char twobyte_has_modrm[256] = {
1910 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1911 /* ------------------------------- */
1912 /* 00 */ 1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,1, /* 0f */
1913 /* 10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 1f */
1914 /* 20 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 2f */
1915 /* 30 */ 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0, /* 3f */
1916 /* 40 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 4f */
1917 /* 50 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 5f */
1918 /* 60 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 6f */
1919 /* 70 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 7f */
1920 /* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */
1921 /* 90 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 9f */
1922 /* a0 */ 0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1, /* af */
1923 /* b0 */ 1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1, /* bf */
1924 /* c0 */ 1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* cf */
1925 /* d0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* df */
1926 /* e0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ef */
1927 /* f0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0 /* ff */
1928 /* ------------------------------- */
1929 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1932 static char obuf[100];
1934 static char scratchbuf[100];
1935 static unsigned char *start_codep;
1936 static unsigned char *insn_codep;
1937 static unsigned char *codep;
1938 static const char *lock_prefix;
1939 static const char *data_prefix;
1940 static const char *addr_prefix;
1941 static const char *repz_prefix;
1942 static const char *repnz_prefix;
1943 static disassemble_info *the_info;
1951 static unsigned char need_modrm;
1954 int register_specifier;
1960 static unsigned char need_vex;
1961 static unsigned char need_vex_reg;
1962 static unsigned char vex_w_done;
1964 /* If we are accessing mod/rm/reg without need_modrm set, then the
1965 values are stale. Hitting this abort likely indicates that you
1966 need to update onebyte_has_modrm or twobyte_has_modrm. */
1967 #define MODRM_CHECK if (!need_modrm) abort ()
1969 static const char **names64;
1970 static const char **names32;
1971 static const char **names16;
1972 static const char **names8;
1973 static const char **names8rex;
1974 static const char **names_seg;
1975 static const char *index64;
1976 static const char *index32;
1977 static const char **index16;
1979 static const char *intel_names64[] = {
1980 "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
1981 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
1983 static const char *intel_names32[] = {
1984 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi",
1985 "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d"
1987 static const char *intel_names16[] = {
1988 "ax", "cx", "dx", "bx", "sp", "bp", "si", "di",
1989 "r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w"
1991 static const char *intel_names8[] = {
1992 "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh",
1994 static const char *intel_names8rex[] = {
1995 "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil",
1996 "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b"
1998 static const char *intel_names_seg[] = {
1999 "es", "cs", "ss", "ds", "fs", "gs", "?", "?",
2001 static const char *intel_index64 = "riz";
2002 static const char *intel_index32 = "eiz";
2003 static const char *intel_index16[] = {
2004 "bx+si", "bx+di", "bp+si", "bp+di", "si", "di", "bp", "bx"
2007 static const char *att_names64[] = {
2008 "%rax", "%rcx", "%rdx", "%rbx", "%rsp", "%rbp", "%rsi", "%rdi",
2009 "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"
2011 static const char *att_names32[] = {
2012 "%eax", "%ecx", "%edx", "%ebx", "%esp", "%ebp", "%esi", "%edi",
2013 "%r8d", "%r9d", "%r10d", "%r11d", "%r12d", "%r13d", "%r14d", "%r15d"
2015 static const char *att_names16[] = {
2016 "%ax", "%cx", "%dx", "%bx", "%sp", "%bp", "%si", "%di",
2017 "%r8w", "%r9w", "%r10w", "%r11w", "%r12w", "%r13w", "%r14w", "%r15w"
2019 static const char *att_names8[] = {
2020 "%al", "%cl", "%dl", "%bl", "%ah", "%ch", "%dh", "%bh",
2022 static const char *att_names8rex[] = {
2023 "%al", "%cl", "%dl", "%bl", "%spl", "%bpl", "%sil", "%dil",
2024 "%r8b", "%r9b", "%r10b", "%r11b", "%r12b", "%r13b", "%r14b", "%r15b"
2026 static const char *att_names_seg[] = {
2027 "%es", "%cs", "%ss", "%ds", "%fs", "%gs", "%?", "%?",
2029 static const char *att_index64 = "%riz";
2030 static const char *att_index32 = "%eiz";
2031 static const char *att_index16[] = {
2032 "%bx,%si", "%bx,%di", "%bp,%si", "%bp,%di", "%si", "%di", "%bp", "%bx"
2035 static const struct dis386 reg_table[][8] = {
2038 { "addA", { Eb, Ib } },
2039 { "orA", { Eb, Ib } },
2040 { "adcA", { Eb, Ib } },
2041 { "sbbA", { Eb, Ib } },
2042 { "andA", { Eb, Ib } },
2043 { "subA", { Eb, Ib } },
2044 { "xorA", { Eb, Ib } },
2045 { "cmpA", { Eb, Ib } },
2049 { "addQ", { Ev, Iv } },
2050 { "orQ", { Ev, Iv } },
2051 { "adcQ", { Ev, Iv } },
2052 { "sbbQ", { Ev, Iv } },
2053 { "andQ", { Ev, Iv } },
2054 { "subQ", { Ev, Iv } },
2055 { "xorQ", { Ev, Iv } },
2056 { "cmpQ", { Ev, Iv } },
2060 { "addQ", { Ev, sIb } },
2061 { "orQ", { Ev, sIb } },
2062 { "adcQ", { Ev, sIb } },
2063 { "sbbQ", { Ev, sIb } },
2064 { "andQ", { Ev, sIb } },
2065 { "subQ", { Ev, sIb } },
2066 { "xorQ", { Ev, sIb } },
2067 { "cmpQ", { Ev, sIb } },
2071 { "popU", { stackEv } },
2072 { "(bad)", { XX } },
2073 { "(bad)", { XX } },
2074 { "(bad)", { XX } },
2075 { "(bad)", { XX } },
2076 { "(bad)", { XX } },
2077 { "(bad)", { XX } },
2078 { "(bad)", { XX } },
2082 { "rolA", { Eb, Ib } },
2083 { "rorA", { Eb, Ib } },
2084 { "rclA", { Eb, Ib } },
2085 { "rcrA", { Eb, Ib } },
2086 { "shlA", { Eb, Ib } },
2087 { "shrA", { Eb, Ib } },
2088 { "(bad)", { XX } },
2089 { "sarA", { Eb, Ib } },
2093 { "rolQ", { Ev, Ib } },
2094 { "rorQ", { Ev, Ib } },
2095 { "rclQ", { Ev, Ib } },
2096 { "rcrQ", { Ev, Ib } },
2097 { "shlQ", { Ev, Ib } },
2098 { "shrQ", { Ev, Ib } },
2099 { "(bad)", { XX } },
2100 { "sarQ", { Ev, Ib } },
2104 { "movA", { Eb, Ib } },
2105 { "(bad)", { XX } },
2106 { "(bad)", { XX } },
2107 { "(bad)", { XX } },
2108 { "(bad)", { XX } },
2109 { "(bad)", { XX } },
2110 { "(bad)", { XX } },
2111 { "(bad)", { XX } },
2115 { "movQ", { Ev, Iv } },
2116 { "(bad)", { XX } },
2117 { "(bad)", { XX } },
2118 { "(bad)", { XX } },
2119 { "(bad)", { XX } },
2120 { "(bad)", { XX } },
2121 { "(bad)", { XX } },
2122 { "(bad)", { XX } },
2126 { "rolA", { Eb, I1 } },
2127 { "rorA", { Eb, I1 } },
2128 { "rclA", { Eb, I1 } },
2129 { "rcrA", { Eb, I1 } },
2130 { "shlA", { Eb, I1 } },
2131 { "shrA", { Eb, I1 } },
2132 { "(bad)", { XX } },
2133 { "sarA", { Eb, I1 } },
2137 { "rolQ", { Ev, I1 } },
2138 { "rorQ", { Ev, I1 } },
2139 { "rclQ", { Ev, I1 } },
2140 { "rcrQ", { Ev, I1 } },
2141 { "shlQ", { Ev, I1 } },
2142 { "shrQ", { Ev, I1 } },
2143 { "(bad)", { XX } },
2144 { "sarQ", { Ev, I1 } },
2148 { "rolA", { Eb, CL } },
2149 { "rorA", { Eb, CL } },
2150 { "rclA", { Eb, CL } },
2151 { "rcrA", { Eb, CL } },
2152 { "shlA", { Eb, CL } },
2153 { "shrA", { Eb, CL } },
2154 { "(bad)", { XX } },
2155 { "sarA", { Eb, CL } },
2159 { "rolQ", { Ev, CL } },
2160 { "rorQ", { Ev, CL } },
2161 { "rclQ", { Ev, CL } },
2162 { "rcrQ", { Ev, CL } },
2163 { "shlQ", { Ev, CL } },
2164 { "shrQ", { Ev, CL } },
2165 { "(bad)", { XX } },
2166 { "sarQ", { Ev, CL } },
2170 { "testA", { Eb, Ib } },
2171 { "(bad)", { XX } },
2174 { "mulA", { Eb } }, /* Don't print the implicit %al register, */
2175 { "imulA", { Eb } }, /* to distinguish these opcodes from other */
2176 { "divA", { Eb } }, /* mul/imul opcodes. Do the same for div */
2177 { "idivA", { Eb } }, /* and idiv for consistency. */
2181 { "testQ", { Ev, Iv } },
2182 { "(bad)", { XX } },
2185 { "mulQ", { Ev } }, /* Don't print the implicit register. */
2186 { "imulQ", { Ev } },
2188 { "idivQ", { Ev } },
2194 { "(bad)", { XX } },
2195 { "(bad)", { XX } },
2196 { "(bad)", { XX } },
2197 { "(bad)", { XX } },
2198 { "(bad)", { XX } },
2199 { "(bad)", { XX } },
2205 { "callT", { indirEv } },
2206 { "JcallT", { indirEp } },
2207 { "jmpT", { indirEv } },
2208 { "JjmpT", { indirEp } },
2209 { "pushU", { stackEv } },
2210 { "(bad)", { XX } },
2214 { "sldtD", { Sv } },
2220 { "(bad)", { XX } },
2221 { "(bad)", { XX } },
2225 { MOD_TABLE (MOD_0F01_REG_0) },
2226 { MOD_TABLE (MOD_0F01_REG_1) },
2227 { MOD_TABLE (MOD_0F01_REG_2) },
2228 { MOD_TABLE (MOD_0F01_REG_3) },
2229 { "smswD", { Sv } },
2230 { "(bad)", { XX } },
2232 { MOD_TABLE (MOD_0F01_REG_7) },
2236 { "prefetch", { Eb } },
2237 { "prefetchw", { Eb } },
2238 { "(bad)", { XX } },
2239 { "(bad)", { XX } },
2240 { "(bad)", { XX } },
2241 { "(bad)", { XX } },
2242 { "(bad)", { XX } },
2243 { "(bad)", { XX } },
2247 { MOD_TABLE (MOD_0F18_REG_0) },
2248 { MOD_TABLE (MOD_0F18_REG_1) },
2249 { MOD_TABLE (MOD_0F18_REG_2) },
2250 { MOD_TABLE (MOD_0F18_REG_3) },
2251 { "(bad)", { XX } },
2252 { "(bad)", { XX } },
2253 { "(bad)", { XX } },
2254 { "(bad)", { XX } },
2258 { "(bad)", { XX } },
2259 { "(bad)", { XX } },
2260 { MOD_TABLE (MOD_0F71_REG_2) },
2261 { "(bad)", { XX } },
2262 { MOD_TABLE (MOD_0F71_REG_4) },
2263 { "(bad)", { XX } },
2264 { MOD_TABLE (MOD_0F71_REG_6) },
2265 { "(bad)", { XX } },
2269 { "(bad)", { XX } },
2270 { "(bad)", { XX } },
2271 { MOD_TABLE (MOD_0F72_REG_2) },
2272 { "(bad)", { XX } },
2273 { MOD_TABLE (MOD_0F72_REG_4) },
2274 { "(bad)", { XX } },
2275 { MOD_TABLE (MOD_0F72_REG_6) },
2276 { "(bad)", { XX } },
2280 { "(bad)", { XX } },
2281 { "(bad)", { XX } },
2282 { MOD_TABLE (MOD_0F73_REG_2) },
2283 { MOD_TABLE (MOD_0F73_REG_3) },
2284 { "(bad)", { XX } },
2285 { "(bad)", { XX } },
2286 { MOD_TABLE (MOD_0F73_REG_6) },
2287 { MOD_TABLE (MOD_0F73_REG_7) },
2291 { "montmul", { { OP_0f07, 0 } } },
2292 { "xsha1", { { OP_0f07, 0 } } },
2293 { "xsha256", { { OP_0f07, 0 } } },
2294 { "(bad)", { { OP_0f07, 0 } } },
2295 { "(bad)", { { OP_0f07, 0 } } },
2296 { "(bad)", { { OP_0f07, 0 } } },
2297 { "(bad)", { { OP_0f07, 0 } } },
2298 { "(bad)", { { OP_0f07, 0 } } },
2302 { "xstore-rng", { { OP_0f07, 0 } } },
2303 { "xcrypt-ecb", { { OP_0f07, 0 } } },
2304 { "xcrypt-cbc", { { OP_0f07, 0 } } },
2305 { "xcrypt-ctr", { { OP_0f07, 0 } } },
2306 { "xcrypt-cfb", { { OP_0f07, 0 } } },
2307 { "xcrypt-ofb", { { OP_0f07, 0 } } },
2308 { "(bad)", { { OP_0f07, 0 } } },
2309 { "(bad)", { { OP_0f07, 0 } } },
2313 { MOD_TABLE (MOD_0FAE_REG_0) },
2314 { MOD_TABLE (MOD_0FAE_REG_1) },
2315 { MOD_TABLE (MOD_0FAE_REG_2) },
2316 { MOD_TABLE (MOD_0FAE_REG_3) },
2317 { MOD_TABLE (MOD_0FAE_REG_4) },
2318 { MOD_TABLE (MOD_0FAE_REG_5) },
2319 { MOD_TABLE (MOD_0FAE_REG_6) },
2320 { MOD_TABLE (MOD_0FAE_REG_7) },
2324 { "(bad)", { XX } },
2325 { "(bad)", { XX } },
2326 { "(bad)", { XX } },
2327 { "(bad)", { XX } },
2328 { "btQ", { Ev, Ib } },
2329 { "btsQ", { Ev, Ib } },
2330 { "btrQ", { Ev, Ib } },
2331 { "btcQ", { Ev, Ib } },
2335 { "(bad)", { XX } },
2336 { "cmpxchg8b", { { CMPXCHG8B_Fixup, q_mode } } },
2337 { "(bad)", { XX } },
2338 { "(bad)", { XX } },
2339 { "(bad)", { XX } },
2340 { "(bad)", { XX } },
2341 { MOD_TABLE (MOD_0FC7_REG_6) },
2342 { MOD_TABLE (MOD_0FC7_REG_7) },
2346 { "(bad)", { XX } },
2347 { "(bad)", { XX } },
2348 { MOD_TABLE (MOD_VEX_71_REG_2) },
2349 { "(bad)", { XX } },
2350 { MOD_TABLE (MOD_VEX_71_REG_4) },
2351 { "(bad)", { XX } },
2352 { MOD_TABLE (MOD_VEX_71_REG_6) },
2353 { "(bad)", { XX } },
2357 { "(bad)", { XX } },
2358 { "(bad)", { XX } },
2359 { MOD_TABLE (MOD_VEX_72_REG_2) },
2360 { "(bad)", { XX } },
2361 { MOD_TABLE (MOD_VEX_72_REG_4) },
2362 { "(bad)", { XX } },
2363 { MOD_TABLE (MOD_VEX_72_REG_6) },
2364 { "(bad)", { XX } },
2368 { "(bad)", { XX } },
2369 { "(bad)", { XX } },
2370 { MOD_TABLE (MOD_VEX_73_REG_2) },
2371 { MOD_TABLE (MOD_VEX_73_REG_3) },
2372 { "(bad)", { XX } },
2373 { "(bad)", { XX } },
2374 { MOD_TABLE (MOD_VEX_73_REG_6) },
2375 { MOD_TABLE (MOD_VEX_73_REG_7) },
2379 { "(bad)", { XX } },
2380 { "(bad)", { XX } },
2381 { MOD_TABLE (MOD_VEX_AE_REG_2) },
2382 { MOD_TABLE (MOD_VEX_AE_REG_3) },
2383 { "(bad)", { XX } },
2384 { "(bad)", { XX } },
2385 { "(bad)", { XX } },
2386 { "(bad)", { XX } },
2390 static const struct dis386 prefix_table[][4] = {
2393 { "xchgS", { { NOP_Fixup1, eAX_reg }, { NOP_Fixup2, eAX_reg } } },
2394 { "pause", { XX } },
2395 { "xchgS", { { NOP_Fixup1, eAX_reg }, { NOP_Fixup2, eAX_reg } } },
2396 { "(bad)", { XX } },
2401 { "movups", { XM, EXx } },
2402 { "movss", { XM, EXd } },
2403 { "movupd", { XM, EXx } },
2404 { "movsd", { XM, EXq } },
2409 { "movups", { EXx, XM } },
2410 { "movss", { EXd, XM } },
2411 { "movupd", { EXx, XM } },
2412 { "movsd", { EXq, XM } },
2417 { MOD_TABLE (MOD_0F12_PREFIX_0) },
2418 { "movsldup", { XM, EXx } },
2419 { "movlpd", { XM, EXq } },
2420 { "movddup", { XM, EXq } },
2425 { MOD_TABLE (MOD_0F16_PREFIX_0) },
2426 { "movshdup", { XM, EXx } },
2427 { "movhpd", { XM, EXq } },
2428 { "(bad)", { XX } },
2433 { "cvtpi2ps", { XM, EMCq } },
2434 { "cvtsi2ss%LQ", { XM, Ev } },
2435 { "cvtpi2pd", { XM, EMCq } },
2436 { "cvtsi2sd%LQ", { XM, Ev } },
2441 { MOD_TABLE (MOD_0F2B_PREFIX_0) },
2442 { MOD_TABLE (MOD_0F2B_PREFIX_1) },
2443 { MOD_TABLE (MOD_0F2B_PREFIX_2) },
2444 { MOD_TABLE (MOD_0F2B_PREFIX_3) },
2449 { "cvttps2pi", { MXC, EXq } },
2450 { "cvttss2siY", { Gv, EXd } },
2451 { "cvttpd2pi", { MXC, EXx } },
2452 { "cvttsd2siY", { Gv, EXq } },
2457 { "cvtps2pi", { MXC, EXq } },
2458 { "cvtss2siY", { Gv, EXd } },
2459 { "cvtpd2pi", { MXC, EXx } },
2460 { "cvtsd2siY", { Gv, EXq } },
2465 { "ucomiss",{ XM, EXd } },
2466 { "(bad)", { XX } },
2467 { "ucomisd",{ XM, EXq } },
2468 { "(bad)", { XX } },
2473 { "comiss", { XM, EXd } },
2474 { "(bad)", { XX } },
2475 { "comisd", { XM, EXq } },
2476 { "(bad)", { XX } },
2481 { "sqrtps", { XM, EXx } },
2482 { "sqrtss", { XM, EXd } },
2483 { "sqrtpd", { XM, EXx } },
2484 { "sqrtsd", { XM, EXq } },
2489 { "rsqrtps",{ XM, EXx } },
2490 { "rsqrtss",{ XM, EXd } },
2491 { "(bad)", { XX } },
2492 { "(bad)", { XX } },
2497 { "rcpps", { XM, EXx } },
2498 { "rcpss", { XM, EXd } },
2499 { "(bad)", { XX } },
2500 { "(bad)", { XX } },
2505 { "addps", { XM, EXx } },
2506 { "addss", { XM, EXd } },
2507 { "addpd", { XM, EXx } },
2508 { "addsd", { XM, EXq } },
2513 { "mulps", { XM, EXx } },
2514 { "mulss", { XM, EXd } },
2515 { "mulpd", { XM, EXx } },
2516 { "mulsd", { XM, EXq } },
2521 { "cvtps2pd", { XM, EXq } },
2522 { "cvtss2sd", { XM, EXd } },
2523 { "cvtpd2ps", { XM, EXx } },
2524 { "cvtsd2ss", { XM, EXq } },
2529 { "cvtdq2ps", { XM, EXx } },
2530 { "cvttps2dq", { XM, EXx } },
2531 { "cvtps2dq", { XM, EXx } },
2532 { "(bad)", { XX } },
2537 { "subps", { XM, EXx } },
2538 { "subss", { XM, EXd } },
2539 { "subpd", { XM, EXx } },
2540 { "subsd", { XM, EXq } },
2545 { "minps", { XM, EXx } },
2546 { "minss", { XM, EXd } },
2547 { "minpd", { XM, EXx } },
2548 { "minsd", { XM, EXq } },
2553 { "divps", { XM, EXx } },
2554 { "divss", { XM, EXd } },
2555 { "divpd", { XM, EXx } },
2556 { "divsd", { XM, EXq } },
2561 { "maxps", { XM, EXx } },
2562 { "maxss", { XM, EXd } },
2563 { "maxpd", { XM, EXx } },
2564 { "maxsd", { XM, EXq } },
2569 { "punpcklbw",{ MX, EMd } },
2570 { "(bad)", { XX } },
2571 { "punpcklbw",{ MX, EMx } },
2572 { "(bad)", { XX } },
2577 { "punpcklwd",{ MX, EMd } },
2578 { "(bad)", { XX } },
2579 { "punpcklwd",{ MX, EMx } },
2580 { "(bad)", { XX } },
2585 { "punpckldq",{ MX, EMd } },
2586 { "(bad)", { XX } },
2587 { "punpckldq",{ MX, EMx } },
2588 { "(bad)", { XX } },
2593 { "(bad)", { XX } },
2594 { "(bad)", { XX } },
2595 { "punpcklqdq", { XM, EXx } },
2596 { "(bad)", { XX } },
2601 { "(bad)", { XX } },
2602 { "(bad)", { XX } },
2603 { "punpckhqdq", { XM, EXx } },
2604 { "(bad)", { XX } },
2609 { "movq", { MX, EM } },
2610 { "movdqu", { XM, EXx } },
2611 { "movdqa", { XM, EXx } },
2612 { "(bad)", { XX } },
2617 { "pshufw", { MX, EM, Ib } },
2618 { "pshufhw",{ XM, EXx, Ib } },
2619 { "pshufd", { XM, EXx, Ib } },
2620 { "pshuflw",{ XM, EXx, Ib } },
2623 /* PREFIX_0F73_REG_3 */
2625 { "(bad)", { XX } },
2626 { "(bad)", { XX } },
2627 { "psrldq", { XS, Ib } },
2628 { "(bad)", { XX } },
2631 /* PREFIX_0F73_REG_7 */
2633 { "(bad)", { XX } },
2634 { "(bad)", { XX } },
2635 { "pslldq", { XS, Ib } },
2636 { "(bad)", { XX } },
2641 {"vmread", { Em, Gm } },
2643 {"extrq", { XS, Ib, Ib } },
2644 {"insertq", { XM, XS, Ib, Ib } },
2649 {"vmwrite", { Gm, Em } },
2651 {"extrq", { XM, XS } },
2652 {"insertq", { XM, XS } },
2657 { "(bad)", { XX } },
2658 { "(bad)", { XX } },
2659 { "haddpd", { XM, EXx } },
2660 { "haddps", { XM, EXx } },
2665 { "(bad)", { XX } },
2666 { "(bad)", { XX } },
2667 { "hsubpd", { XM, EXx } },
2668 { "hsubps", { XM, EXx } },
2673 { "movK", { Edq, MX } },
2674 { "movq", { XM, EXq } },
2675 { "movK", { Edq, XM } },
2676 { "(bad)", { XX } },
2681 { "movq", { EM, MX } },
2682 { "movdqu", { EXx, XM } },
2683 { "movdqa", { EXx, XM } },
2684 { "(bad)", { XX } },
2689 { "(bad)", { XX } },
2690 { "popcntS", { Gv, Ev } },
2691 { "(bad)", { XX } },
2692 { "(bad)", { XX } },
2697 { "bsrS", { Gv, Ev } },
2698 { "lzcntS", { Gv, Ev } },
2699 { "bsrS", { Gv, Ev } },
2700 { "(bad)", { XX } },
2705 { "cmpps", { XM, EXx, CMP } },
2706 { "cmpss", { XM, EXd, CMP } },
2707 { "cmppd", { XM, EXx, CMP } },
2708 { "cmpsd", { XM, EXq, CMP } },
2713 { "movntiS", { Ma, Gv } },
2714 { "(bad)", { XX } },
2715 { "(bad)", { XX } },
2716 { "(bad)", { XX } },
2719 /* PREFIX_0FC7_REG_6 */
2721 { "vmptrld",{ Mq } },
2722 { "vmxon", { Mq } },
2723 { "vmclear",{ Mq } },
2724 { "(bad)", { XX } },
2729 { "(bad)", { XX } },
2730 { "(bad)", { XX } },
2731 { "addsubpd", { XM, EXx } },
2732 { "addsubps", { XM, EXx } },
2737 { "(bad)", { XX } },
2738 { "movq2dq",{ XM, MS } },
2739 { "movq", { EXq, XM } },
2740 { "movdq2q",{ MX, XS } },
2745 { "(bad)", { XX } },
2746 { "cvtdq2pd", { XM, EXq } },
2747 { "cvttpd2dq", { XM, EXx } },
2748 { "cvtpd2dq", { XM, EXx } },
2753 { "movntq", { Mq, MX } },
2754 { "(bad)", { XX } },
2755 { MOD_TABLE (MOD_0FE7_PREFIX_2) },
2756 { "(bad)", { XX } },
2761 { "(bad)", { XX } },
2762 { "(bad)", { XX } },
2763 { "(bad)", { XX } },
2764 { MOD_TABLE (MOD_0FF0_PREFIX_3) },
2769 { "maskmovq", { MX, MS } },
2770 { "(bad)", { XX } },
2771 { "maskmovdqu", { XM, XS } },
2772 { "(bad)", { XX } },
2777 { "(bad)", { XX } },
2778 { "(bad)", { XX } },
2779 { "pblendvb", { XM, EXx, XMM0 } },
2780 { "(bad)", { XX } },
2785 { "(bad)", { XX } },
2786 { "(bad)", { XX } },
2787 { "blendvps", { XM, EXx, XMM0 } },
2788 { "(bad)", { XX } },
2793 { "(bad)", { XX } },
2794 { "(bad)", { XX } },
2795 { "blendvpd", { XM, EXx, XMM0 } },
2796 { "(bad)", { XX } },
2801 { "(bad)", { XX } },
2802 { "(bad)", { XX } },
2803 { "ptest", { XM, EXx } },
2804 { "(bad)", { XX } },
2809 { "(bad)", { XX } },
2810 { "(bad)", { XX } },
2811 { "pmovsxbw", { XM, EXq } },
2812 { "(bad)", { XX } },
2817 { "(bad)", { XX } },
2818 { "(bad)", { XX } },
2819 { "pmovsxbd", { XM, EXd } },
2820 { "(bad)", { XX } },
2825 { "(bad)", { XX } },
2826 { "(bad)", { XX } },
2827 { "pmovsxbq", { XM, EXw } },
2828 { "(bad)", { XX } },
2833 { "(bad)", { XX } },
2834 { "(bad)", { XX } },
2835 { "pmovsxwd", { XM, EXq } },
2836 { "(bad)", { XX } },
2841 { "(bad)", { XX } },
2842 { "(bad)", { XX } },
2843 { "pmovsxwq", { XM, EXd } },
2844 { "(bad)", { XX } },
2849 { "(bad)", { XX } },
2850 { "(bad)", { XX } },
2851 { "pmovsxdq", { XM, EXq } },
2852 { "(bad)", { XX } },
2857 { "(bad)", { XX } },
2858 { "(bad)", { XX } },
2859 { "pmuldq", { XM, EXx } },
2860 { "(bad)", { XX } },
2865 { "(bad)", { XX } },
2866 { "(bad)", { XX } },
2867 { "pcmpeqq", { XM, EXx } },
2868 { "(bad)", { XX } },
2873 { "(bad)", { XX } },
2874 { "(bad)", { XX } },
2875 { MOD_TABLE (MOD_0F382A_PREFIX_2) },
2876 { "(bad)", { XX } },
2881 { "(bad)", { XX } },
2882 { "(bad)", { XX } },
2883 { "packusdw", { XM, EXx } },
2884 { "(bad)", { XX } },
2889 { "(bad)", { XX } },
2890 { "(bad)", { XX } },
2891 { "pmovzxbw", { XM, EXq } },
2892 { "(bad)", { XX } },
2897 { "(bad)", { XX } },
2898 { "(bad)", { XX } },
2899 { "pmovzxbd", { XM, EXd } },
2900 { "(bad)", { XX } },
2905 { "(bad)", { XX } },
2906 { "(bad)", { XX } },
2907 { "pmovzxbq", { XM, EXw } },
2908 { "(bad)", { XX } },
2913 { "(bad)", { XX } },
2914 { "(bad)", { XX } },
2915 { "pmovzxwd", { XM, EXq } },
2916 { "(bad)", { XX } },
2921 { "(bad)", { XX } },
2922 { "(bad)", { XX } },
2923 { "pmovzxwq", { XM, EXd } },
2924 { "(bad)", { XX } },
2929 { "(bad)", { XX } },
2930 { "(bad)", { XX } },
2931 { "pmovzxdq", { XM, EXq } },
2932 { "(bad)", { XX } },
2937 { "(bad)", { XX } },
2938 { "(bad)", { XX } },
2939 { "pcmpgtq", { XM, EXx } },
2940 { "(bad)", { XX } },
2945 { "(bad)", { XX } },
2946 { "(bad)", { XX } },
2947 { "pminsb", { XM, EXx } },
2948 { "(bad)", { XX } },
2953 { "(bad)", { XX } },
2954 { "(bad)", { XX } },
2955 { "pminsd", { XM, EXx } },
2956 { "(bad)", { XX } },
2961 { "(bad)", { XX } },
2962 { "(bad)", { XX } },
2963 { "pminuw", { XM, EXx } },
2964 { "(bad)", { XX } },
2969 { "(bad)", { XX } },
2970 { "(bad)", { XX } },
2971 { "pminud", { XM, EXx } },
2972 { "(bad)", { XX } },
2977 { "(bad)", { XX } },
2978 { "(bad)", { XX } },
2979 { "pmaxsb", { XM, EXx } },
2980 { "(bad)", { XX } },
2985 { "(bad)", { XX } },
2986 { "(bad)", { XX } },
2987 { "pmaxsd", { XM, EXx } },
2988 { "(bad)", { XX } },
2993 { "(bad)", { XX } },
2994 { "(bad)", { XX } },
2995 { "pmaxuw", { XM, EXx } },
2996 { "(bad)", { XX } },
3001 { "(bad)", { XX } },
3002 { "(bad)", { XX } },
3003 { "pmaxud", { XM, EXx } },
3004 { "(bad)", { XX } },
3009 { "(bad)", { XX } },
3010 { "(bad)", { XX } },
3011 { "pmulld", { XM, EXx } },
3012 { "(bad)", { XX } },
3017 { "(bad)", { XX } },
3018 { "(bad)", { XX } },
3019 { "phminposuw", { XM, EXx } },
3020 { "(bad)", { XX } },
3025 { "(bad)", { XX } },
3026 { "(bad)", { XX } },
3027 { "invept", { Gm, Mo } },
3028 { "(bad)", { XX } },
3033 { "(bad)", { XX } },
3034 { "(bad)", { XX } },
3035 { "invvpid", { Gm, Mo } },
3036 { "(bad)", { XX } },
3041 { "(bad)", { XX } },
3042 { "(bad)", { XX } },
3043 { "aesimc", { XM, EXx } },
3044 { "(bad)", { XX } },
3049 { "(bad)", { XX } },
3050 { "(bad)", { XX } },
3051 { "aesenc", { XM, EXx } },
3052 { "(bad)", { XX } },
3057 { "(bad)", { XX } },
3058 { "(bad)", { XX } },
3059 { "aesenclast", { XM, EXx } },
3060 { "(bad)", { XX } },
3065 { "(bad)", { XX } },
3066 { "(bad)", { XX } },
3067 { "aesdec", { XM, EXx } },
3068 { "(bad)", { XX } },
3073 { "(bad)", { XX } },
3074 { "(bad)", { XX } },
3075 { "aesdeclast", { XM, EXx } },
3076 { "(bad)", { XX } },
3081 { "movbeS", { Gv, { MOVBE_Fixup, v_mode } } },
3082 { "(bad)", { XX } },
3083 { "movbeS", { Gv, { MOVBE_Fixup, v_mode } } },
3084 { "crc32", { Gdq, { CRC32_Fixup, b_mode } } },
3089 { "movbeS", { { MOVBE_Fixup, v_mode }, Gv } },
3090 { "(bad)", { XX } },
3091 { "movbeS", { { MOVBE_Fixup, v_mode }, Gv } },
3092 { "crc32", { Gdq, { CRC32_Fixup, v_mode } } },
3097 { "(bad)", { XX } },
3098 { "(bad)", { XX } },
3099 { "roundps", { XM, EXx, Ib } },
3100 { "(bad)", { XX } },
3105 { "(bad)", { XX } },
3106 { "(bad)", { XX } },
3107 { "roundpd", { XM, EXx, Ib } },
3108 { "(bad)", { XX } },
3113 { "(bad)", { XX } },
3114 { "(bad)", { XX } },
3115 { "roundss", { XM, EXd, Ib } },
3116 { "(bad)", { XX } },
3121 { "(bad)", { XX } },
3122 { "(bad)", { XX } },
3123 { "roundsd", { XM, EXq, Ib } },
3124 { "(bad)", { XX } },
3129 { "(bad)", { XX } },
3130 { "(bad)", { XX } },
3131 { "blendps", { XM, EXx, Ib } },
3132 { "(bad)", { XX } },
3137 { "(bad)", { XX } },
3138 { "(bad)", { XX } },
3139 { "blendpd", { XM, EXx, Ib } },
3140 { "(bad)", { XX } },
3145 { "(bad)", { XX } },
3146 { "(bad)", { XX } },
3147 { "pblendw", { XM, EXx, Ib } },
3148 { "(bad)", { XX } },
3153 { "(bad)", { XX } },
3154 { "(bad)", { XX } },
3155 { "pextrb", { Edqb, XM, Ib } },
3156 { "(bad)", { XX } },
3161 { "(bad)", { XX } },
3162 { "(bad)", { XX } },
3163 { "pextrw", { Edqw, XM, Ib } },
3164 { "(bad)", { XX } },
3169 { "(bad)", { XX } },
3170 { "(bad)", { XX } },
3171 { "pextrK", { Edq, XM, Ib } },
3172 { "(bad)", { XX } },
3177 { "(bad)", { XX } },
3178 { "(bad)", { XX } },
3179 { "extractps", { Edqd, XM, Ib } },
3180 { "(bad)", { XX } },
3185 { "(bad)", { XX } },
3186 { "(bad)", { XX } },
3187 { "pinsrb", { XM, Edqb, Ib } },
3188 { "(bad)", { XX } },
3193 { "(bad)", { XX } },
3194 { "(bad)", { XX } },
3195 { "insertps", { XM, EXd, Ib } },
3196 { "(bad)", { XX } },
3201 { "(bad)", { XX } },
3202 { "(bad)", { XX } },
3203 { "pinsrK", { XM, Edq, Ib } },
3204 { "(bad)", { XX } },
3209 { "(bad)", { XX } },
3210 { "(bad)", { XX } },
3211 { "dpps", { XM, EXx, Ib } },
3212 { "(bad)", { XX } },
3217 { "(bad)", { XX } },
3218 { "(bad)", { XX } },
3219 { "dppd", { XM, EXx, Ib } },
3220 { "(bad)", { XX } },
3225 { "(bad)", { XX } },
3226 { "(bad)", { XX } },
3227 { "mpsadbw", { XM, EXx, Ib } },
3228 { "(bad)", { XX } },
3233 { "(bad)", { XX } },
3234 { "(bad)", { XX } },
3235 { "pclmulqdq", { XM, EXx, PCLMUL } },
3236 { "(bad)", { XX } },
3241 { "(bad)", { XX } },
3242 { "(bad)", { XX } },
3243 { "pcmpestrm", { XM, EXx, Ib } },
3244 { "(bad)", { XX } },
3249 { "(bad)", { XX } },
3250 { "(bad)", { XX } },
3251 { "pcmpestri", { XM, EXx, Ib } },
3252 { "(bad)", { XX } },
3257 { "(bad)", { XX } },
3258 { "(bad)", { XX } },
3259 { "pcmpistrm", { XM, EXx, Ib } },
3260 { "(bad)", { XX } },
3265 { "(bad)", { XX } },
3266 { "(bad)", { XX } },
3267 { "pcmpistri", { XM, EXx, Ib } },
3268 { "(bad)", { XX } },
3273 { "(bad)", { XX } },
3274 { "(bad)", { XX } },
3275 { "aeskeygenassist", { XM, EXx, Ib } },
3276 { "(bad)", { XX } },
3281 { "vmovups", { XM, EXx } },
3282 { VEX_LEN_TABLE (VEX_LEN_10_P_1) },
3283 { "vmovupd", { XM, EXx } },
3284 { VEX_LEN_TABLE (VEX_LEN_10_P_3) },
3289 { "vmovups", { EXx, XM } },
3290 { VEX_LEN_TABLE (VEX_LEN_11_P_1) },
3291 { "vmovupd", { EXx, XM } },
3292 { VEX_LEN_TABLE (VEX_LEN_11_P_3) },
3297 { MOD_TABLE (MOD_VEX_12_PREFIX_0) },
3298 { "vmovsldup", { XM, EXx } },
3299 { VEX_LEN_TABLE (VEX_LEN_12_P_2) },
3300 { "vmovddup", { XM, EXymmq } },
3305 { MOD_TABLE (MOD_VEX_16_PREFIX_0) },
3306 { "vmovshdup", { XM, EXx } },
3307 { VEX_LEN_TABLE (VEX_LEN_16_P_2) },
3308 { "(bad)", { XX } },
3313 { "(bad)", { XX } },
3314 { VEX_LEN_TABLE (VEX_LEN_2A_P_1) },
3315 { "(bad)", { XX } },
3316 { VEX_LEN_TABLE (VEX_LEN_2A_P_3) },
3321 { "(bad)", { XX } },
3322 { VEX_LEN_TABLE (VEX_LEN_2C_P_1) },
3323 { "(bad)", { XX } },
3324 { VEX_LEN_TABLE (VEX_LEN_2C_P_3) },
3329 { "(bad)", { XX } },
3330 { VEX_LEN_TABLE (VEX_LEN_2D_P_1) },
3331 { "(bad)", { XX } },
3332 { VEX_LEN_TABLE (VEX_LEN_2D_P_3) },
3337 { VEX_LEN_TABLE (VEX_LEN_2E_P_0) },
3338 { "(bad)", { XX } },
3339 { VEX_LEN_TABLE (VEX_LEN_2E_P_2) },
3340 { "(bad)", { XX } },
3345 { VEX_LEN_TABLE (VEX_LEN_2F_P_0) },
3346 { "(bad)", { XX } },
3347 { VEX_LEN_TABLE (VEX_LEN_2F_P_2) },
3348 { "(bad)", { XX } },
3353 { "vsqrtps", { XM, EXx } },
3354 { VEX_LEN_TABLE (VEX_LEN_51_P_1) },
3355 { "vsqrtpd", { XM, EXx } },
3356 { VEX_LEN_TABLE (VEX_LEN_51_P_3) },
3361 { "vrsqrtps", { XM, EXx } },
3362 { VEX_LEN_TABLE (VEX_LEN_52_P_1) },
3363 { "(bad)", { XX } },
3364 { "(bad)", { XX } },
3369 { "vrcpps", { XM, EXx } },
3370 { VEX_LEN_TABLE (VEX_LEN_53_P_1) },
3371 { "(bad)", { XX } },
3372 { "(bad)", { XX } },
3377 { "vaddps", { XM, Vex, EXx } },
3378 { VEX_LEN_TABLE (VEX_LEN_58_P_1) },
3379 { "vaddpd", { XM, Vex, EXx } },
3380 { VEX_LEN_TABLE (VEX_LEN_58_P_3) },
3385 { "vmulps", { XM, Vex, EXx } },
3386 { VEX_LEN_TABLE (VEX_LEN_59_P_1) },
3387 { "vmulpd", { XM, Vex, EXx } },
3388 { VEX_LEN_TABLE (VEX_LEN_59_P_3) },
3393 { "vcvtps2pd", { XM, EXxmmq } },
3394 { VEX_LEN_TABLE (VEX_LEN_5A_P_1) },
3395 { "vcvtpd2ps%XY", { XMM, EXx } },
3396 { VEX_LEN_TABLE (VEX_LEN_5A_P_3) },
3401 { "vcvtdq2ps", { XM, EXx } },
3402 { "vcvttps2dq", { XM, EXx } },
3403 { "vcvtps2dq", { XM, EXx } },
3404 { "(bad)", { XX } },
3409 { "vsubps", { XM, Vex, EXx } },
3410 { VEX_LEN_TABLE (VEX_LEN_5C_P_1) },
3411 { "vsubpd", { XM, Vex, EXx } },
3412 { VEX_LEN_TABLE (VEX_LEN_5C_P_3) },
3417 { "vminps", { XM, Vex, EXx } },
3418 { VEX_LEN_TABLE (VEX_LEN_5D_P_1) },
3419 { "vminpd", { XM, Vex, EXx } },
3420 { VEX_LEN_TABLE (VEX_LEN_5D_P_3) },
3425 { "vdivps", { XM, Vex, EXx } },
3426 { VEX_LEN_TABLE (VEX_LEN_5E_P_1) },
3427 { "vdivpd", { XM, Vex, EXx } },
3428 { VEX_LEN_TABLE (VEX_LEN_5E_P_3) },
3433 { "vmaxps", { XM, Vex, EXx } },
3434 { VEX_LEN_TABLE (VEX_LEN_5F_P_1) },
3435 { "vmaxpd", { XM, Vex, EXx } },
3436 { VEX_LEN_TABLE (VEX_LEN_5F_P_3) },
3441 { "(bad)", { XX } },
3442 { "(bad)", { XX } },
3443 { VEX_LEN_TABLE (VEX_LEN_60_P_2) },
3444 { "(bad)", { XX } },
3449 { "(bad)", { XX } },
3450 { "(bad)", { XX } },
3451 { VEX_LEN_TABLE (VEX_LEN_61_P_2) },
3452 { "(bad)", { XX } },
3457 { "(bad)", { XX } },
3458 { "(bad)", { XX } },
3459 { VEX_LEN_TABLE (VEX_LEN_62_P_2) },
3460 { "(bad)", { XX } },
3465 { "(bad)", { XX } },
3466 { "(bad)", { XX } },
3467 { VEX_LEN_TABLE (VEX_LEN_63_P_2) },
3468 { "(bad)", { XX } },
3473 { "(bad)", { XX } },
3474 { "(bad)", { XX } },
3475 { VEX_LEN_TABLE (VEX_LEN_64_P_2) },
3476 { "(bad)", { XX } },
3481 { "(bad)", { XX } },
3482 { "(bad)", { XX } },
3483 { VEX_LEN_TABLE (VEX_LEN_65_P_2) },
3484 { "(bad)", { XX } },
3489 { "(bad)", { XX } },
3490 { "(bad)", { XX } },
3491 { VEX_LEN_TABLE (VEX_LEN_66_P_2) },
3492 { "(bad)", { XX } },
3497 { "(bad)", { XX } },
3498 { "(bad)", { XX } },
3499 { VEX_LEN_TABLE (VEX_LEN_67_P_2) },
3500 { "(bad)", { XX } },
3505 { "(bad)", { XX } },
3506 { "(bad)", { XX } },
3507 { VEX_LEN_TABLE (VEX_LEN_68_P_2) },
3508 { "(bad)", { XX } },
3513 { "(bad)", { XX } },
3514 { "(bad)", { XX } },
3515 { VEX_LEN_TABLE (VEX_LEN_69_P_2) },
3516 { "(bad)", { XX } },
3521 { "(bad)", { XX } },
3522 { "(bad)", { XX } },
3523 { VEX_LEN_TABLE (VEX_LEN_6A_P_2) },
3524 { "(bad)", { XX } },
3529 { "(bad)", { XX } },
3530 { "(bad)", { XX } },
3531 { VEX_LEN_TABLE (VEX_LEN_6B_P_2) },
3532 { "(bad)", { XX } },
3537 { "(bad)", { XX } },
3538 { "(bad)", { XX } },
3539 { VEX_LEN_TABLE (VEX_LEN_6C_P_2) },
3540 { "(bad)", { XX } },
3545 { "(bad)", { XX } },
3546 { "(bad)", { XX } },
3547 { VEX_LEN_TABLE (VEX_LEN_6D_P_2) },
3548 { "(bad)", { XX } },
3553 { "(bad)", { XX } },
3554 { "(bad)", { XX } },
3555 { VEX_LEN_TABLE (VEX_LEN_6E_P_2) },
3556 { "(bad)", { XX } },
3561 { "(bad)", { XX } },
3562 { "vmovdqu", { XM, EXx } },
3563 { "vmovdqa", { XM, EXx } },
3564 { "(bad)", { XX } },
3569 { "(bad)", { XX } },
3570 { VEX_LEN_TABLE (VEX_LEN_70_P_1) },
3571 { VEX_LEN_TABLE (VEX_LEN_70_P_2) },
3572 { VEX_LEN_TABLE (VEX_LEN_70_P_3) },
3575 /* PREFIX_VEX_71_REG_2 */
3577 { "(bad)", { XX } },
3578 { "(bad)", { XX } },
3579 { VEX_LEN_TABLE (VEX_LEN_71_R_2_P_2) },
3580 { "(bad)", { XX } },
3583 /* PREFIX_VEX_71_REG_4 */
3585 { "(bad)", { XX } },
3586 { "(bad)", { XX } },
3587 { VEX_LEN_TABLE (VEX_LEN_71_R_4_P_2) },
3588 { "(bad)", { XX } },
3591 /* PREFIX_VEX_71_REG_6 */
3593 { "(bad)", { XX } },
3594 { "(bad)", { XX } },
3595 { VEX_LEN_TABLE (VEX_LEN_71_R_6_P_2) },
3596 { "(bad)", { XX } },
3599 /* PREFIX_VEX_72_REG_2 */
3601 { "(bad)", { XX } },
3602 { "(bad)", { XX } },
3603 { VEX_LEN_TABLE (VEX_LEN_72_R_2_P_2) },
3604 { "(bad)", { XX } },
3607 /* PREFIX_VEX_72_REG_4 */
3609 { "(bad)", { XX } },
3610 { "(bad)", { XX } },
3611 { VEX_LEN_TABLE (VEX_LEN_72_R_4_P_2) },
3612 { "(bad)", { XX } },
3615 /* PREFIX_VEX_72_REG_6 */
3617 { "(bad)", { XX } },
3618 { "(bad)", { XX } },
3619 { VEX_LEN_TABLE (VEX_LEN_72_R_6_P_2) },
3620 { "(bad)", { XX } },
3623 /* PREFIX_VEX_73_REG_2 */
3625 { "(bad)", { XX } },
3626 { "(bad)", { XX } },
3627 { VEX_LEN_TABLE (VEX_LEN_73_R_2_P_2) },
3628 { "(bad)", { XX } },
3631 /* PREFIX_VEX_73_REG_3 */
3633 { "(bad)", { XX } },
3634 { "(bad)", { XX } },
3635 { VEX_LEN_TABLE (VEX_LEN_73_R_3_P_2) },
3636 { "(bad)", { XX } },
3639 /* PREFIX_VEX_73_REG_6 */
3641 { "(bad)", { XX } },
3642 { "(bad)", { XX } },
3643 { VEX_LEN_TABLE (VEX_LEN_73_R_6_P_2) },
3644 { "(bad)", { XX } },
3647 /* PREFIX_VEX_73_REG_7 */
3649 { "(bad)", { XX } },
3650 { "(bad)", { XX } },
3651 { VEX_LEN_TABLE (VEX_LEN_73_R_7_P_2) },
3652 { "(bad)", { XX } },
3657 { "(bad)", { XX } },
3658 { "(bad)", { XX } },
3659 { VEX_LEN_TABLE (VEX_LEN_74_P_2) },
3660 { "(bad)", { XX } },
3665 { "(bad)", { XX } },
3666 { "(bad)", { XX } },
3667 { VEX_LEN_TABLE (VEX_LEN_75_P_2) },
3668 { "(bad)", { XX } },
3673 { "(bad)", { XX } },
3674 { "(bad)", { XX } },
3675 { VEX_LEN_TABLE (VEX_LEN_76_P_2) },
3676 { "(bad)", { XX } },
3682 { "(bad)", { XX } },
3683 { "(bad)", { XX } },
3684 { "(bad)", { XX } },
3689 { "(bad)", { XX } },
3690 { "(bad)", { XX } },
3691 { "vhaddpd", { XM, Vex, EXx } },
3692 { "vhaddps", { XM, Vex, EXx } },
3697 { "(bad)", { XX } },
3698 { "(bad)", { XX } },
3699 { "vhsubpd", { XM, Vex, EXx } },
3700 { "vhsubps", { XM, Vex, EXx } },
3705 { "(bad)", { XX } },
3706 { VEX_LEN_TABLE (VEX_LEN_7E_P_1) },
3707 { VEX_LEN_TABLE (VEX_LEN_7E_P_2) },
3708 { "(bad)", { XX } },
3713 { "(bad)", { XX } },
3714 { "vmovdqu", { EXx, XM } },
3715 { "vmovdqa", { EXx, XM } },
3716 { "(bad)", { XX } },
3721 { "vcmpps", { XM, Vex, EXx, VCMP } },
3722 { VEX_LEN_TABLE (VEX_LEN_C2_P_1) },
3723 { "vcmppd", { XM, Vex, EXx, VCMP } },
3724 { VEX_LEN_TABLE (VEX_LEN_C2_P_3) },
3729 { "(bad)", { XX } },
3730 { "(bad)", { XX } },
3731 { VEX_LEN_TABLE (VEX_LEN_C4_P_2) },
3732 { "(bad)", { XX } },
3737 { "(bad)", { XX } },
3738 { "(bad)", { XX } },
3739 { VEX_LEN_TABLE (VEX_LEN_C5_P_2) },
3740 { "(bad)", { XX } },
3745 { "(bad)", { XX } },
3746 { "(bad)", { XX } },
3747 { "vaddsubpd", { XM, Vex, EXx } },
3748 { "vaddsubps", { XM, Vex, EXx } },
3753 { "(bad)", { XX } },
3754 { "(bad)", { XX } },
3755 { VEX_LEN_TABLE (VEX_LEN_D1_P_2) },
3756 { "(bad)", { XX } },
3761 { "(bad)", { XX } },
3762 { "(bad)", { XX } },
3763 { VEX_LEN_TABLE (VEX_LEN_D2_P_2) },
3764 { "(bad)", { XX } },
3769 { "(bad)", { XX } },
3770 { "(bad)", { XX } },
3771 { VEX_LEN_TABLE (VEX_LEN_D3_P_2) },
3772 { "(bad)", { XX } },
3777 { "(bad)", { XX } },
3778 { "(bad)", { XX } },
3779 { VEX_LEN_TABLE (VEX_LEN_D4_P_2) },
3780 { "(bad)", { XX } },
3785 { "(bad)", { XX } },
3786 { "(bad)", { XX } },
3787 { VEX_LEN_TABLE (VEX_LEN_D5_P_2) },
3788 { "(bad)", { XX } },
3793 { "(bad)", { XX } },
3794 { "(bad)", { XX } },
3795 { VEX_LEN_TABLE (VEX_LEN_D6_P_2) },
3796 { "(bad)", { XX } },
3801 { "(bad)", { XX } },
3802 { "(bad)", { XX } },
3803 { MOD_TABLE (MOD_VEX_D7_PREFIX_2) },
3804 { "(bad)", { XX } },
3809 { "(bad)", { XX } },
3810 { "(bad)", { XX } },
3811 { VEX_LEN_TABLE (VEX_LEN_D8_P_2) },
3812 { "(bad)", { XX } },
3817 { "(bad)", { XX } },
3818 { "(bad)", { XX } },
3819 { VEX_LEN_TABLE (VEX_LEN_D9_P_2) },
3820 { "(bad)", { XX } },
3825 { "(bad)", { XX } },
3826 { "(bad)", { XX } },
3827 { VEX_LEN_TABLE (VEX_LEN_DA_P_2) },
3828 { "(bad)", { XX } },
3833 { "(bad)", { XX } },
3834 { "(bad)", { XX } },
3835 { VEX_LEN_TABLE (VEX_LEN_DB_P_2) },
3836 { "(bad)", { XX } },
3841 { "(bad)", { XX } },
3842 { "(bad)", { XX } },
3843 { VEX_LEN_TABLE (VEX_LEN_DC_P_2) },
3844 { "(bad)", { XX } },
3849 { "(bad)", { XX } },
3850 { "(bad)", { XX } },
3851 { VEX_LEN_TABLE (VEX_LEN_DD_P_2) },
3852 { "(bad)", { XX } },
3857 { "(bad)", { XX } },
3858 { "(bad)", { XX } },
3859 { VEX_LEN_TABLE (VEX_LEN_DE_P_2) },
3860 { "(bad)", { XX } },
3865 { "(bad)", { XX } },
3866 { "(bad)", { XX } },
3867 { VEX_LEN_TABLE (VEX_LEN_DF_P_2) },
3868 { "(bad)", { XX } },
3873 { "(bad)", { XX } },
3874 { "(bad)", { XX } },
3875 { VEX_LEN_TABLE (VEX_LEN_E0_P_2) },
3876 { "(bad)", { XX } },
3881 { "(bad)", { XX } },
3882 { "(bad)", { XX } },
3883 { VEX_LEN_TABLE (VEX_LEN_E1_P_2) },
3884 { "(bad)", { XX } },
3889 { "(bad)", { XX } },
3890 { "(bad)", { XX } },
3891 { VEX_LEN_TABLE (VEX_LEN_E2_P_2) },
3892 { "(bad)", { XX } },
3897 { "(bad)", { XX } },
3898 { "(bad)", { XX } },
3899 { VEX_LEN_TABLE (VEX_LEN_E3_P_2) },
3900 { "(bad)", { XX } },
3905 { "(bad)", { XX } },
3906 { "(bad)", { XX } },
3907 { VEX_LEN_TABLE (VEX_LEN_E4_P_2) },
3908 { "(bad)", { XX } },
3913 { "(bad)", { XX } },
3914 { "(bad)", { XX } },
3915 { VEX_LEN_TABLE (VEX_LEN_E5_P_2) },
3916 { "(bad)", { XX } },
3921 { "(bad)", { XX } },
3922 { "vcvtdq2pd", { XM, EXxmmq } },
3923 { "vcvttpd2dq%XY", { XMM, EXx } },
3924 { "vcvtpd2dq%XY", { XMM, EXx } },
3929 { "(bad)", { XX } },
3930 { "(bad)", { XX } },
3931 { MOD_TABLE (MOD_VEX_E7_PREFIX_2) },
3932 { "(bad)", { XX } },
3937 { "(bad)", { XX } },
3938 { "(bad)", { XX } },
3939 { VEX_LEN_TABLE (VEX_LEN_E8_P_2) },
3940 { "(bad)", { XX } },
3945 { "(bad)", { XX } },
3946 { "(bad)", { XX } },
3947 { VEX_LEN_TABLE (VEX_LEN_E9_P_2) },
3948 { "(bad)", { XX } },
3953 { "(bad)", { XX } },
3954 { "(bad)", { XX } },
3955 { VEX_LEN_TABLE (VEX_LEN_EA_P_2) },
3956 { "(bad)", { XX } },
3961 { "(bad)", { XX } },
3962 { "(bad)", { XX } },
3963 { VEX_LEN_TABLE (VEX_LEN_EB_P_2) },
3964 { "(bad)", { XX } },
3969 { "(bad)", { XX } },
3970 { "(bad)", { XX } },
3971 { VEX_LEN_TABLE (VEX_LEN_EC_P_2) },
3972 { "(bad)", { XX } },
3977 { "(bad)", { XX } },
3978 { "(bad)", { XX } },
3979 { VEX_LEN_TABLE (VEX_LEN_ED_P_2) },
3980 { "(bad)", { XX } },
3985 { "(bad)", { XX } },
3986 { "(bad)", { XX } },
3987 { VEX_LEN_TABLE (VEX_LEN_EE_P_2) },
3988 { "(bad)", { XX } },
3993 { "(bad)", { XX } },
3994 { "(bad)", { XX } },
3995 { VEX_LEN_TABLE (VEX_LEN_EF_P_2) },
3996 { "(bad)", { XX } },
4001 { "(bad)", { XX } },
4002 { "(bad)", { XX } },
4003 { "(bad)", { XX } },
4004 { MOD_TABLE (MOD_VEX_F0_PREFIX_3) },
4009 { "(bad)", { XX } },
4010 { "(bad)", { XX } },
4011 { VEX_LEN_TABLE (VEX_LEN_F1_P_2) },
4012 { "(bad)", { XX } },
4017 { "(bad)", { XX } },
4018 { "(bad)", { XX } },
4019 { VEX_LEN_TABLE (VEX_LEN_F2_P_2) },
4020 { "(bad)", { XX } },
4025 { "(bad)", { XX } },
4026 { "(bad)", { XX } },
4027 { VEX_LEN_TABLE (VEX_LEN_F3_P_2) },
4028 { "(bad)", { XX } },
4033 { "(bad)", { XX } },
4034 { "(bad)", { XX } },
4035 { VEX_LEN_TABLE (VEX_LEN_F4_P_2) },
4036 { "(bad)", { XX } },
4041 { "(bad)", { XX } },
4042 { "(bad)", { XX } },
4043 { VEX_LEN_TABLE (VEX_LEN_F5_P_2) },
4044 { "(bad)", { XX } },
4049 { "(bad)", { XX } },
4050 { "(bad)", { XX } },
4051 { VEX_LEN_TABLE (VEX_LEN_F6_P_2) },
4052 { "(bad)", { XX } },
4057 { "(bad)", { XX } },
4058 { "(bad)", { XX } },
4059 { VEX_LEN_TABLE (VEX_LEN_F7_P_2) },
4060 { "(bad)", { XX } },
4065 { "(bad)", { XX } },
4066 { "(bad)", { XX } },
4067 { VEX_LEN_TABLE (VEX_LEN_F8_P_2) },
4068 { "(bad)", { XX } },
4073 { "(bad)", { XX } },
4074 { "(bad)", { XX } },
4075 { VEX_LEN_TABLE (VEX_LEN_F9_P_2) },
4076 { "(bad)", { XX } },
4081 { "(bad)", { XX } },
4082 { "(bad)", { XX } },
4083 { VEX_LEN_TABLE (VEX_LEN_FA_P_2) },
4084 { "(bad)", { XX } },
4089 { "(bad)", { XX } },
4090 { "(bad)", { XX } },
4091 { VEX_LEN_TABLE (VEX_LEN_FB_P_2) },
4092 { "(bad)", { XX } },
4097 { "(bad)", { XX } },
4098 { "(bad)", { XX } },
4099 { VEX_LEN_TABLE (VEX_LEN_FC_P_2) },
4100 { "(bad)", { XX } },
4105 { "(bad)", { XX } },
4106 { "(bad)", { XX } },
4107 { VEX_LEN_TABLE (VEX_LEN_FD_P_2) },
4108 { "(bad)", { XX } },
4113 { "(bad)", { XX } },
4114 { "(bad)", { XX } },
4115 { VEX_LEN_TABLE (VEX_LEN_FE_P_2) },
4116 { "(bad)", { XX } },
4119 /* PREFIX_VEX_3800 */
4121 { "(bad)", { XX } },
4122 { "(bad)", { XX } },
4123 { VEX_LEN_TABLE (VEX_LEN_3800_P_2) },
4124 { "(bad)", { XX } },
4127 /* PREFIX_VEX_3801 */
4129 { "(bad)", { XX } },
4130 { "(bad)", { XX } },
4131 { VEX_LEN_TABLE (VEX_LEN_3801_P_2) },
4132 { "(bad)", { XX } },
4135 /* PREFIX_VEX_3802 */
4137 { "(bad)", { XX } },
4138 { "(bad)", { XX } },
4139 { VEX_LEN_TABLE (VEX_LEN_3802_P_2) },
4140 { "(bad)", { XX } },
4143 /* PREFIX_VEX_3803 */
4145 { "(bad)", { XX } },
4146 { "(bad)", { XX } },
4147 { VEX_LEN_TABLE (VEX_LEN_3803_P_2) },
4148 { "(bad)", { XX } },
4151 /* PREFIX_VEX_3804 */
4153 { "(bad)", { XX } },
4154 { "(bad)", { XX } },
4155 { VEX_LEN_TABLE (VEX_LEN_3804_P_2) },
4156 { "(bad)", { XX } },
4159 /* PREFIX_VEX_3805 */
4161 { "(bad)", { XX } },
4162 { "(bad)", { XX } },
4163 { VEX_LEN_TABLE (VEX_LEN_3805_P_2) },
4164 { "(bad)", { XX } },
4167 /* PREFIX_VEX_3806 */
4169 { "(bad)", { XX } },
4170 { "(bad)", { XX } },
4171 { VEX_LEN_TABLE (VEX_LEN_3806_P_2) },
4172 { "(bad)", { XX } },
4175 /* PREFIX_VEX_3807 */
4177 { "(bad)", { XX } },
4178 { "(bad)", { XX } },
4179 { VEX_LEN_TABLE (VEX_LEN_3807_P_2) },
4180 { "(bad)", { XX } },
4183 /* PREFIX_VEX_3808 */
4185 { "(bad)", { XX } },
4186 { "(bad)", { XX } },
4187 { VEX_LEN_TABLE (VEX_LEN_3808_P_2) },
4188 { "(bad)", { XX } },
4191 /* PREFIX_VEX_3809 */
4193 { "(bad)", { XX } },
4194 { "(bad)", { XX } },
4195 { VEX_LEN_TABLE (VEX_LEN_3809_P_2) },
4196 { "(bad)", { XX } },
4199 /* PREFIX_VEX_380A */
4201 { "(bad)", { XX } },
4202 { "(bad)", { XX } },
4203 { VEX_LEN_TABLE (VEX_LEN_380A_P_2) },
4204 { "(bad)", { XX } },
4207 /* PREFIX_VEX_380B */
4209 { "(bad)", { XX } },
4210 { "(bad)", { XX } },
4211 { VEX_LEN_TABLE (VEX_LEN_380B_P_2) },
4212 { "(bad)", { XX } },
4215 /* PREFIX_VEX_380C */
4217 { "(bad)", { XX } },
4218 { "(bad)", { XX } },
4219 { "vpermilps", { XM, Vex, EXx } },
4220 { "(bad)", { XX } },
4223 /* PREFIX_VEX_380D */
4225 { "(bad)", { XX } },
4226 { "(bad)", { XX } },
4227 { "vpermilpd", { XM, Vex, EXx } },
4228 { "(bad)", { XX } },
4231 /* PREFIX_VEX_380E */
4233 { "(bad)", { XX } },
4234 { "(bad)", { XX } },
4235 { "vtestps", { XM, EXx } },
4236 { "(bad)", { XX } },
4239 /* PREFIX_VEX_380F */
4241 { "(bad)", { XX } },
4242 { "(bad)", { XX } },
4243 { "vtestpd", { XM, EXx } },
4244 { "(bad)", { XX } },
4247 /* PREFIX_VEX_3817 */
4249 { "(bad)", { XX } },
4250 { "(bad)", { XX } },
4251 { "vptest", { XM, EXx } },
4252 { "(bad)", { XX } },
4255 /* PREFIX_VEX_3818 */
4257 { "(bad)", { XX } },
4258 { "(bad)", { XX } },
4259 { MOD_TABLE (MOD_VEX_3818_PREFIX_2) },
4260 { "(bad)", { XX } },
4263 /* PREFIX_VEX_3819 */
4265 { "(bad)", { XX } },
4266 { "(bad)", { XX } },
4267 { MOD_TABLE (MOD_VEX_3819_PREFIX_2) },
4268 { "(bad)", { XX } },
4271 /* PREFIX_VEX_381A */
4273 { "(bad)", { XX } },
4274 { "(bad)", { XX } },
4275 { MOD_TABLE (MOD_VEX_381A_PREFIX_2) },
4276 { "(bad)", { XX } },
4279 /* PREFIX_VEX_381C */
4281 { "(bad)", { XX } },
4282 { "(bad)", { XX } },
4283 { VEX_LEN_TABLE (VEX_LEN_381C_P_2) },
4284 { "(bad)", { XX } },
4287 /* PREFIX_VEX_381D */
4289 { "(bad)", { XX } },
4290 { "(bad)", { XX } },
4291 { VEX_LEN_TABLE (VEX_LEN_381D_P_2) },
4292 { "(bad)", { XX } },
4295 /* PREFIX_VEX_381E */
4297 { "(bad)", { XX } },
4298 { "(bad)", { XX } },
4299 { VEX_LEN_TABLE (VEX_LEN_381E_P_2) },
4300 { "(bad)", { XX } },
4303 /* PREFIX_VEX_3820 */
4305 { "(bad)", { XX } },
4306 { "(bad)", { XX } },
4307 { VEX_LEN_TABLE (VEX_LEN_3820_P_2) },
4308 { "(bad)", { XX } },
4311 /* PREFIX_VEX_3821 */
4313 { "(bad)", { XX } },
4314 { "(bad)", { XX } },
4315 { VEX_LEN_TABLE (VEX_LEN_3821_P_2) },
4316 { "(bad)", { XX } },
4319 /* PREFIX_VEX_3822 */
4321 { "(bad)", { XX } },
4322 { "(bad)", { XX } },
4323 { VEX_LEN_TABLE (VEX_LEN_3822_P_2) },
4324 { "(bad)", { XX } },
4327 /* PREFIX_VEX_3823 */
4329 { "(bad)", { XX } },
4330 { "(bad)", { XX } },
4331 { VEX_LEN_TABLE (VEX_LEN_3823_P_2) },
4332 { "(bad)", { XX } },
4335 /* PREFIX_VEX_3824 */
4337 { "(bad)", { XX } },
4338 { "(bad)", { XX } },
4339 { VEX_LEN_TABLE (VEX_LEN_3824_P_2) },
4340 { "(bad)", { XX } },
4343 /* PREFIX_VEX_3825 */
4345 { "(bad)", { XX } },
4346 { "(bad)", { XX } },
4347 { VEX_LEN_TABLE (VEX_LEN_3825_P_2) },
4348 { "(bad)", { XX } },
4351 /* PREFIX_VEX_3828 */
4353 { "(bad)", { XX } },
4354 { "(bad)", { XX } },
4355 { VEX_LEN_TABLE (VEX_LEN_3828_P_2) },
4356 { "(bad)", { XX } },
4359 /* PREFIX_VEX_3829 */
4361 { "(bad)", { XX } },
4362 { "(bad)", { XX } },
4363 { VEX_LEN_TABLE (VEX_LEN_3829_P_2) },
4364 { "(bad)", { XX } },
4367 /* PREFIX_VEX_382A */
4369 { "(bad)", { XX } },
4370 { "(bad)", { XX } },
4371 { MOD_TABLE (MOD_VEX_382A_PREFIX_2) },
4372 { "(bad)", { XX } },
4375 /* PREFIX_VEX_382B */
4377 { "(bad)", { XX } },
4378 { "(bad)", { XX } },
4379 { VEX_LEN_TABLE (VEX_LEN_382B_P_2) },
4380 { "(bad)", { XX } },
4383 /* PREFIX_VEX_382C */
4385 { "(bad)", { XX } },
4386 { "(bad)", { XX } },
4387 { MOD_TABLE (MOD_VEX_382C_PREFIX_2) },
4388 { "(bad)", { XX } },
4391 /* PREFIX_VEX_382D */
4393 { "(bad)", { XX } },
4394 { "(bad)", { XX } },
4395 { MOD_TABLE (MOD_VEX_382D_PREFIX_2) },
4396 { "(bad)", { XX } },
4399 /* PREFIX_VEX_382E */
4401 { "(bad)", { XX } },
4402 { "(bad)", { XX } },
4403 { MOD_TABLE (MOD_VEX_382E_PREFIX_2) },
4404 { "(bad)", { XX } },
4407 /* PREFIX_VEX_382F */
4409 { "(bad)", { XX } },
4410 { "(bad)", { XX } },
4411 { MOD_TABLE (MOD_VEX_382F_PREFIX_2) },
4412 { "(bad)", { XX } },
4415 /* PREFIX_VEX_3830 */
4417 { "(bad)", { XX } },
4418 { "(bad)", { XX } },
4419 { VEX_LEN_TABLE (VEX_LEN_3830_P_2) },
4420 { "(bad)", { XX } },
4423 /* PREFIX_VEX_3831 */
4425 { "(bad)", { XX } },
4426 { "(bad)", { XX } },
4427 { VEX_LEN_TABLE (VEX_LEN_3831_P_2) },
4428 { "(bad)", { XX } },
4431 /* PREFIX_VEX_3832 */
4433 { "(bad)", { XX } },
4434 { "(bad)", { XX } },
4435 { VEX_LEN_TABLE (VEX_LEN_3832_P_2) },
4436 { "(bad)", { XX } },
4439 /* PREFIX_VEX_3833 */
4441 { "(bad)", { XX } },
4442 { "(bad)", { XX } },
4443 { VEX_LEN_TABLE (VEX_LEN_3833_P_2) },
4444 { "(bad)", { XX } },
4447 /* PREFIX_VEX_3834 */
4449 { "(bad)", { XX } },
4450 { "(bad)", { XX } },
4451 { VEX_LEN_TABLE (VEX_LEN_3834_P_2) },
4452 { "(bad)", { XX } },
4455 /* PREFIX_VEX_3835 */
4457 { "(bad)", { XX } },
4458 { "(bad)", { XX } },
4459 { VEX_LEN_TABLE (VEX_LEN_3835_P_2) },
4460 { "(bad)", { XX } },
4463 /* PREFIX_VEX_3837 */
4465 { "(bad)", { XX } },
4466 { "(bad)", { XX } },
4467 { VEX_LEN_TABLE (VEX_LEN_3837_P_2) },
4468 { "(bad)", { XX } },
4471 /* PREFIX_VEX_3838 */
4473 { "(bad)", { XX } },
4474 { "(bad)", { XX } },
4475 { VEX_LEN_TABLE (VEX_LEN_3838_P_2) },
4476 { "(bad)", { XX } },
4479 /* PREFIX_VEX_3839 */
4481 { "(bad)", { XX } },
4482 { "(bad)", { XX } },
4483 { VEX_LEN_TABLE (VEX_LEN_3839_P_2) },
4484 { "(bad)", { XX } },
4487 /* PREFIX_VEX_383A */
4489 { "(bad)", { XX } },
4490 { "(bad)", { XX } },
4491 { VEX_LEN_TABLE (VEX_LEN_383A_P_2) },
4492 { "(bad)", { XX } },
4495 /* PREFIX_VEX_383B */
4497 { "(bad)", { XX } },
4498 { "(bad)", { XX } },
4499 { VEX_LEN_TABLE (VEX_LEN_383B_P_2) },
4500 { "(bad)", { XX } },
4503 /* PREFIX_VEX_383C */
4505 { "(bad)", { XX } },
4506 { "(bad)", { XX } },
4507 { VEX_LEN_TABLE (VEX_LEN_383C_P_2) },
4508 { "(bad)", { XX } },
4511 /* PREFIX_VEX_383D */
4513 { "(bad)", { XX } },
4514 { "(bad)", { XX } },
4515 { VEX_LEN_TABLE (VEX_LEN_383D_P_2) },
4516 { "(bad)", { XX } },
4519 /* PREFIX_VEX_383E */
4521 { "(bad)", { XX } },
4522 { "(bad)", { XX } },
4523 { VEX_LEN_TABLE (VEX_LEN_383E_P_2) },
4524 { "(bad)", { XX } },
4527 /* PREFIX_VEX_383F */
4529 { "(bad)", { XX } },
4530 { "(bad)", { XX } },
4531 { VEX_LEN_TABLE (VEX_LEN_383F_P_2) },
4532 { "(bad)", { XX } },
4535 /* PREFIX_VEX_3840 */
4537 { "(bad)", { XX } },
4538 { "(bad)", { XX } },
4539 { VEX_LEN_TABLE (VEX_LEN_3840_P_2) },
4540 { "(bad)", { XX } },
4543 /* PREFIX_VEX_3841 */
4545 { "(bad)", { XX } },
4546 { "(bad)", { XX } },
4547 { VEX_LEN_TABLE (VEX_LEN_3841_P_2) },
4548 { "(bad)", { XX } },
4551 /* PREFIX_VEX_38DB */
4553 { "(bad)", { XX } },
4554 { "(bad)", { XX } },
4555 { VEX_LEN_TABLE (VEX_LEN_38DB_P_2) },
4556 { "(bad)", { XX } },
4559 /* PREFIX_VEX_38DC */
4561 { "(bad)", { XX } },
4562 { "(bad)", { XX } },
4563 { VEX_LEN_TABLE (VEX_LEN_38DC_P_2) },
4564 { "(bad)", { XX } },
4567 /* PREFIX_VEX_38DD */
4569 { "(bad)", { XX } },
4570 { "(bad)", { XX } },
4571 { VEX_LEN_TABLE (VEX_LEN_38DD_P_2) },
4572 { "(bad)", { XX } },
4575 /* PREFIX_VEX_38DE */
4577 { "(bad)", { XX } },
4578 { "(bad)", { XX } },
4579 { VEX_LEN_TABLE (VEX_LEN_38DE_P_2) },
4580 { "(bad)", { XX } },
4583 /* PREFIX_VEX_38DF */
4585 { "(bad)", { XX } },
4586 { "(bad)", { XX } },
4587 { VEX_LEN_TABLE (VEX_LEN_38DF_P_2) },
4588 { "(bad)", { XX } },
4591 /* PREFIX_VEX_3A04 */
4593 { "(bad)", { XX } },
4594 { "(bad)", { XX } },
4595 { "vpermilps", { XM, EXx, Ib } },
4596 { "(bad)", { XX } },
4599 /* PREFIX_VEX_3A05 */
4601 { "(bad)", { XX } },
4602 { "(bad)", { XX } },
4603 { "vpermilpd", { XM, EXx, Ib } },
4604 { "(bad)", { XX } },
4607 /* PREFIX_VEX_3A06 */
4609 { "(bad)", { XX } },
4610 { "(bad)", { XX } },
4611 { VEX_LEN_TABLE (VEX_LEN_3A06_P_2) },
4612 { "(bad)", { XX } },
4615 /* PREFIX_VEX_3A08 */
4617 { "(bad)", { XX } },
4618 { "(bad)", { XX } },
4619 { "vroundps", { XM, EXx, Ib } },
4620 { "(bad)", { XX } },
4623 /* PREFIX_VEX_3A09 */
4625 { "(bad)", { XX } },
4626 { "(bad)", { XX } },
4627 { "vroundpd", { XM, EXx, Ib } },
4628 { "(bad)", { XX } },
4631 /* PREFIX_VEX_3A0A */
4633 { "(bad)", { XX } },
4634 { "(bad)", { XX } },
4635 { VEX_LEN_TABLE (VEX_LEN_3A0A_P_2) },
4636 { "(bad)", { XX } },
4639 /* PREFIX_VEX_3A0B */
4641 { "(bad)", { XX } },
4642 { "(bad)", { XX } },
4643 { VEX_LEN_TABLE (VEX_LEN_3A0B_P_2) },
4644 { "(bad)", { XX } },
4647 /* PREFIX_VEX_3A0C */
4649 { "(bad)", { XX } },
4650 { "(bad)", { XX } },
4651 { "vblendps", { XM, Vex, EXx, Ib } },
4652 { "(bad)", { XX } },
4655 /* PREFIX_VEX_3A0D */
4657 { "(bad)", { XX } },
4658 { "(bad)", { XX } },
4659 { "vblendpd", { XM, Vex, EXx, Ib } },
4660 { "(bad)", { XX } },
4663 /* PREFIX_VEX_3A0E */
4665 { "(bad)", { XX } },
4666 { "(bad)", { XX } },
4667 { VEX_LEN_TABLE (VEX_LEN_3A0E_P_2) },
4668 { "(bad)", { XX } },
4671 /* PREFIX_VEX_3A0F */
4673 { "(bad)", { XX } },
4674 { "(bad)", { XX } },
4675 { VEX_LEN_TABLE (VEX_LEN_3A0F_P_2) },
4676 { "(bad)", { XX } },
4679 /* PREFIX_VEX_3A14 */
4681 { "(bad)", { XX } },
4682 { "(bad)", { XX } },
4683 { VEX_LEN_TABLE (VEX_LEN_3A14_P_2) },
4684 { "(bad)", { XX } },
4687 /* PREFIX_VEX_3A15 */
4689 { "(bad)", { XX } },
4690 { "(bad)", { XX } },
4691 { VEX_LEN_TABLE (VEX_LEN_3A15_P_2) },
4692 { "(bad)", { XX } },
4695 /* PREFIX_VEX_3A16 */
4697 { "(bad)", { XX } },
4698 { "(bad)", { XX } },
4699 { VEX_LEN_TABLE (VEX_LEN_3A16_P_2) },
4700 { "(bad)", { XX } },
4703 /* PREFIX_VEX_3A17 */
4705 { "(bad)", { XX } },
4706 { "(bad)", { XX } },
4707 { VEX_LEN_TABLE (VEX_LEN_3A17_P_2) },
4708 { "(bad)", { XX } },
4711 /* PREFIX_VEX_3A18 */
4713 { "(bad)", { XX } },
4714 { "(bad)", { XX } },
4715 { VEX_LEN_TABLE (VEX_LEN_3A18_P_2) },
4716 { "(bad)", { XX } },
4719 /* PREFIX_VEX_3A19 */
4721 { "(bad)", { XX } },
4722 { "(bad)", { XX } },
4723 { VEX_LEN_TABLE (VEX_LEN_3A19_P_2) },
4724 { "(bad)", { XX } },
4727 /* PREFIX_VEX_3A20 */
4729 { "(bad)", { XX } },
4730 { "(bad)", { XX } },
4731 { VEX_LEN_TABLE (VEX_LEN_3A20_P_2) },
4732 { "(bad)", { XX } },
4735 /* PREFIX_VEX_3A21 */
4737 { "(bad)", { XX } },
4738 { "(bad)", { XX } },
4739 { VEX_LEN_TABLE (VEX_LEN_3A21_P_2) },
4740 { "(bad)", { XX } },
4743 /* PREFIX_VEX_3A22 */
4745 { "(bad)", { XX } },
4746 { "(bad)", { XX } },
4747 { VEX_LEN_TABLE (VEX_LEN_3A22_P_2) },
4748 { "(bad)", { XX } },
4751 /* PREFIX_VEX_3A40 */
4753 { "(bad)", { XX } },
4754 { "(bad)", { XX } },
4755 { "vdpps", { XM, Vex, EXx, Ib } },
4756 { "(bad)", { XX } },
4759 /* PREFIX_VEX_3A41 */
4761 { "(bad)", { XX } },
4762 { "(bad)", { XX } },
4763 { VEX_LEN_TABLE (VEX_LEN_3A41_P_2) },
4764 { "(bad)", { XX } },
4767 /* PREFIX_VEX_3A42 */
4769 { "(bad)", { XX } },
4770 { "(bad)", { XX } },
4771 { VEX_LEN_TABLE (VEX_LEN_3A42_P_2) },
4772 { "(bad)", { XX } },
4775 /* PREFIX_VEX_3A48 */
4777 { "(bad)", { XX } },
4778 { "(bad)", { XX } },
4779 { "vpermil2ps", { XMVexW, Vex, EXVexImmW, EXVexImmW, VPERMIL2 } },
4780 { "(bad)", { XX } },
4783 /* PREFIX_VEX_3A49 */
4785 { "(bad)", { XX } },
4786 { "(bad)", { XX } },
4787 { "vpermil2pd", { XMVexW, Vex, EXVexImmW, EXVexImmW, VPERMIL2 } },
4788 { "(bad)", { XX } },
4791 /* PREFIX_VEX_3A4A */
4793 { "(bad)", { XX } },
4794 { "(bad)", { XX } },
4795 { "vblendvps", { XM, Vex, EXx, XMVexI4 } },
4796 { "(bad)", { XX } },
4799 /* PREFIX_VEX_3A4B */
4801 { "(bad)", { XX } },
4802 { "(bad)", { XX } },
4803 { "vblendvpd", { XM, Vex, EXx, XMVexI4 } },
4804 { "(bad)", { XX } },
4807 /* PREFIX_VEX_3A4C */
4809 { "(bad)", { XX } },
4810 { "(bad)", { XX } },
4811 { VEX_LEN_TABLE (VEX_LEN_3A4C_P_2) },
4812 { "(bad)", { XX } },
4815 /* PREFIX_VEX_3A5C */
4817 { "(bad)", { XX } },
4818 { "(bad)", { XX } },
4819 { "vfmaddsubps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4820 { "(bad)", { XX } },
4823 /* PREFIX_VEX_3A5D */
4825 { "(bad)", { XX } },
4826 { "(bad)", { XX } },
4827 { "vfmaddsubpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4828 { "(bad)", { XX } },
4831 /* PREFIX_VEX_3A5E */
4833 { "(bad)", { XX } },
4834 { "(bad)", { XX } },
4835 { "vfmsubaddps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4836 { "(bad)", { XX } },
4839 /* PREFIX_VEX_3A5F */
4841 { "(bad)", { XX } },
4842 { "(bad)", { XX } },
4843 { "vfmsubaddpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4844 { "(bad)", { XX } },
4847 /* PREFIX_VEX_3A60 */
4849 { "(bad)", { XX } },
4850 { "(bad)", { XX } },
4851 { VEX_LEN_TABLE (VEX_LEN_3A60_P_2) },
4852 { "(bad)", { XX } },
4855 /* PREFIX_VEX_3A61 */
4857 { "(bad)", { XX } },
4858 { "(bad)", { XX } },
4859 { VEX_LEN_TABLE (VEX_LEN_3A61_P_2) },
4860 { "(bad)", { XX } },
4863 /* PREFIX_VEX_3A62 */
4865 { "(bad)", { XX } },
4866 { "(bad)", { XX } },
4867 { VEX_LEN_TABLE (VEX_LEN_3A62_P_2) },
4868 { "(bad)", { XX } },
4871 /* PREFIX_VEX_3A63 */
4873 { "(bad)", { XX } },
4874 { "(bad)", { XX } },
4875 { VEX_LEN_TABLE (VEX_LEN_3A63_P_2) },
4876 { "(bad)", { XX } },
4879 /* PREFIX_VEX_3A68 */
4881 { "(bad)", { XX } },
4882 { "(bad)", { XX } },
4883 { "vfmaddps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4884 { "(bad)", { XX } },
4887 /* PREFIX_VEX_3A69 */
4889 { "(bad)", { XX } },
4890 { "(bad)", { XX } },
4891 { "vfmaddpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4892 { "(bad)", { XX } },
4895 /* PREFIX_VEX_3A6A */
4897 { "(bad)", { XX } },
4898 { "(bad)", { XX } },
4899 { VEX_LEN_TABLE (VEX_LEN_3A6A_P_2) },
4900 { "(bad)", { XX } },
4903 /* PREFIX_VEX_3A6B */
4905 { "(bad)", { XX } },
4906 { "(bad)", { XX } },
4907 { VEX_LEN_TABLE (VEX_LEN_3A6B_P_2) },
4908 { "(bad)", { XX } },
4911 /* PREFIX_VEX_3A6C */
4913 { "(bad)", { XX } },
4914 { "(bad)", { XX } },
4915 { "vfmsubps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4916 { "(bad)", { XX } },
4919 /* PREFIX_VEX_3A6D */
4921 { "(bad)", { XX } },
4922 { "(bad)", { XX } },
4923 { "vfmsubpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4924 { "(bad)", { XX } },
4927 /* PREFIX_VEX_3A6E */
4929 { "(bad)", { XX } },
4930 { "(bad)", { XX } },
4931 { VEX_LEN_TABLE (VEX_LEN_3A6E_P_2) },
4932 { "(bad)", { XX } },
4935 /* PREFIX_VEX_3A6F */
4937 { "(bad)", { XX } },
4938 { "(bad)", { XX } },
4939 { VEX_LEN_TABLE (VEX_LEN_3A6F_P_2) },
4940 { "(bad)", { XX } },
4943 /* PREFIX_VEX_3A78 */
4945 { "(bad)", { XX } },
4946 { "(bad)", { XX } },
4947 { "vfnmaddps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4948 { "(bad)", { XX } },
4951 /* PREFIX_VEX_3A79 */
4953 { "(bad)", { XX } },
4954 { "(bad)", { XX } },
4955 { "vfnmaddpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4956 { "(bad)", { XX } },
4959 /* PREFIX_VEX_3A7A */
4961 { "(bad)", { XX } },
4962 { "(bad)", { XX } },
4963 { VEX_LEN_TABLE (VEX_LEN_3A7A_P_2) },
4964 { "(bad)", { XX } },
4967 /* PREFIX_VEX_3A7B */
4969 { "(bad)", { XX } },
4970 { "(bad)", { XX } },
4971 { VEX_LEN_TABLE (VEX_LEN_3A7B_P_2) },
4972 { "(bad)", { XX } },
4975 /* PREFIX_VEX_3A7C */
4977 { "(bad)", { XX } },
4978 { "(bad)", { XX } },
4979 { "vfnmsubps", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4980 { "(bad)", { XX } },
4983 /* PREFIX_VEX_3A7D */
4985 { "(bad)", { XX } },
4986 { "(bad)", { XX } },
4987 { "vfnmsubpd", { XMVexW, VexFMA, EXVexW, EXVexW, VexI4 } },
4988 { "(bad)", { XX } },
4991 /* PREFIX_VEX_3A7E */
4993 { "(bad)", { XX } },
4994 { "(bad)", { XX } },
4995 { VEX_LEN_TABLE (VEX_LEN_3A7E_P_2) },
4996 { "(bad)", { XX } },
4999 /* PREFIX_VEX_3A7F */
5001 { "(bad)", { XX } },
5002 { "(bad)", { XX } },
5003 { VEX_LEN_TABLE (VEX_LEN_3A7F_P_2) },
5004 { "(bad)", { XX } },
5007 /* PREFIX_VEX_3ADF */
5009 { "(bad)", { XX } },
5010 { "(bad)", { XX } },
5011 { VEX_LEN_TABLE (VEX_LEN_3ADF_P_2) },
5012 { "(bad)", { XX } },
5016 static const struct dis386 x86_64_table[][2] = {
5019 { "push{T|}", { es } },
5020 { "(bad)", { XX } },
5025 { "pop{T|}", { es } },
5026 { "(bad)", { XX } },
5031 { "push{T|}", { cs } },
5032 { "(bad)", { XX } },
5037 { "push{T|}", { ss } },
5038 { "(bad)", { XX } },
5043 { "pop{T|}", { ss } },
5044 { "(bad)", { XX } },
5049 { "push{T|}", { ds } },
5050 { "(bad)", { XX } },
5055 { "pop{T|}", { ds } },
5056 { "(bad)", { XX } },
5062 { "(bad)", { XX } },
5068 { "(bad)", { XX } },
5074 { "(bad)", { XX } },
5080 { "(bad)", { XX } },
5085 { "pusha{P|}", { XX } },
5086 { "(bad)", { XX } },
5091 { "popa{P|}", { XX } },
5092 { "(bad)", { XX } },
5097 { MOD_TABLE (MOD_62_32BIT) },
5098 { "(bad)", { XX } },
5103 { "arpl", { Ew, Gw } },
5104 { "movs{lq|xd}", { Gv, Ed } },
5109 { "ins{R|}", { Yzr, indirDX } },
5110 { "ins{G|}", { Yzr, indirDX } },
5115 { "outs{R|}", { indirDXr, Xz } },
5116 { "outs{G|}", { indirDXr, Xz } },
5121 { "Jcall{T|}", { Ap } },
5122 { "(bad)", { XX } },
5127 { MOD_TABLE (MOD_C4_32BIT) },
5128 { VEX_C4_TABLE (VEX_0F) },
5133 { MOD_TABLE (MOD_C5_32BIT) },
5134 { VEX_C5_TABLE (VEX_0F) },
5140 { "(bad)", { XX } },
5146 { "(bad)", { XX } },
5152 { "(bad)", { XX } },
5157 { "Jjmp{T|}", { Ap } },
5158 { "(bad)", { XX } },
5161 /* X86_64_0F01_REG_0 */
5163 { "sgdt{Q|IQ}", { M } },
5167 /* X86_64_0F01_REG_1 */
5169 { "sidt{Q|IQ}", { M } },
5173 /* X86_64_0F01_REG_2 */
5175 { "lgdt{Q|Q}", { M } },
5179 /* X86_64_0F01_REG_3 */
5181 { "lidt{Q|Q}", { M } },
5186 static const struct dis386 three_byte_table[][256] = {
5187 /* THREE_BYTE_0F24 */
5190 { "fmaddps", { { OP_DREX4, q_mode } } },
5191 { "fmaddpd", { { OP_DREX4, q_mode } } },
5192 { "fmaddss", { { OP_DREX4, w_mode } } },
5193 { "fmaddsd", { { OP_DREX4, d_mode } } },
5194 { "fmaddps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5195 { "fmaddpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5196 { "fmaddss", { { OP_DREX4, DREX_OC1 + w_mode } } },
5197 { "fmaddsd", { { OP_DREX4, DREX_OC1 + d_mode } } },
5199 { "fmsubps", { { OP_DREX4, q_mode } } },
5200 { "fmsubpd", { { OP_DREX4, q_mode } } },
5201 { "fmsubss", { { OP_DREX4, w_mode } } },
5202 { "fmsubsd", { { OP_DREX4, d_mode } } },
5203 { "fmsubps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5204 { "fmsubpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5205 { "fmsubss", { { OP_DREX4, DREX_OC1 + w_mode } } },
5206 { "fmsubsd", { { OP_DREX4, DREX_OC1 + d_mode } } },
5208 { "fnmaddps", { { OP_DREX4, q_mode } } },
5209 { "fnmaddpd", { { OP_DREX4, q_mode } } },
5210 { "fnmaddss", { { OP_DREX4, w_mode } } },
5211 { "fnmaddsd", { { OP_DREX4, d_mode } } },
5212 { "fnmaddps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5213 { "fnmaddpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5214 { "fnmaddss", { { OP_DREX4, DREX_OC1 + w_mode } } },
5215 { "fnmaddsd", { { OP_DREX4, DREX_OC1 + d_mode } } },
5217 { "fnmsubps", { { OP_DREX4, q_mode } } },
5218 { "fnmsubpd", { { OP_DREX4, q_mode } } },
5219 { "fnmsubss", { { OP_DREX4, w_mode } } },
5220 { "fnmsubsd", { { OP_DREX4, d_mode } } },
5221 { "fnmsubps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5222 { "fnmsubpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5223 { "fnmsubss", { { OP_DREX4, DREX_OC1 + w_mode } } },
5224 { "fnmsubsd", { { OP_DREX4, DREX_OC1 + d_mode } } },
5226 { "permps", { { OP_DREX4, q_mode } } },
5227 { "permpd", { { OP_DREX4, q_mode } } },
5228 { "pcmov", { { OP_DREX4, q_mode } } },
5229 { "pperm", { { OP_DREX4, q_mode } } },
5230 { "permps", { { OP_DREX4, DREX_OC1 + q_mode } } },
5231 { "permpd", { { OP_DREX4, DREX_OC1 + q_mode } } },
5232 { "pcmov", { { OP_DREX4, DREX_OC1 + w_mode } } },
5233 { "pperm", { { OP_DREX4, DREX_OC1 + d_mode } } },
5235 { "(bad)", { XX } },
5236 { "(bad)", { XX } },
5237 { "(bad)", { XX } },
5238 { "(bad)", { XX } },
5239 { "(bad)", { XX } },
5240 { "(bad)", { XX } },
5241 { "(bad)", { XX } },
5242 { "(bad)", { XX } },
5244 { "(bad)", { XX } },
5245 { "(bad)", { XX } },
5246 { "(bad)", { XX } },
5247 { "(bad)", { XX } },
5248 { "(bad)", { XX } },
5249 { "(bad)", { XX } },
5250 { "(bad)", { XX } },
5251 { "(bad)", { XX } },
5253 { "(bad)", { XX } },
5254 { "(bad)", { XX } },
5255 { "(bad)", { XX } },
5256 { "(bad)", { XX } },
5257 { "(bad)", { XX } },
5258 { "(bad)", { XX } },
5259 { "(bad)", { XX } },
5260 { "(bad)", { XX } },
5262 { "protb", { { OP_DREX3, q_mode } } },
5263 { "protw", { { OP_DREX3, q_mode } } },
5264 { "protd", { { OP_DREX3, q_mode } } },
5265 { "protq", { { OP_DREX3, q_mode } } },
5266 { "pshlb", { { OP_DREX3, q_mode } } },
5267 { "pshlw", { { OP_DREX3, q_mode } } },
5268 { "pshld", { { OP_DREX3, q_mode } } },
5269 { "pshlq", { { OP_DREX3, q_mode } } },
5271 { "pshab", { { OP_DREX3, q_mode } } },
5272 { "pshaw", { { OP_DREX3, q_mode } } },
5273 { "pshad", { { OP_DREX3, q_mode } } },
5274 { "pshaq", { { OP_DREX3, q_mode } } },
5275 { "(bad)", { XX } },
5276 { "(bad)", { XX } },
5277 { "(bad)", { XX } },
5278 { "(bad)", { XX } },
5280 { "(bad)", { XX } },
5281 { "(bad)", { XX } },
5282 { "(bad)", { XX } },
5283 { "(bad)", { XX } },
5284 { "(bad)", { XX } },
5285 { "(bad)", { XX } },
5286 { "(bad)", { XX } },
5287 { "(bad)", { XX } },
5289 { "(bad)", { XX } },
5290 { "(bad)", { XX } },
5291 { "(bad)", { XX } },
5292 { "(bad)", { XX } },
5293 { "(bad)", { XX } },
5294 { "(bad)", { XX } },
5295 { "(bad)", { XX } },
5296 { "(bad)", { XX } },
5298 { "(bad)", { XX } },
5299 { "(bad)", { XX } },
5300 { "(bad)", { XX } },
5301 { "(bad)", { XX } },
5302 { "(bad)", { XX } },
5303 { "(bad)", { XX } },
5304 { "(bad)", { XX } },
5305 { "(bad)", { XX } },
5307 { "(bad)", { XX } },
5308 { "(bad)", { XX } },
5309 { "(bad)", { XX } },
5310 { "(bad)", { XX } },
5311 { "(bad)", { XX } },
5312 { "(bad)", { XX } },
5313 { "(bad)", { XX } },
5314 { "(bad)", { XX } },
5316 { "(bad)", { XX } },
5317 { "(bad)", { XX } },
5318 { "(bad)", { XX } },
5319 { "(bad)", { XX } },
5320 { "(bad)", { XX } },
5321 { "(bad)", { XX } },
5322 { "(bad)", { XX } },
5323 { "(bad)", { XX } },
5325 { "(bad)", { XX } },
5326 { "(bad)", { XX } },
5327 { "(bad)", { XX } },
5328 { "(bad)", { XX } },
5329 { "(bad)", { XX } },
5330 { "(bad)", { XX } },
5331 { "(bad)", { XX } },
5332 { "(bad)", { XX } },
5334 { "(bad)", { XX } },
5335 { "(bad)", { XX } },
5336 { "(bad)", { XX } },
5337 { "(bad)", { XX } },
5338 { "(bad)", { XX } },
5339 { "pmacssww", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5340 { "pmacsswd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5341 { "pmacssdql", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5343 { "(bad)", { XX } },
5344 { "(bad)", { XX } },
5345 { "(bad)", { XX } },
5346 { "(bad)", { XX } },
5347 { "(bad)", { XX } },
5348 { "(bad)", { XX } },
5349 { "pmacssdd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5350 { "pmacssdqh", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5352 { "(bad)", { XX } },
5353 { "(bad)", { XX } },
5354 { "(bad)", { XX } },
5355 { "(bad)", { XX } },
5356 { "(bad)", { XX } },
5357 { "pmacsww", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5358 { "pmacswd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5359 { "pmacsdql", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5361 { "(bad)", { XX } },
5362 { "(bad)", { XX } },
5363 { "(bad)", { XX } },
5364 { "(bad)", { XX } },
5365 { "(bad)", { XX } },
5366 { "(bad)", { XX } },
5367 { "pmacsdd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5368 { "pmacsdqh", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5370 { "(bad)", { XX } },
5371 { "(bad)", { XX } },
5372 { "(bad)", { XX } },
5373 { "(bad)", { XX } },
5374 { "(bad)", { XX } },
5375 { "(bad)", { XX } },
5376 { "pmadcsswd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5377 { "(bad)", { XX } },
5379 { "(bad)", { XX } },
5380 { "(bad)", { XX } },
5381 { "(bad)", { XX } },
5382 { "(bad)", { XX } },
5383 { "(bad)", { XX } },
5384 { "(bad)", { XX } },
5385 { "(bad)", { XX } },
5386 { "(bad)", { XX } },
5388 { "(bad)", { XX } },
5389 { "(bad)", { XX } },
5390 { "(bad)", { XX } },
5391 { "(bad)", { XX } },
5392 { "(bad)", { XX } },
5393 { "(bad)", { XX } },
5394 { "pmadcswd", { { OP_DREX4, DREX_OC1 + DREX_NO_OC0 + q_mode } } },
5395 { "(bad)", { XX } },
5397 { "(bad)", { XX } },
5398 { "(bad)", { XX } },
5399 { "(bad)", { XX } },
5400 { "(bad)", { XX } },
5401 { "(bad)", { XX } },
5402 { "(bad)", { XX } },
5403 { "(bad)", { XX } },
5404 { "(bad)", { XX } },
5406 { "(bad)", { XX } },
5407 { "(bad)", { XX } },
5408 { "(bad)", { XX } },
5409 { "(bad)", { XX } },
5410 { "(bad)", { XX } },
5411 { "(bad)", { XX } },
5412 { "(bad)", { XX } },
5413 { "(bad)", { XX } },
5415 { "(bad)", { XX } },
5416 { "(bad)", { XX } },
5417 { "(bad)", { XX } },
5418 { "(bad)", { XX } },
5419 { "(bad)", { XX } },
5420 { "(bad)", { XX } },
5421 { "(bad)", { XX } },
5422 { "(bad)", { XX } },
5424 { "(bad)", { XX } },
5425 { "(bad)", { XX } },
5426 { "(bad)", { XX } },
5427 { "(bad)", { XX } },
5428 { "(bad)", { XX } },
5429 { "(bad)", { XX } },
5430 { "(bad)", { XX } },
5431 { "(bad)", { XX } },
5433 { "(bad)", { XX } },
5434 { "(bad)", { XX } },
5435 { "(bad)", { XX } },
5436 { "(bad)", { XX } },
5437 { "(bad)", { XX } },
5438 { "(bad)", { XX } },
5439 { "(bad)", { XX } },
5440 { "(bad)", { XX } },
5442 { "(bad)", { XX } },
5443 { "(bad)", { XX } },
5444 { "(bad)", { XX } },
5445 { "(bad)", { XX } },
5446 { "(bad)", { XX } },
5447 { "(bad)", { XX } },
5448 { "(bad)", { XX } },
5449 { "(bad)", { XX } },
5451 { "(bad)", { XX } },
5452 { "(bad)", { XX } },
5453 { "(bad)", { XX } },
5454 { "(bad)", { XX } },
5455 { "(bad)", { XX } },
5456 { "(bad)", { XX } },
5457 { "(bad)", { XX } },
5458 { "(bad)", { XX } },
5460 { "(bad)", { XX } },
5461 { "(bad)", { XX } },
5462 { "(bad)", { XX } },
5463 { "(bad)", { XX } },
5464 { "(bad)", { XX } },
5465 { "(bad)", { XX } },
5466 { "(bad)", { XX } },
5467 { "(bad)", { XX } },
5469 { "(bad)", { XX } },
5470 { "(bad)", { XX } },
5471 { "(bad)", { XX } },
5472 { "(bad)", { XX } },
5473 { "(bad)", { XX } },
5474 { "(bad)", { XX } },
5475 { "(bad)", { XX } },
5476 { "(bad)", { XX } },
5478 /* THREE_BYTE_0F25 */
5481 { "(bad)", { XX } },
5482 { "(bad)", { XX } },
5483 { "(bad)", { XX } },
5484 { "(bad)", { XX } },
5485 { "(bad)", { XX } },
5486 { "(bad)", { XX } },
5487 { "(bad)", { XX } },
5488 { "(bad)", { XX } },
5490 { "(bad)", { XX } },
5491 { "(bad)", { XX } },
5492 { "(bad)", { XX } },
5493 { "(bad)", { XX } },
5494 { "(bad)", { XX } },
5495 { "(bad)", { XX } },
5496 { "(bad)", { XX } },
5497 { "(bad)", { XX } },
5499 { "(bad)", { XX } },
5500 { "(bad)", { XX } },
5501 { "(bad)", { XX } },
5502 { "(bad)", { XX } },
5503 { "(bad)", { XX } },
5504 { "(bad)", { XX } },
5505 { "(bad)", { XX } },
5506 { "(bad)", { XX } },
5508 { "(bad)", { XX } },
5509 { "(bad)", { XX } },
5510 { "(bad)", { XX } },
5511 { "(bad)", { XX } },
5512 { "(bad)", { XX } },
5513 { "(bad)", { XX } },
5514 { "(bad)", { XX } },
5515 { "(bad)", { XX } },
5517 { "(bad)", { XX } },
5518 { "(bad)", { XX } },
5519 { "(bad)", { XX } },
5520 { "(bad)", { XX } },
5521 { "(bad)", { XX } },
5522 { "(bad)", { XX } },
5523 { "(bad)", { XX } },
5524 { "(bad)", { XX } },
5526 { "(bad)", { XX } },
5527 { "(bad)", { XX } },
5528 { "(bad)", { XX } },
5529 { "(bad)", { XX } },
5530 { "comps", { { OP_DREX3, q_mode }, { OP_DREX_FCMP, b_mode } } },
5531 { "compd", { { OP_DREX3, q_mode }, { OP_DREX_FCMP, b_mode } } },
5532 { "comss", { { OP_DREX3, w_mode }, { OP_DREX_FCMP, b_mode } } },
5533 { "comsd", { { OP_DREX3, d_mode }, { OP_DREX_FCMP, b_mode } } },
5535 { "(bad)", { XX } },
5536 { "(bad)", { XX } },
5537 { "(bad)", { XX } },
5538 { "(bad)", { XX } },
5539 { "(bad)", { XX } },
5540 { "(bad)", { XX } },
5541 { "(bad)", { XX } },
5542 { "(bad)", { XX } },
5544 { "(bad)", { XX } },
5545 { "(bad)", { XX } },
5546 { "(bad)", { XX } },
5547 { "(bad)", { XX } },
5548 { "(bad)", { XX } },
5549 { "(bad)", { XX } },
5550 { "(bad)", { XX } },
5551 { "(bad)", { XX } },
5553 { "(bad)", { XX } },
5554 { "(bad)", { XX } },
5555 { "(bad)", { XX } },
5556 { "(bad)", { XX } },
5557 { "(bad)", { XX } },
5558 { "(bad)", { XX } },
5559 { "(bad)", { XX } },
5560 { "(bad)", { XX } },
5562 { "(bad)", { XX } },
5563 { "(bad)", { XX } },
5564 { "(bad)", { XX } },
5565 { "(bad)", { XX } },
5566 { "pcomb", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5567 { "pcomw", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5568 { "pcomd", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5569 { "pcomq", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5571 { "(bad)", { XX } },
5572 { "(bad)", { XX } },
5573 { "(bad)", { XX } },
5574 { "(bad)", { XX } },
5575 { "(bad)", { XX } },
5576 { "(bad)", { XX } },
5577 { "(bad)", { XX } },
5578 { "(bad)", { XX } },
5580 { "(bad)", { XX } },
5581 { "(bad)", { XX } },
5582 { "(bad)", { XX } },
5583 { "(bad)", { XX } },
5584 { "(bad)", { XX } },
5585 { "(bad)", { XX } },
5586 { "(bad)", { XX } },
5587 { "(bad)", { XX } },
5589 { "(bad)", { XX } },
5590 { "(bad)", { XX } },
5591 { "(bad)", { XX } },
5592 { "(bad)", { XX } },
5593 { "(bad)", { XX } },
5594 { "(bad)", { XX } },
5595 { "(bad)", { XX } },
5596 { "(bad)", { XX } },
5598 { "(bad)", { XX } },
5599 { "(bad)", { XX } },
5600 { "(bad)", { XX } },
5601 { "(bad)", { XX } },
5602 { "pcomub", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5603 { "pcomuw", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5604 { "pcomud", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5605 { "pcomuq", { { OP_DREX3, q_mode }, { OP_DREX_ICMP, b_mode } } },
5607 { "(bad)", { XX } },
5608 { "(bad)", { XX } },
5609 { "(bad)", { XX } },
5610 { "(bad)", { XX } },
5611 { "(bad)", { XX } },
5612 { "(bad)", { XX } },
5613 { "(bad)", { XX } },
5614 { "(bad)", { XX } },
5616 { "(bad)", { XX } },
5617 { "(bad)", { XX } },
5618 { "(bad)", { XX } },
5619 { "(bad)", { XX } },
5620 { "(bad)", { XX } },
5621 { "(bad)", { XX } },
5622 { "(bad)", { XX } },
5623 { "(bad)", { XX } },
5625 { "(bad)", { XX } },
5626 { "(bad)", { XX } },
5627 { "(bad)", { XX } },
5628 { "(bad)", { XX } },
5629 { "(bad)", { XX } },
5630 { "(bad)", { XX } },
5631 { "(bad)", { XX } },
5632 { "(bad)", { XX } },
5634 { "(bad)", { XX } },
5635 { "(bad)", { XX } },
5636 { "(bad)", { XX } },
5637 { "(bad)", { XX } },
5638 { "(bad)", { XX } },
5639 { "(bad)", { XX } },
5640 { "(bad)", { XX } },
5641 { "(bad)", { XX } },
5643 { "(bad)", { XX } },
5644 { "(bad)", { XX } },
5645 { "(bad)", { XX } },
5646 { "(bad)", { XX } },
5647 { "(bad)", { XX } },
5648 { "(bad)", { XX } },
5649 { "(bad)", { XX } },
5650 { "(bad)", { XX } },
5652 { "(bad)", { XX } },
5653 { "(bad)", { XX } },
5654 { "(bad)", { XX } },
5655 { "(bad)", { XX } },
5656 { "(bad)", { XX } },
5657 { "(bad)", { XX } },
5658 { "(bad)", { XX } },
5659 { "(bad)", { XX } },
5661 { "(bad)", { XX } },
5662 { "(bad)", { XX } },
5663 { "(bad)", { XX } },
5664 { "(bad)", { XX } },
5665 { "(bad)", { XX } },
5666 { "(bad)", { XX } },
5667 { "(bad)", { XX } },
5668 { "(bad)", { XX } },
5670 { "(bad)", { XX } },
5671 { "(bad)", { XX } },
5672 { "(bad)", { XX } },
5673 { "(bad)", { XX } },
5674 { "(bad)", { XX } },
5675 { "(bad)", { XX } },
5676 { "(bad)", { XX } },
5677 { "(bad)", { XX } },
5679 { "(bad)", { XX } },
5680 { "(bad)", { XX } },
5681 { "(bad)", { XX } },
5682 { "(bad)", { XX } },
5683 { "(bad)", { XX } },
5684 { "(bad)", { XX } },
5685 { "(bad)", { XX } },
5686 { "(bad)", { XX } },
5688 { "(bad)", { XX } },
5689 { "(bad)", { XX } },
5690 { "(bad)", { XX } },
5691 { "(bad)", { XX } },
5692 { "(bad)", { XX } },
5693 { "(bad)", { XX } },
5694 { "(bad)", { XX } },
5695 { "(bad)", { XX } },
5697 { "(bad)", { XX } },
5698 { "(bad)", { XX } },
5699 { "(bad)", { XX } },
5700 { "(bad)", { XX } },
5701 { "(bad)", { XX } },
5702 { "(bad)", { XX } },
5703 { "(bad)", { XX } },
5704 { "(bad)", { XX } },
5706 { "(bad)", { XX } },
5707 { "(bad)", { XX } },
5708 { "(bad)", { XX } },
5709 { "(bad)", { XX } },
5710 { "(bad)", { XX } },
5711 { "(bad)", { XX } },
5712 { "(bad)", { XX } },
5713 { "(bad)", { XX } },
5715 { "(bad)", { XX } },
5716 { "(bad)", { XX } },
5717 { "(bad)", { XX } },
5718 { "(bad)", { XX } },
5719 { "(bad)", { XX } },
5720 { "(bad)", { XX } },
5721 { "(bad)", { XX } },
5722 { "(bad)", { XX } },
5724 { "(bad)", { XX } },
5725 { "(bad)", { XX } },
5726 { "(bad)", { XX } },
5727 { "(bad)", { XX } },
5728 { "(bad)", { XX } },
5729 { "(bad)", { XX } },
5730 { "(bad)", { XX } },
5731 { "(bad)", { XX } },
5733 { "(bad)", { XX } },
5734 { "(bad)", { XX } },
5735 { "(bad)", { XX } },
5736 { "(bad)", { XX } },
5737 { "(bad)", { XX } },
5738 { "(bad)", { XX } },
5739 { "(bad)", { XX } },
5740 { "(bad)", { XX } },
5742 { "(bad)", { XX } },
5743 { "(bad)", { XX } },
5744 { "(bad)", { XX } },
5745 { "(bad)", { XX } },
5746 { "(bad)", { XX } },
5747 { "(bad)", { XX } },
5748 { "(bad)", { XX } },
5749 { "(bad)", { XX } },
5751 { "(bad)", { XX } },
5752 { "(bad)", { XX } },
5753 { "(bad)", { XX } },
5754 { "(bad)", { XX } },
5755 { "(bad)", { XX } },
5756 { "(bad)", { XX } },
5757 { "(bad)", { XX } },
5758 { "(bad)", { XX } },
5760 { "(bad)", { XX } },
5761 { "(bad)", { XX } },
5762 { "(bad)", { XX } },
5763 { "(bad)", { XX } },
5764 { "(bad)", { XX } },
5765 { "(bad)", { XX } },
5766 { "(bad)", { XX } },
5767 { "(bad)", { XX } },
5769 /* THREE_BYTE_0F38 */
5772 { "pshufb", { MX, EM } },
5773 { "phaddw", { MX, EM } },
5774 { "phaddd", { MX, EM } },
5775 { "phaddsw", { MX, EM } },
5776 { "pmaddubsw", { MX, EM } },
5777 { "phsubw", { MX, EM } },
5778 { "phsubd", { MX, EM } },
5779 { "phsubsw", { MX, EM } },
5781 { "psignb", { MX, EM } },
5782 { "psignw", { MX, EM } },
5783 { "psignd", { MX, EM } },
5784 { "pmulhrsw", { MX, EM } },
5785 { "(bad)", { XX } },
5786 { "(bad)", { XX } },
5787 { "(bad)", { XX } },
5788 { "(bad)", { XX } },
5790 { PREFIX_TABLE (PREFIX_0F3810) },
5791 { "(bad)", { XX } },
5792 { "(bad)", { XX } },
5793 { "(bad)", { XX } },
5794 { PREFIX_TABLE (PREFIX_0F3814) },
5795 { PREFIX_TABLE (PREFIX_0F3815) },
5796 { "(bad)", { XX } },
5797 { PREFIX_TABLE (PREFIX_0F3817) },
5799 { "(bad)", { XX } },
5800 { "(bad)", { XX } },
5801 { "(bad)", { XX } },
5802 { "(bad)", { XX } },
5803 { "pabsb", { MX, EM } },
5804 { "pabsw", { MX, EM } },
5805 { "pabsd", { MX, EM } },
5806 { "(bad)", { XX } },
5808 { PREFIX_TABLE (PREFIX_0F3820) },
5809 { PREFIX_TABLE (PREFIX_0F3821) },
5810 { PREFIX_TABLE (PREFIX_0F3822) },
5811 { PREFIX_TABLE (PREFIX_0F3823) },
5812 { PREFIX_TABLE (PREFIX_0F3824) },
5813 { PREFIX_TABLE (PREFIX_0F3825) },
5814 { "(bad)", { XX } },
5815 { "(bad)", { XX } },
5817 { PREFIX_TABLE (PREFIX_0F3828) },
5818 { PREFIX_TABLE (PREFIX_0F3829) },
5819 { PREFIX_TABLE (PREFIX_0F382A) },
5820 { PREFIX_TABLE (PREFIX_0F382B) },
5821 { "(bad)", { XX } },
5822 { "(bad)", { XX } },
5823 { "(bad)", { XX } },
5824 { "(bad)", { XX } },
5826 { PREFIX_TABLE (PREFIX_0F3830) },
5827 { PREFIX_TABLE (PREFIX_0F3831) },
5828 { PREFIX_TABLE (PREFIX_0F3832) },
5829 { PREFIX_TABLE (PREFIX_0F3833) },
5830 { PREFIX_TABLE (PREFIX_0F3834) },
5831 { PREFIX_TABLE (PREFIX_0F3835) },
5832 { "(bad)", { XX } },
5833 { PREFIX_TABLE (PREFIX_0F3837) },
5835 { PREFIX_TABLE (PREFIX_0F3838) },
5836 { PREFIX_TABLE (PREFIX_0F3839) },
5837 { PREFIX_TABLE (PREFIX_0F383A) },
5838 { PREFIX_TABLE (PREFIX_0F383B) },
5839 { PREFIX_TABLE (PREFIX_0F383C) },
5840 { PREFIX_TABLE (PREFIX_0F383D) },
5841 { PREFIX_TABLE (PREFIX_0F383E) },
5842 { PREFIX_TABLE (PREFIX_0F383F) },
5844 { PREFIX_TABLE (PREFIX_0F3840) },
5845 { PREFIX_TABLE (PREFIX_0F3841) },
5846 { "(bad)", { XX } },
5847 { "(bad)", { XX } },
5848 { "(bad)", { XX } },
5849 { "(bad)", { XX } },
5850 { "(bad)", { XX } },
5851 { "(bad)", { XX } },
5853 { "(bad)", { XX } },
5854 { "(bad)", { XX } },
5855 { "(bad)", { XX } },
5856 { "(bad)", { XX } },
5857 { "(bad)", { XX } },
5858 { "(bad)", { XX } },
5859 { "(bad)", { XX } },
5860 { "(bad)", { XX } },
5862 { "(bad)", { XX } },
5863 { "(bad)", { XX } },
5864 { "(bad)", { XX } },
5865 { "(bad)", { XX } },
5866 { "(bad)", { XX } },
5867 { "(bad)", { XX } },
5868 { "(bad)", { XX } },
5869 { "(bad)", { XX } },
5871 { "(bad)", { XX } },
5872 { "(bad)", { XX } },
5873 { "(bad)", { XX } },
5874 { "(bad)", { XX } },
5875 { "(bad)", { XX } },
5876 { "(bad)", { XX } },
5877 { "(bad)", { XX } },
5878 { "(bad)", { XX } },
5880 { "(bad)", { XX } },
5881 { "(bad)", { XX } },
5882 { "(bad)", { XX } },
5883 { "(bad)", { XX } },
5884 { "(bad)", { XX } },
5885 { "(bad)", { XX } },
5886 { "(bad)", { XX } },
5887 { "(bad)", { XX } },
5889 { "(bad)", { XX } },
5890 { "(bad)", { XX } },
5891 { "(bad)", { XX } },
5892 { "(bad)", { XX } },
5893 { "(bad)", { XX } },
5894 { "(bad)", { XX } },
5895 { "(bad)", { XX } },
5896 { "(bad)", { XX } },
5898 { "(bad)", { XX } },
5899 { "(bad)", { XX } },
5900 { "(bad)", { XX } },
5901 { "(bad)", { XX } },
5902 { "(bad)", { XX } },
5903 { "(bad)", { XX } },
5904 { "(bad)", { XX } },
5905 { "(bad)", { XX } },
5907 { "(bad)", { XX } },
5908 { "(bad)", { XX } },
5909 { "(bad)", { XX } },
5910 { "(bad)", { XX } },
5911 { "(bad)", { XX } },
5912 { "(bad)", { XX } },
5913 { "(bad)", { XX } },
5914 { "(bad)", { XX } },
5916 { PREFIX_TABLE (PREFIX_0F3880) },
5917 { PREFIX_TABLE (PREFIX_0F3881) },
5918 { "(bad)", { XX } },
5919 { "(bad)", { XX } },
5920 { "(bad)", { XX } },
5921 { "(bad)", { XX } },
5922 { "(bad)", { XX } },
5923 { "(bad)", { XX } },
5925 { "(bad)", { XX } },
5926 { "(bad)", { XX } },
5927 { "(bad)", { XX } },
5928 { "(bad)", { XX } },
5929 { "(bad)", { XX } },
5930 { "(bad)", { XX } },
5931 { "(bad)", { XX } },
5932 { "(bad)", { XX } },
5934 { "(bad)", { XX } },
5935 { "(bad)", { XX } },
5936 { "(bad)", { XX } },
5937 { "(bad)", { XX } },
5938 { "(bad)", { XX } },
5939 { "(bad)", { XX } },
5940 { "(bad)", { XX } },
5941 { "(bad)", { XX } },
5943 { "(bad)", { XX } },
5944 { "(bad)", { XX } },
5945 { "(bad)", { XX } },
5946 { "(bad)", { XX } },
5947 { "(bad)", { XX } },
5948 { "(bad)", { XX } },
5949 { "(bad)", { XX } },
5950 { "(bad)", { XX } },
5952 { "(bad)", { XX } },
5953 { "(bad)", { XX } },
5954 { "(bad)", { XX } },
5955 { "(bad)", { XX } },
5956 { "(bad)", { XX } },
5957 { "(bad)", { XX } },
5958 { "(bad)", { XX } },
5959 { "(bad)", { XX } },
5961 { "(bad)", { XX } },
5962 { "(bad)", { XX } },
5963 { "(bad)", { XX } },
5964 { "(bad)", { XX } },
5965 { "(bad)", { XX } },
5966 { "(bad)", { XX } },
5967 { "(bad)", { XX } },
5968 { "(bad)", { XX } },
5970 { "(bad)", { XX } },
5971 { "(bad)", { XX } },
5972 { "(bad)", { XX } },
5973 { "(bad)", { XX } },
5974 { "(bad)", { XX } },
5975 { "(bad)", { XX } },
5976 { "(bad)", { XX } },
5977 { "(bad)", { XX } },
5979 { "(bad)", { XX } },
5980 { "(bad)", { XX } },
5981 { "(bad)", { XX } },
5982 { "(bad)", { XX } },
5983 { "(bad)", { XX } },
5984 { "(bad)", { XX } },
5985 { "(bad)", { XX } },
5986 { "(bad)", { XX } },
5988 { "(bad)", { XX } },
5989 { "(bad)", { XX } },
5990 { "(bad)", { XX } },
5991 { "(bad)", { XX } },
5992 { "(bad)", { XX } },
5993 { "(bad)", { XX } },
5994 { "(bad)", { XX } },
5995 { "(bad)", { XX } },
5997 { "(bad)", { XX } },
5998 { "(bad)", { XX } },
5999 { "(bad)", { XX } },
6000 { "(bad)", { XX } },
6001 { "(bad)", { XX } },
6002 { "(bad)", { XX } },
6003 { "(bad)", { XX } },
6004 { "(bad)", { XX } },
6006 { "(bad)", { XX } },
6007 { "(bad)", { XX } },
6008 { "(bad)", { XX } },
6009 { "(bad)", { XX } },
6010 { "(bad)", { XX } },
6011 { "(bad)", { XX } },
6012 { "(bad)", { XX } },
6013 { "(bad)", { XX } },
6015 { "(bad)", { XX } },
6016 { "(bad)", { XX } },
6017 { "(bad)", { XX } },
6018 { PREFIX_TABLE (PREFIX_0F38DB) },
6019 { PREFIX_TABLE (PREFIX_0F38DC) },
6020 { PREFIX_TABLE (PREFIX_0F38DD) },
6021 { PREFIX_TABLE (PREFIX_0F38DE) },
6022 { PREFIX_TABLE (PREFIX_0F38DF) },
6024 { "(bad)", { XX } },
6025 { "(bad)", { XX } },
6026 { "(bad)", { XX } },
6027 { "(bad)", { XX } },
6028 { "(bad)", { XX } },
6029 { "(bad)", { XX } },
6030 { "(bad)", { XX } },
6031 { "(bad)", { XX } },
6033 { "(bad)", { XX } },
6034 { "(bad)", { XX } },
6035 { "(bad)", { XX } },
6036 { "(bad)", { XX } },
6037 { "(bad)", { XX } },
6038 { "(bad)", { XX } },
6039 { "(bad)", { XX } },
6040 { "(bad)", { XX } },
6042 { PREFIX_TABLE (PREFIX_0F38F0) },
6043 { PREFIX_TABLE (PREFIX_0F38F1) },
6044 { "(bad)", { XX } },
6045 { "(bad)", { XX } },
6046 { "(bad)", { XX } },
6047 { "(bad)", { XX } },
6048 { "(bad)", { XX } },
6049 { "(bad)", { XX } },
6051 { "(bad)", { XX } },
6052 { "(bad)", { XX } },
6053 { "(bad)", { XX } },
6054 { "(bad)", { XX } },
6055 { "(bad)", { XX } },
6056 { "(bad)", { XX } },
6057 { "(bad)", { XX } },
6058 { "(bad)", { XX } },
6060 /* THREE_BYTE_0F3A */
6063 { "(bad)", { XX } },
6064 { "(bad)", { XX } },
6065 { "(bad)", { XX } },
6066 { "(bad)", { XX } },
6067 { "(bad)", { XX } },
6068 { "(bad)", { XX } },
6069 { "(bad)", { XX } },
6070 { "(bad)", { XX } },
6072 { PREFIX_TABLE (PREFIX_0F3A08) },
6073 { PREFIX_TABLE (PREFIX_0F3A09) },
6074 { PREFIX_TABLE (PREFIX_0F3A0A) },
6075 { PREFIX_TABLE (PREFIX_0F3A0B) },
6076 { PREFIX_TABLE (PREFIX_0F3A0C) },
6077 { PREFIX_TABLE (PREFIX_0F3A0D) },
6078 { PREFIX_TABLE (PREFIX_0F3A0E) },
6079 { "palignr", { MX, EM, Ib } },
6081 { "(bad)", { XX } },
6082 { "(bad)", { XX } },
6083 { "(bad)", { XX } },
6084 { "(bad)", { XX } },
6085 { PREFIX_TABLE (PREFIX_0F3A14) },
6086 { PREFIX_TABLE (PREFIX_0F3A15) },
6087 { PREFIX_TABLE (PREFIX_0F3A16) },
6088 { PREFIX_TABLE (PREFIX_0F3A17) },
6090 { "(bad)", { XX } },
6091 { "(bad)", { XX } },
6092 { "(bad)", { XX } },
6093 { "(bad)", { XX } },
6094 { "(bad)", { XX } },
6095 { "(bad)", { XX } },
6096 { "(bad)", { XX } },
6097 { "(bad)", { XX } },
6099 { PREFIX_TABLE (PREFIX_0F3A20) },
6100 { PREFIX_TABLE (PREFIX_0F3A21) },
6101 { PREFIX_TABLE (PREFIX_0F3A22) },
6102 { "(bad)", { XX } },
6103 { "(bad)", { XX } },
6104 { "(bad)", { XX } },
6105 { "(bad)", { XX } },
6106 { "(bad)", { XX } },
6108 { "(bad)", { XX } },
6109 { "(bad)", { XX } },
6110 { "(bad)", { XX } },
6111 { "(bad)", { XX } },
6112 { "(bad)", { XX } },
6113 { "(bad)", { XX } },
6114 { "(bad)", { XX } },
6115 { "(bad)", { XX } },
6117 { "(bad)", { XX } },
6118 { "(bad)", { XX } },
6119 { "(bad)", { XX } },
6120 { "(bad)", { XX } },
6121 { "(bad)", { XX } },
6122 { "(bad)", { XX } },
6123 { "(bad)", { XX } },
6124 { "(bad)", { XX } },
6126 { "(bad)", { XX } },
6127 { "(bad)", { XX } },
6128 { "(bad)", { XX } },
6129 { "(bad)", { XX } },
6130 { "(bad)", { XX } },
6131 { "(bad)", { XX } },
6132 { "(bad)", { XX } },
6133 { "(bad)", { XX } },
6135 { PREFIX_TABLE (PREFIX_0F3A40) },
6136 { PREFIX_TABLE (PREFIX_0F3A41) },
6137 { PREFIX_TABLE (PREFIX_0F3A42) },
6138 { "(bad)", { XX } },
6139 { PREFIX_TABLE (PREFIX_0F3A44) },
6140 { "(bad)", { XX } },
6141 { "(bad)", { XX } },
6142 { "(bad)", { XX } },
6144 { "(bad)", { XX } },
6145 { "(bad)", { XX } },
6146 { "(bad)", { XX } },
6147 { "(bad)", { XX } },
6148 { "(bad)", { XX } },
6149 { "(bad)", { XX } },
6150 { "(bad)", { XX } },
6151 { "(bad)", { XX } },
6153 { "(bad)", { XX } },
6154 { "(bad)", { XX } },
6155 { "(bad)", { XX } },
6156 { "(bad)", { XX } },
6157 { "(bad)", { XX } },
6158 { "(bad)", { XX } },
6159 { "(bad)", { XX } },
6160 { "(bad)", { XX } },
6162 { "(bad)", { XX } },
6163 { "(bad)", { XX } },
6164 { "(bad)", { XX } },
6165 { "(bad)", { XX } },
6166 { "(bad)", { XX } },
6167 { "(bad)", { XX } },
6168 { "(bad)", { XX } },
6169 { "(bad)", { XX } },
6171 { PREFIX_TABLE (PREFIX_0F3A60) },
6172 { PREFIX_TABLE (PREFIX_0F3A61) },
6173 { PREFIX_TABLE (PREFIX_0F3A62) },
6174 { PREFIX_TABLE (PREFIX_0F3A63) },
6175 { "(bad)", { XX } },
6176 { "(bad)", { XX } },
6177 { "(bad)", { XX } },
6178 { "(bad)", { XX } },
6180 { "(bad)", { XX } },
6181 { "(bad)", { XX } },
6182 { "(bad)", { XX } },
6183 { "(bad)", { XX } },
6184 { "(bad)", { XX } },
6185 { "(bad)", { XX } },
6186 { "(bad)", { XX } },
6187 { "(bad)", { XX } },
6189 { "(bad)", { XX } },
6190 { "(bad)", { XX } },
6191 { "(bad)", { XX } },
6192 { "(bad)", { XX } },
6193 { "(bad)", { XX } },
6194 { "(bad)", { XX } },
6195 { "(bad)", { XX } },
6196 { "(bad)", { XX } },
6198 { "(bad)", { XX } },
6199 { "(bad)", { XX } },
6200 { "(bad)", { XX } },
6201 { "(bad)", { XX } },
6202 { "(bad)", { XX } },
6203 { "(bad)", { XX } },
6204 { "(bad)", { XX } },
6205 { "(bad)", { XX } },
6207 { "(bad)", { XX } },
6208 { "(bad)", { XX } },
6209 { "(bad)", { XX } },
6210 { "(bad)", { XX } },
6211 { "(bad)", { XX } },
6212 { "(bad)", { XX } },
6213 { "(bad)", { XX } },
6214 { "(bad)", { XX } },
6216 { "(bad)", { XX } },
6217 { "(bad)", { XX } },
6218 { "(bad)", { XX } },
6219 { "(bad)", { XX } },
6220 { "(bad)", { XX } },
6221 { "(bad)", { XX } },
6222 { "(bad)", { XX } },
6223 { "(bad)", { XX } },
6225 { "(bad)", { XX } },
6226 { "(bad)", { XX } },
6227 { "(bad)", { XX } },
6228 { "(bad)", { XX } },
6229 { "(bad)", { XX } },
6230 { "(bad)", { XX } },
6231 { "(bad)", { XX } },
6232 { "(bad)", { XX } },
6234 { "(bad)", { XX } },
6235 { "(bad)", { XX } },
6236 { "(bad)", { XX } },
6237 { "(bad)", { XX } },
6238 { "(bad)", { XX } },
6239 { "(bad)", { XX } },
6240 { "(bad)", { XX } },
6241 { "(bad)", { XX } },
6243 { "(bad)", { XX } },
6244 { "(bad)", { XX } },
6245 { "(bad)", { XX } },
6246 { "(bad)", { XX } },
6247 { "(bad)", { XX } },
6248 { "(bad)", { XX } },
6249 { "(bad)", { XX } },
6250 { "(bad)", { XX } },
6252 { "(bad)", { XX } },
6253 { "(bad)", { XX } },
6254 { "(bad)", { XX } },
6255 { "(bad)", { XX } },
6256 { "(bad)", { XX } },
6257 { "(bad)", { XX } },
6258 { "(bad)", { XX } },
6259 { "(bad)", { XX } },
6261 { "(bad)", { XX } },
6262 { "(bad)", { XX } },
6263 { "(bad)", { XX } },
6264 { "(bad)", { XX } },
6265 { "(bad)", { XX } },
6266 { "(bad)", { XX } },
6267 { "(bad)", { XX } },
6268 { "(bad)", { XX } },
6270 { "(bad)", { XX } },
6271 { "(bad)", { XX } },
6272 { "(bad)", { XX } },
6273 { "(bad)", { XX } },
6274 { "(bad)", { XX } },
6275 { "(bad)", { XX } },
6276 { "(bad)", { XX } },
6277 { "(bad)", { XX } },
6279 { "(bad)", { XX } },
6280 { "(bad)", { XX } },
6281 { "(bad)", { XX } },
6282 { "(bad)", { XX } },
6283 { "(bad)", { XX } },
6284 { "(bad)", { XX } },
6285 { "(bad)", { XX } },
6286 { "(bad)", { XX } },
6288 { "(bad)", { XX } },
6289 { "(bad)", { XX } },
6290 { "(bad)", { XX } },
6291 { "(bad)", { XX } },
6292 { "(bad)", { XX } },
6293 { "(bad)", { XX } },
6294 { "(bad)", { XX } },
6295 { "(bad)", { XX } },
6297 { "(bad)", { XX } },
6298 { "(bad)", { XX } },
6299 { "(bad)", { XX } },
6300 { "(bad)", { XX } },
6301 { "(bad)", { XX } },
6302 { "(bad)", { XX } },
6303 { "(bad)", { XX } },
6304 { "(bad)", { XX } },
6306 { "(bad)", { XX } },
6307 { "(bad)", { XX } },
6308 { "(bad)", { XX } },
6309 { "(bad)", { XX } },
6310 { "(bad)", { XX } },
6311 { "(bad)", { XX } },
6312 { "(bad)", { XX } },
6313 { PREFIX_TABLE (PREFIX_0F3ADF) },
6315 { "(bad)", { XX } },
6316 { "(bad)", { XX } },
6317 { "(bad)", { XX } },
6318 { "(bad)", { XX } },
6319 { "(bad)", { XX } },
6320 { "(bad)", { XX } },
6321 { "(bad)", { XX } },
6322 { "(bad)", { XX } },
6324 { "(bad)", { XX } },
6325 { "(bad)", { XX } },
6326 { "(bad)", { XX } },
6327 { "(bad)", { XX } },
6328 { "(bad)", { XX } },
6329 { "(bad)", { XX } },
6330 { "(bad)", { XX } },
6331 { "(bad)", { XX } },
6333 { "(bad)", { XX } },
6334 { "(bad)", { XX } },
6335 { "(bad)", { XX } },
6336 { "(bad)", { XX } },
6337 { "(bad)", { XX } },
6338 { "(bad)", { XX } },
6339 { "(bad)", { XX } },
6340 { "(bad)", { XX } },
6342 { "(bad)", { XX } },
6343 { "(bad)", { XX } },
6344 { "(bad)", { XX } },
6345 { "(bad)", { XX } },
6346 { "(bad)", { XX } },
6347 { "(bad)", { XX } },
6348 { "(bad)", { XX } },
6349 { "(bad)", { XX } },
6351 /* THREE_BYTE_0F7A */
6354 { "(bad)", { XX } },
6355 { "(bad)", { XX } },
6356 { "(bad)", { XX } },
6357 { "(bad)", { XX } },
6358 { "(bad)", { XX } },
6359 { "(bad)", { XX } },
6360 { "(bad)", { XX } },
6361 { "(bad)", { XX } },
6363 { "(bad)", { XX } },
6364 { "(bad)", { XX } },
6365 { "(bad)", { XX } },
6366 { "(bad)", { XX } },
6367 { "(bad)", { XX } },
6368 { "(bad)", { XX } },
6369 { "(bad)", { XX } },
6370 { "(bad)", { XX } },
6372 { "frczps", { XM, EXq } },
6373 { "frczpd", { XM, EXq } },
6374 { "frczss", { XM, EXq } },
6375 { "frczsd", { XM, EXq } },
6376 { "(bad)", { XX } },
6377 { "(bad)", { XX } },
6378 { "(bad)", { XX } },
6379 { "(bad)", { XX } },
6381 { "(bad)", { XX } },
6382 { "(bad)", { XX } },
6383 { "(bad)", { XX } },
6384 { "(bad)", { XX } },
6385 { "(bad)", { XX } },
6386 { "(bad)", { XX } },
6387 { "(bad)", { XX } },
6388 { "(bad)", { XX } },
6390 { "ptest", { XX } },
6391 { "(bad)", { XX } },
6392 { "(bad)", { XX } },
6393 { "(bad)", { XX } },
6394 { "(bad)", { XX } },
6395 { "(bad)", { XX } },
6396 { "(bad)", { XX } },
6397 { "(bad)", { XX } },
6399 { "(bad)", { XX } },
6400 { "(bad)", { XX } },
6401 { "(bad)", { XX } },
6402 { "(bad)", { XX } },
6403 { "(bad)", { XX } },
6404 { "(bad)", { XX } },
6405 { "(bad)", { XX } },
6406 { "(bad)", { XX } },
6408 { "cvtph2ps", { XM, EXd } },
6409 { "cvtps2ph", { EXd, XM } },
6410 { "(bad)", { XX } },
6411 { "(bad)", { XX } },
6412 { "(bad)", { XX } },
6413 { "(bad)", { XX } },
6414 { "(bad)", { XX } },
6415 { "(bad)", { XX } },
6417 { "(bad)", { XX } },
6418 { "(bad)", { XX } },
6419 { "(bad)", { XX } },
6420 { "(bad)", { XX } },
6421 { "(bad)", { XX } },
6422 { "(bad)", { XX } },
6423 { "(bad)", { XX } },
6424 { "(bad)", { XX } },
6426 { "(bad)", { XX } },
6427 { "phaddbw", { XM, EXq } },
6428 { "phaddbd", { XM, EXq } },
6429 { "phaddbq", { XM, EXq } },
6430 { "(bad)", { XX } },
6431 { "(bad)", { XX } },
6432 { "phaddwd", { XM, EXq } },
6433 { "phaddwq", { XM, EXq } },
6435 { "(bad)", { XX } },
6436 { "(bad)", { XX } },
6437 { "(bad)", { XX } },
6438 { "phadddq", { XM, EXq } },
6439 { "(bad)", { XX } },
6440 { "(bad)", { XX } },
6441 { "(bad)", { XX } },
6442 { "(bad)", { XX } },
6444 { "(bad)", { XX } },
6445 { "phaddubw", { XM, EXq } },
6446 { "phaddubd", { XM, EXq } },
6447 { "phaddubq", { XM, EXq } },
6448 { "(bad)", { XX } },
6449 { "(bad)", { XX } },
6450 { "phadduwd", { XM, EXq } },
6451 { "phadduwq", { XM, EXq } },
6453 { "(bad)", { XX } },
6454 { "(bad)", { XX } },
6455 { "(bad)", { XX } },
6456 { "phaddudq", { XM, EXq } },
6457 { "(bad)", { XX } },
6458 { "(bad)", { XX } },
6459 { "(bad)", { XX } },
6460 { "(bad)", { XX } },
6462 { "(bad)", { XX } },
6463 { "phsubbw", { XM, EXq } },
6464 { "phsubbd", { XM, EXq } },
6465 { "phsubbq", { XM, EXq } },
6466 { "(bad)", { XX } },
6467 { "(bad)", { XX } },
6468 { "(bad)", { XX } },
6469 { "(bad)", { XX } },
6471 { "(bad)", { XX } },
6472 { "(bad)", { XX } },
6473 { "(bad)", { XX } },
6474 { "(bad)", { XX } },
6475 { "(bad)", { XX } },
6476 { "(bad)", { XX } },
6477 { "(bad)", { XX } },
6478 { "(bad)", { XX } },
6480 { "(bad)", { XX } },
6481 { "(bad)", { XX } },
6482 { "(bad)", { XX } },
6483 { "(bad)", { XX } },
6484 { "(bad)", { XX } },
6485 { "(bad)", { XX } },
6486 { "(bad)", { XX } },
6487 { "(bad)", { XX } },
6489 { "(bad)", { XX } },
6490 { "(bad)", { XX } },
6491 { "(bad)", { XX } },
6492 { "(bad)", { XX } },
6493 { "(bad)", { XX } },
6494 { "(bad)", { XX } },
6495 { "(bad)", { XX } },
6496 { "(bad)", { XX } },
6498 { "(bad)", { XX } },
6499 { "(bad)", { XX } },
6500 { "(bad)", { XX } },
6501 { "(bad)", { XX } },
6502 { "(bad)", { XX } },
6503 { "(bad)", { XX } },
6504 { "(bad)", { XX } },
6505 { "(bad)", { XX } },
6507 { "(bad)", { XX } },
6508 { "(bad)", { XX } },
6509 { "(bad)", { XX } },
6510 { "(bad)", { XX } },
6511 { "(bad)", { XX } },
6512 { "(bad)", { XX } },
6513 { "(bad)", { XX } },
6514 { "(bad)", { XX } },
6516 { "(bad)", { XX } },
6517 { "(bad)", { XX } },
6518 { "(bad)", { XX } },
6519 { "(bad)", { XX } },
6520 { "(bad)", { XX } },
6521 { "(bad)", { XX } },
6522 { "(bad)", { XX } },
6523 { "(bad)", { XX } },
6525 { "(bad)", { XX } },
6526 { "(bad)", { XX } },
6527 { "(bad)", { XX } },
6528 { "(bad)", { XX } },
6529 { "(bad)", { XX } },
6530 { "(bad)", { XX } },
6531 { "(bad)", { XX } },
6532 { "(bad)", { XX } },
6534 { "(bad)", { XX } },
6535 { "(bad)", { XX } },
6536 { "(bad)", { XX } },
6537 { "(bad)", { XX } },
6538 { "(bad)", { XX } },
6539 { "(bad)", { XX } },
6540 { "(bad)", { XX } },
6541 { "(bad)", { XX } },
6543 { "(bad)", { XX } },
6544 { "(bad)", { XX } },
6545 { "(bad)", { XX } },
6546 { "(bad)", { XX } },
6547 { "(bad)", { XX } },
6548 { "(bad)", { XX } },
6549 { "(bad)", { XX } },
6550 { "(bad)", { XX } },
6552 { "(bad)", { XX } },
6553 { "(bad)", { XX } },
6554 { "(bad)", { XX } },
6555 { "(bad)", { XX } },
6556 { "(bad)", { XX } },
6557 { "(bad)", { XX } },
6558 { "(bad)", { XX } },
6559 { "(bad)", { XX } },
6561 { "(bad)", { XX } },
6562 { "(bad)", { XX } },
6563 { "(bad)", { XX } },
6564 { "(bad)", { XX } },
6565 { "(bad)", { XX } },
6566 { "(bad)", { XX } },
6567 { "(bad)", { XX } },
6568 { "(bad)", { XX } },
6570 { "(bad)", { XX } },
6571 { "(bad)", { XX } },
6572 { "(bad)", { XX } },
6573 { "(bad)", { XX } },
6574 { "(bad)", { XX } },
6575 { "(bad)", { XX } },
6576 { "(bad)", { XX } },
6577 { "(bad)", { XX } },
6579 { "(bad)", { XX } },
6580 { "(bad)", { XX } },
6581 { "(bad)", { XX } },
6582 { "(bad)", { XX } },
6583 { "(bad)", { XX } },
6584 { "(bad)", { XX } },
6585 { "(bad)", { XX } },
6586 { "(bad)", { XX } },
6588 { "(bad)", { XX } },
6589 { "(bad)", { XX } },
6590 { "(bad)", { XX } },
6591 { "(bad)", { XX } },
6592 { "(bad)", { XX } },
6593 { "(bad)", { XX } },
6594 { "(bad)", { XX } },
6595 { "(bad)", { XX } },
6597 { "(bad)", { XX } },
6598 { "(bad)", { XX } },
6599 { "(bad)", { XX } },
6600 { "(bad)", { XX } },
6601 { "(bad)", { XX } },
6602 { "(bad)", { XX } },
6603 { "(bad)", { XX } },
6604 { "(bad)", { XX } },
6606 { "(bad)", { XX } },
6607 { "(bad)", { XX } },
6608 { "(bad)", { XX } },
6609 { "(bad)", { XX } },
6610 { "(bad)", { XX } },
6611 { "(bad)", { XX } },
6612 { "(bad)", { XX } },
6613 { "(bad)", { XX } },
6615 { "(bad)", { XX } },
6616 { "(bad)", { XX } },
6617 { "(bad)", { XX } },
6618 { "(bad)", { XX } },
6619 { "(bad)", { XX } },
6620 { "(bad)", { XX } },
6621 { "(bad)", { XX } },
6622 { "(bad)", { XX } },
6624 { "(bad)", { XX } },
6625 { "(bad)", { XX } },
6626 { "(bad)", { XX } },
6627 { "(bad)", { XX } },
6628 { "(bad)", { XX } },
6629 { "(bad)", { XX } },
6630 { "(bad)", { XX } },
6631 { "(bad)", { XX } },
6633 { "(bad)", { XX } },
6634 { "(bad)", { XX } },
6635 { "(bad)", { XX } },
6636 { "(bad)", { XX } },
6637 { "(bad)", { XX } },
6638 { "(bad)", { XX } },
6639 { "(bad)", { XX } },
6640 { "(bad)", { XX } },
6642 /* THREE_BYTE_0F7B */
6645 { "(bad)", { XX } },
6646 { "(bad)", { XX } },
6647 { "(bad)", { XX } },
6648 { "(bad)", { XX } },
6649 { "(bad)", { XX } },
6650 { "(bad)", { XX } },
6651 { "(bad)", { XX } },
6652 { "(bad)", { XX } },
6654 { "(bad)", { XX } },
6655 { "(bad)", { XX } },
6656 { "(bad)", { XX } },
6657 { "(bad)", { XX } },
6658 { "(bad)", { XX } },
6659 { "(bad)", { XX } },
6660 { "(bad)", { XX } },
6661 { "(bad)", { XX } },
6663 { "(bad)", { XX } },
6664 { "(bad)", { XX } },
6665 { "(bad)", { XX } },
6666 { "(bad)", { XX } },
6667 { "(bad)", { XX } },
6668 { "(bad)", { XX } },
6669 { "(bad)", { XX } },
6670 { "(bad)", { XX } },
6672 { "(bad)", { XX } },
6673 { "(bad)", { XX } },
6674 { "(bad)", { XX } },
6675 { "(bad)", { XX } },
6676 { "(bad)", { XX } },
6677 { "(bad)", { XX } },
6678 { "(bad)", { XX } },
6679 { "(bad)", { XX } },
6681 { "(bad)", { XX } },
6682 { "(bad)", { XX } },
6683 { "(bad)", { XX } },
6684 { "(bad)", { XX } },
6685 { "(bad)", { XX } },
6686 { "(bad)", { XX } },
6687 { "(bad)", { XX } },
6688 { "(bad)", { XX } },
6690 { "(bad)", { XX } },
6691 { "(bad)", { XX } },
6692 { "(bad)", { XX } },
6693 { "(bad)", { XX } },
6694 { "(bad)", { XX } },
6695 { "(bad)", { XX } },
6696 { "(bad)", { XX } },
6697 { "(bad)", { XX } },
6699 { "(bad)", { XX } },
6700 { "(bad)", { XX } },
6701 { "(bad)", { XX } },
6702 { "(bad)", { XX } },
6703 { "(bad)", { XX } },
6704 { "(bad)", { XX } },
6705 { "(bad)", { XX } },
6706 { "(bad)", { XX } },
6708 { "(bad)", { XX } },
6709 { "(bad)", { XX } },
6710 { "(bad)", { XX } },
6711 { "(bad)", { XX } },
6712 { "(bad)", { XX } },
6713 { "(bad)", { XX } },
6714 { "(bad)", { XX } },
6715 { "(bad)", { XX } },
6717 { "protb", { XM, EXq, Ib } },
6718 { "protw", { XM, EXq, Ib } },
6719 { "protd", { XM, EXq, Ib } },
6720 { "protq", { XM, EXq, Ib } },
6721 { "pshlb", { XM, EXq, Ib } },
6722 { "pshlw", { XM, EXq, Ib } },
6723 { "pshld", { XM, EXq, Ib } },
6724 { "pshlq", { XM, EXq, Ib } },
6726 { "pshab", { XM, EXq, Ib } },
6727 { "pshaw", { XM, EXq, Ib } },
6728 { "pshad", { XM, EXq, Ib } },
6729 { "pshaq", { XM, EXq, Ib } },
6730 { "(bad)", { XX } },
6731 { "(bad)", { XX } },
6732 { "(bad)", { XX } },
6733 { "(bad)", { XX } },
6735 { "(bad)", { XX } },
6736 { "(bad)", { XX } },
6737 { "(bad)", { XX } },
6738 { "(bad)", { XX } },
6739 { "(bad)", { XX } },
6740 { "(bad)", { XX } },
6741 { "(bad)", { XX } },
6742 { "(bad)", { XX } },
6744 { "(bad)", { XX } },
6745 { "(bad)", { XX } },
6746 { "(bad)", { XX } },
6747 { "(bad)", { XX } },
6748 { "(bad)", { XX } },
6749 { "(bad)", { XX } },
6750 { "(bad)", { XX } },
6751 { "(bad)", { XX } },
6753 { "(bad)", { XX } },
6754 { "(bad)", { XX } },
6755 { "(bad)", { XX } },
6756 { "(bad)", { XX } },
6757 { "(bad)", { XX } },
6758 { "(bad)", { XX } },
6759 { "(bad)", { XX } },
6760 { "(bad)", { XX } },
6762 { "(bad)", { XX } },
6763 { "(bad)", { XX } },
6764 { "(bad)", { XX } },
6765 { "(bad)", { XX } },
6766 { "(bad)", { XX } },
6767 { "(bad)", { XX } },
6768 { "(bad)", { XX } },
6769 { "(bad)", { XX } },
6771 { "(bad)", { XX } },
6772 { "(bad)", { XX } },
6773 { "(bad)", { XX } },
6774 { "(bad)", { XX } },
6775 { "(bad)", { XX } },
6776 { "(bad)", { XX } },
6777 { "(bad)", { XX } },
6778 { "(bad)", { XX } },
6780 { "(bad)", { XX } },
6781 { "(bad)", { XX } },
6782 { "(bad)", { XX } },
6783 { "(bad)", { XX } },
6784 { "(bad)", { XX } },
6785 { "(bad)", { XX } },
6786 { "(bad)", { XX } },
6787 { "(bad)", { XX } },
6789 { "(bad)", { XX } },
6790 { "(bad)", { XX } },
6791 { "(bad)", { XX } },
6792 { "(bad)", { XX } },
6793 { "(bad)", { XX } },
6794 { "(bad)", { XX } },
6795 { "(bad)", { XX } },
6796 { "(bad)", { XX } },
6798 { "(bad)", { XX } },
6799 { "(bad)", { XX } },
6800 { "(bad)", { XX } },
6801 { "(bad)", { XX } },
6802 { "(bad)", { XX } },
6803 { "(bad)", { XX } },
6804 { "(bad)", { XX } },
6805 { "(bad)", { XX } },
6807 { "(bad)", { XX } },
6808 { "(bad)", { XX } },
6809 { "(bad)", { XX } },
6810 { "(bad)", { XX } },
6811 { "(bad)", { XX } },
6812 { "(bad)", { XX } },
6813 { "(bad)", { XX } },
6814 { "(bad)", { XX } },
6816 { "(bad)", { XX } },
6817 { "(bad)", { XX } },
6818 { "(bad)", { XX } },
6819 { "(bad)", { XX } },
6820 { "(bad)", { XX } },
6821 { "(bad)", { XX } },
6822 { "(bad)", { XX } },
6823 { "(bad)", { XX } },
6825 { "(bad)", { XX } },
6826 { "(bad)", { XX } },
6827 { "(bad)", { XX } },
6828 { "(bad)", { XX } },
6829 { "(bad)", { XX } },
6830 { "(bad)", { XX } },
6831 { "(bad)", { XX } },
6832 { "(bad)", { XX } },
6834 { "(bad)", { XX } },
6835 { "(bad)", { XX } },
6836 { "(bad)", { XX } },
6837 { "(bad)", { XX } },
6838 { "(bad)", { XX } },
6839 { "(bad)", { XX } },
6840 { "(bad)", { XX } },
6841 { "(bad)", { XX } },
6843 { "(bad)", { XX } },
6844 { "(bad)", { XX } },
6845 { "(bad)", { XX } },
6846 { "(bad)", { XX } },
6847 { "(bad)", { XX } },
6848 { "(bad)", { XX } },
6849 { "(bad)", { XX } },
6850 { "(bad)", { XX } },
6852 { "(bad)", { XX } },
6853 { "(bad)", { XX } },
6854 { "(bad)", { XX } },
6855 { "(bad)", { XX } },
6856 { "(bad)", { XX } },
6857 { "(bad)", { XX } },
6858 { "(bad)", { XX } },
6859 { "(bad)", { XX } },
6861 { "(bad)", { XX } },
6862 { "(bad)", { XX } },
6863 { "(bad)", { XX } },
6864 { "(bad)", { XX } },
6865 { "(bad)", { XX } },
6866 { "(bad)", { XX } },
6867 { "(bad)", { XX } },
6868 { "(bad)", { XX } },
6870 { "(bad)", { XX } },
6871 { "(bad)", { XX } },
6872 { "(bad)", { XX } },
6873 { "(bad)", { XX } },
6874 { "(bad)", { XX } },
6875 { "(bad)", { XX } },
6876 { "(bad)", { XX } },
6877 { "(bad)", { XX } },
6879 { "(bad)", { XX } },
6880 { "(bad)", { XX } },
6881 { "(bad)", { XX } },
6882 { "(bad)", { XX } },
6883 { "(bad)", { XX } },
6884 { "(bad)", { XX } },
6885 { "(bad)", { XX } },
6886 { "(bad)", { XX } },
6888 { "(bad)", { XX } },
6889 { "(bad)", { XX } },
6890 { "(bad)", { XX } },
6891 { "(bad)", { XX } },
6892 { "(bad)", { XX } },
6893 { "(bad)", { XX } },
6894 { "(bad)", { XX } },
6895 { "(bad)", { XX } },
6897 { "(bad)", { XX } },
6898 { "(bad)", { XX } },
6899 { "(bad)", { XX } },
6900 { "(bad)", { XX } },
6901 { "(bad)", { XX } },
6902 { "(bad)", { XX } },
6903 { "(bad)", { XX } },
6904 { "(bad)", { XX } },
6906 { "(bad)", { XX } },
6907 { "(bad)", { XX } },
6908 { "(bad)", { XX } },
6909 { "(bad)", { XX } },
6910 { "(bad)", { XX } },
6911 { "(bad)", { XX } },
6912 { "(bad)", { XX } },
6913 { "(bad)", { XX } },
6915 { "(bad)", { XX } },
6916 { "(bad)", { XX } },
6917 { "(bad)", { XX } },
6918 { "(bad)", { XX } },
6919 { "(bad)", { XX } },
6920 { "(bad)", { XX } },
6921 { "(bad)", { XX } },
6922 { "(bad)", { XX } },
6924 { "(bad)", { XX } },
6925 { "(bad)", { XX } },
6926 { "(bad)", { XX } },
6927 { "(bad)", { XX } },
6928 { "(bad)", { XX } },
6929 { "(bad)", { XX } },
6930 { "(bad)", { XX } },
6931 { "(bad)", { XX } },
6935 static const struct dis386 vex_table[][256] = {
6939 { "(bad)", { XX } },
6940 { "(bad)", { XX } },
6941 { "(bad)", { XX } },
6942 { "(bad)", { XX } },
6943 { "(bad)", { XX } },
6944 { "(bad)", { XX } },
6945 { "(bad)", { XX } },
6946 { "(bad)", { XX } },
6948 { "(bad)", { XX } },
6949 { "(bad)", { XX } },
6950 { "(bad)", { XX } },
6951 { "(bad)", { XX } },
6952 { "(bad)", { XX } },
6953 { "(bad)", { XX } },
6954 { "(bad)", { XX } },
6955 { "(bad)", { XX } },
6957 { PREFIX_TABLE (PREFIX_VEX_10) },
6958 { PREFIX_TABLE (PREFIX_VEX_11) },
6959 { PREFIX_TABLE (PREFIX_VEX_12) },
6960 { MOD_TABLE (MOD_VEX_13) },
6961 { "vunpcklpX", { XM, Vex, EXx } },
6962 { "vunpckhpX", { XM, Vex, EXx } },
6963 { PREFIX_TABLE (PREFIX_VEX_16) },
6964 { MOD_TABLE (MOD_VEX_17) },
6966 { "(bad)", { XX } },
6967 { "(bad)", { XX } },
6968 { "(bad)", { XX } },
6969 { "(bad)", { XX } },
6970 { "(bad)", { XX } },
6971 { "(bad)", { XX } },
6972 { "(bad)", { XX } },
6973 { "(bad)", { XX } },
6975 { "(bad)", { XX } },
6976 { "(bad)", { XX } },
6977 { "(bad)", { XX } },
6978 { "(bad)", { XX } },
6979 { "(bad)", { XX } },
6980 { "(bad)", { XX } },
6981 { "(bad)", { XX } },
6982 { "(bad)", { XX } },
6984 { "vmovapX", { XM, EXx } },
6985 { "vmovapX", { EXx, XM } },
6986 { PREFIX_TABLE (PREFIX_VEX_2A) },
6987 { MOD_TABLE (MOD_VEX_2B) },
6988 { PREFIX_TABLE (PREFIX_VEX_2C) },
6989 { PREFIX_TABLE (PREFIX_VEX_2D) },
6990 { PREFIX_TABLE (PREFIX_VEX_2E) },
6991 { PREFIX_TABLE (PREFIX_VEX_2F) },
6993 { "(bad)", { XX } },
6994 { "(bad)", { XX } },
6995 { "(bad)", { XX } },
6996 { "(bad)", { XX } },
6997 { "(bad)", { XX } },
6998 { "(bad)", { XX } },
6999 { "(bad)", { XX } },
7000 { "(bad)", { XX } },
7002 { "(bad)", { XX } },
7003 { "(bad)", { XX } },
7004 { "(bad)", { XX } },
7005 { "(bad)", { XX } },
7006 { "(bad)", { XX } },
7007 { "(bad)", { XX } },
7008 { "(bad)", { XX } },
7009 { "(bad)", { XX } },
7011 { "(bad)", { XX } },
7012 { "(bad)", { XX } },
7013 { "(bad)", { XX } },
7014 { "(bad)", { XX } },
7015 { "(bad)", { XX } },
7016 { "(bad)", { XX } },
7017 { "(bad)", { XX } },
7018 { "(bad)", { XX } },
7020 { "(bad)", { XX } },
7021 { "(bad)", { XX } },
7022 { "(bad)", { XX } },
7023 { "(bad)", { XX } },
7024 { "(bad)", { XX } },
7025 { "(bad)", { XX } },
7026 { "(bad)", { XX } },
7027 { "(bad)", { XX } },
7029 { MOD_TABLE (MOD_VEX_51) },
7030 { PREFIX_TABLE (PREFIX_VEX_51) },
7031 { PREFIX_TABLE (PREFIX_VEX_52) },
7032 { PREFIX_TABLE (PREFIX_VEX_53) },
7033 { "vandpX", { XM, Vex, EXx } },
7034 { "vandnpX", { XM, Vex, EXx } },
7035 { "vorpX", { XM, Vex, EXx } },
7036 { "vxorpX", { XM, Vex, EXx } },
7038 { PREFIX_TABLE (PREFIX_VEX_58) },
7039 { PREFIX_TABLE (PREFIX_VEX_59) },
7040 { PREFIX_TABLE (PREFIX_VEX_5A) },
7041 { PREFIX_TABLE (PREFIX_VEX_5B) },
7042 { PREFIX_TABLE (PREFIX_VEX_5C) },
7043 { PREFIX_TABLE (PREFIX_VEX_5D) },
7044 { PREFIX_TABLE (PREFIX_VEX_5E) },
7045 { PREFIX_TABLE (PREFIX_VEX_5F) },
7047 { PREFIX_TABLE (PREFIX_VEX_60) },
7048 { PREFIX_TABLE (PREFIX_VEX_61) },
7049 { PREFIX_TABLE (PREFIX_VEX_62) },
7050 { PREFIX_TABLE (PREFIX_VEX_63) },
7051 { PREFIX_TABLE (PREFIX_VEX_64) },
7052 { PREFIX_TABLE (PREFIX_VEX_65) },
7053 { PREFIX_TABLE (PREFIX_VEX_66) },
7054 { PREFIX_TABLE (PREFIX_VEX_67) },
7056 { PREFIX_TABLE (PREFIX_VEX_68) },
7057 { PREFIX_TABLE (PREFIX_VEX_69) },
7058 { PREFIX_TABLE (PREFIX_VEX_6A) },
7059 { PREFIX_TABLE (PREFIX_VEX_6B) },
7060 { PREFIX_TABLE (PREFIX_VEX_6C) },
7061 { PREFIX_TABLE (PREFIX_VEX_6D) },
7062 { PREFIX_TABLE (PREFIX_VEX_6E) },
7063 { PREFIX_TABLE (PREFIX_VEX_6F) },
7065 { PREFIX_TABLE (PREFIX_VEX_70) },
7066 { REG_TABLE (REG_VEX_71) },
7067 { REG_TABLE (REG_VEX_72) },
7068 { REG_TABLE (REG_VEX_73) },
7069 { PREFIX_TABLE (PREFIX_VEX_74) },
7070 { PREFIX_TABLE (PREFIX_VEX_75) },
7071 { PREFIX_TABLE (PREFIX_VEX_76) },
7072 { PREFIX_TABLE (PREFIX_VEX_77) },
7074 { "(bad)", { XX } },
7075 { "(bad)", { XX } },
7076 { "(bad)", { XX } },
7077 { "(bad)", { XX } },
7078 { PREFIX_TABLE (PREFIX_VEX_7C) },
7079 { PREFIX_TABLE (PREFIX_VEX_7D) },
7080 { PREFIX_TABLE (PREFIX_VEX_7E) },
7081 { PREFIX_TABLE (PREFIX_VEX_7F) },
7083 { "(bad)", { XX } },
7084 { "(bad)", { XX } },
7085 { "(bad)", { XX } },
7086 { "(bad)", { XX } },
7087 { "(bad)", { XX } },
7088 { "(bad)", { XX } },
7089 { "(bad)", { XX } },
7090 { "(bad)", { XX } },
7092 { "(bad)", { XX } },
7093 { "(bad)", { XX } },
7094 { "(bad)", { XX } },
7095 { "(bad)", { XX } },
7096 { "(bad)", { XX } },
7097 { "(bad)", { XX } },
7098 { "(bad)", { XX } },
7099 { "(bad)", { XX } },
7101 { "(bad)", { XX } },
7102 { "(bad)", { XX } },
7103 { "(bad)", { XX } },
7104 { "(bad)", { XX } },
7105 { "(bad)", { XX } },
7106 { "(bad)", { XX } },
7107 { "(bad)", { XX } },
7108 { "(bad)", { XX } },
7110 { "(bad)", { XX } },
7111 { "(bad)", { XX } },
7112 { "(bad)", { XX } },
7113 { "(bad)", { XX } },
7114 { "(bad)", { XX } },
7115 { "(bad)", { XX } },
7116 { "(bad)", { XX } },
7117 { "(bad)", { XX } },
7119 { "(bad)", { XX } },
7120 { "(bad)", { XX } },
7121 { "(bad)", { XX } },
7122 { "(bad)", { XX } },
7123 { "(bad)", { XX } },
7124 { "(bad)", { XX } },
7125 { "(bad)", { XX } },
7126 { "(bad)", { XX } },
7128 { "(bad)", { XX } },
7129 { "(bad)", { XX } },
7130 { "(bad)", { XX } },
7131 { "(bad)", { XX } },
7132 { "(bad)", { XX } },
7133 { "(bad)", { XX } },
7134 { REG_TABLE (REG_VEX_AE) },
7135 { "(bad)", { XX } },
7137 { "(bad)", { XX } },
7138 { "(bad)", { XX } },
7139 { "(bad)", { XX } },
7140 { "(bad)", { XX } },
7141 { "(bad)", { XX } },
7142 { "(bad)", { XX } },
7143 { "(bad)", { XX } },
7144 { "(bad)", { XX } },
7146 { "(bad)", { XX } },
7147 { "(bad)", { XX } },
7148 { "(bad)", { XX } },
7149 { "(bad)", { XX } },
7150 { "(bad)", { XX } },
7151 { "(bad)", { XX } },
7152 { "(bad)", { XX } },
7153 { "(bad)", { XX } },
7155 { "(bad)", { XX } },
7156 { "(bad)", { XX } },
7157 { PREFIX_TABLE (PREFIX_VEX_C2) },
7158 { "(bad)", { XX } },
7159 { PREFIX_TABLE (PREFIX_VEX_C4) },
7160 { PREFIX_TABLE (PREFIX_VEX_C5) },
7161 { "vshufpX", { XM, Vex, EXx, Ib } },
7162 { "(bad)", { XX } },
7164 { "(bad)", { XX } },
7165 { "(bad)", { XX } },
7166 { "(bad)", { XX } },
7167 { "(bad)", { XX } },
7168 { "(bad)", { XX } },
7169 { "(bad)", { XX } },
7170 { "(bad)", { XX } },
7171 { "(bad)", { XX } },
7173 { PREFIX_TABLE (PREFIX_VEX_D0) },
7174 { PREFIX_TABLE (PREFIX_VEX_D1) },
7175 { PREFIX_TABLE (PREFIX_VEX_D2) },
7176 { PREFIX_TABLE (PREFIX_VEX_D3) },
7177 { PREFIX_TABLE (PREFIX_VEX_D4) },
7178 { PREFIX_TABLE (PREFIX_VEX_D5) },
7179 { PREFIX_TABLE (PREFIX_VEX_D6) },
7180 { PREFIX_TABLE (PREFIX_VEX_D7) },
7182 { PREFIX_TABLE (PREFIX_VEX_D8) },
7183 { PREFIX_TABLE (PREFIX_VEX_D9) },
7184 { PREFIX_TABLE (PREFIX_VEX_DA) },
7185 { PREFIX_TABLE (PREFIX_VEX_DB) },
7186 { PREFIX_TABLE (PREFIX_VEX_DC) },
7187 { PREFIX_TABLE (PREFIX_VEX_DD) },
7188 { PREFIX_TABLE (PREFIX_VEX_DE) },
7189 { PREFIX_TABLE (PREFIX_VEX_DF) },
7191 { PREFIX_TABLE (PREFIX_VEX_E0) },
7192 { PREFIX_TABLE (PREFIX_VEX_E1) },
7193 { PREFIX_TABLE (PREFIX_VEX_E2) },
7194 { PREFIX_TABLE (PREFIX_VEX_E3) },
7195 { PREFIX_TABLE (PREFIX_VEX_E4) },
7196 { PREFIX_TABLE (PREFIX_VEX_E5) },
7197 { PREFIX_TABLE (PREFIX_VEX_E6) },
7198 { PREFIX_TABLE (PREFIX_VEX_E7) },
7200 { PREFIX_TABLE (PREFIX_VEX_E8) },
7201 { PREFIX_TABLE (PREFIX_VEX_E9) },
7202 { PREFIX_TABLE (PREFIX_VEX_EA) },
7203 { PREFIX_TABLE (PREFIX_VEX_EB) },
7204 { PREFIX_TABLE (PREFIX_VEX_EC) },
7205 { PREFIX_TABLE (PREFIX_VEX_ED) },
7206 { PREFIX_TABLE (PREFIX_VEX_EE) },
7207 { PREFIX_TABLE (PREFIX_VEX_EF) },
7209 { PREFIX_TABLE (PREFIX_VEX_F0) },
7210 { PREFIX_TABLE (PREFIX_VEX_F1) },
7211 { PREFIX_TABLE (PREFIX_VEX_F2) },
7212 { PREFIX_TABLE (PREFIX_VEX_F3) },
7213 { PREFIX_TABLE (PREFIX_VEX_F4) },
7214 { PREFIX_TABLE (PREFIX_VEX_F5) },
7215 { PREFIX_TABLE (PREFIX_VEX_F6) },
7216 { PREFIX_TABLE (PREFIX_VEX_F7) },
7218 { PREFIX_TABLE (PREFIX_VEX_F8) },
7219 { PREFIX_TABLE (PREFIX_VEX_F9) },
7220 { PREFIX_TABLE (PREFIX_VEX_FA) },
7221 { PREFIX_TABLE (PREFIX_VEX_FB) },
7222 { PREFIX_TABLE (PREFIX_VEX_FC) },
7223 { PREFIX_TABLE (PREFIX_VEX_FD) },
7224 { PREFIX_TABLE (PREFIX_VEX_FE) },
7225 { "(bad)", { XX } },
7230 { PREFIX_TABLE (PREFIX_VEX_3800) },
7231 { PREFIX_TABLE (PREFIX_VEX_3801) },
7232 { PREFIX_TABLE (PREFIX_VEX_3802) },
7233 { PREFIX_TABLE (PREFIX_VEX_3803) },
7234 { PREFIX_TABLE (PREFIX_VEX_3804) },
7235 { PREFIX_TABLE (PREFIX_VEX_3805) },
7236 { PREFIX_TABLE (PREFIX_VEX_3806) },
7237 { PREFIX_TABLE (PREFIX_VEX_3807) },
7239 { PREFIX_TABLE (PREFIX_VEX_3808) },
7240 { PREFIX_TABLE (PREFIX_VEX_3809) },
7241 { PREFIX_TABLE (PREFIX_VEX_380A) },
7242 { PREFIX_TABLE (PREFIX_VEX_380B) },
7243 { PREFIX_TABLE (PREFIX_VEX_380C) },
7244 { PREFIX_TABLE (PREFIX_VEX_380D) },
7245 { PREFIX_TABLE (PREFIX_VEX_380E) },
7246 { PREFIX_TABLE (PREFIX_VEX_380F) },
7248 { "(bad)", { XX } },
7249 { "(bad)", { XX } },
7250 { "(bad)", { XX } },
7251 { "(bad)", { XX } },
7252 { "(bad)", { XX } },
7253 { "(bad)", { XX } },
7254 { "(bad)", { XX } },
7255 { PREFIX_TABLE (PREFIX_VEX_3817) },
7257 { PREFIX_TABLE (PREFIX_VEX_3818) },
7258 { PREFIX_TABLE (PREFIX_VEX_3819) },
7259 { PREFIX_TABLE (PREFIX_VEX_381A) },
7260 { "(bad)", { XX } },
7261 { PREFIX_TABLE (PREFIX_VEX_381C) },
7262 { PREFIX_TABLE (PREFIX_VEX_381D) },
7263 { PREFIX_TABLE (PREFIX_VEX_381E) },
7264 { "(bad)", { XX } },
7266 { PREFIX_TABLE (PREFIX_VEX_3820) },
7267 { PREFIX_TABLE (PREFIX_VEX_3821) },
7268 { PREFIX_TABLE (PREFIX_VEX_3822) },
7269 { PREFIX_TABLE (PREFIX_VEX_3823) },
7270 { PREFIX_TABLE (PREFIX_VEX_3824) },
7271 { PREFIX_TABLE (PREFIX_VEX_3825) },
7272 { "(bad)", { XX } },
7273 { "(bad)", { XX } },
7275 { PREFIX_TABLE (PREFIX_VEX_3828) },
7276 { PREFIX_TABLE (PREFIX_VEX_3829) },
7277 { PREFIX_TABLE (PREFIX_VEX_382A) },
7278 { PREFIX_TABLE (PREFIX_VEX_382B) },
7279 { PREFIX_TABLE (PREFIX_VEX_382C) },
7280 { PREFIX_TABLE (PREFIX_VEX_382D) },
7281 { PREFIX_TABLE (PREFIX_VEX_382E) },
7282 { PREFIX_TABLE (PREFIX_VEX_382F) },
7284 { PREFIX_TABLE (PREFIX_VEX_3830) },
7285 { PREFIX_TABLE (PREFIX_VEX_3831) },
7286 { PREFIX_TABLE (PREFIX_VEX_3832) },
7287 { PREFIX_TABLE (PREFIX_VEX_3833) },
7288 { PREFIX_TABLE (PREFIX_VEX_3834) },
7289 { PREFIX_TABLE (PREFIX_VEX_3835) },
7290 { "(bad)", { XX } },
7291 { PREFIX_TABLE (PREFIX_VEX_3837) },
7293 { PREFIX_TABLE (PREFIX_VEX_3838) },
7294 { PREFIX_TABLE (PREFIX_VEX_3839) },
7295 { PREFIX_TABLE (PREFIX_VEX_383A) },
7296 { PREFIX_TABLE (PREFIX_VEX_383B) },
7297 { PREFIX_TABLE (PREFIX_VEX_383C) },
7298 { PREFIX_TABLE (PREFIX_VEX_383D) },
7299 { PREFIX_TABLE (PREFIX_VEX_383E) },
7300 { PREFIX_TABLE (PREFIX_VEX_383F) },
7302 { PREFIX_TABLE (PREFIX_VEX_3840) },
7303 { PREFIX_TABLE (PREFIX_VEX_3841) },
7304 { "(bad)", { XX } },
7305 { "(bad)", { XX } },
7306 { "(bad)", { XX } },
7307 { "(bad)", { XX } },
7308 { "(bad)", { XX } },
7309 { "(bad)", { XX } },
7311 { "(bad)", { XX } },
7312 { "(bad)", { XX } },
7313 { "(bad)", { XX } },
7314 { "(bad)", { XX } },
7315 { "(bad)", { XX } },
7316 { "(bad)", { XX } },
7317 { "(bad)", { XX } },
7318 { "(bad)", { XX } },
7320 { "(bad)", { XX } },
7321 { "(bad)", { XX } },
7322 { "(bad)", { XX } },
7323 { "(bad)", { XX } },
7324 { "(bad)", { XX } },
7325 { "(bad)", { XX } },
7326 { "(bad)", { XX } },
7327 { "(bad)", { XX } },
7329 { "(bad)", { XX } },
7330 { "(bad)", { XX } },
7331 { "(bad)", { XX } },
7332 { "(bad)", { XX } },
7333 { "(bad)", { XX } },
7334 { "(bad)", { XX } },
7335 { "(bad)", { XX } },
7336 { "(bad)", { XX } },
7338 { "(bad)", { XX } },
7339 { "(bad)", { XX } },
7340 { "(bad)", { XX } },
7341 { "(bad)", { XX } },
7342 { "(bad)", { XX } },
7343 { "(bad)", { XX } },
7344 { "(bad)", { XX } },
7345 { "(bad)", { XX } },
7347 { "(bad)", { XX } },
7348 { "(bad)", { XX } },
7349 { "(bad)", { XX } },
7350 { "(bad)", { XX } },
7351 { "(bad)", { XX } },
7352 { "(bad)", { XX } },
7353 { "(bad)", { XX } },
7354 { "(bad)", { XX } },
7356 { "(bad)", { XX } },
7357 { "(bad)", { XX } },
7358 { "(bad)", { XX } },
7359 { "(bad)", { XX } },
7360 { "(bad)", { XX } },
7361 { "(bad)", { XX } },
7362 { "(bad)", { XX } },
7363 { "(bad)", { XX } },
7365 { "(bad)", { XX } },
7366 { "(bad)", { XX } },
7367 { "(bad)", { XX } },
7368 { "(bad)", { XX } },
7369 { "(bad)", { XX } },
7370 { "(bad)", { XX } },
7371 { "(bad)", { XX } },
7372 { "(bad)", { XX } },
7374 { "(bad)", { XX } },
7375 { "(bad)", { XX } },
7376 { "(bad)", { XX } },
7377 { "(bad)", { XX } },
7378 { "(bad)", { XX } },
7379 { "(bad)", { XX } },
7380 { "(bad)", { XX } },
7381 { "(bad)", { XX } },
7383 { "(bad)", { XX } },
7384 { "(bad)", { XX } },
7385 { "(bad)", { XX } },
7386 { "(bad)", { XX } },
7387 { "(bad)", { XX } },
7388 { "(bad)", { XX } },
7389 { "(bad)", { XX } },
7390 { "(bad)", { XX } },
7392 { "(bad)", { XX } },
7393 { "(bad)", { XX } },
7394 { "(bad)", { XX } },
7395 { "(bad)", { XX } },
7396 { "(bad)", { XX } },
7397 { "(bad)", { XX } },
7398 { "(bad)", { XX } },
7399 { "(bad)", { XX } },
7401 { "(bad)", { XX } },
7402 { "(bad)", { XX } },
7403 { "(bad)", { XX } },
7404 { "(bad)", { XX } },
7405 { "(bad)", { XX } },
7406 { "(bad)", { XX } },
7407 { "(bad)", { XX } },
7408 { "(bad)", { XX } },
7410 { "(bad)", { XX } },
7411 { "(bad)", { XX } },
7412 { "(bad)", { XX } },
7413 { "(bad)", { XX } },
7414 { "(bad)", { XX } },
7415 { "(bad)", { XX } },
7416 { "(bad)", { XX } },
7417 { "(bad)", { XX } },
7419 { "(bad)", { XX } },
7420 { "(bad)", { XX } },
7421 { "(bad)", { XX } },
7422 { "(bad)", { XX } },
7423 { "(bad)", { XX } },
7424 { "(bad)", { XX } },
7425 { "(bad)", { XX } },
7426 { "(bad)", { XX } },
7428 { "(bad)", { XX } },
7429 { "(bad)", { XX } },
7430 { "(bad)", { XX } },
7431 { "(bad)", { XX } },
7432 { "(bad)", { XX } },
7433 { "(bad)", { XX } },
7434 { "(bad)", { XX } },
7435 { "(bad)", { XX } },
7437 { "(bad)", { XX } },
7438 { "(bad)", { XX } },
7439 { "(bad)", { XX } },
7440 { "(bad)", { XX } },
7441 { "(bad)", { XX } },
7442 { "(bad)", { XX } },
7443 { "(bad)", { XX } },
7444 { "(bad)", { XX } },
7446 { "(bad)", { XX } },
7447 { "(bad)", { XX } },
7448 { "(bad)", { XX } },
7449 { "(bad)", { XX } },
7450 { "(bad)", { XX } },
7451 { "(bad)", { XX } },
7452 { "(bad)", { XX } },
7453 { "(bad)", { XX } },
7455 { "(bad)", { XX } },
7456 { "(bad)", { XX } },
7457 { "(bad)", { XX } },
7458 { "(bad)", { XX } },
7459 { "(bad)", { XX } },
7460 { "(bad)", { XX } },
7461 { "(bad)", { XX } },
7462 { "(bad)", { XX } },
7464 { "(bad)", { XX } },
7465 { "(bad)", { XX } },
7466 { "(bad)", { XX } },
7467 { "(bad)", { XX } },
7468 { "(bad)", { XX } },
7469 { "(bad)", { XX } },
7470 { "(bad)", { XX } },
7471 { "(bad)", { XX } },
7473 { "(bad)", { XX } },
7474 { "(bad)", { XX } },
7475 { "(bad)", { XX } },
7476 { PREFIX_TABLE (PREFIX_VEX_38DB) },
7477 { PREFIX_TABLE (PREFIX_VEX_38DC) },
7478 { PREFIX_TABLE (PREFIX_VEX_38DD) },
7479 { PREFIX_TABLE (PREFIX_VEX_38DE) },
7480 { PREFIX_TABLE (PREFIX_VEX_38DF) },
7482 { "(bad)", { XX } },
7483 { "(bad)", { XX } },
7484 { "(bad)", { XX } },
7485 { "(bad)", { XX } },
7486 { "(bad)", { XX } },
7487 { "(bad)", { XX } },
7488 { "(bad)", { XX } },
7489 { "(bad)", { XX } },
7491 { "(bad)", { XX } },
7492 { "(bad)", { XX } },
7493 { "(bad)", { XX } },
7494 { "(bad)", { XX } },
7495 { "(bad)", { XX } },
7496 { "(bad)", { XX } },
7497 { "(bad)", { XX } },
7498 { "(bad)", { XX } },
7500 { "(bad)", { XX } },
7501 { "(bad)", { XX } },
7502 { "(bad)", { XX } },
7503 { "(bad)", { XX } },
7504 { "(bad)", { XX } },
7505 { "(bad)", { XX } },
7506 { "(bad)", { XX } },
7507 { "(bad)", { XX } },
7509 { "(bad)", { XX } },
7510 { "(bad)", { XX } },
7511 { "(bad)", { XX } },
7512 { "(bad)", { XX } },
7513 { "(bad)", { XX } },
7514 { "(bad)", { XX } },
7515 { "(bad)", { XX } },
7516 { "(bad)", { XX } },
7521 { "(bad)", { XX } },
7522 { "(bad)", { XX } },
7523 { "(bad)", { XX } },
7524 { "(bad)", { XX } },
7525 { PREFIX_TABLE (PREFIX_VEX_3A04) },
7526 { PREFIX_TABLE (PREFIX_VEX_3A05) },
7527 { PREFIX_TABLE (PREFIX_VEX_3A06) },
7528 { "(bad)", { XX } },
7530 { PREFIX_TABLE (PREFIX_VEX_3A08) },
7531 { PREFIX_TABLE (PREFIX_VEX_3A09) },
7532 { PREFIX_TABLE (PREFIX_VEX_3A0A) },
7533 { PREFIX_TABLE (PREFIX_VEX_3A0B) },
7534 { PREFIX_TABLE (PREFIX_VEX_3A0C) },
7535 { PREFIX_TABLE (PREFIX_VEX_3A0D) },
7536 { PREFIX_TABLE (PREFIX_VEX_3A0E) },
7537 { PREFIX_TABLE (PREFIX_VEX_3A0F) },
7539 { "(bad)", { XX } },
7540 { "(bad)", { XX } },
7541 { "(bad)", { XX } },
7542 { "(bad)", { XX } },
7543 { PREFIX_TABLE (PREFIX_VEX_3A14) },
7544 { PREFIX_TABLE (PREFIX_VEX_3A15) },
7545 { PREFIX_TABLE (PREFIX_VEX_3A16) },
7546 { PREFIX_TABLE (PREFIX_VEX_3A17) },
7548 { PREFIX_TABLE (PREFIX_VEX_3A18) },
7549 { PREFIX_TABLE (PREFIX_VEX_3A19) },
7550 { "(bad)", { XX } },
7551 { "(bad)", { XX } },
7552 { "(bad)", { XX } },
7553 { "(bad)", { XX } },
7554 { "(bad)", { XX } },
7555 { "(bad)", { XX } },
7557 { PREFIX_TABLE (PREFIX_VEX_3A20) },
7558 { PREFIX_TABLE (PREFIX_VEX_3A21) },
7559 { PREFIX_TABLE (PREFIX_VEX_3A22) },
7560 { "(bad)", { XX } },
7561 { "(bad)", { XX } },
7562 { "(bad)", { XX } },
7563 { "(bad)", { XX } },
7564 { "(bad)", { XX } },
7566 { "(bad)", { XX } },
7567 { "(bad)", { XX } },
7568 { "(bad)", { XX } },
7569 { "(bad)", { XX } },
7570 { "(bad)", { XX } },
7571 { "(bad)", { XX } },
7572 { "(bad)", { XX } },
7573 { "(bad)", { XX } },
7575 { "(bad)", { XX } },
7576 { "(bad)", { XX } },
7577 { "(bad)", { XX } },
7578 { "(bad)", { XX } },
7579 { "(bad)", { XX } },
7580 { "(bad)", { XX } },
7581 { "(bad)", { XX } },
7582 { "(bad)", { XX } },
7584 { "(bad)", { XX } },
7585 { "(bad)", { XX } },
7586 { "(bad)", { XX } },
7587 { "(bad)", { XX } },
7588 { "(bad)", { XX } },
7589 { "(bad)", { XX } },
7590 { "(bad)", { XX } },
7591 { "(bad)", { XX } },
7593 { PREFIX_TABLE (PREFIX_VEX_3A40) },
7594 { PREFIX_TABLE (PREFIX_VEX_3A41) },
7595 { PREFIX_TABLE (PREFIX_VEX_3A42) },
7596 { "(bad)", { XX } },
7597 { "(bad)", { XX } },
7598 { "(bad)", { XX } },
7599 { "(bad)", { XX } },
7600 { "(bad)", { XX } },
7602 { PREFIX_TABLE (PREFIX_VEX_3A48) },
7603 { PREFIX_TABLE (PREFIX_VEX_3A49) },
7604 { PREFIX_TABLE (PREFIX_VEX_3A4A) },
7605 { PREFIX_TABLE (PREFIX_VEX_3A4B) },
7606 { PREFIX_TABLE (PREFIX_VEX_3A4C) },
7607 { "(bad)", { XX } },
7608 { "(bad)", { XX } },
7609 { "(bad)", { XX } },
7611 { "(bad)", { XX } },
7612 { "(bad)", { XX } },
7613 { "(bad)", { XX } },
7614 { "(bad)", { XX } },
7615 { "(bad)", { XX } },
7616 { "(bad)", { XX } },
7617 { "(bad)", { XX } },
7618 { "(bad)", { XX } },
7620 { "(bad)", { XX } },
7621 { "(bad)", { XX } },
7622 { "(bad)", { XX } },
7623 { "(bad)", { XX } },
7624 { PREFIX_TABLE (PREFIX_VEX_3A5C) },
7625 { PREFIX_TABLE (PREFIX_VEX_3A5D) },
7626 { PREFIX_TABLE (PREFIX_VEX_3A5E) },
7627 { PREFIX_TABLE (PREFIX_VEX_3A5F) },
7629 { PREFIX_TABLE (PREFIX_VEX_3A60) },
7630 { PREFIX_TABLE (PREFIX_VEX_3A61) },
7631 { PREFIX_TABLE (PREFIX_VEX_3A62) },
7632 { PREFIX_TABLE (PREFIX_VEX_3A63) },
7633 { "(bad)", { XX } },
7634 { "(bad)", { XX } },
7635 { "(bad)", { XX } },
7636 { "(bad)", { XX } },
7638 { PREFIX_TABLE (PREFIX_VEX_3A68) },
7639 { PREFIX_TABLE (PREFIX_VEX_3A69) },
7640 { PREFIX_TABLE (PREFIX_VEX_3A6A) },
7641 { PREFIX_TABLE (PREFIX_VEX_3A6B) },
7642 { PREFIX_TABLE (PREFIX_VEX_3A6C) },
7643 { PREFIX_TABLE (PREFIX_VEX_3A6D) },
7644 { PREFIX_TABLE (PREFIX_VEX_3A6E) },
7645 { PREFIX_TABLE (PREFIX_VEX_3A6F) },
7647 { "(bad)", { XX } },
7648 { "(bad)", { XX } },
7649 { "(bad)", { XX } },
7650 { "(bad)", { XX } },
7651 { "(bad)", { XX } },
7652 { "(bad)", { XX } },
7653 { "(bad)", { XX } },
7654 { "(bad)", { XX } },
7656 { PREFIX_TABLE (PREFIX_VEX_3A78) },
7657 { PREFIX_TABLE (PREFIX_VEX_3A79) },
7658 { PREFIX_TABLE (PREFIX_VEX_3A7A) },
7659 { PREFIX_TABLE (PREFIX_VEX_3A7B) },
7660 { PREFIX_TABLE (PREFIX_VEX_3A7C) },
7661 { PREFIX_TABLE (PREFIX_VEX_3A7D) },
7662 { PREFIX_TABLE (PREFIX_VEX_3A7E) },
7663 { PREFIX_TABLE (PREFIX_VEX_3A7F) },
7665 { "(bad)", { XX } },
7666 { "(bad)", { XX } },
7667 { "(bad)", { XX } },
7668 { "(bad)", { XX } },
7669 { "(bad)", { XX } },
7670 { "(bad)", { XX } },
7671 { "(bad)", { XX } },
7672 { "(bad)", { XX } },
7674 { "(bad)", { XX } },
7675 { "(bad)", { XX } },
7676 { "(bad)", { XX } },
7677 { "(bad)", { XX } },
7678 { "(bad)", { XX } },
7679 { "(bad)", { XX } },
7680 { "(bad)", { XX } },
7681 { "(bad)", { XX } },
7683 { "(bad)", { XX } },
7684 { "(bad)", { XX } },
7685 { "(bad)", { XX } },
7686 { "(bad)", { XX } },
7687 { "(bad)", { XX } },
7688 { "(bad)", { XX } },
7689 { "(bad)", { XX } },
7690 { "(bad)", { XX } },
7692 { "(bad)", { XX } },
7693 { "(bad)", { XX } },
7694 { "(bad)", { XX } },
7695 { "(bad)", { XX } },
7696 { "(bad)", { XX } },
7697 { "(bad)", { XX } },
7698 { "(bad)", { XX } },
7699 { "(bad)", { XX } },
7701 { "(bad)", { XX } },
7702 { "(bad)", { XX } },
7703 { "(bad)", { XX } },
7704 { "(bad)", { XX } },
7705 { "(bad)", { XX } },
7706 { "(bad)", { XX } },
7707 { "(bad)", { XX } },
7708 { "(bad)", { XX } },
7710 { "(bad)", { XX } },
7711 { "(bad)", { XX } },
7712 { "(bad)", { XX } },
7713 { "(bad)", { XX } },
7714 { "(bad)", { XX } },
7715 { "(bad)", { XX } },
7716 { "(bad)", { XX } },
7717 { "(bad)", { XX } },
7719 { "(bad)", { XX } },
7720 { "(bad)", { XX } },
7721 { "(bad)", { XX } },
7722 { "(bad)", { XX } },
7723 { "(bad)", { XX } },
7724 { "(bad)", { XX } },
7725 { "(bad)", { XX } },
7726 { "(bad)", { XX } },
7728 { "(bad)", { XX } },
7729 { "(bad)", { XX } },
7730 { "(bad)", { XX } },
7731 { "(bad)", { XX } },
7732 { "(bad)", { XX } },
7733 { "(bad)", { XX } },
7734 { "(bad)", { XX } },
7735 { "(bad)", { XX } },
7737 { "(bad)", { XX } },
7738 { "(bad)", { XX } },
7739 { "(bad)", { XX } },
7740 { "(bad)", { XX } },
7741 { "(bad)", { XX } },
7742 { "(bad)", { XX } },
7743 { "(bad)", { XX } },
7744 { "(bad)", { XX } },
7746 { "(bad)", { XX } },
7747 { "(bad)", { XX } },
7748 { "(bad)", { XX } },
7749 { "(bad)", { XX } },
7750 { "(bad)", { XX } },
7751 { "(bad)", { XX } },
7752 { "(bad)", { XX } },
7753 { "(bad)", { XX } },
7755 { "(bad)", { XX } },
7756 { "(bad)", { XX } },
7757 { "(bad)", { XX } },
7758 { "(bad)", { XX } },
7759 { "(bad)", { XX } },
7760 { "(bad)", { XX } },
7761 { "(bad)", { XX } },
7762 { "(bad)", { XX } },
7764 { "(bad)", { XX } },
7765 { "(bad)", { XX } },
7766 { "(bad)", { XX } },
7767 { "(bad)", { XX } },
7768 { "(bad)", { XX } },
7769 { "(bad)", { XX } },
7770 { "(bad)", { XX } },
7771 { PREFIX_TABLE (PREFIX_VEX_3ADF) },
7773 { "(bad)", { XX } },
7774 { "(bad)", { XX } },
7775 { "(bad)", { XX } },
7776 { "(bad)", { XX } },
7777 { "(bad)", { XX } },
7778 { "(bad)", { XX } },
7779 { "(bad)", { XX } },
7780 { "(bad)", { XX } },
7782 { "(bad)", { XX } },
7783 { "(bad)", { XX } },
7784 { "(bad)", { XX } },
7785 { "(bad)", { XX } },
7786 { "(bad)", { XX } },
7787 { "(bad)", { XX } },
7788 { "(bad)", { XX } },
7789 { "(bad)", { XX } },
7791 { "(bad)", { XX } },
7792 { "(bad)", { XX } },
7793 { "(bad)", { XX } },
7794 { "(bad)", { XX } },
7795 { "(bad)", { XX } },
7796 { "(bad)", { XX } },
7797 { "(bad)", { XX } },
7798 { "(bad)", { XX } },
7800 { "(bad)", { XX } },
7801 { "(bad)", { XX } },
7802 { "(bad)", { XX } },
7803 { "(bad)", { XX } },
7804 { "(bad)", { XX } },
7805 { "(bad)", { XX } },
7806 { "(bad)", { XX } },
7807 { "(bad)", { XX } },
7811 static const struct dis386 vex_len_table[][2] = {
7812 /* VEX_LEN_10_P_1 */
7814 { "vmovss", { XMVex, Vex128, EXd } },
7815 { "(bad)", { XX } },
7818 /* VEX_LEN_10_P_3 */
7820 { "vmovsd", { XMVex, Vex128, EXq } },
7821 { "(bad)", { XX } },
7824 /* VEX_LEN_11_P_1 */
7826 { "vmovss", { EXdVex, Vex128, XM } },
7827 { "(bad)", { XX } },
7830 /* VEX_LEN_11_P_3 */
7832 { "vmovsd", { EXqVex, Vex128, XM } },
7833 { "(bad)", { XX } },
7836 /* VEX_LEN_12_P_0_M_0 */
7838 { "vmovlps", { XM, Vex128, EXq } },
7839 { "(bad)", { XX } },
7842 /* VEX_LEN_12_P_0_M_1 */
7844 { "vmovhlps", { XM, Vex128, EXq } },
7845 { "(bad)", { XX } },
7848 /* VEX_LEN_12_P_2 */
7850 { "vmovlpd", { XM, Vex128, EXq } },
7851 { "(bad)", { XX } },
7854 /* VEX_LEN_13_M_0 */
7856 { "vmovlpX", { EXq, XM } },
7857 { "(bad)", { XX } },
7860 /* VEX_LEN_16_P_0_M_0 */
7862 { "vmovhps", { XM, Vex128, EXq } },
7863 { "(bad)", { XX } },
7866 /* VEX_LEN_16_P_0_M_1 */
7868 { "vmovlhps", { XM, Vex128, EXq } },
7869 { "(bad)", { XX } },
7872 /* VEX_LEN_16_P_2 */
7874 { "vmovhpd", { XM, Vex128, EXq } },
7875 { "(bad)", { XX } },
7878 /* VEX_LEN_17_M_0 */
7880 { "vmovhpX", { EXq, XM } },
7881 { "(bad)", { XX } },
7884 /* VEX_LEN_2A_P_1 */
7886 { "vcvtsi2ss%LQ", { XM, Vex128, Ev } },
7887 { "(bad)", { XX } },
7890 /* VEX_LEN_2A_P_3 */
7892 { "vcvtsi2sd%LQ", { XM, Vex128, Ev } },
7893 { "(bad)", { XX } },
7896 /* VEX_LEN_2B_M_0 */
7898 { "vmovntpX", { Mx, XM } },
7899 { "(bad)", { XX } },
7902 /* VEX_LEN_2C_P_1 */
7904 { "vcvttss2siY", { Gv, EXd } },
7905 { "(bad)", { XX } },
7908 /* VEX_LEN_2C_P_3 */
7910 { "vcvttsd2siY", { Gv, EXq } },
7911 { "(bad)", { XX } },
7914 /* VEX_LEN_2D_P_1 */
7916 { "vcvtss2siY", { Gv, EXd } },
7917 { "(bad)", { XX } },
7920 /* VEX_LEN_2D_P_3 */
7922 { "vcvtsd2siY", { Gv, EXq } },
7923 { "(bad)", { XX } },
7926 /* VEX_LEN_2E_P_0 */
7928 { "vucomiss", { XM, EXd } },
7929 { "(bad)", { XX } },
7932 /* VEX_LEN_2E_P_2 */
7934 { "vucomisd", { XM, EXq } },
7935 { "(bad)", { XX } },
7938 /* VEX_LEN_2F_P_0 */
7940 { "vcomiss", { XM, EXd } },
7941 { "(bad)", { XX } },
7944 /* VEX_LEN_2F_P_2 */
7946 { "vcomisd", { XM, EXq } },
7947 { "(bad)", { XX } },
7950 /* VEX_LEN_51_P_1 */
7952 { "vsqrtss", { XM, Vex128, EXd } },
7953 { "(bad)", { XX } },
7956 /* VEX_LEN_51_P_3 */
7958 { "vsqrtsd", { XM, Vex128, EXq } },
7959 { "(bad)", { XX } },
7962 /* VEX_LEN_52_P_1 */
7964 { "vrsqrtss", { XM, Vex128, EXd } },
7965 { "(bad)", { XX } },
7968 /* VEX_LEN_53_P_1 */
7970 { "vrcpss", { XM, Vex128, EXd } },
7971 { "(bad)", { XX } },
7974 /* VEX_LEN_58_P_1 */
7976 { "vaddss", { XM, Vex128, EXd } },
7977 { "(bad)", { XX } },
7980 /* VEX_LEN_58_P_3 */
7982 { "vaddsd", { XM, Vex128, EXq } },
7983 { "(bad)", { XX } },
7986 /* VEX_LEN_59_P_1 */
7988 { "vmulss", { XM, Vex128, EXd } },
7989 { "(bad)", { XX } },
7992 /* VEX_LEN_59_P_3 */
7994 { "vmulsd", { XM, Vex128, EXq } },
7995 { "(bad)", { XX } },
7998 /* VEX_LEN_5A_P_1 */
8000 { "vcvtss2sd", { XM, Vex128, EXd } },
8001 { "(bad)", { XX } },
8004 /* VEX_LEN_5A_P_3 */
8006 { "vcvtsd2ss", { XM, Vex128, EXq } },
8007 { "(bad)", { XX } },
8010 /* VEX_LEN_5C_P_1 */
8012 { "vsubss", { XM, Vex128, EXd } },
8013 { "(bad)", { XX } },
8016 /* VEX_LEN_5C_P_3 */
8018 { "vsubsd", { XM, Vex128, EXq } },
8019 { "(bad)", { XX } },
8022 /* VEX_LEN_5D_P_1 */
8024 { "vminss", { XM, Vex128, EXd } },
8025 { "(bad)", { XX } },
8028 /* VEX_LEN_5D_P_3 */
8030 { "vminsd", { XM, Vex128, EXq } },
8031 { "(bad)", { XX } },
8034 /* VEX_LEN_5E_P_1 */
8036 { "vdivss", { XM, Vex128, EXd } },
8037 { "(bad)", { XX } },
8040 /* VEX_LEN_5E_P_3 */
8042 { "vdivsd", { XM, Vex128, EXq } },
8043 { "(bad)", { XX } },
8046 /* VEX_LEN_5F_P_1 */
8048 { "vmaxss", { XM, Vex128, EXd } },
8049 { "(bad)", { XX } },
8052 /* VEX_LEN_5F_P_3 */
8054 { "vmaxsd", { XM, Vex128, EXq } },
8055 { "(bad)", { XX } },
8058 /* VEX_LEN_60_P_2 */
8060 { "vpunpcklbw", { XM, Vex128, EXx } },
8061 { "(bad)", { XX } },
8064 /* VEX_LEN_61_P_2 */
8066 { "vpunpcklwd", { XM, Vex128, EXx } },
8067 { "(bad)", { XX } },
8070 /* VEX_LEN_62_P_2 */
8072 { "vpunpckldq", { XM, Vex128, EXx } },
8073 { "(bad)", { XX } },
8076 /* VEX_LEN_63_P_2 */
8078 { "vpacksswb", { XM, Vex128, EXx } },
8079 { "(bad)", { XX } },
8082 /* VEX_LEN_64_P_2 */
8084 { "vpcmpgtb", { XM, Vex128, EXx } },
8085 { "(bad)", { XX } },
8088 /* VEX_LEN_65_P_2 */
8090 { "vpcmpgtw", { XM, Vex128, EXx } },
8091 { "(bad)", { XX } },
8094 /* VEX_LEN_66_P_2 */
8096 { "vpcmpgtd", { XM, Vex128, EXx } },
8097 { "(bad)", { XX } },
8100 /* VEX_LEN_67_P_2 */
8102 { "vpackuswb", { XM, Vex128, EXx } },
8103 { "(bad)", { XX } },
8106 /* VEX_LEN_68_P_2 */
8108 { "vpunpckhbw", { XM, Vex128, EXx } },
8109 { "(bad)", { XX } },
8112 /* VEX_LEN_69_P_2 */
8114 { "vpunpckhwd", { XM, Vex128, EXx } },
8115 { "(bad)", { XX } },
8118 /* VEX_LEN_6A_P_2 */
8120 { "vpunpckhdq", { XM, Vex128, EXx } },
8121 { "(bad)", { XX } },
8124 /* VEX_LEN_6B_P_2 */
8126 { "vpackssdw", { XM, Vex128, EXx } },
8127 { "(bad)", { XX } },
8130 /* VEX_LEN_6C_P_2 */
8132 { "vpunpcklqdq", { XM, Vex128, EXx } },
8133 { "(bad)", { XX } },
8136 /* VEX_LEN_6D_P_2 */
8138 { "vpunpckhqdq", { XM, Vex128, EXx } },
8139 { "(bad)", { XX } },
8142 /* VEX_LEN_6E_P_2 */
8144 { "vmovK", { XM, Edq } },
8145 { "(bad)", { XX } },
8148 /* VEX_LEN_70_P_1 */
8150 { "vpshufhw", { XM, EXx, Ib } },
8151 { "(bad)", { XX } },
8154 /* VEX_LEN_70_P_2 */
8156 { "vpshufd", { XM, EXx, Ib } },
8157 { "(bad)", { XX } },
8160 /* VEX_LEN_70_P_3 */
8162 { "vpshuflw", { XM, EXx, Ib } },
8163 { "(bad)", { XX } },
8166 /* VEX_LEN_71_R_2_P_2 */
8168 { "vpsrlw", { Vex128, XS, Ib } },
8169 { "(bad)", { XX } },
8172 /* VEX_LEN_71_R_4_P_2 */
8174 { "vpsraw", { Vex128, XS, Ib } },
8175 { "(bad)", { XX } },
8178 /* VEX_LEN_71_R_6_P_2 */
8180 { "vpsllw", { Vex128, XS, Ib } },
8181 { "(bad)", { XX } },
8184 /* VEX_LEN_72_R_2_P_2 */
8186 { "vpsrld", { Vex128, XS, Ib } },
8187 { "(bad)", { XX } },
8190 /* VEX_LEN_72_R_4_P_2 */
8192 { "vpsrad", { Vex128, XS, Ib } },
8193 { "(bad)", { XX } },
8196 /* VEX_LEN_72_R_6_P_2 */
8198 { "vpslld", { Vex128, XS, Ib } },
8199 { "(bad)", { XX } },
8202 /* VEX_LEN_73_R_2_P_2 */
8204 { "vpsrlq", { Vex128, XS, Ib } },
8205 { "(bad)", { XX } },
8208 /* VEX_LEN_73_R_3_P_2 */
8210 { "vpsrldq", { Vex128, XS, Ib } },
8211 { "(bad)", { XX } },
8214 /* VEX_LEN_73_R_6_P_2 */
8216 { "vpsllq", { Vex128, XS, Ib } },
8217 { "(bad)", { XX } },
8220 /* VEX_LEN_73_R_7_P_2 */
8222 { "vpslldq", { Vex128, XS, Ib } },
8223 { "(bad)", { XX } },
8226 /* VEX_LEN_74_P_2 */
8228 { "vpcmpeqb", { XM, Vex128, EXx } },
8229 { "(bad)", { XX } },
8232 /* VEX_LEN_75_P_2 */
8234 { "vpcmpeqw", { XM, Vex128, EXx } },
8235 { "(bad)", { XX } },
8238 /* VEX_LEN_76_P_2 */
8240 { "vpcmpeqd", { XM, Vex128, EXx } },
8241 { "(bad)", { XX } },
8244 /* VEX_LEN_7E_P_1 */
8246 { "vmovq", { XM, EXq } },
8247 { "(bad)", { XX } },
8250 /* VEX_LEN_7E_P_2 */
8252 { "vmovK", { Edq, XM } },
8253 { "(bad)", { XX } },
8256 /* VEX_LEN_AE_R_2_M0 */
8258 { "vldmxcsr", { Md } },
8259 { "(bad)", { XX } },
8262 /* VEX_LEN_AE_R_3_M0 */
8264 { "vstmxcsr", { Md } },
8265 { "(bad)", { XX } },
8268 /* VEX_LEN_C2_P_1 */
8270 { "vcmpss", { XM, Vex128, EXd, VCMP } },
8271 { "(bad)", { XX } },
8274 /* VEX_LEN_C2_P_3 */
8276 { "vcmpsd", { XM, Vex128, EXq, VCMP } },
8277 { "(bad)", { XX } },
8280 /* VEX_LEN_C4_P_2 */
8282 { "vpinsrw", { XM, Vex128, Edqw, Ib } },
8283 { "(bad)", { XX } },
8286 /* VEX_LEN_C5_P_2 */
8288 { "vpextrw", { Gdq, XS, Ib } },
8289 { "(bad)", { XX } },
8292 /* VEX_LEN_D1_P_2 */
8294 { "vpsrlw", { XM, Vex128, EXx } },
8295 { "(bad)", { XX } },
8298 /* VEX_LEN_D2_P_2 */
8300 { "vpsrld", { XM, Vex128, EXx } },
8301 { "(bad)", { XX } },
8304 /* VEX_LEN_D3_P_2 */
8306 { "vpsrlq", { XM, Vex128, EXx } },
8307 { "(bad)", { XX } },
8310 /* VEX_LEN_D4_P_2 */
8312 { "vpaddq", { XM, Vex128, EXx } },
8313 { "(bad)", { XX } },
8316 /* VEX_LEN_D5_P_2 */
8318 { "vpmullw", { XM, Vex128, EXx } },
8319 { "(bad)", { XX } },
8322 /* VEX_LEN_D6_P_2 */
8324 { "vmovq", { EXq, XM } },
8325 { "(bad)", { XX } },
8328 /* VEX_LEN_D7_P_2_M_1 */
8330 { "vpmovmskb", { Gdq, XS } },
8331 { "(bad)", { XX } },
8334 /* VEX_LEN_D8_P_2 */
8336 { "vpsubusb", { XM, Vex128, EXx } },
8337 { "(bad)", { XX } },
8340 /* VEX_LEN_D9_P_2 */
8342 { "vpsubusw", { XM, Vex128, EXx } },
8343 { "(bad)", { XX } },
8346 /* VEX_LEN_DA_P_2 */
8348 { "vpminub", { XM, Vex128, EXx } },
8349 { "(bad)", { XX } },
8352 /* VEX_LEN_DB_P_2 */
8354 { "vpand", { XM, Vex128, EXx } },
8355 { "(bad)", { XX } },
8358 /* VEX_LEN_DC_P_2 */
8360 { "vpaddusb", { XM, Vex128, EXx } },
8361 { "(bad)", { XX } },
8364 /* VEX_LEN_DD_P_2 */
8366 { "vpaddusw", { XM, Vex128, EXx } },
8367 { "(bad)", { XX } },
8370 /* VEX_LEN_DE_P_2 */
8372 { "vpmaxub", { XM, Vex128, EXx } },
8373 { "(bad)", { XX } },
8376 /* VEX_LEN_DF_P_2 */
8378 { "vpandn", { XM, Vex128, EXx } },
8379 { "(bad)", { XX } },
8382 /* VEX_LEN_E0_P_2 */
8384 { "vpavgb", { XM, Vex128, EXx } },
8385 { "(bad)", { XX } },
8388 /* VEX_LEN_E1_P_2 */
8390 { "vpsraw", { XM, Vex128, EXx } },
8391 { "(bad)", { XX } },
8394 /* VEX_LEN_E2_P_2 */
8396 { "vpsrad", { XM, Vex128, EXx } },
8397 { "(bad)", { XX } },
8400 /* VEX_LEN_E3_P_2 */
8402 { "vpavgw", { XM, Vex128, EXx } },
8403 { "(bad)", { XX } },
8406 /* VEX_LEN_E4_P_2 */
8408 { "vpmulhuw", { XM, Vex128, EXx } },
8409 { "(bad)", { XX } },
8412 /* VEX_LEN_E5_P_2 */
8414 { "vpmulhw", { XM, Vex128, EXx } },
8415 { "(bad)", { XX } },
8418 /* VEX_LEN_E7_P_2_M_0 */
8420 { "vmovntdq", { Mx, XM } },
8421 { "(bad)", { XX } },
8424 /* VEX_LEN_E8_P_2 */
8426 { "vpsubsb", { XM, Vex128, EXx } },
8427 { "(bad)", { XX } },
8430 /* VEX_LEN_E9_P_2 */
8432 { "vpsubsw", { XM, Vex128, EXx } },
8433 { "(bad)", { XX } },
8436 /* VEX_LEN_EA_P_2 */
8438 { "vpminsw", { XM, Vex128, EXx } },
8439 { "(bad)", { XX } },
8442 /* VEX_LEN_EB_P_2 */
8444 { "vpor", { XM, Vex128, EXx } },
8445 { "(bad)", { XX } },
8448 /* VEX_LEN_EC_P_2 */
8450 { "vpaddsb", { XM, Vex128, EXx } },
8451 { "(bad)", { XX } },
8454 /* VEX_LEN_ED_P_2 */
8456 { "vpaddsw", { XM, Vex128, EXx } },
8457 { "(bad)", { XX } },
8460 /* VEX_LEN_EE_P_2 */
8462 { "vpmaxsw", { XM, Vex128, EXx } },
8463 { "(bad)", { XX } },
8466 /* VEX_LEN_EF_P_2 */
8468 { "vpxor", { XM, Vex128, EXx } },
8469 { "(bad)", { XX } },
8472 /* VEX_LEN_F1_P_2 */
8474 { "vpsllw", { XM, Vex128, EXx } },
8475 { "(bad)", { XX } },
8478 /* VEX_LEN_F2_P_2 */
8480 { "vpslld", { XM, Vex128, EXx } },
8481 { "(bad)", { XX } },
8484 /* VEX_LEN_F3_P_2 */
8486 { "vpsllq", { XM, Vex128, EXx } },
8487 { "(bad)", { XX } },
8490 /* VEX_LEN_F4_P_2 */
8492 { "vpmuludq", { XM, Vex128, EXx } },
8493 { "(bad)", { XX } },
8496 /* VEX_LEN_F5_P_2 */
8498 { "vpmaddwd", { XM, Vex128, EXx } },
8499 { "(bad)", { XX } },
8502 /* VEX_LEN_F6_P_2 */
8504 { "vpsadbw", { XM, Vex128, EXx } },
8505 { "(bad)", { XX } },
8508 /* VEX_LEN_F7_P_2 */
8510 { "vmaskmovdqu", { XM, XS } },
8511 { "(bad)", { XX } },
8514 /* VEX_LEN_F8_P_2 */
8516 { "vpsubb", { XM, Vex128, EXx } },
8517 { "(bad)", { XX } },
8520 /* VEX_LEN_F9_P_2 */
8522 { "vpsubw", { XM, Vex128, EXx } },
8523 { "(bad)", { XX } },
8526 /* VEX_LEN_FA_P_2 */
8528 { "vpsubd", { XM, Vex128, EXx } },
8529 { "(bad)", { XX } },
8532 /* VEX_LEN_FB_P_2 */
8534 { "vpsubq", { XM, Vex128, EXx } },
8535 { "(bad)", { XX } },
8538 /* VEX_LEN_FC_P_2 */
8540 { "vpaddb", { XM, Vex128, EXx } },
8541 { "(bad)", { XX } },
8544 /* VEX_LEN_FD_P_2 */
8546 { "vpaddw", { XM, Vex128, EXx } },
8547 { "(bad)", { XX } },
8550 /* VEX_LEN_FE_P_2 */
8552 { "vpaddd", { XM, Vex128, EXx } },
8553 { "(bad)", { XX } },
8556 /* VEX_LEN_3800_P_2 */
8558 { "vpshufb", { XM, Vex128, EXx } },
8559 { "(bad)", { XX } },
8562 /* VEX_LEN_3801_P_2 */
8564 { "vphaddw", { XM, Vex128, EXx } },
8565 { "(bad)", { XX } },
8568 /* VEX_LEN_3802_P_2 */
8570 { "vphaddd", { XM, Vex128, EXx } },
8571 { "(bad)", { XX } },
8574 /* VEX_LEN_3803_P_2 */
8576 { "vphaddsw", { XM, Vex128, EXx } },
8577 { "(bad)", { XX } },
8580 /* VEX_LEN_3804_P_2 */
8582 { "vpmaddubsw", { XM, Vex128, EXx } },
8583 { "(bad)", { XX } },
8586 /* VEX_LEN_3805_P_2 */
8588 { "vphsubw", { XM, Vex128, EXx } },
8589 { "(bad)", { XX } },
8592 /* VEX_LEN_3806_P_2 */
8594 { "vphsubd", { XM, Vex128, EXx } },
8595 { "(bad)", { XX } },
8598 /* VEX_LEN_3807_P_2 */
8600 { "vphsubsw", { XM, Vex128, EXx } },
8601 { "(bad)", { XX } },
8604 /* VEX_LEN_3808_P_2 */
8606 { "vpsignb", { XM, Vex128, EXx } },
8607 { "(bad)", { XX } },
8610 /* VEX_LEN_3809_P_2 */
8612 { "vpsignw", { XM, Vex128, EXx } },
8613 { "(bad)", { XX } },
8616 /* VEX_LEN_380A_P_2 */
8618 { "vpsignd", { XM, Vex128, EXx } },
8619 { "(bad)", { XX } },
8622 /* VEX_LEN_380B_P_2 */
8624 { "vpmulhrsw", { XM, Vex128, EXx } },
8625 { "(bad)", { XX } },
8628 /* VEX_LEN_3819_P_2_M_0 */
8630 { "(bad)", { XX } },
8631 { "vbroadcastsd", { XM, Mq } },
8634 /* VEX_LEN_381A_P_2_M_0 */
8636 { "(bad)", { XX } },
8637 { "vbroadcastf128", { XM, Mxmm } },
8640 /* VEX_LEN_381C_P_2 */
8642 { "vpabsb", { XM, EXx } },
8643 { "(bad)", { XX } },
8646 /* VEX_LEN_381D_P_2 */
8648 { "vpabsw", { XM, EXx } },
8649 { "(bad)", { XX } },
8652 /* VEX_LEN_381E_P_2 */
8654 { "vpabsd", { XM, EXx } },
8655 { "(bad)", { XX } },
8658 /* VEX_LEN_3820_P_2 */
8660 { "vpmovsxbw", { XM, EXq } },
8661 { "(bad)", { XX } },
8664 /* VEX_LEN_3821_P_2 */
8666 { "vpmovsxbd", { XM, EXd } },
8667 { "(bad)", { XX } },
8670 /* VEX_LEN_3822_P_2 */
8672 { "vpmovsxbq", { XM, EXw } },
8673 { "(bad)", { XX } },
8676 /* VEX_LEN_3823_P_2 */
8678 { "vpmovsxwd", { XM, EXq } },
8679 { "(bad)", { XX } },
8682 /* VEX_LEN_3824_P_2 */
8684 { "vpmovsxwq", { XM, EXd } },
8685 { "(bad)", { XX } },
8688 /* VEX_LEN_3825_P_2 */
8690 { "vpmovsxdq", { XM, EXq } },
8691 { "(bad)", { XX } },
8694 /* VEX_LEN_3828_P_2 */
8696 { "vpmuldq", { XM, Vex128, EXx } },
8697 { "(bad)", { XX } },
8700 /* VEX_LEN_3829_P_2 */
8702 { "vpcmpeqq", { XM, Vex128, EXx } },
8703 { "(bad)", { XX } },
8706 /* VEX_LEN_382A_P_2_M_0 */
8708 { "vmovntdqa", { XM, Mx } },
8709 { "(bad)", { XX } },
8712 /* VEX_LEN_382B_P_2 */
8714 { "vpackusdw", { XM, Vex128, EXx } },
8715 { "(bad)", { XX } },
8718 /* VEX_LEN_3830_P_2 */
8720 { "vpmovzxbw", { XM, EXq } },
8721 { "(bad)", { XX } },
8724 /* VEX_LEN_3831_P_2 */
8726 { "vpmovzxbd", { XM, EXd } },
8727 { "(bad)", { XX } },
8730 /* VEX_LEN_3832_P_2 */
8732 { "vpmovzxbq", { XM, EXw } },
8733 { "(bad)", { XX } },
8736 /* VEX_LEN_3833_P_2 */
8738 { "vpmovzxwd", { XM, EXq } },
8739 { "(bad)", { XX } },
8742 /* VEX_LEN_3834_P_2 */
8744 { "vpmovzxwq", { XM, EXd } },
8745 { "(bad)", { XX } },
8748 /* VEX_LEN_3835_P_2 */
8750 { "vpmovzxdq", { XM, EXq } },
8751 { "(bad)", { XX } },
8754 /* VEX_LEN_3837_P_2 */
8756 { "vpcmpgtq", { XM, Vex128, EXx } },
8757 { "(bad)", { XX } },
8760 /* VEX_LEN_3838_P_2 */
8762 { "vpminsb", { XM, Vex128, EXx } },
8763 { "(bad)", { XX } },
8766 /* VEX_LEN_3839_P_2 */
8768 { "vpminsd", { XM, Vex128, EXx } },
8769 { "(bad)", { XX } },
8772 /* VEX_LEN_383A_P_2 */
8774 { "vpminuw", { XM, Vex128, EXx } },
8775 { "(bad)", { XX } },
8778 /* VEX_LEN_383B_P_2 */
8780 { "vpminud", { XM, Vex128, EXx } },
8781 { "(bad)", { XX } },
8784 /* VEX_LEN_383C_P_2 */
8786 { "vpmaxsb", { XM, Vex128, EXx } },
8787 { "(bad)", { XX } },
8790 /* VEX_LEN_383D_P_2 */
8792 { "vpmaxsd", { XM, Vex128, EXx } },
8793 { "(bad)", { XX } },
8796 /* VEX_LEN_383E_P_2 */
8798 { "vpmaxuw", { XM, Vex128, EXx } },
8799 { "(bad)", { XX } },
8802 /* VEX_LEN_383F_P_2 */
8804 { "vpmaxud", { XM, Vex128, EXx } },
8805 { "(bad)", { XX } },
8808 /* VEX_LEN_3840_P_2 */
8810 { "vpmulld", { XM, Vex128, EXx } },
8811 { "(bad)", { XX } },
8814 /* VEX_LEN_3841_P_2 */
8816 { "vphminposuw", { XM, EXx } },
8817 { "(bad)", { XX } },
8820 /* VEX_LEN_38DB_P_2 */
8822 { "vaesimc", { XM, EXx } },
8823 { "(bad)", { XX } },
8826 /* VEX_LEN_38DC_P_2 */
8828 { "vaesenc", { XM, Vex128, EXx } },
8829 { "(bad)", { XX } },
8832 /* VEX_LEN_38DD_P_2 */
8834 { "vaesenclast", { XM, Vex128, EXx } },
8835 { "(bad)", { XX } },
8838 /* VEX_LEN_38DE_P_2 */
8840 { "vaesdec", { XM, Vex128, EXx } },
8841 { "(bad)", { XX } },
8844 /* VEX_LEN_38DF_P_2 */
8846 { "vaesdeclast", { XM, Vex128, EXx } },
8847 { "(bad)", { XX } },
8850 /* VEX_LEN_3A06_P_2 */
8852 { "(bad)", { XX } },
8853 { "vperm2f128", { XM, Vex256, EXx, Ib } },
8856 /* VEX_LEN_3A0A_P_2 */
8858 { "vroundss", { XM, Vex128, EXd, Ib } },
8859 { "(bad)", { XX } },
8862 /* VEX_LEN_3A0B_P_2 */
8864 { "vroundsd", { XM, Vex128, EXq, Ib } },
8865 { "(bad)", { XX } },
8868 /* VEX_LEN_3A0E_P_2 */
8870 { "vpblendw", { XM, Vex128, EXx, Ib } },
8871 { "(bad)", { XX } },
8874 /* VEX_LEN_3A0F_P_2 */
8876 { "vpalignr", { XM, Vex128, EXx, Ib } },
8877 { "(bad)", { XX } },
8880 /* VEX_LEN_3A14_P_2 */
8882 { "vpextrb", { Edqb, XM, Ib } },
8883 { "(bad)", { XX } },
8886 /* VEX_LEN_3A15_P_2 */
8888 { "vpextrw", { Edqw, XM, Ib } },
8889 { "(bad)", { XX } },
8892 /* VEX_LEN_3A16_P_2 */
8894 { "vpextrK", { Edq, XM, Ib } },
8895 { "(bad)", { XX } },
8898 /* VEX_LEN_3A17_P_2 */
8900 { "vextractps", { Edqd, XM, Ib } },
8901 { "(bad)", { XX } },
8904 /* VEX_LEN_3A18_P_2 */
8906 { "(bad)", { XX } },
8907 { "vinsertf128", { XM, Vex256, EXxmm, Ib } },
8910 /* VEX_LEN_3A19_P_2 */
8912 { "(bad)", { XX } },
8913 { "vextractf128", { EXxmm, XM, Ib } },
8916 /* VEX_LEN_3A20_P_2 */
8918 { "vpinsrb", { XM, Vex128, Edqb, Ib } },
8919 { "(bad)", { XX } },
8922 /* VEX_LEN_3A21_P_2 */
8924 { "vinsertps", { XM, Vex128, EXd, Ib } },
8925 { "(bad)", { XX } },
8928 /* VEX_LEN_3A22_P_2 */
8930 { "vpinsrK", { XM, Vex128, Edq, Ib } },
8931 { "(bad)", { XX } },
8934 /* VEX_LEN_3A41_P_2 */
8936 { "vdppd", { XM, Vex128, EXx, Ib } },
8937 { "(bad)", { XX } },
8940 /* VEX_LEN_3A42_P_2 */
8942 { "vmpsadbw", { XM, Vex128, EXx, Ib } },
8943 { "(bad)", { XX } },
8946 /* VEX_LEN_3A4C_P_2 */
8948 { "vpblendvb", { XM, Vex128, EXx, XMVexI4 } },
8949 { "(bad)", { XX } },
8952 /* VEX_LEN_3A60_P_2 */
8954 { "vpcmpestrm", { XM, EXx, Ib } },
8955 { "(bad)", { XX } },
8958 /* VEX_LEN_3A61_P_2 */
8960 { "vpcmpestri", { XM, EXx, Ib } },
8961 { "(bad)", { XX } },
8964 /* VEX_LEN_3A62_P_2 */
8966 { "vpcmpistrm", { XM, EXx, Ib } },
8967 { "(bad)", { XX } },
8970 /* VEX_LEN_3A63_P_2 */
8972 { "vpcmpistri", { XM, EXx, Ib } },
8973 { "(bad)", { XX } },
8976 /* VEX_LEN_3A6A_P_2 */
8978 { "vfmaddss", { XMVexW, Vex128FMA, EXdVexW, EXdVexW, VexI4 } },
8979 { "(bad)", { XX } },
8982 /* VEX_LEN_3A6B_P_2 */
8984 { "vfmaddsd", { XMVexW, Vex128FMA, EXqVexW, EXqVexW, VexI4 } },
8985 { "(bad)", { XX } },
8988 /* VEX_LEN_3A6E_P_2 */
8990 { "vfmsubss", { XMVexW, Vex128FMA, EXdVexW, EXdVexW, VexI4 } },
8991 { "(bad)", { XX } },
8994 /* VEX_LEN_3A6F_P_2 */
8996 { "vfmsubsd", { XMVexW, Vex128FMA, EXqVexW, EXqVexW, VexI4 } },
8997 { "(bad)", { XX } },
9000 /* VEX_LEN_3A7A_P_2 */
9002 { "vfnmaddss", { XMVexW, Vex128FMA, EXdVexW, EXdVexW, VexI4 } },
9003 { "(bad)", { XX } },
9006 /* VEX_LEN_3A7B_P_2 */
9008 { "vfnmaddsd", { XMVexW, Vex128FMA, EXqVexW, EXqVexW, VexI4 } },
9009 { "(bad)", { XX } },
9012 /* VEX_LEN_3A7E_P_2 */
9014 { "vfnmsubss", { XMVexW, Vex128FMA, EXdVexW, EXdVexW, VexI4 } },
9015 { "(bad)", { XX } },
9018 /* VEX_LEN_3A7F_P_2 */
9020 { "vfnmsubsd", { XMVexW, Vex128FMA, EXqVexW, EXqVexW, VexI4 } },
9021 { "(bad)", { XX } },
9024 /* VEX_LEN_3ADF_P_2 */
9026 { "vaeskeygenassist", { XM, EXx, Ib } },
9027 { "(bad)", { XX } },
9031 static const struct dis386 mod_table[][2] = {
9034 { "leaS", { Gv, M } },
9035 { "(bad)", { XX } },
9038 /* MOD_0F01_REG_0 */
9039 { X86_64_TABLE (X86_64_0F01_REG_0) },
9040 { RM_TABLE (RM_0F01_REG_0) },
9043 /* MOD_0F01_REG_1 */
9044 { X86_64_TABLE (X86_64_0F01_REG_1) },
9045 { RM_TABLE (RM_0F01_REG_1) },
9048 /* MOD_0F01_REG_2 */
9049 { X86_64_TABLE (X86_64_0F01_REG_2) },
9050 { RM_TABLE (RM_0F01_REG_2) },
9053 /* MOD_0F01_REG_3 */
9054 { X86_64_TABLE (X86_64_0F01_REG_3) },
9055 { RM_TABLE (RM_0F01_REG_3) },
9058 /* MOD_0F01_REG_7 */
9059 { "invlpg", { Mb } },
9060 { RM_TABLE (RM_0F01_REG_7) },
9063 /* MOD_0F12_PREFIX_0 */
9064 { "movlps", { XM, EXq } },
9065 { "movhlps", { XM, EXq } },
9069 { "movlpX", { EXq, XM } },
9070 { "(bad)", { XX } },
9073 /* MOD_0F16_PREFIX_0 */
9074 { "movhps", { XM, EXq } },
9075 { "movlhps", { XM, EXq } },
9079 { "movhpX", { EXq, XM } },
9080 { "(bad)", { XX } },
9083 /* MOD_0F18_REG_0 */
9084 { "prefetchnta", { Mb } },
9085 { "(bad)", { XX } },
9088 /* MOD_0F18_REG_1 */
9089 { "prefetcht0", { Mb } },
9090 { "(bad)", { XX } },
9093 /* MOD_0F18_REG_2 */
9094 { "prefetcht1", { Mb } },
9095 { "(bad)", { XX } },
9098 /* MOD_0F18_REG_3 */
9099 { "prefetcht2", { Mb } },
9100 { "(bad)", { XX } },
9104 { "(bad)", { XX } },
9105 { "movZ", { Rm, Cm } },
9109 { "(bad)", { XX } },
9110 { "movZ", { Rm, Dm } },
9114 { "(bad)", { XX } },
9115 { "movZ", { Cm, Rm } },
9119 { "(bad)", { XX } },
9120 { "movZ", { Dm, Rm } },
9124 { THREE_BYTE_TABLE (THREE_BYTE_0F24) },
9125 { "movL", { Rd, Td } },
9129 { "(bad)", { XX } },
9130 { "movL", { Td, Rd } },
9133 /* MOD_0F2B_PREFIX_0 */
9134 {"movntps", { Mx, XM } },
9135 { "(bad)", { XX } },
9138 /* MOD_0F2B_PREFIX_1 */
9139 {"movntss", { Md, XM } },
9140 { "(bad)", { XX } },
9143 /* MOD_0F2B_PREFIX_2 */
9144 {"movntpd", { Mx, XM } },
9145 { "(bad)", { XX } },
9148 /* MOD_0F2B_PREFIX_3 */
9149 {"movntsd", { Mq, XM } },
9150 { "(bad)", { XX } },
9154 { "(bad)", { XX } },
9155 { "movmskpX", { Gdq, XS } },
9158 /* MOD_0F71_REG_2 */
9159 { "(bad)", { XX } },
9160 { "psrlw", { MS, Ib } },
9163 /* MOD_0F71_REG_4 */
9164 { "(bad)", { XX } },
9165 { "psraw", { MS, Ib } },
9168 /* MOD_0F71_REG_6 */
9169 { "(bad)", { XX } },
9170 { "psllw", { MS, Ib } },
9173 /* MOD_0F72_REG_2 */
9174 { "(bad)", { XX } },
9175 { "psrld", { MS, Ib } },
9178 /* MOD_0F72_REG_4 */
9179 { "(bad)", { XX } },
9180 { "psrad", { MS, Ib } },
9183 /* MOD_0F72_REG_6 */
9184 { "(bad)", { XX } },
9185 { "pslld", { MS, Ib } },
9188 /* MOD_0F73_REG_2 */
9189 { "(bad)", { XX } },
9190 { "psrlq", { MS, Ib } },
9193 /* MOD_0F73_REG_3 */
9194 { "(bad)", { XX } },
9195 { PREFIX_TABLE (PREFIX_0F73_REG_3) },
9198 /* MOD_0F73_REG_6 */
9199 { "(bad)", { XX } },
9200 { "psllq", { MS, Ib } },
9203 /* MOD_0F73_REG_7 */
9204 { "(bad)", { XX } },
9205 { PREFIX_TABLE (PREFIX_0F73_REG_7) },
9208 /* MOD_0FAE_REG_0 */
9209 { "fxsave", { M } },
9210 { "(bad)", { XX } },
9213 /* MOD_0FAE_REG_1 */
9214 { "fxrstor", { M } },
9215 { "(bad)", { XX } },
9218 /* MOD_0FAE_REG_2 */
9219 { "ldmxcsr", { Md } },
9220 { "(bad)", { XX } },
9223 /* MOD_0FAE_REG_3 */
9224 { "stmxcsr", { Md } },
9225 { "(bad)", { XX } },
9228 /* MOD_0FAE_REG_4 */
9230 { "(bad)", { XX } },
9233 /* MOD_0FAE_REG_5 */
9234 { "xrstor", { M } },
9235 { RM_TABLE (RM_0FAE_REG_5) },
9238 /* MOD_0FAE_REG_6 */
9239 { "xsaveopt", { M } },
9240 { RM_TABLE (RM_0FAE_REG_6) },
9243 /* MOD_0FAE_REG_7 */
9244 { "clflush", { Mb } },
9245 { RM_TABLE (RM_0FAE_REG_7) },
9249 { "lssS", { Gv, Mp } },
9250 { "(bad)", { XX } },
9254 { "lfsS", { Gv, Mp } },
9255 { "(bad)", { XX } },
9259 { "lgsS", { Gv, Mp } },
9260 { "(bad)", { XX } },
9263 /* MOD_0FC7_REG_6 */
9264 { PREFIX_TABLE (PREFIX_0FC7_REG_6) },
9265 { "(bad)", { XX } },
9268 /* MOD_0FC7_REG_7 */
9269 { "vmptrst", { Mq } },
9270 { "(bad)", { XX } },
9274 { "(bad)", { XX } },
9275 { "pmovmskb", { Gdq, MS } },
9278 /* MOD_0FE7_PREFIX_2 */
9279 { "movntdq", { Mx, XM } },
9280 { "(bad)", { XX } },
9283 /* MOD_0FF0_PREFIX_3 */
9284 { "lddqu", { XM, M } },
9285 { "(bad)", { XX } },
9288 /* MOD_0F382A_PREFIX_2 */
9289 { "movntdqa", { XM, Mx } },
9290 { "(bad)", { XX } },
9294 { "bound{S|}", { Gv, Ma } },
9295 { "(bad)", { XX } },
9299 { "lesS", { Gv, Mp } },
9300 { VEX_C4_TABLE (VEX_0F) },
9304 { "ldsS", { Gv, Mp } },
9305 { VEX_C5_TABLE (VEX_0F) },
9308 /* MOD_VEX_12_PREFIX_0 */
9309 { VEX_LEN_TABLE (VEX_LEN_12_P_0_M_0) },
9310 { VEX_LEN_TABLE (VEX_LEN_12_P_0_M_1) },
9314 { VEX_LEN_TABLE (VEX_LEN_13_M_0) },
9315 { "(bad)", { XX } },
9318 /* MOD_VEX_16_PREFIX_0 */
9319 { VEX_LEN_TABLE (VEX_LEN_16_P_0_M_0) },
9320 { VEX_LEN_TABLE (VEX_LEN_16_P_0_M_1) },
9324 { VEX_LEN_TABLE (VEX_LEN_17_M_0) },
9325 { "(bad)", { XX } },
9329 { VEX_LEN_TABLE (VEX_LEN_2B_M_0) },
9330 { "(bad)", { XX } },
9334 { "(bad)", { XX } },
9335 { "vmovmskpX", { Gdq, XS } },
9338 /* MOD_VEX_71_REG_2 */
9339 { "(bad)", { XX } },
9340 { PREFIX_TABLE (PREFIX_VEX_71_REG_2) },
9343 /* MOD_VEX_71_REG_4 */
9344 { "(bad)", { XX } },
9345 { PREFIX_TABLE (PREFIX_VEX_71_REG_4) },
9348 /* MOD_VEX_71_REG_6 */
9349 { "(bad)", { XX } },
9350 { PREFIX_TABLE (PREFIX_VEX_71_REG_6) },
9353 /* MOD_VEX_72_REG_2 */
9354 { "(bad)", { XX } },
9355 { PREFIX_TABLE (PREFIX_VEX_72_REG_2) },
9358 /* MOD_VEX_72_REG_4 */
9359 { "(bad)", { XX } },
9360 { PREFIX_TABLE (PREFIX_VEX_72_REG_4) },
9363 /* MOD_VEX_72_REG_6 */
9364 { "(bad)", { XX } },
9365 { PREFIX_TABLE (PREFIX_VEX_72_REG_6) },
9368 /* MOD_VEX_73_REG_2 */
9369 { "(bad)", { XX } },
9370 { PREFIX_TABLE (PREFIX_VEX_73_REG_2) },
9373 /* MOD_VEX_73_REG_3 */
9374 { "(bad)", { XX } },
9375 { PREFIX_TABLE (PREFIX_VEX_73_REG_3) },
9378 /* MOD_VEX_73_REG_6 */
9379 { "(bad)", { XX } },
9380 { PREFIX_TABLE (PREFIX_VEX_73_REG_6) },
9383 /* MOD_VEX_73_REG_7 */
9384 { "(bad)", { XX } },
9385 { PREFIX_TABLE (PREFIX_VEX_73_REG_7) },
9388 /* MOD_VEX_AE_REG_2 */
9389 { VEX_LEN_TABLE (VEX_LEN_AE_R_2_M_0) },
9390 { "(bad)", { XX } },
9393 /* MOD_VEX_AE_REG_3 */
9394 { VEX_LEN_TABLE (VEX_LEN_AE_R_3_M_0) },
9395 { "(bad)", { XX } },
9398 /* MOD_VEX_D7_PREFIX_2 */
9399 { "(bad)", { XX } },
9400 { VEX_LEN_TABLE (VEX_LEN_D7_P_2_M_1) },
9403 /* MOD_VEX_E7_PREFIX_2 */
9404 { VEX_LEN_TABLE (VEX_LEN_E7_P_2_M_0) },
9405 { "(bad)", { XX } },
9408 /* MOD_VEX_F0_PREFIX_3 */
9409 { "vlddqu", { XM, M } },
9410 { "(bad)", { XX } },
9413 /* MOD_VEX_3818_PREFIX_2 */
9414 { "vbroadcastss", { XM, Md } },
9415 { "(bad)", { XX } },
9418 /* MOD_VEX_3819_PREFIX_2 */
9419 { VEX_LEN_TABLE (VEX_LEN_3819_P_2_M_0) },
9420 { "(bad)", { XX } },
9423 /* MOD_VEX_381A_PREFIX_2 */
9424 { VEX_LEN_TABLE (VEX_LEN_381A_P_2_M_0) },
9425 { "(bad)", { XX } },
9428 /* MOD_VEX_382A_PREFIX_2 */
9429 { VEX_LEN_TABLE (VEX_LEN_382A_P_2_M_0) },
9430 { "(bad)", { XX } },
9433 /* MOD_VEX_382C_PREFIX_2 */
9434 { "vmaskmovps", { XM, Vex, Mx } },
9435 { "(bad)", { XX } },
9438 /* MOD_VEX_382D_PREFIX_2 */
9439 { "vmaskmovpd", { XM, Vex, Mx } },
9440 { "(bad)", { XX } },
9443 /* MOD_VEX_382E_PREFIX_2 */
9444 { "vmaskmovps", { Mx, Vex, XM } },
9445 { "(bad)", { XX } },
9448 /* MOD_VEX_382F_PREFIX_2 */
9449 { "vmaskmovpd", { Mx, Vex, XM } },
9450 { "(bad)", { XX } },
9454 static const struct dis386 rm_table[][8] = {
9457 { "(bad)", { XX } },
9458 { "vmcall", { Skip_MODRM } },
9459 { "vmlaunch", { Skip_MODRM } },
9460 { "vmresume", { Skip_MODRM } },
9461 { "vmxoff", { Skip_MODRM } },
9462 { "(bad)", { XX } },
9463 { "(bad)", { XX } },
9464 { "(bad)", { XX } },
9468 { "monitor", { { OP_Monitor, 0 } } },
9469 { "mwait", { { OP_Mwait, 0 } } },
9470 { "(bad)", { XX } },
9471 { "(bad)", { XX } },
9472 { "(bad)", { XX } },
9473 { "(bad)", { XX } },
9474 { "(bad)", { XX } },
9475 { "(bad)", { XX } },
9479 { "xgetbv", { Skip_MODRM } },
9480 { "xsetbv", { Skip_MODRM } },
9481 { "(bad)", { XX } },
9482 { "(bad)", { XX } },
9483 { "(bad)", { XX } },
9484 { "(bad)", { XX } },
9485 { "(bad)", { XX } },
9486 { "(bad)", { XX } },
9490 { "vmrun", { Skip_MODRM } },
9491 { "vmmcall", { Skip_MODRM } },
9492 { "vmload", { Skip_MODRM } },
9493 { "vmsave", { Skip_MODRM } },
9494 { "stgi", { Skip_MODRM } },
9495 { "clgi", { Skip_MODRM } },
9496 { "skinit", { Skip_MODRM } },
9497 { "invlpga", { Skip_MODRM } },
9501 { "swapgs", { Skip_MODRM } },
9502 { "rdtscp", { Skip_MODRM } },
9503 { "(bad)", { XX } },
9504 { "(bad)", { XX } },
9505 { "(bad)", { XX } },
9506 { "(bad)", { XX } },
9507 { "(bad)", { XX } },
9508 { "(bad)", { XX } },
9512 { "lfence", { Skip_MODRM } },
9513 { "(bad)", { XX } },
9514 { "(bad)", { XX } },
9515 { "(bad)", { XX } },
9516 { "(bad)", { XX } },
9517 { "(bad)", { XX } },
9518 { "(bad)", { XX } },
9519 { "(bad)", { XX } },
9523 { "mfence", { Skip_MODRM } },
9524 { "(bad)", { XX } },
9525 { "(bad)", { XX } },
9526 { "(bad)", { XX } },
9527 { "(bad)", { XX } },
9528 { "(bad)", { XX } },
9529 { "(bad)", { XX } },
9530 { "(bad)", { XX } },
9534 { "sfence", { Skip_MODRM } },
9535 { "(bad)", { XX } },
9536 { "(bad)", { XX } },
9537 { "(bad)", { XX } },
9538 { "(bad)", { XX } },
9539 { "(bad)", { XX } },
9540 { "(bad)", { XX } },
9541 { "(bad)", { XX } },
9545 #define INTERNAL_DISASSEMBLER_ERROR _("<internal disassembler error>")
9559 FETCH_DATA (the_info, codep + 1);
9563 /* REX prefixes family. */
9580 if (address_mode == mode_64bit)
9586 prefixes |= PREFIX_REPZ;
9589 prefixes |= PREFIX_REPNZ;
9592 prefixes |= PREFIX_LOCK;
9595 prefixes |= PREFIX_CS;
9598 prefixes |= PREFIX_SS;
9601 prefixes |= PREFIX_DS;
9604 prefixes |= PREFIX_ES;
9607 prefixes |= PREFIX_FS;
9610 prefixes |= PREFIX_GS;
9613 prefixes |= PREFIX_DATA;
9616 prefixes |= PREFIX_ADDR;
9619 /* fwait is really an instruction. If there are prefixes
9620 before the fwait, they belong to the fwait, *not* to the
9621 following instruction. */
9622 if (prefixes || rex)
9624 prefixes |= PREFIX_FWAIT;
9628 prefixes = PREFIX_FWAIT;
9633 /* Rex is ignored when followed by another prefix. */
9645 /* Return the name of the prefix byte PREF, or NULL if PREF is not a
9649 prefix_name (int pref, int sizeflag)
9651 static const char *rexes [16] =
9656 "rex.XB", /* 0x43 */
9658 "rex.RB", /* 0x45 */
9659 "rex.RX", /* 0x46 */
9660 "rex.RXB", /* 0x47 */
9662 "rex.WB", /* 0x49 */
9663 "rex.WX", /* 0x4a */
9664 "rex.WXB", /* 0x4b */
9665 "rex.WR", /* 0x4c */
9666 "rex.WRB", /* 0x4d */
9667 "rex.WRX", /* 0x4e */
9668 "rex.WRXB", /* 0x4f */
9673 /* REX prefixes family. */
9690 return rexes [pref - 0x40];
9710 return (sizeflag & DFLAG) ? "data16" : "data32";
9712 if (address_mode == mode_64bit)
9713 return (sizeflag & AFLAG) ? "addr32" : "addr64";
9715 return (sizeflag & AFLAG) ? "addr16" : "addr32";
9723 static char op_out[MAX_OPERANDS][100];
9724 static int op_ad, op_index[MAX_OPERANDS];
9725 static int two_source_ops;
9726 static bfd_vma op_address[MAX_OPERANDS];
9727 static bfd_vma op_riprel[MAX_OPERANDS];
9728 static bfd_vma start_pc;
9731 * On the 386's of 1988, the maximum length of an instruction is 15 bytes.
9732 * (see topic "Redundant prefixes" in the "Differences from 8086"
9733 * section of the "Virtual 8086 Mode" chapter.)
9734 * 'pc' should be the address of this instruction, it will
9735 * be used to print the target address if this is a relative jump or call
9736 * The function returns the length of this instruction in bytes.
9739 static char intel_syntax;
9740 static char intel_mnemonic = !SYSV386_COMPAT;
9741 static char open_char;
9742 static char close_char;
9743 static char separator_char;
9744 static char scale_char;
9746 /* Here for backwards compatibility. When gdb stops using
9747 print_insn_i386_att and print_insn_i386_intel these functions can
9748 disappear, and print_insn_i386 be merged into print_insn. */
9750 print_insn_i386_att (bfd_vma pc, disassemble_info *info)
9754 return print_insn (pc, info);
9758 print_insn_i386_intel (bfd_vma pc, disassemble_info *info)
9762 return print_insn (pc, info);
9766 print_insn_i386 (bfd_vma pc, disassemble_info *info)
9770 return print_insn (pc, info);
9774 print_i386_disassembler_options (FILE *stream)
9776 fprintf (stream, _("\n\
9777 The following i386/x86-64 specific disassembler options are supported for use\n\
9778 with the -M switch (multiple options should be separated by commas):\n"));
9780 fprintf (stream, _(" x86-64 Disassemble in 64bit mode\n"));
9781 fprintf (stream, _(" i386 Disassemble in 32bit mode\n"));
9782 fprintf (stream, _(" i8086 Disassemble in 16bit mode\n"));
9783 fprintf (stream, _(" att Display instruction in AT&T syntax\n"));
9784 fprintf (stream, _(" intel Display instruction in Intel syntax\n"));
9785 fprintf (stream, _(" att-mnemonic\n"
9786 " Display instruction in AT&T mnemonic\n"));
9787 fprintf (stream, _(" intel-mnemonic\n"
9788 " Display instruction in Intel mnemonic\n"));
9789 fprintf (stream, _(" addr64 Assume 64bit address size\n"));
9790 fprintf (stream, _(" addr32 Assume 32bit address size\n"));
9791 fprintf (stream, _(" addr16 Assume 16bit address size\n"));
9792 fprintf (stream, _(" data32 Assume 32bit data size\n"));
9793 fprintf (stream, _(" data16 Assume 16bit data size\n"));
9794 fprintf (stream, _(" suffix Always display instruction suffix in AT&T syntax\n"));
9797 /* Get a pointer to struct dis386 with a valid name. */
9799 static const struct dis386 *
9800 get_valid_dis386 (const struct dis386 *dp, disassemble_info *info)
9802 int index, vex_table_index;
9804 if (dp->name != NULL)
9807 switch (dp->op[0].bytemode)
9810 dp = ®_table[dp->op[1].bytemode][modrm.reg];
9814 index = modrm.mod == 0x3 ? 1 : 0;
9815 dp = &mod_table[dp->op[1].bytemode][index];
9819 dp = &rm_table[dp->op[1].bytemode][modrm.rm];
9822 case USE_PREFIX_TABLE:
9825 /* The prefix in VEX is implicit. */
9831 case REPE_PREFIX_OPCODE:
9834 case DATA_PREFIX_OPCODE:
9837 case REPNE_PREFIX_OPCODE:
9848 used_prefixes |= (prefixes & PREFIX_REPZ);
9849 if (prefixes & PREFIX_REPZ)
9856 /* We should check PREFIX_REPNZ and PREFIX_REPZ before
9858 used_prefixes |= (prefixes & PREFIX_REPNZ);
9859 if (prefixes & PREFIX_REPNZ)
9862 repnz_prefix = NULL;
9866 used_prefixes |= (prefixes & PREFIX_DATA);
9867 if (prefixes & PREFIX_DATA)
9875 dp = &prefix_table[dp->op[1].bytemode][index];
9878 case USE_X86_64_TABLE:
9879 index = address_mode == mode_64bit ? 1 : 0;
9880 dp = &x86_64_table[dp->op[1].bytemode][index];
9883 case USE_3BYTE_TABLE:
9884 FETCH_DATA (info, codep + 2);
9886 dp = &three_byte_table[dp->op[1].bytemode][index];
9887 modrm.mod = (*codep >> 6) & 3;
9888 modrm.reg = (*codep >> 3) & 7;
9889 modrm.rm = *codep & 7;
9892 case USE_VEX_LEN_TABLE:
9909 dp = &vex_len_table[dp->op[1].bytemode][index];
9912 case USE_VEX_C4_TABLE:
9913 FETCH_DATA (info, codep + 3);
9914 /* All bits in the REX prefix are ignored. */
9916 rex = ~(*codep >> 5) & 0x7;
9917 switch ((*codep & 0x1f))
9922 vex_table_index = 0;
9925 vex_table_index = 1;
9928 vex_table_index = 2;
9932 vex.w = *codep & 0x80;
9933 if (vex.w && address_mode == mode_64bit)
9936 vex.register_specifier = (~(*codep >> 3)) & 0xf;
9937 if (address_mode != mode_64bit
9938 && vex.register_specifier > 0x7)
9941 vex.length = (*codep & 0x4) ? 256 : 128;
9942 switch ((*codep & 0x3))
9948 vex.prefix = DATA_PREFIX_OPCODE;
9951 vex.prefix = REPE_PREFIX_OPCODE;
9954 vex.prefix = REPNE_PREFIX_OPCODE;
9961 dp = &vex_table[vex_table_index][index];
9962 /* There is no MODRM byte for VEX [82|77]. */
9963 if (index != 0x77 && index != 0x82)
9965 FETCH_DATA (info, codep + 1);
9966 modrm.mod = (*codep >> 6) & 3;
9967 modrm.reg = (*codep >> 3) & 7;
9968 modrm.rm = *codep & 7;
9972 case USE_VEX_C5_TABLE:
9973 FETCH_DATA (info, codep + 2);
9974 /* All bits in the REX prefix are ignored. */
9976 rex = (*codep & 0x80) ? 0 : REX_R;
9978 vex.register_specifier = (~(*codep >> 3)) & 0xf;
9979 if (address_mode != mode_64bit
9980 && vex.register_specifier > 0x7)
9983 vex.length = (*codep & 0x4) ? 256 : 128;
9984 switch ((*codep & 0x3))
9990 vex.prefix = DATA_PREFIX_OPCODE;
9993 vex.prefix = REPE_PREFIX_OPCODE;
9996 vex.prefix = REPNE_PREFIX_OPCODE;
10003 dp = &vex_table[dp->op[1].bytemode][index];
10004 /* There is no MODRM byte for VEX [82|77]. */
10005 if (index != 0x77 && index != 0x82)
10007 FETCH_DATA (info, codep + 1);
10008 modrm.mod = (*codep >> 6) & 3;
10009 modrm.reg = (*codep >> 3) & 7;
10010 modrm.rm = *codep & 7;
10015 oappend (INTERNAL_DISASSEMBLER_ERROR);
10019 if (dp->name != NULL)
10022 return get_valid_dis386 (dp, info);
10026 print_insn (bfd_vma pc, disassemble_info *info)
10028 const struct dis386 *dp;
10030 char *op_txt[MAX_OPERANDS];
10034 struct dis_private priv;
10036 char prefix_obuf[32];
10037 char *prefix_obufp;
10039 if (info->mach == bfd_mach_x86_64_intel_syntax
10040 || info->mach == bfd_mach_x86_64)
10041 address_mode = mode_64bit;
10043 address_mode = mode_32bit;
10045 if (intel_syntax == (char) -1)
10046 intel_syntax = (info->mach == bfd_mach_i386_i386_intel_syntax
10047 || info->mach == bfd_mach_x86_64_intel_syntax);
10049 if (info->mach == bfd_mach_i386_i386
10050 || info->mach == bfd_mach_x86_64
10051 || info->mach == bfd_mach_i386_i386_intel_syntax
10052 || info->mach == bfd_mach_x86_64_intel_syntax)
10053 priv.orig_sizeflag = AFLAG | DFLAG;
10054 else if (info->mach == bfd_mach_i386_i8086)
10055 priv.orig_sizeflag = 0;
10059 for (p = info->disassembler_options; p != NULL; )
10061 if (CONST_STRNEQ (p, "x86-64"))
10063 address_mode = mode_64bit;
10064 priv.orig_sizeflag = AFLAG | DFLAG;
10066 else if (CONST_STRNEQ (p, "i386"))
10068 address_mode = mode_32bit;
10069 priv.orig_sizeflag = AFLAG | DFLAG;
10071 else if (CONST_STRNEQ (p, "i8086"))
10073 address_mode = mode_16bit;
10074 priv.orig_sizeflag = 0;
10076 else if (CONST_STRNEQ (p, "intel"))
10079 if (CONST_STRNEQ (p + 5, "-mnemonic"))
10080 intel_mnemonic = 1;
10082 else if (CONST_STRNEQ (p, "att"))
10085 if (CONST_STRNEQ (p + 3, "-mnemonic"))
10086 intel_mnemonic = 0;
10088 else if (CONST_STRNEQ (p, "addr"))
10090 if (address_mode == mode_64bit)
10092 if (p[4] == '3' && p[5] == '2')
10093 priv.orig_sizeflag &= ~AFLAG;
10094 else if (p[4] == '6' && p[5] == '4')
10095 priv.orig_sizeflag |= AFLAG;
10099 if (p[4] == '1' && p[5] == '6')
10100 priv.orig_sizeflag &= ~AFLAG;
10101 else if (p[4] == '3' && p[5] == '2')
10102 priv.orig_sizeflag |= AFLAG;
10105 else if (CONST_STRNEQ (p, "data"))
10107 if (p[4] == '1' && p[5] == '6')
10108 priv.orig_sizeflag &= ~DFLAG;
10109 else if (p[4] == '3' && p[5] == '2')
10110 priv.orig_sizeflag |= DFLAG;
10112 else if (CONST_STRNEQ (p, "suffix"))
10113 priv.orig_sizeflag |= SUFFIX_ALWAYS;
10115 p = strchr (p, ',');
10122 names64 = intel_names64;
10123 names32 = intel_names32;
10124 names16 = intel_names16;
10125 names8 = intel_names8;
10126 names8rex = intel_names8rex;
10127 names_seg = intel_names_seg;
10128 index64 = intel_index64;
10129 index32 = intel_index32;
10130 index16 = intel_index16;
10133 separator_char = '+';
10138 names64 = att_names64;
10139 names32 = att_names32;
10140 names16 = att_names16;
10141 names8 = att_names8;
10142 names8rex = att_names8rex;
10143 names_seg = att_names_seg;
10144 index64 = att_index64;
10145 index32 = att_index32;
10146 index16 = att_index16;
10149 separator_char = ',';
10153 /* The output looks better if we put 7 bytes on a line, since that
10154 puts most long word instructions on a single line. */
10155 info->bytes_per_line = 7;
10157 info->private_data = &priv;
10158 priv.max_fetched = priv.the_buffer;
10159 priv.insn_start = pc;
10162 for (i = 0; i < MAX_OPERANDS; ++i)
10170 start_codep = priv.the_buffer;
10171 codep = priv.the_buffer;
10173 if (setjmp (priv.bailout) != 0)
10177 /* Getting here means we tried for data but didn't get it. That
10178 means we have an incomplete instruction of some sort. Just
10179 print the first byte as a prefix or a .byte pseudo-op. */
10180 if (codep > priv.the_buffer)
10182 name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag);
10184 (*info->fprintf_func) (info->stream, "%s", name);
10187 /* Just print the first byte as a .byte instruction. */
10188 (*info->fprintf_func) (info->stream, ".byte 0x%x",
10189 (unsigned int) priv.the_buffer[0]);
10201 insn_codep = codep;
10202 sizeflag = priv.orig_sizeflag;
10204 FETCH_DATA (info, codep + 1);
10205 two_source_ops = (*codep == 0x62) || (*codep == 0xc8);
10207 if (((prefixes & PREFIX_FWAIT)
10208 && ((*codep < 0xd8) || (*codep > 0xdf)))
10209 || (rex && rex_used))
10213 /* fwait not followed by floating point instruction, or rex followed
10214 by other prefixes. Print the first prefix. */
10215 name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag);
10217 name = INTERNAL_DISASSEMBLER_ERROR;
10218 (*info->fprintf_func) (info->stream, "%s", name);
10223 if (*codep == 0x0f)
10225 unsigned char threebyte;
10226 FETCH_DATA (info, codep + 2);
10227 threebyte = *++codep;
10228 dp = &dis386_twobyte[threebyte];
10229 need_modrm = twobyte_has_modrm[*codep];
10234 dp = &dis386[*codep];
10235 need_modrm = onebyte_has_modrm[*codep];
10239 if ((prefixes & PREFIX_REPZ))
10241 repz_prefix = "repz ";
10242 used_prefixes |= PREFIX_REPZ;
10245 repz_prefix = NULL;
10247 if ((prefixes & PREFIX_REPNZ))
10249 repnz_prefix = "repnz ";
10250 used_prefixes |= PREFIX_REPNZ;
10253 repnz_prefix = NULL;
10255 if ((prefixes & PREFIX_LOCK))
10257 lock_prefix = "lock ";
10258 used_prefixes |= PREFIX_LOCK;
10261 lock_prefix = NULL;
10263 addr_prefix = NULL;
10264 if (prefixes & PREFIX_ADDR)
10267 if (dp->op[2].bytemode != loop_jcxz_mode || intel_syntax)
10269 if ((sizeflag & AFLAG) || address_mode == mode_64bit)
10270 addr_prefix = "addr32 ";
10272 addr_prefix = "addr16 ";
10273 used_prefixes |= PREFIX_ADDR;
10277 data_prefix = NULL;
10278 if ((prefixes & PREFIX_DATA))
10281 if (dp->op[2].bytemode == cond_jump_mode
10282 && dp->op[0].bytemode == v_mode
10285 if (sizeflag & DFLAG)
10286 data_prefix = "data32 ";
10288 data_prefix = "data16 ";
10289 used_prefixes |= PREFIX_DATA;
10295 FETCH_DATA (info, codep + 1);
10296 modrm.mod = (*codep >> 6) & 3;
10297 modrm.reg = (*codep >> 3) & 7;
10298 modrm.rm = *codep & 7;
10301 if (dp->name == NULL && dp->op[0].bytemode == FLOATCODE)
10303 dofloat (sizeflag);
10310 dp = get_valid_dis386 (dp, info);
10311 if (dp != NULL && putop (dp->name, sizeflag) == 0)
10313 for (i = 0; i < MAX_OPERANDS; ++i)
10316 op_ad = MAX_OPERANDS - 1 - i;
10318 (*dp->op[i].rtn) (dp->op[i].bytemode, sizeflag);
10323 /* See if any prefixes were not used. If so, print the first one
10324 separately. If we don't do this, we'll wind up printing an
10325 instruction stream which does not precisely correspond to the
10326 bytes we are disassembling. */
10327 if ((prefixes & ~used_prefixes) != 0)
10331 name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag);
10333 name = INTERNAL_DISASSEMBLER_ERROR;
10334 (*info->fprintf_func) (info->stream, "%s", name);
10337 if ((rex_original & ~rex_used) || rex_ignored)
10340 name = prefix_name (rex_original, priv.orig_sizeflag);
10342 name = INTERNAL_DISASSEMBLER_ERROR;
10343 (*info->fprintf_func) (info->stream, "%s ", name);
10346 prefix_obuf[0] = 0;
10347 prefix_obufp = prefix_obuf;
10349 prefix_obufp = stpcpy (prefix_obufp, lock_prefix);
10351 prefix_obufp = stpcpy (prefix_obufp, repz_prefix);
10353 prefix_obufp = stpcpy (prefix_obufp, repnz_prefix);
10355 prefix_obufp = stpcpy (prefix_obufp, addr_prefix);
10357 prefix_obufp = stpcpy (prefix_obufp, data_prefix);
10359 if (prefix_obuf[0] != 0)
10360 (*info->fprintf_func) (info->stream, "%s", prefix_obuf);
10362 obufp = obuf + strlen (obuf);
10363 for (i = strlen (obuf) + strlen (prefix_obuf); i < 6; i++)
10366 (*info->fprintf_func) (info->stream, "%s", obuf);
10368 /* The enter and bound instructions are printed with operands in the same
10369 order as the intel book; everything else is printed in reverse order. */
10370 if (intel_syntax || two_source_ops)
10374 for (i = 0; i < MAX_OPERANDS; ++i)
10375 op_txt[i] = op_out[i];
10377 for (i = 0; i < (MAX_OPERANDS >> 1); ++i)
10379 op_ad = op_index[i];
10380 op_index[i] = op_index[MAX_OPERANDS - 1 - i];
10381 op_index[MAX_OPERANDS - 1 - i] = op_ad;
10382 riprel = op_riprel[i];
10383 op_riprel[i] = op_riprel [MAX_OPERANDS - 1 - i];
10384 op_riprel[MAX_OPERANDS - 1 - i] = riprel;
10389 for (i = 0; i < MAX_OPERANDS; ++i)
10390 op_txt[MAX_OPERANDS - 1 - i] = op_out[i];
10394 for (i = 0; i < MAX_OPERANDS; ++i)
10398 (*info->fprintf_func) (info->stream, ",");
10399 if (op_index[i] != -1 && !op_riprel[i])
10400 (*info->print_address_func) ((bfd_vma) op_address[op_index[i]], info);
10402 (*info->fprintf_func) (info->stream, "%s", op_txt[i]);
10406 for (i = 0; i < MAX_OPERANDS; i++)
10407 if (op_index[i] != -1 && op_riprel[i])
10409 (*info->fprintf_func) (info->stream, " # ");
10410 (*info->print_address_func) ((bfd_vma) (start_pc + codep - start_codep
10411 + op_address[op_index[i]]), info);
10414 return codep - priv.the_buffer;
10417 static const char *float_mem[] = {
10492 static const unsigned char float_mem_mode[] = {
10567 #define ST { OP_ST, 0 }
10568 #define STi { OP_STi, 0 }
10570 #define FGRPd9_2 NULL, { { NULL, 0 } }
10571 #define FGRPd9_4 NULL, { { NULL, 1 } }
10572 #define FGRPd9_5 NULL, { { NULL, 2 } }
10573 #define FGRPd9_6 NULL, { { NULL, 3 } }
10574 #define FGRPd9_7 NULL, { { NULL, 4 } }
10575 #define FGRPda_5 NULL, { { NULL, 5 } }
10576 #define FGRPdb_4 NULL, { { NULL, 6 } }
10577 #define FGRPde_3 NULL, { { NULL, 7 } }
10578 #define FGRPdf_4 NULL, { { NULL, 8 } }
10580 static const struct dis386 float_reg[][8] = {
10583 { "fadd", { ST, STi } },
10584 { "fmul", { ST, STi } },
10585 { "fcom", { STi } },
10586 { "fcomp", { STi } },
10587 { "fsub", { ST, STi } },
10588 { "fsubr", { ST, STi } },
10589 { "fdiv", { ST, STi } },
10590 { "fdivr", { ST, STi } },
10594 { "fld", { STi } },
10595 { "fxch", { STi } },
10597 { "(bad)", { XX } },
10605 { "fcmovb", { ST, STi } },
10606 { "fcmove", { ST, STi } },
10607 { "fcmovbe",{ ST, STi } },
10608 { "fcmovu", { ST, STi } },
10609 { "(bad)", { XX } },
10611 { "(bad)", { XX } },
10612 { "(bad)", { XX } },
10616 { "fcmovnb",{ ST, STi } },
10617 { "fcmovne",{ ST, STi } },
10618 { "fcmovnbe",{ ST, STi } },
10619 { "fcmovnu",{ ST, STi } },
10621 { "fucomi", { ST, STi } },
10622 { "fcomi", { ST, STi } },
10623 { "(bad)", { XX } },
10627 { "fadd", { STi, ST } },
10628 { "fmul", { STi, ST } },
10629 { "(bad)", { XX } },
10630 { "(bad)", { XX } },
10631 { "fsub!M", { STi, ST } },
10632 { "fsubM", { STi, ST } },
10633 { "fdiv!M", { STi, ST } },
10634 { "fdivM", { STi, ST } },
10638 { "ffree", { STi } },
10639 { "(bad)", { XX } },
10640 { "fst", { STi } },
10641 { "fstp", { STi } },
10642 { "fucom", { STi } },
10643 { "fucomp", { STi } },
10644 { "(bad)", { XX } },
10645 { "(bad)", { XX } },
10649 { "faddp", { STi, ST } },
10650 { "fmulp", { STi, ST } },
10651 { "(bad)", { XX } },
10653 { "fsub!Mp", { STi, ST } },
10654 { "fsubMp", { STi, ST } },
10655 { "fdiv!Mp", { STi, ST } },
10656 { "fdivMp", { STi, ST } },
10660 { "ffreep", { STi } },
10661 { "(bad)", { XX } },
10662 { "(bad)", { XX } },
10663 { "(bad)", { XX } },
10665 { "fucomip", { ST, STi } },
10666 { "fcomip", { ST, STi } },
10667 { "(bad)", { XX } },
10671 static char *fgrps[][8] = {
10674 "fnop","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10679 "fchs","fabs","(bad)","(bad)","ftst","fxam","(bad)","(bad)",
10684 "fld1","fldl2t","fldl2e","fldpi","fldlg2","fldln2","fldz","(bad)",
10689 "f2xm1","fyl2x","fptan","fpatan","fxtract","fprem1","fdecstp","fincstp",
10694 "fprem","fyl2xp1","fsqrt","fsincos","frndint","fscale","fsin","fcos",
10699 "(bad)","fucompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10704 "feni(287 only)","fdisi(287 only)","fNclex","fNinit",
10705 "fNsetpm(287 only)","(bad)","(bad)","(bad)",
10710 "(bad)","fcompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10715 "fNstsw","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10720 OP_Skip_MODRM (int bytemode ATTRIBUTE_UNUSED,
10721 int sizeflag ATTRIBUTE_UNUSED)
10723 /* Skip mod/rm byte. */
10729 dofloat (int sizeflag)
10731 const struct dis386 *dp;
10732 unsigned char floatop;
10734 floatop = codep[-1];
10736 if (modrm.mod != 3)
10738 int fp_indx = (floatop - 0xd8) * 8 + modrm.reg;
10740 putop (float_mem[fp_indx], sizeflag);
10743 OP_E (float_mem_mode[fp_indx], sizeflag);
10746 /* Skip mod/rm byte. */
10750 dp = &float_reg[floatop - 0xd8][modrm.reg];
10751 if (dp->name == NULL)
10753 putop (fgrps[dp->op[0].bytemode][modrm.rm], sizeflag);
10755 /* Instruction fnstsw is only one with strange arg. */
10756 if (floatop == 0xdf && codep[-1] == 0xe0)
10757 strcpy (op_out[0], names16[0]);
10761 putop (dp->name, sizeflag);
10766 (*dp->op[0].rtn) (dp->op[0].bytemode, sizeflag);
10771 (*dp->op[1].rtn) (dp->op[1].bytemode, sizeflag);
10776 OP_ST (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
10778 oappend ("%st" + intel_syntax);
10782 OP_STi (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
10784 sprintf (scratchbuf, "%%st(%d)", modrm.rm);
10785 oappend (scratchbuf + intel_syntax);
10788 /* Capital letters in template are macros. */
10790 putop (const char *template, int sizeflag)
10795 unsigned int l = 0, len = 1;
10798 #define SAVE_LAST(c) \
10799 if (l < len && l < sizeof (last)) \
10804 for (p = template; *p; p++)
10821 while (*++p != '|')
10822 if (*p == '}' || *p == '\0')
10825 /* Fall through. */
10830 while (*++p != '}')
10841 if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS))
10847 if (sizeflag & SUFFIX_ALWAYS)
10851 if (intel_syntax && !alt)
10853 if ((prefixes & PREFIX_DATA) || (sizeflag & SUFFIX_ALWAYS))
10855 if (sizeflag & DFLAG)
10856 *obufp++ = intel_syntax ? 'd' : 'l';
10858 *obufp++ = intel_syntax ? 'w' : 's';
10859 used_prefixes |= (prefixes & PREFIX_DATA);
10863 if (intel_syntax || !(sizeflag & SUFFIX_ALWAYS))
10866 if (modrm.mod == 3)
10870 else if (sizeflag & DFLAG)
10871 *obufp++ = intel_syntax ? 'd' : 'l';
10874 used_prefixes |= (prefixes & PREFIX_DATA);
10879 case 'E': /* For jcxz/jecxz */
10880 if (address_mode == mode_64bit)
10882 if (sizeflag & AFLAG)
10888 if (sizeflag & AFLAG)
10890 used_prefixes |= (prefixes & PREFIX_ADDR);
10895 if ((prefixes & PREFIX_ADDR) || (sizeflag & SUFFIX_ALWAYS))
10897 if (sizeflag & AFLAG)
10898 *obufp++ = address_mode == mode_64bit ? 'q' : 'l';
10900 *obufp++ = address_mode == mode_64bit ? 'l' : 'w';
10901 used_prefixes |= (prefixes & PREFIX_ADDR);
10905 if (intel_syntax || (obufp[-1] != 's' && !(sizeflag & SUFFIX_ALWAYS)))
10907 if ((rex & REX_W) || (sizeflag & DFLAG))
10911 if (!(rex & REX_W))
10912 used_prefixes |= (prefixes & PREFIX_DATA);
10917 if ((prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_CS
10918 || (prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_DS)
10920 used_prefixes |= prefixes & (PREFIX_CS | PREFIX_DS);
10923 if (prefixes & PREFIX_DS)
10944 if (address_mode == mode_64bit && (sizeflag & SUFFIX_ALWAYS))
10949 /* Fall through. */
10952 if (l != 0 || len != 1)
10960 if (sizeflag & SUFFIX_ALWAYS)
10964 if (intel_mnemonic != cond)
10968 if ((prefixes & PREFIX_FWAIT) == 0)
10971 used_prefixes |= PREFIX_FWAIT;
10977 else if (intel_syntax && (sizeflag & DFLAG))
10981 if (!(rex & REX_W))
10982 used_prefixes |= (prefixes & PREFIX_DATA);
10987 if (address_mode == mode_64bit && (sizeflag & DFLAG))
10992 /* Fall through. */
10996 if ((prefixes & PREFIX_DATA)
10998 || (sizeflag & SUFFIX_ALWAYS))
11005 if (sizeflag & DFLAG)
11010 used_prefixes |= (prefixes & PREFIX_DATA);
11016 if (address_mode == mode_64bit && (sizeflag & DFLAG))
11018 if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS))
11022 /* Fall through. */
11025 if (l == 0 && len == 1)
11028 if (intel_syntax && !alt)
11031 if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS))
11037 if (sizeflag & DFLAG)
11038 *obufp++ = intel_syntax ? 'd' : 'l';
11042 used_prefixes |= (prefixes & PREFIX_DATA);
11047 if (l != 1 || len != 2 || last[0] != 'L')
11053 || (modrm.mod == 3 && !(sizeflag & SUFFIX_ALWAYS)))
11068 else if (sizeflag & DFLAG)
11077 if (intel_syntax && !p[1]
11078 && ((rex & REX_W) || (sizeflag & DFLAG)))
11080 if (!(rex & REX_W))
11081 used_prefixes |= (prefixes & PREFIX_DATA);
11086 if (address_mode == mode_64bit && (sizeflag & DFLAG))
11088 if (sizeflag & SUFFIX_ALWAYS)
11092 /* Fall through. */
11096 if (sizeflag & SUFFIX_ALWAYS)
11102 if (sizeflag & DFLAG)
11106 used_prefixes |= (prefixes & PREFIX_DATA);
11111 if (l != 0 || len != 1)
11116 if (need_vex && vex.prefix)
11118 if (vex.prefix == DATA_PREFIX_OPCODE)
11123 else if (prefixes & PREFIX_DATA)
11127 used_prefixes |= (prefixes & PREFIX_DATA);
11130 if (l == 0 && len == 1)
11132 if (intel_syntax || !(sizeflag & SUFFIX_ALWAYS))
11143 if (l != 1 || len != 2 || last[0] != 'X')
11151 || (modrm.mod == 3 && !(sizeflag & SUFFIX_ALWAYS)))
11153 switch (vex.length)
11167 /* operand size flag for cwtl, cbtw */
11176 else if (sizeflag & DFLAG)
11180 if (!(rex & REX_W))
11181 used_prefixes |= (prefixes & PREFIX_DATA);
11191 oappend (const char *s)
11194 obufp += strlen (s);
11200 if (prefixes & PREFIX_CS)
11202 used_prefixes |= PREFIX_CS;
11203 oappend ("%cs:" + intel_syntax);
11205 if (prefixes & PREFIX_DS)
11207 used_prefixes |= PREFIX_DS;
11208 oappend ("%ds:" + intel_syntax);
11210 if (prefixes & PREFIX_SS)
11212 used_prefixes |= PREFIX_SS;
11213 oappend ("%ss:" + intel_syntax);
11215 if (prefixes & PREFIX_ES)
11217 used_prefixes |= PREFIX_ES;
11218 oappend ("%es:" + intel_syntax);
11220 if (prefixes & PREFIX_FS)
11222 used_prefixes |= PREFIX_FS;
11223 oappend ("%fs:" + intel_syntax);
11225 if (prefixes & PREFIX_GS)
11227 used_prefixes |= PREFIX_GS;
11228 oappend ("%gs:" + intel_syntax);
11233 OP_indirE (int bytemode, int sizeflag)
11237 OP_E (bytemode, sizeflag);
11241 print_operand_value (char *buf, int hex, bfd_vma disp)
11243 if (address_mode == mode_64bit)
11251 sprintf_vma (tmp, disp);
11252 for (i = 0; tmp[i] == '0' && tmp[i + 1]; i++);
11253 strcpy (buf + 2, tmp + i);
11257 bfd_signed_vma v = disp;
11264 /* Check for possible overflow on 0x8000000000000000. */
11267 strcpy (buf, "9223372036854775808");
11281 tmp[28 - i] = (v % 10) + '0';
11285 strcpy (buf, tmp + 29 - i);
11291 sprintf (buf, "0x%x", (unsigned int) disp);
11293 sprintf (buf, "%d", (int) disp);
11297 /* Put DISP in BUF as signed hex number. */
11300 print_displacement (char *buf, bfd_vma disp)
11302 bfd_signed_vma val = disp;
11311 /* Check for possible overflow. */
11314 switch (address_mode)
11317 strcpy (buf + j, "0x8000000000000000");
11320 strcpy (buf + j, "0x80000000");
11323 strcpy (buf + j, "0x8000");
11333 sprintf_vma (tmp, (bfd_vma) val);
11334 for (i = 0; tmp[i] == '0'; i++)
11336 if (tmp[i] == '\0')
11338 strcpy (buf + j, tmp + i);
11342 intel_operand_size (int bytemode, int sizeflag)
11348 oappend ("BYTE PTR ");
11352 oappend ("WORD PTR ");
11355 if (address_mode == mode_64bit && (sizeflag & DFLAG))
11357 oappend ("QWORD PTR ");
11358 used_prefixes |= (prefixes & PREFIX_DATA);
11366 oappend ("QWORD PTR ");
11367 else if ((sizeflag & DFLAG) || bytemode == dq_mode)
11368 oappend ("DWORD PTR ");
11370 oappend ("WORD PTR ");
11371 used_prefixes |= (prefixes & PREFIX_DATA);
11374 if ((rex & REX_W) || (sizeflag & DFLAG))
11376 oappend ("WORD PTR ");
11377 if (!(rex & REX_W))
11378 used_prefixes |= (prefixes & PREFIX_DATA);
11381 if (sizeflag & DFLAG)
11382 oappend ("QWORD PTR ");
11384 oappend ("DWORD PTR ");
11385 used_prefixes |= (prefixes & PREFIX_DATA);
11389 oappend ("DWORD PTR ");
11392 oappend ("QWORD PTR ");
11395 if (address_mode == mode_64bit)
11396 oappend ("QWORD PTR ");
11398 oappend ("DWORD PTR ");
11401 if (sizeflag & DFLAG)
11402 oappend ("FWORD PTR ");
11404 oappend ("DWORD PTR ");
11405 used_prefixes |= (prefixes & PREFIX_DATA);
11408 oappend ("TBYTE PTR ");
11413 switch (vex.length)
11416 oappend ("XMMWORD PTR ");
11419 oappend ("YMMWORD PTR ");
11426 oappend ("XMMWORD PTR ");
11429 oappend ("XMMWORD PTR ");
11435 switch (vex.length)
11438 oappend ("QWORD PTR ");
11441 oappend ("XMMWORD PTR ");
11451 switch (vex.length)
11454 oappend ("QWORD PTR ");
11457 oappend ("YMMWORD PTR ");
11464 oappend ("OWORD PTR ");
11472 OP_E_register (int bytemode, int sizeflag)
11474 int reg = modrm.rm;
11475 const char **names;
11500 names = address_mode == mode_64bit ? names64 : names32;
11503 if (address_mode == mode_64bit && (sizeflag & DFLAG))
11506 used_prefixes |= (prefixes & PREFIX_DATA);
11519 else if ((sizeflag & DFLAG) || bytemode != v_mode)
11523 used_prefixes |= (prefixes & PREFIX_DATA);
11528 oappend (INTERNAL_DISASSEMBLER_ERROR);
11531 oappend (names[reg]);
11535 OP_E_memory (int bytemode, int sizeflag, int has_drex)
11538 int add = (rex & REX_B) ? 8 : 0;
11543 intel_operand_size (bytemode, sizeflag);
11546 if ((sizeflag & AFLAG) || address_mode == mode_64bit)
11548 /* 32/64 bit address mode */
11566 FETCH_DATA (the_info, codep + 1);
11567 index = (*codep >> 3) & 7;
11568 scale = (*codep >> 6) & 3;
11573 haveindex = index != 4;
11576 rbase = base + add;
11578 /* If we have a DREX byte, skip it now
11579 (it has already been handled) */
11582 FETCH_DATA (the_info, codep + 1);
11592 if (address_mode == mode_64bit && !havesib)
11598 FETCH_DATA (the_info, codep + 1);
11600 if ((disp & 0x80) != 0)
11608 /* In 32bit mode, we need index register to tell [offset] from
11609 [eiz*1 + offset]. */
11610 needindex = (havesib
11613 && address_mode == mode_32bit);
11614 havedisp = (havebase
11616 || (havesib && (haveindex || scale != 0)));
11619 if (modrm.mod != 0 || base == 5)
11621 if (havedisp || riprel)
11622 print_displacement (scratchbuf, disp);
11624 print_operand_value (scratchbuf, 1, disp);
11625 oappend (scratchbuf);
11629 oappend (sizeflag & AFLAG ? "(%rip)" : "(%eip)");
11633 if (havebase || haveindex || riprel)
11634 used_prefixes |= PREFIX_ADDR;
11636 if (havedisp || (intel_syntax && riprel))
11638 *obufp++ = open_char;
11639 if (intel_syntax && riprel)
11642 oappend (sizeflag & AFLAG ? "rip" : "eip");
11646 oappend (address_mode == mode_64bit && (sizeflag & AFLAG)
11647 ? names64[rbase] : names32[rbase]);
11650 /* ESP/RSP won't allow index. If base isn't ESP/RSP,
11651 print index to tell base + index from base. */
11655 || (havebase && base != ESP_REG_NUM))
11657 if (!intel_syntax || havebase)
11659 *obufp++ = separator_char;
11663 oappend (address_mode == mode_64bit
11664 && (sizeflag & AFLAG)
11665 ? names64[index] : names32[index]);
11667 oappend (address_mode == mode_64bit
11668 && (sizeflag & AFLAG)
11669 ? index64 : index32);
11671 *obufp++ = scale_char;
11673 sprintf (scratchbuf, "%d", 1 << scale);
11674 oappend (scratchbuf);
11678 && (disp || modrm.mod != 0 || base == 5))
11680 if (!havedisp || (bfd_signed_vma) disp >= 0)
11685 else if (modrm.mod != 1)
11689 disp = - (bfd_signed_vma) disp;
11693 print_displacement (scratchbuf, disp);
11695 print_operand_value (scratchbuf, 1, disp);
11696 oappend (scratchbuf);
11699 *obufp++ = close_char;
11702 else if (intel_syntax)
11704 if (modrm.mod != 0 || base == 5)
11706 if (prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
11707 | PREFIX_ES | PREFIX_FS | PREFIX_GS))
11711 oappend (names_seg[ds_reg - es_reg]);
11714 print_operand_value (scratchbuf, 1, disp);
11715 oappend (scratchbuf);
11720 { /* 16 bit address mode */
11727 if ((disp & 0x8000) != 0)
11732 FETCH_DATA (the_info, codep + 1);
11734 if ((disp & 0x80) != 0)
11739 if ((disp & 0x8000) != 0)
11745 if (modrm.mod != 0 || modrm.rm == 6)
11747 print_displacement (scratchbuf, disp);
11748 oappend (scratchbuf);
11751 if (modrm.mod != 0 || modrm.rm != 6)
11753 *obufp++ = open_char;
11755 oappend (index16[modrm.rm]);
11757 && (disp || modrm.mod != 0 || modrm.rm == 6))
11759 if ((bfd_signed_vma) disp >= 0)
11764 else if (modrm.mod != 1)
11768 disp = - (bfd_signed_vma) disp;
11771 print_displacement (scratchbuf, disp);
11772 oappend (scratchbuf);
11775 *obufp++ = close_char;
11778 else if (intel_syntax)
11780 if (prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
11781 | PREFIX_ES | PREFIX_FS | PREFIX_GS))
11785 oappend (names_seg[ds_reg - es_reg]);
11788 print_operand_value (scratchbuf, 1, disp & 0xffff);
11789 oappend (scratchbuf);
11795 OP_E_extended (int bytemode, int sizeflag, int has_drex)
11797 /* Skip mod/rm byte. */
11801 if (modrm.mod == 3)
11802 OP_E_register (bytemode, sizeflag);
11804 OP_E_memory (bytemode, sizeflag, has_drex);
11808 OP_E (int bytemode, int sizeflag)
11810 OP_E_extended (bytemode, sizeflag, 0);
11815 OP_G (int bytemode, int sizeflag)
11826 oappend (names8rex[modrm.reg + add]);
11828 oappend (names8[modrm.reg + add]);
11831 oappend (names16[modrm.reg + add]);
11834 oappend (names32[modrm.reg + add]);
11837 oappend (names64[modrm.reg + add]);
11846 oappend (names64[modrm.reg + add]);
11847 else if ((sizeflag & DFLAG) || bytemode != v_mode)
11848 oappend (names32[modrm.reg + add]);
11850 oappend (names16[modrm.reg + add]);
11851 used_prefixes |= (prefixes & PREFIX_DATA);
11854 if (address_mode == mode_64bit)
11855 oappend (names64[modrm.reg + add]);
11857 oappend (names32[modrm.reg + add]);
11860 oappend (INTERNAL_DISASSEMBLER_ERROR);
11873 FETCH_DATA (the_info, codep + 8);
11874 a = *codep++ & 0xff;
11875 a |= (*codep++ & 0xff) << 8;
11876 a |= (*codep++ & 0xff) << 16;
11877 a |= (*codep++ & 0xff) << 24;
11878 b = *codep++ & 0xff;
11879 b |= (*codep++ & 0xff) << 8;
11880 b |= (*codep++ & 0xff) << 16;
11881 b |= (*codep++ & 0xff) << 24;
11882 x = a + ((bfd_vma) b << 32);
11890 static bfd_signed_vma
11893 bfd_signed_vma x = 0;
11895 FETCH_DATA (the_info, codep + 4);
11896 x = *codep++ & (bfd_signed_vma) 0xff;
11897 x |= (*codep++ & (bfd_signed_vma) 0xff) << 8;
11898 x |= (*codep++ & (bfd_signed_vma) 0xff) << 16;
11899 x |= (*codep++ & (bfd_signed_vma) 0xff) << 24;
11903 static bfd_signed_vma
11906 bfd_signed_vma x = 0;
11908 FETCH_DATA (the_info, codep + 4);
11909 x = *codep++ & (bfd_signed_vma) 0xff;
11910 x |= (*codep++ & (bfd_signed_vma) 0xff) << 8;
11911 x |= (*codep++ & (bfd_signed_vma) 0xff) << 16;
11912 x |= (*codep++ & (bfd_signed_vma) 0xff) << 24;
11914 x = (x ^ ((bfd_signed_vma) 1 << 31)) - ((bfd_signed_vma) 1 << 31);
11924 FETCH_DATA (the_info, codep + 2);
11925 x = *codep++ & 0xff;
11926 x |= (*codep++ & 0xff) << 8;
11931 set_op (bfd_vma op, int riprel)
11933 op_index[op_ad] = op_ad;
11934 if (address_mode == mode_64bit)
11936 op_address[op_ad] = op;
11937 op_riprel[op_ad] = riprel;
11941 /* Mask to get a 32-bit address. */
11942 op_address[op_ad] = op & 0xffffffff;
11943 op_riprel[op_ad] = riprel & 0xffffffff;
11948 OP_REG (int code, int sizeflag)
11960 case ax_reg: case cx_reg: case dx_reg: case bx_reg:
11961 case sp_reg: case bp_reg: case si_reg: case di_reg:
11962 s = names16[code - ax_reg + add];
11964 case es_reg: case ss_reg: case cs_reg:
11965 case ds_reg: case fs_reg: case gs_reg:
11966 s = names_seg[code - es_reg + add];
11968 case al_reg: case ah_reg: case cl_reg: case ch_reg:
11969 case dl_reg: case dh_reg: case bl_reg: case bh_reg:
11972 s = names8rex[code - al_reg + add];
11974 s = names8[code - al_reg];
11976 case rAX_reg: case rCX_reg: case rDX_reg: case rBX_reg:
11977 case rSP_reg: case rBP_reg: case rSI_reg: case rDI_reg:
11978 if (address_mode == mode_64bit && (sizeflag & DFLAG))
11980 s = names64[code - rAX_reg + add];
11983 code += eAX_reg - rAX_reg;
11984 /* Fall through. */
11985 case eAX_reg: case eCX_reg: case eDX_reg: case eBX_reg:
11986 case eSP_reg: case eBP_reg: case eSI_reg: case eDI_reg:
11989 s = names64[code - eAX_reg + add];
11990 else if (sizeflag & DFLAG)
11991 s = names32[code - eAX_reg + add];
11993 s = names16[code - eAX_reg + add];
11994 used_prefixes |= (prefixes & PREFIX_DATA);
11997 s = INTERNAL_DISASSEMBLER_ERROR;
12004 OP_IMREG (int code, int sizeflag)
12016 case ax_reg: case cx_reg: case dx_reg: case bx_reg:
12017 case sp_reg: case bp_reg: case si_reg: case di_reg:
12018 s = names16[code - ax_reg];
12020 case es_reg: case ss_reg: case cs_reg:
12021 case ds_reg: case fs_reg: case gs_reg:
12022 s = names_seg[code - es_reg];
12024 case al_reg: case ah_reg: case cl_reg: case ch_reg:
12025 case dl_reg: case dh_reg: case bl_reg: case bh_reg:
12028 s = names8rex[code - al_reg];
12030 s = names8[code - al_reg];
12032 case eAX_reg: case eCX_reg: case eDX_reg: case eBX_reg:
12033 case eSP_reg: case eBP_reg: case eSI_reg: case eDI_reg:
12036 s = names64[code - eAX_reg];
12037 else if (sizeflag & DFLAG)
12038 s = names32[code - eAX_reg];
12040 s = names16[code - eAX_reg];
12041 used_prefixes |= (prefixes & PREFIX_DATA);
12043 case z_mode_ax_reg:
12044 if ((rex & REX_W) || (sizeflag & DFLAG))
12048 if (!(rex & REX_W))
12049 used_prefixes |= (prefixes & PREFIX_DATA);
12052 s = INTERNAL_DISASSEMBLER_ERROR;
12059 OP_I (int bytemode, int sizeflag)
12062 bfd_signed_vma mask = -1;
12067 FETCH_DATA (the_info, codep + 1);
12072 if (address_mode == mode_64bit)
12077 /* Fall through. */
12082 else if (sizeflag & DFLAG)
12092 used_prefixes |= (prefixes & PREFIX_DATA);
12103 oappend (INTERNAL_DISASSEMBLER_ERROR);
12108 scratchbuf[0] = '$';
12109 print_operand_value (scratchbuf + 1, 1, op);
12110 oappend (scratchbuf + intel_syntax);
12111 scratchbuf[0] = '\0';
12115 OP_I64 (int bytemode, int sizeflag)
12118 bfd_signed_vma mask = -1;
12120 if (address_mode != mode_64bit)
12122 OP_I (bytemode, sizeflag);
12129 FETCH_DATA (the_info, codep + 1);
12137 else if (sizeflag & DFLAG)
12147 used_prefixes |= (prefixes & PREFIX_DATA);
12154 oappend (INTERNAL_DISASSEMBLER_ERROR);
12159 scratchbuf[0] = '$';
12160 print_operand_value (scratchbuf + 1, 1, op);
12161 oappend (scratchbuf + intel_syntax);
12162 scratchbuf[0] = '\0';
12166 OP_sI (int bytemode, int sizeflag)
12169 bfd_signed_vma mask = -1;
12174 FETCH_DATA (the_info, codep + 1);
12176 if ((op & 0x80) != 0)
12184 else if (sizeflag & DFLAG)
12193 if ((op & 0x8000) != 0)
12196 used_prefixes |= (prefixes & PREFIX_DATA);
12201 if ((op & 0x8000) != 0)
12205 oappend (INTERNAL_DISASSEMBLER_ERROR);
12209 scratchbuf[0] = '$';
12210 print_operand_value (scratchbuf + 1, 1, op);
12211 oappend (scratchbuf + intel_syntax);
12215 OP_J (int bytemode, int sizeflag)
12219 bfd_vma segment = 0;
12224 FETCH_DATA (the_info, codep + 1);
12226 if ((disp & 0x80) != 0)
12230 if ((sizeflag & DFLAG) || (rex & REX_W))
12235 if ((disp & 0x8000) != 0)
12237 /* In 16bit mode, address is wrapped around at 64k within
12238 the same segment. Otherwise, a data16 prefix on a jump
12239 instruction means that the pc is masked to 16 bits after
12240 the displacement is added! */
12242 if ((prefixes & PREFIX_DATA) == 0)
12243 segment = ((start_pc + codep - start_codep)
12244 & ~((bfd_vma) 0xffff));
12246 used_prefixes |= (prefixes & PREFIX_DATA);
12249 oappend (INTERNAL_DISASSEMBLER_ERROR);
12252 disp = ((start_pc + codep - start_codep + disp) & mask) | segment;
12254 print_operand_value (scratchbuf, 1, disp);
12255 oappend (scratchbuf);
12259 OP_SEG (int bytemode, int sizeflag)
12261 if (bytemode == w_mode)
12262 oappend (names_seg[modrm.reg]);
12264 OP_E (modrm.mod == 3 ? bytemode : w_mode, sizeflag);
12268 OP_DIR (int dummy ATTRIBUTE_UNUSED, int sizeflag)
12272 if (sizeflag & DFLAG)
12282 used_prefixes |= (prefixes & PREFIX_DATA);
12284 sprintf (scratchbuf, "0x%x:0x%x", seg, offset);
12286 sprintf (scratchbuf, "$0x%x,$0x%x", seg, offset);
12287 oappend (scratchbuf);
12291 OP_OFF (int bytemode, int sizeflag)
12295 if (intel_syntax && (sizeflag & SUFFIX_ALWAYS))
12296 intel_operand_size (bytemode, sizeflag);
12299 if ((sizeflag & AFLAG) || address_mode == mode_64bit)
12306 if (!(prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
12307 | PREFIX_ES | PREFIX_FS | PREFIX_GS)))
12309 oappend (names_seg[ds_reg - es_reg]);
12313 print_operand_value (scratchbuf, 1, off);
12314 oappend (scratchbuf);
12318 OP_OFF64 (int bytemode, int sizeflag)
12322 if (address_mode != mode_64bit
12323 || (prefixes & PREFIX_ADDR))
12325 OP_OFF (bytemode, sizeflag);
12329 if (intel_syntax && (sizeflag & SUFFIX_ALWAYS))
12330 intel_operand_size (bytemode, sizeflag);
12337 if (!(prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS
12338 | PREFIX_ES | PREFIX_FS | PREFIX_GS)))
12340 oappend (names_seg[ds_reg - es_reg]);
12344 print_operand_value (scratchbuf, 1, off);
12345 oappend (scratchbuf);
12349 ptr_reg (int code, int sizeflag)
12353 *obufp++ = open_char;
12354 used_prefixes |= (prefixes & PREFIX_ADDR);
12355 if (address_mode == mode_64bit)
12357 if (!(sizeflag & AFLAG))
12358 s = names32[code - eAX_reg];
12360 s = names64[code - eAX_reg];
12362 else if (sizeflag & AFLAG)
12363 s = names32[code - eAX_reg];
12365 s = names16[code - eAX_reg];
12367 *obufp++ = close_char;
12372 OP_ESreg (int code, int sizeflag)
12378 case 0x6d: /* insw/insl */
12379 intel_operand_size (z_mode, sizeflag);
12381 case 0xa5: /* movsw/movsl/movsq */
12382 case 0xa7: /* cmpsw/cmpsl/cmpsq */
12383 case 0xab: /* stosw/stosl */
12384 case 0xaf: /* scasw/scasl */
12385 intel_operand_size (v_mode, sizeflag);
12388 intel_operand_size (b_mode, sizeflag);
12391 oappend ("%es:" + intel_syntax);
12392 ptr_reg (code, sizeflag);
12396 OP_DSreg (int code, int sizeflag)
12402 case 0x6f: /* outsw/outsl */
12403 intel_operand_size (z_mode, sizeflag);
12405 case 0xa5: /* movsw/movsl/movsq */
12406 case 0xa7: /* cmpsw/cmpsl/cmpsq */
12407 case 0xad: /* lodsw/lodsl/lodsq */
12408 intel_operand_size (v_mode, sizeflag);
12411 intel_operand_size (b_mode, sizeflag);
12420 | PREFIX_GS)) == 0)
12421 prefixes |= PREFIX_DS;
12423 ptr_reg (code, sizeflag);
12427 OP_C (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12435 else if (address_mode != mode_64bit && (prefixes & PREFIX_LOCK))
12437 lock_prefix = NULL;
12438 used_prefixes |= PREFIX_LOCK;
12443 sprintf (scratchbuf, "%%cr%d", modrm.reg + add);
12444 oappend (scratchbuf + intel_syntax);
12448 OP_D (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12457 sprintf (scratchbuf, "db%d", modrm.reg + add);
12459 sprintf (scratchbuf, "%%db%d", modrm.reg + add);
12460 oappend (scratchbuf);
12464 OP_T (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12466 sprintf (scratchbuf, "%%tr%d", modrm.reg);
12467 oappend (scratchbuf + intel_syntax);
12471 OP_R (int bytemode, int sizeflag)
12473 if (modrm.mod == 3)
12474 OP_E (bytemode, sizeflag);
12480 OP_MMX (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12482 used_prefixes |= (prefixes & PREFIX_DATA);
12483 if (prefixes & PREFIX_DATA)
12491 sprintf (scratchbuf, "%%xmm%d", modrm.reg + add);
12494 sprintf (scratchbuf, "%%mm%d", modrm.reg);
12495 oappend (scratchbuf + intel_syntax);
12499 OP_XMM (int bytemode, int sizeflag ATTRIBUTE_UNUSED)
12507 if (need_vex && bytemode != xmm_mode)
12509 switch (vex.length)
12512 sprintf (scratchbuf, "%%xmm%d", modrm.reg + add);
12515 sprintf (scratchbuf, "%%ymm%d", modrm.reg + add);
12522 sprintf (scratchbuf, "%%xmm%d", modrm.reg + add);
12523 oappend (scratchbuf + intel_syntax);
12527 OP_EM (int bytemode, int sizeflag)
12529 if (modrm.mod != 3)
12531 if (intel_syntax && bytemode == v_mode)
12533 bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode;
12534 used_prefixes |= (prefixes & PREFIX_DATA);
12536 OP_E (bytemode, sizeflag);
12540 /* Skip mod/rm byte. */
12543 used_prefixes |= (prefixes & PREFIX_DATA);
12544 if (prefixes & PREFIX_DATA)
12553 sprintf (scratchbuf, "%%xmm%d", modrm.rm + add);
12556 sprintf (scratchbuf, "%%mm%d", modrm.rm);
12557 oappend (scratchbuf + intel_syntax);
12560 /* cvt* are the only instructions in sse2 which have
12561 both SSE and MMX operands and also have 0x66 prefix
12562 in their opcode. 0x66 was originally used to differentiate
12563 between SSE and MMX instruction(operands). So we have to handle the
12564 cvt* separately using OP_EMC and OP_MXC */
12566 OP_EMC (int bytemode, int sizeflag)
12568 if (modrm.mod != 3)
12570 if (intel_syntax && bytemode == v_mode)
12572 bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode;
12573 used_prefixes |= (prefixes & PREFIX_DATA);
12575 OP_E (bytemode, sizeflag);
12579 /* Skip mod/rm byte. */
12582 used_prefixes |= (prefixes & PREFIX_DATA);
12583 sprintf (scratchbuf, "%%mm%d", modrm.rm);
12584 oappend (scratchbuf + intel_syntax);
12588 OP_MXC (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12590 used_prefixes |= (prefixes & PREFIX_DATA);
12591 sprintf (scratchbuf, "%%mm%d", modrm.reg);
12592 oappend (scratchbuf + intel_syntax);
12596 OP_EX (int bytemode, int sizeflag)
12599 if (modrm.mod != 3)
12601 OP_E (bytemode, sizeflag);
12610 /* Skip mod/rm byte. */
12614 && bytemode != xmm_mode
12615 && bytemode != xmmq_mode)
12617 switch (vex.length)
12620 sprintf (scratchbuf, "%%xmm%d", modrm.rm + add);
12623 sprintf (scratchbuf, "%%ymm%d", modrm.rm + add);
12630 sprintf (scratchbuf, "%%xmm%d", modrm.rm + add);
12631 oappend (scratchbuf + intel_syntax);
12635 OP_MS (int bytemode, int sizeflag)
12637 if (modrm.mod == 3)
12638 OP_EM (bytemode, sizeflag);
12644 OP_XS (int bytemode, int sizeflag)
12646 if (modrm.mod == 3)
12647 OP_EX (bytemode, sizeflag);
12653 OP_M (int bytemode, int sizeflag)
12655 if (modrm.mod == 3)
12656 /* bad bound,lea,lds,les,lfs,lgs,lss,cmpxchg8b,vmptrst modrm */
12659 OP_E (bytemode, sizeflag);
12663 OP_0f07 (int bytemode, int sizeflag)
12665 if (modrm.mod != 3 || modrm.rm != 0)
12668 OP_E (bytemode, sizeflag);
12671 /* NOP is an alias of "xchg %ax,%ax" in 16bit mode, "xchg %eax,%eax" in
12672 32bit mode and "xchg %rax,%rax" in 64bit mode. */
12675 NOP_Fixup1 (int bytemode, int sizeflag)
12677 if ((prefixes & PREFIX_DATA) != 0
12680 && address_mode == mode_64bit))
12681 OP_REG (bytemode, sizeflag);
12683 strcpy (obuf, "nop");
12687 NOP_Fixup2 (int bytemode, int sizeflag)
12689 if ((prefixes & PREFIX_DATA) != 0
12692 && address_mode == mode_64bit))
12693 OP_IMREG (bytemode, sizeflag);
12696 static const char *const Suffix3DNow[] = {
12697 /* 00 */ NULL, NULL, NULL, NULL,
12698 /* 04 */ NULL, NULL, NULL, NULL,
12699 /* 08 */ NULL, NULL, NULL, NULL,
12700 /* 0C */ "pi2fw", "pi2fd", NULL, NULL,
12701 /* 10 */ NULL, NULL, NULL, NULL,
12702 /* 14 */ NULL, NULL, NULL, NULL,
12703 /* 18 */ NULL, NULL, NULL, NULL,
12704 /* 1C */ "pf2iw", "pf2id", NULL, NULL,
12705 /* 20 */ NULL, NULL, NULL, NULL,
12706 /* 24 */ NULL, NULL, NULL, NULL,
12707 /* 28 */ NULL, NULL, NULL, NULL,
12708 /* 2C */ NULL, NULL, NULL, NULL,
12709 /* 30 */ NULL, NULL, NULL, NULL,
12710 /* 34 */ NULL, NULL, NULL, NULL,
12711 /* 38 */ NULL, NULL, NULL, NULL,
12712 /* 3C */ NULL, NULL, NULL, NULL,
12713 /* 40 */ NULL, NULL, NULL, NULL,
12714 /* 44 */ NULL, NULL, NULL, NULL,
12715 /* 48 */ NULL, NULL, NULL, NULL,
12716 /* 4C */ NULL, NULL, NULL, NULL,
12717 /* 50 */ NULL, NULL, NULL, NULL,
12718 /* 54 */ NULL, NULL, NULL, NULL,
12719 /* 58 */ NULL, NULL, NULL, NULL,
12720 /* 5C */ NULL, NULL, NULL, NULL,
12721 /* 60 */ NULL, NULL, NULL, NULL,
12722 /* 64 */ NULL, NULL, NULL, NULL,
12723 /* 68 */ NULL, NULL, NULL, NULL,
12724 /* 6C */ NULL, NULL, NULL, NULL,
12725 /* 70 */ NULL, NULL, NULL, NULL,
12726 /* 74 */ NULL, NULL, NULL, NULL,
12727 /* 78 */ NULL, NULL, NULL, NULL,
12728 /* 7C */ NULL, NULL, NULL, NULL,
12729 /* 80 */ NULL, NULL, NULL, NULL,
12730 /* 84 */ NULL, NULL, NULL, NULL,
12731 /* 88 */ NULL, NULL, "pfnacc", NULL,
12732 /* 8C */ NULL, NULL, "pfpnacc", NULL,
12733 /* 90 */ "pfcmpge", NULL, NULL, NULL,
12734 /* 94 */ "pfmin", NULL, "pfrcp", "pfrsqrt",
12735 /* 98 */ NULL, NULL, "pfsub", NULL,
12736 /* 9C */ NULL, NULL, "pfadd", NULL,
12737 /* A0 */ "pfcmpgt", NULL, NULL, NULL,
12738 /* A4 */ "pfmax", NULL, "pfrcpit1", "pfrsqit1",
12739 /* A8 */ NULL, NULL, "pfsubr", NULL,
12740 /* AC */ NULL, NULL, "pfacc", NULL,
12741 /* B0 */ "pfcmpeq", NULL, NULL, NULL,
12742 /* B4 */ "pfmul", NULL, "pfrcpit2", "pmulhrw",
12743 /* B8 */ NULL, NULL, NULL, "pswapd",
12744 /* BC */ NULL, NULL, NULL, "pavgusb",
12745 /* C0 */ NULL, NULL, NULL, NULL,
12746 /* C4 */ NULL, NULL, NULL, NULL,
12747 /* C8 */ NULL, NULL, NULL, NULL,
12748 /* CC */ NULL, NULL, NULL, NULL,
12749 /* D0 */ NULL, NULL, NULL, NULL,
12750 /* D4 */ NULL, NULL, NULL, NULL,
12751 /* D8 */ NULL, NULL, NULL, NULL,
12752 /* DC */ NULL, NULL, NULL, NULL,
12753 /* E0 */ NULL, NULL, NULL, NULL,
12754 /* E4 */ NULL, NULL, NULL, NULL,
12755 /* E8 */ NULL, NULL, NULL, NULL,
12756 /* EC */ NULL, NULL, NULL, NULL,
12757 /* F0 */ NULL, NULL, NULL, NULL,
12758 /* F4 */ NULL, NULL, NULL, NULL,
12759 /* F8 */ NULL, NULL, NULL, NULL,
12760 /* FC */ NULL, NULL, NULL, NULL,
12764 OP_3DNowSuffix (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12766 const char *mnemonic;
12768 FETCH_DATA (the_info, codep + 1);
12769 /* AMD 3DNow! instructions are specified by an opcode suffix in the
12770 place where an 8-bit immediate would normally go. ie. the last
12771 byte of the instruction. */
12772 obufp = obuf + strlen (obuf);
12773 mnemonic = Suffix3DNow[*codep++ & 0xff];
12775 oappend (mnemonic);
12778 /* Since a variable sized modrm/sib chunk is between the start
12779 of the opcode (0x0f0f) and the opcode suffix, we need to do
12780 all the modrm processing first, and don't know until now that
12781 we have a bad opcode. This necessitates some cleaning up. */
12782 op_out[0][0] = '\0';
12783 op_out[1][0] = '\0';
12788 static const char *simd_cmp_op[] = {
12800 CMP_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
12802 unsigned int cmp_type;
12804 FETCH_DATA (the_info, codep + 1);
12805 cmp_type = *codep++ & 0xff;
12806 if (cmp_type < ARRAY_SIZE (simd_cmp_op))
12809 char *p = obuf + strlen (obuf) - 2;
12813 sprintf (p, "%s%s", simd_cmp_op[cmp_type], suffix);
12817 /* We have a reserved extension byte. Output it directly. */
12818 scratchbuf[0] = '$';
12819 print_operand_value (scratchbuf + 1, 1, cmp_type);
12820 oappend (scratchbuf + intel_syntax);
12821 scratchbuf[0] = '\0';
12826 OP_Mwait (int bytemode ATTRIBUTE_UNUSED,
12827 int sizeflag ATTRIBUTE_UNUSED)
12829 /* mwait %eax,%ecx */
12832 const char **names = (address_mode == mode_64bit
12833 ? names64 : names32);
12834 strcpy (op_out[0], names[0]);
12835 strcpy (op_out[1], names[1]);
12836 two_source_ops = 1;
12838 /* Skip mod/rm byte. */
12844 OP_Monitor (int bytemode ATTRIBUTE_UNUSED,
12845 int sizeflag ATTRIBUTE_UNUSED)
12847 /* monitor %eax,%ecx,%edx" */
12850 const char **op1_names;
12851 const char **names = (address_mode == mode_64bit
12852 ? names64 : names32);
12854 if (!(prefixes & PREFIX_ADDR))
12855 op1_names = (address_mode == mode_16bit
12856 ? names16 : names);
12859 /* Remove "addr16/addr32". */
12860 addr_prefix = NULL;
12861 op1_names = (address_mode != mode_32bit
12862 ? names32 : names16);
12863 used_prefixes |= PREFIX_ADDR;
12865 strcpy (op_out[0], op1_names[0]);
12866 strcpy (op_out[1], names[1]);
12867 strcpy (op_out[2], names[2]);
12868 two_source_ops = 1;
12870 /* Skip mod/rm byte. */
12878 /* Throw away prefixes and 1st. opcode byte. */
12879 codep = insn_codep + 1;
12884 REP_Fixup (int bytemode, int sizeflag)
12886 /* The 0xf3 prefix should be displayed as "rep" for ins, outs, movs,
12888 if (prefixes & PREFIX_REPZ)
12889 repz_prefix = "rep ";
12896 OP_IMREG (bytemode, sizeflag);
12899 OP_ESreg (bytemode, sizeflag);
12902 OP_DSreg (bytemode, sizeflag);
12911 CMPXCHG8B_Fixup (int bytemode, int sizeflag)
12916 /* Change cmpxchg8b to cmpxchg16b. */
12917 char *p = obuf + strlen (obuf) - 2;
12921 OP_M (bytemode, sizeflag);
12925 XMM_Fixup (int reg, int sizeflag ATTRIBUTE_UNUSED)
12929 switch (vex.length)
12932 sprintf (scratchbuf, "%%xmm%d", reg);
12935 sprintf (scratchbuf, "%%ymm%d", reg);
12942 sprintf (scratchbuf, "%%xmm%d", reg);
12943 oappend (scratchbuf + intel_syntax);
12947 CRC32_Fixup (int bytemode, int sizeflag)
12949 /* Add proper suffix to "crc32". */
12950 char *p = obuf + strlen (obuf);
12967 else if (sizeflag & DFLAG)
12971 used_prefixes |= (prefixes & PREFIX_DATA);
12974 oappend (INTERNAL_DISASSEMBLER_ERROR);
12979 if (modrm.mod == 3)
12983 /* Skip mod/rm byte. */
12988 add = (rex & REX_B) ? 8 : 0;
12989 if (bytemode == b_mode)
12993 oappend (names8rex[modrm.rm + add]);
12995 oappend (names8[modrm.rm + add]);
13001 oappend (names64[modrm.rm + add]);
13002 else if ((prefixes & PREFIX_DATA))
13003 oappend (names16[modrm.rm + add]);
13005 oappend (names32[modrm.rm + add]);
13009 OP_E (bytemode, sizeflag);
13012 /* Print a DREX argument as either a register or memory operation. */
13014 print_drex_arg (unsigned int reg, int bytemode, int sizeflag)
13016 if (reg == DREX_REG_UNKNOWN)
13019 else if (reg != DREX_REG_MEMORY)
13021 sprintf (scratchbuf, "%%xmm%d", reg);
13022 oappend (scratchbuf + intel_syntax);
13026 OP_E_extended (bytemode, sizeflag, 1);
13029 /* SSE5 instructions that have 4 arguments are encoded as:
13030 0f 24 <sub-opcode> <modrm> <optional-sib> <drex> <offset>.
13032 The <sub-opcode> byte has 1 bit (0x4) that is combined with 1 bit in
13033 the DREX field (0x8) to determine how the arguments are laid out.
13034 The destination register must be the same register as one of the
13035 inputs, and it is encoded in the DREX byte. No REX prefix is used
13036 for these instructions, since the DREX field contains the 3 extension
13037 bits provided by the REX prefix.
13039 The bytemode argument adds 2 extra bits for passing extra information:
13040 DREX_OC1 -- Set the OC1 bit to indicate dest == 1st arg
13041 DREX_NO_OC0 -- OC0 in DREX is invalid
13042 (but pretend it is set). */
13045 OP_DREX4 (int flag_bytemode, int sizeflag)
13047 unsigned int drex_byte;
13048 unsigned int regs[4];
13049 unsigned int modrm_regmem;
13050 unsigned int modrm_reg;
13051 unsigned int drex_reg;
13053 int rex_save = rex;
13054 int rex_used_save = rex_used;
13056 int oc1 = (flag_bytemode & DREX_OC1) ? 2 : 0;
13060 bytemode = flag_bytemode & ~ DREX_MASK;
13062 for (i = 0; i < 4; i++)
13063 regs[i] = DREX_REG_UNKNOWN;
13065 /* Determine if we have a SIB byte in addition to MODRM before the
13067 if (((sizeflag & AFLAG) || address_mode == mode_64bit)
13068 && (modrm.mod != 3)
13069 && (modrm.rm == 4))
13072 /* Get the DREX byte. */
13073 FETCH_DATA (the_info, codep + 2 + has_sib);
13074 drex_byte = codep[has_sib+1];
13075 drex_reg = DREX_XMM (drex_byte);
13076 modrm_reg = modrm.reg + ((drex_byte & REX_R) ? 8 : 0);
13078 /* Is OC0 legal? If not, hardwire oc0 == 1. */
13079 if (flag_bytemode & DREX_NO_OC0)
13082 if (DREX_OC0 (drex_byte))
13086 oc0 = DREX_OC0 (drex_byte);
13088 if (modrm.mod == 3)
13090 /* regmem == register */
13091 modrm_regmem = modrm.rm + ((drex_byte & REX_B) ? 8 : 0);
13092 rex = rex_used = 0;
13093 /* skip modrm/drex since we don't call OP_E_extended */
13098 /* regmem == memory, fill in appropriate REX bits */
13099 modrm_regmem = DREX_REG_MEMORY;
13100 rex = drex_byte & (REX_B | REX_X | REX_R);
13106 /* Based on the OC1/OC0 bits, lay out the arguments in the correct
13115 regs[0] = modrm_regmem;
13116 regs[1] = modrm_reg;
13117 regs[2] = drex_reg;
13118 regs[3] = drex_reg;
13122 regs[0] = modrm_reg;
13123 regs[1] = modrm_regmem;
13124 regs[2] = drex_reg;
13125 regs[3] = drex_reg;
13129 regs[0] = drex_reg;
13130 regs[1] = modrm_regmem;
13131 regs[2] = modrm_reg;
13132 regs[3] = drex_reg;
13136 regs[0] = drex_reg;
13137 regs[1] = modrm_reg;
13138 regs[2] = modrm_regmem;
13139 regs[3] = drex_reg;
13143 /* Print out the arguments. */
13144 for (i = 0; i < 4; i++)
13146 int j = (intel_syntax) ? 3 - i : i;
13153 print_drex_arg (regs[j], bytemode, sizeflag);
13157 rex_used = rex_used_save;
13160 /* SSE5 instructions that have 3 arguments, and are encoded as:
13161 0f 24 <sub-opcode> <modrm> <optional-sib> <drex> <offset> (or)
13162 0f 25 <sub-opcode> <modrm> <optional-sib> <drex> <offset> <cmp-byte>
13164 The DREX field has 1 bit (0x8) to determine how the arguments are
13165 laid out. The destination register is encoded in the DREX byte.
13166 No REX prefix is used for these instructions, since the DREX field
13167 contains the 3 extension bits provided by the REX prefix. */
13170 OP_DREX3 (int flag_bytemode, int sizeflag)
13172 unsigned int drex_byte;
13173 unsigned int regs[3];
13174 unsigned int modrm_regmem;
13175 unsigned int modrm_reg;
13176 unsigned int drex_reg;
13178 int rex_save = rex;
13179 int rex_used_save = rex_used;
13184 bytemode = flag_bytemode & ~ DREX_MASK;
13186 for (i = 0; i < 3; i++)
13187 regs[i] = DREX_REG_UNKNOWN;
13189 /* Determine if we have a SIB byte in addition to MODRM before the
13191 if (((sizeflag & AFLAG) || address_mode == mode_64bit)
13192 && (modrm.mod != 3)
13193 && (modrm.rm == 4))
13196 /* Get the DREX byte. */
13197 FETCH_DATA (the_info, codep + 2 + has_sib);
13198 drex_byte = codep[has_sib+1];
13199 drex_reg = DREX_XMM (drex_byte);
13200 modrm_reg = modrm.reg + ((drex_byte & REX_R) ? 8 : 0);
13202 /* Is OC0 legal? If not, hardwire oc0 == 0 */
13203 oc0 = DREX_OC0 (drex_byte);
13204 if ((flag_bytemode & DREX_NO_OC0) && oc0)
13207 if (modrm.mod == 3)
13209 /* regmem == register */
13210 modrm_regmem = modrm.rm + ((drex_byte & REX_B) ? 8 : 0);
13211 rex = rex_used = 0;
13212 /* skip modrm/drex since we don't call OP_E_extended. */
13217 /* regmem == memory, fill in appropriate REX bits. */
13218 modrm_regmem = DREX_REG_MEMORY;
13219 rex = drex_byte & (REX_B | REX_X | REX_R);
13225 /* Based on the OC1/OC0 bits, lay out the arguments in the correct
13234 regs[0] = modrm_regmem;
13235 regs[1] = modrm_reg;
13236 regs[2] = drex_reg;
13240 regs[0] = modrm_reg;
13241 regs[1] = modrm_regmem;
13242 regs[2] = drex_reg;
13246 /* Print out the arguments. */
13247 for (i = 0; i < 3; i++)
13249 int j = (intel_syntax) ? 2 - i : i;
13256 print_drex_arg (regs[j], bytemode, sizeflag);
13260 rex_used = rex_used_save;
13263 /* Emit a floating point comparison for comp<xx> instructions. */
13266 OP_DREX_FCMP (int bytemode ATTRIBUTE_UNUSED,
13267 int sizeflag ATTRIBUTE_UNUSED)
13269 unsigned char byte;
13271 static const char *const cmp_test[] = {
13290 FETCH_DATA (the_info, codep + 1);
13291 byte = *codep & 0xff;
13293 if (byte >= ARRAY_SIZE (cmp_test)
13298 /* The instruction isn't one we know about, so just append the
13299 extension byte as a numeric value. */
13305 sprintf (scratchbuf, "com%s%s", cmp_test[byte], obuf+3);
13306 strcpy (obuf, scratchbuf);
13311 /* Emit an integer point comparison for pcom<xx> instructions,
13312 rewriting the instruction to have the test inside of it. */
13315 OP_DREX_ICMP (int bytemode ATTRIBUTE_UNUSED,
13316 int sizeflag ATTRIBUTE_UNUSED)
13318 unsigned char byte;
13320 static const char *const cmp_test[] = {
13331 FETCH_DATA (the_info, codep + 1);
13332 byte = *codep & 0xff;
13334 if (byte >= ARRAY_SIZE (cmp_test)
13340 /* The instruction isn't one we know about, so just print the
13341 comparison test byte as a numeric value. */
13347 sprintf (scratchbuf, "pcom%s%s", cmp_test[byte], obuf+4);
13348 strcpy (obuf, scratchbuf);
13353 /* Display the destination register operand for instructions with
13357 OP_VEX (int bytemode, int sizeflag ATTRIBUTE_UNUSED)
13365 switch (vex.length)
13378 sprintf (scratchbuf, "%%xmm%d", vex.register_specifier);
13391 sprintf (scratchbuf, "%%ymm%d", vex.register_specifier);
13397 oappend (scratchbuf + intel_syntax);
13400 /* Get the VEX immediate byte without moving codep. */
13402 static unsigned char
13403 get_vex_imm8 (int sizeflag)
13405 int bytes_before_imm = 0;
13407 /* Skip mod/rm byte. */
13411 if (modrm.mod != 3)
13413 /* There are SIB/displacement bytes. */
13414 if ((sizeflag & AFLAG) || address_mode == mode_64bit)
13416 /* 32/64 bit address mode */
13417 int base = modrm.rm;
13419 /* Check SIB byte. */
13422 FETCH_DATA (the_info, codep + 1);
13424 bytes_before_imm++;
13430 /* When modrm.rm == 5 or modrm.rm == 4 and base in
13431 SIB == 5, there is a 4 byte displacement. */
13433 /* No displacement. */
13436 /* 4 byte displacement. */
13437 bytes_before_imm += 4;
13440 /* 1 byte displacement. */
13441 bytes_before_imm++;
13446 { /* 16 bit address mode */
13450 /* When modrm.rm == 6, there is a 2 byte displacement. */
13452 /* No displacement. */
13455 /* 2 byte displacement. */
13456 bytes_before_imm += 2;
13459 /* 1 byte displacement. */
13460 bytes_before_imm++;
13466 FETCH_DATA (the_info, codep + bytes_before_imm + 1);
13467 return codep [bytes_before_imm];
13471 OP_EX_VexReg (int bytemode, int sizeflag, int reg)
13473 if (reg == -1 && modrm.mod != 3)
13475 OP_E_memory (bytemode, sizeflag, 0);
13487 else if (reg > 7 && address_mode != mode_64bit)
13491 switch (vex.length)
13494 sprintf (scratchbuf, "%%xmm%d", reg);
13497 sprintf (scratchbuf, "%%ymm%d", reg);
13502 oappend (scratchbuf + intel_syntax);
13506 OP_EX_VexImmW (int bytemode, int sizeflag)
13509 static unsigned char vex_imm8;
13513 vex_imm8 = get_vex_imm8 (sizeflag);
13515 reg = vex_imm8 >> 4;
13521 reg = vex_imm8 >> 4;
13524 OP_EX_VexReg (bytemode, sizeflag, reg);
13528 OP_EX_VexW (int bytemode, int sizeflag)
13536 reg = vex.register_specifier;
13541 reg = vex.register_specifier;
13544 OP_EX_VexReg (bytemode, sizeflag, reg);
13548 OP_VEX_FMA (int bytemode, int sizeflag)
13550 int reg = get_vex_imm8 (sizeflag) >> 4;
13552 if (reg > 7 && address_mode != mode_64bit)
13555 switch (vex.length)
13568 sprintf (scratchbuf, "%%xmm%d", reg);
13580 sprintf (scratchbuf, "%%ymm%d", reg);
13585 oappend (scratchbuf + intel_syntax);
13589 VEXI4_Fixup (int bytemode ATTRIBUTE_UNUSED,
13590 int sizeflag ATTRIBUTE_UNUSED)
13592 /* Skip the immediate byte and check for invalid bits. */
13593 FETCH_DATA (the_info, codep + 1);
13594 if (*codep++ & 0xf)
13599 OP_REG_VexI4 (int bytemode, int sizeflag ATTRIBUTE_UNUSED)
13602 FETCH_DATA (the_info, codep + 1);
13605 if (bytemode != x_mode)
13612 if (reg > 7 && address_mode != mode_64bit)
13615 switch (vex.length)
13618 sprintf (scratchbuf, "%%xmm%d", reg);
13621 sprintf (scratchbuf, "%%ymm%d", reg);
13626 oappend (scratchbuf + intel_syntax);
13630 OP_XMM_VexW (int bytemode, int sizeflag)
13632 /* Turn off the REX.W bit since it is used for swapping operands
13635 OP_XMM (bytemode, sizeflag);
13639 OP_EX_Vex (int bytemode, int sizeflag)
13641 if (modrm.mod != 3)
13643 if (vex.register_specifier != 0)
13647 OP_EX (bytemode, sizeflag);
13651 OP_XMM_Vex (int bytemode, int sizeflag)
13653 if (modrm.mod != 3)
13655 if (vex.register_specifier != 0)
13659 OP_XMM (bytemode, sizeflag);
13663 VZERO_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
13665 switch (vex.length)
13668 strcpy (obuf, "vzeroupper");
13671 strcpy (obuf, "vzeroall");
13678 static const char *vex_cmp_op[] = {
13714 VCMP_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED)
13716 unsigned int cmp_type;
13718 FETCH_DATA (the_info, codep + 1);
13719 cmp_type = *codep++ & 0xff;
13720 if (cmp_type < ARRAY_SIZE (vex_cmp_op))
13723 char *p = obuf + strlen (obuf) - 2;
13727 sprintf (p, "%s%s", vex_cmp_op[cmp_type], suffix);
13731 /* We have a reserved extension byte. Output it directly. */
13732 scratchbuf[0] = '$';
13733 print_operand_value (scratchbuf + 1, 1, cmp_type);
13734 oappend (scratchbuf + intel_syntax);
13735 scratchbuf[0] = '\0';
13739 static const char *pclmul_op[] = {
13747 PCLMUL_Fixup (int bytemode ATTRIBUTE_UNUSED,
13748 int sizeflag ATTRIBUTE_UNUSED)
13750 unsigned int pclmul_type;
13752 FETCH_DATA (the_info, codep + 1);
13753 pclmul_type = *codep++ & 0xff;
13754 switch (pclmul_type)
13765 if (pclmul_type < ARRAY_SIZE (pclmul_op))
13768 char *p = obuf + strlen (obuf) - 3;
13773 sprintf (p, "%s%s", pclmul_op[pclmul_type], suffix);
13777 /* We have a reserved extension byte. Output it directly. */
13778 scratchbuf[0] = '$';
13779 print_operand_value (scratchbuf + 1, 1, pclmul_type);
13780 oappend (scratchbuf + intel_syntax);
13781 scratchbuf[0] = '\0';
13785 static const char *vpermil2_op[] = {
13793 VPERMIL2_Fixup (int bytemode ATTRIBUTE_UNUSED,
13794 int sizeflag ATTRIBUTE_UNUSED)
13796 unsigned int vpermil2_type;
13798 FETCH_DATA (the_info, codep + 1);
13799 vpermil2_type = *codep++ & 0xf;
13800 if (vpermil2_type < ARRAY_SIZE (vpermil2_op))
13803 char *p = obuf + strlen (obuf) - 3;
13808 sprintf (p, "%s%s", vpermil2_op[vpermil2_type], suffix);
13812 /* We have a reserved extension byte. Output it directly. */
13813 scratchbuf[0] = '$';
13814 print_operand_value (scratchbuf + 1, 1, vpermil2_type);
13815 oappend (scratchbuf + intel_syntax);
13816 scratchbuf[0] = '\0';
13821 MOVBE_Fixup (int bytemode, int sizeflag)
13823 /* Add proper suffix to "movbe". */
13824 char *p = obuf + strlen (obuf);
13833 if (sizeflag & SUFFIX_ALWAYS)
13837 else if (sizeflag & DFLAG)
13842 used_prefixes |= (prefixes & PREFIX_DATA);
13845 oappend (INTERNAL_DISASSEMBLER_ERROR);
13850 OP_M (bytemode, sizeflag);