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, 2009
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_EX_Vex (int, int);
97 static void OP_XMM_Vex (int, int);
98 static void OP_REG_VexI4 (int, int);
99 static void PCLMUL_Fixup (int, int);
100 static void VZERO_Fixup (int, int);
101 static void VCMP_Fixup (int, int);
102 static void OP_0f07 (int, int);
103 static void OP_Monitor (int, int);
104 static void OP_Mwait (int, int);
105 static void NOP_Fixup1 (int, int);
106 static void NOP_Fixup2 (int, int);
107 static void OP_3DNowSuffix (int, int);
108 static void CMP_Fixup (int, int);
109 static void BadOp (void);
110 static void REP_Fixup (int, int);
111 static void CMPXCHG8B_Fixup (int, int);
112 static void XMM_Fixup (int, int);
113 static void CRC32_Fixup (int, int);
114 static void print_drex_arg (unsigned int, int, int);
115 static void OP_DREX4 (int, int);
116 static void OP_DREX3 (int, int);
117 static void OP_DREX_ICMP (int, int);
118 static void OP_DREX_FCMP (int, int);
119 static void MOVBE_Fixup (int, int);
122 /* Points to first byte not fetched. */
123 bfd_byte
*max_fetched
;
124 bfd_byte the_buffer
[MAX_MNEM_SIZE
];
137 enum address_mode address_mode
;
139 /* Flags for the prefixes for the current instruction. See below. */
142 /* REX prefix the current instruction. See below. */
144 /* Bits of REX we've already used. */
146 /* Original REX prefix. */
147 static int rex_original
;
148 /* REX bits in original REX prefix ignored. It may not be the same
149 as rex_original since some bits may not be ignored. */
150 static int rex_ignored
;
151 /* Mark parts used in the REX prefix. When we are testing for
152 empty prefix (for 8bit register REX extension), just mask it
153 out. Otherwise test for REX bit is excuse for existence of REX
154 only in case value is nonzero. */
155 #define USED_REX(value) \
160 rex_used |= (value) | REX_OPCODE; \
163 rex_used |= REX_OPCODE; \
166 /* Special 'registers' for DREX handling */
167 #define DREX_REG_UNKNOWN 1000 /* not initialized */
168 #define DREX_REG_MEMORY 1001 /* use MODRM/SIB/OFFSET memory */
170 /* The DREX byte has the following fields:
171 Bits 7-4 -- DREX.Dest, xmm destination register
172 Bit 3 -- DREX.OC0, operand config bit defines operand order
173 Bit 2 -- DREX.R, equivalent to REX_R bit, to extend ModRM register
174 Bit 1 -- DREX.X, equivalent to REX_X bit, to extend SIB index field
175 Bit 0 -- DREX.W, equivalent to REX_B bit, to extend ModRM r/m field,
176 SIB base field, or opcode reg field. */
177 #define DREX_XMM(drex) ((drex >> 4) & 0xf)
178 #define DREX_OC0(drex) ((drex >> 3) & 0x1)
180 /* Flags for prefixes which we somehow handled when printing the
181 current instruction. */
182 static int used_prefixes
;
184 /* Flags stored in PREFIXES. */
185 #define PREFIX_REPZ 1
186 #define PREFIX_REPNZ 2
187 #define PREFIX_LOCK 4
189 #define PREFIX_SS 0x10
190 #define PREFIX_DS 0x20
191 #define PREFIX_ES 0x40
192 #define PREFIX_FS 0x80
193 #define PREFIX_GS 0x100
194 #define PREFIX_DATA 0x200
195 #define PREFIX_ADDR 0x400
196 #define PREFIX_FWAIT 0x800
198 /* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive)
199 to ADDR (exclusive) are valid. Returns 1 for success, longjmps
201 #define FETCH_DATA(info, addr) \
202 ((addr) <= ((struct dis_private *) (info->private_data))->max_fetched \
203 ? 1 : fetch_data ((info), (addr)))
206 fetch_data (struct disassemble_info
*info
, bfd_byte
*addr
)
209 struct dis_private
*priv
= (struct dis_private
*) info
->private_data
;
210 bfd_vma start
= priv
->insn_start
+ (priv
->max_fetched
- priv
->the_buffer
);
212 if (addr
<= priv
->the_buffer
+ MAX_MNEM_SIZE
)
213 status
= (*info
->read_memory_func
) (start
,
215 addr
- priv
->max_fetched
,
221 /* If we did manage to read at least one byte, then
222 print_insn_i386 will do something sensible. Otherwise, print
223 an error. We do that here because this is where we know
225 if (priv
->max_fetched
== priv
->the_buffer
)
226 (*info
->memory_error_func
) (status
, start
, info
);
227 longjmp (priv
->bailout
, 1);
230 priv
->max_fetched
= addr
;
234 #define XX { NULL, 0 }
236 #define Eb { OP_E, b_mode }
237 #define EbS { OP_E, b_swap_mode }
238 #define Ev { OP_E, v_mode }
239 #define EvS { OP_E, v_swap_mode }
240 #define Ed { OP_E, d_mode }
241 #define Edq { OP_E, dq_mode }
242 #define Edqw { OP_E, dqw_mode }
243 #define Edqb { OP_E, dqb_mode }
244 #define Edqd { OP_E, dqd_mode }
245 #define Eq { OP_E, q_mode }
246 #define indirEv { OP_indirE, stack_v_mode }
247 #define indirEp { OP_indirE, f_mode }
248 #define stackEv { OP_E, stack_v_mode }
249 #define Em { OP_E, m_mode }
250 #define Ew { OP_E, w_mode }
251 #define M { OP_M, 0 } /* lea, lgdt, etc. */
252 #define Ma { OP_M, a_mode }
253 #define Mb { OP_M, b_mode }
254 #define Md { OP_M, d_mode }
255 #define Mo { OP_M, o_mode }
256 #define Mp { OP_M, f_mode } /* 32 or 48 bit memory operand for LDS, LES etc */
257 #define Mq { OP_M, q_mode }
258 #define Mx { OP_M, x_mode }
259 #define Mxmm { OP_M, xmm_mode }
260 #define Gb { OP_G, b_mode }
261 #define Gv { OP_G, v_mode }
262 #define Gd { OP_G, d_mode }
263 #define Gdq { OP_G, dq_mode }
264 #define Gm { OP_G, m_mode }
265 #define Gw { OP_G, w_mode }
266 #define Rd { OP_R, d_mode }
267 #define Rm { OP_R, m_mode }
268 #define Ib { OP_I, b_mode }
269 #define sIb { OP_sI, b_mode } /* sign extened byte */
270 #define Iv { OP_I, v_mode }
271 #define Iq { OP_I, q_mode }
272 #define Iv64 { OP_I64, v_mode }
273 #define Iw { OP_I, w_mode }
274 #define I1 { OP_I, const_1_mode }
275 #define Jb { OP_J, b_mode }
276 #define Jv { OP_J, v_mode }
277 #define Cm { OP_C, m_mode }
278 #define Dm { OP_D, m_mode }
279 #define Td { OP_T, d_mode }
280 #define Skip_MODRM { OP_Skip_MODRM, 0 }
282 #define RMeAX { OP_REG, eAX_reg }
283 #define RMeBX { OP_REG, eBX_reg }
284 #define RMeCX { OP_REG, eCX_reg }
285 #define RMeDX { OP_REG, eDX_reg }
286 #define RMeSP { OP_REG, eSP_reg }
287 #define RMeBP { OP_REG, eBP_reg }
288 #define RMeSI { OP_REG, eSI_reg }
289 #define RMeDI { OP_REG, eDI_reg }
290 #define RMrAX { OP_REG, rAX_reg }
291 #define RMrBX { OP_REG, rBX_reg }
292 #define RMrCX { OP_REG, rCX_reg }
293 #define RMrDX { OP_REG, rDX_reg }
294 #define RMrSP { OP_REG, rSP_reg }
295 #define RMrBP { OP_REG, rBP_reg }
296 #define RMrSI { OP_REG, rSI_reg }
297 #define RMrDI { OP_REG, rDI_reg }
298 #define RMAL { OP_REG, al_reg }
299 #define RMAL { OP_REG, al_reg }
300 #define RMCL { OP_REG, cl_reg }
301 #define RMDL { OP_REG, dl_reg }
302 #define RMBL { OP_REG, bl_reg }
303 #define RMAH { OP_REG, ah_reg }
304 #define RMCH { OP_REG, ch_reg }
305 #define RMDH { OP_REG, dh_reg }
306 #define RMBH { OP_REG, bh_reg }
307 #define RMAX { OP_REG, ax_reg }
308 #define RMDX { OP_REG, dx_reg }
310 #define eAX { OP_IMREG, eAX_reg }
311 #define eBX { OP_IMREG, eBX_reg }
312 #define eCX { OP_IMREG, eCX_reg }
313 #define eDX { OP_IMREG, eDX_reg }
314 #define eSP { OP_IMREG, eSP_reg }
315 #define eBP { OP_IMREG, eBP_reg }
316 #define eSI { OP_IMREG, eSI_reg }
317 #define eDI { OP_IMREG, eDI_reg }
318 #define AL { OP_IMREG, al_reg }
319 #define CL { OP_IMREG, cl_reg }
320 #define DL { OP_IMREG, dl_reg }
321 #define BL { OP_IMREG, bl_reg }
322 #define AH { OP_IMREG, ah_reg }
323 #define CH { OP_IMREG, ch_reg }
324 #define DH { OP_IMREG, dh_reg }
325 #define BH { OP_IMREG, bh_reg }
326 #define AX { OP_IMREG, ax_reg }
327 #define DX { OP_IMREG, dx_reg }
328 #define zAX { OP_IMREG, z_mode_ax_reg }
329 #define indirDX { OP_IMREG, indir_dx_reg }
331 #define Sw { OP_SEG, w_mode }
332 #define Sv { OP_SEG, v_mode }
333 #define Ap { OP_DIR, 0 }
334 #define Ob { OP_OFF64, b_mode }
335 #define Ov { OP_OFF64, v_mode }
336 #define Xb { OP_DSreg, eSI_reg }
337 #define Xv { OP_DSreg, eSI_reg }
338 #define Xz { OP_DSreg, eSI_reg }
339 #define Yb { OP_ESreg, eDI_reg }
340 #define Yv { OP_ESreg, eDI_reg }
341 #define DSBX { OP_DSreg, eBX_reg }
343 #define es { OP_REG, es_reg }
344 #define ss { OP_REG, ss_reg }
345 #define cs { OP_REG, cs_reg }
346 #define ds { OP_REG, ds_reg }
347 #define fs { OP_REG, fs_reg }
348 #define gs { OP_REG, gs_reg }
350 #define MX { OP_MMX, 0 }
351 #define XM { OP_XMM, 0 }
352 #define XMM { OP_XMM, xmm_mode }
353 #define EM { OP_EM, v_mode }
354 #define EMS { OP_EM, v_swap_mode }
355 #define EMd { OP_EM, d_mode }
356 #define EMx { OP_EM, x_mode }
357 #define EXw { OP_EX, w_mode }
358 #define EXd { OP_EX, d_mode }
359 #define EXdS { OP_EX, d_swap_mode }
360 #define EXq { OP_EX, q_mode }
361 #define EXqS { OP_EX, q_swap_mode }
362 #define EXx { OP_EX, x_mode }
363 #define EXxS { OP_EX, x_swap_mode }
364 #define EXxmm { OP_EX, xmm_mode }
365 #define EXxmmq { OP_EX, xmmq_mode }
366 #define EXymmq { OP_EX, ymmq_mode }
367 #define EXVexWdq { OP_EX, vex_w_dq_mode }
368 #define MS { OP_MS, v_mode }
369 #define XS { OP_XS, v_mode }
370 #define EMCq { OP_EMC, q_mode }
371 #define MXC { OP_MXC, 0 }
372 #define OPSUF { OP_3DNowSuffix, 0 }
373 #define CMP { CMP_Fixup, 0 }
374 #define XMM0 { XMM_Fixup, 0 }
376 #define Vex { OP_VEX, vex_mode }
377 #define Vex128 { OP_VEX, vex128_mode }
378 #define Vex256 { OP_VEX, vex256_mode }
379 #define EXdVex { OP_EX_Vex, d_mode }
380 #define EXdVexS { OP_EX_Vex, d_swap_mode }
381 #define EXqVex { OP_EX_Vex, q_mode }
382 #define EXqVexS { OP_EX_Vex, q_swap_mode }
383 #define XMVex { OP_XMM_Vex, 0 }
384 #define XMVexI4 { OP_REG_VexI4, x_mode }
385 #define PCLMUL { PCLMUL_Fixup, 0 }
386 #define VZERO { VZERO_Fixup, 0 }
387 #define VCMP { VCMP_Fixup, 0 }
389 /* Used handle "rep" prefix for string instructions. */
390 #define Xbr { REP_Fixup, eSI_reg }
391 #define Xvr { REP_Fixup, eSI_reg }
392 #define Ybr { REP_Fixup, eDI_reg }
393 #define Yvr { REP_Fixup, eDI_reg }
394 #define Yzr { REP_Fixup, eDI_reg }
395 #define indirDXr { REP_Fixup, indir_dx_reg }
396 #define ALr { REP_Fixup, al_reg }
397 #define eAXr { REP_Fixup, eAX_reg }
399 #define cond_jump_flag { NULL, cond_jump_mode }
400 #define loop_jcxz_flag { NULL, loop_jcxz_mode }
402 /* bits in sizeflag */
403 #define SUFFIX_ALWAYS 4
409 /* byte operand with operand swapped */
410 #define b_swap_mode (b_mode + 1)
411 /* operand size depends on prefixes */
412 #define v_mode (b_swap_mode + 1)
413 /* operand size depends on prefixes with operand swapped */
414 #define v_swap_mode (v_mode + 1)
416 #define w_mode (v_swap_mode + 1)
417 /* double word operand */
418 #define d_mode (w_mode + 1)
419 /* double word operand with operand swapped */
420 #define d_swap_mode (d_mode + 1)
421 /* quad word operand */
422 #define q_mode (d_swap_mode + 1)
423 /* quad word operand with operand swapped */
424 #define q_swap_mode (q_mode + 1)
425 /* ten-byte operand */
426 #define t_mode (q_swap_mode + 1)
427 /* 16-byte XMM or 32-byte YMM operand */
428 #define x_mode (t_mode + 1)
429 /* 16-byte XMM or 32-byte YMM operand with operand swapped */
430 #define x_swap_mode (x_mode + 1)
431 /* 16-byte XMM operand */
432 #define xmm_mode (x_swap_mode + 1)
433 /* 16-byte XMM or quad word operand */
434 #define xmmq_mode (xmm_mode + 1)
435 /* 32-byte YMM or quad word operand */
436 #define ymmq_mode (xmmq_mode + 1)
437 /* d_mode in 32bit, q_mode in 64bit mode. */
438 #define m_mode (ymmq_mode + 1)
439 /* pair of v_mode operands */
440 #define a_mode (m_mode + 1)
441 #define cond_jump_mode (a_mode + 1)
442 #define loop_jcxz_mode (cond_jump_mode + 1)
443 /* operand size depends on REX prefixes. */
444 #define dq_mode (loop_jcxz_mode + 1)
445 /* registers like dq_mode, memory like w_mode. */
446 #define dqw_mode (dq_mode + 1)
447 /* 4- or 6-byte pointer operand */
448 #define f_mode (dqw_mode + 1)
449 #define const_1_mode (f_mode + 1)
450 /* v_mode for stack-related opcodes. */
451 #define stack_v_mode (const_1_mode + 1)
452 /* non-quad operand size depends on prefixes */
453 #define z_mode (stack_v_mode + 1)
454 /* 16-byte operand */
455 #define o_mode (z_mode + 1)
456 /* registers like dq_mode, memory like b_mode. */
457 #define dqb_mode (o_mode + 1)
458 /* registers like dq_mode, memory like d_mode. */
459 #define dqd_mode (dqb_mode + 1)
460 /* normal vex mode */
461 #define vex_mode (dqd_mode + 1)
462 /* 128bit vex mode */
463 #define vex128_mode (vex_mode + 1)
464 /* 256bit vex mode */
465 #define vex256_mode (vex128_mode + 1)
466 /* operand size depends on the VEX.W bit. */
467 #define vex_w_dq_mode (vex256_mode + 1)
469 #define es_reg (vex_w_dq_mode + 1)
470 #define cs_reg (es_reg + 1)
471 #define ss_reg (cs_reg + 1)
472 #define ds_reg (ss_reg + 1)
473 #define fs_reg (ds_reg + 1)
474 #define gs_reg (fs_reg + 1)
476 #define eAX_reg (gs_reg + 1)
477 #define eCX_reg (eAX_reg + 1)
478 #define eDX_reg (eCX_reg + 1)
479 #define eBX_reg (eDX_reg + 1)
480 #define eSP_reg (eBX_reg + 1)
481 #define eBP_reg (eSP_reg + 1)
482 #define eSI_reg (eBP_reg + 1)
483 #define eDI_reg (eSI_reg + 1)
485 #define al_reg (eDI_reg + 1)
486 #define cl_reg (al_reg + 1)
487 #define dl_reg (cl_reg + 1)
488 #define bl_reg (dl_reg + 1)
489 #define ah_reg (bl_reg + 1)
490 #define ch_reg (ah_reg + 1)
491 #define dh_reg (ch_reg + 1)
492 #define bh_reg (dh_reg + 1)
494 #define ax_reg (bh_reg + 1)
495 #define cx_reg (ax_reg + 1)
496 #define dx_reg (cx_reg + 1)
497 #define bx_reg (dx_reg + 1)
498 #define sp_reg (bx_reg + 1)
499 #define bp_reg (sp_reg + 1)
500 #define si_reg (bp_reg + 1)
501 #define di_reg (si_reg + 1)
503 #define rAX_reg (di_reg + 1)
504 #define rCX_reg (rAX_reg + 1)
505 #define rDX_reg (rCX_reg + 1)
506 #define rBX_reg (rDX_reg + 1)
507 #define rSP_reg (rBX_reg + 1)
508 #define rBP_reg (rSP_reg + 1)
509 #define rSI_reg (rBP_reg + 1)
510 #define rDI_reg (rSI_reg + 1)
512 #define z_mode_ax_reg (rDI_reg + 1)
513 #define indir_dx_reg (z_mode_ax_reg + 1)
515 #define MAX_BYTEMODE indir_dx_reg
517 /* Flags that are OR'ed into the bytemode field to pass extra
519 #define DREX_OC1 0x10000 /* OC1 bit set */
520 #define DREX_NO_OC0 0x20000 /* OC0 bit not used */
521 #define DREX_MASK 0x40000 /* mask to delete */
523 #if MAX_BYTEMODE >= DREX_OC1
524 #error MAX_BYTEMODE must be less than DREX_OC1
528 #define USE_REG_TABLE (FLOATCODE + 1)
529 #define USE_MOD_TABLE (USE_REG_TABLE + 1)
530 #define USE_RM_TABLE (USE_MOD_TABLE + 1)
531 #define USE_PREFIX_TABLE (USE_RM_TABLE + 1)
532 #define USE_X86_64_TABLE (USE_PREFIX_TABLE + 1)
533 #define USE_3BYTE_TABLE (USE_X86_64_TABLE + 1)
534 #define USE_VEX_C4_TABLE (USE_3BYTE_TABLE + 1)
535 #define USE_VEX_C5_TABLE (USE_VEX_C4_TABLE + 1)
536 #define USE_VEX_LEN_TABLE (USE_VEX_C5_TABLE + 1)
538 #define FLOAT NULL, { { NULL, FLOATCODE } }
540 #define DIS386(T, I) NULL, { { NULL, (T)}, { NULL, (I) } }
541 #define REG_TABLE(I) DIS386 (USE_REG_TABLE, (I))
542 #define MOD_TABLE(I) DIS386 (USE_MOD_TABLE, (I))
543 #define RM_TABLE(I) DIS386 (USE_RM_TABLE, (I))
544 #define PREFIX_TABLE(I) DIS386 (USE_PREFIX_TABLE, (I))
545 #define X86_64_TABLE(I) DIS386 (USE_X86_64_TABLE, (I))
546 #define THREE_BYTE_TABLE(I) DIS386 (USE_3BYTE_TABLE, (I))
547 #define VEX_C4_TABLE(I) DIS386 (USE_VEX_C4_TABLE, (I))
548 #define VEX_C5_TABLE(I) DIS386 (USE_VEX_C5_TABLE, (I))
549 #define VEX_LEN_TABLE(I) DIS386 (USE_VEX_LEN_TABLE, (I))
552 #define REG_81 (REG_80 + 1)
553 #define REG_82 (REG_81 + 1)
554 #define REG_8F (REG_82 + 1)
555 #define REG_C0 (REG_8F + 1)
556 #define REG_C1 (REG_C0 + 1)
557 #define REG_C6 (REG_C1 + 1)
558 #define REG_C7 (REG_C6 + 1)
559 #define REG_D0 (REG_C7 + 1)
560 #define REG_D1 (REG_D0 + 1)
561 #define REG_D2 (REG_D1 + 1)
562 #define REG_D3 (REG_D2 + 1)
563 #define REG_F6 (REG_D3 + 1)
564 #define REG_F7 (REG_F6 + 1)
565 #define REG_FE (REG_F7 + 1)
566 #define REG_FF (REG_FE + 1)
567 #define REG_0F00 (REG_FF + 1)
568 #define REG_0F01 (REG_0F00 + 1)
569 #define REG_0F0D (REG_0F01 + 1)
570 #define REG_0F18 (REG_0F0D + 1)
571 #define REG_0F71 (REG_0F18 + 1)
572 #define REG_0F72 (REG_0F71 + 1)
573 #define REG_0F73 (REG_0F72 + 1)
574 #define REG_0FA6 (REG_0F73 + 1)
575 #define REG_0FA7 (REG_0FA6 + 1)
576 #define REG_0FAE (REG_0FA7 + 1)
577 #define REG_0FBA (REG_0FAE + 1)
578 #define REG_0FC7 (REG_0FBA + 1)
579 #define REG_VEX_71 (REG_0FC7 + 1)
580 #define REG_VEX_72 (REG_VEX_71 + 1)
581 #define REG_VEX_73 (REG_VEX_72 + 1)
582 #define REG_VEX_AE (REG_VEX_73 + 1)
585 #define MOD_0F01_REG_0 (MOD_8D + 1)
586 #define MOD_0F01_REG_1 (MOD_0F01_REG_0 + 1)
587 #define MOD_0F01_REG_2 (MOD_0F01_REG_1 + 1)
588 #define MOD_0F01_REG_3 (MOD_0F01_REG_2 + 1)
589 #define MOD_0F01_REG_7 (MOD_0F01_REG_3 + 1)
590 #define MOD_0F12_PREFIX_0 (MOD_0F01_REG_7 + 1)
591 #define MOD_0F13 (MOD_0F12_PREFIX_0 + 1)
592 #define MOD_0F16_PREFIX_0 (MOD_0F13 + 1)
593 #define MOD_0F17 (MOD_0F16_PREFIX_0 + 1)
594 #define MOD_0F18_REG_0 (MOD_0F17 + 1)
595 #define MOD_0F18_REG_1 (MOD_0F18_REG_0 + 1)
596 #define MOD_0F18_REG_2 (MOD_0F18_REG_1 + 1)
597 #define MOD_0F18_REG_3 (MOD_0F18_REG_2 + 1)
598 #define MOD_0F20 (MOD_0F18_REG_3 + 1)
599 #define MOD_0F21 (MOD_0F20 + 1)
600 #define MOD_0F22 (MOD_0F21 + 1)
601 #define MOD_0F23 (MOD_0F22 + 1)
602 #define MOD_0F24 (MOD_0F23 + 1)
603 #define MOD_0F26 (MOD_0F24 + 1)
604 #define MOD_0F2B_PREFIX_0 (MOD_0F26 + 1)
605 #define MOD_0F2B_PREFIX_1 (MOD_0F2B_PREFIX_0 + 1)
606 #define MOD_0F2B_PREFIX_2 (MOD_0F2B_PREFIX_1 + 1)
607 #define MOD_0F2B_PREFIX_3 (MOD_0F2B_PREFIX_2 + 1)
608 #define MOD_0F51 (MOD_0F2B_PREFIX_3 + 1)
609 #define MOD_0F71_REG_2 (MOD_0F51 + 1)
610 #define MOD_0F71_REG_4 (MOD_0F71_REG_2 + 1)
611 #define MOD_0F71_REG_6 (MOD_0F71_REG_4 + 1)
612 #define MOD_0F72_REG_2 (MOD_0F71_REG_6 + 1)
613 #define MOD_0F72_REG_4 (MOD_0F72_REG_2 + 1)
614 #define MOD_0F72_REG_6 (MOD_0F72_REG_4 + 1)
615 #define MOD_0F73_REG_2 (MOD_0F72_REG_6 + 1)
616 #define MOD_0F73_REG_3 (MOD_0F73_REG_2 + 1)
617 #define MOD_0F73_REG_6 (MOD_0F73_REG_3 + 1)
618 #define MOD_0F73_REG_7 (MOD_0F73_REG_6 + 1)
619 #define MOD_0FAE_REG_0 (MOD_0F73_REG_7 + 1)
620 #define MOD_0FAE_REG_1 (MOD_0FAE_REG_0 + 1)
621 #define MOD_0FAE_REG_2 (MOD_0FAE_REG_1 + 1)
622 #define MOD_0FAE_REG_3 (MOD_0FAE_REG_2 + 1)
623 #define MOD_0FAE_REG_4 (MOD_0FAE_REG_3 + 1)
624 #define MOD_0FAE_REG_5 (MOD_0FAE_REG_4 + 1)
625 #define MOD_0FAE_REG_6 (MOD_0FAE_REG_5 + 1)
626 #define MOD_0FAE_REG_7 (MOD_0FAE_REG_6 + 1)
627 #define MOD_0FB2 (MOD_0FAE_REG_7 + 1)
628 #define MOD_0FB4 (MOD_0FB2 + 1)
629 #define MOD_0FB5 (MOD_0FB4 + 1)
630 #define MOD_0FC7_REG_6 (MOD_0FB5 + 1)
631 #define MOD_0FC7_REG_7 (MOD_0FC7_REG_6 + 1)
632 #define MOD_0FD7 (MOD_0FC7_REG_7 + 1)
633 #define MOD_0FE7_PREFIX_2 (MOD_0FD7 + 1)
634 #define MOD_0FF0_PREFIX_3 (MOD_0FE7_PREFIX_2 + 1)
635 #define MOD_0F382A_PREFIX_2 (MOD_0FF0_PREFIX_3 + 1)
636 #define MOD_62_32BIT (MOD_0F382A_PREFIX_2 + 1)
637 #define MOD_C4_32BIT (MOD_62_32BIT + 1)
638 #define MOD_C5_32BIT (MOD_C4_32BIT + 1)
639 #define MOD_VEX_12_PREFIX_0 (MOD_C5_32BIT + 1)
640 #define MOD_VEX_13 (MOD_VEX_12_PREFIX_0 + 1)
641 #define MOD_VEX_16_PREFIX_0 (MOD_VEX_13 + 1)
642 #define MOD_VEX_17 (MOD_VEX_16_PREFIX_0 + 1)
643 #define MOD_VEX_2B (MOD_VEX_17 + 1)
644 #define MOD_VEX_51 (MOD_VEX_2B + 1)
645 #define MOD_VEX_71_REG_2 (MOD_VEX_51 + 1)
646 #define MOD_VEX_71_REG_4 (MOD_VEX_71_REG_2 + 1)
647 #define MOD_VEX_71_REG_6 (MOD_VEX_71_REG_4 + 1)
648 #define MOD_VEX_72_REG_2 (MOD_VEX_71_REG_6 + 1)
649 #define MOD_VEX_72_REG_4 (MOD_VEX_72_REG_2 + 1)
650 #define MOD_VEX_72_REG_6 (MOD_VEX_72_REG_4 + 1)
651 #define MOD_VEX_73_REG_2 (MOD_VEX_72_REG_6 + 1)
652 #define MOD_VEX_73_REG_3 (MOD_VEX_73_REG_2 + 1)
653 #define MOD_VEX_73_REG_6 (MOD_VEX_73_REG_3 + 1)
654 #define MOD_VEX_73_REG_7 (MOD_VEX_73_REG_6 + 1)
655 #define MOD_VEX_AE_REG_2 (MOD_VEX_73_REG_7 + 1)
656 #define MOD_VEX_AE_REG_3 (MOD_VEX_AE_REG_2 + 1)
657 #define MOD_VEX_D7_PREFIX_2 (MOD_VEX_AE_REG_3 + 1)
658 #define MOD_VEX_E7_PREFIX_2 (MOD_VEX_D7_PREFIX_2 + 1)
659 #define MOD_VEX_F0_PREFIX_3 (MOD_VEX_E7_PREFIX_2 + 1)
660 #define MOD_VEX_3818_PREFIX_2 (MOD_VEX_F0_PREFIX_3 + 1)
661 #define MOD_VEX_3819_PREFIX_2 (MOD_VEX_3818_PREFIX_2 + 1)
662 #define MOD_VEX_381A_PREFIX_2 (MOD_VEX_3819_PREFIX_2 + 1)
663 #define MOD_VEX_382A_PREFIX_2 (MOD_VEX_381A_PREFIX_2 + 1)
664 #define MOD_VEX_382C_PREFIX_2 (MOD_VEX_382A_PREFIX_2 + 1)
665 #define MOD_VEX_382D_PREFIX_2 (MOD_VEX_382C_PREFIX_2 + 1)
666 #define MOD_VEX_382E_PREFIX_2 (MOD_VEX_382D_PREFIX_2 + 1)
667 #define MOD_VEX_382F_PREFIX_2 (MOD_VEX_382E_PREFIX_2 + 1)
669 #define RM_0F01_REG_0 0
670 #define RM_0F01_REG_1 (RM_0F01_REG_0 + 1)
671 #define RM_0F01_REG_2 (RM_0F01_REG_1 + 1)
672 #define RM_0F01_REG_3 (RM_0F01_REG_2 + 1)
673 #define RM_0F01_REG_7 (RM_0F01_REG_3 + 1)
674 #define RM_0FAE_REG_5 (RM_0F01_REG_7 + 1)
675 #define RM_0FAE_REG_6 (RM_0FAE_REG_5 + 1)
676 #define RM_0FAE_REG_7 (RM_0FAE_REG_6 + 1)
679 #define PREFIX_0F10 (PREFIX_90 + 1)
680 #define PREFIX_0F11 (PREFIX_0F10 + 1)
681 #define PREFIX_0F12 (PREFIX_0F11 + 1)
682 #define PREFIX_0F16 (PREFIX_0F12 + 1)
683 #define PREFIX_0F2A (PREFIX_0F16 + 1)
684 #define PREFIX_0F2B (PREFIX_0F2A + 1)
685 #define PREFIX_0F2C (PREFIX_0F2B + 1)
686 #define PREFIX_0F2D (PREFIX_0F2C + 1)
687 #define PREFIX_0F2E (PREFIX_0F2D + 1)
688 #define PREFIX_0F2F (PREFIX_0F2E + 1)
689 #define PREFIX_0F51 (PREFIX_0F2F + 1)
690 #define PREFIX_0F52 (PREFIX_0F51 + 1)
691 #define PREFIX_0F53 (PREFIX_0F52 + 1)
692 #define PREFIX_0F58 (PREFIX_0F53 + 1)
693 #define PREFIX_0F59 (PREFIX_0F58 + 1)
694 #define PREFIX_0F5A (PREFIX_0F59 + 1)
695 #define PREFIX_0F5B (PREFIX_0F5A + 1)
696 #define PREFIX_0F5C (PREFIX_0F5B + 1)
697 #define PREFIX_0F5D (PREFIX_0F5C + 1)
698 #define PREFIX_0F5E (PREFIX_0F5D + 1)
699 #define PREFIX_0F5F (PREFIX_0F5E + 1)
700 #define PREFIX_0F60 (PREFIX_0F5F + 1)
701 #define PREFIX_0F61 (PREFIX_0F60 + 1)
702 #define PREFIX_0F62 (PREFIX_0F61 + 1)
703 #define PREFIX_0F6C (PREFIX_0F62 + 1)
704 #define PREFIX_0F6D (PREFIX_0F6C + 1)
705 #define PREFIX_0F6F (PREFIX_0F6D + 1)
706 #define PREFIX_0F70 (PREFIX_0F6F + 1)
707 #define PREFIX_0F73_REG_3 (PREFIX_0F70 + 1)
708 #define PREFIX_0F73_REG_7 (PREFIX_0F73_REG_3 + 1)
709 #define PREFIX_0F78 (PREFIX_0F73_REG_7 + 1)
710 #define PREFIX_0F79 (PREFIX_0F78 + 1)
711 #define PREFIX_0F7C (PREFIX_0F79 + 1)
712 #define PREFIX_0F7D (PREFIX_0F7C + 1)
713 #define PREFIX_0F7E (PREFIX_0F7D + 1)
714 #define PREFIX_0F7F (PREFIX_0F7E + 1)
715 #define PREFIX_0FB8 (PREFIX_0F7F + 1)
716 #define PREFIX_0FBD (PREFIX_0FB8 + 1)
717 #define PREFIX_0FC2 (PREFIX_0FBD + 1)
718 #define PREFIX_0FC3 (PREFIX_0FC2 + 1)
719 #define PREFIX_0FC7_REG_6 (PREFIX_0FC3 + 1)
720 #define PREFIX_0FD0 (PREFIX_0FC7_REG_6 + 1)
721 #define PREFIX_0FD6 (PREFIX_0FD0 + 1)
722 #define PREFIX_0FE6 (PREFIX_0FD6 + 1)
723 #define PREFIX_0FE7 (PREFIX_0FE6 + 1)
724 #define PREFIX_0FF0 (PREFIX_0FE7 + 1)
725 #define PREFIX_0FF7 (PREFIX_0FF0 + 1)
726 #define PREFIX_0F3810 (PREFIX_0FF7 + 1)
727 #define PREFIX_0F3814 (PREFIX_0F3810 + 1)
728 #define PREFIX_0F3815 (PREFIX_0F3814 + 1)
729 #define PREFIX_0F3817 (PREFIX_0F3815 + 1)
730 #define PREFIX_0F3820 (PREFIX_0F3817 + 1)
731 #define PREFIX_0F3821 (PREFIX_0F3820 + 1)
732 #define PREFIX_0F3822 (PREFIX_0F3821 + 1)
733 #define PREFIX_0F3823 (PREFIX_0F3822 + 1)
734 #define PREFIX_0F3824 (PREFIX_0F3823 + 1)
735 #define PREFIX_0F3825 (PREFIX_0F3824 + 1)
736 #define PREFIX_0F3828 (PREFIX_0F3825 + 1)
737 #define PREFIX_0F3829 (PREFIX_0F3828 + 1)
738 #define PREFIX_0F382A (PREFIX_0F3829 + 1)
739 #define PREFIX_0F382B (PREFIX_0F382A + 1)
740 #define PREFIX_0F3830 (PREFIX_0F382B + 1)
741 #define PREFIX_0F3831 (PREFIX_0F3830 + 1)
742 #define PREFIX_0F3832 (PREFIX_0F3831 + 1)
743 #define PREFIX_0F3833 (PREFIX_0F3832 + 1)
744 #define PREFIX_0F3834 (PREFIX_0F3833 + 1)
745 #define PREFIX_0F3835 (PREFIX_0F3834 + 1)
746 #define PREFIX_0F3837 (PREFIX_0F3835 + 1)
747 #define PREFIX_0F3838 (PREFIX_0F3837 + 1)
748 #define PREFIX_0F3839 (PREFIX_0F3838 + 1)
749 #define PREFIX_0F383A (PREFIX_0F3839 + 1)
750 #define PREFIX_0F383B (PREFIX_0F383A + 1)
751 #define PREFIX_0F383C (PREFIX_0F383B + 1)
752 #define PREFIX_0F383D (PREFIX_0F383C + 1)
753 #define PREFIX_0F383E (PREFIX_0F383D + 1)
754 #define PREFIX_0F383F (PREFIX_0F383E + 1)
755 #define PREFIX_0F3840 (PREFIX_0F383F + 1)
756 #define PREFIX_0F3841 (PREFIX_0F3840 + 1)
757 #define PREFIX_0F3880 (PREFIX_0F3841 + 1)
758 #define PREFIX_0F3881 (PREFIX_0F3880 + 1)
759 #define PREFIX_0F38DB (PREFIX_0F3881 + 1)
760 #define PREFIX_0F38DC (PREFIX_0F38DB + 1)
761 #define PREFIX_0F38DD (PREFIX_0F38DC + 1)
762 #define PREFIX_0F38DE (PREFIX_0F38DD + 1)
763 #define PREFIX_0F38DF (PREFIX_0F38DE + 1)
764 #define PREFIX_0F38F0 (PREFIX_0F38DF + 1)
765 #define PREFIX_0F38F1 (PREFIX_0F38F0 + 1)
766 #define PREFIX_0F3A08 (PREFIX_0F38F1 + 1)
767 #define PREFIX_0F3A09 (PREFIX_0F3A08 + 1)
768 #define PREFIX_0F3A0A (PREFIX_0F3A09 + 1)
769 #define PREFIX_0F3A0B (PREFIX_0F3A0A + 1)
770 #define PREFIX_0F3A0C (PREFIX_0F3A0B + 1)
771 #define PREFIX_0F3A0D (PREFIX_0F3A0C + 1)
772 #define PREFIX_0F3A0E (PREFIX_0F3A0D + 1)
773 #define PREFIX_0F3A14 (PREFIX_0F3A0E + 1)
774 #define PREFIX_0F3A15 (PREFIX_0F3A14 + 1)
775 #define PREFIX_0F3A16 (PREFIX_0F3A15 + 1)
776 #define PREFIX_0F3A17 (PREFIX_0F3A16 + 1)
777 #define PREFIX_0F3A20 (PREFIX_0F3A17 + 1)
778 #define PREFIX_0F3A21 (PREFIX_0F3A20 + 1)
779 #define PREFIX_0F3A22 (PREFIX_0F3A21 + 1)
780 #define PREFIX_0F3A40 (PREFIX_0F3A22 + 1)
781 #define PREFIX_0F3A41 (PREFIX_0F3A40 + 1)
782 #define PREFIX_0F3A42 (PREFIX_0F3A41 + 1)
783 #define PREFIX_0F3A44 (PREFIX_0F3A42 + 1)
784 #define PREFIX_0F3A60 (PREFIX_0F3A44 + 1)
785 #define PREFIX_0F3A61 (PREFIX_0F3A60 + 1)
786 #define PREFIX_0F3A62 (PREFIX_0F3A61 + 1)
787 #define PREFIX_0F3A63 (PREFIX_0F3A62 + 1)
788 #define PREFIX_0F3ADF (PREFIX_0F3A63 + 1)
789 #define PREFIX_VEX_10 (PREFIX_0F3ADF + 1)
790 #define PREFIX_VEX_11 (PREFIX_VEX_10 + 1)
791 #define PREFIX_VEX_12 (PREFIX_VEX_11 + 1)
792 #define PREFIX_VEX_16 (PREFIX_VEX_12 + 1)
793 #define PREFIX_VEX_2A (PREFIX_VEX_16 + 1)
794 #define PREFIX_VEX_2C (PREFIX_VEX_2A + 1)
795 #define PREFIX_VEX_2D (PREFIX_VEX_2C + 1)
796 #define PREFIX_VEX_2E (PREFIX_VEX_2D + 1)
797 #define PREFIX_VEX_2F (PREFIX_VEX_2E + 1)
798 #define PREFIX_VEX_51 (PREFIX_VEX_2F + 1)
799 #define PREFIX_VEX_52 (PREFIX_VEX_51 + 1)
800 #define PREFIX_VEX_53 (PREFIX_VEX_52 + 1)
801 #define PREFIX_VEX_58 (PREFIX_VEX_53 + 1)
802 #define PREFIX_VEX_59 (PREFIX_VEX_58 + 1)
803 #define PREFIX_VEX_5A (PREFIX_VEX_59 + 1)
804 #define PREFIX_VEX_5B (PREFIX_VEX_5A + 1)
805 #define PREFIX_VEX_5C (PREFIX_VEX_5B + 1)
806 #define PREFIX_VEX_5D (PREFIX_VEX_5C + 1)
807 #define PREFIX_VEX_5E (PREFIX_VEX_5D + 1)
808 #define PREFIX_VEX_5F (PREFIX_VEX_5E + 1)
809 #define PREFIX_VEX_60 (PREFIX_VEX_5F + 1)
810 #define PREFIX_VEX_61 (PREFIX_VEX_60 + 1)
811 #define PREFIX_VEX_62 (PREFIX_VEX_61 + 1)
812 #define PREFIX_VEX_63 (PREFIX_VEX_62 + 1)
813 #define PREFIX_VEX_64 (PREFIX_VEX_63 + 1)
814 #define PREFIX_VEX_65 (PREFIX_VEX_64 + 1)
815 #define PREFIX_VEX_66 (PREFIX_VEX_65 + 1)
816 #define PREFIX_VEX_67 (PREFIX_VEX_66 + 1)
817 #define PREFIX_VEX_68 (PREFIX_VEX_67 + 1)
818 #define PREFIX_VEX_69 (PREFIX_VEX_68 + 1)
819 #define PREFIX_VEX_6A (PREFIX_VEX_69 + 1)
820 #define PREFIX_VEX_6B (PREFIX_VEX_6A + 1)
821 #define PREFIX_VEX_6C (PREFIX_VEX_6B + 1)
822 #define PREFIX_VEX_6D (PREFIX_VEX_6C + 1)
823 #define PREFIX_VEX_6E (PREFIX_VEX_6D + 1)
824 #define PREFIX_VEX_6F (PREFIX_VEX_6E + 1)
825 #define PREFIX_VEX_70 (PREFIX_VEX_6F + 1)
826 #define PREFIX_VEX_71_REG_2 (PREFIX_VEX_70 + 1)
827 #define PREFIX_VEX_71_REG_4 (PREFIX_VEX_71_REG_2 + 1)
828 #define PREFIX_VEX_71_REG_6 (PREFIX_VEX_71_REG_4 + 1)
829 #define PREFIX_VEX_72_REG_2 (PREFIX_VEX_71_REG_6 + 1)
830 #define PREFIX_VEX_72_REG_4 (PREFIX_VEX_72_REG_2 + 1)
831 #define PREFIX_VEX_72_REG_6 (PREFIX_VEX_72_REG_4 + 1)
832 #define PREFIX_VEX_73_REG_2 (PREFIX_VEX_72_REG_6 + 1)
833 #define PREFIX_VEX_73_REG_3 (PREFIX_VEX_73_REG_2 + 1)
834 #define PREFIX_VEX_73_REG_6 (PREFIX_VEX_73_REG_3 + 1)
835 #define PREFIX_VEX_73_REG_7 (PREFIX_VEX_73_REG_6 + 1)
836 #define PREFIX_VEX_74 (PREFIX_VEX_73_REG_7 + 1)
837 #define PREFIX_VEX_75 (PREFIX_VEX_74 + 1)
838 #define PREFIX_VEX_76 (PREFIX_VEX_75 + 1)
839 #define PREFIX_VEX_77 (PREFIX_VEX_76 + 1)
840 #define PREFIX_VEX_7C (PREFIX_VEX_77 + 1)
841 #define PREFIX_VEX_7D (PREFIX_VEX_7C + 1)
842 #define PREFIX_VEX_7E (PREFIX_VEX_7D + 1)
843 #define PREFIX_VEX_7F (PREFIX_VEX_7E + 1)
844 #define PREFIX_VEX_C2 (PREFIX_VEX_7F + 1)
845 #define PREFIX_VEX_C4 (PREFIX_VEX_C2 + 1)
846 #define PREFIX_VEX_C5 (PREFIX_VEX_C4 + 1)
847 #define PREFIX_VEX_D0 (PREFIX_VEX_C5 + 1)
848 #define PREFIX_VEX_D1 (PREFIX_VEX_D0 + 1)
849 #define PREFIX_VEX_D2 (PREFIX_VEX_D1 + 1)
850 #define PREFIX_VEX_D3 (PREFIX_VEX_D2 + 1)
851 #define PREFIX_VEX_D4 (PREFIX_VEX_D3 + 1)
852 #define PREFIX_VEX_D5 (PREFIX_VEX_D4 + 1)
853 #define PREFIX_VEX_D6 (PREFIX_VEX_D5 + 1)
854 #define PREFIX_VEX_D7 (PREFIX_VEX_D6 + 1)
855 #define PREFIX_VEX_D8 (PREFIX_VEX_D7 + 1)
856 #define PREFIX_VEX_D9 (PREFIX_VEX_D8 + 1)
857 #define PREFIX_VEX_DA (PREFIX_VEX_D9 + 1)
858 #define PREFIX_VEX_DB (PREFIX_VEX_DA + 1)
859 #define PREFIX_VEX_DC (PREFIX_VEX_DB + 1)
860 #define PREFIX_VEX_DD (PREFIX_VEX_DC + 1)
861 #define PREFIX_VEX_DE (PREFIX_VEX_DD + 1)
862 #define PREFIX_VEX_DF (PREFIX_VEX_DE + 1)
863 #define PREFIX_VEX_E0 (PREFIX_VEX_DF + 1)
864 #define PREFIX_VEX_E1 (PREFIX_VEX_E0 + 1)
865 #define PREFIX_VEX_E2 (PREFIX_VEX_E1 + 1)
866 #define PREFIX_VEX_E3 (PREFIX_VEX_E2 + 1)
867 #define PREFIX_VEX_E4 (PREFIX_VEX_E3 + 1)
868 #define PREFIX_VEX_E5 (PREFIX_VEX_E4 + 1)
869 #define PREFIX_VEX_E6 (PREFIX_VEX_E5 + 1)
870 #define PREFIX_VEX_E7 (PREFIX_VEX_E6 + 1)
871 #define PREFIX_VEX_E8 (PREFIX_VEX_E7 + 1)
872 #define PREFIX_VEX_E9 (PREFIX_VEX_E8 + 1)
873 #define PREFIX_VEX_EA (PREFIX_VEX_E9 + 1)
874 #define PREFIX_VEX_EB (PREFIX_VEX_EA + 1)
875 #define PREFIX_VEX_EC (PREFIX_VEX_EB + 1)
876 #define PREFIX_VEX_ED (PREFIX_VEX_EC + 1)
877 #define PREFIX_VEX_EE (PREFIX_VEX_ED + 1)
878 #define PREFIX_VEX_EF (PREFIX_VEX_EE + 1)
879 #define PREFIX_VEX_F0 (PREFIX_VEX_EF + 1)
880 #define PREFIX_VEX_F1 (PREFIX_VEX_F0 + 1)
881 #define PREFIX_VEX_F2 (PREFIX_VEX_F1 + 1)
882 #define PREFIX_VEX_F3 (PREFIX_VEX_F2 + 1)
883 #define PREFIX_VEX_F4 (PREFIX_VEX_F3 + 1)
884 #define PREFIX_VEX_F5 (PREFIX_VEX_F4 + 1)
885 #define PREFIX_VEX_F6 (PREFIX_VEX_F5 + 1)
886 #define PREFIX_VEX_F7 (PREFIX_VEX_F6 + 1)
887 #define PREFIX_VEX_F8 (PREFIX_VEX_F7 + 1)
888 #define PREFIX_VEX_F9 (PREFIX_VEX_F8 + 1)
889 #define PREFIX_VEX_FA (PREFIX_VEX_F9 + 1)
890 #define PREFIX_VEX_FB (PREFIX_VEX_FA + 1)
891 #define PREFIX_VEX_FC (PREFIX_VEX_FB + 1)
892 #define PREFIX_VEX_FD (PREFIX_VEX_FC + 1)
893 #define PREFIX_VEX_FE (PREFIX_VEX_FD + 1)
894 #define PREFIX_VEX_3800 (PREFIX_VEX_FE + 1)
895 #define PREFIX_VEX_3801 (PREFIX_VEX_3800 + 1)
896 #define PREFIX_VEX_3802 (PREFIX_VEX_3801 + 1)
897 #define PREFIX_VEX_3803 (PREFIX_VEX_3802 + 1)
898 #define PREFIX_VEX_3804 (PREFIX_VEX_3803 + 1)
899 #define PREFIX_VEX_3805 (PREFIX_VEX_3804 + 1)
900 #define PREFIX_VEX_3806 (PREFIX_VEX_3805 + 1)
901 #define PREFIX_VEX_3807 (PREFIX_VEX_3806 + 1)
902 #define PREFIX_VEX_3808 (PREFIX_VEX_3807 + 1)
903 #define PREFIX_VEX_3809 (PREFIX_VEX_3808 + 1)
904 #define PREFIX_VEX_380A (PREFIX_VEX_3809 + 1)
905 #define PREFIX_VEX_380B (PREFIX_VEX_380A + 1)
906 #define PREFIX_VEX_380C (PREFIX_VEX_380B + 1)
907 #define PREFIX_VEX_380D (PREFIX_VEX_380C + 1)
908 #define PREFIX_VEX_380E (PREFIX_VEX_380D + 1)
909 #define PREFIX_VEX_380F (PREFIX_VEX_380E + 1)
910 #define PREFIX_VEX_3817 (PREFIX_VEX_380F + 1)
911 #define PREFIX_VEX_3818 (PREFIX_VEX_3817 + 1)
912 #define PREFIX_VEX_3819 (PREFIX_VEX_3818 + 1)
913 #define PREFIX_VEX_381A (PREFIX_VEX_3819 + 1)
914 #define PREFIX_VEX_381C (PREFIX_VEX_381A + 1)
915 #define PREFIX_VEX_381D (PREFIX_VEX_381C + 1)
916 #define PREFIX_VEX_381E (PREFIX_VEX_381D + 1)
917 #define PREFIX_VEX_3820 (PREFIX_VEX_381E + 1)
918 #define PREFIX_VEX_3821 (PREFIX_VEX_3820 + 1)
919 #define PREFIX_VEX_3822 (PREFIX_VEX_3821 + 1)
920 #define PREFIX_VEX_3823 (PREFIX_VEX_3822 + 1)
921 #define PREFIX_VEX_3824 (PREFIX_VEX_3823 + 1)
922 #define PREFIX_VEX_3825 (PREFIX_VEX_3824 + 1)
923 #define PREFIX_VEX_3828 (PREFIX_VEX_3825 + 1)
924 #define PREFIX_VEX_3829 (PREFIX_VEX_3828 + 1)
925 #define PREFIX_VEX_382A (PREFIX_VEX_3829 + 1)
926 #define PREFIX_VEX_382B (PREFIX_VEX_382A + 1)
927 #define PREFIX_VEX_382C (PREFIX_VEX_382B + 1)
928 #define PREFIX_VEX_382D (PREFIX_VEX_382C + 1)
929 #define PREFIX_VEX_382E (PREFIX_VEX_382D + 1)
930 #define PREFIX_VEX_382F (PREFIX_VEX_382E + 1)
931 #define PREFIX_VEX_3830 (PREFIX_VEX_382F + 1)
932 #define PREFIX_VEX_3831 (PREFIX_VEX_3830 + 1)
933 #define PREFIX_VEX_3832 (PREFIX_VEX_3831 + 1)
934 #define PREFIX_VEX_3833 (PREFIX_VEX_3832 + 1)
935 #define PREFIX_VEX_3834 (PREFIX_VEX_3833 + 1)
936 #define PREFIX_VEX_3835 (PREFIX_VEX_3834 + 1)
937 #define PREFIX_VEX_3837 (PREFIX_VEX_3835 + 1)
938 #define PREFIX_VEX_3838 (PREFIX_VEX_3837 + 1)
939 #define PREFIX_VEX_3839 (PREFIX_VEX_3838 + 1)
940 #define PREFIX_VEX_383A (PREFIX_VEX_3839 + 1)
941 #define PREFIX_VEX_383B (PREFIX_VEX_383A + 1)
942 #define PREFIX_VEX_383C (PREFIX_VEX_383B + 1)
943 #define PREFIX_VEX_383D (PREFIX_VEX_383C + 1)
944 #define PREFIX_VEX_383E (PREFIX_VEX_383D + 1)
945 #define PREFIX_VEX_383F (PREFIX_VEX_383E + 1)
946 #define PREFIX_VEX_3840 (PREFIX_VEX_383F + 1)
947 #define PREFIX_VEX_3841 (PREFIX_VEX_3840 + 1)
948 #define PREFIX_VEX_3896 (PREFIX_VEX_3841 + 1)
949 #define PREFIX_VEX_3897 (PREFIX_VEX_3896 + 1)
950 #define PREFIX_VEX_3898 (PREFIX_VEX_3897 + 1)
951 #define PREFIX_VEX_3899 (PREFIX_VEX_3898 + 1)
952 #define PREFIX_VEX_389A (PREFIX_VEX_3899 + 1)
953 #define PREFIX_VEX_389B (PREFIX_VEX_389A + 1)
954 #define PREFIX_VEX_389C (PREFIX_VEX_389B + 1)
955 #define PREFIX_VEX_389D (PREFIX_VEX_389C + 1)
956 #define PREFIX_VEX_389E (PREFIX_VEX_389D + 1)
957 #define PREFIX_VEX_389F (PREFIX_VEX_389E + 1)
958 #define PREFIX_VEX_38A6 (PREFIX_VEX_389F + 1)
959 #define PREFIX_VEX_38A7 (PREFIX_VEX_38A6 + 1)
960 #define PREFIX_VEX_38A8 (PREFIX_VEX_38A7 + 1)
961 #define PREFIX_VEX_38A9 (PREFIX_VEX_38A8 + 1)
962 #define PREFIX_VEX_38AA (PREFIX_VEX_38A9 + 1)
963 #define PREFIX_VEX_38AB (PREFIX_VEX_38AA + 1)
964 #define PREFIX_VEX_38AC (PREFIX_VEX_38AB + 1)
965 #define PREFIX_VEX_38AD (PREFIX_VEX_38AC + 1)
966 #define PREFIX_VEX_38AE (PREFIX_VEX_38AD + 1)
967 #define PREFIX_VEX_38AF (PREFIX_VEX_38AE + 1)
968 #define PREFIX_VEX_38B6 (PREFIX_VEX_38AF + 1)
969 #define PREFIX_VEX_38B7 (PREFIX_VEX_38B6 + 1)
970 #define PREFIX_VEX_38B8 (PREFIX_VEX_38B7 + 1)
971 #define PREFIX_VEX_38B9 (PREFIX_VEX_38B8 + 1)
972 #define PREFIX_VEX_38BA (PREFIX_VEX_38B9 + 1)
973 #define PREFIX_VEX_38BB (PREFIX_VEX_38BA + 1)
974 #define PREFIX_VEX_38BC (PREFIX_VEX_38BB + 1)
975 #define PREFIX_VEX_38BD (PREFIX_VEX_38BC + 1)
976 #define PREFIX_VEX_38BE (PREFIX_VEX_38BD + 1)
977 #define PREFIX_VEX_38BF (PREFIX_VEX_38BE + 1)
978 #define PREFIX_VEX_38DB (PREFIX_VEX_38BF + 1)
979 #define PREFIX_VEX_38DC (PREFIX_VEX_38DB + 1)
980 #define PREFIX_VEX_38DD (PREFIX_VEX_38DC + 1)
981 #define PREFIX_VEX_38DE (PREFIX_VEX_38DD + 1)
982 #define PREFIX_VEX_38DF (PREFIX_VEX_38DE + 1)
983 #define PREFIX_VEX_3A04 (PREFIX_VEX_38DF + 1)
984 #define PREFIX_VEX_3A05 (PREFIX_VEX_3A04 + 1)
985 #define PREFIX_VEX_3A06 (PREFIX_VEX_3A05 + 1)
986 #define PREFIX_VEX_3A08 (PREFIX_VEX_3A06 + 1)
987 #define PREFIX_VEX_3A09 (PREFIX_VEX_3A08 + 1)
988 #define PREFIX_VEX_3A0A (PREFIX_VEX_3A09 + 1)
989 #define PREFIX_VEX_3A0B (PREFIX_VEX_3A0A + 1)
990 #define PREFIX_VEX_3A0C (PREFIX_VEX_3A0B + 1)
991 #define PREFIX_VEX_3A0D (PREFIX_VEX_3A0C + 1)
992 #define PREFIX_VEX_3A0E (PREFIX_VEX_3A0D + 1)
993 #define PREFIX_VEX_3A0F (PREFIX_VEX_3A0E + 1)
994 #define PREFIX_VEX_3A14 (PREFIX_VEX_3A0F + 1)
995 #define PREFIX_VEX_3A15 (PREFIX_VEX_3A14 + 1)
996 #define PREFIX_VEX_3A16 (PREFIX_VEX_3A15 + 1)
997 #define PREFIX_VEX_3A17 (PREFIX_VEX_3A16 + 1)
998 #define PREFIX_VEX_3A18 (PREFIX_VEX_3A17 + 1)
999 #define PREFIX_VEX_3A19 (PREFIX_VEX_3A18 + 1)
1000 #define PREFIX_VEX_3A20 (PREFIX_VEX_3A19 + 1)
1001 #define PREFIX_VEX_3A21 (PREFIX_VEX_3A20 + 1)
1002 #define PREFIX_VEX_3A22 (PREFIX_VEX_3A21 + 1)
1003 #define PREFIX_VEX_3A40 (PREFIX_VEX_3A22 + 1)
1004 #define PREFIX_VEX_3A41 (PREFIX_VEX_3A40 + 1)
1005 #define PREFIX_VEX_3A42 (PREFIX_VEX_3A41 + 1)
1006 #define PREFIX_VEX_3A4A (PREFIX_VEX_3A42 + 1)
1007 #define PREFIX_VEX_3A4B (PREFIX_VEX_3A4A + 1)
1008 #define PREFIX_VEX_3A4C (PREFIX_VEX_3A4B + 1)
1009 #define PREFIX_VEX_3A60 (PREFIX_VEX_3A4C + 1)
1010 #define PREFIX_VEX_3A61 (PREFIX_VEX_3A60 + 1)
1011 #define PREFIX_VEX_3A62 (PREFIX_VEX_3A61 + 1)
1012 #define PREFIX_VEX_3A63 (PREFIX_VEX_3A62 + 1)
1013 #define PREFIX_VEX_3ADF (PREFIX_VEX_3A63 + 1)
1016 #define X86_64_07 (X86_64_06 + 1)
1017 #define X86_64_0D (X86_64_07 + 1)
1018 #define X86_64_16 (X86_64_0D + 1)
1019 #define X86_64_17 (X86_64_16 + 1)
1020 #define X86_64_1E (X86_64_17 + 1)
1021 #define X86_64_1F (X86_64_1E + 1)
1022 #define X86_64_27 (X86_64_1F + 1)
1023 #define X86_64_2F (X86_64_27 + 1)
1024 #define X86_64_37 (X86_64_2F + 1)
1025 #define X86_64_3F (X86_64_37 + 1)
1026 #define X86_64_60 (X86_64_3F + 1)
1027 #define X86_64_61 (X86_64_60 + 1)
1028 #define X86_64_62 (X86_64_61 + 1)
1029 #define X86_64_63 (X86_64_62 + 1)
1030 #define X86_64_6D (X86_64_63 + 1)
1031 #define X86_64_6F (X86_64_6D + 1)
1032 #define X86_64_9A (X86_64_6F + 1)
1033 #define X86_64_C4 (X86_64_9A + 1)
1034 #define X86_64_C5 (X86_64_C4 + 1)
1035 #define X86_64_CE (X86_64_C5 + 1)
1036 #define X86_64_D4 (X86_64_CE + 1)
1037 #define X86_64_D5 (X86_64_D4 + 1)
1038 #define X86_64_EA (X86_64_D5 + 1)
1039 #define X86_64_0F01_REG_0 (X86_64_EA + 1)
1040 #define X86_64_0F01_REG_1 (X86_64_0F01_REG_0 + 1)
1041 #define X86_64_0F01_REG_2 (X86_64_0F01_REG_1 + 1)
1042 #define X86_64_0F01_REG_3 (X86_64_0F01_REG_2 + 1)
1044 #define THREE_BYTE_0F24 0
1045 #define THREE_BYTE_0F25 (THREE_BYTE_0F24 + 1)
1046 #define THREE_BYTE_0F38 (THREE_BYTE_0F25 + 1)
1047 #define THREE_BYTE_0F3A (THREE_BYTE_0F38 + 1)
1048 #define THREE_BYTE_0F7A (THREE_BYTE_0F3A + 1)
1049 #define THREE_BYTE_0F7B (THREE_BYTE_0F7A + 1)
1052 #define VEX_0F38 (VEX_0F + 1)
1053 #define VEX_0F3A (VEX_0F38 + 1)
1055 #define VEX_LEN_10_P_1 0
1056 #define VEX_LEN_10_P_3 (VEX_LEN_10_P_1 + 1)
1057 #define VEX_LEN_11_P_1 (VEX_LEN_10_P_3 + 1)
1058 #define VEX_LEN_11_P_3 (VEX_LEN_11_P_1 + 1)
1059 #define VEX_LEN_12_P_0_M_0 (VEX_LEN_11_P_3 + 1)
1060 #define VEX_LEN_12_P_0_M_1 (VEX_LEN_12_P_0_M_0 + 1)
1061 #define VEX_LEN_12_P_2 (VEX_LEN_12_P_0_M_1 + 1)
1062 #define VEX_LEN_13_M_0 (VEX_LEN_12_P_2 + 1)
1063 #define VEX_LEN_16_P_0_M_0 (VEX_LEN_13_M_0 + 1)
1064 #define VEX_LEN_16_P_0_M_1 (VEX_LEN_16_P_0_M_0 + 1)
1065 #define VEX_LEN_16_P_2 (VEX_LEN_16_P_0_M_1 + 1)
1066 #define VEX_LEN_17_M_0 (VEX_LEN_16_P_2 + 1)
1067 #define VEX_LEN_2A_P_1 (VEX_LEN_17_M_0 + 1)
1068 #define VEX_LEN_2A_P_3 (VEX_LEN_2A_P_1 + 1)
1069 #define VEX_LEN_2C_P_1 (VEX_LEN_2A_P_3 + 1)
1070 #define VEX_LEN_2C_P_3 (VEX_LEN_2C_P_1 + 1)
1071 #define VEX_LEN_2D_P_1 (VEX_LEN_2C_P_3 + 1)
1072 #define VEX_LEN_2D_P_3 (VEX_LEN_2D_P_1 + 1)
1073 #define VEX_LEN_2E_P_0 (VEX_LEN_2D_P_3 + 1)
1074 #define VEX_LEN_2E_P_2 (VEX_LEN_2E_P_0 + 1)
1075 #define VEX_LEN_2F_P_0 (VEX_LEN_2E_P_2 + 1)
1076 #define VEX_LEN_2F_P_2 (VEX_LEN_2F_P_0 + 1)
1077 #define VEX_LEN_51_P_1 (VEX_LEN_2F_P_2 + 1)
1078 #define VEX_LEN_51_P_3 (VEX_LEN_51_P_1 + 1)
1079 #define VEX_LEN_52_P_1 (VEX_LEN_51_P_3 + 1)
1080 #define VEX_LEN_53_P_1 (VEX_LEN_52_P_1 + 1)
1081 #define VEX_LEN_58_P_1 (VEX_LEN_53_P_1 + 1)
1082 #define VEX_LEN_58_P_3 (VEX_LEN_58_P_1 + 1)
1083 #define VEX_LEN_59_P_1 (VEX_LEN_58_P_3 + 1)
1084 #define VEX_LEN_59_P_3 (VEX_LEN_59_P_1 + 1)
1085 #define VEX_LEN_5A_P_1 (VEX_LEN_59_P_3 + 1)
1086 #define VEX_LEN_5A_P_3 (VEX_LEN_5A_P_1 + 1)
1087 #define VEX_LEN_5C_P_1 (VEX_LEN_5A_P_3 + 1)
1088 #define VEX_LEN_5C_P_3 (VEX_LEN_5C_P_1 + 1)
1089 #define VEX_LEN_5D_P_1 (VEX_LEN_5C_P_3 + 1)
1090 #define VEX_LEN_5D_P_3 (VEX_LEN_5D_P_1 + 1)
1091 #define VEX_LEN_5E_P_1 (VEX_LEN_5D_P_3 + 1)
1092 #define VEX_LEN_5E_P_3 (VEX_LEN_5E_P_1 + 1)
1093 #define VEX_LEN_5F_P_1 (VEX_LEN_5E_P_3 + 1)
1094 #define VEX_LEN_5F_P_3 (VEX_LEN_5F_P_1 + 1)
1095 #define VEX_LEN_60_P_2 (VEX_LEN_5F_P_3 + 1)
1096 #define VEX_LEN_61_P_2 (VEX_LEN_60_P_2 + 1)
1097 #define VEX_LEN_62_P_2 (VEX_LEN_61_P_2 + 1)
1098 #define VEX_LEN_63_P_2 (VEX_LEN_62_P_2 + 1)
1099 #define VEX_LEN_64_P_2 (VEX_LEN_63_P_2 + 1)
1100 #define VEX_LEN_65_P_2 (VEX_LEN_64_P_2 + 1)
1101 #define VEX_LEN_66_P_2 (VEX_LEN_65_P_2 + 1)
1102 #define VEX_LEN_67_P_2 (VEX_LEN_66_P_2 + 1)
1103 #define VEX_LEN_68_P_2 (VEX_LEN_67_P_2 + 1)
1104 #define VEX_LEN_69_P_2 (VEX_LEN_68_P_2 + 1)
1105 #define VEX_LEN_6A_P_2 (VEX_LEN_69_P_2 + 1)
1106 #define VEX_LEN_6B_P_2 (VEX_LEN_6A_P_2 + 1)
1107 #define VEX_LEN_6C_P_2 (VEX_LEN_6B_P_2 + 1)
1108 #define VEX_LEN_6D_P_2 (VEX_LEN_6C_P_2 + 1)
1109 #define VEX_LEN_6E_P_2 (VEX_LEN_6D_P_2 + 1)
1110 #define VEX_LEN_70_P_1 (VEX_LEN_6E_P_2 + 1)
1111 #define VEX_LEN_70_P_2 (VEX_LEN_70_P_1 + 1)
1112 #define VEX_LEN_70_P_3 (VEX_LEN_70_P_2 + 1)
1113 #define VEX_LEN_71_R_2_P_2 (VEX_LEN_70_P_3 + 1)
1114 #define VEX_LEN_71_R_4_P_2 (VEX_LEN_71_R_2_P_2 + 1)
1115 #define VEX_LEN_71_R_6_P_2 (VEX_LEN_71_R_4_P_2 + 1)
1116 #define VEX_LEN_72_R_2_P_2 (VEX_LEN_71_R_6_P_2 + 1)
1117 #define VEX_LEN_72_R_4_P_2 (VEX_LEN_72_R_2_P_2 + 1)
1118 #define VEX_LEN_72_R_6_P_2 (VEX_LEN_72_R_4_P_2 + 1)
1119 #define VEX_LEN_73_R_2_P_2 (VEX_LEN_72_R_6_P_2 + 1)
1120 #define VEX_LEN_73_R_3_P_2 (VEX_LEN_73_R_2_P_2 + 1)
1121 #define VEX_LEN_73_R_6_P_2 (VEX_LEN_73_R_3_P_2 + 1)
1122 #define VEX_LEN_73_R_7_P_2 (VEX_LEN_73_R_6_P_2 + 1)
1123 #define VEX_LEN_74_P_2 (VEX_LEN_73_R_7_P_2 + 1)
1124 #define VEX_LEN_75_P_2 (VEX_LEN_74_P_2 + 1)
1125 #define VEX_LEN_76_P_2 (VEX_LEN_75_P_2 + 1)
1126 #define VEX_LEN_7E_P_1 (VEX_LEN_76_P_2 + 1)
1127 #define VEX_LEN_7E_P_2 (VEX_LEN_7E_P_1 + 1)
1128 #define VEX_LEN_AE_R_2_M_0 (VEX_LEN_7E_P_2 + 1)
1129 #define VEX_LEN_AE_R_3_M_0 (VEX_LEN_AE_R_2_M_0 + 1)
1130 #define VEX_LEN_C2_P_1 (VEX_LEN_AE_R_3_M_0 + 1)
1131 #define VEX_LEN_C2_P_3 (VEX_LEN_C2_P_1 + 1)
1132 #define VEX_LEN_C4_P_2 (VEX_LEN_C2_P_3 + 1)
1133 #define VEX_LEN_C5_P_2 (VEX_LEN_C4_P_2 + 1)
1134 #define VEX_LEN_D1_P_2 (VEX_LEN_C5_P_2 + 1)
1135 #define VEX_LEN_D2_P_2 (VEX_LEN_D1_P_2 + 1)
1136 #define VEX_LEN_D3_P_2 (VEX_LEN_D2_P_2 + 1)
1137 #define VEX_LEN_D4_P_2 (VEX_LEN_D3_P_2 + 1)
1138 #define VEX_LEN_D5_P_2 (VEX_LEN_D4_P_2 + 1)
1139 #define VEX_LEN_D6_P_2 (VEX_LEN_D5_P_2 + 1)
1140 #define VEX_LEN_D7_P_2_M_1 (VEX_LEN_D6_P_2 + 1)
1141 #define VEX_LEN_D8_P_2 (VEX_LEN_D7_P_2_M_1 + 1)
1142 #define VEX_LEN_D9_P_2 (VEX_LEN_D8_P_2 + 1)
1143 #define VEX_LEN_DA_P_2 (VEX_LEN_D9_P_2 + 1)
1144 #define VEX_LEN_DB_P_2 (VEX_LEN_DA_P_2 + 1)
1145 #define VEX_LEN_DC_P_2 (VEX_LEN_DB_P_2 + 1)
1146 #define VEX_LEN_DD_P_2 (VEX_LEN_DC_P_2 + 1)
1147 #define VEX_LEN_DE_P_2 (VEX_LEN_DD_P_2 + 1)
1148 #define VEX_LEN_DF_P_2 (VEX_LEN_DE_P_2 + 1)
1149 #define VEX_LEN_E0_P_2 (VEX_LEN_DF_P_2 + 1)
1150 #define VEX_LEN_E1_P_2 (VEX_LEN_E0_P_2 + 1)
1151 #define VEX_LEN_E2_P_2 (VEX_LEN_E1_P_2 + 1)
1152 #define VEX_LEN_E3_P_2 (VEX_LEN_E2_P_2 + 1)
1153 #define VEX_LEN_E4_P_2 (VEX_LEN_E3_P_2 + 1)
1154 #define VEX_LEN_E5_P_2 (VEX_LEN_E4_P_2 + 1)
1155 #define VEX_LEN_E8_P_2 (VEX_LEN_E5_P_2 + 1)
1156 #define VEX_LEN_E9_P_2 (VEX_LEN_E8_P_2 + 1)
1157 #define VEX_LEN_EA_P_2 (VEX_LEN_E9_P_2 + 1)
1158 #define VEX_LEN_EB_P_2 (VEX_LEN_EA_P_2 + 1)
1159 #define VEX_LEN_EC_P_2 (VEX_LEN_EB_P_2 + 1)
1160 #define VEX_LEN_ED_P_2 (VEX_LEN_EC_P_2 + 1)
1161 #define VEX_LEN_EE_P_2 (VEX_LEN_ED_P_2 + 1)
1162 #define VEX_LEN_EF_P_2 (VEX_LEN_EE_P_2 + 1)
1163 #define VEX_LEN_F1_P_2 (VEX_LEN_EF_P_2 + 1)
1164 #define VEX_LEN_F2_P_2 (VEX_LEN_F1_P_2 + 1)
1165 #define VEX_LEN_F3_P_2 (VEX_LEN_F2_P_2 + 1)
1166 #define VEX_LEN_F4_P_2 (VEX_LEN_F3_P_2 + 1)
1167 #define VEX_LEN_F5_P_2 (VEX_LEN_F4_P_2 + 1)
1168 #define VEX_LEN_F6_P_2 (VEX_LEN_F5_P_2 + 1)
1169 #define VEX_LEN_F7_P_2 (VEX_LEN_F6_P_2 + 1)
1170 #define VEX_LEN_F8_P_2 (VEX_LEN_F7_P_2 + 1)
1171 #define VEX_LEN_F9_P_2 (VEX_LEN_F8_P_2 + 1)
1172 #define VEX_LEN_FA_P_2 (VEX_LEN_F9_P_2 + 1)
1173 #define VEX_LEN_FB_P_2 (VEX_LEN_FA_P_2 + 1)
1174 #define VEX_LEN_FC_P_2 (VEX_LEN_FB_P_2 + 1)
1175 #define VEX_LEN_FD_P_2 (VEX_LEN_FC_P_2 + 1)
1176 #define VEX_LEN_FE_P_2 (VEX_LEN_FD_P_2 + 1)
1177 #define VEX_LEN_3800_P_2 (VEX_LEN_FE_P_2 + 1)
1178 #define VEX_LEN_3801_P_2 (VEX_LEN_3800_P_2 + 1)
1179 #define VEX_LEN_3802_P_2 (VEX_LEN_3801_P_2 + 1)
1180 #define VEX_LEN_3803_P_2 (VEX_LEN_3802_P_2 + 1)
1181 #define VEX_LEN_3804_P_2 (VEX_LEN_3803_P_2 + 1)
1182 #define VEX_LEN_3805_P_2 (VEX_LEN_3804_P_2 + 1)
1183 #define VEX_LEN_3806_P_2 (VEX_LEN_3805_P_2 + 1)
1184 #define VEX_LEN_3807_P_2 (VEX_LEN_3806_P_2 + 1)
1185 #define VEX_LEN_3808_P_2 (VEX_LEN_3807_P_2 + 1)
1186 #define VEX_LEN_3809_P_2 (VEX_LEN_3808_P_2 + 1)
1187 #define VEX_LEN_380A_P_2 (VEX_LEN_3809_P_2 + 1)
1188 #define VEX_LEN_380B_P_2 (VEX_LEN_380A_P_2 + 1)
1189 #define VEX_LEN_3819_P_2_M_0 (VEX_LEN_380B_P_2 + 1)
1190 #define VEX_LEN_381A_P_2_M_0 (VEX_LEN_3819_P_2_M_0 + 1)
1191 #define VEX_LEN_381C_P_2 (VEX_LEN_381A_P_2_M_0 + 1)
1192 #define VEX_LEN_381D_P_2 (VEX_LEN_381C_P_2 + 1)
1193 #define VEX_LEN_381E_P_2 (VEX_LEN_381D_P_2 + 1)
1194 #define VEX_LEN_3820_P_2 (VEX_LEN_381E_P_2 + 1)
1195 #define VEX_LEN_3821_P_2 (VEX_LEN_3820_P_2 + 1)
1196 #define VEX_LEN_3822_P_2 (VEX_LEN_3821_P_2 + 1)
1197 #define VEX_LEN_3823_P_2 (VEX_LEN_3822_P_2 + 1)
1198 #define VEX_LEN_3824_P_2 (VEX_LEN_3823_P_2 + 1)
1199 #define VEX_LEN_3825_P_2 (VEX_LEN_3824_P_2 + 1)
1200 #define VEX_LEN_3828_P_2 (VEX_LEN_3825_P_2 + 1)
1201 #define VEX_LEN_3829_P_2 (VEX_LEN_3828_P_2 + 1)
1202 #define VEX_LEN_382A_P_2_M_0 (VEX_LEN_3829_P_2 + 1)
1203 #define VEX_LEN_382B_P_2 (VEX_LEN_382A_P_2_M_0 + 1)
1204 #define VEX_LEN_3830_P_2 (VEX_LEN_382B_P_2 + 1)
1205 #define VEX_LEN_3831_P_2 (VEX_LEN_3830_P_2 + 1)
1206 #define VEX_LEN_3832_P_2 (VEX_LEN_3831_P_2 + 1)
1207 #define VEX_LEN_3833_P_2 (VEX_LEN_3832_P_2 + 1)
1208 #define VEX_LEN_3834_P_2 (VEX_LEN_3833_P_2 + 1)
1209 #define VEX_LEN_3835_P_2 (VEX_LEN_3834_P_2 + 1)
1210 #define VEX_LEN_3837_P_2 (VEX_LEN_3835_P_2 + 1)
1211 #define VEX_LEN_3838_P_2 (VEX_LEN_3837_P_2 + 1)
1212 #define VEX_LEN_3839_P_2 (VEX_LEN_3838_P_2 + 1)
1213 #define VEX_LEN_383A_P_2 (VEX_LEN_3839_P_2 + 1)
1214 #define VEX_LEN_383B_P_2 (VEX_LEN_383A_P_2 + 1)
1215 #define VEX_LEN_383C_P_2 (VEX_LEN_383B_P_2 + 1)
1216 #define VEX_LEN_383D_P_2 (VEX_LEN_383C_P_2 + 1)
1217 #define VEX_LEN_383E_P_2 (VEX_LEN_383D_P_2 + 1)
1218 #define VEX_LEN_383F_P_2 (VEX_LEN_383E_P_2 + 1)
1219 #define VEX_LEN_3840_P_2 (VEX_LEN_383F_P_2 + 1)
1220 #define VEX_LEN_3841_P_2 (VEX_LEN_3840_P_2 + 1)
1221 #define VEX_LEN_38DB_P_2 (VEX_LEN_3841_P_2 + 1)
1222 #define VEX_LEN_38DC_P_2 (VEX_LEN_38DB_P_2 + 1)
1223 #define VEX_LEN_38DD_P_2 (VEX_LEN_38DC_P_2 + 1)
1224 #define VEX_LEN_38DE_P_2 (VEX_LEN_38DD_P_2 + 1)
1225 #define VEX_LEN_38DF_P_2 (VEX_LEN_38DE_P_2 + 1)
1226 #define VEX_LEN_3A06_P_2 (VEX_LEN_38DF_P_2 + 1)
1227 #define VEX_LEN_3A0A_P_2 (VEX_LEN_3A06_P_2 + 1)
1228 #define VEX_LEN_3A0B_P_2 (VEX_LEN_3A0A_P_2 + 1)
1229 #define VEX_LEN_3A0E_P_2 (VEX_LEN_3A0B_P_2 + 1)
1230 #define VEX_LEN_3A0F_P_2 (VEX_LEN_3A0E_P_2 + 1)
1231 #define VEX_LEN_3A14_P_2 (VEX_LEN_3A0F_P_2 + 1)
1232 #define VEX_LEN_3A15_P_2 (VEX_LEN_3A14_P_2 + 1)
1233 #define VEX_LEN_3A16_P_2 (VEX_LEN_3A15_P_2 + 1)
1234 #define VEX_LEN_3A17_P_2 (VEX_LEN_3A16_P_2 + 1)
1235 #define VEX_LEN_3A18_P_2 (VEX_LEN_3A17_P_2 + 1)
1236 #define VEX_LEN_3A19_P_2 (VEX_LEN_3A18_P_2 + 1)
1237 #define VEX_LEN_3A20_P_2 (VEX_LEN_3A19_P_2 + 1)
1238 #define VEX_LEN_3A21_P_2 (VEX_LEN_3A20_P_2 + 1)
1239 #define VEX_LEN_3A22_P_2 (VEX_LEN_3A21_P_2 + 1)
1240 #define VEX_LEN_3A41_P_2 (VEX_LEN_3A22_P_2 + 1)
1241 #define VEX_LEN_3A42_P_2 (VEX_LEN_3A41_P_2 + 1)
1242 #define VEX_LEN_3A4C_P_2 (VEX_LEN_3A42_P_2 + 1)
1243 #define VEX_LEN_3A60_P_2 (VEX_LEN_3A4C_P_2 + 1)
1244 #define VEX_LEN_3A61_P_2 (VEX_LEN_3A60_P_2 + 1)
1245 #define VEX_LEN_3A62_P_2 (VEX_LEN_3A61_P_2 + 1)
1246 #define VEX_LEN_3A63_P_2 (VEX_LEN_3A62_P_2 + 1)
1247 #define VEX_LEN_3ADF_P_2 (VEX_LEN_3A63_P_2 + 1)
1249 typedef void (*op_rtn
) (int bytemode
, int sizeflag
);
1260 /* Upper case letters in the instruction names here are macros.
1261 'A' => print 'b' if no register operands or suffix_always is true
1262 'B' => print 'b' if suffix_always is true
1263 'C' => print 's' or 'l' ('w' or 'd' in Intel mode) depending on operand
1265 'D' => print 'w' if no register operands or 'w', 'l' or 'q', if
1266 suffix_always is true
1267 'E' => print 'e' if 32-bit form of jcxz
1268 'F' => print 'w' or 'l' depending on address size prefix (loop insns)
1269 'G' => print 'w' or 'l' depending on operand size prefix (i/o insns)
1270 'H' => print ",pt" or ",pn" branch hint
1271 'I' => honor following macro letter even in Intel mode (implemented only
1272 for some of the macro letters)
1274 'K' => print 'd' or 'q' if rex prefix is present.
1275 'L' => print 'l' if suffix_always is true
1276 'M' => print 'r' if intel_mnemonic is false.
1277 'N' => print 'n' if instruction has no wait "prefix"
1278 'O' => print 'd' or 'o' (or 'q' in Intel mode)
1279 'P' => print 'w', 'l' or 'q' if instruction has an operand size prefix,
1280 or suffix_always is true. print 'q' if rex prefix is present.
1281 'Q' => print 'w', 'l' or 'q' for memory operand or suffix_always
1283 'R' => print 'w', 'l' or 'q' ('d' for 'l' and 'e' in Intel mode)
1284 'S' => print 'w', 'l' or 'q' if suffix_always is true
1285 'T' => print 'q' in 64bit mode and behave as 'P' otherwise
1286 'U' => print 'q' in 64bit mode and behave as 'Q' otherwise
1287 'V' => print 'q' in 64bit mode and behave as 'S' otherwise
1288 'W' => print 'b', 'w' or 'l' ('d' in Intel mode)
1289 'X' => print 's', 'd' depending on data16 prefix (for XMM)
1290 'Y' => 'q' if instruction has an REX 64bit overwrite prefix and
1291 suffix_always is true.
1292 'Z' => print 'q' in 64bit mode and behave as 'L' otherwise
1293 '!' => change condition from true to false or from false to true.
1294 '%' => add 1 upper case letter to the macro.
1296 2 upper case letter macros:
1297 "XY" => print 'x' or 'y' if no register operands or suffix_always
1299 'XW' => print 's', 'd' depending on the VEX.W bit (for FMA)
1300 'LQ' => print 'l' ('d' in Intel mode) or 'q' for memory operand
1301 or suffix_always is true
1303 Many of the above letters print nothing in Intel mode. See "putop"
1306 Braces '{' and '}', and vertical bars '|', indicate alternative
1307 mnemonic strings for AT&T and Intel. */
1309 static const struct dis386 dis386
[] = {
1311 { "addB", { Eb
, Gb
} },
1312 { "addS", { Ev
, Gv
} },
1313 { "addB", { Gb
, EbS
} },
1314 { "addS", { Gv
, EvS
} },
1315 { "addB", { AL
, Ib
} },
1316 { "addS", { eAX
, Iv
} },
1317 { X86_64_TABLE (X86_64_06
) },
1318 { X86_64_TABLE (X86_64_07
) },
1320 { "orB", { Eb
, Gb
} },
1321 { "orS", { Ev
, Gv
} },
1322 { "orB", { Gb
, EbS
} },
1323 { "orS", { Gv
, EvS
} },
1324 { "orB", { AL
, Ib
} },
1325 { "orS", { eAX
, Iv
} },
1326 { X86_64_TABLE (X86_64_0D
) },
1327 { "(bad)", { XX
} }, /* 0x0f extended opcode escape */
1329 { "adcB", { Eb
, Gb
} },
1330 { "adcS", { Ev
, Gv
} },
1331 { "adcB", { Gb
, EbS
} },
1332 { "adcS", { Gv
, EvS
} },
1333 { "adcB", { AL
, Ib
} },
1334 { "adcS", { eAX
, Iv
} },
1335 { X86_64_TABLE (X86_64_16
) },
1336 { X86_64_TABLE (X86_64_17
) },
1338 { "sbbB", { Eb
, Gb
} },
1339 { "sbbS", { Ev
, Gv
} },
1340 { "sbbB", { Gb
, EbS
} },
1341 { "sbbS", { Gv
, EvS
} },
1342 { "sbbB", { AL
, Ib
} },
1343 { "sbbS", { eAX
, Iv
} },
1344 { X86_64_TABLE (X86_64_1E
) },
1345 { X86_64_TABLE (X86_64_1F
) },
1347 { "andB", { Eb
, Gb
} },
1348 { "andS", { Ev
, Gv
} },
1349 { "andB", { Gb
, EbS
} },
1350 { "andS", { Gv
, EvS
} },
1351 { "andB", { AL
, Ib
} },
1352 { "andS", { eAX
, Iv
} },
1353 { "(bad)", { XX
} }, /* SEG ES prefix */
1354 { X86_64_TABLE (X86_64_27
) },
1356 { "subB", { Eb
, Gb
} },
1357 { "subS", { Ev
, Gv
} },
1358 { "subB", { Gb
, EbS
} },
1359 { "subS", { Gv
, EvS
} },
1360 { "subB", { AL
, Ib
} },
1361 { "subS", { eAX
, Iv
} },
1362 { "(bad)", { XX
} }, /* SEG CS prefix */
1363 { X86_64_TABLE (X86_64_2F
) },
1365 { "xorB", { Eb
, Gb
} },
1366 { "xorS", { Ev
, Gv
} },
1367 { "xorB", { Gb
, EbS
} },
1368 { "xorS", { Gv
, EvS
} },
1369 { "xorB", { AL
, Ib
} },
1370 { "xorS", { eAX
, Iv
} },
1371 { "(bad)", { XX
} }, /* SEG SS prefix */
1372 { X86_64_TABLE (X86_64_37
) },
1374 { "cmpB", { Eb
, Gb
} },
1375 { "cmpS", { Ev
, Gv
} },
1376 { "cmpB", { Gb
, EbS
} },
1377 { "cmpS", { Gv
, EvS
} },
1378 { "cmpB", { AL
, Ib
} },
1379 { "cmpS", { eAX
, Iv
} },
1380 { "(bad)", { XX
} }, /* SEG DS prefix */
1381 { X86_64_TABLE (X86_64_3F
) },
1383 { "inc{S|}", { RMeAX
} },
1384 { "inc{S|}", { RMeCX
} },
1385 { "inc{S|}", { RMeDX
} },
1386 { "inc{S|}", { RMeBX
} },
1387 { "inc{S|}", { RMeSP
} },
1388 { "inc{S|}", { RMeBP
} },
1389 { "inc{S|}", { RMeSI
} },
1390 { "inc{S|}", { RMeDI
} },
1392 { "dec{S|}", { RMeAX
} },
1393 { "dec{S|}", { RMeCX
} },
1394 { "dec{S|}", { RMeDX
} },
1395 { "dec{S|}", { RMeBX
} },
1396 { "dec{S|}", { RMeSP
} },
1397 { "dec{S|}", { RMeBP
} },
1398 { "dec{S|}", { RMeSI
} },
1399 { "dec{S|}", { RMeDI
} },
1401 { "pushV", { RMrAX
} },
1402 { "pushV", { RMrCX
} },
1403 { "pushV", { RMrDX
} },
1404 { "pushV", { RMrBX
} },
1405 { "pushV", { RMrSP
} },
1406 { "pushV", { RMrBP
} },
1407 { "pushV", { RMrSI
} },
1408 { "pushV", { RMrDI
} },
1410 { "popV", { RMrAX
} },
1411 { "popV", { RMrCX
} },
1412 { "popV", { RMrDX
} },
1413 { "popV", { RMrBX
} },
1414 { "popV", { RMrSP
} },
1415 { "popV", { RMrBP
} },
1416 { "popV", { RMrSI
} },
1417 { "popV", { RMrDI
} },
1419 { X86_64_TABLE (X86_64_60
) },
1420 { X86_64_TABLE (X86_64_61
) },
1421 { X86_64_TABLE (X86_64_62
) },
1422 { X86_64_TABLE (X86_64_63
) },
1423 { "(bad)", { XX
} }, /* seg fs */
1424 { "(bad)", { XX
} }, /* seg gs */
1425 { "(bad)", { XX
} }, /* op size prefix */
1426 { "(bad)", { XX
} }, /* adr size prefix */
1428 { "pushT", { Iq
} },
1429 { "imulS", { Gv
, Ev
, Iv
} },
1430 { "pushT", { sIb
} },
1431 { "imulS", { Gv
, Ev
, sIb
} },
1432 { "ins{b|}", { Ybr
, indirDX
} },
1433 { X86_64_TABLE (X86_64_6D
) },
1434 { "outs{b|}", { indirDXr
, Xb
} },
1435 { X86_64_TABLE (X86_64_6F
) },
1437 { "joH", { Jb
, XX
, cond_jump_flag
} },
1438 { "jnoH", { Jb
, XX
, cond_jump_flag
} },
1439 { "jbH", { Jb
, XX
, cond_jump_flag
} },
1440 { "jaeH", { Jb
, XX
, cond_jump_flag
} },
1441 { "jeH", { Jb
, XX
, cond_jump_flag
} },
1442 { "jneH", { Jb
, XX
, cond_jump_flag
} },
1443 { "jbeH", { Jb
, XX
, cond_jump_flag
} },
1444 { "jaH", { Jb
, XX
, cond_jump_flag
} },
1446 { "jsH", { Jb
, XX
, cond_jump_flag
} },
1447 { "jnsH", { Jb
, XX
, cond_jump_flag
} },
1448 { "jpH", { Jb
, XX
, cond_jump_flag
} },
1449 { "jnpH", { Jb
, XX
, cond_jump_flag
} },
1450 { "jlH", { Jb
, XX
, cond_jump_flag
} },
1451 { "jgeH", { Jb
, XX
, cond_jump_flag
} },
1452 { "jleH", { Jb
, XX
, cond_jump_flag
} },
1453 { "jgH", { Jb
, XX
, cond_jump_flag
} },
1455 { REG_TABLE (REG_80
) },
1456 { REG_TABLE (REG_81
) },
1457 { "(bad)", { XX
} },
1458 { REG_TABLE (REG_82
) },
1459 { "testB", { Eb
, Gb
} },
1460 { "testS", { Ev
, Gv
} },
1461 { "xchgB", { Eb
, Gb
} },
1462 { "xchgS", { Ev
, Gv
} },
1464 { "movB", { Eb
, Gb
} },
1465 { "movS", { Ev
, Gv
} },
1466 { "movB", { Gb
, EbS
} },
1467 { "movS", { Gv
, EvS
} },
1468 { "movD", { Sv
, Sw
} },
1469 { MOD_TABLE (MOD_8D
) },
1470 { "movD", { Sw
, Sv
} },
1471 { REG_TABLE (REG_8F
) },
1473 { PREFIX_TABLE (PREFIX_90
) },
1474 { "xchgS", { RMeCX
, eAX
} },
1475 { "xchgS", { RMeDX
, eAX
} },
1476 { "xchgS", { RMeBX
, eAX
} },
1477 { "xchgS", { RMeSP
, eAX
} },
1478 { "xchgS", { RMeBP
, eAX
} },
1479 { "xchgS", { RMeSI
, eAX
} },
1480 { "xchgS", { RMeDI
, eAX
} },
1482 { "cW{t|}R", { XX
} },
1483 { "cR{t|}O", { XX
} },
1484 { X86_64_TABLE (X86_64_9A
) },
1485 { "(bad)", { XX
} }, /* fwait */
1486 { "pushfT", { XX
} },
1487 { "popfT", { XX
} },
1491 { "movB", { AL
, Ob
} },
1492 { "movS", { eAX
, Ov
} },
1493 { "movB", { Ob
, AL
} },
1494 { "movS", { Ov
, eAX
} },
1495 { "movs{b|}", { Ybr
, Xb
} },
1496 { "movs{R|}", { Yvr
, Xv
} },
1497 { "cmps{b|}", { Xb
, Yb
} },
1498 { "cmps{R|}", { Xv
, Yv
} },
1500 { "testB", { AL
, Ib
} },
1501 { "testS", { eAX
, Iv
} },
1502 { "stosB", { Ybr
, AL
} },
1503 { "stosS", { Yvr
, eAX
} },
1504 { "lodsB", { ALr
, Xb
} },
1505 { "lodsS", { eAXr
, Xv
} },
1506 { "scasB", { AL
, Yb
} },
1507 { "scasS", { eAX
, Yv
} },
1509 { "movB", { RMAL
, Ib
} },
1510 { "movB", { RMCL
, Ib
} },
1511 { "movB", { RMDL
, Ib
} },
1512 { "movB", { RMBL
, Ib
} },
1513 { "movB", { RMAH
, Ib
} },
1514 { "movB", { RMCH
, Ib
} },
1515 { "movB", { RMDH
, Ib
} },
1516 { "movB", { RMBH
, Ib
} },
1518 { "movS", { RMeAX
, Iv64
} },
1519 { "movS", { RMeCX
, Iv64
} },
1520 { "movS", { RMeDX
, Iv64
} },
1521 { "movS", { RMeBX
, Iv64
} },
1522 { "movS", { RMeSP
, Iv64
} },
1523 { "movS", { RMeBP
, Iv64
} },
1524 { "movS", { RMeSI
, Iv64
} },
1525 { "movS", { RMeDI
, Iv64
} },
1527 { REG_TABLE (REG_C0
) },
1528 { REG_TABLE (REG_C1
) },
1531 { X86_64_TABLE (X86_64_C4
) },
1532 { X86_64_TABLE (X86_64_C5
) },
1533 { REG_TABLE (REG_C6
) },
1534 { REG_TABLE (REG_C7
) },
1536 { "enterT", { Iw
, Ib
} },
1537 { "leaveT", { XX
} },
1538 { "Jret{|f}P", { Iw
} },
1539 { "Jret{|f}P", { XX
} },
1542 { X86_64_TABLE (X86_64_CE
) },
1543 { "iretP", { XX
} },
1545 { REG_TABLE (REG_D0
) },
1546 { REG_TABLE (REG_D1
) },
1547 { REG_TABLE (REG_D2
) },
1548 { REG_TABLE (REG_D3
) },
1549 { X86_64_TABLE (X86_64_D4
) },
1550 { X86_64_TABLE (X86_64_D5
) },
1551 { "(bad)", { XX
} },
1552 { "xlat", { DSBX
} },
1563 { "loopneFH", { Jb
, XX
, loop_jcxz_flag
} },
1564 { "loopeFH", { Jb
, XX
, loop_jcxz_flag
} },
1565 { "loopFH", { Jb
, XX
, loop_jcxz_flag
} },
1566 { "jEcxzH", { Jb
, XX
, loop_jcxz_flag
} },
1567 { "inB", { AL
, Ib
} },
1568 { "inG", { zAX
, Ib
} },
1569 { "outB", { Ib
, AL
} },
1570 { "outG", { Ib
, zAX
} },
1572 { "callT", { Jv
} },
1574 { X86_64_TABLE (X86_64_EA
) },
1576 { "inB", { AL
, indirDX
} },
1577 { "inG", { zAX
, indirDX
} },
1578 { "outB", { indirDX
, AL
} },
1579 { "outG", { indirDX
, zAX
} },
1581 { "(bad)", { XX
} }, /* lock prefix */
1582 { "icebp", { XX
} },
1583 { "(bad)", { XX
} }, /* repne */
1584 { "(bad)", { XX
} }, /* repz */
1587 { REG_TABLE (REG_F6
) },
1588 { REG_TABLE (REG_F7
) },
1596 { REG_TABLE (REG_FE
) },
1597 { REG_TABLE (REG_FF
) },
1600 static const struct dis386 dis386_twobyte
[] = {
1602 { REG_TABLE (REG_0F00
) },
1603 { REG_TABLE (REG_0F01
) },
1604 { "larS", { Gv
, Ew
} },
1605 { "lslS", { Gv
, Ew
} },
1606 { "(bad)", { XX
} },
1607 { "syscall", { XX
} },
1609 { "sysretP", { XX
} },
1612 { "wbinvd", { XX
} },
1613 { "(bad)", { XX
} },
1615 { "(bad)", { XX
} },
1616 { REG_TABLE (REG_0F0D
) },
1617 { "femms", { XX
} },
1618 { "", { MX
, EM
, OPSUF
} }, /* See OP_3DNowSuffix. */
1620 { PREFIX_TABLE (PREFIX_0F10
) },
1621 { PREFIX_TABLE (PREFIX_0F11
) },
1622 { PREFIX_TABLE (PREFIX_0F12
) },
1623 { MOD_TABLE (MOD_0F13
) },
1624 { "unpcklpX", { XM
, EXx
} },
1625 { "unpckhpX", { XM
, EXx
} },
1626 { PREFIX_TABLE (PREFIX_0F16
) },
1627 { MOD_TABLE (MOD_0F17
) },
1629 { REG_TABLE (REG_0F18
) },
1638 { MOD_TABLE (MOD_0F20
) },
1639 { MOD_TABLE (MOD_0F21
) },
1640 { MOD_TABLE (MOD_0F22
) },
1641 { MOD_TABLE (MOD_0F23
) },
1642 { MOD_TABLE (MOD_0F24
) },
1643 { THREE_BYTE_TABLE (THREE_BYTE_0F25
) },
1644 { MOD_TABLE (MOD_0F26
) },
1645 { "(bad)", { XX
} },
1647 { "movapX", { XM
, EXx
} },
1648 { "movapX", { EXxS
, XM
} },
1649 { PREFIX_TABLE (PREFIX_0F2A
) },
1650 { PREFIX_TABLE (PREFIX_0F2B
) },
1651 { PREFIX_TABLE (PREFIX_0F2C
) },
1652 { PREFIX_TABLE (PREFIX_0F2D
) },
1653 { PREFIX_TABLE (PREFIX_0F2E
) },
1654 { PREFIX_TABLE (PREFIX_0F2F
) },
1656 { "wrmsr", { XX
} },
1657 { "rdtsc", { XX
} },
1658 { "rdmsr", { XX
} },
1659 { "rdpmc", { XX
} },
1660 { "sysenter", { XX
} },
1661 { "sysexit", { XX
} },
1662 { "(bad)", { XX
} },
1663 { "getsec", { XX
} },
1665 { THREE_BYTE_TABLE (THREE_BYTE_0F38
) },
1666 { "(bad)", { XX
} },
1667 { THREE_BYTE_TABLE (THREE_BYTE_0F3A
) },
1668 { "(bad)", { XX
} },
1669 { "(bad)", { XX
} },
1670 { "(bad)", { XX
} },
1671 { "(bad)", { XX
} },
1672 { "(bad)", { XX
} },
1674 { "cmovoS", { Gv
, Ev
} },
1675 { "cmovnoS", { Gv
, Ev
} },
1676 { "cmovbS", { Gv
, Ev
} },
1677 { "cmovaeS", { Gv
, Ev
} },
1678 { "cmoveS", { Gv
, Ev
} },
1679 { "cmovneS", { Gv
, Ev
} },
1680 { "cmovbeS", { Gv
, Ev
} },
1681 { "cmovaS", { Gv
, Ev
} },
1683 { "cmovsS", { Gv
, Ev
} },
1684 { "cmovnsS", { Gv
, Ev
} },
1685 { "cmovpS", { Gv
, Ev
} },
1686 { "cmovnpS", { Gv
, Ev
} },
1687 { "cmovlS", { Gv
, Ev
} },
1688 { "cmovgeS", { Gv
, Ev
} },
1689 { "cmovleS", { Gv
, Ev
} },
1690 { "cmovgS", { Gv
, Ev
} },
1692 { MOD_TABLE (MOD_0F51
) },
1693 { PREFIX_TABLE (PREFIX_0F51
) },
1694 { PREFIX_TABLE (PREFIX_0F52
) },
1695 { PREFIX_TABLE (PREFIX_0F53
) },
1696 { "andpX", { XM
, EXx
} },
1697 { "andnpX", { XM
, EXx
} },
1698 { "orpX", { XM
, EXx
} },
1699 { "xorpX", { XM
, EXx
} },
1701 { PREFIX_TABLE (PREFIX_0F58
) },
1702 { PREFIX_TABLE (PREFIX_0F59
) },
1703 { PREFIX_TABLE (PREFIX_0F5A
) },
1704 { PREFIX_TABLE (PREFIX_0F5B
) },
1705 { PREFIX_TABLE (PREFIX_0F5C
) },
1706 { PREFIX_TABLE (PREFIX_0F5D
) },
1707 { PREFIX_TABLE (PREFIX_0F5E
) },
1708 { PREFIX_TABLE (PREFIX_0F5F
) },
1710 { PREFIX_TABLE (PREFIX_0F60
) },
1711 { PREFIX_TABLE (PREFIX_0F61
) },
1712 { PREFIX_TABLE (PREFIX_0F62
) },
1713 { "packsswb", { MX
, EM
} },
1714 { "pcmpgtb", { MX
, EM
} },
1715 { "pcmpgtw", { MX
, EM
} },
1716 { "pcmpgtd", { MX
, EM
} },
1717 { "packuswb", { MX
, EM
} },
1719 { "punpckhbw", { MX
, EM
} },
1720 { "punpckhwd", { MX
, EM
} },
1721 { "punpckhdq", { MX
, EM
} },
1722 { "packssdw", { MX
, EM
} },
1723 { PREFIX_TABLE (PREFIX_0F6C
) },
1724 { PREFIX_TABLE (PREFIX_0F6D
) },
1725 { "movK", { MX
, Edq
} },
1726 { PREFIX_TABLE (PREFIX_0F6F
) },
1728 { PREFIX_TABLE (PREFIX_0F70
) },
1729 { REG_TABLE (REG_0F71
) },
1730 { REG_TABLE (REG_0F72
) },
1731 { REG_TABLE (REG_0F73
) },
1732 { "pcmpeqb", { MX
, EM
} },
1733 { "pcmpeqw", { MX
, EM
} },
1734 { "pcmpeqd", { MX
, EM
} },
1737 { PREFIX_TABLE (PREFIX_0F78
) },
1738 { PREFIX_TABLE (PREFIX_0F79
) },
1739 { THREE_BYTE_TABLE (THREE_BYTE_0F7A
) },
1740 { THREE_BYTE_TABLE (THREE_BYTE_0F7B
) },
1741 { PREFIX_TABLE (PREFIX_0F7C
) },
1742 { PREFIX_TABLE (PREFIX_0F7D
) },
1743 { PREFIX_TABLE (PREFIX_0F7E
) },
1744 { PREFIX_TABLE (PREFIX_0F7F
) },
1746 { "joH", { Jv
, XX
, cond_jump_flag
} },
1747 { "jnoH", { Jv
, XX
, cond_jump_flag
} },
1748 { "jbH", { Jv
, XX
, cond_jump_flag
} },
1749 { "jaeH", { Jv
, XX
, cond_jump_flag
} },
1750 { "jeH", { Jv
, XX
, cond_jump_flag
} },
1751 { "jneH", { Jv
, XX
, cond_jump_flag
} },
1752 { "jbeH", { Jv
, XX
, cond_jump_flag
} },
1753 { "jaH", { Jv
, XX
, cond_jump_flag
} },
1755 { "jsH", { Jv
, XX
, cond_jump_flag
} },
1756 { "jnsH", { Jv
, XX
, cond_jump_flag
} },
1757 { "jpH", { Jv
, XX
, cond_jump_flag
} },
1758 { "jnpH", { Jv
, XX
, cond_jump_flag
} },
1759 { "jlH", { Jv
, XX
, cond_jump_flag
} },
1760 { "jgeH", { Jv
, XX
, cond_jump_flag
} },
1761 { "jleH", { Jv
, XX
, cond_jump_flag
} },
1762 { "jgH", { Jv
, XX
, cond_jump_flag
} },
1765 { "setno", { Eb
} },
1767 { "setae", { Eb
} },
1769 { "setne", { Eb
} },
1770 { "setbe", { Eb
} },
1774 { "setns", { Eb
} },
1776 { "setnp", { Eb
} },
1778 { "setge", { Eb
} },
1779 { "setle", { Eb
} },
1782 { "pushT", { fs
} },
1784 { "cpuid", { XX
} },
1785 { "btS", { Ev
, Gv
} },
1786 { "shldS", { Ev
, Gv
, Ib
} },
1787 { "shldS", { Ev
, Gv
, CL
} },
1788 { REG_TABLE (REG_0FA6
) },
1789 { REG_TABLE (REG_0FA7
) },
1791 { "pushT", { gs
} },
1794 { "btsS", { Ev
, Gv
} },
1795 { "shrdS", { Ev
, Gv
, Ib
} },
1796 { "shrdS", { Ev
, Gv
, CL
} },
1797 { REG_TABLE (REG_0FAE
) },
1798 { "imulS", { Gv
, Ev
} },
1800 { "cmpxchgB", { Eb
, Gb
} },
1801 { "cmpxchgS", { Ev
, Gv
} },
1802 { MOD_TABLE (MOD_0FB2
) },
1803 { "btrS", { Ev
, Gv
} },
1804 { MOD_TABLE (MOD_0FB4
) },
1805 { MOD_TABLE (MOD_0FB5
) },
1806 { "movz{bR|x}", { Gv
, Eb
} },
1807 { "movz{wR|x}", { Gv
, Ew
} }, /* yes, there really is movzww ! */
1809 { PREFIX_TABLE (PREFIX_0FB8
) },
1811 { REG_TABLE (REG_0FBA
) },
1812 { "btcS", { Ev
, Gv
} },
1813 { "bsfS", { Gv
, Ev
} },
1814 { PREFIX_TABLE (PREFIX_0FBD
) },
1815 { "movs{bR|x}", { Gv
, Eb
} },
1816 { "movs{wR|x}", { Gv
, Ew
} }, /* yes, there really is movsww ! */
1818 { "xaddB", { Eb
, Gb
} },
1819 { "xaddS", { Ev
, Gv
} },
1820 { PREFIX_TABLE (PREFIX_0FC2
) },
1821 { PREFIX_TABLE (PREFIX_0FC3
) },
1822 { "pinsrw", { MX
, Edqw
, Ib
} },
1823 { "pextrw", { Gdq
, MS
, Ib
} },
1824 { "shufpX", { XM
, EXx
, Ib
} },
1825 { REG_TABLE (REG_0FC7
) },
1827 { "bswap", { RMeAX
} },
1828 { "bswap", { RMeCX
} },
1829 { "bswap", { RMeDX
} },
1830 { "bswap", { RMeBX
} },
1831 { "bswap", { RMeSP
} },
1832 { "bswap", { RMeBP
} },
1833 { "bswap", { RMeSI
} },
1834 { "bswap", { RMeDI
} },
1836 { PREFIX_TABLE (PREFIX_0FD0
) },
1837 { "psrlw", { MX
, EM
} },
1838 { "psrld", { MX
, EM
} },
1839 { "psrlq", { MX
, EM
} },
1840 { "paddq", { MX
, EM
} },
1841 { "pmullw", { MX
, EM
} },
1842 { PREFIX_TABLE (PREFIX_0FD6
) },
1843 { MOD_TABLE (MOD_0FD7
) },
1845 { "psubusb", { MX
, EM
} },
1846 { "psubusw", { MX
, EM
} },
1847 { "pminub", { MX
, EM
} },
1848 { "pand", { MX
, EM
} },
1849 { "paddusb", { MX
, EM
} },
1850 { "paddusw", { MX
, EM
} },
1851 { "pmaxub", { MX
, EM
} },
1852 { "pandn", { MX
, EM
} },
1854 { "pavgb", { MX
, EM
} },
1855 { "psraw", { MX
, EM
} },
1856 { "psrad", { MX
, EM
} },
1857 { "pavgw", { MX
, EM
} },
1858 { "pmulhuw", { MX
, EM
} },
1859 { "pmulhw", { MX
, EM
} },
1860 { PREFIX_TABLE (PREFIX_0FE6
) },
1861 { PREFIX_TABLE (PREFIX_0FE7
) },
1863 { "psubsb", { MX
, EM
} },
1864 { "psubsw", { MX
, EM
} },
1865 { "pminsw", { MX
, EM
} },
1866 { "por", { MX
, EM
} },
1867 { "paddsb", { MX
, EM
} },
1868 { "paddsw", { MX
, EM
} },
1869 { "pmaxsw", { MX
, EM
} },
1870 { "pxor", { MX
, EM
} },
1872 { PREFIX_TABLE (PREFIX_0FF0
) },
1873 { "psllw", { MX
, EM
} },
1874 { "pslld", { MX
, EM
} },
1875 { "psllq", { MX
, EM
} },
1876 { "pmuludq", { MX
, EM
} },
1877 { "pmaddwd", { MX
, EM
} },
1878 { "psadbw", { MX
, EM
} },
1879 { PREFIX_TABLE (PREFIX_0FF7
) },
1881 { "psubb", { MX
, EM
} },
1882 { "psubw", { MX
, EM
} },
1883 { "psubd", { MX
, EM
} },
1884 { "psubq", { MX
, EM
} },
1885 { "paddb", { MX
, EM
} },
1886 { "paddw", { MX
, EM
} },
1887 { "paddd", { MX
, EM
} },
1888 { "(bad)", { XX
} },
1891 static const unsigned char onebyte_has_modrm
[256] = {
1892 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1893 /* ------------------------------- */
1894 /* 00 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 00 */
1895 /* 10 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 10 */
1896 /* 20 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 20 */
1897 /* 30 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 30 */
1898 /* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 40 */
1899 /* 50 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 50 */
1900 /* 60 */ 0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0, /* 60 */
1901 /* 70 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 70 */
1902 /* 80 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 80 */
1903 /* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 90 */
1904 /* a0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* a0 */
1905 /* b0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* b0 */
1906 /* c0 */ 1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0, /* c0 */
1907 /* d0 */ 1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1, /* d0 */
1908 /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* e0 */
1909 /* f0 */ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1 /* f0 */
1910 /* ------------------------------- */
1911 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1914 static const unsigned char twobyte_has_modrm
[256] = {
1915 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1916 /* ------------------------------- */
1917 /* 00 */ 1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,1, /* 0f */
1918 /* 10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 1f */
1919 /* 20 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 2f */
1920 /* 30 */ 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0, /* 3f */
1921 /* 40 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 4f */
1922 /* 50 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 5f */
1923 /* 60 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 6f */
1924 /* 70 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 7f */
1925 /* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */
1926 /* 90 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 9f */
1927 /* a0 */ 0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1, /* af */
1928 /* b0 */ 1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1, /* bf */
1929 /* c0 */ 1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* cf */
1930 /* d0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* df */
1931 /* e0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ef */
1932 /* f0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0 /* ff */
1933 /* ------------------------------- */
1934 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1937 static char obuf
[100];
1939 static char *mnemonicendp
;
1940 static char scratchbuf
[100];
1941 static unsigned char *start_codep
;
1942 static unsigned char *insn_codep
;
1943 static unsigned char *codep
;
1944 static const char *lock_prefix
;
1945 static const char *data_prefix
;
1946 static const char *addr_prefix
;
1947 static const char *repz_prefix
;
1948 static const char *repnz_prefix
;
1949 static disassemble_info
*the_info
;
1957 static unsigned char need_modrm
;
1960 int register_specifier
;
1966 static unsigned char need_vex
;
1967 static unsigned char need_vex_reg
;
1968 static unsigned char vex_w_done
;
1976 /* If we are accessing mod/rm/reg without need_modrm set, then the
1977 values are stale. Hitting this abort likely indicates that you
1978 need to update onebyte_has_modrm or twobyte_has_modrm. */
1979 #define MODRM_CHECK if (!need_modrm) abort ()
1981 static const char **names64
;
1982 static const char **names32
;
1983 static const char **names16
;
1984 static const char **names8
;
1985 static const char **names8rex
;
1986 static const char **names_seg
;
1987 static const char *index64
;
1988 static const char *index32
;
1989 static const char **index16
;
1991 static const char *intel_names64
[] = {
1992 "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
1993 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
1995 static const char *intel_names32
[] = {
1996 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi",
1997 "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d"
1999 static const char *intel_names16
[] = {
2000 "ax", "cx", "dx", "bx", "sp", "bp", "si", "di",
2001 "r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w"
2003 static const char *intel_names8
[] = {
2004 "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh",
2006 static const char *intel_names8rex
[] = {
2007 "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil",
2008 "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b"
2010 static const char *intel_names_seg
[] = {
2011 "es", "cs", "ss", "ds", "fs", "gs", "?", "?",
2013 static const char *intel_index64
= "riz";
2014 static const char *intel_index32
= "eiz";
2015 static const char *intel_index16
[] = {
2016 "bx+si", "bx+di", "bp+si", "bp+di", "si", "di", "bp", "bx"
2019 static const char *att_names64
[] = {
2020 "%rax", "%rcx", "%rdx", "%rbx", "%rsp", "%rbp", "%rsi", "%rdi",
2021 "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"
2023 static const char *att_names32
[] = {
2024 "%eax", "%ecx", "%edx", "%ebx", "%esp", "%ebp", "%esi", "%edi",
2025 "%r8d", "%r9d", "%r10d", "%r11d", "%r12d", "%r13d", "%r14d", "%r15d"
2027 static const char *att_names16
[] = {
2028 "%ax", "%cx", "%dx", "%bx", "%sp", "%bp", "%si", "%di",
2029 "%r8w", "%r9w", "%r10w", "%r11w", "%r12w", "%r13w", "%r14w", "%r15w"
2031 static const char *att_names8
[] = {
2032 "%al", "%cl", "%dl", "%bl", "%ah", "%ch", "%dh", "%bh",
2034 static const char *att_names8rex
[] = {
2035 "%al", "%cl", "%dl", "%bl", "%spl", "%bpl", "%sil", "%dil",
2036 "%r8b", "%r9b", "%r10b", "%r11b", "%r12b", "%r13b", "%r14b", "%r15b"
2038 static const char *att_names_seg
[] = {
2039 "%es", "%cs", "%ss", "%ds", "%fs", "%gs", "%?", "%?",
2041 static const char *att_index64
= "%riz";
2042 static const char *att_index32
= "%eiz";
2043 static const char *att_index16
[] = {
2044 "%bx,%si", "%bx,%di", "%bp,%si", "%bp,%di", "%si", "%di", "%bp", "%bx"
2047 static const struct dis386 reg_table
[][8] = {
2050 { "addA", { Eb
, Ib
} },
2051 { "orA", { Eb
, Ib
} },
2052 { "adcA", { Eb
, Ib
} },
2053 { "sbbA", { Eb
, Ib
} },
2054 { "andA", { Eb
, Ib
} },
2055 { "subA", { Eb
, Ib
} },
2056 { "xorA", { Eb
, Ib
} },
2057 { "cmpA", { Eb
, Ib
} },
2061 { "addQ", { Ev
, Iv
} },
2062 { "orQ", { Ev
, Iv
} },
2063 { "adcQ", { Ev
, Iv
} },
2064 { "sbbQ", { Ev
, Iv
} },
2065 { "andQ", { Ev
, Iv
} },
2066 { "subQ", { Ev
, Iv
} },
2067 { "xorQ", { Ev
, Iv
} },
2068 { "cmpQ", { Ev
, Iv
} },
2072 { "addQ", { Ev
, sIb
} },
2073 { "orQ", { Ev
, sIb
} },
2074 { "adcQ", { Ev
, sIb
} },
2075 { "sbbQ", { Ev
, sIb
} },
2076 { "andQ", { Ev
, sIb
} },
2077 { "subQ", { Ev
, sIb
} },
2078 { "xorQ", { Ev
, sIb
} },
2079 { "cmpQ", { Ev
, sIb
} },
2083 { "popU", { stackEv
} },
2084 { "(bad)", { XX
} },
2085 { "(bad)", { XX
} },
2086 { "(bad)", { XX
} },
2087 { "(bad)", { XX
} },
2088 { "(bad)", { XX
} },
2089 { "(bad)", { XX
} },
2090 { "(bad)", { XX
} },
2094 { "rolA", { Eb
, Ib
} },
2095 { "rorA", { Eb
, Ib
} },
2096 { "rclA", { Eb
, Ib
} },
2097 { "rcrA", { Eb
, Ib
} },
2098 { "shlA", { Eb
, Ib
} },
2099 { "shrA", { Eb
, Ib
} },
2100 { "(bad)", { XX
} },
2101 { "sarA", { Eb
, Ib
} },
2105 { "rolQ", { Ev
, Ib
} },
2106 { "rorQ", { Ev
, Ib
} },
2107 { "rclQ", { Ev
, Ib
} },
2108 { "rcrQ", { Ev
, Ib
} },
2109 { "shlQ", { Ev
, Ib
} },
2110 { "shrQ", { Ev
, Ib
} },
2111 { "(bad)", { XX
} },
2112 { "sarQ", { Ev
, Ib
} },
2116 { "movA", { Eb
, Ib
} },
2117 { "(bad)", { XX
} },
2118 { "(bad)", { XX
} },
2119 { "(bad)", { XX
} },
2120 { "(bad)", { XX
} },
2121 { "(bad)", { XX
} },
2122 { "(bad)", { XX
} },
2123 { "(bad)", { XX
} },
2127 { "movQ", { Ev
, Iv
} },
2128 { "(bad)", { XX
} },
2129 { "(bad)", { XX
} },
2130 { "(bad)", { XX
} },
2131 { "(bad)", { XX
} },
2132 { "(bad)", { XX
} },
2133 { "(bad)", { XX
} },
2134 { "(bad)", { XX
} },
2138 { "rolA", { Eb
, I1
} },
2139 { "rorA", { Eb
, I1
} },
2140 { "rclA", { Eb
, I1
} },
2141 { "rcrA", { Eb
, I1
} },
2142 { "shlA", { Eb
, I1
} },
2143 { "shrA", { Eb
, I1
} },
2144 { "(bad)", { XX
} },
2145 { "sarA", { Eb
, I1
} },
2149 { "rolQ", { Ev
, I1
} },
2150 { "rorQ", { Ev
, I1
} },
2151 { "rclQ", { Ev
, I1
} },
2152 { "rcrQ", { Ev
, I1
} },
2153 { "shlQ", { Ev
, I1
} },
2154 { "shrQ", { Ev
, I1
} },
2155 { "(bad)", { XX
} },
2156 { "sarQ", { Ev
, I1
} },
2160 { "rolA", { Eb
, CL
} },
2161 { "rorA", { Eb
, CL
} },
2162 { "rclA", { Eb
, CL
} },
2163 { "rcrA", { Eb
, CL
} },
2164 { "shlA", { Eb
, CL
} },
2165 { "shrA", { Eb
, CL
} },
2166 { "(bad)", { XX
} },
2167 { "sarA", { Eb
, CL
} },
2171 { "rolQ", { Ev
, CL
} },
2172 { "rorQ", { Ev
, CL
} },
2173 { "rclQ", { Ev
, CL
} },
2174 { "rcrQ", { Ev
, CL
} },
2175 { "shlQ", { Ev
, CL
} },
2176 { "shrQ", { Ev
, CL
} },
2177 { "(bad)", { XX
} },
2178 { "sarQ", { Ev
, CL
} },
2182 { "testA", { Eb
, Ib
} },
2183 { "(bad)", { XX
} },
2186 { "mulA", { Eb
} }, /* Don't print the implicit %al register, */
2187 { "imulA", { Eb
} }, /* to distinguish these opcodes from other */
2188 { "divA", { Eb
} }, /* mul/imul opcodes. Do the same for div */
2189 { "idivA", { Eb
} }, /* and idiv for consistency. */
2193 { "testQ", { Ev
, Iv
} },
2194 { "(bad)", { XX
} },
2197 { "mulQ", { Ev
} }, /* Don't print the implicit register. */
2198 { "imulQ", { Ev
} },
2200 { "idivQ", { Ev
} },
2206 { "(bad)", { XX
} },
2207 { "(bad)", { XX
} },
2208 { "(bad)", { XX
} },
2209 { "(bad)", { XX
} },
2210 { "(bad)", { XX
} },
2211 { "(bad)", { XX
} },
2217 { "callT", { indirEv
} },
2218 { "JcallT", { indirEp
} },
2219 { "jmpT", { indirEv
} },
2220 { "JjmpT", { indirEp
} },
2221 { "pushU", { stackEv
} },
2222 { "(bad)", { XX
} },
2226 { "sldtD", { Sv
} },
2232 { "(bad)", { XX
} },
2233 { "(bad)", { XX
} },
2237 { MOD_TABLE (MOD_0F01_REG_0
) },
2238 { MOD_TABLE (MOD_0F01_REG_1
) },
2239 { MOD_TABLE (MOD_0F01_REG_2
) },
2240 { MOD_TABLE (MOD_0F01_REG_3
) },
2241 { "smswD", { Sv
} },
2242 { "(bad)", { XX
} },
2244 { MOD_TABLE (MOD_0F01_REG_7
) },
2248 { "prefetch", { Eb
} },
2249 { "prefetchw", { Eb
} },
2250 { "(bad)", { XX
} },
2251 { "(bad)", { XX
} },
2252 { "(bad)", { XX
} },
2253 { "(bad)", { XX
} },
2254 { "(bad)", { XX
} },
2255 { "(bad)", { XX
} },
2259 { MOD_TABLE (MOD_0F18_REG_0
) },
2260 { MOD_TABLE (MOD_0F18_REG_1
) },
2261 { MOD_TABLE (MOD_0F18_REG_2
) },
2262 { MOD_TABLE (MOD_0F18_REG_3
) },
2263 { "(bad)", { XX
} },
2264 { "(bad)", { XX
} },
2265 { "(bad)", { XX
} },
2266 { "(bad)", { XX
} },
2270 { "(bad)", { XX
} },
2271 { "(bad)", { XX
} },
2272 { MOD_TABLE (MOD_0F71_REG_2
) },
2273 { "(bad)", { XX
} },
2274 { MOD_TABLE (MOD_0F71_REG_4
) },
2275 { "(bad)", { XX
} },
2276 { MOD_TABLE (MOD_0F71_REG_6
) },
2277 { "(bad)", { XX
} },
2281 { "(bad)", { XX
} },
2282 { "(bad)", { XX
} },
2283 { MOD_TABLE (MOD_0F72_REG_2
) },
2284 { "(bad)", { XX
} },
2285 { MOD_TABLE (MOD_0F72_REG_4
) },
2286 { "(bad)", { XX
} },
2287 { MOD_TABLE (MOD_0F72_REG_6
) },
2288 { "(bad)", { XX
} },
2292 { "(bad)", { XX
} },
2293 { "(bad)", { XX
} },
2294 { MOD_TABLE (MOD_0F73_REG_2
) },
2295 { MOD_TABLE (MOD_0F73_REG_3
) },
2296 { "(bad)", { XX
} },
2297 { "(bad)", { XX
} },
2298 { MOD_TABLE (MOD_0F73_REG_6
) },
2299 { MOD_TABLE (MOD_0F73_REG_7
) },
2303 { "montmul", { { OP_0f07
, 0 } } },
2304 { "xsha1", { { OP_0f07
, 0 } } },
2305 { "xsha256", { { OP_0f07
, 0 } } },
2306 { "(bad)", { { OP_0f07
, 0 } } },
2307 { "(bad)", { { OP_0f07
, 0 } } },
2308 { "(bad)", { { OP_0f07
, 0 } } },
2309 { "(bad)", { { OP_0f07
, 0 } } },
2310 { "(bad)", { { OP_0f07
, 0 } } },
2314 { "xstore-rng", { { OP_0f07
, 0 } } },
2315 { "xcrypt-ecb", { { OP_0f07
, 0 } } },
2316 { "xcrypt-cbc", { { OP_0f07
, 0 } } },
2317 { "xcrypt-ctr", { { OP_0f07
, 0 } } },
2318 { "xcrypt-cfb", { { OP_0f07
, 0 } } },
2319 { "xcrypt-ofb", { { OP_0f07
, 0 } } },
2320 { "(bad)", { { OP_0f07
, 0 } } },
2321 { "(bad)", { { OP_0f07
, 0 } } },
2325 { MOD_TABLE (MOD_0FAE_REG_0
) },
2326 { MOD_TABLE (MOD_0FAE_REG_1
) },
2327 { MOD_TABLE (MOD_0FAE_REG_2
) },
2328 { MOD_TABLE (MOD_0FAE_REG_3
) },
2329 { MOD_TABLE (MOD_0FAE_REG_4
) },
2330 { MOD_TABLE (MOD_0FAE_REG_5
) },
2331 { MOD_TABLE (MOD_0FAE_REG_6
) },
2332 { MOD_TABLE (MOD_0FAE_REG_7
) },
2336 { "(bad)", { XX
} },
2337 { "(bad)", { XX
} },
2338 { "(bad)", { XX
} },
2339 { "(bad)", { XX
} },
2340 { "btQ", { Ev
, Ib
} },
2341 { "btsQ", { Ev
, Ib
} },
2342 { "btrQ", { Ev
, Ib
} },
2343 { "btcQ", { Ev
, Ib
} },
2347 { "(bad)", { XX
} },
2348 { "cmpxchg8b", { { CMPXCHG8B_Fixup
, q_mode
} } },
2349 { "(bad)", { XX
} },
2350 { "(bad)", { XX
} },
2351 { "(bad)", { XX
} },
2352 { "(bad)", { XX
} },
2353 { MOD_TABLE (MOD_0FC7_REG_6
) },
2354 { MOD_TABLE (MOD_0FC7_REG_7
) },
2358 { "(bad)", { XX
} },
2359 { "(bad)", { XX
} },
2360 { MOD_TABLE (MOD_VEX_71_REG_2
) },
2361 { "(bad)", { XX
} },
2362 { MOD_TABLE (MOD_VEX_71_REG_4
) },
2363 { "(bad)", { XX
} },
2364 { MOD_TABLE (MOD_VEX_71_REG_6
) },
2365 { "(bad)", { XX
} },
2369 { "(bad)", { XX
} },
2370 { "(bad)", { XX
} },
2371 { MOD_TABLE (MOD_VEX_72_REG_2
) },
2372 { "(bad)", { XX
} },
2373 { MOD_TABLE (MOD_VEX_72_REG_4
) },
2374 { "(bad)", { XX
} },
2375 { MOD_TABLE (MOD_VEX_72_REG_6
) },
2376 { "(bad)", { XX
} },
2380 { "(bad)", { XX
} },
2381 { "(bad)", { XX
} },
2382 { MOD_TABLE (MOD_VEX_73_REG_2
) },
2383 { MOD_TABLE (MOD_VEX_73_REG_3
) },
2384 { "(bad)", { XX
} },
2385 { "(bad)", { XX
} },
2386 { MOD_TABLE (MOD_VEX_73_REG_6
) },
2387 { MOD_TABLE (MOD_VEX_73_REG_7
) },
2391 { "(bad)", { XX
} },
2392 { "(bad)", { XX
} },
2393 { MOD_TABLE (MOD_VEX_AE_REG_2
) },
2394 { MOD_TABLE (MOD_VEX_AE_REG_3
) },
2395 { "(bad)", { XX
} },
2396 { "(bad)", { XX
} },
2397 { "(bad)", { XX
} },
2398 { "(bad)", { XX
} },
2402 static const struct dis386 prefix_table
[][4] = {
2405 { "xchgS", { { NOP_Fixup1
, eAX_reg
}, { NOP_Fixup2
, eAX_reg
} } },
2406 { "pause", { XX
} },
2407 { "xchgS", { { NOP_Fixup1
, eAX_reg
}, { NOP_Fixup2
, eAX_reg
} } },
2408 { "(bad)", { XX
} },
2413 { "movups", { XM
, EXx
} },
2414 { "movss", { XM
, EXd
} },
2415 { "movupd", { XM
, EXx
} },
2416 { "movsd", { XM
, EXq
} },
2421 { "movups", { EXxS
, XM
} },
2422 { "movss", { EXdS
, XM
} },
2423 { "movupd", { EXxS
, XM
} },
2424 { "movsd", { EXqS
, XM
} },
2429 { MOD_TABLE (MOD_0F12_PREFIX_0
) },
2430 { "movsldup", { XM
, EXx
} },
2431 { "movlpd", { XM
, EXq
} },
2432 { "movddup", { XM
, EXq
} },
2437 { MOD_TABLE (MOD_0F16_PREFIX_0
) },
2438 { "movshdup", { XM
, EXx
} },
2439 { "movhpd", { XM
, EXq
} },
2440 { "(bad)", { XX
} },
2445 { "cvtpi2ps", { XM
, EMCq
} },
2446 { "cvtsi2ss%LQ", { XM
, Ev
} },
2447 { "cvtpi2pd", { XM
, EMCq
} },
2448 { "cvtsi2sd%LQ", { XM
, Ev
} },
2453 { MOD_TABLE (MOD_0F2B_PREFIX_0
) },
2454 { MOD_TABLE (MOD_0F2B_PREFIX_1
) },
2455 { MOD_TABLE (MOD_0F2B_PREFIX_2
) },
2456 { MOD_TABLE (MOD_0F2B_PREFIX_3
) },
2461 { "cvttps2pi", { MXC
, EXq
} },
2462 { "cvttss2siY", { Gv
, EXd
} },
2463 { "cvttpd2pi", { MXC
, EXx
} },
2464 { "cvttsd2siY", { Gv
, EXq
} },
2469 { "cvtps2pi", { MXC
, EXq
} },
2470 { "cvtss2siY", { Gv
, EXd
} },
2471 { "cvtpd2pi", { MXC
, EXx
} },
2472 { "cvtsd2siY", { Gv
, EXq
} },
2477 { "ucomiss",{ XM
, EXd
} },
2478 { "(bad)", { XX
} },
2479 { "ucomisd",{ XM
, EXq
} },
2480 { "(bad)", { XX
} },
2485 { "comiss", { XM
, EXd
} },
2486 { "(bad)", { XX
} },
2487 { "comisd", { XM
, EXq
} },
2488 { "(bad)", { XX
} },
2493 { "sqrtps", { XM
, EXx
} },
2494 { "sqrtss", { XM
, EXd
} },
2495 { "sqrtpd", { XM
, EXx
} },
2496 { "sqrtsd", { XM
, EXq
} },
2501 { "rsqrtps",{ XM
, EXx
} },
2502 { "rsqrtss",{ XM
, EXd
} },
2503 { "(bad)", { XX
} },
2504 { "(bad)", { XX
} },
2509 { "rcpps", { XM
, EXx
} },
2510 { "rcpss", { XM
, EXd
} },
2511 { "(bad)", { XX
} },
2512 { "(bad)", { XX
} },
2517 { "addps", { XM
, EXx
} },
2518 { "addss", { XM
, EXd
} },
2519 { "addpd", { XM
, EXx
} },
2520 { "addsd", { XM
, EXq
} },
2525 { "mulps", { XM
, EXx
} },
2526 { "mulss", { XM
, EXd
} },
2527 { "mulpd", { XM
, EXx
} },
2528 { "mulsd", { XM
, EXq
} },
2533 { "cvtps2pd", { XM
, EXq
} },
2534 { "cvtss2sd", { XM
, EXd
} },
2535 { "cvtpd2ps", { XM
, EXx
} },
2536 { "cvtsd2ss", { XM
, EXq
} },
2541 { "cvtdq2ps", { XM
, EXx
} },
2542 { "cvttps2dq", { XM
, EXx
} },
2543 { "cvtps2dq", { XM
, EXx
} },
2544 { "(bad)", { XX
} },
2549 { "subps", { XM
, EXx
} },
2550 { "subss", { XM
, EXd
} },
2551 { "subpd", { XM
, EXx
} },
2552 { "subsd", { XM
, EXq
} },
2557 { "minps", { XM
, EXx
} },
2558 { "minss", { XM
, EXd
} },
2559 { "minpd", { XM
, EXx
} },
2560 { "minsd", { XM
, EXq
} },
2565 { "divps", { XM
, EXx
} },
2566 { "divss", { XM
, EXd
} },
2567 { "divpd", { XM
, EXx
} },
2568 { "divsd", { XM
, EXq
} },
2573 { "maxps", { XM
, EXx
} },
2574 { "maxss", { XM
, EXd
} },
2575 { "maxpd", { XM
, EXx
} },
2576 { "maxsd", { XM
, EXq
} },
2581 { "punpcklbw",{ MX
, EMd
} },
2582 { "(bad)", { XX
} },
2583 { "punpcklbw",{ MX
, EMx
} },
2584 { "(bad)", { XX
} },
2589 { "punpcklwd",{ MX
, EMd
} },
2590 { "(bad)", { XX
} },
2591 { "punpcklwd",{ MX
, EMx
} },
2592 { "(bad)", { XX
} },
2597 { "punpckldq",{ MX
, EMd
} },
2598 { "(bad)", { XX
} },
2599 { "punpckldq",{ MX
, EMx
} },
2600 { "(bad)", { XX
} },
2605 { "(bad)", { XX
} },
2606 { "(bad)", { XX
} },
2607 { "punpcklqdq", { XM
, EXx
} },
2608 { "(bad)", { XX
} },
2613 { "(bad)", { XX
} },
2614 { "(bad)", { XX
} },
2615 { "punpckhqdq", { XM
, EXx
} },
2616 { "(bad)", { XX
} },
2621 { "movq", { MX
, EM
} },
2622 { "movdqu", { XM
, EXx
} },
2623 { "movdqa", { XM
, EXx
} },
2624 { "(bad)", { XX
} },
2629 { "pshufw", { MX
, EM
, Ib
} },
2630 { "pshufhw",{ XM
, EXx
, Ib
} },
2631 { "pshufd", { XM
, EXx
, Ib
} },
2632 { "pshuflw",{ XM
, EXx
, Ib
} },
2635 /* PREFIX_0F73_REG_3 */
2637 { "(bad)", { XX
} },
2638 { "(bad)", { XX
} },
2639 { "psrldq", { XS
, Ib
} },
2640 { "(bad)", { XX
} },
2643 /* PREFIX_0F73_REG_7 */
2645 { "(bad)", { XX
} },
2646 { "(bad)", { XX
} },
2647 { "pslldq", { XS
, Ib
} },
2648 { "(bad)", { XX
} },
2653 {"vmread", { Em
, Gm
} },
2655 {"extrq", { XS
, Ib
, Ib
} },
2656 {"insertq", { XM
, XS
, Ib
, Ib
} },
2661 {"vmwrite", { Gm
, Em
} },
2663 {"extrq", { XM
, XS
} },
2664 {"insertq", { XM
, XS
} },
2669 { "(bad)", { XX
} },
2670 { "(bad)", { XX
} },
2671 { "haddpd", { XM
, EXx
} },
2672 { "haddps", { XM
, EXx
} },
2677 { "(bad)", { XX
} },
2678 { "(bad)", { XX
} },
2679 { "hsubpd", { XM
, EXx
} },
2680 { "hsubps", { XM
, EXx
} },
2685 { "movK", { Edq
, MX
} },
2686 { "movq", { XM
, EXq
} },
2687 { "movK", { Edq
, XM
} },
2688 { "(bad)", { XX
} },
2693 { "movq", { EMS
, MX
} },
2694 { "movdqu", { EXxS
, XM
} },
2695 { "movdqa", { EXxS
, XM
} },
2696 { "(bad)", { XX
} },
2701 { "(bad)", { XX
} },
2702 { "popcntS", { Gv
, Ev
} },
2703 { "(bad)", { XX
} },
2704 { "(bad)", { XX
} },
2709 { "bsrS", { Gv
, Ev
} },
2710 { "lzcntS", { Gv
, Ev
} },
2711 { "bsrS", { Gv
, Ev
} },
2712 { "(bad)", { XX
} },
2717 { "cmpps", { XM
, EXx
, CMP
} },
2718 { "cmpss", { XM
, EXd
, CMP
} },
2719 { "cmppd", { XM
, EXx
, CMP
} },
2720 { "cmpsd", { XM
, EXq
, CMP
} },
2725 { "movntiS", { Ma
, Gv
} },
2726 { "(bad)", { XX
} },
2727 { "(bad)", { XX
} },
2728 { "(bad)", { XX
} },
2731 /* PREFIX_0FC7_REG_6 */
2733 { "vmptrld",{ Mq
} },
2734 { "vmxon", { Mq
} },
2735 { "vmclear",{ Mq
} },
2736 { "(bad)", { XX
} },
2741 { "(bad)", { XX
} },
2742 { "(bad)", { XX
} },
2743 { "addsubpd", { XM
, EXx
} },
2744 { "addsubps", { XM
, EXx
} },
2749 { "(bad)", { XX
} },
2750 { "movq2dq",{ XM
, MS
} },
2751 { "movq", { EXqS
, XM
} },
2752 { "movdq2q",{ MX
, XS
} },
2757 { "(bad)", { XX
} },
2758 { "cvtdq2pd", { XM
, EXq
} },
2759 { "cvttpd2dq", { XM
, EXx
} },
2760 { "cvtpd2dq", { XM
, EXx
} },
2765 { "movntq", { Mq
, MX
} },
2766 { "(bad)", { XX
} },
2767 { MOD_TABLE (MOD_0FE7_PREFIX_2
) },
2768 { "(bad)", { XX
} },
2773 { "(bad)", { XX
} },
2774 { "(bad)", { XX
} },
2775 { "(bad)", { XX
} },
2776 { MOD_TABLE (MOD_0FF0_PREFIX_3
) },
2781 { "maskmovq", { MX
, MS
} },
2782 { "(bad)", { XX
} },
2783 { "maskmovdqu", { XM
, XS
} },
2784 { "(bad)", { XX
} },
2789 { "(bad)", { XX
} },
2790 { "(bad)", { XX
} },
2791 { "pblendvb", { XM
, EXx
, XMM0
} },
2792 { "(bad)", { XX
} },
2797 { "(bad)", { XX
} },
2798 { "(bad)", { XX
} },
2799 { "blendvps", { XM
, EXx
, XMM0
} },
2800 { "(bad)", { XX
} },
2805 { "(bad)", { XX
} },
2806 { "(bad)", { XX
} },
2807 { "blendvpd", { XM
, EXx
, XMM0
} },
2808 { "(bad)", { XX
} },
2813 { "(bad)", { XX
} },
2814 { "(bad)", { XX
} },
2815 { "ptest", { XM
, EXx
} },
2816 { "(bad)", { XX
} },
2821 { "(bad)", { XX
} },
2822 { "(bad)", { XX
} },
2823 { "pmovsxbw", { XM
, EXq
} },
2824 { "(bad)", { XX
} },
2829 { "(bad)", { XX
} },
2830 { "(bad)", { XX
} },
2831 { "pmovsxbd", { XM
, EXd
} },
2832 { "(bad)", { XX
} },
2837 { "(bad)", { XX
} },
2838 { "(bad)", { XX
} },
2839 { "pmovsxbq", { XM
, EXw
} },
2840 { "(bad)", { XX
} },
2845 { "(bad)", { XX
} },
2846 { "(bad)", { XX
} },
2847 { "pmovsxwd", { XM
, EXq
} },
2848 { "(bad)", { XX
} },
2853 { "(bad)", { XX
} },
2854 { "(bad)", { XX
} },
2855 { "pmovsxwq", { XM
, EXd
} },
2856 { "(bad)", { XX
} },
2861 { "(bad)", { XX
} },
2862 { "(bad)", { XX
} },
2863 { "pmovsxdq", { XM
, EXq
} },
2864 { "(bad)", { XX
} },
2869 { "(bad)", { XX
} },
2870 { "(bad)", { XX
} },
2871 { "pmuldq", { XM
, EXx
} },
2872 { "(bad)", { XX
} },
2877 { "(bad)", { XX
} },
2878 { "(bad)", { XX
} },
2879 { "pcmpeqq", { XM
, EXx
} },
2880 { "(bad)", { XX
} },
2885 { "(bad)", { XX
} },
2886 { "(bad)", { XX
} },
2887 { MOD_TABLE (MOD_0F382A_PREFIX_2
) },
2888 { "(bad)", { XX
} },
2893 { "(bad)", { XX
} },
2894 { "(bad)", { XX
} },
2895 { "packusdw", { XM
, EXx
} },
2896 { "(bad)", { XX
} },
2901 { "(bad)", { XX
} },
2902 { "(bad)", { XX
} },
2903 { "pmovzxbw", { XM
, EXq
} },
2904 { "(bad)", { XX
} },
2909 { "(bad)", { XX
} },
2910 { "(bad)", { XX
} },
2911 { "pmovzxbd", { XM
, EXd
} },
2912 { "(bad)", { XX
} },
2917 { "(bad)", { XX
} },
2918 { "(bad)", { XX
} },
2919 { "pmovzxbq", { XM
, EXw
} },
2920 { "(bad)", { XX
} },
2925 { "(bad)", { XX
} },
2926 { "(bad)", { XX
} },
2927 { "pmovzxwd", { XM
, EXq
} },
2928 { "(bad)", { XX
} },
2933 { "(bad)", { XX
} },
2934 { "(bad)", { XX
} },
2935 { "pmovzxwq", { XM
, EXd
} },
2936 { "(bad)", { XX
} },
2941 { "(bad)", { XX
} },
2942 { "(bad)", { XX
} },
2943 { "pmovzxdq", { XM
, EXq
} },
2944 { "(bad)", { XX
} },
2949 { "(bad)", { XX
} },
2950 { "(bad)", { XX
} },
2951 { "pcmpgtq", { XM
, EXx
} },
2952 { "(bad)", { XX
} },
2957 { "(bad)", { XX
} },
2958 { "(bad)", { XX
} },
2959 { "pminsb", { XM
, EXx
} },
2960 { "(bad)", { XX
} },
2965 { "(bad)", { XX
} },
2966 { "(bad)", { XX
} },
2967 { "pminsd", { XM
, EXx
} },
2968 { "(bad)", { XX
} },
2973 { "(bad)", { XX
} },
2974 { "(bad)", { XX
} },
2975 { "pminuw", { XM
, EXx
} },
2976 { "(bad)", { XX
} },
2981 { "(bad)", { XX
} },
2982 { "(bad)", { XX
} },
2983 { "pminud", { XM
, EXx
} },
2984 { "(bad)", { XX
} },
2989 { "(bad)", { XX
} },
2990 { "(bad)", { XX
} },
2991 { "pmaxsb", { XM
, EXx
} },
2992 { "(bad)", { XX
} },
2997 { "(bad)", { XX
} },
2998 { "(bad)", { XX
} },
2999 { "pmaxsd", { XM
, EXx
} },
3000 { "(bad)", { XX
} },
3005 { "(bad)", { XX
} },
3006 { "(bad)", { XX
} },
3007 { "pmaxuw", { XM
, EXx
} },
3008 { "(bad)", { XX
} },
3013 { "(bad)", { XX
} },
3014 { "(bad)", { XX
} },
3015 { "pmaxud", { XM
, EXx
} },
3016 { "(bad)", { XX
} },
3021 { "(bad)", { XX
} },
3022 { "(bad)", { XX
} },
3023 { "pmulld", { XM
, EXx
} },
3024 { "(bad)", { XX
} },
3029 { "(bad)", { XX
} },
3030 { "(bad)", { XX
} },
3031 { "phminposuw", { XM
, EXx
} },
3032 { "(bad)", { XX
} },
3037 { "(bad)", { XX
} },
3038 { "(bad)", { XX
} },
3039 { "invept", { Gm
, Mo
} },
3040 { "(bad)", { XX
} },
3045 { "(bad)", { XX
} },
3046 { "(bad)", { XX
} },
3047 { "invvpid", { Gm
, Mo
} },
3048 { "(bad)", { XX
} },
3053 { "(bad)", { XX
} },
3054 { "(bad)", { XX
} },
3055 { "aesimc", { XM
, EXx
} },
3056 { "(bad)", { XX
} },
3061 { "(bad)", { XX
} },
3062 { "(bad)", { XX
} },
3063 { "aesenc", { XM
, EXx
} },
3064 { "(bad)", { XX
} },
3069 { "(bad)", { XX
} },
3070 { "(bad)", { XX
} },
3071 { "aesenclast", { XM
, EXx
} },
3072 { "(bad)", { XX
} },
3077 { "(bad)", { XX
} },
3078 { "(bad)", { XX
} },
3079 { "aesdec", { XM
, EXx
} },
3080 { "(bad)", { XX
} },
3085 { "(bad)", { XX
} },
3086 { "(bad)", { XX
} },
3087 { "aesdeclast", { XM
, EXx
} },
3088 { "(bad)", { XX
} },
3093 { "movbeS", { Gv
, { MOVBE_Fixup
, v_mode
} } },
3094 { "(bad)", { XX
} },
3095 { "movbeS", { Gv
, { MOVBE_Fixup
, v_mode
} } },
3096 { "crc32", { Gdq
, { CRC32_Fixup
, b_mode
} } },
3101 { "movbeS", { { MOVBE_Fixup
, v_mode
}, Gv
} },
3102 { "(bad)", { XX
} },
3103 { "movbeS", { { MOVBE_Fixup
, v_mode
}, Gv
} },
3104 { "crc32", { Gdq
, { CRC32_Fixup
, v_mode
} } },
3109 { "(bad)", { XX
} },
3110 { "(bad)", { XX
} },
3111 { "roundps", { XM
, EXx
, Ib
} },
3112 { "(bad)", { XX
} },
3117 { "(bad)", { XX
} },
3118 { "(bad)", { XX
} },
3119 { "roundpd", { XM
, EXx
, Ib
} },
3120 { "(bad)", { XX
} },
3125 { "(bad)", { XX
} },
3126 { "(bad)", { XX
} },
3127 { "roundss", { XM
, EXd
, Ib
} },
3128 { "(bad)", { XX
} },
3133 { "(bad)", { XX
} },
3134 { "(bad)", { XX
} },
3135 { "roundsd", { XM
, EXq
, Ib
} },
3136 { "(bad)", { XX
} },
3141 { "(bad)", { XX
} },
3142 { "(bad)", { XX
} },
3143 { "blendps", { XM
, EXx
, Ib
} },
3144 { "(bad)", { XX
} },
3149 { "(bad)", { XX
} },
3150 { "(bad)", { XX
} },
3151 { "blendpd", { XM
, EXx
, Ib
} },
3152 { "(bad)", { XX
} },
3157 { "(bad)", { XX
} },
3158 { "(bad)", { XX
} },
3159 { "pblendw", { XM
, EXx
, Ib
} },
3160 { "(bad)", { XX
} },
3165 { "(bad)", { XX
} },
3166 { "(bad)", { XX
} },
3167 { "pextrb", { Edqb
, XM
, Ib
} },
3168 { "(bad)", { XX
} },
3173 { "(bad)", { XX
} },
3174 { "(bad)", { XX
} },
3175 { "pextrw", { Edqw
, XM
, Ib
} },
3176 { "(bad)", { XX
} },
3181 { "(bad)", { XX
} },
3182 { "(bad)", { XX
} },
3183 { "pextrK", { Edq
, XM
, Ib
} },
3184 { "(bad)", { XX
} },
3189 { "(bad)", { XX
} },
3190 { "(bad)", { XX
} },
3191 { "extractps", { Edqd
, XM
, Ib
} },
3192 { "(bad)", { XX
} },
3197 { "(bad)", { XX
} },
3198 { "(bad)", { XX
} },
3199 { "pinsrb", { XM
, Edqb
, Ib
} },
3200 { "(bad)", { XX
} },
3205 { "(bad)", { XX
} },
3206 { "(bad)", { XX
} },
3207 { "insertps", { XM
, EXd
, Ib
} },
3208 { "(bad)", { XX
} },
3213 { "(bad)", { XX
} },
3214 { "(bad)", { XX
} },
3215 { "pinsrK", { XM
, Edq
, Ib
} },
3216 { "(bad)", { XX
} },
3221 { "(bad)", { XX
} },
3222 { "(bad)", { XX
} },
3223 { "dpps", { XM
, EXx
, Ib
} },
3224 { "(bad)", { XX
} },
3229 { "(bad)", { XX
} },
3230 { "(bad)", { XX
} },
3231 { "dppd", { XM
, EXx
, Ib
} },
3232 { "(bad)", { XX
} },
3237 { "(bad)", { XX
} },
3238 { "(bad)", { XX
} },
3239 { "mpsadbw", { XM
, EXx
, Ib
} },
3240 { "(bad)", { XX
} },
3245 { "(bad)", { XX
} },
3246 { "(bad)", { XX
} },
3247 { "pclmulqdq", { XM
, EXx
, PCLMUL
} },
3248 { "(bad)", { XX
} },
3253 { "(bad)", { XX
} },
3254 { "(bad)", { XX
} },
3255 { "pcmpestrm", { XM
, EXx
, Ib
} },
3256 { "(bad)", { XX
} },
3261 { "(bad)", { XX
} },
3262 { "(bad)", { XX
} },
3263 { "pcmpestri", { XM
, EXx
, Ib
} },
3264 { "(bad)", { XX
} },
3269 { "(bad)", { XX
} },
3270 { "(bad)", { XX
} },
3271 { "pcmpistrm", { XM
, EXx
, Ib
} },
3272 { "(bad)", { XX
} },
3277 { "(bad)", { XX
} },
3278 { "(bad)", { XX
} },
3279 { "pcmpistri", { XM
, EXx
, Ib
} },
3280 { "(bad)", { XX
} },
3285 { "(bad)", { XX
} },
3286 { "(bad)", { XX
} },
3287 { "aeskeygenassist", { XM
, EXx
, Ib
} },
3288 { "(bad)", { XX
} },
3293 { "vmovups", { XM
, EXx
} },
3294 { VEX_LEN_TABLE (VEX_LEN_10_P_1
) },
3295 { "vmovupd", { XM
, EXx
} },
3296 { VEX_LEN_TABLE (VEX_LEN_10_P_3
) },
3301 { "vmovups", { EXxS
, XM
} },
3302 { VEX_LEN_TABLE (VEX_LEN_11_P_1
) },
3303 { "vmovupd", { EXxS
, XM
} },
3304 { VEX_LEN_TABLE (VEX_LEN_11_P_3
) },
3309 { MOD_TABLE (MOD_VEX_12_PREFIX_0
) },
3310 { "vmovsldup", { XM
, EXx
} },
3311 { VEX_LEN_TABLE (VEX_LEN_12_P_2
) },
3312 { "vmovddup", { XM
, EXymmq
} },
3317 { MOD_TABLE (MOD_VEX_16_PREFIX_0
) },
3318 { "vmovshdup", { XM
, EXx
} },
3319 { VEX_LEN_TABLE (VEX_LEN_16_P_2
) },
3320 { "(bad)", { XX
} },
3325 { "(bad)", { XX
} },
3326 { VEX_LEN_TABLE (VEX_LEN_2A_P_1
) },
3327 { "(bad)", { XX
} },
3328 { VEX_LEN_TABLE (VEX_LEN_2A_P_3
) },
3333 { "(bad)", { XX
} },
3334 { VEX_LEN_TABLE (VEX_LEN_2C_P_1
) },
3335 { "(bad)", { XX
} },
3336 { VEX_LEN_TABLE (VEX_LEN_2C_P_3
) },
3341 { "(bad)", { XX
} },
3342 { VEX_LEN_TABLE (VEX_LEN_2D_P_1
) },
3343 { "(bad)", { XX
} },
3344 { VEX_LEN_TABLE (VEX_LEN_2D_P_3
) },
3349 { VEX_LEN_TABLE (VEX_LEN_2E_P_0
) },
3350 { "(bad)", { XX
} },
3351 { VEX_LEN_TABLE (VEX_LEN_2E_P_2
) },
3352 { "(bad)", { XX
} },
3357 { VEX_LEN_TABLE (VEX_LEN_2F_P_0
) },
3358 { "(bad)", { XX
} },
3359 { VEX_LEN_TABLE (VEX_LEN_2F_P_2
) },
3360 { "(bad)", { XX
} },
3365 { "vsqrtps", { XM
, EXx
} },
3366 { VEX_LEN_TABLE (VEX_LEN_51_P_1
) },
3367 { "vsqrtpd", { XM
, EXx
} },
3368 { VEX_LEN_TABLE (VEX_LEN_51_P_3
) },
3373 { "vrsqrtps", { XM
, EXx
} },
3374 { VEX_LEN_TABLE (VEX_LEN_52_P_1
) },
3375 { "(bad)", { XX
} },
3376 { "(bad)", { XX
} },
3381 { "vrcpps", { XM
, EXx
} },
3382 { VEX_LEN_TABLE (VEX_LEN_53_P_1
) },
3383 { "(bad)", { XX
} },
3384 { "(bad)", { XX
} },
3389 { "vaddps", { XM
, Vex
, EXx
} },
3390 { VEX_LEN_TABLE (VEX_LEN_58_P_1
) },
3391 { "vaddpd", { XM
, Vex
, EXx
} },
3392 { VEX_LEN_TABLE (VEX_LEN_58_P_3
) },
3397 { "vmulps", { XM
, Vex
, EXx
} },
3398 { VEX_LEN_TABLE (VEX_LEN_59_P_1
) },
3399 { "vmulpd", { XM
, Vex
, EXx
} },
3400 { VEX_LEN_TABLE (VEX_LEN_59_P_3
) },
3405 { "vcvtps2pd", { XM
, EXxmmq
} },
3406 { VEX_LEN_TABLE (VEX_LEN_5A_P_1
) },
3407 { "vcvtpd2ps%XY", { XMM
, EXx
} },
3408 { VEX_LEN_TABLE (VEX_LEN_5A_P_3
) },
3413 { "vcvtdq2ps", { XM
, EXx
} },
3414 { "vcvttps2dq", { XM
, EXx
} },
3415 { "vcvtps2dq", { XM
, EXx
} },
3416 { "(bad)", { XX
} },
3421 { "vsubps", { XM
, Vex
, EXx
} },
3422 { VEX_LEN_TABLE (VEX_LEN_5C_P_1
) },
3423 { "vsubpd", { XM
, Vex
, EXx
} },
3424 { VEX_LEN_TABLE (VEX_LEN_5C_P_3
) },
3429 { "vminps", { XM
, Vex
, EXx
} },
3430 { VEX_LEN_TABLE (VEX_LEN_5D_P_1
) },
3431 { "vminpd", { XM
, Vex
, EXx
} },
3432 { VEX_LEN_TABLE (VEX_LEN_5D_P_3
) },
3437 { "vdivps", { XM
, Vex
, EXx
} },
3438 { VEX_LEN_TABLE (VEX_LEN_5E_P_1
) },
3439 { "vdivpd", { XM
, Vex
, EXx
} },
3440 { VEX_LEN_TABLE (VEX_LEN_5E_P_3
) },
3445 { "vmaxps", { XM
, Vex
, EXx
} },
3446 { VEX_LEN_TABLE (VEX_LEN_5F_P_1
) },
3447 { "vmaxpd", { XM
, Vex
, EXx
} },
3448 { VEX_LEN_TABLE (VEX_LEN_5F_P_3
) },
3453 { "(bad)", { XX
} },
3454 { "(bad)", { XX
} },
3455 { VEX_LEN_TABLE (VEX_LEN_60_P_2
) },
3456 { "(bad)", { XX
} },
3461 { "(bad)", { XX
} },
3462 { "(bad)", { XX
} },
3463 { VEX_LEN_TABLE (VEX_LEN_61_P_2
) },
3464 { "(bad)", { XX
} },
3469 { "(bad)", { XX
} },
3470 { "(bad)", { XX
} },
3471 { VEX_LEN_TABLE (VEX_LEN_62_P_2
) },
3472 { "(bad)", { XX
} },
3477 { "(bad)", { XX
} },
3478 { "(bad)", { XX
} },
3479 { VEX_LEN_TABLE (VEX_LEN_63_P_2
) },
3480 { "(bad)", { XX
} },
3485 { "(bad)", { XX
} },
3486 { "(bad)", { XX
} },
3487 { VEX_LEN_TABLE (VEX_LEN_64_P_2
) },
3488 { "(bad)", { XX
} },
3493 { "(bad)", { XX
} },
3494 { "(bad)", { XX
} },
3495 { VEX_LEN_TABLE (VEX_LEN_65_P_2
) },
3496 { "(bad)", { XX
} },
3501 { "(bad)", { XX
} },
3502 { "(bad)", { XX
} },
3503 { VEX_LEN_TABLE (VEX_LEN_66_P_2
) },
3504 { "(bad)", { XX
} },
3509 { "(bad)", { XX
} },
3510 { "(bad)", { XX
} },
3511 { VEX_LEN_TABLE (VEX_LEN_67_P_2
) },
3512 { "(bad)", { XX
} },
3517 { "(bad)", { XX
} },
3518 { "(bad)", { XX
} },
3519 { VEX_LEN_TABLE (VEX_LEN_68_P_2
) },
3520 { "(bad)", { XX
} },
3525 { "(bad)", { XX
} },
3526 { "(bad)", { XX
} },
3527 { VEX_LEN_TABLE (VEX_LEN_69_P_2
) },
3528 { "(bad)", { XX
} },
3533 { "(bad)", { XX
} },
3534 { "(bad)", { XX
} },
3535 { VEX_LEN_TABLE (VEX_LEN_6A_P_2
) },
3536 { "(bad)", { XX
} },
3541 { "(bad)", { XX
} },
3542 { "(bad)", { XX
} },
3543 { VEX_LEN_TABLE (VEX_LEN_6B_P_2
) },
3544 { "(bad)", { XX
} },
3549 { "(bad)", { XX
} },
3550 { "(bad)", { XX
} },
3551 { VEX_LEN_TABLE (VEX_LEN_6C_P_2
) },
3552 { "(bad)", { XX
} },
3557 { "(bad)", { XX
} },
3558 { "(bad)", { XX
} },
3559 { VEX_LEN_TABLE (VEX_LEN_6D_P_2
) },
3560 { "(bad)", { XX
} },
3565 { "(bad)", { XX
} },
3566 { "(bad)", { XX
} },
3567 { VEX_LEN_TABLE (VEX_LEN_6E_P_2
) },
3568 { "(bad)", { XX
} },
3573 { "(bad)", { XX
} },
3574 { "vmovdqu", { XM
, EXx
} },
3575 { "vmovdqa", { XM
, EXx
} },
3576 { "(bad)", { XX
} },
3581 { "(bad)", { XX
} },
3582 { VEX_LEN_TABLE (VEX_LEN_70_P_1
) },
3583 { VEX_LEN_TABLE (VEX_LEN_70_P_2
) },
3584 { VEX_LEN_TABLE (VEX_LEN_70_P_3
) },
3587 /* PREFIX_VEX_71_REG_2 */
3589 { "(bad)", { XX
} },
3590 { "(bad)", { XX
} },
3591 { VEX_LEN_TABLE (VEX_LEN_71_R_2_P_2
) },
3592 { "(bad)", { XX
} },
3595 /* PREFIX_VEX_71_REG_4 */
3597 { "(bad)", { XX
} },
3598 { "(bad)", { XX
} },
3599 { VEX_LEN_TABLE (VEX_LEN_71_R_4_P_2
) },
3600 { "(bad)", { XX
} },
3603 /* PREFIX_VEX_71_REG_6 */
3605 { "(bad)", { XX
} },
3606 { "(bad)", { XX
} },
3607 { VEX_LEN_TABLE (VEX_LEN_71_R_6_P_2
) },
3608 { "(bad)", { XX
} },
3611 /* PREFIX_VEX_72_REG_2 */
3613 { "(bad)", { XX
} },
3614 { "(bad)", { XX
} },
3615 { VEX_LEN_TABLE (VEX_LEN_72_R_2_P_2
) },
3616 { "(bad)", { XX
} },
3619 /* PREFIX_VEX_72_REG_4 */
3621 { "(bad)", { XX
} },
3622 { "(bad)", { XX
} },
3623 { VEX_LEN_TABLE (VEX_LEN_72_R_4_P_2
) },
3624 { "(bad)", { XX
} },
3627 /* PREFIX_VEX_72_REG_6 */
3629 { "(bad)", { XX
} },
3630 { "(bad)", { XX
} },
3631 { VEX_LEN_TABLE (VEX_LEN_72_R_6_P_2
) },
3632 { "(bad)", { XX
} },
3635 /* PREFIX_VEX_73_REG_2 */
3637 { "(bad)", { XX
} },
3638 { "(bad)", { XX
} },
3639 { VEX_LEN_TABLE (VEX_LEN_73_R_2_P_2
) },
3640 { "(bad)", { XX
} },
3643 /* PREFIX_VEX_73_REG_3 */
3645 { "(bad)", { XX
} },
3646 { "(bad)", { XX
} },
3647 { VEX_LEN_TABLE (VEX_LEN_73_R_3_P_2
) },
3648 { "(bad)", { XX
} },
3651 /* PREFIX_VEX_73_REG_6 */
3653 { "(bad)", { XX
} },
3654 { "(bad)", { XX
} },
3655 { VEX_LEN_TABLE (VEX_LEN_73_R_6_P_2
) },
3656 { "(bad)", { XX
} },
3659 /* PREFIX_VEX_73_REG_7 */
3661 { "(bad)", { XX
} },
3662 { "(bad)", { XX
} },
3663 { VEX_LEN_TABLE (VEX_LEN_73_R_7_P_2
) },
3664 { "(bad)", { XX
} },
3669 { "(bad)", { XX
} },
3670 { "(bad)", { XX
} },
3671 { VEX_LEN_TABLE (VEX_LEN_74_P_2
) },
3672 { "(bad)", { XX
} },
3677 { "(bad)", { XX
} },
3678 { "(bad)", { XX
} },
3679 { VEX_LEN_TABLE (VEX_LEN_75_P_2
) },
3680 { "(bad)", { XX
} },
3685 { "(bad)", { XX
} },
3686 { "(bad)", { XX
} },
3687 { VEX_LEN_TABLE (VEX_LEN_76_P_2
) },
3688 { "(bad)", { XX
} },
3694 { "(bad)", { XX
} },
3695 { "(bad)", { XX
} },
3696 { "(bad)", { XX
} },
3701 { "(bad)", { XX
} },
3702 { "(bad)", { XX
} },
3703 { "vhaddpd", { XM
, Vex
, EXx
} },
3704 { "vhaddps", { XM
, Vex
, EXx
} },
3709 { "(bad)", { XX
} },
3710 { "(bad)", { XX
} },
3711 { "vhsubpd", { XM
, Vex
, EXx
} },
3712 { "vhsubps", { XM
, Vex
, EXx
} },
3717 { "(bad)", { XX
} },
3718 { VEX_LEN_TABLE (VEX_LEN_7E_P_1
) },
3719 { VEX_LEN_TABLE (VEX_LEN_7E_P_2
) },
3720 { "(bad)", { XX
} },
3725 { "(bad)", { XX
} },
3726 { "vmovdqu", { EXxS
, XM
} },
3727 { "vmovdqa", { EXxS
, XM
} },
3728 { "(bad)", { XX
} },
3733 { "vcmpps", { XM
, Vex
, EXx
, VCMP
} },
3734 { VEX_LEN_TABLE (VEX_LEN_C2_P_1
) },
3735 { "vcmppd", { XM
, Vex
, EXx
, VCMP
} },
3736 { VEX_LEN_TABLE (VEX_LEN_C2_P_3
) },
3741 { "(bad)", { XX
} },
3742 { "(bad)", { XX
} },
3743 { VEX_LEN_TABLE (VEX_LEN_C4_P_2
) },
3744 { "(bad)", { XX
} },
3749 { "(bad)", { XX
} },
3750 { "(bad)", { XX
} },
3751 { VEX_LEN_TABLE (VEX_LEN_C5_P_2
) },
3752 { "(bad)", { XX
} },
3757 { "(bad)", { XX
} },
3758 { "(bad)", { XX
} },
3759 { "vaddsubpd", { XM
, Vex
, EXx
} },
3760 { "vaddsubps", { XM
, Vex
, EXx
} },
3765 { "(bad)", { XX
} },
3766 { "(bad)", { XX
} },
3767 { VEX_LEN_TABLE (VEX_LEN_D1_P_2
) },
3768 { "(bad)", { XX
} },
3773 { "(bad)", { XX
} },
3774 { "(bad)", { XX
} },
3775 { VEX_LEN_TABLE (VEX_LEN_D2_P_2
) },
3776 { "(bad)", { XX
} },
3781 { "(bad)", { XX
} },
3782 { "(bad)", { XX
} },
3783 { VEX_LEN_TABLE (VEX_LEN_D3_P_2
) },
3784 { "(bad)", { XX
} },
3789 { "(bad)", { XX
} },
3790 { "(bad)", { XX
} },
3791 { VEX_LEN_TABLE (VEX_LEN_D4_P_2
) },
3792 { "(bad)", { XX
} },
3797 { "(bad)", { XX
} },
3798 { "(bad)", { XX
} },
3799 { VEX_LEN_TABLE (VEX_LEN_D5_P_2
) },
3800 { "(bad)", { XX
} },
3805 { "(bad)", { XX
} },
3806 { "(bad)", { XX
} },
3807 { VEX_LEN_TABLE (VEX_LEN_D6_P_2
) },
3808 { "(bad)", { XX
} },
3813 { "(bad)", { XX
} },
3814 { "(bad)", { XX
} },
3815 { MOD_TABLE (MOD_VEX_D7_PREFIX_2
) },
3816 { "(bad)", { XX
} },
3821 { "(bad)", { XX
} },
3822 { "(bad)", { XX
} },
3823 { VEX_LEN_TABLE (VEX_LEN_D8_P_2
) },
3824 { "(bad)", { XX
} },
3829 { "(bad)", { XX
} },
3830 { "(bad)", { XX
} },
3831 { VEX_LEN_TABLE (VEX_LEN_D9_P_2
) },
3832 { "(bad)", { XX
} },
3837 { "(bad)", { XX
} },
3838 { "(bad)", { XX
} },
3839 { VEX_LEN_TABLE (VEX_LEN_DA_P_2
) },
3840 { "(bad)", { XX
} },
3845 { "(bad)", { XX
} },
3846 { "(bad)", { XX
} },
3847 { VEX_LEN_TABLE (VEX_LEN_DB_P_2
) },
3848 { "(bad)", { XX
} },
3853 { "(bad)", { XX
} },
3854 { "(bad)", { XX
} },
3855 { VEX_LEN_TABLE (VEX_LEN_DC_P_2
) },
3856 { "(bad)", { XX
} },
3861 { "(bad)", { XX
} },
3862 { "(bad)", { XX
} },
3863 { VEX_LEN_TABLE (VEX_LEN_DD_P_2
) },
3864 { "(bad)", { XX
} },
3869 { "(bad)", { XX
} },
3870 { "(bad)", { XX
} },
3871 { VEX_LEN_TABLE (VEX_LEN_DE_P_2
) },
3872 { "(bad)", { XX
} },
3877 { "(bad)", { XX
} },
3878 { "(bad)", { XX
} },
3879 { VEX_LEN_TABLE (VEX_LEN_DF_P_2
) },
3880 { "(bad)", { XX
} },
3885 { "(bad)", { XX
} },
3886 { "(bad)", { XX
} },
3887 { VEX_LEN_TABLE (VEX_LEN_E0_P_2
) },
3888 { "(bad)", { XX
} },
3893 { "(bad)", { XX
} },
3894 { "(bad)", { XX
} },
3895 { VEX_LEN_TABLE (VEX_LEN_E1_P_2
) },
3896 { "(bad)", { XX
} },
3901 { "(bad)", { XX
} },
3902 { "(bad)", { XX
} },
3903 { VEX_LEN_TABLE (VEX_LEN_E2_P_2
) },
3904 { "(bad)", { XX
} },
3909 { "(bad)", { XX
} },
3910 { "(bad)", { XX
} },
3911 { VEX_LEN_TABLE (VEX_LEN_E3_P_2
) },
3912 { "(bad)", { XX
} },
3917 { "(bad)", { XX
} },
3918 { "(bad)", { XX
} },
3919 { VEX_LEN_TABLE (VEX_LEN_E4_P_2
) },
3920 { "(bad)", { XX
} },
3925 { "(bad)", { XX
} },
3926 { "(bad)", { XX
} },
3927 { VEX_LEN_TABLE (VEX_LEN_E5_P_2
) },
3928 { "(bad)", { XX
} },
3933 { "(bad)", { XX
} },
3934 { "vcvtdq2pd", { XM
, EXxmmq
} },
3935 { "vcvttpd2dq%XY", { XMM
, EXx
} },
3936 { "vcvtpd2dq%XY", { XMM
, EXx
} },
3941 { "(bad)", { XX
} },
3942 { "(bad)", { XX
} },
3943 { MOD_TABLE (MOD_VEX_E7_PREFIX_2
) },
3944 { "(bad)", { XX
} },
3949 { "(bad)", { XX
} },
3950 { "(bad)", { XX
} },
3951 { VEX_LEN_TABLE (VEX_LEN_E8_P_2
) },
3952 { "(bad)", { XX
} },
3957 { "(bad)", { XX
} },
3958 { "(bad)", { XX
} },
3959 { VEX_LEN_TABLE (VEX_LEN_E9_P_2
) },
3960 { "(bad)", { XX
} },
3965 { "(bad)", { XX
} },
3966 { "(bad)", { XX
} },
3967 { VEX_LEN_TABLE (VEX_LEN_EA_P_2
) },
3968 { "(bad)", { XX
} },
3973 { "(bad)", { XX
} },
3974 { "(bad)", { XX
} },
3975 { VEX_LEN_TABLE (VEX_LEN_EB_P_2
) },
3976 { "(bad)", { XX
} },
3981 { "(bad)", { XX
} },
3982 { "(bad)", { XX
} },
3983 { VEX_LEN_TABLE (VEX_LEN_EC_P_2
) },
3984 { "(bad)", { XX
} },
3989 { "(bad)", { XX
} },
3990 { "(bad)", { XX
} },
3991 { VEX_LEN_TABLE (VEX_LEN_ED_P_2
) },
3992 { "(bad)", { XX
} },
3997 { "(bad)", { XX
} },
3998 { "(bad)", { XX
} },
3999 { VEX_LEN_TABLE (VEX_LEN_EE_P_2
) },
4000 { "(bad)", { XX
} },
4005 { "(bad)", { XX
} },
4006 { "(bad)", { XX
} },
4007 { VEX_LEN_TABLE (VEX_LEN_EF_P_2
) },
4008 { "(bad)", { XX
} },
4013 { "(bad)", { XX
} },
4014 { "(bad)", { XX
} },
4015 { "(bad)", { XX
} },
4016 { MOD_TABLE (MOD_VEX_F0_PREFIX_3
) },
4021 { "(bad)", { XX
} },
4022 { "(bad)", { XX
} },
4023 { VEX_LEN_TABLE (VEX_LEN_F1_P_2
) },
4024 { "(bad)", { XX
} },
4029 { "(bad)", { XX
} },
4030 { "(bad)", { XX
} },
4031 { VEX_LEN_TABLE (VEX_LEN_F2_P_2
) },
4032 { "(bad)", { XX
} },
4037 { "(bad)", { XX
} },
4038 { "(bad)", { XX
} },
4039 { VEX_LEN_TABLE (VEX_LEN_F3_P_2
) },
4040 { "(bad)", { XX
} },
4045 { "(bad)", { XX
} },
4046 { "(bad)", { XX
} },
4047 { VEX_LEN_TABLE (VEX_LEN_F4_P_2
) },
4048 { "(bad)", { XX
} },
4053 { "(bad)", { XX
} },
4054 { "(bad)", { XX
} },
4055 { VEX_LEN_TABLE (VEX_LEN_F5_P_2
) },
4056 { "(bad)", { XX
} },
4061 { "(bad)", { XX
} },
4062 { "(bad)", { XX
} },
4063 { VEX_LEN_TABLE (VEX_LEN_F6_P_2
) },
4064 { "(bad)", { XX
} },
4069 { "(bad)", { XX
} },
4070 { "(bad)", { XX
} },
4071 { VEX_LEN_TABLE (VEX_LEN_F7_P_2
) },
4072 { "(bad)", { XX
} },
4077 { "(bad)", { XX
} },
4078 { "(bad)", { XX
} },
4079 { VEX_LEN_TABLE (VEX_LEN_F8_P_2
) },
4080 { "(bad)", { XX
} },
4085 { "(bad)", { XX
} },
4086 { "(bad)", { XX
} },
4087 { VEX_LEN_TABLE (VEX_LEN_F9_P_2
) },
4088 { "(bad)", { XX
} },
4093 { "(bad)", { XX
} },
4094 { "(bad)", { XX
} },
4095 { VEX_LEN_TABLE (VEX_LEN_FA_P_2
) },
4096 { "(bad)", { XX
} },
4101 { "(bad)", { XX
} },
4102 { "(bad)", { XX
} },
4103 { VEX_LEN_TABLE (VEX_LEN_FB_P_2
) },
4104 { "(bad)", { XX
} },
4109 { "(bad)", { XX
} },
4110 { "(bad)", { XX
} },
4111 { VEX_LEN_TABLE (VEX_LEN_FC_P_2
) },
4112 { "(bad)", { XX
} },
4117 { "(bad)", { XX
} },
4118 { "(bad)", { XX
} },
4119 { VEX_LEN_TABLE (VEX_LEN_FD_P_2
) },
4120 { "(bad)", { XX
} },
4125 { "(bad)", { XX
} },
4126 { "(bad)", { XX
} },
4127 { VEX_LEN_TABLE (VEX_LEN_FE_P_2
) },
4128 { "(bad)", { XX
} },
4131 /* PREFIX_VEX_3800 */
4133 { "(bad)", { XX
} },
4134 { "(bad)", { XX
} },
4135 { VEX_LEN_TABLE (VEX_LEN_3800_P_2
) },
4136 { "(bad)", { XX
} },
4139 /* PREFIX_VEX_3801 */
4141 { "(bad)", { XX
} },
4142 { "(bad)", { XX
} },
4143 { VEX_LEN_TABLE (VEX_LEN_3801_P_2
) },
4144 { "(bad)", { XX
} },
4147 /* PREFIX_VEX_3802 */
4149 { "(bad)", { XX
} },
4150 { "(bad)", { XX
} },
4151 { VEX_LEN_TABLE (VEX_LEN_3802_P_2
) },
4152 { "(bad)", { XX
} },
4155 /* PREFIX_VEX_3803 */
4157 { "(bad)", { XX
} },
4158 { "(bad)", { XX
} },
4159 { VEX_LEN_TABLE (VEX_LEN_3803_P_2
) },
4160 { "(bad)", { XX
} },
4163 /* PREFIX_VEX_3804 */
4165 { "(bad)", { XX
} },
4166 { "(bad)", { XX
} },
4167 { VEX_LEN_TABLE (VEX_LEN_3804_P_2
) },
4168 { "(bad)", { XX
} },
4171 /* PREFIX_VEX_3805 */
4173 { "(bad)", { XX
} },
4174 { "(bad)", { XX
} },
4175 { VEX_LEN_TABLE (VEX_LEN_3805_P_2
) },
4176 { "(bad)", { XX
} },
4179 /* PREFIX_VEX_3806 */
4181 { "(bad)", { XX
} },
4182 { "(bad)", { XX
} },
4183 { VEX_LEN_TABLE (VEX_LEN_3806_P_2
) },
4184 { "(bad)", { XX
} },
4187 /* PREFIX_VEX_3807 */
4189 { "(bad)", { XX
} },
4190 { "(bad)", { XX
} },
4191 { VEX_LEN_TABLE (VEX_LEN_3807_P_2
) },
4192 { "(bad)", { XX
} },
4195 /* PREFIX_VEX_3808 */
4197 { "(bad)", { XX
} },
4198 { "(bad)", { XX
} },
4199 { VEX_LEN_TABLE (VEX_LEN_3808_P_2
) },
4200 { "(bad)", { XX
} },
4203 /* PREFIX_VEX_3809 */
4205 { "(bad)", { XX
} },
4206 { "(bad)", { XX
} },
4207 { VEX_LEN_TABLE (VEX_LEN_3809_P_2
) },
4208 { "(bad)", { XX
} },
4211 /* PREFIX_VEX_380A */
4213 { "(bad)", { XX
} },
4214 { "(bad)", { XX
} },
4215 { VEX_LEN_TABLE (VEX_LEN_380A_P_2
) },
4216 { "(bad)", { XX
} },
4219 /* PREFIX_VEX_380B */
4221 { "(bad)", { XX
} },
4222 { "(bad)", { XX
} },
4223 { VEX_LEN_TABLE (VEX_LEN_380B_P_2
) },
4224 { "(bad)", { XX
} },
4227 /* PREFIX_VEX_380C */
4229 { "(bad)", { XX
} },
4230 { "(bad)", { XX
} },
4231 { "vpermilps", { XM
, Vex
, EXx
} },
4232 { "(bad)", { XX
} },
4235 /* PREFIX_VEX_380D */
4237 { "(bad)", { XX
} },
4238 { "(bad)", { XX
} },
4239 { "vpermilpd", { XM
, Vex
, EXx
} },
4240 { "(bad)", { XX
} },
4243 /* PREFIX_VEX_380E */
4245 { "(bad)", { XX
} },
4246 { "(bad)", { XX
} },
4247 { "vtestps", { XM
, EXx
} },
4248 { "(bad)", { XX
} },
4251 /* PREFIX_VEX_380F */
4253 { "(bad)", { XX
} },
4254 { "(bad)", { XX
} },
4255 { "vtestpd", { XM
, EXx
} },
4256 { "(bad)", { XX
} },
4259 /* PREFIX_VEX_3817 */
4261 { "(bad)", { XX
} },
4262 { "(bad)", { XX
} },
4263 { "vptest", { XM
, EXx
} },
4264 { "(bad)", { XX
} },
4267 /* PREFIX_VEX_3818 */
4269 { "(bad)", { XX
} },
4270 { "(bad)", { XX
} },
4271 { MOD_TABLE (MOD_VEX_3818_PREFIX_2
) },
4272 { "(bad)", { XX
} },
4275 /* PREFIX_VEX_3819 */
4277 { "(bad)", { XX
} },
4278 { "(bad)", { XX
} },
4279 { MOD_TABLE (MOD_VEX_3819_PREFIX_2
) },
4280 { "(bad)", { XX
} },
4283 /* PREFIX_VEX_381A */
4285 { "(bad)", { XX
} },
4286 { "(bad)", { XX
} },
4287 { MOD_TABLE (MOD_VEX_381A_PREFIX_2
) },
4288 { "(bad)", { XX
} },
4291 /* PREFIX_VEX_381C */
4293 { "(bad)", { XX
} },
4294 { "(bad)", { XX
} },
4295 { VEX_LEN_TABLE (VEX_LEN_381C_P_2
) },
4296 { "(bad)", { XX
} },
4299 /* PREFIX_VEX_381D */
4301 { "(bad)", { XX
} },
4302 { "(bad)", { XX
} },
4303 { VEX_LEN_TABLE (VEX_LEN_381D_P_2
) },
4304 { "(bad)", { XX
} },
4307 /* PREFIX_VEX_381E */
4309 { "(bad)", { XX
} },
4310 { "(bad)", { XX
} },
4311 { VEX_LEN_TABLE (VEX_LEN_381E_P_2
) },
4312 { "(bad)", { XX
} },
4315 /* PREFIX_VEX_3820 */
4317 { "(bad)", { XX
} },
4318 { "(bad)", { XX
} },
4319 { VEX_LEN_TABLE (VEX_LEN_3820_P_2
) },
4320 { "(bad)", { XX
} },
4323 /* PREFIX_VEX_3821 */
4325 { "(bad)", { XX
} },
4326 { "(bad)", { XX
} },
4327 { VEX_LEN_TABLE (VEX_LEN_3821_P_2
) },
4328 { "(bad)", { XX
} },
4331 /* PREFIX_VEX_3822 */
4333 { "(bad)", { XX
} },
4334 { "(bad)", { XX
} },
4335 { VEX_LEN_TABLE (VEX_LEN_3822_P_2
) },
4336 { "(bad)", { XX
} },
4339 /* PREFIX_VEX_3823 */
4341 { "(bad)", { XX
} },
4342 { "(bad)", { XX
} },
4343 { VEX_LEN_TABLE (VEX_LEN_3823_P_2
) },
4344 { "(bad)", { XX
} },
4347 /* PREFIX_VEX_3824 */
4349 { "(bad)", { XX
} },
4350 { "(bad)", { XX
} },
4351 { VEX_LEN_TABLE (VEX_LEN_3824_P_2
) },
4352 { "(bad)", { XX
} },
4355 /* PREFIX_VEX_3825 */
4357 { "(bad)", { XX
} },
4358 { "(bad)", { XX
} },
4359 { VEX_LEN_TABLE (VEX_LEN_3825_P_2
) },
4360 { "(bad)", { XX
} },
4363 /* PREFIX_VEX_3828 */
4365 { "(bad)", { XX
} },
4366 { "(bad)", { XX
} },
4367 { VEX_LEN_TABLE (VEX_LEN_3828_P_2
) },
4368 { "(bad)", { XX
} },
4371 /* PREFIX_VEX_3829 */
4373 { "(bad)", { XX
} },
4374 { "(bad)", { XX
} },
4375 { VEX_LEN_TABLE (VEX_LEN_3829_P_2
) },
4376 { "(bad)", { XX
} },
4379 /* PREFIX_VEX_382A */
4381 { "(bad)", { XX
} },
4382 { "(bad)", { XX
} },
4383 { MOD_TABLE (MOD_VEX_382A_PREFIX_2
) },
4384 { "(bad)", { XX
} },
4387 /* PREFIX_VEX_382B */
4389 { "(bad)", { XX
} },
4390 { "(bad)", { XX
} },
4391 { VEX_LEN_TABLE (VEX_LEN_382B_P_2
) },
4392 { "(bad)", { XX
} },
4395 /* PREFIX_VEX_382C */
4397 { "(bad)", { XX
} },
4398 { "(bad)", { XX
} },
4399 { MOD_TABLE (MOD_VEX_382C_PREFIX_2
) },
4400 { "(bad)", { XX
} },
4403 /* PREFIX_VEX_382D */
4405 { "(bad)", { XX
} },
4406 { "(bad)", { XX
} },
4407 { MOD_TABLE (MOD_VEX_382D_PREFIX_2
) },
4408 { "(bad)", { XX
} },
4411 /* PREFIX_VEX_382E */
4413 { "(bad)", { XX
} },
4414 { "(bad)", { XX
} },
4415 { MOD_TABLE (MOD_VEX_382E_PREFIX_2
) },
4416 { "(bad)", { XX
} },
4419 /* PREFIX_VEX_382F */
4421 { "(bad)", { XX
} },
4422 { "(bad)", { XX
} },
4423 { MOD_TABLE (MOD_VEX_382F_PREFIX_2
) },
4424 { "(bad)", { XX
} },
4427 /* PREFIX_VEX_3830 */
4429 { "(bad)", { XX
} },
4430 { "(bad)", { XX
} },
4431 { VEX_LEN_TABLE (VEX_LEN_3830_P_2
) },
4432 { "(bad)", { XX
} },
4435 /* PREFIX_VEX_3831 */
4437 { "(bad)", { XX
} },
4438 { "(bad)", { XX
} },
4439 { VEX_LEN_TABLE (VEX_LEN_3831_P_2
) },
4440 { "(bad)", { XX
} },
4443 /* PREFIX_VEX_3832 */
4445 { "(bad)", { XX
} },
4446 { "(bad)", { XX
} },
4447 { VEX_LEN_TABLE (VEX_LEN_3832_P_2
) },
4448 { "(bad)", { XX
} },
4451 /* PREFIX_VEX_3833 */
4453 { "(bad)", { XX
} },
4454 { "(bad)", { XX
} },
4455 { VEX_LEN_TABLE (VEX_LEN_3833_P_2
) },
4456 { "(bad)", { XX
} },
4459 /* PREFIX_VEX_3834 */
4461 { "(bad)", { XX
} },
4462 { "(bad)", { XX
} },
4463 { VEX_LEN_TABLE (VEX_LEN_3834_P_2
) },
4464 { "(bad)", { XX
} },
4467 /* PREFIX_VEX_3835 */
4469 { "(bad)", { XX
} },
4470 { "(bad)", { XX
} },
4471 { VEX_LEN_TABLE (VEX_LEN_3835_P_2
) },
4472 { "(bad)", { XX
} },
4475 /* PREFIX_VEX_3837 */
4477 { "(bad)", { XX
} },
4478 { "(bad)", { XX
} },
4479 { VEX_LEN_TABLE (VEX_LEN_3837_P_2
) },
4480 { "(bad)", { XX
} },
4483 /* PREFIX_VEX_3838 */
4485 { "(bad)", { XX
} },
4486 { "(bad)", { XX
} },
4487 { VEX_LEN_TABLE (VEX_LEN_3838_P_2
) },
4488 { "(bad)", { XX
} },
4491 /* PREFIX_VEX_3839 */
4493 { "(bad)", { XX
} },
4494 { "(bad)", { XX
} },
4495 { VEX_LEN_TABLE (VEX_LEN_3839_P_2
) },
4496 { "(bad)", { XX
} },
4499 /* PREFIX_VEX_383A */
4501 { "(bad)", { XX
} },
4502 { "(bad)", { XX
} },
4503 { VEX_LEN_TABLE (VEX_LEN_383A_P_2
) },
4504 { "(bad)", { XX
} },
4507 /* PREFIX_VEX_383B */
4509 { "(bad)", { XX
} },
4510 { "(bad)", { XX
} },
4511 { VEX_LEN_TABLE (VEX_LEN_383B_P_2
) },
4512 { "(bad)", { XX
} },
4515 /* PREFIX_VEX_383C */
4517 { "(bad)", { XX
} },
4518 { "(bad)", { XX
} },
4519 { VEX_LEN_TABLE (VEX_LEN_383C_P_2
) },
4520 { "(bad)", { XX
} },
4523 /* PREFIX_VEX_383D */
4525 { "(bad)", { XX
} },
4526 { "(bad)", { XX
} },
4527 { VEX_LEN_TABLE (VEX_LEN_383D_P_2
) },
4528 { "(bad)", { XX
} },
4531 /* PREFIX_VEX_383E */
4533 { "(bad)", { XX
} },
4534 { "(bad)", { XX
} },
4535 { VEX_LEN_TABLE (VEX_LEN_383E_P_2
) },
4536 { "(bad)", { XX
} },
4539 /* PREFIX_VEX_383F */
4541 { "(bad)", { XX
} },
4542 { "(bad)", { XX
} },
4543 { VEX_LEN_TABLE (VEX_LEN_383F_P_2
) },
4544 { "(bad)", { XX
} },
4547 /* PREFIX_VEX_3840 */
4549 { "(bad)", { XX
} },
4550 { "(bad)", { XX
} },
4551 { VEX_LEN_TABLE (VEX_LEN_3840_P_2
) },
4552 { "(bad)", { XX
} },
4555 /* PREFIX_VEX_3841 */
4557 { "(bad)", { XX
} },
4558 { "(bad)", { XX
} },
4559 { VEX_LEN_TABLE (VEX_LEN_3841_P_2
) },
4560 { "(bad)", { XX
} },
4563 /* PREFIX_VEX_3896 */
4565 { "(bad)", { XX
} },
4566 { "(bad)", { XX
} },
4567 { "vfmaddsub132p%XW", { XM
, Vex
, EXx
} },
4568 { "(bad)", { XX
} },
4571 /* PREFIX_VEX_3897 */
4573 { "(bad)", { XX
} },
4574 { "(bad)", { XX
} },
4575 { "vfmsubadd132p%XW", { XM
, Vex
, EXx
} },
4576 { "(bad)", { XX
} },
4579 /* PREFIX_VEX_3898 */
4581 { "(bad)", { XX
} },
4582 { "(bad)", { XX
} },
4583 { "vfmadd132p%XW", { XM
, Vex
, EXx
} },
4584 { "(bad)", { XX
} },
4587 /* PREFIX_VEX_3899 */
4589 { "(bad)", { XX
} },
4590 { "(bad)", { XX
} },
4591 { "vfmadd132s%XW", { XM
, Vex
, EXVexWdq
} },
4592 { "(bad)", { XX
} },
4595 /* PREFIX_VEX_389A */
4597 { "(bad)", { XX
} },
4598 { "(bad)", { XX
} },
4599 { "vfmsub132p%XW", { XM
, Vex
, EXx
} },
4600 { "(bad)", { XX
} },
4603 /* PREFIX_VEX_389B */
4605 { "(bad)", { XX
} },
4606 { "(bad)", { XX
} },
4607 { "vfmsub132s%XW", { XM
, Vex
, EXVexWdq
} },
4608 { "(bad)", { XX
} },
4611 /* PREFIX_VEX_389C */
4613 { "(bad)", { XX
} },
4614 { "(bad)", { XX
} },
4615 { "vfnmadd132p%XW", { XM
, Vex
, EXx
} },
4616 { "(bad)", { XX
} },
4619 /* PREFIX_VEX_389D */
4621 { "(bad)", { XX
} },
4622 { "(bad)", { XX
} },
4623 { "vfnmadd132s%XW", { XM
, Vex
, EXVexWdq
} },
4624 { "(bad)", { XX
} },
4627 /* PREFIX_VEX_389E */
4629 { "(bad)", { XX
} },
4630 { "(bad)", { XX
} },
4631 { "vfnmsub132p%XW", { XM
, Vex
, EXx
} },
4632 { "(bad)", { XX
} },
4635 /* PREFIX_VEX_389F */
4637 { "(bad)", { XX
} },
4638 { "(bad)", { XX
} },
4639 { "vfnmsub132s%XW", { XM
, Vex
, EXVexWdq
} },
4640 { "(bad)", { XX
} },
4643 /* PREFIX_VEX_38A6 */
4645 { "(bad)", { XX
} },
4646 { "(bad)", { XX
} },
4647 { "vfmaddsub213p%XW", { XM
, Vex
, EXx
} },
4648 { "(bad)", { XX
} },
4651 /* PREFIX_VEX_38A7 */
4653 { "(bad)", { XX
} },
4654 { "(bad)", { XX
} },
4655 { "vfmsubadd213p%XW", { XM
, Vex
, EXx
} },
4656 { "(bad)", { XX
} },
4659 /* PREFIX_VEX_38A8 */
4661 { "(bad)", { XX
} },
4662 { "(bad)", { XX
} },
4663 { "vfmadd213p%XW", { XM
, Vex
, EXx
} },
4664 { "(bad)", { XX
} },
4667 /* PREFIX_VEX_38A9 */
4669 { "(bad)", { XX
} },
4670 { "(bad)", { XX
} },
4671 { "vfmadd213s%XW", { XM
, Vex
, EXVexWdq
} },
4672 { "(bad)", { XX
} },
4675 /* PREFIX_VEX_38AA */
4677 { "(bad)", { XX
} },
4678 { "(bad)", { XX
} },
4679 { "vfmsub213p%XW", { XM
, Vex
, EXx
} },
4680 { "(bad)", { XX
} },
4683 /* PREFIX_VEX_38AB */
4685 { "(bad)", { XX
} },
4686 { "(bad)", { XX
} },
4687 { "vfmsub213s%XW", { XM
, Vex
, EXVexWdq
} },
4688 { "(bad)", { XX
} },
4691 /* PREFIX_VEX_38AC */
4693 { "(bad)", { XX
} },
4694 { "(bad)", { XX
} },
4695 { "vfnmadd213p%XW", { XM
, Vex
, EXx
} },
4696 { "(bad)", { XX
} },
4699 /* PREFIX_VEX_38AD */
4701 { "(bad)", { XX
} },
4702 { "(bad)", { XX
} },
4703 { "vfnmadd213s%XW", { XM
, Vex
, EXVexWdq
} },
4704 { "(bad)", { XX
} },
4707 /* PREFIX_VEX_38AE */
4709 { "(bad)", { XX
} },
4710 { "(bad)", { XX
} },
4711 { "vfnmsub213p%XW", { XM
, Vex
, EXx
} },
4712 { "(bad)", { XX
} },
4715 /* PREFIX_VEX_38AF */
4717 { "(bad)", { XX
} },
4718 { "(bad)", { XX
} },
4719 { "vfnmsub213s%XW", { XM
, Vex
, EXVexWdq
} },
4720 { "(bad)", { XX
} },
4723 /* PREFIX_VEX_38B6 */
4725 { "(bad)", { XX
} },
4726 { "(bad)", { XX
} },
4727 { "vfmaddsub231p%XW", { XM
, Vex
, EXx
} },
4728 { "(bad)", { XX
} },
4731 /* PREFIX_VEX_38B7 */
4733 { "(bad)", { XX
} },
4734 { "(bad)", { XX
} },
4735 { "vfmsubadd231p%XW", { XM
, Vex
, EXx
} },
4736 { "(bad)", { XX
} },
4739 /* PREFIX_VEX_38B8 */
4741 { "(bad)", { XX
} },
4742 { "(bad)", { XX
} },
4743 { "vfmadd231p%XW", { XM
, Vex
, EXx
} },
4744 { "(bad)", { XX
} },
4747 /* PREFIX_VEX_38B9 */
4749 { "(bad)", { XX
} },
4750 { "(bad)", { XX
} },
4751 { "vfmadd231s%XW", { XM
, Vex
, EXVexWdq
} },
4752 { "(bad)", { XX
} },
4755 /* PREFIX_VEX_38BA */
4757 { "(bad)", { XX
} },
4758 { "(bad)", { XX
} },
4759 { "vfmsub231p%XW", { XM
, Vex
, EXx
} },
4760 { "(bad)", { XX
} },
4763 /* PREFIX_VEX_38BB */
4765 { "(bad)", { XX
} },
4766 { "(bad)", { XX
} },
4767 { "vfmsub231s%XW", { XM
, Vex
, EXVexWdq
} },
4768 { "(bad)", { XX
} },
4771 /* PREFIX_VEX_38BC */
4773 { "(bad)", { XX
} },
4774 { "(bad)", { XX
} },
4775 { "vfnmadd231p%XW", { XM
, Vex
, EXx
} },
4776 { "(bad)", { XX
} },
4779 /* PREFIX_VEX_38BD */
4781 { "(bad)", { XX
} },
4782 { "(bad)", { XX
} },
4783 { "vfnmadd231s%XW", { XM
, Vex
, EXVexWdq
} },
4784 { "(bad)", { XX
} },
4787 /* PREFIX_VEX_38BE */
4789 { "(bad)", { XX
} },
4790 { "(bad)", { XX
} },
4791 { "vfnmsub231p%XW", { XM
, Vex
, EXx
} },
4792 { "(bad)", { XX
} },
4795 /* PREFIX_VEX_38BF */
4797 { "(bad)", { XX
} },
4798 { "(bad)", { XX
} },
4799 { "vfnmsub231s%XW", { XM
, Vex
, EXVexWdq
} },
4800 { "(bad)", { XX
} },
4803 /* PREFIX_VEX_38DB */
4805 { "(bad)", { XX
} },
4806 { "(bad)", { XX
} },
4807 { VEX_LEN_TABLE (VEX_LEN_38DB_P_2
) },
4808 { "(bad)", { XX
} },
4811 /* PREFIX_VEX_38DC */
4813 { "(bad)", { XX
} },
4814 { "(bad)", { XX
} },
4815 { VEX_LEN_TABLE (VEX_LEN_38DC_P_2
) },
4816 { "(bad)", { XX
} },
4819 /* PREFIX_VEX_38DD */
4821 { "(bad)", { XX
} },
4822 { "(bad)", { XX
} },
4823 { VEX_LEN_TABLE (VEX_LEN_38DD_P_2
) },
4824 { "(bad)", { XX
} },
4827 /* PREFIX_VEX_38DE */
4829 { "(bad)", { XX
} },
4830 { "(bad)", { XX
} },
4831 { VEX_LEN_TABLE (VEX_LEN_38DE_P_2
) },
4832 { "(bad)", { XX
} },
4835 /* PREFIX_VEX_38DF */
4837 { "(bad)", { XX
} },
4838 { "(bad)", { XX
} },
4839 { VEX_LEN_TABLE (VEX_LEN_38DF_P_2
) },
4840 { "(bad)", { XX
} },
4843 /* PREFIX_VEX_3A04 */
4845 { "(bad)", { XX
} },
4846 { "(bad)", { XX
} },
4847 { "vpermilps", { XM
, EXx
, Ib
} },
4848 { "(bad)", { XX
} },
4851 /* PREFIX_VEX_3A05 */
4853 { "(bad)", { XX
} },
4854 { "(bad)", { XX
} },
4855 { "vpermilpd", { XM
, EXx
, Ib
} },
4856 { "(bad)", { XX
} },
4859 /* PREFIX_VEX_3A06 */
4861 { "(bad)", { XX
} },
4862 { "(bad)", { XX
} },
4863 { VEX_LEN_TABLE (VEX_LEN_3A06_P_2
) },
4864 { "(bad)", { XX
} },
4867 /* PREFIX_VEX_3A08 */
4869 { "(bad)", { XX
} },
4870 { "(bad)", { XX
} },
4871 { "vroundps", { XM
, EXx
, Ib
} },
4872 { "(bad)", { XX
} },
4875 /* PREFIX_VEX_3A09 */
4877 { "(bad)", { XX
} },
4878 { "(bad)", { XX
} },
4879 { "vroundpd", { XM
, EXx
, Ib
} },
4880 { "(bad)", { XX
} },
4883 /* PREFIX_VEX_3A0A */
4885 { "(bad)", { XX
} },
4886 { "(bad)", { XX
} },
4887 { VEX_LEN_TABLE (VEX_LEN_3A0A_P_2
) },
4888 { "(bad)", { XX
} },
4891 /* PREFIX_VEX_3A0B */
4893 { "(bad)", { XX
} },
4894 { "(bad)", { XX
} },
4895 { VEX_LEN_TABLE (VEX_LEN_3A0B_P_2
) },
4896 { "(bad)", { XX
} },
4899 /* PREFIX_VEX_3A0C */
4901 { "(bad)", { XX
} },
4902 { "(bad)", { XX
} },
4903 { "vblendps", { XM
, Vex
, EXx
, Ib
} },
4904 { "(bad)", { XX
} },
4907 /* PREFIX_VEX_3A0D */
4909 { "(bad)", { XX
} },
4910 { "(bad)", { XX
} },
4911 { "vblendpd", { XM
, Vex
, EXx
, Ib
} },
4912 { "(bad)", { XX
} },
4915 /* PREFIX_VEX_3A0E */
4917 { "(bad)", { XX
} },
4918 { "(bad)", { XX
} },
4919 { VEX_LEN_TABLE (VEX_LEN_3A0E_P_2
) },
4920 { "(bad)", { XX
} },
4923 /* PREFIX_VEX_3A0F */
4925 { "(bad)", { XX
} },
4926 { "(bad)", { XX
} },
4927 { VEX_LEN_TABLE (VEX_LEN_3A0F_P_2
) },
4928 { "(bad)", { XX
} },
4931 /* PREFIX_VEX_3A14 */
4933 { "(bad)", { XX
} },
4934 { "(bad)", { XX
} },
4935 { VEX_LEN_TABLE (VEX_LEN_3A14_P_2
) },
4936 { "(bad)", { XX
} },
4939 /* PREFIX_VEX_3A15 */
4941 { "(bad)", { XX
} },
4942 { "(bad)", { XX
} },
4943 { VEX_LEN_TABLE (VEX_LEN_3A15_P_2
) },
4944 { "(bad)", { XX
} },
4947 /* PREFIX_VEX_3A16 */
4949 { "(bad)", { XX
} },
4950 { "(bad)", { XX
} },
4951 { VEX_LEN_TABLE (VEX_LEN_3A16_P_2
) },
4952 { "(bad)", { XX
} },
4955 /* PREFIX_VEX_3A17 */
4957 { "(bad)", { XX
} },
4958 { "(bad)", { XX
} },
4959 { VEX_LEN_TABLE (VEX_LEN_3A17_P_2
) },
4960 { "(bad)", { XX
} },
4963 /* PREFIX_VEX_3A18 */
4965 { "(bad)", { XX
} },
4966 { "(bad)", { XX
} },
4967 { VEX_LEN_TABLE (VEX_LEN_3A18_P_2
) },
4968 { "(bad)", { XX
} },
4971 /* PREFIX_VEX_3A19 */
4973 { "(bad)", { XX
} },
4974 { "(bad)", { XX
} },
4975 { VEX_LEN_TABLE (VEX_LEN_3A19_P_2
) },
4976 { "(bad)", { XX
} },
4979 /* PREFIX_VEX_3A20 */
4981 { "(bad)", { XX
} },
4982 { "(bad)", { XX
} },
4983 { VEX_LEN_TABLE (VEX_LEN_3A20_P_2
) },
4984 { "(bad)", { XX
} },
4987 /* PREFIX_VEX_3A21 */
4989 { "(bad)", { XX
} },
4990 { "(bad)", { XX
} },
4991 { VEX_LEN_TABLE (VEX_LEN_3A21_P_2
) },
4992 { "(bad)", { XX
} },
4995 /* PREFIX_VEX_3A22 */
4997 { "(bad)", { XX
} },
4998 { "(bad)", { XX
} },
4999 { VEX_LEN_TABLE (VEX_LEN_3A22_P_2
) },
5000 { "(bad)", { XX
} },
5003 /* PREFIX_VEX_3A40 */
5005 { "(bad)", { XX
} },
5006 { "(bad)", { XX
} },
5007 { "vdpps", { XM
, Vex
, EXx
, Ib
} },
5008 { "(bad)", { XX
} },
5011 /* PREFIX_VEX_3A41 */
5013 { "(bad)", { XX
} },
5014 { "(bad)", { XX
} },
5015 { VEX_LEN_TABLE (VEX_LEN_3A41_P_2
) },
5016 { "(bad)", { XX
} },
5019 /* PREFIX_VEX_3A42 */
5021 { "(bad)", { XX
} },
5022 { "(bad)", { XX
} },
5023 { VEX_LEN_TABLE (VEX_LEN_3A42_P_2
) },
5024 { "(bad)", { XX
} },
5027 /* PREFIX_VEX_3A4A */
5029 { "(bad)", { XX
} },
5030 { "(bad)", { XX
} },
5031 { "vblendvps", { XM
, Vex
, EXx
, XMVexI4
} },
5032 { "(bad)", { XX
} },
5035 /* PREFIX_VEX_3A4B */
5037 { "(bad)", { XX
} },
5038 { "(bad)", { XX
} },
5039 { "vblendvpd", { XM
, Vex
, EXx
, XMVexI4
} },
5040 { "(bad)", { XX
} },
5043 /* PREFIX_VEX_3A4C */
5045 { "(bad)", { XX
} },
5046 { "(bad)", { XX
} },
5047 { VEX_LEN_TABLE (VEX_LEN_3A4C_P_2
) },
5048 { "(bad)", { XX
} },
5051 /* PREFIX_VEX_3A60 */
5053 { "(bad)", { XX
} },
5054 { "(bad)", { XX
} },
5055 { VEX_LEN_TABLE (VEX_LEN_3A60_P_2
) },
5056 { "(bad)", { XX
} },
5059 /* PREFIX_VEX_3A61 */
5061 { "(bad)", { XX
} },
5062 { "(bad)", { XX
} },
5063 { VEX_LEN_TABLE (VEX_LEN_3A61_P_2
) },
5064 { "(bad)", { XX
} },
5067 /* PREFIX_VEX_3A62 */
5069 { "(bad)", { XX
} },
5070 { "(bad)", { XX
} },
5071 { VEX_LEN_TABLE (VEX_LEN_3A62_P_2
) },
5072 { "(bad)", { XX
} },
5075 /* PREFIX_VEX_3A63 */
5077 { "(bad)", { XX
} },
5078 { "(bad)", { XX
} },
5079 { VEX_LEN_TABLE (VEX_LEN_3A63_P_2
) },
5080 { "(bad)", { XX
} },
5083 /* PREFIX_VEX_3ADF */
5085 { "(bad)", { XX
} },
5086 { "(bad)", { XX
} },
5087 { VEX_LEN_TABLE (VEX_LEN_3ADF_P_2
) },
5088 { "(bad)", { XX
} },
5092 static const struct dis386 x86_64_table
[][2] = {
5095 { "push{T|}", { es
} },
5096 { "(bad)", { XX
} },
5101 { "pop{T|}", { es
} },
5102 { "(bad)", { XX
} },
5107 { "push{T|}", { cs
} },
5108 { "(bad)", { XX
} },
5113 { "push{T|}", { ss
} },
5114 { "(bad)", { XX
} },
5119 { "pop{T|}", { ss
} },
5120 { "(bad)", { XX
} },
5125 { "push{T|}", { ds
} },
5126 { "(bad)", { XX
} },
5131 { "pop{T|}", { ds
} },
5132 { "(bad)", { XX
} },
5138 { "(bad)", { XX
} },
5144 { "(bad)", { XX
} },
5150 { "(bad)", { XX
} },
5156 { "(bad)", { XX
} },
5161 { "pusha{P|}", { XX
} },
5162 { "(bad)", { XX
} },
5167 { "popa{P|}", { XX
} },
5168 { "(bad)", { XX
} },
5173 { MOD_TABLE (MOD_62_32BIT
) },
5174 { "(bad)", { XX
} },
5179 { "arpl", { Ew
, Gw
} },
5180 { "movs{lq|xd}", { Gv
, Ed
} },
5185 { "ins{R|}", { Yzr
, indirDX
} },
5186 { "ins{G|}", { Yzr
, indirDX
} },
5191 { "outs{R|}", { indirDXr
, Xz
} },
5192 { "outs{G|}", { indirDXr
, Xz
} },
5197 { "Jcall{T|}", { Ap
} },
5198 { "(bad)", { XX
} },
5203 { MOD_TABLE (MOD_C4_32BIT
) },
5204 { VEX_C4_TABLE (VEX_0F
) },
5209 { MOD_TABLE (MOD_C5_32BIT
) },
5210 { VEX_C5_TABLE (VEX_0F
) },
5216 { "(bad)", { XX
} },
5222 { "(bad)", { XX
} },
5228 { "(bad)", { XX
} },
5233 { "Jjmp{T|}", { Ap
} },
5234 { "(bad)", { XX
} },
5237 /* X86_64_0F01_REG_0 */
5239 { "sgdt{Q|IQ}", { M
} },
5243 /* X86_64_0F01_REG_1 */
5245 { "sidt{Q|IQ}", { M
} },
5249 /* X86_64_0F01_REG_2 */
5251 { "lgdt{Q|Q}", { M
} },
5255 /* X86_64_0F01_REG_3 */
5257 { "lidt{Q|Q}", { M
} },
5262 static const struct dis386 three_byte_table
[][256] = {
5263 /* THREE_BYTE_0F24 */
5266 { "fmaddps", { { OP_DREX4
, q_mode
} } },
5267 { "fmaddpd", { { OP_DREX4
, q_mode
} } },
5268 { "fmaddss", { { OP_DREX4
, w_mode
} } },
5269 { "fmaddsd", { { OP_DREX4
, d_mode
} } },
5270 { "fmaddps", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5271 { "fmaddpd", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5272 { "fmaddss", { { OP_DREX4
, DREX_OC1
+ w_mode
} } },
5273 { "fmaddsd", { { OP_DREX4
, DREX_OC1
+ d_mode
} } },
5275 { "fmsubps", { { OP_DREX4
, q_mode
} } },
5276 { "fmsubpd", { { OP_DREX4
, q_mode
} } },
5277 { "fmsubss", { { OP_DREX4
, w_mode
} } },
5278 { "fmsubsd", { { OP_DREX4
, d_mode
} } },
5279 { "fmsubps", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5280 { "fmsubpd", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5281 { "fmsubss", { { OP_DREX4
, DREX_OC1
+ w_mode
} } },
5282 { "fmsubsd", { { OP_DREX4
, DREX_OC1
+ d_mode
} } },
5284 { "fnmaddps", { { OP_DREX4
, q_mode
} } },
5285 { "fnmaddpd", { { OP_DREX4
, q_mode
} } },
5286 { "fnmaddss", { { OP_DREX4
, w_mode
} } },
5287 { "fnmaddsd", { { OP_DREX4
, d_mode
} } },
5288 { "fnmaddps", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5289 { "fnmaddpd", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5290 { "fnmaddss", { { OP_DREX4
, DREX_OC1
+ w_mode
} } },
5291 { "fnmaddsd", { { OP_DREX4
, DREX_OC1
+ d_mode
} } },
5293 { "fnmsubps", { { OP_DREX4
, q_mode
} } },
5294 { "fnmsubpd", { { OP_DREX4
, q_mode
} } },
5295 { "fnmsubss", { { OP_DREX4
, w_mode
} } },
5296 { "fnmsubsd", { { OP_DREX4
, d_mode
} } },
5297 { "fnmsubps", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5298 { "fnmsubpd", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5299 { "fnmsubss", { { OP_DREX4
, DREX_OC1
+ w_mode
} } },
5300 { "fnmsubsd", { { OP_DREX4
, DREX_OC1
+ d_mode
} } },
5302 { "permps", { { OP_DREX4
, q_mode
} } },
5303 { "permpd", { { OP_DREX4
, q_mode
} } },
5304 { "pcmov", { { OP_DREX4
, q_mode
} } },
5305 { "pperm", { { OP_DREX4
, q_mode
} } },
5306 { "permps", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5307 { "permpd", { { OP_DREX4
, DREX_OC1
+ q_mode
} } },
5308 { "pcmov", { { OP_DREX4
, DREX_OC1
+ w_mode
} } },
5309 { "pperm", { { OP_DREX4
, DREX_OC1
+ d_mode
} } },
5311 { "(bad)", { XX
} },
5312 { "(bad)", { XX
} },
5313 { "(bad)", { XX
} },
5314 { "(bad)", { XX
} },
5315 { "(bad)", { XX
} },
5316 { "(bad)", { XX
} },
5317 { "(bad)", { XX
} },
5318 { "(bad)", { XX
} },
5320 { "(bad)", { XX
} },
5321 { "(bad)", { XX
} },
5322 { "(bad)", { XX
} },
5323 { "(bad)", { XX
} },
5324 { "(bad)", { XX
} },
5325 { "(bad)", { XX
} },
5326 { "(bad)", { XX
} },
5327 { "(bad)", { XX
} },
5329 { "(bad)", { XX
} },
5330 { "(bad)", { XX
} },
5331 { "(bad)", { XX
} },
5332 { "(bad)", { XX
} },
5333 { "(bad)", { XX
} },
5334 { "(bad)", { XX
} },
5335 { "(bad)", { XX
} },
5336 { "(bad)", { XX
} },
5338 { "protb", { { OP_DREX3
, q_mode
} } },
5339 { "protw", { { OP_DREX3
, q_mode
} } },
5340 { "protd", { { OP_DREX3
, q_mode
} } },
5341 { "protq", { { OP_DREX3
, q_mode
} } },
5342 { "pshlb", { { OP_DREX3
, q_mode
} } },
5343 { "pshlw", { { OP_DREX3
, q_mode
} } },
5344 { "pshld", { { OP_DREX3
, q_mode
} } },
5345 { "pshlq", { { OP_DREX3
, q_mode
} } },
5347 { "pshab", { { OP_DREX3
, q_mode
} } },
5348 { "pshaw", { { OP_DREX3
, q_mode
} } },
5349 { "pshad", { { OP_DREX3
, q_mode
} } },
5350 { "pshaq", { { OP_DREX3
, q_mode
} } },
5351 { "(bad)", { XX
} },
5352 { "(bad)", { XX
} },
5353 { "(bad)", { XX
} },
5354 { "(bad)", { XX
} },
5356 { "(bad)", { XX
} },
5357 { "(bad)", { XX
} },
5358 { "(bad)", { XX
} },
5359 { "(bad)", { XX
} },
5360 { "(bad)", { XX
} },
5361 { "(bad)", { XX
} },
5362 { "(bad)", { XX
} },
5363 { "(bad)", { XX
} },
5365 { "(bad)", { XX
} },
5366 { "(bad)", { XX
} },
5367 { "(bad)", { XX
} },
5368 { "(bad)", { XX
} },
5369 { "(bad)", { XX
} },
5370 { "(bad)", { XX
} },
5371 { "(bad)", { XX
} },
5372 { "(bad)", { XX
} },
5374 { "(bad)", { XX
} },
5375 { "(bad)", { XX
} },
5376 { "(bad)", { XX
} },
5377 { "(bad)", { XX
} },
5378 { "(bad)", { XX
} },
5379 { "(bad)", { XX
} },
5380 { "(bad)", { XX
} },
5381 { "(bad)", { XX
} },
5383 { "(bad)", { XX
} },
5384 { "(bad)", { XX
} },
5385 { "(bad)", { XX
} },
5386 { "(bad)", { XX
} },
5387 { "(bad)", { XX
} },
5388 { "(bad)", { XX
} },
5389 { "(bad)", { XX
} },
5390 { "(bad)", { XX
} },
5392 { "(bad)", { XX
} },
5393 { "(bad)", { XX
} },
5394 { "(bad)", { XX
} },
5395 { "(bad)", { XX
} },
5396 { "(bad)", { XX
} },
5397 { "(bad)", { XX
} },
5398 { "(bad)", { XX
} },
5399 { "(bad)", { XX
} },
5401 { "(bad)", { XX
} },
5402 { "(bad)", { XX
} },
5403 { "(bad)", { XX
} },
5404 { "(bad)", { XX
} },
5405 { "(bad)", { XX
} },
5406 { "(bad)", { XX
} },
5407 { "(bad)", { XX
} },
5408 { "(bad)", { XX
} },
5410 { "(bad)", { XX
} },
5411 { "(bad)", { XX
} },
5412 { "(bad)", { XX
} },
5413 { "(bad)", { XX
} },
5414 { "(bad)", { XX
} },
5415 { "pmacssww", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5416 { "pmacsswd", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5417 { "pmacssdql", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5419 { "(bad)", { XX
} },
5420 { "(bad)", { XX
} },
5421 { "(bad)", { XX
} },
5422 { "(bad)", { XX
} },
5423 { "(bad)", { XX
} },
5424 { "(bad)", { XX
} },
5425 { "pmacssdd", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5426 { "pmacssdqh", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5428 { "(bad)", { XX
} },
5429 { "(bad)", { XX
} },
5430 { "(bad)", { XX
} },
5431 { "(bad)", { XX
} },
5432 { "(bad)", { XX
} },
5433 { "pmacsww", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5434 { "pmacswd", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5435 { "pmacsdql", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5437 { "(bad)", { XX
} },
5438 { "(bad)", { XX
} },
5439 { "(bad)", { XX
} },
5440 { "(bad)", { XX
} },
5441 { "(bad)", { XX
} },
5442 { "(bad)", { XX
} },
5443 { "pmacsdd", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5444 { "pmacsdqh", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5446 { "(bad)", { XX
} },
5447 { "(bad)", { XX
} },
5448 { "(bad)", { XX
} },
5449 { "(bad)", { XX
} },
5450 { "(bad)", { XX
} },
5451 { "(bad)", { XX
} },
5452 { "pmadcsswd", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5453 { "(bad)", { XX
} },
5455 { "(bad)", { XX
} },
5456 { "(bad)", { XX
} },
5457 { "(bad)", { XX
} },
5458 { "(bad)", { XX
} },
5459 { "(bad)", { XX
} },
5460 { "(bad)", { XX
} },
5461 { "(bad)", { XX
} },
5462 { "(bad)", { XX
} },
5464 { "(bad)", { XX
} },
5465 { "(bad)", { XX
} },
5466 { "(bad)", { XX
} },
5467 { "(bad)", { XX
} },
5468 { "(bad)", { XX
} },
5469 { "(bad)", { XX
} },
5470 { "pmadcswd", { { OP_DREX4
, DREX_OC1
+ DREX_NO_OC0
+ q_mode
} } },
5471 { "(bad)", { XX
} },
5473 { "(bad)", { XX
} },
5474 { "(bad)", { XX
} },
5475 { "(bad)", { XX
} },
5476 { "(bad)", { XX
} },
5477 { "(bad)", { XX
} },
5478 { "(bad)", { XX
} },
5479 { "(bad)", { XX
} },
5480 { "(bad)", { XX
} },
5482 { "(bad)", { XX
} },
5483 { "(bad)", { XX
} },
5484 { "(bad)", { XX
} },
5485 { "(bad)", { XX
} },
5486 { "(bad)", { XX
} },
5487 { "(bad)", { XX
} },
5488 { "(bad)", { XX
} },
5489 { "(bad)", { XX
} },
5491 { "(bad)", { XX
} },
5492 { "(bad)", { XX
} },
5493 { "(bad)", { XX
} },
5494 { "(bad)", { XX
} },
5495 { "(bad)", { XX
} },
5496 { "(bad)", { XX
} },
5497 { "(bad)", { XX
} },
5498 { "(bad)", { XX
} },
5500 { "(bad)", { XX
} },
5501 { "(bad)", { XX
} },
5502 { "(bad)", { XX
} },
5503 { "(bad)", { XX
} },
5504 { "(bad)", { XX
} },
5505 { "(bad)", { XX
} },
5506 { "(bad)", { XX
} },
5507 { "(bad)", { XX
} },
5509 { "(bad)", { XX
} },
5510 { "(bad)", { XX
} },
5511 { "(bad)", { XX
} },
5512 { "(bad)", { XX
} },
5513 { "(bad)", { XX
} },
5514 { "(bad)", { XX
} },
5515 { "(bad)", { XX
} },
5516 { "(bad)", { XX
} },
5518 { "(bad)", { XX
} },
5519 { "(bad)", { XX
} },
5520 { "(bad)", { XX
} },
5521 { "(bad)", { XX
} },
5522 { "(bad)", { XX
} },
5523 { "(bad)", { XX
} },
5524 { "(bad)", { XX
} },
5525 { "(bad)", { XX
} },
5527 { "(bad)", { XX
} },
5528 { "(bad)", { XX
} },
5529 { "(bad)", { XX
} },
5530 { "(bad)", { XX
} },
5531 { "(bad)", { XX
} },
5532 { "(bad)", { XX
} },
5533 { "(bad)", { XX
} },
5534 { "(bad)", { XX
} },
5536 { "(bad)", { XX
} },
5537 { "(bad)", { XX
} },
5538 { "(bad)", { XX
} },
5539 { "(bad)", { XX
} },
5540 { "(bad)", { XX
} },
5541 { "(bad)", { XX
} },
5542 { "(bad)", { XX
} },
5543 { "(bad)", { XX
} },
5545 { "(bad)", { XX
} },
5546 { "(bad)", { XX
} },
5547 { "(bad)", { XX
} },
5548 { "(bad)", { XX
} },
5549 { "(bad)", { XX
} },
5550 { "(bad)", { XX
} },
5551 { "(bad)", { XX
} },
5552 { "(bad)", { XX
} },
5554 /* THREE_BYTE_0F25 */
5557 { "(bad)", { XX
} },
5558 { "(bad)", { XX
} },
5559 { "(bad)", { XX
} },
5560 { "(bad)", { XX
} },
5561 { "(bad)", { XX
} },
5562 { "(bad)", { XX
} },
5563 { "(bad)", { XX
} },
5564 { "(bad)", { XX
} },
5566 { "(bad)", { XX
} },
5567 { "(bad)", { XX
} },
5568 { "(bad)", { XX
} },
5569 { "(bad)", { XX
} },
5570 { "(bad)", { XX
} },
5571 { "(bad)", { XX
} },
5572 { "(bad)", { XX
} },
5573 { "(bad)", { XX
} },
5575 { "(bad)", { XX
} },
5576 { "(bad)", { XX
} },
5577 { "(bad)", { XX
} },
5578 { "(bad)", { XX
} },
5579 { "(bad)", { XX
} },
5580 { "(bad)", { XX
} },
5581 { "(bad)", { XX
} },
5582 { "(bad)", { XX
} },
5584 { "(bad)", { XX
} },
5585 { "(bad)", { XX
} },
5586 { "(bad)", { XX
} },
5587 { "(bad)", { XX
} },
5588 { "(bad)", { XX
} },
5589 { "(bad)", { XX
} },
5590 { "(bad)", { XX
} },
5591 { "(bad)", { XX
} },
5593 { "(bad)", { XX
} },
5594 { "(bad)", { XX
} },
5595 { "(bad)", { XX
} },
5596 { "(bad)", { XX
} },
5597 { "(bad)", { XX
} },
5598 { "(bad)", { XX
} },
5599 { "(bad)", { XX
} },
5600 { "(bad)", { XX
} },
5602 { "(bad)", { XX
} },
5603 { "(bad)", { XX
} },
5604 { "(bad)", { XX
} },
5605 { "(bad)", { XX
} },
5606 { "comps", { { OP_DREX3
, q_mode
}, { OP_DREX_FCMP
, b_mode
} } },
5607 { "compd", { { OP_DREX3
, q_mode
}, { OP_DREX_FCMP
, b_mode
} } },
5608 { "comss", { { OP_DREX3
, w_mode
}, { OP_DREX_FCMP
, b_mode
} } },
5609 { "comsd", { { OP_DREX3
, d_mode
}, { OP_DREX_FCMP
, b_mode
} } },
5611 { "(bad)", { XX
} },
5612 { "(bad)", { XX
} },
5613 { "(bad)", { XX
} },
5614 { "(bad)", { XX
} },
5615 { "(bad)", { XX
} },
5616 { "(bad)", { XX
} },
5617 { "(bad)", { XX
} },
5618 { "(bad)", { XX
} },
5620 { "(bad)", { XX
} },
5621 { "(bad)", { XX
} },
5622 { "(bad)", { XX
} },
5623 { "(bad)", { XX
} },
5624 { "(bad)", { XX
} },
5625 { "(bad)", { XX
} },
5626 { "(bad)", { XX
} },
5627 { "(bad)", { XX
} },
5629 { "(bad)", { XX
} },
5630 { "(bad)", { XX
} },
5631 { "(bad)", { XX
} },
5632 { "(bad)", { XX
} },
5633 { "(bad)", { XX
} },
5634 { "(bad)", { XX
} },
5635 { "(bad)", { XX
} },
5636 { "(bad)", { XX
} },
5638 { "(bad)", { XX
} },
5639 { "(bad)", { XX
} },
5640 { "(bad)", { XX
} },
5641 { "(bad)", { XX
} },
5642 { "pcomb", { { OP_DREX3
, q_mode
}, { OP_DREX_ICMP
, b_mode
} } },
5643 { "pcomw", { { OP_DREX3
, q_mode
}, { OP_DREX_ICMP
, b_mode
} } },
5644 { "pcomd", { { OP_DREX3
, q_mode
}, { OP_DREX_ICMP
, b_mode
} } },
5645 { "pcomq", { { OP_DREX3
, q_mode
}, { OP_DREX_ICMP
, b_mode
} } },
5647 { "(bad)", { XX
} },
5648 { "(bad)", { XX
} },
5649 { "(bad)", { XX
} },
5650 { "(bad)", { XX
} },
5651 { "(bad)", { XX
} },
5652 { "(bad)", { XX
} },
5653 { "(bad)", { XX
} },
5654 { "(bad)", { XX
} },
5656 { "(bad)", { XX
} },
5657 { "(bad)", { XX
} },
5658 { "(bad)", { XX
} },
5659 { "(bad)", { XX
} },
5660 { "(bad)", { XX
} },
5661 { "(bad)", { XX
} },
5662 { "(bad)", { XX
} },
5663 { "(bad)", { XX
} },
5665 { "(bad)", { XX
} },
5666 { "(bad)", { XX
} },
5667 { "(bad)", { XX
} },
5668 { "(bad)", { XX
} },
5669 { "(bad)", { XX
} },
5670 { "(bad)", { XX
} },
5671 { "(bad)", { XX
} },
5672 { "(bad)", { XX
} },
5674 { "(bad)", { XX
} },
5675 { "(bad)", { XX
} },
5676 { "(bad)", { XX
} },
5677 { "(bad)", { XX
} },
5678 { "pcomub", { { OP_DREX3
, q_mode
}, { OP_DREX_ICMP
, b_mode
} } },
5679 { "pcomuw", { { OP_DREX3
, q_mode
}, { OP_DREX_ICMP
, b_mode
} } },
5680 { "pcomud", { { OP_DREX3
, q_mode
}, { OP_DREX_ICMP
, b_mode
} } },
5681 { "pcomuq", { { OP_DREX3
, q_mode
}, { OP_DREX_ICMP
, b_mode
} } },
5683 { "(bad)", { XX
} },
5684 { "(bad)", { XX
} },
5685 { "(bad)", { XX
} },
5686 { "(bad)", { XX
} },
5687 { "(bad)", { XX
} },
5688 { "(bad)", { XX
} },
5689 { "(bad)", { XX
} },
5690 { "(bad)", { XX
} },
5692 { "(bad)", { XX
} },
5693 { "(bad)", { XX
} },
5694 { "(bad)", { XX
} },
5695 { "(bad)", { XX
} },
5696 { "(bad)", { XX
} },
5697 { "(bad)", { XX
} },
5698 { "(bad)", { XX
} },
5699 { "(bad)", { XX
} },
5701 { "(bad)", { XX
} },
5702 { "(bad)", { XX
} },
5703 { "(bad)", { XX
} },
5704 { "(bad)", { XX
} },
5705 { "(bad)", { XX
} },
5706 { "(bad)", { XX
} },
5707 { "(bad)", { XX
} },
5708 { "(bad)", { XX
} },
5710 { "(bad)", { XX
} },
5711 { "(bad)", { XX
} },
5712 { "(bad)", { XX
} },
5713 { "(bad)", { XX
} },
5714 { "(bad)", { XX
} },
5715 { "(bad)", { XX
} },
5716 { "(bad)", { XX
} },
5717 { "(bad)", { XX
} },
5719 { "(bad)", { XX
} },
5720 { "(bad)", { XX
} },
5721 { "(bad)", { XX
} },
5722 { "(bad)", { XX
} },
5723 { "(bad)", { XX
} },
5724 { "(bad)", { XX
} },
5725 { "(bad)", { XX
} },
5726 { "(bad)", { XX
} },
5728 { "(bad)", { XX
} },
5729 { "(bad)", { XX
} },
5730 { "(bad)", { XX
} },
5731 { "(bad)", { XX
} },
5732 { "(bad)", { XX
} },
5733 { "(bad)", { XX
} },
5734 { "(bad)", { XX
} },
5735 { "(bad)", { XX
} },
5737 { "(bad)", { XX
} },
5738 { "(bad)", { XX
} },
5739 { "(bad)", { XX
} },
5740 { "(bad)", { XX
} },
5741 { "(bad)", { XX
} },
5742 { "(bad)", { XX
} },
5743 { "(bad)", { XX
} },
5744 { "(bad)", { XX
} },
5746 { "(bad)", { XX
} },
5747 { "(bad)", { XX
} },
5748 { "(bad)", { XX
} },
5749 { "(bad)", { XX
} },
5750 { "(bad)", { XX
} },
5751 { "(bad)", { XX
} },
5752 { "(bad)", { XX
} },
5753 { "(bad)", { XX
} },
5755 { "(bad)", { XX
} },
5756 { "(bad)", { XX
} },
5757 { "(bad)", { XX
} },
5758 { "(bad)", { XX
} },
5759 { "(bad)", { XX
} },
5760 { "(bad)", { XX
} },
5761 { "(bad)", { XX
} },
5762 { "(bad)", { XX
} },
5764 { "(bad)", { XX
} },
5765 { "(bad)", { XX
} },
5766 { "(bad)", { XX
} },
5767 { "(bad)", { XX
} },
5768 { "(bad)", { XX
} },
5769 { "(bad)", { XX
} },
5770 { "(bad)", { XX
} },
5771 { "(bad)", { XX
} },
5773 { "(bad)", { XX
} },
5774 { "(bad)", { XX
} },
5775 { "(bad)", { XX
} },
5776 { "(bad)", { XX
} },
5777 { "(bad)", { XX
} },
5778 { "(bad)", { XX
} },
5779 { "(bad)", { XX
} },
5780 { "(bad)", { XX
} },
5782 { "(bad)", { XX
} },
5783 { "(bad)", { XX
} },
5784 { "(bad)", { XX
} },
5785 { "(bad)", { XX
} },
5786 { "(bad)", { XX
} },
5787 { "(bad)", { XX
} },
5788 { "(bad)", { XX
} },
5789 { "(bad)", { XX
} },
5791 { "(bad)", { XX
} },
5792 { "(bad)", { XX
} },
5793 { "(bad)", { XX
} },
5794 { "(bad)", { XX
} },
5795 { "(bad)", { XX
} },
5796 { "(bad)", { XX
} },
5797 { "(bad)", { XX
} },
5798 { "(bad)", { XX
} },
5800 { "(bad)", { XX
} },
5801 { "(bad)", { XX
} },
5802 { "(bad)", { XX
} },
5803 { "(bad)", { XX
} },
5804 { "(bad)", { XX
} },
5805 { "(bad)", { XX
} },
5806 { "(bad)", { XX
} },
5807 { "(bad)", { XX
} },
5809 { "(bad)", { XX
} },
5810 { "(bad)", { XX
} },
5811 { "(bad)", { XX
} },
5812 { "(bad)", { XX
} },
5813 { "(bad)", { XX
} },
5814 { "(bad)", { XX
} },
5815 { "(bad)", { XX
} },
5816 { "(bad)", { XX
} },
5818 { "(bad)", { XX
} },
5819 { "(bad)", { XX
} },
5820 { "(bad)", { XX
} },
5821 { "(bad)", { XX
} },
5822 { "(bad)", { XX
} },
5823 { "(bad)", { XX
} },
5824 { "(bad)", { XX
} },
5825 { "(bad)", { XX
} },
5827 { "(bad)", { XX
} },
5828 { "(bad)", { XX
} },
5829 { "(bad)", { XX
} },
5830 { "(bad)", { XX
} },
5831 { "(bad)", { XX
} },
5832 { "(bad)", { XX
} },
5833 { "(bad)", { XX
} },
5834 { "(bad)", { XX
} },
5836 { "(bad)", { XX
} },
5837 { "(bad)", { XX
} },
5838 { "(bad)", { XX
} },
5839 { "(bad)", { XX
} },
5840 { "(bad)", { XX
} },
5841 { "(bad)", { XX
} },
5842 { "(bad)", { XX
} },
5843 { "(bad)", { XX
} },
5845 /* THREE_BYTE_0F38 */
5848 { "pshufb", { MX
, EM
} },
5849 { "phaddw", { MX
, EM
} },
5850 { "phaddd", { MX
, EM
} },
5851 { "phaddsw", { MX
, EM
} },
5852 { "pmaddubsw", { MX
, EM
} },
5853 { "phsubw", { MX
, EM
} },
5854 { "phsubd", { MX
, EM
} },
5855 { "phsubsw", { MX
, EM
} },
5857 { "psignb", { MX
, EM
} },
5858 { "psignw", { MX
, EM
} },
5859 { "psignd", { MX
, EM
} },
5860 { "pmulhrsw", { MX
, EM
} },
5861 { "(bad)", { XX
} },
5862 { "(bad)", { XX
} },
5863 { "(bad)", { XX
} },
5864 { "(bad)", { XX
} },
5866 { PREFIX_TABLE (PREFIX_0F3810
) },
5867 { "(bad)", { XX
} },
5868 { "(bad)", { XX
} },
5869 { "(bad)", { XX
} },
5870 { PREFIX_TABLE (PREFIX_0F3814
) },
5871 { PREFIX_TABLE (PREFIX_0F3815
) },
5872 { "(bad)", { XX
} },
5873 { PREFIX_TABLE (PREFIX_0F3817
) },
5875 { "(bad)", { XX
} },
5876 { "(bad)", { XX
} },
5877 { "(bad)", { XX
} },
5878 { "(bad)", { XX
} },
5879 { "pabsb", { MX
, EM
} },
5880 { "pabsw", { MX
, EM
} },
5881 { "pabsd", { MX
, EM
} },
5882 { "(bad)", { XX
} },
5884 { PREFIX_TABLE (PREFIX_0F3820
) },
5885 { PREFIX_TABLE (PREFIX_0F3821
) },
5886 { PREFIX_TABLE (PREFIX_0F3822
) },
5887 { PREFIX_TABLE (PREFIX_0F3823
) },
5888 { PREFIX_TABLE (PREFIX_0F3824
) },
5889 { PREFIX_TABLE (PREFIX_0F3825
) },
5890 { "(bad)", { XX
} },
5891 { "(bad)", { XX
} },
5893 { PREFIX_TABLE (PREFIX_0F3828
) },
5894 { PREFIX_TABLE (PREFIX_0F3829
) },
5895 { PREFIX_TABLE (PREFIX_0F382A
) },
5896 { PREFIX_TABLE (PREFIX_0F382B
) },
5897 { "(bad)", { XX
} },
5898 { "(bad)", { XX
} },
5899 { "(bad)", { XX
} },
5900 { "(bad)", { XX
} },
5902 { PREFIX_TABLE (PREFIX_0F3830
) },
5903 { PREFIX_TABLE (PREFIX_0F3831
) },
5904 { PREFIX_TABLE (PREFIX_0F3832
) },
5905 { PREFIX_TABLE (PREFIX_0F3833
) },
5906 { PREFIX_TABLE (PREFIX_0F3834
) },
5907 { PREFIX_TABLE (PREFIX_0F3835
) },
5908 { "(bad)", { XX
} },
5909 { PREFIX_TABLE (PREFIX_0F3837
) },
5911 { PREFIX_TABLE (PREFIX_0F3838
) },
5912 { PREFIX_TABLE (PREFIX_0F3839
) },
5913 { PREFIX_TABLE (PREFIX_0F383A
) },
5914 { PREFIX_TABLE (PREFIX_0F383B
) },
5915 { PREFIX_TABLE (PREFIX_0F383C
) },
5916 { PREFIX_TABLE (PREFIX_0F383D
) },
5917 { PREFIX_TABLE (PREFIX_0F383E
) },
5918 { PREFIX_TABLE (PREFIX_0F383F
) },
5920 { PREFIX_TABLE (PREFIX_0F3840
) },
5921 { PREFIX_TABLE (PREFIX_0F3841
) },
5922 { "(bad)", { XX
} },
5923 { "(bad)", { XX
} },
5924 { "(bad)", { XX
} },
5925 { "(bad)", { XX
} },
5926 { "(bad)", { XX
} },
5927 { "(bad)", { XX
} },
5929 { "(bad)", { XX
} },
5930 { "(bad)", { XX
} },
5931 { "(bad)", { XX
} },
5932 { "(bad)", { XX
} },
5933 { "(bad)", { XX
} },
5934 { "(bad)", { XX
} },
5935 { "(bad)", { XX
} },
5936 { "(bad)", { XX
} },
5938 { "(bad)", { XX
} },
5939 { "(bad)", { XX
} },
5940 { "(bad)", { XX
} },
5941 { "(bad)", { XX
} },
5942 { "(bad)", { XX
} },
5943 { "(bad)", { XX
} },
5944 { "(bad)", { XX
} },
5945 { "(bad)", { XX
} },
5947 { "(bad)", { XX
} },
5948 { "(bad)", { XX
} },
5949 { "(bad)", { XX
} },
5950 { "(bad)", { XX
} },
5951 { "(bad)", { XX
} },
5952 { "(bad)", { XX
} },
5953 { "(bad)", { XX
} },
5954 { "(bad)", { XX
} },
5956 { "(bad)", { XX
} },
5957 { "(bad)", { XX
} },
5958 { "(bad)", { XX
} },
5959 { "(bad)", { XX
} },
5960 { "(bad)", { XX
} },
5961 { "(bad)", { XX
} },
5962 { "(bad)", { XX
} },
5963 { "(bad)", { XX
} },
5965 { "(bad)", { XX
} },
5966 { "(bad)", { XX
} },
5967 { "(bad)", { XX
} },
5968 { "(bad)", { XX
} },
5969 { "(bad)", { XX
} },
5970 { "(bad)", { XX
} },
5971 { "(bad)", { XX
} },
5972 { "(bad)", { XX
} },
5974 { "(bad)", { XX
} },
5975 { "(bad)", { XX
} },
5976 { "(bad)", { XX
} },
5977 { "(bad)", { XX
} },
5978 { "(bad)", { XX
} },
5979 { "(bad)", { XX
} },
5980 { "(bad)", { XX
} },
5981 { "(bad)", { XX
} },
5983 { "(bad)", { XX
} },
5984 { "(bad)", { XX
} },
5985 { "(bad)", { XX
} },
5986 { "(bad)", { XX
} },
5987 { "(bad)", { XX
} },
5988 { "(bad)", { XX
} },
5989 { "(bad)", { XX
} },
5990 { "(bad)", { XX
} },
5992 { PREFIX_TABLE (PREFIX_0F3880
) },
5993 { PREFIX_TABLE (PREFIX_0F3881
) },
5994 { "(bad)", { XX
} },
5995 { "(bad)", { XX
} },
5996 { "(bad)", { XX
} },
5997 { "(bad)", { XX
} },
5998 { "(bad)", { XX
} },
5999 { "(bad)", { XX
} },
6001 { "(bad)", { XX
} },
6002 { "(bad)", { XX
} },
6003 { "(bad)", { XX
} },
6004 { "(bad)", { XX
} },
6005 { "(bad)", { XX
} },
6006 { "(bad)", { XX
} },
6007 { "(bad)", { XX
} },
6008 { "(bad)", { XX
} },
6010 { "(bad)", { XX
} },
6011 { "(bad)", { XX
} },
6012 { "(bad)", { XX
} },
6013 { "(bad)", { XX
} },
6014 { "(bad)", { XX
} },
6015 { "(bad)", { XX
} },
6016 { "(bad)", { XX
} },
6017 { "(bad)", { XX
} },
6019 { "(bad)", { XX
} },
6020 { "(bad)", { XX
} },
6021 { "(bad)", { XX
} },
6022 { "(bad)", { XX
} },
6023 { "(bad)", { XX
} },
6024 { "(bad)", { XX
} },
6025 { "(bad)", { XX
} },
6026 { "(bad)", { XX
} },
6028 { "(bad)", { XX
} },
6029 { "(bad)", { XX
} },
6030 { "(bad)", { XX
} },
6031 { "(bad)", { XX
} },
6032 { "(bad)", { XX
} },
6033 { "(bad)", { XX
} },
6034 { "(bad)", { XX
} },
6035 { "(bad)", { XX
} },
6037 { "(bad)", { XX
} },
6038 { "(bad)", { XX
} },
6039 { "(bad)", { XX
} },
6040 { "(bad)", { XX
} },
6041 { "(bad)", { XX
} },
6042 { "(bad)", { XX
} },
6043 { "(bad)", { XX
} },
6044 { "(bad)", { XX
} },
6046 { "(bad)", { XX
} },
6047 { "(bad)", { XX
} },
6048 { "(bad)", { XX
} },
6049 { "(bad)", { XX
} },
6050 { "(bad)", { XX
} },
6051 { "(bad)", { XX
} },
6052 { "(bad)", { XX
} },
6053 { "(bad)", { XX
} },
6055 { "(bad)", { XX
} },
6056 { "(bad)", { XX
} },
6057 { "(bad)", { XX
} },
6058 { "(bad)", { XX
} },
6059 { "(bad)", { XX
} },
6060 { "(bad)", { XX
} },
6061 { "(bad)", { XX
} },
6062 { "(bad)", { XX
} },
6064 { "(bad)", { XX
} },
6065 { "(bad)", { XX
} },
6066 { "(bad)", { XX
} },
6067 { "(bad)", { XX
} },
6068 { "(bad)", { XX
} },
6069 { "(bad)", { XX
} },
6070 { "(bad)", { XX
} },
6071 { "(bad)", { XX
} },
6073 { "(bad)", { XX
} },
6074 { "(bad)", { XX
} },
6075 { "(bad)", { XX
} },
6076 { "(bad)", { XX
} },
6077 { "(bad)", { XX
} },
6078 { "(bad)", { XX
} },
6079 { "(bad)", { XX
} },
6080 { "(bad)", { XX
} },
6082 { "(bad)", { XX
} },
6083 { "(bad)", { XX
} },
6084 { "(bad)", { XX
} },
6085 { "(bad)", { XX
} },
6086 { "(bad)", { XX
} },
6087 { "(bad)", { XX
} },
6088 { "(bad)", { XX
} },
6089 { "(bad)", { XX
} },
6091 { "(bad)", { XX
} },
6092 { "(bad)", { XX
} },
6093 { "(bad)", { XX
} },
6094 { PREFIX_TABLE (PREFIX_0F38DB
) },
6095 { PREFIX_TABLE (PREFIX_0F38DC
) },
6096 { PREFIX_TABLE (PREFIX_0F38DD
) },
6097 { PREFIX_TABLE (PREFIX_0F38DE
) },
6098 { PREFIX_TABLE (PREFIX_0F38DF
) },
6100 { "(bad)", { XX
} },
6101 { "(bad)", { XX
} },
6102 { "(bad)", { XX
} },
6103 { "(bad)", { XX
} },
6104 { "(bad)", { XX
} },
6105 { "(bad)", { XX
} },
6106 { "(bad)", { XX
} },
6107 { "(bad)", { XX
} },
6109 { "(bad)", { XX
} },
6110 { "(bad)", { XX
} },
6111 { "(bad)", { XX
} },
6112 { "(bad)", { XX
} },
6113 { "(bad)", { XX
} },
6114 { "(bad)", { XX
} },
6115 { "(bad)", { XX
} },
6116 { "(bad)", { XX
} },
6118 { PREFIX_TABLE (PREFIX_0F38F0
) },
6119 { PREFIX_TABLE (PREFIX_0F38F1
) },
6120 { "(bad)", { XX
} },
6121 { "(bad)", { XX
} },
6122 { "(bad)", { XX
} },
6123 { "(bad)", { XX
} },
6124 { "(bad)", { XX
} },
6125 { "(bad)", { XX
} },
6127 { "(bad)", { XX
} },
6128 { "(bad)", { XX
} },
6129 { "(bad)", { XX
} },
6130 { "(bad)", { XX
} },
6131 { "(bad)", { XX
} },
6132 { "(bad)", { XX
} },
6133 { "(bad)", { XX
} },
6134 { "(bad)", { XX
} },
6136 /* THREE_BYTE_0F3A */
6139 { "(bad)", { XX
} },
6140 { "(bad)", { XX
} },
6141 { "(bad)", { XX
} },
6142 { "(bad)", { XX
} },
6143 { "(bad)", { XX
} },
6144 { "(bad)", { XX
} },
6145 { "(bad)", { XX
} },
6146 { "(bad)", { XX
} },
6148 { PREFIX_TABLE (PREFIX_0F3A08
) },
6149 { PREFIX_TABLE (PREFIX_0F3A09
) },
6150 { PREFIX_TABLE (PREFIX_0F3A0A
) },
6151 { PREFIX_TABLE (PREFIX_0F3A0B
) },
6152 { PREFIX_TABLE (PREFIX_0F3A0C
) },
6153 { PREFIX_TABLE (PREFIX_0F3A0D
) },
6154 { PREFIX_TABLE (PREFIX_0F3A0E
) },
6155 { "palignr", { MX
, EM
, Ib
} },
6157 { "(bad)", { XX
} },
6158 { "(bad)", { XX
} },
6159 { "(bad)", { XX
} },
6160 { "(bad)", { XX
} },
6161 { PREFIX_TABLE (PREFIX_0F3A14
) },
6162 { PREFIX_TABLE (PREFIX_0F3A15
) },
6163 { PREFIX_TABLE (PREFIX_0F3A16
) },
6164 { PREFIX_TABLE (PREFIX_0F3A17
) },
6166 { "(bad)", { XX
} },
6167 { "(bad)", { XX
} },
6168 { "(bad)", { XX
} },
6169 { "(bad)", { XX
} },
6170 { "(bad)", { XX
} },
6171 { "(bad)", { XX
} },
6172 { "(bad)", { XX
} },
6173 { "(bad)", { XX
} },
6175 { PREFIX_TABLE (PREFIX_0F3A20
) },
6176 { PREFIX_TABLE (PREFIX_0F3A21
) },
6177 { PREFIX_TABLE (PREFIX_0F3A22
) },
6178 { "(bad)", { XX
} },
6179 { "(bad)", { XX
} },
6180 { "(bad)", { XX
} },
6181 { "(bad)", { XX
} },
6182 { "(bad)", { XX
} },
6184 { "(bad)", { XX
} },
6185 { "(bad)", { XX
} },
6186 { "(bad)", { XX
} },
6187 { "(bad)", { XX
} },
6188 { "(bad)", { XX
} },
6189 { "(bad)", { XX
} },
6190 { "(bad)", { XX
} },
6191 { "(bad)", { XX
} },
6193 { "(bad)", { XX
} },
6194 { "(bad)", { XX
} },
6195 { "(bad)", { XX
} },
6196 { "(bad)", { XX
} },
6197 { "(bad)", { XX
} },
6198 { "(bad)", { XX
} },
6199 { "(bad)", { XX
} },
6200 { "(bad)", { XX
} },
6202 { "(bad)", { XX
} },
6203 { "(bad)", { XX
} },
6204 { "(bad)", { XX
} },
6205 { "(bad)", { XX
} },
6206 { "(bad)", { XX
} },
6207 { "(bad)", { XX
} },
6208 { "(bad)", { XX
} },
6209 { "(bad)", { XX
} },
6211 { PREFIX_TABLE (PREFIX_0F3A40
) },
6212 { PREFIX_TABLE (PREFIX_0F3A41
) },
6213 { PREFIX_TABLE (PREFIX_0F3A42
) },
6214 { "(bad)", { XX
} },
6215 { PREFIX_TABLE (PREFIX_0F3A44
) },
6216 { "(bad)", { XX
} },
6217 { "(bad)", { XX
} },
6218 { "(bad)", { XX
} },
6220 { "(bad)", { XX
} },
6221 { "(bad)", { XX
} },
6222 { "(bad)", { XX
} },
6223 { "(bad)", { XX
} },
6224 { "(bad)", { XX
} },
6225 { "(bad)", { XX
} },
6226 { "(bad)", { XX
} },
6227 { "(bad)", { XX
} },
6229 { "(bad)", { XX
} },
6230 { "(bad)", { XX
} },
6231 { "(bad)", { XX
} },
6232 { "(bad)", { XX
} },
6233 { "(bad)", { XX
} },
6234 { "(bad)", { XX
} },
6235 { "(bad)", { XX
} },
6236 { "(bad)", { XX
} },
6238 { "(bad)", { XX
} },
6239 { "(bad)", { XX
} },
6240 { "(bad)", { XX
} },
6241 { "(bad)", { XX
} },
6242 { "(bad)", { XX
} },
6243 { "(bad)", { XX
} },
6244 { "(bad)", { XX
} },
6245 { "(bad)", { XX
} },
6247 { PREFIX_TABLE (PREFIX_0F3A60
) },
6248 { PREFIX_TABLE (PREFIX_0F3A61
) },
6249 { PREFIX_TABLE (PREFIX_0F3A62
) },
6250 { PREFIX_TABLE (PREFIX_0F3A63
) },
6251 { "(bad)", { XX
} },
6252 { "(bad)", { XX
} },
6253 { "(bad)", { XX
} },
6254 { "(bad)", { XX
} },
6256 { "(bad)", { XX
} },
6257 { "(bad)", { XX
} },
6258 { "(bad)", { XX
} },
6259 { "(bad)", { XX
} },
6260 { "(bad)", { XX
} },
6261 { "(bad)", { XX
} },
6262 { "(bad)", { XX
} },
6263 { "(bad)", { XX
} },
6265 { "(bad)", { XX
} },
6266 { "(bad)", { XX
} },
6267 { "(bad)", { XX
} },
6268 { "(bad)", { XX
} },
6269 { "(bad)", { XX
} },
6270 { "(bad)", { XX
} },
6271 { "(bad)", { XX
} },
6272 { "(bad)", { XX
} },
6274 { "(bad)", { XX
} },
6275 { "(bad)", { XX
} },
6276 { "(bad)", { XX
} },
6277 { "(bad)", { XX
} },
6278 { "(bad)", { XX
} },
6279 { "(bad)", { XX
} },
6280 { "(bad)", { XX
} },
6281 { "(bad)", { XX
} },
6283 { "(bad)", { XX
} },
6284 { "(bad)", { XX
} },
6285 { "(bad)", { XX
} },
6286 { "(bad)", { XX
} },
6287 { "(bad)", { XX
} },
6288 { "(bad)", { XX
} },
6289 { "(bad)", { XX
} },
6290 { "(bad)", { XX
} },
6292 { "(bad)", { XX
} },
6293 { "(bad)", { XX
} },
6294 { "(bad)", { XX
} },
6295 { "(bad)", { XX
} },
6296 { "(bad)", { XX
} },
6297 { "(bad)", { XX
} },
6298 { "(bad)", { XX
} },
6299 { "(bad)", { XX
} },
6301 { "(bad)", { XX
} },
6302 { "(bad)", { XX
} },
6303 { "(bad)", { XX
} },
6304 { "(bad)", { XX
} },
6305 { "(bad)", { XX
} },
6306 { "(bad)", { XX
} },
6307 { "(bad)", { XX
} },
6308 { "(bad)", { XX
} },
6310 { "(bad)", { XX
} },
6311 { "(bad)", { XX
} },
6312 { "(bad)", { XX
} },
6313 { "(bad)", { XX
} },
6314 { "(bad)", { XX
} },
6315 { "(bad)", { XX
} },
6316 { "(bad)", { XX
} },
6317 { "(bad)", { XX
} },
6319 { "(bad)", { XX
} },
6320 { "(bad)", { XX
} },
6321 { "(bad)", { XX
} },
6322 { "(bad)", { XX
} },
6323 { "(bad)", { XX
} },
6324 { "(bad)", { XX
} },
6325 { "(bad)", { XX
} },
6326 { "(bad)", { XX
} },
6328 { "(bad)", { XX
} },
6329 { "(bad)", { XX
} },
6330 { "(bad)", { XX
} },
6331 { "(bad)", { XX
} },
6332 { "(bad)", { XX
} },
6333 { "(bad)", { XX
} },
6334 { "(bad)", { XX
} },
6335 { "(bad)", { XX
} },
6337 { "(bad)", { XX
} },
6338 { "(bad)", { XX
} },
6339 { "(bad)", { XX
} },
6340 { "(bad)", { XX
} },
6341 { "(bad)", { XX
} },
6342 { "(bad)", { XX
} },
6343 { "(bad)", { XX
} },
6344 { "(bad)", { XX
} },
6346 { "(bad)", { XX
} },
6347 { "(bad)", { XX
} },
6348 { "(bad)", { XX
} },
6349 { "(bad)", { XX
} },
6350 { "(bad)", { XX
} },
6351 { "(bad)", { XX
} },
6352 { "(bad)", { XX
} },
6353 { "(bad)", { XX
} },
6355 { "(bad)", { XX
} },
6356 { "(bad)", { XX
} },
6357 { "(bad)", { XX
} },
6358 { "(bad)", { XX
} },
6359 { "(bad)", { XX
} },
6360 { "(bad)", { XX
} },
6361 { "(bad)", { XX
} },
6362 { "(bad)", { XX
} },
6364 { "(bad)", { XX
} },
6365 { "(bad)", { XX
} },
6366 { "(bad)", { XX
} },
6367 { "(bad)", { XX
} },
6368 { "(bad)", { XX
} },
6369 { "(bad)", { XX
} },
6370 { "(bad)", { XX
} },
6371 { "(bad)", { XX
} },
6373 { "(bad)", { XX
} },
6374 { "(bad)", { XX
} },
6375 { "(bad)", { XX
} },
6376 { "(bad)", { XX
} },
6377 { "(bad)", { XX
} },
6378 { "(bad)", { XX
} },
6379 { "(bad)", { XX
} },
6380 { "(bad)", { XX
} },
6382 { "(bad)", { XX
} },
6383 { "(bad)", { XX
} },
6384 { "(bad)", { XX
} },
6385 { "(bad)", { XX
} },
6386 { "(bad)", { XX
} },
6387 { "(bad)", { XX
} },
6388 { "(bad)", { XX
} },
6389 { PREFIX_TABLE (PREFIX_0F3ADF
) },
6391 { "(bad)", { XX
} },
6392 { "(bad)", { XX
} },
6393 { "(bad)", { XX
} },
6394 { "(bad)", { XX
} },
6395 { "(bad)", { XX
} },
6396 { "(bad)", { XX
} },
6397 { "(bad)", { XX
} },
6398 { "(bad)", { XX
} },
6400 { "(bad)", { XX
} },
6401 { "(bad)", { XX
} },
6402 { "(bad)", { XX
} },
6403 { "(bad)", { XX
} },
6404 { "(bad)", { XX
} },
6405 { "(bad)", { XX
} },
6406 { "(bad)", { XX
} },
6407 { "(bad)", { XX
} },
6409 { "(bad)", { XX
} },
6410 { "(bad)", { XX
} },
6411 { "(bad)", { XX
} },
6412 { "(bad)", { XX
} },
6413 { "(bad)", { XX
} },
6414 { "(bad)", { XX
} },
6415 { "(bad)", { XX
} },
6416 { "(bad)", { XX
} },
6418 { "(bad)", { XX
} },
6419 { "(bad)", { XX
} },
6420 { "(bad)", { XX
} },
6421 { "(bad)", { XX
} },
6422 { "(bad)", { XX
} },
6423 { "(bad)", { XX
} },
6424 { "(bad)", { XX
} },
6425 { "(bad)", { XX
} },
6427 /* THREE_BYTE_0F7A */
6430 { "(bad)", { XX
} },
6431 { "(bad)", { XX
} },
6432 { "(bad)", { XX
} },
6433 { "(bad)", { XX
} },
6434 { "(bad)", { XX
} },
6435 { "(bad)", { XX
} },
6436 { "(bad)", { XX
} },
6437 { "(bad)", { XX
} },
6439 { "(bad)", { XX
} },
6440 { "(bad)", { XX
} },
6441 { "(bad)", { XX
} },
6442 { "(bad)", { XX
} },
6443 { "(bad)", { XX
} },
6444 { "(bad)", { XX
} },
6445 { "(bad)", { XX
} },
6446 { "(bad)", { XX
} },
6448 { "frczps", { XM
, EXq
} },
6449 { "frczpd", { XM
, EXq
} },
6450 { "frczss", { XM
, EXq
} },
6451 { "frczsd", { XM
, EXq
} },
6452 { "(bad)", { XX
} },
6453 { "(bad)", { XX
} },
6454 { "(bad)", { XX
} },
6455 { "(bad)", { XX
} },
6457 { "(bad)", { XX
} },
6458 { "(bad)", { XX
} },
6459 { "(bad)", { XX
} },
6460 { "(bad)", { XX
} },
6461 { "(bad)", { XX
} },
6462 { "(bad)", { XX
} },
6463 { "(bad)", { XX
} },
6464 { "(bad)", { XX
} },
6466 { "ptest", { XX
} },
6467 { "(bad)", { XX
} },
6468 { "(bad)", { XX
} },
6469 { "(bad)", { XX
} },
6470 { "(bad)", { XX
} },
6471 { "(bad)", { XX
} },
6472 { "(bad)", { XX
} },
6473 { "(bad)", { XX
} },
6475 { "(bad)", { XX
} },
6476 { "(bad)", { XX
} },
6477 { "(bad)", { XX
} },
6478 { "(bad)", { XX
} },
6479 { "(bad)", { XX
} },
6480 { "(bad)", { XX
} },
6481 { "(bad)", { XX
} },
6482 { "(bad)", { XX
} },
6484 { "cvtph2ps", { XM
, EXd
} },
6485 { "cvtps2ph", { EXd
, XM
} },
6486 { "(bad)", { XX
} },
6487 { "(bad)", { XX
} },
6488 { "(bad)", { XX
} },
6489 { "(bad)", { XX
} },
6490 { "(bad)", { XX
} },
6491 { "(bad)", { XX
} },
6493 { "(bad)", { XX
} },
6494 { "(bad)", { XX
} },
6495 { "(bad)", { XX
} },
6496 { "(bad)", { XX
} },
6497 { "(bad)", { XX
} },
6498 { "(bad)", { XX
} },
6499 { "(bad)", { XX
} },
6500 { "(bad)", { XX
} },
6502 { "(bad)", { XX
} },
6503 { "phaddbw", { XM
, EXq
} },
6504 { "phaddbd", { XM
, EXq
} },
6505 { "phaddbq", { XM
, EXq
} },
6506 { "(bad)", { XX
} },
6507 { "(bad)", { XX
} },
6508 { "phaddwd", { XM
, EXq
} },
6509 { "phaddwq", { XM
, EXq
} },
6511 { "(bad)", { XX
} },
6512 { "(bad)", { XX
} },
6513 { "(bad)", { XX
} },
6514 { "phadddq", { XM
, EXq
} },
6515 { "(bad)", { XX
} },
6516 { "(bad)", { XX
} },
6517 { "(bad)", { XX
} },
6518 { "(bad)", { XX
} },
6520 { "(bad)", { XX
} },
6521 { "phaddubw", { XM
, EXq
} },
6522 { "phaddubd", { XM
, EXq
} },
6523 { "phaddubq", { XM
, EXq
} },
6524 { "(bad)", { XX
} },
6525 { "(bad)", { XX
} },
6526 { "phadduwd", { XM
, EXq
} },
6527 { "phadduwq", { XM
, EXq
} },
6529 { "(bad)", { XX
} },
6530 { "(bad)", { XX
} },
6531 { "(bad)", { XX
} },
6532 { "phaddudq", { XM
, EXq
} },
6533 { "(bad)", { XX
} },
6534 { "(bad)", { XX
} },
6535 { "(bad)", { XX
} },
6536 { "(bad)", { XX
} },
6538 { "(bad)", { XX
} },
6539 { "phsubbw", { XM
, EXq
} },
6540 { "phsubbd", { XM
, EXq
} },
6541 { "phsubbq", { XM
, EXq
} },
6542 { "(bad)", { XX
} },
6543 { "(bad)", { XX
} },
6544 { "(bad)", { XX
} },
6545 { "(bad)", { XX
} },
6547 { "(bad)", { XX
} },
6548 { "(bad)", { XX
} },
6549 { "(bad)", { XX
} },
6550 { "(bad)", { XX
} },
6551 { "(bad)", { XX
} },
6552 { "(bad)", { XX
} },
6553 { "(bad)", { XX
} },
6554 { "(bad)", { XX
} },
6556 { "(bad)", { XX
} },
6557 { "(bad)", { XX
} },
6558 { "(bad)", { XX
} },
6559 { "(bad)", { XX
} },
6560 { "(bad)", { XX
} },
6561 { "(bad)", { XX
} },
6562 { "(bad)", { XX
} },
6563 { "(bad)", { XX
} },
6565 { "(bad)", { XX
} },
6566 { "(bad)", { XX
} },
6567 { "(bad)", { XX
} },
6568 { "(bad)", { XX
} },
6569 { "(bad)", { XX
} },
6570 { "(bad)", { XX
} },
6571 { "(bad)", { XX
} },
6572 { "(bad)", { XX
} },
6574 { "(bad)", { XX
} },
6575 { "(bad)", { XX
} },
6576 { "(bad)", { XX
} },
6577 { "(bad)", { XX
} },
6578 { "(bad)", { XX
} },
6579 { "(bad)", { XX
} },
6580 { "(bad)", { XX
} },
6581 { "(bad)", { XX
} },
6583 { "(bad)", { XX
} },
6584 { "(bad)", { XX
} },
6585 { "(bad)", { XX
} },
6586 { "(bad)", { XX
} },
6587 { "(bad)", { XX
} },
6588 { "(bad)", { XX
} },
6589 { "(bad)", { XX
} },
6590 { "(bad)", { XX
} },
6592 { "(bad)", { XX
} },
6593 { "(bad)", { XX
} },
6594 { "(bad)", { XX
} },
6595 { "(bad)", { XX
} },
6596 { "(bad)", { XX
} },
6597 { "(bad)", { XX
} },
6598 { "(bad)", { XX
} },
6599 { "(bad)", { XX
} },
6601 { "(bad)", { XX
} },
6602 { "(bad)", { XX
} },
6603 { "(bad)", { XX
} },
6604 { "(bad)", { XX
} },
6605 { "(bad)", { XX
} },
6606 { "(bad)", { XX
} },
6607 { "(bad)", { XX
} },
6608 { "(bad)", { XX
} },
6610 { "(bad)", { XX
} },
6611 { "(bad)", { XX
} },
6612 { "(bad)", { XX
} },
6613 { "(bad)", { XX
} },
6614 { "(bad)", { XX
} },
6615 { "(bad)", { XX
} },
6616 { "(bad)", { XX
} },
6617 { "(bad)", { XX
} },
6619 { "(bad)", { XX
} },
6620 { "(bad)", { XX
} },
6621 { "(bad)", { XX
} },
6622 { "(bad)", { XX
} },
6623 { "(bad)", { XX
} },
6624 { "(bad)", { XX
} },
6625 { "(bad)", { XX
} },
6626 { "(bad)", { XX
} },
6628 { "(bad)", { XX
} },
6629 { "(bad)", { XX
} },
6630 { "(bad)", { XX
} },
6631 { "(bad)", { XX
} },
6632 { "(bad)", { XX
} },
6633 { "(bad)", { XX
} },
6634 { "(bad)", { XX
} },
6635 { "(bad)", { XX
} },
6637 { "(bad)", { XX
} },
6638 { "(bad)", { XX
} },
6639 { "(bad)", { XX
} },
6640 { "(bad)", { XX
} },
6641 { "(bad)", { XX
} },
6642 { "(bad)", { XX
} },
6643 { "(bad)", { XX
} },
6644 { "(bad)", { XX
} },
6646 { "(bad)", { XX
} },
6647 { "(bad)", { XX
} },
6648 { "(bad)", { XX
} },
6649 { "(bad)", { XX
} },
6650 { "(bad)", { XX
} },
6651 { "(bad)", { XX
} },
6652 { "(bad)", { XX
} },
6653 { "(bad)", { XX
} },
6655 { "(bad)", { XX
} },
6656 { "(bad)", { XX
} },
6657 { "(bad)", { XX
} },
6658 { "(bad)", { XX
} },
6659 { "(bad)", { XX
} },
6660 { "(bad)", { XX
} },
6661 { "(bad)", { XX
} },
6662 { "(bad)", { XX
} },
6664 { "(bad)", { XX
} },
6665 { "(bad)", { XX
} },
6666 { "(bad)", { XX
} },
6667 { "(bad)", { XX
} },
6668 { "(bad)", { XX
} },
6669 { "(bad)", { XX
} },
6670 { "(bad)", { XX
} },
6671 { "(bad)", { XX
} },
6673 { "(bad)", { XX
} },
6674 { "(bad)", { XX
} },
6675 { "(bad)", { XX
} },
6676 { "(bad)", { XX
} },
6677 { "(bad)", { XX
} },
6678 { "(bad)", { XX
} },
6679 { "(bad)", { XX
} },
6680 { "(bad)", { XX
} },
6682 { "(bad)", { XX
} },
6683 { "(bad)", { XX
} },
6684 { "(bad)", { XX
} },
6685 { "(bad)", { XX
} },
6686 { "(bad)", { XX
} },
6687 { "(bad)", { XX
} },
6688 { "(bad)", { XX
} },
6689 { "(bad)", { XX
} },
6691 { "(bad)", { XX
} },
6692 { "(bad)", { XX
} },
6693 { "(bad)", { XX
} },
6694 { "(bad)", { XX
} },
6695 { "(bad)", { XX
} },
6696 { "(bad)", { XX
} },
6697 { "(bad)", { XX
} },
6698 { "(bad)", { XX
} },
6700 { "(bad)", { XX
} },
6701 { "(bad)", { XX
} },
6702 { "(bad)", { XX
} },
6703 { "(bad)", { XX
} },
6704 { "(bad)", { XX
} },
6705 { "(bad)", { XX
} },
6706 { "(bad)", { XX
} },
6707 { "(bad)", { XX
} },
6709 { "(bad)", { XX
} },
6710 { "(bad)", { XX
} },
6711 { "(bad)", { XX
} },
6712 { "(bad)", { XX
} },
6713 { "(bad)", { XX
} },
6714 { "(bad)", { XX
} },
6715 { "(bad)", { XX
} },
6716 { "(bad)", { XX
} },
6718 /* THREE_BYTE_0F7B */
6721 { "(bad)", { XX
} },
6722 { "(bad)", { XX
} },
6723 { "(bad)", { XX
} },
6724 { "(bad)", { XX
} },
6725 { "(bad)", { XX
} },
6726 { "(bad)", { XX
} },
6727 { "(bad)", { XX
} },
6728 { "(bad)", { XX
} },
6730 { "(bad)", { XX
} },
6731 { "(bad)", { XX
} },
6732 { "(bad)", { XX
} },
6733 { "(bad)", { XX
} },
6734 { "(bad)", { XX
} },
6735 { "(bad)", { XX
} },
6736 { "(bad)", { XX
} },
6737 { "(bad)", { XX
} },
6739 { "(bad)", { XX
} },
6740 { "(bad)", { XX
} },
6741 { "(bad)", { XX
} },
6742 { "(bad)", { XX
} },
6743 { "(bad)", { XX
} },
6744 { "(bad)", { XX
} },
6745 { "(bad)", { XX
} },
6746 { "(bad)", { XX
} },
6748 { "(bad)", { XX
} },
6749 { "(bad)", { XX
} },
6750 { "(bad)", { XX
} },
6751 { "(bad)", { XX
} },
6752 { "(bad)", { XX
} },
6753 { "(bad)", { XX
} },
6754 { "(bad)", { XX
} },
6755 { "(bad)", { XX
} },
6757 { "(bad)", { XX
} },
6758 { "(bad)", { XX
} },
6759 { "(bad)", { XX
} },
6760 { "(bad)", { XX
} },
6761 { "(bad)", { XX
} },
6762 { "(bad)", { XX
} },
6763 { "(bad)", { XX
} },
6764 { "(bad)", { XX
} },
6766 { "(bad)", { XX
} },
6767 { "(bad)", { XX
} },
6768 { "(bad)", { XX
} },
6769 { "(bad)", { XX
} },
6770 { "(bad)", { XX
} },
6771 { "(bad)", { XX
} },
6772 { "(bad)", { XX
} },
6773 { "(bad)", { XX
} },
6775 { "(bad)", { XX
} },
6776 { "(bad)", { XX
} },
6777 { "(bad)", { XX
} },
6778 { "(bad)", { XX
} },
6779 { "(bad)", { XX
} },
6780 { "(bad)", { XX
} },
6781 { "(bad)", { XX
} },
6782 { "(bad)", { XX
} },
6784 { "(bad)", { XX
} },
6785 { "(bad)", { XX
} },
6786 { "(bad)", { XX
} },
6787 { "(bad)", { XX
} },
6788 { "(bad)", { XX
} },
6789 { "(bad)", { XX
} },
6790 { "(bad)", { XX
} },
6791 { "(bad)", { XX
} },
6793 { "protb", { XM
, EXq
, Ib
} },
6794 { "protw", { XM
, EXq
, Ib
} },
6795 { "protd", { XM
, EXq
, Ib
} },
6796 { "protq", { XM
, EXq
, Ib
} },
6797 { "pshlb", { XM
, EXq
, Ib
} },
6798 { "pshlw", { XM
, EXq
, Ib
} },
6799 { "pshld", { XM
, EXq
, Ib
} },
6800 { "pshlq", { XM
, EXq
, Ib
} },
6802 { "pshab", { XM
, EXq
, Ib
} },
6803 { "pshaw", { XM
, EXq
, Ib
} },
6804 { "pshad", { XM
, EXq
, Ib
} },
6805 { "pshaq", { XM
, EXq
, Ib
} },
6806 { "(bad)", { XX
} },
6807 { "(bad)", { XX
} },
6808 { "(bad)", { XX
} },
6809 { "(bad)", { XX
} },
6811 { "(bad)", { XX
} },
6812 { "(bad)", { XX
} },
6813 { "(bad)", { XX
} },
6814 { "(bad)", { XX
} },
6815 { "(bad)", { XX
} },
6816 { "(bad)", { XX
} },
6817 { "(bad)", { XX
} },
6818 { "(bad)", { XX
} },
6820 { "(bad)", { XX
} },
6821 { "(bad)", { XX
} },
6822 { "(bad)", { XX
} },
6823 { "(bad)", { XX
} },
6824 { "(bad)", { XX
} },
6825 { "(bad)", { XX
} },
6826 { "(bad)", { XX
} },
6827 { "(bad)", { XX
} },
6829 { "(bad)", { XX
} },
6830 { "(bad)", { XX
} },
6831 { "(bad)", { XX
} },
6832 { "(bad)", { XX
} },
6833 { "(bad)", { XX
} },
6834 { "(bad)", { XX
} },
6835 { "(bad)", { XX
} },
6836 { "(bad)", { XX
} },
6838 { "(bad)", { XX
} },
6839 { "(bad)", { XX
} },
6840 { "(bad)", { XX
} },
6841 { "(bad)", { XX
} },
6842 { "(bad)", { XX
} },
6843 { "(bad)", { XX
} },
6844 { "(bad)", { XX
} },
6845 { "(bad)", { XX
} },
6847 { "(bad)", { XX
} },
6848 { "(bad)", { XX
} },
6849 { "(bad)", { XX
} },
6850 { "(bad)", { XX
} },
6851 { "(bad)", { XX
} },
6852 { "(bad)", { XX
} },
6853 { "(bad)", { XX
} },
6854 { "(bad)", { XX
} },
6856 { "(bad)", { XX
} },
6857 { "(bad)", { XX
} },
6858 { "(bad)", { XX
} },
6859 { "(bad)", { XX
} },
6860 { "(bad)", { XX
} },
6861 { "(bad)", { XX
} },
6862 { "(bad)", { XX
} },
6863 { "(bad)", { XX
} },
6865 { "(bad)", { XX
} },
6866 { "(bad)", { XX
} },
6867 { "(bad)", { XX
} },
6868 { "(bad)", { XX
} },
6869 { "(bad)", { XX
} },
6870 { "(bad)", { XX
} },
6871 { "(bad)", { XX
} },
6872 { "(bad)", { XX
} },
6874 { "(bad)", { XX
} },
6875 { "(bad)", { XX
} },
6876 { "(bad)", { XX
} },
6877 { "(bad)", { XX
} },
6878 { "(bad)", { XX
} },
6879 { "(bad)", { XX
} },
6880 { "(bad)", { XX
} },
6881 { "(bad)", { XX
} },
6883 { "(bad)", { XX
} },
6884 { "(bad)", { XX
} },
6885 { "(bad)", { XX
} },
6886 { "(bad)", { XX
} },
6887 { "(bad)", { XX
} },
6888 { "(bad)", { XX
} },
6889 { "(bad)", { XX
} },
6890 { "(bad)", { XX
} },
6892 { "(bad)", { XX
} },
6893 { "(bad)", { XX
} },
6894 { "(bad)", { XX
} },
6895 { "(bad)", { XX
} },
6896 { "(bad)", { XX
} },
6897 { "(bad)", { XX
} },
6898 { "(bad)", { XX
} },
6899 { "(bad)", { XX
} },
6901 { "(bad)", { XX
} },
6902 { "(bad)", { XX
} },
6903 { "(bad)", { XX
} },
6904 { "(bad)", { XX
} },
6905 { "(bad)", { XX
} },
6906 { "(bad)", { XX
} },
6907 { "(bad)", { XX
} },
6908 { "(bad)", { XX
} },
6910 { "(bad)", { XX
} },
6911 { "(bad)", { XX
} },
6912 { "(bad)", { XX
} },
6913 { "(bad)", { XX
} },
6914 { "(bad)", { XX
} },
6915 { "(bad)", { XX
} },
6916 { "(bad)", { XX
} },
6917 { "(bad)", { XX
} },
6919 { "(bad)", { XX
} },
6920 { "(bad)", { XX
} },
6921 { "(bad)", { XX
} },
6922 { "(bad)", { XX
} },
6923 { "(bad)", { XX
} },
6924 { "(bad)", { XX
} },
6925 { "(bad)", { XX
} },
6926 { "(bad)", { XX
} },
6928 { "(bad)", { XX
} },
6929 { "(bad)", { XX
} },
6930 { "(bad)", { XX
} },
6931 { "(bad)", { XX
} },
6932 { "(bad)", { XX
} },
6933 { "(bad)", { XX
} },
6934 { "(bad)", { XX
} },
6935 { "(bad)", { XX
} },
6937 { "(bad)", { XX
} },
6938 { "(bad)", { XX
} },
6939 { "(bad)", { XX
} },
6940 { "(bad)", { XX
} },
6941 { "(bad)", { XX
} },
6942 { "(bad)", { XX
} },
6943 { "(bad)", { XX
} },
6944 { "(bad)", { XX
} },
6946 { "(bad)", { XX
} },
6947 { "(bad)", { XX
} },
6948 { "(bad)", { XX
} },
6949 { "(bad)", { XX
} },
6950 { "(bad)", { XX
} },
6951 { "(bad)", { XX
} },
6952 { "(bad)", { XX
} },
6953 { "(bad)", { XX
} },
6955 { "(bad)", { XX
} },
6956 { "(bad)", { XX
} },
6957 { "(bad)", { XX
} },
6958 { "(bad)", { XX
} },
6959 { "(bad)", { XX
} },
6960 { "(bad)", { XX
} },
6961 { "(bad)", { XX
} },
6962 { "(bad)", { XX
} },
6964 { "(bad)", { XX
} },
6965 { "(bad)", { XX
} },
6966 { "(bad)", { XX
} },
6967 { "(bad)", { XX
} },
6968 { "(bad)", { XX
} },
6969 { "(bad)", { XX
} },
6970 { "(bad)", { XX
} },
6971 { "(bad)", { XX
} },
6973 { "(bad)", { XX
} },
6974 { "(bad)", { XX
} },
6975 { "(bad)", { XX
} },
6976 { "(bad)", { XX
} },
6977 { "(bad)", { XX
} },
6978 { "(bad)", { XX
} },
6979 { "(bad)", { XX
} },
6980 { "(bad)", { XX
} },
6982 { "(bad)", { XX
} },
6983 { "(bad)", { XX
} },
6984 { "(bad)", { XX
} },
6985 { "(bad)", { XX
} },
6986 { "(bad)", { XX
} },
6987 { "(bad)", { XX
} },
6988 { "(bad)", { XX
} },
6989 { "(bad)", { XX
} },
6991 { "(bad)", { XX
} },
6992 { "(bad)", { XX
} },
6993 { "(bad)", { XX
} },
6994 { "(bad)", { XX
} },
6995 { "(bad)", { XX
} },
6996 { "(bad)", { XX
} },
6997 { "(bad)", { XX
} },
6998 { "(bad)", { XX
} },
7000 { "(bad)", { XX
} },
7001 { "(bad)", { XX
} },
7002 { "(bad)", { XX
} },
7003 { "(bad)", { XX
} },
7004 { "(bad)", { XX
} },
7005 { "(bad)", { XX
} },
7006 { "(bad)", { XX
} },
7007 { "(bad)", { XX
} },
7011 static const struct dis386 vex_table
[][256] = {
7015 { "(bad)", { XX
} },
7016 { "(bad)", { XX
} },
7017 { "(bad)", { XX
} },
7018 { "(bad)", { XX
} },
7019 { "(bad)", { XX
} },
7020 { "(bad)", { XX
} },
7021 { "(bad)", { XX
} },
7022 { "(bad)", { XX
} },
7024 { "(bad)", { XX
} },
7025 { "(bad)", { XX
} },
7026 { "(bad)", { XX
} },
7027 { "(bad)", { XX
} },
7028 { "(bad)", { XX
} },
7029 { "(bad)", { XX
} },
7030 { "(bad)", { XX
} },
7031 { "(bad)", { XX
} },
7033 { PREFIX_TABLE (PREFIX_VEX_10
) },
7034 { PREFIX_TABLE (PREFIX_VEX_11
) },
7035 { PREFIX_TABLE (PREFIX_VEX_12
) },
7036 { MOD_TABLE (MOD_VEX_13
) },
7037 { "vunpcklpX", { XM
, Vex
, EXx
} },
7038 { "vunpckhpX", { XM
, Vex
, EXx
} },
7039 { PREFIX_TABLE (PREFIX_VEX_16
) },
7040 { MOD_TABLE (MOD_VEX_17
) },
7042 { "(bad)", { XX
} },
7043 { "(bad)", { XX
} },
7044 { "(bad)", { XX
} },
7045 { "(bad)", { XX
} },
7046 { "(bad)", { XX
} },
7047 { "(bad)", { XX
} },
7048 { "(bad)", { XX
} },
7049 { "(bad)", { XX
} },
7051 { "(bad)", { XX
} },
7052 { "(bad)", { XX
} },
7053 { "(bad)", { XX
} },
7054 { "(bad)", { XX
} },
7055 { "(bad)", { XX
} },
7056 { "(bad)", { XX
} },
7057 { "(bad)", { XX
} },
7058 { "(bad)", { XX
} },
7060 { "vmovapX", { XM
, EXx
} },
7061 { "vmovapX", { EXxS
, XM
} },
7062 { PREFIX_TABLE (PREFIX_VEX_2A
) },
7063 { MOD_TABLE (MOD_VEX_2B
) },
7064 { PREFIX_TABLE (PREFIX_VEX_2C
) },
7065 { PREFIX_TABLE (PREFIX_VEX_2D
) },
7066 { PREFIX_TABLE (PREFIX_VEX_2E
) },
7067 { PREFIX_TABLE (PREFIX_VEX_2F
) },
7069 { "(bad)", { XX
} },
7070 { "(bad)", { XX
} },
7071 { "(bad)", { XX
} },
7072 { "(bad)", { XX
} },
7073 { "(bad)", { XX
} },
7074 { "(bad)", { XX
} },
7075 { "(bad)", { XX
} },
7076 { "(bad)", { XX
} },
7078 { "(bad)", { XX
} },
7079 { "(bad)", { XX
} },
7080 { "(bad)", { XX
} },
7081 { "(bad)", { XX
} },
7082 { "(bad)", { XX
} },
7083 { "(bad)", { XX
} },
7084 { "(bad)", { XX
} },
7085 { "(bad)", { XX
} },
7087 { "(bad)", { XX
} },
7088 { "(bad)", { XX
} },
7089 { "(bad)", { XX
} },
7090 { "(bad)", { XX
} },
7091 { "(bad)", { XX
} },
7092 { "(bad)", { XX
} },
7093 { "(bad)", { XX
} },
7094 { "(bad)", { XX
} },
7096 { "(bad)", { XX
} },
7097 { "(bad)", { XX
} },
7098 { "(bad)", { XX
} },
7099 { "(bad)", { XX
} },
7100 { "(bad)", { XX
} },
7101 { "(bad)", { XX
} },
7102 { "(bad)", { XX
} },
7103 { "(bad)", { XX
} },
7105 { MOD_TABLE (MOD_VEX_51
) },
7106 { PREFIX_TABLE (PREFIX_VEX_51
) },
7107 { PREFIX_TABLE (PREFIX_VEX_52
) },
7108 { PREFIX_TABLE (PREFIX_VEX_53
) },
7109 { "vandpX", { XM
, Vex
, EXx
} },
7110 { "vandnpX", { XM
, Vex
, EXx
} },
7111 { "vorpX", { XM
, Vex
, EXx
} },
7112 { "vxorpX", { XM
, Vex
, EXx
} },
7114 { PREFIX_TABLE (PREFIX_VEX_58
) },
7115 { PREFIX_TABLE (PREFIX_VEX_59
) },
7116 { PREFIX_TABLE (PREFIX_VEX_5A
) },
7117 { PREFIX_TABLE (PREFIX_VEX_5B
) },
7118 { PREFIX_TABLE (PREFIX_VEX_5C
) },
7119 { PREFIX_TABLE (PREFIX_VEX_5D
) },
7120 { PREFIX_TABLE (PREFIX_VEX_5E
) },
7121 { PREFIX_TABLE (PREFIX_VEX_5F
) },
7123 { PREFIX_TABLE (PREFIX_VEX_60
) },
7124 { PREFIX_TABLE (PREFIX_VEX_61
) },
7125 { PREFIX_TABLE (PREFIX_VEX_62
) },
7126 { PREFIX_TABLE (PREFIX_VEX_63
) },
7127 { PREFIX_TABLE (PREFIX_VEX_64
) },
7128 { PREFIX_TABLE (PREFIX_VEX_65
) },
7129 { PREFIX_TABLE (PREFIX_VEX_66
) },
7130 { PREFIX_TABLE (PREFIX_VEX_67
) },
7132 { PREFIX_TABLE (PREFIX_VEX_68
) },
7133 { PREFIX_TABLE (PREFIX_VEX_69
) },
7134 { PREFIX_TABLE (PREFIX_VEX_6A
) },
7135 { PREFIX_TABLE (PREFIX_VEX_6B
) },
7136 { PREFIX_TABLE (PREFIX_VEX_6C
) },
7137 { PREFIX_TABLE (PREFIX_VEX_6D
) },
7138 { PREFIX_TABLE (PREFIX_VEX_6E
) },
7139 { PREFIX_TABLE (PREFIX_VEX_6F
) },
7141 { PREFIX_TABLE (PREFIX_VEX_70
) },
7142 { REG_TABLE (REG_VEX_71
) },
7143 { REG_TABLE (REG_VEX_72
) },
7144 { REG_TABLE (REG_VEX_73
) },
7145 { PREFIX_TABLE (PREFIX_VEX_74
) },
7146 { PREFIX_TABLE (PREFIX_VEX_75
) },
7147 { PREFIX_TABLE (PREFIX_VEX_76
) },
7148 { PREFIX_TABLE (PREFIX_VEX_77
) },
7150 { "(bad)", { XX
} },
7151 { "(bad)", { XX
} },
7152 { "(bad)", { XX
} },
7153 { "(bad)", { XX
} },
7154 { PREFIX_TABLE (PREFIX_VEX_7C
) },
7155 { PREFIX_TABLE (PREFIX_VEX_7D
) },
7156 { PREFIX_TABLE (PREFIX_VEX_7E
) },
7157 { PREFIX_TABLE (PREFIX_VEX_7F
) },
7159 { "(bad)", { XX
} },
7160 { "(bad)", { XX
} },
7161 { "(bad)", { XX
} },
7162 { "(bad)", { XX
} },
7163 { "(bad)", { XX
} },
7164 { "(bad)", { XX
} },
7165 { "(bad)", { XX
} },
7166 { "(bad)", { XX
} },
7168 { "(bad)", { XX
} },
7169 { "(bad)", { XX
} },
7170 { "(bad)", { XX
} },
7171 { "(bad)", { XX
} },
7172 { "(bad)", { XX
} },
7173 { "(bad)", { XX
} },
7174 { "(bad)", { XX
} },
7175 { "(bad)", { XX
} },
7177 { "(bad)", { XX
} },
7178 { "(bad)", { XX
} },
7179 { "(bad)", { XX
} },
7180 { "(bad)", { XX
} },
7181 { "(bad)", { XX
} },
7182 { "(bad)", { XX
} },
7183 { "(bad)", { XX
} },
7184 { "(bad)", { XX
} },
7186 { "(bad)", { XX
} },
7187 { "(bad)", { XX
} },
7188 { "(bad)", { XX
} },
7189 { "(bad)", { XX
} },
7190 { "(bad)", { XX
} },
7191 { "(bad)", { XX
} },
7192 { "(bad)", { XX
} },
7193 { "(bad)", { XX
} },
7195 { "(bad)", { XX
} },
7196 { "(bad)", { XX
} },
7197 { "(bad)", { XX
} },
7198 { "(bad)", { XX
} },
7199 { "(bad)", { XX
} },
7200 { "(bad)", { XX
} },
7201 { "(bad)", { XX
} },
7202 { "(bad)", { XX
} },
7204 { "(bad)", { XX
} },
7205 { "(bad)", { XX
} },
7206 { "(bad)", { XX
} },
7207 { "(bad)", { XX
} },
7208 { "(bad)", { XX
} },
7209 { "(bad)", { XX
} },
7210 { REG_TABLE (REG_VEX_AE
) },
7211 { "(bad)", { XX
} },
7213 { "(bad)", { XX
} },
7214 { "(bad)", { XX
} },
7215 { "(bad)", { XX
} },
7216 { "(bad)", { XX
} },
7217 { "(bad)", { XX
} },
7218 { "(bad)", { XX
} },
7219 { "(bad)", { XX
} },
7220 { "(bad)", { XX
} },
7222 { "(bad)", { XX
} },
7223 { "(bad)", { XX
} },
7224 { "(bad)", { XX
} },
7225 { "(bad)", { XX
} },
7226 { "(bad)", { XX
} },
7227 { "(bad)", { XX
} },
7228 { "(bad)", { XX
} },
7229 { "(bad)", { XX
} },
7231 { "(bad)", { XX
} },
7232 { "(bad)", { XX
} },
7233 { PREFIX_TABLE (PREFIX_VEX_C2
) },
7234 { "(bad)", { XX
} },
7235 { PREFIX_TABLE (PREFIX_VEX_C4
) },
7236 { PREFIX_TABLE (PREFIX_VEX_C5
) },
7237 { "vshufpX", { XM
, Vex
, EXx
, Ib
} },
7238 { "(bad)", { XX
} },
7240 { "(bad)", { XX
} },
7241 { "(bad)", { XX
} },
7242 { "(bad)", { XX
} },
7243 { "(bad)", { XX
} },
7244 { "(bad)", { XX
} },
7245 { "(bad)", { XX
} },
7246 { "(bad)", { XX
} },
7247 { "(bad)", { XX
} },
7249 { PREFIX_TABLE (PREFIX_VEX_D0
) },
7250 { PREFIX_TABLE (PREFIX_VEX_D1
) },
7251 { PREFIX_TABLE (PREFIX_VEX_D2
) },
7252 { PREFIX_TABLE (PREFIX_VEX_D3
) },
7253 { PREFIX_TABLE (PREFIX_VEX_D4
) },
7254 { PREFIX_TABLE (PREFIX_VEX_D5
) },
7255 { PREFIX_TABLE (PREFIX_VEX_D6
) },
7256 { PREFIX_TABLE (PREFIX_VEX_D7
) },
7258 { PREFIX_TABLE (PREFIX_VEX_D8
) },
7259 { PREFIX_TABLE (PREFIX_VEX_D9
) },
7260 { PREFIX_TABLE (PREFIX_VEX_DA
) },
7261 { PREFIX_TABLE (PREFIX_VEX_DB
) },
7262 { PREFIX_TABLE (PREFIX_VEX_DC
) },
7263 { PREFIX_TABLE (PREFIX_VEX_DD
) },
7264 { PREFIX_TABLE (PREFIX_VEX_DE
) },
7265 { PREFIX_TABLE (PREFIX_VEX_DF
) },
7267 { PREFIX_TABLE (PREFIX_VEX_E0
) },
7268 { PREFIX_TABLE (PREFIX_VEX_E1
) },
7269 { PREFIX_TABLE (PREFIX_VEX_E2
) },
7270 { PREFIX_TABLE (PREFIX_VEX_E3
) },
7271 { PREFIX_TABLE (PREFIX_VEX_E4
) },
7272 { PREFIX_TABLE (PREFIX_VEX_E5
) },
7273 { PREFIX_TABLE (PREFIX_VEX_E6
) },
7274 { PREFIX_TABLE (PREFIX_VEX_E7
) },
7276 { PREFIX_TABLE (PREFIX_VEX_E8
) },
7277 { PREFIX_TABLE (PREFIX_VEX_E9
) },
7278 { PREFIX_TABLE (PREFIX_VEX_EA
) },
7279 { PREFIX_TABLE (PREFIX_VEX_EB
) },
7280 { PREFIX_TABLE (PREFIX_VEX_EC
) },
7281 { PREFIX_TABLE (PREFIX_VEX_ED
) },
7282 { PREFIX_TABLE (PREFIX_VEX_EE
) },
7283 { PREFIX_TABLE (PREFIX_VEX_EF
) },
7285 { PREFIX_TABLE (PREFIX_VEX_F0
) },
7286 { PREFIX_TABLE (PREFIX_VEX_F1
) },
7287 { PREFIX_TABLE (PREFIX_VEX_F2
) },
7288 { PREFIX_TABLE (PREFIX_VEX_F3
) },
7289 { PREFIX_TABLE (PREFIX_VEX_F4
) },
7290 { PREFIX_TABLE (PREFIX_VEX_F5
) },
7291 { PREFIX_TABLE (PREFIX_VEX_F6
) },
7292 { PREFIX_TABLE (PREFIX_VEX_F7
) },
7294 { PREFIX_TABLE (PREFIX_VEX_F8
) },
7295 { PREFIX_TABLE (PREFIX_VEX_F9
) },
7296 { PREFIX_TABLE (PREFIX_VEX_FA
) },
7297 { PREFIX_TABLE (PREFIX_VEX_FB
) },
7298 { PREFIX_TABLE (PREFIX_VEX_FC
) },
7299 { PREFIX_TABLE (PREFIX_VEX_FD
) },
7300 { PREFIX_TABLE (PREFIX_VEX_FE
) },
7301 { "(bad)", { XX
} },
7306 { PREFIX_TABLE (PREFIX_VEX_3800
) },
7307 { PREFIX_TABLE (PREFIX_VEX_3801
) },
7308 { PREFIX_TABLE (PREFIX_VEX_3802
) },
7309 { PREFIX_TABLE (PREFIX_VEX_3803
) },
7310 { PREFIX_TABLE (PREFIX_VEX_3804
) },
7311 { PREFIX_TABLE (PREFIX_VEX_3805
) },
7312 { PREFIX_TABLE (PREFIX_VEX_3806
) },
7313 { PREFIX_TABLE (PREFIX_VEX_3807
) },
7315 { PREFIX_TABLE (PREFIX_VEX_3808
) },
7316 { PREFIX_TABLE (PREFIX_VEX_3809
) },
7317 { PREFIX_TABLE (PREFIX_VEX_380A
) },
7318 { PREFIX_TABLE (PREFIX_VEX_380B
) },
7319 { PREFIX_TABLE (PREFIX_VEX_380C
) },
7320 { PREFIX_TABLE (PREFIX_VEX_380D
) },
7321 { PREFIX_TABLE (PREFIX_VEX_380E
) },
7322 { PREFIX_TABLE (PREFIX_VEX_380F
) },
7324 { "(bad)", { XX
} },
7325 { "(bad)", { XX
} },
7326 { "(bad)", { XX
} },
7327 { "(bad)", { XX
} },
7328 { "(bad)", { XX
} },
7329 { "(bad)", { XX
} },
7330 { "(bad)", { XX
} },
7331 { PREFIX_TABLE (PREFIX_VEX_3817
) },
7333 { PREFIX_TABLE (PREFIX_VEX_3818
) },
7334 { PREFIX_TABLE (PREFIX_VEX_3819
) },
7335 { PREFIX_TABLE (PREFIX_VEX_381A
) },
7336 { "(bad)", { XX
} },
7337 { PREFIX_TABLE (PREFIX_VEX_381C
) },
7338 { PREFIX_TABLE (PREFIX_VEX_381D
) },
7339 { PREFIX_TABLE (PREFIX_VEX_381E
) },
7340 { "(bad)", { XX
} },
7342 { PREFIX_TABLE (PREFIX_VEX_3820
) },
7343 { PREFIX_TABLE (PREFIX_VEX_3821
) },
7344 { PREFIX_TABLE (PREFIX_VEX_3822
) },
7345 { PREFIX_TABLE (PREFIX_VEX_3823
) },
7346 { PREFIX_TABLE (PREFIX_VEX_3824
) },
7347 { PREFIX_TABLE (PREFIX_VEX_3825
) },
7348 { "(bad)", { XX
} },
7349 { "(bad)", { XX
} },
7351 { PREFIX_TABLE (PREFIX_VEX_3828
) },
7352 { PREFIX_TABLE (PREFIX_VEX_3829
) },
7353 { PREFIX_TABLE (PREFIX_VEX_382A
) },
7354 { PREFIX_TABLE (PREFIX_VEX_382B
) },
7355 { PREFIX_TABLE (PREFIX_VEX_382C
) },
7356 { PREFIX_TABLE (PREFIX_VEX_382D
) },
7357 { PREFIX_TABLE (PREFIX_VEX_382E
) },
7358 { PREFIX_TABLE (PREFIX_VEX_382F
) },
7360 { PREFIX_TABLE (PREFIX_VEX_3830
) },
7361 { PREFIX_TABLE (PREFIX_VEX_3831
) },
7362 { PREFIX_TABLE (PREFIX_VEX_3832
) },
7363 { PREFIX_TABLE (PREFIX_VEX_3833
) },
7364 { PREFIX_TABLE (PREFIX_VEX_3834
) },
7365 { PREFIX_TABLE (PREFIX_VEX_3835
) },
7366 { "(bad)", { XX
} },
7367 { PREFIX_TABLE (PREFIX_VEX_3837
) },
7369 { PREFIX_TABLE (PREFIX_VEX_3838
) },
7370 { PREFIX_TABLE (PREFIX_VEX_3839
) },
7371 { PREFIX_TABLE (PREFIX_VEX_383A
) },
7372 { PREFIX_TABLE (PREFIX_VEX_383B
) },
7373 { PREFIX_TABLE (PREFIX_VEX_383C
) },
7374 { PREFIX_TABLE (PREFIX_VEX_383D
) },
7375 { PREFIX_TABLE (PREFIX_VEX_383E
) },
7376 { PREFIX_TABLE (PREFIX_VEX_383F
) },
7378 { PREFIX_TABLE (PREFIX_VEX_3840
) },
7379 { PREFIX_TABLE (PREFIX_VEX_3841
) },
7380 { "(bad)", { XX
} },
7381 { "(bad)", { XX
} },
7382 { "(bad)", { XX
} },
7383 { "(bad)", { XX
} },
7384 { "(bad)", { XX
} },
7385 { "(bad)", { XX
} },
7387 { "(bad)", { XX
} },
7388 { "(bad)", { XX
} },
7389 { "(bad)", { XX
} },
7390 { "(bad)", { XX
} },
7391 { "(bad)", { XX
} },
7392 { "(bad)", { XX
} },
7393 { "(bad)", { XX
} },
7394 { "(bad)", { XX
} },
7396 { "(bad)", { XX
} },
7397 { "(bad)", { XX
} },
7398 { "(bad)", { XX
} },
7399 { "(bad)", { XX
} },
7400 { "(bad)", { XX
} },
7401 { "(bad)", { XX
} },
7402 { "(bad)", { XX
} },
7403 { "(bad)", { XX
} },
7405 { "(bad)", { XX
} },
7406 { "(bad)", { XX
} },
7407 { "(bad)", { XX
} },
7408 { "(bad)", { XX
} },
7409 { "(bad)", { XX
} },
7410 { "(bad)", { XX
} },
7411 { "(bad)", { XX
} },
7412 { "(bad)", { XX
} },
7414 { "(bad)", { XX
} },
7415 { "(bad)", { XX
} },
7416 { "(bad)", { XX
} },
7417 { "(bad)", { XX
} },
7418 { "(bad)", { XX
} },
7419 { "(bad)", { XX
} },
7420 { "(bad)", { XX
} },
7421 { "(bad)", { XX
} },
7423 { "(bad)", { XX
} },
7424 { "(bad)", { XX
} },
7425 { "(bad)", { XX
} },
7426 { "(bad)", { XX
} },
7427 { "(bad)", { XX
} },
7428 { "(bad)", { XX
} },
7429 { "(bad)", { XX
} },
7430 { "(bad)", { XX
} },
7432 { "(bad)", { XX
} },
7433 { "(bad)", { XX
} },
7434 { "(bad)", { XX
} },
7435 { "(bad)", { XX
} },
7436 { "(bad)", { XX
} },
7437 { "(bad)", { XX
} },
7438 { "(bad)", { XX
} },
7439 { "(bad)", { XX
} },
7441 { "(bad)", { XX
} },
7442 { "(bad)", { XX
} },
7443 { "(bad)", { XX
} },
7444 { "(bad)", { XX
} },
7445 { "(bad)", { XX
} },
7446 { "(bad)", { XX
} },
7447 { "(bad)", { XX
} },
7448 { "(bad)", { XX
} },
7450 { "(bad)", { XX
} },
7451 { "(bad)", { XX
} },
7452 { "(bad)", { XX
} },
7453 { "(bad)", { XX
} },
7454 { "(bad)", { XX
} },
7455 { "(bad)", { XX
} },
7456 { "(bad)", { XX
} },
7457 { "(bad)", { XX
} },
7459 { "(bad)", { XX
} },
7460 { "(bad)", { XX
} },
7461 { "(bad)", { XX
} },
7462 { "(bad)", { XX
} },
7463 { "(bad)", { XX
} },
7464 { "(bad)", { XX
} },
7465 { "(bad)", { XX
} },
7466 { "(bad)", { XX
} },
7468 { "(bad)", { XX
} },
7469 { "(bad)", { XX
} },
7470 { "(bad)", { XX
} },
7471 { "(bad)", { XX
} },
7472 { "(bad)", { XX
} },
7473 { "(bad)", { XX
} },
7474 { PREFIX_TABLE (PREFIX_VEX_3896
) },
7475 { PREFIX_TABLE (PREFIX_VEX_3897
) },
7477 { PREFIX_TABLE (PREFIX_VEX_3898
) },
7478 { PREFIX_TABLE (PREFIX_VEX_3899
) },
7479 { PREFIX_TABLE (PREFIX_VEX_389A
) },
7480 { PREFIX_TABLE (PREFIX_VEX_389B
) },
7481 { PREFIX_TABLE (PREFIX_VEX_389C
) },
7482 { PREFIX_TABLE (PREFIX_VEX_389D
) },
7483 { PREFIX_TABLE (PREFIX_VEX_389E
) },
7484 { PREFIX_TABLE (PREFIX_VEX_389F
) },
7486 { "(bad)", { XX
} },
7487 { "(bad)", { XX
} },
7488 { "(bad)", { XX
} },
7489 { "(bad)", { XX
} },
7490 { "(bad)", { XX
} },
7491 { "(bad)", { XX
} },
7492 { PREFIX_TABLE (PREFIX_VEX_38A6
) },
7493 { PREFIX_TABLE (PREFIX_VEX_38A7
) },
7495 { PREFIX_TABLE (PREFIX_VEX_38A8
) },
7496 { PREFIX_TABLE (PREFIX_VEX_38A9
) },
7497 { PREFIX_TABLE (PREFIX_VEX_38AA
) },
7498 { PREFIX_TABLE (PREFIX_VEX_38AB
) },
7499 { PREFIX_TABLE (PREFIX_VEX_38AC
) },
7500 { PREFIX_TABLE (PREFIX_VEX_38AD
) },
7501 { PREFIX_TABLE (PREFIX_VEX_38AE
) },
7502 { PREFIX_TABLE (PREFIX_VEX_38AF
) },
7504 { "(bad)", { XX
} },
7505 { "(bad)", { XX
} },
7506 { "(bad)", { XX
} },
7507 { "(bad)", { XX
} },
7508 { "(bad)", { XX
} },
7509 { "(bad)", { XX
} },
7510 { PREFIX_TABLE (PREFIX_VEX_38B6
) },
7511 { PREFIX_TABLE (PREFIX_VEX_38B7
) },
7513 { PREFIX_TABLE (PREFIX_VEX_38B8
) },
7514 { PREFIX_TABLE (PREFIX_VEX_38B9
) },
7515 { PREFIX_TABLE (PREFIX_VEX_38BA
) },
7516 { PREFIX_TABLE (PREFIX_VEX_38BB
) },
7517 { PREFIX_TABLE (PREFIX_VEX_38BC
) },
7518 { PREFIX_TABLE (PREFIX_VEX_38BD
) },
7519 { PREFIX_TABLE (PREFIX_VEX_38BE
) },
7520 { PREFIX_TABLE (PREFIX_VEX_38BF
) },
7522 { "(bad)", { XX
} },
7523 { "(bad)", { XX
} },
7524 { "(bad)", { XX
} },
7525 { "(bad)", { XX
} },
7526 { "(bad)", { XX
} },
7527 { "(bad)", { XX
} },
7528 { "(bad)", { XX
} },
7529 { "(bad)", { XX
} },
7531 { "(bad)", { XX
} },
7532 { "(bad)", { XX
} },
7533 { "(bad)", { XX
} },
7534 { "(bad)", { XX
} },
7535 { "(bad)", { XX
} },
7536 { "(bad)", { XX
} },
7537 { "(bad)", { XX
} },
7538 { "(bad)", { XX
} },
7540 { "(bad)", { XX
} },
7541 { "(bad)", { XX
} },
7542 { "(bad)", { XX
} },
7543 { "(bad)", { XX
} },
7544 { "(bad)", { XX
} },
7545 { "(bad)", { XX
} },
7546 { "(bad)", { XX
} },
7547 { "(bad)", { XX
} },
7549 { "(bad)", { XX
} },
7550 { "(bad)", { XX
} },
7551 { "(bad)", { XX
} },
7552 { PREFIX_TABLE (PREFIX_VEX_38DB
) },
7553 { PREFIX_TABLE (PREFIX_VEX_38DC
) },
7554 { PREFIX_TABLE (PREFIX_VEX_38DD
) },
7555 { PREFIX_TABLE (PREFIX_VEX_38DE
) },
7556 { PREFIX_TABLE (PREFIX_VEX_38DF
) },
7558 { "(bad)", { XX
} },
7559 { "(bad)", { XX
} },
7560 { "(bad)", { XX
} },
7561 { "(bad)", { XX
} },
7562 { "(bad)", { XX
} },
7563 { "(bad)", { XX
} },
7564 { "(bad)", { XX
} },
7565 { "(bad)", { XX
} },
7567 { "(bad)", { XX
} },
7568 { "(bad)", { XX
} },
7569 { "(bad)", { XX
} },
7570 { "(bad)", { XX
} },
7571 { "(bad)", { XX
} },
7572 { "(bad)", { XX
} },
7573 { "(bad)", { XX
} },
7574 { "(bad)", { XX
} },
7576 { "(bad)", { XX
} },
7577 { "(bad)", { XX
} },
7578 { "(bad)", { XX
} },
7579 { "(bad)", { XX
} },
7580 { "(bad)", { XX
} },
7581 { "(bad)", { XX
} },
7582 { "(bad)", { XX
} },
7583 { "(bad)", { XX
} },
7585 { "(bad)", { XX
} },
7586 { "(bad)", { XX
} },
7587 { "(bad)", { XX
} },
7588 { "(bad)", { XX
} },
7589 { "(bad)", { XX
} },
7590 { "(bad)", { XX
} },
7591 { "(bad)", { XX
} },
7592 { "(bad)", { XX
} },
7597 { "(bad)", { XX
} },
7598 { "(bad)", { XX
} },
7599 { "(bad)", { XX
} },
7600 { "(bad)", { XX
} },
7601 { PREFIX_TABLE (PREFIX_VEX_3A04
) },
7602 { PREFIX_TABLE (PREFIX_VEX_3A05
) },
7603 { PREFIX_TABLE (PREFIX_VEX_3A06
) },
7604 { "(bad)", { XX
} },
7606 { PREFIX_TABLE (PREFIX_VEX_3A08
) },
7607 { PREFIX_TABLE (PREFIX_VEX_3A09
) },
7608 { PREFIX_TABLE (PREFIX_VEX_3A0A
) },
7609 { PREFIX_TABLE (PREFIX_VEX_3A0B
) },
7610 { PREFIX_TABLE (PREFIX_VEX_3A0C
) },
7611 { PREFIX_TABLE (PREFIX_VEX_3A0D
) },
7612 { PREFIX_TABLE (PREFIX_VEX_3A0E
) },
7613 { PREFIX_TABLE (PREFIX_VEX_3A0F
) },
7615 { "(bad)", { XX
} },
7616 { "(bad)", { XX
} },
7617 { "(bad)", { XX
} },
7618 { "(bad)", { XX
} },
7619 { PREFIX_TABLE (PREFIX_VEX_3A14
) },
7620 { PREFIX_TABLE (PREFIX_VEX_3A15
) },
7621 { PREFIX_TABLE (PREFIX_VEX_3A16
) },
7622 { PREFIX_TABLE (PREFIX_VEX_3A17
) },
7624 { PREFIX_TABLE (PREFIX_VEX_3A18
) },
7625 { PREFIX_TABLE (PREFIX_VEX_3A19
) },
7626 { "(bad)", { XX
} },
7627 { "(bad)", { XX
} },
7628 { "(bad)", { XX
} },
7629 { "(bad)", { XX
} },
7630 { "(bad)", { XX
} },
7631 { "(bad)", { XX
} },
7633 { PREFIX_TABLE (PREFIX_VEX_3A20
) },
7634 { PREFIX_TABLE (PREFIX_VEX_3A21
) },
7635 { PREFIX_TABLE (PREFIX_VEX_3A22
) },
7636 { "(bad)", { XX
} },
7637 { "(bad)", { XX
} },
7638 { "(bad)", { XX
} },
7639 { "(bad)", { XX
} },
7640 { "(bad)", { XX
} },
7642 { "(bad)", { XX
} },
7643 { "(bad)", { XX
} },
7644 { "(bad)", { XX
} },
7645 { "(bad)", { XX
} },
7646 { "(bad)", { XX
} },
7647 { "(bad)", { XX
} },
7648 { "(bad)", { XX
} },
7649 { "(bad)", { XX
} },
7651 { "(bad)", { XX
} },
7652 { "(bad)", { XX
} },
7653 { "(bad)", { XX
} },
7654 { "(bad)", { XX
} },
7655 { "(bad)", { XX
} },
7656 { "(bad)", { XX
} },
7657 { "(bad)", { XX
} },
7658 { "(bad)", { XX
} },
7660 { "(bad)", { XX
} },
7661 { "(bad)", { XX
} },
7662 { "(bad)", { XX
} },
7663 { "(bad)", { XX
} },
7664 { "(bad)", { XX
} },
7665 { "(bad)", { XX
} },
7666 { "(bad)", { XX
} },
7667 { "(bad)", { XX
} },
7669 { PREFIX_TABLE (PREFIX_VEX_3A40
) },
7670 { PREFIX_TABLE (PREFIX_VEX_3A41
) },
7671 { PREFIX_TABLE (PREFIX_VEX_3A42
) },
7672 { "(bad)", { XX
} },
7673 { "(bad)", { XX
} },
7674 { "(bad)", { XX
} },
7675 { "(bad)", { XX
} },
7676 { "(bad)", { XX
} },
7678 { "(bad)", { XX
} },
7679 { "(bad)", { XX
} },
7680 { PREFIX_TABLE (PREFIX_VEX_3A4A
) },
7681 { PREFIX_TABLE (PREFIX_VEX_3A4B
) },
7682 { PREFIX_TABLE (PREFIX_VEX_3A4C
) },
7683 { "(bad)", { XX
} },
7684 { "(bad)", { XX
} },
7685 { "(bad)", { XX
} },
7687 { "(bad)", { XX
} },
7688 { "(bad)", { XX
} },
7689 { "(bad)", { XX
} },
7690 { "(bad)", { XX
} },
7691 { "(bad)", { XX
} },
7692 { "(bad)", { XX
} },
7693 { "(bad)", { XX
} },
7694 { "(bad)", { XX
} },
7696 { "(bad)", { XX
} },
7697 { "(bad)", { XX
} },
7698 { "(bad)", { XX
} },
7699 { "(bad)", { XX
} },
7700 { "(bad)", { XX
} },
7701 { "(bad)", { XX
} },
7702 { "(bad)", { XX
} },
7703 { "(bad)", { XX
} },
7705 { PREFIX_TABLE (PREFIX_VEX_3A60
) },
7706 { PREFIX_TABLE (PREFIX_VEX_3A61
) },
7707 { PREFIX_TABLE (PREFIX_VEX_3A62
) },
7708 { PREFIX_TABLE (PREFIX_VEX_3A63
) },
7709 { "(bad)", { XX
} },
7710 { "(bad)", { XX
} },
7711 { "(bad)", { XX
} },
7712 { "(bad)", { XX
} },
7714 { "(bad)", { XX
} },
7715 { "(bad)", { XX
} },
7716 { "(bad)", { XX
} },
7717 { "(bad)", { XX
} },
7718 { "(bad)", { XX
} },
7719 { "(bad)", { XX
} },
7720 { "(bad)", { XX
} },
7721 { "(bad)", { XX
} },
7723 { "(bad)", { XX
} },
7724 { "(bad)", { XX
} },
7725 { "(bad)", { XX
} },
7726 { "(bad)", { XX
} },
7727 { "(bad)", { XX
} },
7728 { "(bad)", { XX
} },
7729 { "(bad)", { XX
} },
7730 { "(bad)", { XX
} },
7732 { "(bad)", { XX
} },
7733 { "(bad)", { XX
} },
7734 { "(bad)", { XX
} },
7735 { "(bad)", { XX
} },
7736 { "(bad)", { XX
} },
7737 { "(bad)", { XX
} },
7738 { "(bad)", { XX
} },
7739 { "(bad)", { XX
} },
7741 { "(bad)", { XX
} },
7742 { "(bad)", { XX
} },
7743 { "(bad)", { XX
} },
7744 { "(bad)", { XX
} },
7745 { "(bad)", { XX
} },
7746 { "(bad)", { XX
} },
7747 { "(bad)", { XX
} },
7748 { "(bad)", { XX
} },
7750 { "(bad)", { XX
} },
7751 { "(bad)", { XX
} },
7752 { "(bad)", { XX
} },
7753 { "(bad)", { XX
} },
7754 { "(bad)", { XX
} },
7755 { "(bad)", { XX
} },
7756 { "(bad)", { XX
} },
7757 { "(bad)", { XX
} },
7759 { "(bad)", { XX
} },
7760 { "(bad)", { XX
} },
7761 { "(bad)", { XX
} },
7762 { "(bad)", { XX
} },
7763 { "(bad)", { XX
} },
7764 { "(bad)", { XX
} },
7765 { "(bad)", { XX
} },
7766 { "(bad)", { XX
} },
7768 { "(bad)", { XX
} },
7769 { "(bad)", { XX
} },
7770 { "(bad)", { XX
} },
7771 { "(bad)", { XX
} },
7772 { "(bad)", { XX
} },
7773 { "(bad)", { XX
} },
7774 { "(bad)", { XX
} },
7775 { "(bad)", { XX
} },
7777 { "(bad)", { XX
} },
7778 { "(bad)", { XX
} },
7779 { "(bad)", { XX
} },
7780 { "(bad)", { XX
} },
7781 { "(bad)", { XX
} },
7782 { "(bad)", { XX
} },
7783 { "(bad)", { XX
} },
7784 { "(bad)", { XX
} },
7786 { "(bad)", { XX
} },
7787 { "(bad)", { XX
} },
7788 { "(bad)", { XX
} },
7789 { "(bad)", { XX
} },
7790 { "(bad)", { XX
} },
7791 { "(bad)", { XX
} },
7792 { "(bad)", { XX
} },
7793 { "(bad)", { XX
} },
7795 { "(bad)", { XX
} },
7796 { "(bad)", { XX
} },
7797 { "(bad)", { XX
} },
7798 { "(bad)", { XX
} },
7799 { "(bad)", { XX
} },
7800 { "(bad)", { XX
} },
7801 { "(bad)", { XX
} },
7802 { "(bad)", { XX
} },
7804 { "(bad)", { XX
} },
7805 { "(bad)", { XX
} },
7806 { "(bad)", { XX
} },
7807 { "(bad)", { XX
} },
7808 { "(bad)", { XX
} },
7809 { "(bad)", { XX
} },
7810 { "(bad)", { XX
} },
7811 { "(bad)", { XX
} },
7813 { "(bad)", { XX
} },
7814 { "(bad)", { XX
} },
7815 { "(bad)", { XX
} },
7816 { "(bad)", { XX
} },
7817 { "(bad)", { XX
} },
7818 { "(bad)", { XX
} },
7819 { "(bad)", { XX
} },
7820 { "(bad)", { XX
} },
7822 { "(bad)", { XX
} },
7823 { "(bad)", { XX
} },
7824 { "(bad)", { XX
} },
7825 { "(bad)", { XX
} },
7826 { "(bad)", { XX
} },
7827 { "(bad)", { XX
} },
7828 { "(bad)", { XX
} },
7829 { "(bad)", { XX
} },
7831 { "(bad)", { XX
} },
7832 { "(bad)", { XX
} },
7833 { "(bad)", { XX
} },
7834 { "(bad)", { XX
} },
7835 { "(bad)", { XX
} },
7836 { "(bad)", { XX
} },
7837 { "(bad)", { XX
} },
7838 { "(bad)", { XX
} },
7840 { "(bad)", { XX
} },
7841 { "(bad)", { XX
} },
7842 { "(bad)", { XX
} },
7843 { "(bad)", { XX
} },
7844 { "(bad)", { XX
} },
7845 { "(bad)", { XX
} },
7846 { "(bad)", { XX
} },
7847 { PREFIX_TABLE (PREFIX_VEX_3ADF
) },
7849 { "(bad)", { XX
} },
7850 { "(bad)", { XX
} },
7851 { "(bad)", { XX
} },
7852 { "(bad)", { XX
} },
7853 { "(bad)", { XX
} },
7854 { "(bad)", { XX
} },
7855 { "(bad)", { XX
} },
7856 { "(bad)", { XX
} },
7858 { "(bad)", { XX
} },
7859 { "(bad)", { XX
} },
7860 { "(bad)", { XX
} },
7861 { "(bad)", { XX
} },
7862 { "(bad)", { XX
} },
7863 { "(bad)", { XX
} },
7864 { "(bad)", { XX
} },
7865 { "(bad)", { XX
} },
7867 { "(bad)", { XX
} },
7868 { "(bad)", { XX
} },
7869 { "(bad)", { XX
} },
7870 { "(bad)", { XX
} },
7871 { "(bad)", { XX
} },
7872 { "(bad)", { XX
} },
7873 { "(bad)", { XX
} },
7874 { "(bad)", { XX
} },
7876 { "(bad)", { XX
} },
7877 { "(bad)", { XX
} },
7878 { "(bad)", { XX
} },
7879 { "(bad)", { XX
} },
7880 { "(bad)", { XX
} },
7881 { "(bad)", { XX
} },
7882 { "(bad)", { XX
} },
7883 { "(bad)", { XX
} },
7887 static const struct dis386 vex_len_table
[][2] = {
7888 /* VEX_LEN_10_P_1 */
7890 { "vmovss", { XMVex
, Vex128
, EXd
} },
7891 { "(bad)", { XX
} },
7894 /* VEX_LEN_10_P_3 */
7896 { "vmovsd", { XMVex
, Vex128
, EXq
} },
7897 { "(bad)", { XX
} },
7900 /* VEX_LEN_11_P_1 */
7902 { "vmovss", { EXdVexS
, Vex128
, XM
} },
7903 { "(bad)", { XX
} },
7906 /* VEX_LEN_11_P_3 */
7908 { "vmovsd", { EXqVexS
, Vex128
, XM
} },
7909 { "(bad)", { XX
} },
7912 /* VEX_LEN_12_P_0_M_0 */
7914 { "vmovlps", { XM
, Vex128
, EXq
} },
7915 { "(bad)", { XX
} },
7918 /* VEX_LEN_12_P_0_M_1 */
7920 { "vmovhlps", { XM
, Vex128
, EXq
} },
7921 { "(bad)", { XX
} },
7924 /* VEX_LEN_12_P_2 */
7926 { "vmovlpd", { XM
, Vex128
, EXq
} },
7927 { "(bad)", { XX
} },
7930 /* VEX_LEN_13_M_0 */
7932 { "vmovlpX", { EXq
, XM
} },
7933 { "(bad)", { XX
} },
7936 /* VEX_LEN_16_P_0_M_0 */
7938 { "vmovhps", { XM
, Vex128
, EXq
} },
7939 { "(bad)", { XX
} },
7942 /* VEX_LEN_16_P_0_M_1 */
7944 { "vmovlhps", { XM
, Vex128
, EXq
} },
7945 { "(bad)", { XX
} },
7948 /* VEX_LEN_16_P_2 */
7950 { "vmovhpd", { XM
, Vex128
, EXq
} },
7951 { "(bad)", { XX
} },
7954 /* VEX_LEN_17_M_0 */
7956 { "vmovhpX", { EXq
, XM
} },
7957 { "(bad)", { XX
} },
7960 /* VEX_LEN_2A_P_1 */
7962 { "vcvtsi2ss%LQ", { XM
, Vex128
, Ev
} },
7963 { "(bad)", { XX
} },
7966 /* VEX_LEN_2A_P_3 */
7968 { "vcvtsi2sd%LQ", { XM
, Vex128
, Ev
} },
7969 { "(bad)", { XX
} },
7972 /* VEX_LEN_2C_P_1 */
7974 { "vcvttss2siY", { Gv
, EXd
} },
7975 { "(bad)", { XX
} },
7978 /* VEX_LEN_2C_P_3 */
7980 { "vcvttsd2siY", { Gv
, EXq
} },
7981 { "(bad)", { XX
} },
7984 /* VEX_LEN_2D_P_1 */
7986 { "vcvtss2siY", { Gv
, EXd
} },
7987 { "(bad)", { XX
} },
7990 /* VEX_LEN_2D_P_3 */
7992 { "vcvtsd2siY", { Gv
, EXq
} },
7993 { "(bad)", { XX
} },
7996 /* VEX_LEN_2E_P_0 */
7998 { "vucomiss", { XM
, EXd
} },
7999 { "(bad)", { XX
} },
8002 /* VEX_LEN_2E_P_2 */
8004 { "vucomisd", { XM
, EXq
} },
8005 { "(bad)", { XX
} },
8008 /* VEX_LEN_2F_P_0 */
8010 { "vcomiss", { XM
, EXd
} },
8011 { "(bad)", { XX
} },
8014 /* VEX_LEN_2F_P_2 */
8016 { "vcomisd", { XM
, EXq
} },
8017 { "(bad)", { XX
} },
8020 /* VEX_LEN_51_P_1 */
8022 { "vsqrtss", { XM
, Vex128
, EXd
} },
8023 { "(bad)", { XX
} },
8026 /* VEX_LEN_51_P_3 */
8028 { "vsqrtsd", { XM
, Vex128
, EXq
} },
8029 { "(bad)", { XX
} },
8032 /* VEX_LEN_52_P_1 */
8034 { "vrsqrtss", { XM
, Vex128
, EXd
} },
8035 { "(bad)", { XX
} },
8038 /* VEX_LEN_53_P_1 */
8040 { "vrcpss", { XM
, Vex128
, EXd
} },
8041 { "(bad)", { XX
} },
8044 /* VEX_LEN_58_P_1 */
8046 { "vaddss", { XM
, Vex128
, EXd
} },
8047 { "(bad)", { XX
} },
8050 /* VEX_LEN_58_P_3 */
8052 { "vaddsd", { XM
, Vex128
, EXq
} },
8053 { "(bad)", { XX
} },
8056 /* VEX_LEN_59_P_1 */
8058 { "vmulss", { XM
, Vex128
, EXd
} },
8059 { "(bad)", { XX
} },
8062 /* VEX_LEN_59_P_3 */
8064 { "vmulsd", { XM
, Vex128
, EXq
} },
8065 { "(bad)", { XX
} },
8068 /* VEX_LEN_5A_P_1 */
8070 { "vcvtss2sd", { XM
, Vex128
, EXd
} },
8071 { "(bad)", { XX
} },
8074 /* VEX_LEN_5A_P_3 */
8076 { "vcvtsd2ss", { XM
, Vex128
, EXq
} },
8077 { "(bad)", { XX
} },
8080 /* VEX_LEN_5C_P_1 */
8082 { "vsubss", { XM
, Vex128
, EXd
} },
8083 { "(bad)", { XX
} },
8086 /* VEX_LEN_5C_P_3 */
8088 { "vsubsd", { XM
, Vex128
, EXq
} },
8089 { "(bad)", { XX
} },
8092 /* VEX_LEN_5D_P_1 */
8094 { "vminss", { XM
, Vex128
, EXd
} },
8095 { "(bad)", { XX
} },
8098 /* VEX_LEN_5D_P_3 */
8100 { "vminsd", { XM
, Vex128
, EXq
} },
8101 { "(bad)", { XX
} },
8104 /* VEX_LEN_5E_P_1 */
8106 { "vdivss", { XM
, Vex128
, EXd
} },
8107 { "(bad)", { XX
} },
8110 /* VEX_LEN_5E_P_3 */
8112 { "vdivsd", { XM
, Vex128
, EXq
} },
8113 { "(bad)", { XX
} },
8116 /* VEX_LEN_5F_P_1 */
8118 { "vmaxss", { XM
, Vex128
, EXd
} },
8119 { "(bad)", { XX
} },
8122 /* VEX_LEN_5F_P_3 */
8124 { "vmaxsd", { XM
, Vex128
, EXq
} },
8125 { "(bad)", { XX
} },
8128 /* VEX_LEN_60_P_2 */
8130 { "vpunpcklbw", { XM
, Vex128
, EXx
} },
8131 { "(bad)", { XX
} },
8134 /* VEX_LEN_61_P_2 */
8136 { "vpunpcklwd", { XM
, Vex128
, EXx
} },
8137 { "(bad)", { XX
} },
8140 /* VEX_LEN_62_P_2 */
8142 { "vpunpckldq", { XM
, Vex128
, EXx
} },
8143 { "(bad)", { XX
} },
8146 /* VEX_LEN_63_P_2 */
8148 { "vpacksswb", { XM
, Vex128
, EXx
} },
8149 { "(bad)", { XX
} },
8152 /* VEX_LEN_64_P_2 */
8154 { "vpcmpgtb", { XM
, Vex128
, EXx
} },
8155 { "(bad)", { XX
} },
8158 /* VEX_LEN_65_P_2 */
8160 { "vpcmpgtw", { XM
, Vex128
, EXx
} },
8161 { "(bad)", { XX
} },
8164 /* VEX_LEN_66_P_2 */
8166 { "vpcmpgtd", { XM
, Vex128
, EXx
} },
8167 { "(bad)", { XX
} },
8170 /* VEX_LEN_67_P_2 */
8172 { "vpackuswb", { XM
, Vex128
, EXx
} },
8173 { "(bad)", { XX
} },
8176 /* VEX_LEN_68_P_2 */
8178 { "vpunpckhbw", { XM
, Vex128
, EXx
} },
8179 { "(bad)", { XX
} },
8182 /* VEX_LEN_69_P_2 */
8184 { "vpunpckhwd", { XM
, Vex128
, EXx
} },
8185 { "(bad)", { XX
} },
8188 /* VEX_LEN_6A_P_2 */
8190 { "vpunpckhdq", { XM
, Vex128
, EXx
} },
8191 { "(bad)", { XX
} },
8194 /* VEX_LEN_6B_P_2 */
8196 { "vpackssdw", { XM
, Vex128
, EXx
} },
8197 { "(bad)", { XX
} },
8200 /* VEX_LEN_6C_P_2 */
8202 { "vpunpcklqdq", { XM
, Vex128
, EXx
} },
8203 { "(bad)", { XX
} },
8206 /* VEX_LEN_6D_P_2 */
8208 { "vpunpckhqdq", { XM
, Vex128
, EXx
} },
8209 { "(bad)", { XX
} },
8212 /* VEX_LEN_6E_P_2 */
8214 { "vmovK", { XM
, Edq
} },
8215 { "(bad)", { XX
} },
8218 /* VEX_LEN_70_P_1 */
8220 { "vpshufhw", { XM
, EXx
, Ib
} },
8221 { "(bad)", { XX
} },
8224 /* VEX_LEN_70_P_2 */
8226 { "vpshufd", { XM
, EXx
, Ib
} },
8227 { "(bad)", { XX
} },
8230 /* VEX_LEN_70_P_3 */
8232 { "vpshuflw", { XM
, EXx
, Ib
} },
8233 { "(bad)", { XX
} },
8236 /* VEX_LEN_71_R_2_P_2 */
8238 { "vpsrlw", { Vex128
, XS
, Ib
} },
8239 { "(bad)", { XX
} },
8242 /* VEX_LEN_71_R_4_P_2 */
8244 { "vpsraw", { Vex128
, XS
, Ib
} },
8245 { "(bad)", { XX
} },
8248 /* VEX_LEN_71_R_6_P_2 */
8250 { "vpsllw", { Vex128
, XS
, Ib
} },
8251 { "(bad)", { XX
} },
8254 /* VEX_LEN_72_R_2_P_2 */
8256 { "vpsrld", { Vex128
, XS
, Ib
} },
8257 { "(bad)", { XX
} },
8260 /* VEX_LEN_72_R_4_P_2 */
8262 { "vpsrad", { Vex128
, XS
, Ib
} },
8263 { "(bad)", { XX
} },
8266 /* VEX_LEN_72_R_6_P_2 */
8268 { "vpslld", { Vex128
, XS
, Ib
} },
8269 { "(bad)", { XX
} },
8272 /* VEX_LEN_73_R_2_P_2 */
8274 { "vpsrlq", { Vex128
, XS
, Ib
} },
8275 { "(bad)", { XX
} },
8278 /* VEX_LEN_73_R_3_P_2 */
8280 { "vpsrldq", { Vex128
, XS
, Ib
} },
8281 { "(bad)", { XX
} },
8284 /* VEX_LEN_73_R_6_P_2 */
8286 { "vpsllq", { Vex128
, XS
, Ib
} },
8287 { "(bad)", { XX
} },
8290 /* VEX_LEN_73_R_7_P_2 */
8292 { "vpslldq", { Vex128
, XS
, Ib
} },
8293 { "(bad)", { XX
} },
8296 /* VEX_LEN_74_P_2 */
8298 { "vpcmpeqb", { XM
, Vex128
, EXx
} },
8299 { "(bad)", { XX
} },
8302 /* VEX_LEN_75_P_2 */
8304 { "vpcmpeqw", { XM
, Vex128
, EXx
} },
8305 { "(bad)", { XX
} },
8308 /* VEX_LEN_76_P_2 */
8310 { "vpcmpeqd", { XM
, Vex128
, EXx
} },
8311 { "(bad)", { XX
} },
8314 /* VEX_LEN_7E_P_1 */
8316 { "vmovq", { XM
, EXq
} },
8317 { "(bad)", { XX
} },
8320 /* VEX_LEN_7E_P_2 */
8322 { "vmovK", { Edq
, XM
} },
8323 { "(bad)", { XX
} },
8326 /* VEX_LEN_AE_R_2_M0 */
8328 { "vldmxcsr", { Md
} },
8329 { "(bad)", { XX
} },
8332 /* VEX_LEN_AE_R_3_M0 */
8334 { "vstmxcsr", { Md
} },
8335 { "(bad)", { XX
} },
8338 /* VEX_LEN_C2_P_1 */
8340 { "vcmpss", { XM
, Vex128
, EXd
, VCMP
} },
8341 { "(bad)", { XX
} },
8344 /* VEX_LEN_C2_P_3 */
8346 { "vcmpsd", { XM
, Vex128
, EXq
, VCMP
} },
8347 { "(bad)", { XX
} },
8350 /* VEX_LEN_C4_P_2 */
8352 { "vpinsrw", { XM
, Vex128
, Edqw
, Ib
} },
8353 { "(bad)", { XX
} },
8356 /* VEX_LEN_C5_P_2 */
8358 { "vpextrw", { Gdq
, XS
, Ib
} },
8359 { "(bad)", { XX
} },
8362 /* VEX_LEN_D1_P_2 */
8364 { "vpsrlw", { XM
, Vex128
, EXx
} },
8365 { "(bad)", { XX
} },
8368 /* VEX_LEN_D2_P_2 */
8370 { "vpsrld", { XM
, Vex128
, EXx
} },
8371 { "(bad)", { XX
} },
8374 /* VEX_LEN_D3_P_2 */
8376 { "vpsrlq", { XM
, Vex128
, EXx
} },
8377 { "(bad)", { XX
} },
8380 /* VEX_LEN_D4_P_2 */
8382 { "vpaddq", { XM
, Vex128
, EXx
} },
8383 { "(bad)", { XX
} },
8386 /* VEX_LEN_D5_P_2 */
8388 { "vpmullw", { XM
, Vex128
, EXx
} },
8389 { "(bad)", { XX
} },
8392 /* VEX_LEN_D6_P_2 */
8394 { "vmovq", { EXqS
, XM
} },
8395 { "(bad)", { XX
} },
8398 /* VEX_LEN_D7_P_2_M_1 */
8400 { "vpmovmskb", { Gdq
, XS
} },
8401 { "(bad)", { XX
} },
8404 /* VEX_LEN_D8_P_2 */
8406 { "vpsubusb", { XM
, Vex128
, EXx
} },
8407 { "(bad)", { XX
} },
8410 /* VEX_LEN_D9_P_2 */
8412 { "vpsubusw", { XM
, Vex128
, EXx
} },
8413 { "(bad)", { XX
} },
8416 /* VEX_LEN_DA_P_2 */
8418 { "vpminub", { XM
, Vex128
, EXx
} },
8419 { "(bad)", { XX
} },
8422 /* VEX_LEN_DB_P_2 */
8424 { "vpand", { XM
, Vex128
, EXx
} },
8425 { "(bad)", { XX
} },
8428 /* VEX_LEN_DC_P_2 */
8430 { "vpaddusb", { XM
, Vex128
, EXx
} },
8431 { "(bad)", { XX
} },
8434 /* VEX_LEN_DD_P_2 */
8436 { "vpaddusw", { XM
, Vex128
, EXx
} },
8437 { "(bad)", { XX
} },
8440 /* VEX_LEN_DE_P_2 */
8442 { "vpmaxub", { XM
, Vex128
, EXx
} },
8443 { "(bad)", { XX
} },
8446 /* VEX_LEN_DF_P_2 */
8448 { "vpandn", { XM
, Vex128
, EXx
} },
8449 { "(bad)", { XX
} },
8452 /* VEX_LEN_E0_P_2 */
8454 { "vpavgb", { XM
, Vex128
, EXx
} },
8455 { "(bad)", { XX
} },
8458 /* VEX_LEN_E1_P_2 */
8460 { "vpsraw", { XM
, Vex128
, EXx
} },
8461 { "(bad)", { XX
} },
8464 /* VEX_LEN_E2_P_2 */
8466 { "vpsrad", { XM
, Vex128
, EXx
} },
8467 { "(bad)", { XX
} },
8470 /* VEX_LEN_E3_P_2 */
8472 { "vpavgw", { XM
, Vex128
, EXx
} },
8473 { "(bad)", { XX
} },
8476 /* VEX_LEN_E4_P_2 */
8478 { "vpmulhuw", { XM
, Vex128
, EXx
} },
8479 { "(bad)", { XX
} },
8482 /* VEX_LEN_E5_P_2 */
8484 { "vpmulhw", { XM
, Vex128
, EXx
} },
8485 { "(bad)", { XX
} },
8488 /* VEX_LEN_E8_P_2 */
8490 { "vpsubsb", { XM
, Vex128
, EXx
} },
8491 { "(bad)", { XX
} },
8494 /* VEX_LEN_E9_P_2 */
8496 { "vpsubsw", { XM
, Vex128
, EXx
} },
8497 { "(bad)", { XX
} },
8500 /* VEX_LEN_EA_P_2 */
8502 { "vpminsw", { XM
, Vex128
, EXx
} },
8503 { "(bad)", { XX
} },
8506 /* VEX_LEN_EB_P_2 */
8508 { "vpor", { XM
, Vex128
, EXx
} },
8509 { "(bad)", { XX
} },
8512 /* VEX_LEN_EC_P_2 */
8514 { "vpaddsb", { XM
, Vex128
, EXx
} },
8515 { "(bad)", { XX
} },
8518 /* VEX_LEN_ED_P_2 */
8520 { "vpaddsw", { XM
, Vex128
, EXx
} },
8521 { "(bad)", { XX
} },
8524 /* VEX_LEN_EE_P_2 */
8526 { "vpmaxsw", { XM
, Vex128
, EXx
} },
8527 { "(bad)", { XX
} },
8530 /* VEX_LEN_EF_P_2 */
8532 { "vpxor", { XM
, Vex128
, EXx
} },
8533 { "(bad)", { XX
} },
8536 /* VEX_LEN_F1_P_2 */
8538 { "vpsllw", { XM
, Vex128
, EXx
} },
8539 { "(bad)", { XX
} },
8542 /* VEX_LEN_F2_P_2 */
8544 { "vpslld", { XM
, Vex128
, EXx
} },
8545 { "(bad)", { XX
} },
8548 /* VEX_LEN_F3_P_2 */
8550 { "vpsllq", { XM
, Vex128
, EXx
} },
8551 { "(bad)", { XX
} },
8554 /* VEX_LEN_F4_P_2 */
8556 { "vpmuludq", { XM
, Vex128
, EXx
} },
8557 { "(bad)", { XX
} },
8560 /* VEX_LEN_F5_P_2 */
8562 { "vpmaddwd", { XM
, Vex128
, EXx
} },
8563 { "(bad)", { XX
} },
8566 /* VEX_LEN_F6_P_2 */
8568 { "vpsadbw", { XM
, Vex128
, EXx
} },
8569 { "(bad)", { XX
} },
8572 /* VEX_LEN_F7_P_2 */
8574 { "vmaskmovdqu", { XM
, XS
} },
8575 { "(bad)", { XX
} },
8578 /* VEX_LEN_F8_P_2 */
8580 { "vpsubb", { XM
, Vex128
, EXx
} },
8581 { "(bad)", { XX
} },
8584 /* VEX_LEN_F9_P_2 */
8586 { "vpsubw", { XM
, Vex128
, EXx
} },
8587 { "(bad)", { XX
} },
8590 /* VEX_LEN_FA_P_2 */
8592 { "vpsubd", { XM
, Vex128
, EXx
} },
8593 { "(bad)", { XX
} },
8596 /* VEX_LEN_FB_P_2 */
8598 { "vpsubq", { XM
, Vex128
, EXx
} },
8599 { "(bad)", { XX
} },
8602 /* VEX_LEN_FC_P_2 */
8604 { "vpaddb", { XM
, Vex128
, EXx
} },
8605 { "(bad)", { XX
} },
8608 /* VEX_LEN_FD_P_2 */
8610 { "vpaddw", { XM
, Vex128
, EXx
} },
8611 { "(bad)", { XX
} },
8614 /* VEX_LEN_FE_P_2 */
8616 { "vpaddd", { XM
, Vex128
, EXx
} },
8617 { "(bad)", { XX
} },
8620 /* VEX_LEN_3800_P_2 */
8622 { "vpshufb", { XM
, Vex128
, EXx
} },
8623 { "(bad)", { XX
} },
8626 /* VEX_LEN_3801_P_2 */
8628 { "vphaddw", { XM
, Vex128
, EXx
} },
8629 { "(bad)", { XX
} },
8632 /* VEX_LEN_3802_P_2 */
8634 { "vphaddd", { XM
, Vex128
, EXx
} },
8635 { "(bad)", { XX
} },
8638 /* VEX_LEN_3803_P_2 */
8640 { "vphaddsw", { XM
, Vex128
, EXx
} },
8641 { "(bad)", { XX
} },
8644 /* VEX_LEN_3804_P_2 */
8646 { "vpmaddubsw", { XM
, Vex128
, EXx
} },
8647 { "(bad)", { XX
} },
8650 /* VEX_LEN_3805_P_2 */
8652 { "vphsubw", { XM
, Vex128
, EXx
} },
8653 { "(bad)", { XX
} },
8656 /* VEX_LEN_3806_P_2 */
8658 { "vphsubd", { XM
, Vex128
, EXx
} },
8659 { "(bad)", { XX
} },
8662 /* VEX_LEN_3807_P_2 */
8664 { "vphsubsw", { XM
, Vex128
, EXx
} },
8665 { "(bad)", { XX
} },
8668 /* VEX_LEN_3808_P_2 */
8670 { "vpsignb", { XM
, Vex128
, EXx
} },
8671 { "(bad)", { XX
} },
8674 /* VEX_LEN_3809_P_2 */
8676 { "vpsignw", { XM
, Vex128
, EXx
} },
8677 { "(bad)", { XX
} },
8680 /* VEX_LEN_380A_P_2 */
8682 { "vpsignd", { XM
, Vex128
, EXx
} },
8683 { "(bad)", { XX
} },
8686 /* VEX_LEN_380B_P_2 */
8688 { "vpmulhrsw", { XM
, Vex128
, EXx
} },
8689 { "(bad)", { XX
} },
8692 /* VEX_LEN_3819_P_2_M_0 */
8694 { "(bad)", { XX
} },
8695 { "vbroadcastsd", { XM
, Mq
} },
8698 /* VEX_LEN_381A_P_2_M_0 */
8700 { "(bad)", { XX
} },
8701 { "vbroadcastf128", { XM
, Mxmm
} },
8704 /* VEX_LEN_381C_P_2 */
8706 { "vpabsb", { XM
, EXx
} },
8707 { "(bad)", { XX
} },
8710 /* VEX_LEN_381D_P_2 */
8712 { "vpabsw", { XM
, EXx
} },
8713 { "(bad)", { XX
} },
8716 /* VEX_LEN_381E_P_2 */
8718 { "vpabsd", { XM
, EXx
} },
8719 { "(bad)", { XX
} },
8722 /* VEX_LEN_3820_P_2 */
8724 { "vpmovsxbw", { XM
, EXq
} },
8725 { "(bad)", { XX
} },
8728 /* VEX_LEN_3821_P_2 */
8730 { "vpmovsxbd", { XM
, EXd
} },
8731 { "(bad)", { XX
} },
8734 /* VEX_LEN_3822_P_2 */
8736 { "vpmovsxbq", { XM
, EXw
} },
8737 { "(bad)", { XX
} },
8740 /* VEX_LEN_3823_P_2 */
8742 { "vpmovsxwd", { XM
, EXq
} },
8743 { "(bad)", { XX
} },
8746 /* VEX_LEN_3824_P_2 */
8748 { "vpmovsxwq", { XM
, EXd
} },
8749 { "(bad)", { XX
} },
8752 /* VEX_LEN_3825_P_2 */
8754 { "vpmovsxdq", { XM
, EXq
} },
8755 { "(bad)", { XX
} },
8758 /* VEX_LEN_3828_P_2 */
8760 { "vpmuldq", { XM
, Vex128
, EXx
} },
8761 { "(bad)", { XX
} },
8764 /* VEX_LEN_3829_P_2 */
8766 { "vpcmpeqq", { XM
, Vex128
, EXx
} },
8767 { "(bad)", { XX
} },
8770 /* VEX_LEN_382A_P_2_M_0 */
8772 { "vmovntdqa", { XM
, Mx
} },
8773 { "(bad)", { XX
} },
8776 /* VEX_LEN_382B_P_2 */
8778 { "vpackusdw", { XM
, Vex128
, EXx
} },
8779 { "(bad)", { XX
} },
8782 /* VEX_LEN_3830_P_2 */
8784 { "vpmovzxbw", { XM
, EXq
} },
8785 { "(bad)", { XX
} },
8788 /* VEX_LEN_3831_P_2 */
8790 { "vpmovzxbd", { XM
, EXd
} },
8791 { "(bad)", { XX
} },
8794 /* VEX_LEN_3832_P_2 */
8796 { "vpmovzxbq", { XM
, EXw
} },
8797 { "(bad)", { XX
} },
8800 /* VEX_LEN_3833_P_2 */
8802 { "vpmovzxwd", { XM
, EXq
} },
8803 { "(bad)", { XX
} },
8806 /* VEX_LEN_3834_P_2 */
8808 { "vpmovzxwq", { XM
, EXd
} },
8809 { "(bad)", { XX
} },
8812 /* VEX_LEN_3835_P_2 */
8814 { "vpmovzxdq", { XM
, EXq
} },
8815 { "(bad)", { XX
} },
8818 /* VEX_LEN_3837_P_2 */
8820 { "vpcmpgtq", { XM
, Vex128
, EXx
} },
8821 { "(bad)", { XX
} },
8824 /* VEX_LEN_3838_P_2 */
8826 { "vpminsb", { XM
, Vex128
, EXx
} },
8827 { "(bad)", { XX
} },
8830 /* VEX_LEN_3839_P_2 */
8832 { "vpminsd", { XM
, Vex128
, EXx
} },
8833 { "(bad)", { XX
} },
8836 /* VEX_LEN_383A_P_2 */
8838 { "vpminuw", { XM
, Vex128
, EXx
} },
8839 { "(bad)", { XX
} },
8842 /* VEX_LEN_383B_P_2 */
8844 { "vpminud", { XM
, Vex128
, EXx
} },
8845 { "(bad)", { XX
} },
8848 /* VEX_LEN_383C_P_2 */
8850 { "vpmaxsb", { XM
, Vex128
, EXx
} },
8851 { "(bad)", { XX
} },
8854 /* VEX_LEN_383D_P_2 */
8856 { "vpmaxsd", { XM
, Vex128
, EXx
} },
8857 { "(bad)", { XX
} },
8860 /* VEX_LEN_383E_P_2 */
8862 { "vpmaxuw", { XM
, Vex128
, EXx
} },
8863 { "(bad)", { XX
} },
8866 /* VEX_LEN_383F_P_2 */
8868 { "vpmaxud", { XM
, Vex128
, EXx
} },
8869 { "(bad)", { XX
} },
8872 /* VEX_LEN_3840_P_2 */
8874 { "vpmulld", { XM
, Vex128
, EXx
} },
8875 { "(bad)", { XX
} },
8878 /* VEX_LEN_3841_P_2 */
8880 { "vphminposuw", { XM
, EXx
} },
8881 { "(bad)", { XX
} },
8884 /* VEX_LEN_38DB_P_2 */
8886 { "vaesimc", { XM
, EXx
} },
8887 { "(bad)", { XX
} },
8890 /* VEX_LEN_38DC_P_2 */
8892 { "vaesenc", { XM
, Vex128
, EXx
} },
8893 { "(bad)", { XX
} },
8896 /* VEX_LEN_38DD_P_2 */
8898 { "vaesenclast", { XM
, Vex128
, EXx
} },
8899 { "(bad)", { XX
} },
8902 /* VEX_LEN_38DE_P_2 */
8904 { "vaesdec", { XM
, Vex128
, EXx
} },
8905 { "(bad)", { XX
} },
8908 /* VEX_LEN_38DF_P_2 */
8910 { "vaesdeclast", { XM
, Vex128
, EXx
} },
8911 { "(bad)", { XX
} },
8914 /* VEX_LEN_3A06_P_2 */
8916 { "(bad)", { XX
} },
8917 { "vperm2f128", { XM
, Vex256
, EXx
, Ib
} },
8920 /* VEX_LEN_3A0A_P_2 */
8922 { "vroundss", { XM
, Vex128
, EXd
, Ib
} },
8923 { "(bad)", { XX
} },
8926 /* VEX_LEN_3A0B_P_2 */
8928 { "vroundsd", { XM
, Vex128
, EXq
, Ib
} },
8929 { "(bad)", { XX
} },
8932 /* VEX_LEN_3A0E_P_2 */
8934 { "vpblendw", { XM
, Vex128
, EXx
, Ib
} },
8935 { "(bad)", { XX
} },
8938 /* VEX_LEN_3A0F_P_2 */
8940 { "vpalignr", { XM
, Vex128
, EXx
, Ib
} },
8941 { "(bad)", { XX
} },
8944 /* VEX_LEN_3A14_P_2 */
8946 { "vpextrb", { Edqb
, XM
, Ib
} },
8947 { "(bad)", { XX
} },
8950 /* VEX_LEN_3A15_P_2 */
8952 { "vpextrw", { Edqw
, XM
, Ib
} },
8953 { "(bad)", { XX
} },
8956 /* VEX_LEN_3A16_P_2 */
8958 { "vpextrK", { Edq
, XM
, Ib
} },
8959 { "(bad)", { XX
} },
8962 /* VEX_LEN_3A17_P_2 */
8964 { "vextractps", { Edqd
, XM
, Ib
} },
8965 { "(bad)", { XX
} },
8968 /* VEX_LEN_3A18_P_2 */
8970 { "(bad)", { XX
} },
8971 { "vinsertf128", { XM
, Vex256
, EXxmm
, Ib
} },
8974 /* VEX_LEN_3A19_P_2 */
8976 { "(bad)", { XX
} },
8977 { "vextractf128", { EXxmm
, XM
, Ib
} },
8980 /* VEX_LEN_3A20_P_2 */
8982 { "vpinsrb", { XM
, Vex128
, Edqb
, Ib
} },
8983 { "(bad)", { XX
} },
8986 /* VEX_LEN_3A21_P_2 */
8988 { "vinsertps", { XM
, Vex128
, EXd
, Ib
} },
8989 { "(bad)", { XX
} },
8992 /* VEX_LEN_3A22_P_2 */
8994 { "vpinsrK", { XM
, Vex128
, Edq
, Ib
} },
8995 { "(bad)", { XX
} },
8998 /* VEX_LEN_3A41_P_2 */
9000 { "vdppd", { XM
, Vex128
, EXx
, Ib
} },
9001 { "(bad)", { XX
} },
9004 /* VEX_LEN_3A42_P_2 */
9006 { "vmpsadbw", { XM
, Vex128
, EXx
, Ib
} },
9007 { "(bad)", { XX
} },
9010 /* VEX_LEN_3A4C_P_2 */
9012 { "vpblendvb", { XM
, Vex128
, EXx
, XMVexI4
} },
9013 { "(bad)", { XX
} },
9016 /* VEX_LEN_3A60_P_2 */
9018 { "vpcmpestrm", { XM
, EXx
, Ib
} },
9019 { "(bad)", { XX
} },
9022 /* VEX_LEN_3A61_P_2 */
9024 { "vpcmpestri", { XM
, EXx
, Ib
} },
9025 { "(bad)", { XX
} },
9028 /* VEX_LEN_3A62_P_2 */
9030 { "vpcmpistrm", { XM
, EXx
, Ib
} },
9031 { "(bad)", { XX
} },
9034 /* VEX_LEN_3A63_P_2 */
9036 { "vpcmpistri", { XM
, EXx
, Ib
} },
9037 { "(bad)", { XX
} },
9040 /* VEX_LEN_3ADF_P_2 */
9042 { "vaeskeygenassist", { XM
, EXx
, Ib
} },
9043 { "(bad)", { XX
} },
9047 static const struct dis386 mod_table
[][2] = {
9050 { "leaS", { Gv
, M
} },
9051 { "(bad)", { XX
} },
9054 /* MOD_0F01_REG_0 */
9055 { X86_64_TABLE (X86_64_0F01_REG_0
) },
9056 { RM_TABLE (RM_0F01_REG_0
) },
9059 /* MOD_0F01_REG_1 */
9060 { X86_64_TABLE (X86_64_0F01_REG_1
) },
9061 { RM_TABLE (RM_0F01_REG_1
) },
9064 /* MOD_0F01_REG_2 */
9065 { X86_64_TABLE (X86_64_0F01_REG_2
) },
9066 { RM_TABLE (RM_0F01_REG_2
) },
9069 /* MOD_0F01_REG_3 */
9070 { X86_64_TABLE (X86_64_0F01_REG_3
) },
9071 { RM_TABLE (RM_0F01_REG_3
) },
9074 /* MOD_0F01_REG_7 */
9075 { "invlpg", { Mb
} },
9076 { RM_TABLE (RM_0F01_REG_7
) },
9079 /* MOD_0F12_PREFIX_0 */
9080 { "movlps", { XM
, EXq
} },
9081 { "movhlps", { XM
, EXq
} },
9085 { "movlpX", { EXq
, XM
} },
9086 { "(bad)", { XX
} },
9089 /* MOD_0F16_PREFIX_0 */
9090 { "movhps", { XM
, EXq
} },
9091 { "movlhps", { XM
, EXq
} },
9095 { "movhpX", { EXq
, XM
} },
9096 { "(bad)", { XX
} },
9099 /* MOD_0F18_REG_0 */
9100 { "prefetchnta", { Mb
} },
9101 { "(bad)", { XX
} },
9104 /* MOD_0F18_REG_1 */
9105 { "prefetcht0", { Mb
} },
9106 { "(bad)", { XX
} },
9109 /* MOD_0F18_REG_2 */
9110 { "prefetcht1", { Mb
} },
9111 { "(bad)", { XX
} },
9114 /* MOD_0F18_REG_3 */
9115 { "prefetcht2", { Mb
} },
9116 { "(bad)", { XX
} },
9120 { "(bad)", { XX
} },
9121 { "movZ", { Rm
, Cm
} },
9125 { "(bad)", { XX
} },
9126 { "movZ", { Rm
, Dm
} },
9130 { "(bad)", { XX
} },
9131 { "movZ", { Cm
, Rm
} },
9135 { "(bad)", { XX
} },
9136 { "movZ", { Dm
, Rm
} },
9140 { THREE_BYTE_TABLE (THREE_BYTE_0F24
) },
9141 { "movL", { Rd
, Td
} },
9145 { "(bad)", { XX
} },
9146 { "movL", { Td
, Rd
} },
9149 /* MOD_0F2B_PREFIX_0 */
9150 {"movntps", { Mx
, XM
} },
9151 { "(bad)", { XX
} },
9154 /* MOD_0F2B_PREFIX_1 */
9155 {"movntss", { Md
, XM
} },
9156 { "(bad)", { XX
} },
9159 /* MOD_0F2B_PREFIX_2 */
9160 {"movntpd", { Mx
, XM
} },
9161 { "(bad)", { XX
} },
9164 /* MOD_0F2B_PREFIX_3 */
9165 {"movntsd", { Mq
, XM
} },
9166 { "(bad)", { XX
} },
9170 { "(bad)", { XX
} },
9171 { "movmskpX", { Gdq
, XS
} },
9174 /* MOD_0F71_REG_2 */
9175 { "(bad)", { XX
} },
9176 { "psrlw", { MS
, Ib
} },
9179 /* MOD_0F71_REG_4 */
9180 { "(bad)", { XX
} },
9181 { "psraw", { MS
, Ib
} },
9184 /* MOD_0F71_REG_6 */
9185 { "(bad)", { XX
} },
9186 { "psllw", { MS
, Ib
} },
9189 /* MOD_0F72_REG_2 */
9190 { "(bad)", { XX
} },
9191 { "psrld", { MS
, Ib
} },
9194 /* MOD_0F72_REG_4 */
9195 { "(bad)", { XX
} },
9196 { "psrad", { MS
, Ib
} },
9199 /* MOD_0F72_REG_6 */
9200 { "(bad)", { XX
} },
9201 { "pslld", { MS
, Ib
} },
9204 /* MOD_0F73_REG_2 */
9205 { "(bad)", { XX
} },
9206 { "psrlq", { MS
, Ib
} },
9209 /* MOD_0F73_REG_3 */
9210 { "(bad)", { XX
} },
9211 { PREFIX_TABLE (PREFIX_0F73_REG_3
) },
9214 /* MOD_0F73_REG_6 */
9215 { "(bad)", { XX
} },
9216 { "psllq", { MS
, Ib
} },
9219 /* MOD_0F73_REG_7 */
9220 { "(bad)", { XX
} },
9221 { PREFIX_TABLE (PREFIX_0F73_REG_7
) },
9224 /* MOD_0FAE_REG_0 */
9225 { "fxsave", { M
} },
9226 { "(bad)", { XX
} },
9229 /* MOD_0FAE_REG_1 */
9230 { "fxrstor", { M
} },
9231 { "(bad)", { XX
} },
9234 /* MOD_0FAE_REG_2 */
9235 { "ldmxcsr", { Md
} },
9236 { "(bad)", { XX
} },
9239 /* MOD_0FAE_REG_3 */
9240 { "stmxcsr", { Md
} },
9241 { "(bad)", { XX
} },
9244 /* MOD_0FAE_REG_4 */
9246 { "(bad)", { XX
} },
9249 /* MOD_0FAE_REG_5 */
9250 { "xrstor", { M
} },
9251 { RM_TABLE (RM_0FAE_REG_5
) },
9254 /* MOD_0FAE_REG_6 */
9255 { "xsaveopt", { M
} },
9256 { RM_TABLE (RM_0FAE_REG_6
) },
9259 /* MOD_0FAE_REG_7 */
9260 { "clflush", { Mb
} },
9261 { RM_TABLE (RM_0FAE_REG_7
) },
9265 { "lssS", { Gv
, Mp
} },
9266 { "(bad)", { XX
} },
9270 { "lfsS", { Gv
, Mp
} },
9271 { "(bad)", { XX
} },
9275 { "lgsS", { Gv
, Mp
} },
9276 { "(bad)", { XX
} },
9279 /* MOD_0FC7_REG_6 */
9280 { PREFIX_TABLE (PREFIX_0FC7_REG_6
) },
9281 { "(bad)", { XX
} },
9284 /* MOD_0FC7_REG_7 */
9285 { "vmptrst", { Mq
} },
9286 { "(bad)", { XX
} },
9290 { "(bad)", { XX
} },
9291 { "pmovmskb", { Gdq
, MS
} },
9294 /* MOD_0FE7_PREFIX_2 */
9295 { "movntdq", { Mx
, XM
} },
9296 { "(bad)", { XX
} },
9299 /* MOD_0FF0_PREFIX_3 */
9300 { "lddqu", { XM
, M
} },
9301 { "(bad)", { XX
} },
9304 /* MOD_0F382A_PREFIX_2 */
9305 { "movntdqa", { XM
, Mx
} },
9306 { "(bad)", { XX
} },
9310 { "bound{S|}", { Gv
, Ma
} },
9311 { "(bad)", { XX
} },
9315 { "lesS", { Gv
, Mp
} },
9316 { VEX_C4_TABLE (VEX_0F
) },
9320 { "ldsS", { Gv
, Mp
} },
9321 { VEX_C5_TABLE (VEX_0F
) },
9324 /* MOD_VEX_12_PREFIX_0 */
9325 { VEX_LEN_TABLE (VEX_LEN_12_P_0_M_0
) },
9326 { VEX_LEN_TABLE (VEX_LEN_12_P_0_M_1
) },
9330 { VEX_LEN_TABLE (VEX_LEN_13_M_0
) },
9331 { "(bad)", { XX
} },
9334 /* MOD_VEX_16_PREFIX_0 */
9335 { VEX_LEN_TABLE (VEX_LEN_16_P_0_M_0
) },
9336 { VEX_LEN_TABLE (VEX_LEN_16_P_0_M_1
) },
9340 { VEX_LEN_TABLE (VEX_LEN_17_M_0
) },
9341 { "(bad)", { XX
} },
9345 { "vmovntpX", { Mx
, XM
} },
9346 { "(bad)", { XX
} },
9350 { "(bad)", { XX
} },
9351 { "vmovmskpX", { Gdq
, XS
} },
9354 /* MOD_VEX_71_REG_2 */
9355 { "(bad)", { XX
} },
9356 { PREFIX_TABLE (PREFIX_VEX_71_REG_2
) },
9359 /* MOD_VEX_71_REG_4 */
9360 { "(bad)", { XX
} },
9361 { PREFIX_TABLE (PREFIX_VEX_71_REG_4
) },
9364 /* MOD_VEX_71_REG_6 */
9365 { "(bad)", { XX
} },
9366 { PREFIX_TABLE (PREFIX_VEX_71_REG_6
) },
9369 /* MOD_VEX_72_REG_2 */
9370 { "(bad)", { XX
} },
9371 { PREFIX_TABLE (PREFIX_VEX_72_REG_2
) },
9374 /* MOD_VEX_72_REG_4 */
9375 { "(bad)", { XX
} },
9376 { PREFIX_TABLE (PREFIX_VEX_72_REG_4
) },
9379 /* MOD_VEX_72_REG_6 */
9380 { "(bad)", { XX
} },
9381 { PREFIX_TABLE (PREFIX_VEX_72_REG_6
) },
9384 /* MOD_VEX_73_REG_2 */
9385 { "(bad)", { XX
} },
9386 { PREFIX_TABLE (PREFIX_VEX_73_REG_2
) },
9389 /* MOD_VEX_73_REG_3 */
9390 { "(bad)", { XX
} },
9391 { PREFIX_TABLE (PREFIX_VEX_73_REG_3
) },
9394 /* MOD_VEX_73_REG_6 */
9395 { "(bad)", { XX
} },
9396 { PREFIX_TABLE (PREFIX_VEX_73_REG_6
) },
9399 /* MOD_VEX_73_REG_7 */
9400 { "(bad)", { XX
} },
9401 { PREFIX_TABLE (PREFIX_VEX_73_REG_7
) },
9404 /* MOD_VEX_AE_REG_2 */
9405 { VEX_LEN_TABLE (VEX_LEN_AE_R_2_M_0
) },
9406 { "(bad)", { XX
} },
9409 /* MOD_VEX_AE_REG_3 */
9410 { VEX_LEN_TABLE (VEX_LEN_AE_R_3_M_0
) },
9411 { "(bad)", { XX
} },
9414 /* MOD_VEX_D7_PREFIX_2 */
9415 { "(bad)", { XX
} },
9416 { VEX_LEN_TABLE (VEX_LEN_D7_P_2_M_1
) },
9419 /* MOD_VEX_E7_PREFIX_2 */
9420 { "vmovntdq", { Mx
, XM
} },
9421 { "(bad)", { XX
} },
9424 /* MOD_VEX_F0_PREFIX_3 */
9425 { "vlddqu", { XM
, M
} },
9426 { "(bad)", { XX
} },
9429 /* MOD_VEX_3818_PREFIX_2 */
9430 { "vbroadcastss", { XM
, Md
} },
9431 { "(bad)", { XX
} },
9434 /* MOD_VEX_3819_PREFIX_2 */
9435 { VEX_LEN_TABLE (VEX_LEN_3819_P_2_M_0
) },
9436 { "(bad)", { XX
} },
9439 /* MOD_VEX_381A_PREFIX_2 */
9440 { VEX_LEN_TABLE (VEX_LEN_381A_P_2_M_0
) },
9441 { "(bad)", { XX
} },
9444 /* MOD_VEX_382A_PREFIX_2 */
9445 { VEX_LEN_TABLE (VEX_LEN_382A_P_2_M_0
) },
9446 { "(bad)", { XX
} },
9449 /* MOD_VEX_382C_PREFIX_2 */
9450 { "vmaskmovps", { XM
, Vex
, Mx
} },
9451 { "(bad)", { XX
} },
9454 /* MOD_VEX_382D_PREFIX_2 */
9455 { "vmaskmovpd", { XM
, Vex
, Mx
} },
9456 { "(bad)", { XX
} },
9459 /* MOD_VEX_382E_PREFIX_2 */
9460 { "vmaskmovps", { Mx
, Vex
, XM
} },
9461 { "(bad)", { XX
} },
9464 /* MOD_VEX_382F_PREFIX_2 */
9465 { "vmaskmovpd", { Mx
, Vex
, XM
} },
9466 { "(bad)", { XX
} },
9470 static const struct dis386 rm_table
[][8] = {
9473 { "(bad)", { XX
} },
9474 { "vmcall", { Skip_MODRM
} },
9475 { "vmlaunch", { Skip_MODRM
} },
9476 { "vmresume", { Skip_MODRM
} },
9477 { "vmxoff", { Skip_MODRM
} },
9478 { "(bad)", { XX
} },
9479 { "(bad)", { XX
} },
9480 { "(bad)", { XX
} },
9484 { "monitor", { { OP_Monitor
, 0 } } },
9485 { "mwait", { { OP_Mwait
, 0 } } },
9486 { "(bad)", { XX
} },
9487 { "(bad)", { XX
} },
9488 { "(bad)", { XX
} },
9489 { "(bad)", { XX
} },
9490 { "(bad)", { XX
} },
9491 { "(bad)", { XX
} },
9495 { "xgetbv", { Skip_MODRM
} },
9496 { "xsetbv", { Skip_MODRM
} },
9497 { "(bad)", { XX
} },
9498 { "(bad)", { XX
} },
9499 { "(bad)", { XX
} },
9500 { "(bad)", { XX
} },
9501 { "(bad)", { XX
} },
9502 { "(bad)", { XX
} },
9506 { "vmrun", { Skip_MODRM
} },
9507 { "vmmcall", { Skip_MODRM
} },
9508 { "vmload", { Skip_MODRM
} },
9509 { "vmsave", { Skip_MODRM
} },
9510 { "stgi", { Skip_MODRM
} },
9511 { "clgi", { Skip_MODRM
} },
9512 { "skinit", { Skip_MODRM
} },
9513 { "invlpga", { Skip_MODRM
} },
9517 { "swapgs", { Skip_MODRM
} },
9518 { "rdtscp", { Skip_MODRM
} },
9519 { "(bad)", { XX
} },
9520 { "(bad)", { XX
} },
9521 { "(bad)", { XX
} },
9522 { "(bad)", { XX
} },
9523 { "(bad)", { XX
} },
9524 { "(bad)", { XX
} },
9528 { "lfence", { Skip_MODRM
} },
9529 { "(bad)", { XX
} },
9530 { "(bad)", { XX
} },
9531 { "(bad)", { XX
} },
9532 { "(bad)", { XX
} },
9533 { "(bad)", { XX
} },
9534 { "(bad)", { XX
} },
9535 { "(bad)", { XX
} },
9539 { "mfence", { Skip_MODRM
} },
9540 { "(bad)", { XX
} },
9541 { "(bad)", { XX
} },
9542 { "(bad)", { XX
} },
9543 { "(bad)", { XX
} },
9544 { "(bad)", { XX
} },
9545 { "(bad)", { XX
} },
9546 { "(bad)", { XX
} },
9550 { "sfence", { Skip_MODRM
} },
9551 { "(bad)", { XX
} },
9552 { "(bad)", { XX
} },
9553 { "(bad)", { XX
} },
9554 { "(bad)", { XX
} },
9555 { "(bad)", { XX
} },
9556 { "(bad)", { XX
} },
9557 { "(bad)", { XX
} },
9561 #define INTERNAL_DISASSEMBLER_ERROR _("<internal disassembler error>")
9575 FETCH_DATA (the_info
, codep
+ 1);
9579 /* REX prefixes family. */
9596 if (address_mode
== mode_64bit
)
9602 prefixes
|= PREFIX_REPZ
;
9605 prefixes
|= PREFIX_REPNZ
;
9608 prefixes
|= PREFIX_LOCK
;
9611 prefixes
|= PREFIX_CS
;
9614 prefixes
|= PREFIX_SS
;
9617 prefixes
|= PREFIX_DS
;
9620 prefixes
|= PREFIX_ES
;
9623 prefixes
|= PREFIX_FS
;
9626 prefixes
|= PREFIX_GS
;
9629 prefixes
|= PREFIX_DATA
;
9632 prefixes
|= PREFIX_ADDR
;
9635 /* fwait is really an instruction. If there are prefixes
9636 before the fwait, they belong to the fwait, *not* to the
9637 following instruction. */
9638 if (prefixes
|| rex
)
9640 prefixes
|= PREFIX_FWAIT
;
9644 prefixes
= PREFIX_FWAIT
;
9649 /* Rex is ignored when followed by another prefix. */
9661 /* Return the name of the prefix byte PREF, or NULL if PREF is not a
9665 prefix_name (int pref
, int sizeflag
)
9667 static const char *rexes
[16] =
9672 "rex.XB", /* 0x43 */
9674 "rex.RB", /* 0x45 */
9675 "rex.RX", /* 0x46 */
9676 "rex.RXB", /* 0x47 */
9678 "rex.WB", /* 0x49 */
9679 "rex.WX", /* 0x4a */
9680 "rex.WXB", /* 0x4b */
9681 "rex.WR", /* 0x4c */
9682 "rex.WRB", /* 0x4d */
9683 "rex.WRX", /* 0x4e */
9684 "rex.WRXB", /* 0x4f */
9689 /* REX prefixes family. */
9706 return rexes
[pref
- 0x40];
9726 return (sizeflag
& DFLAG
) ? "data16" : "data32";
9728 if (address_mode
== mode_64bit
)
9729 return (sizeflag
& AFLAG
) ? "addr32" : "addr64";
9731 return (sizeflag
& AFLAG
) ? "addr16" : "addr32";
9739 static char op_out
[MAX_OPERANDS
][100];
9740 static int op_ad
, op_index
[MAX_OPERANDS
];
9741 static int two_source_ops
;
9742 static bfd_vma op_address
[MAX_OPERANDS
];
9743 static bfd_vma op_riprel
[MAX_OPERANDS
];
9744 static bfd_vma start_pc
;
9747 * On the 386's of 1988, the maximum length of an instruction is 15 bytes.
9748 * (see topic "Redundant prefixes" in the "Differences from 8086"
9749 * section of the "Virtual 8086 Mode" chapter.)
9750 * 'pc' should be the address of this instruction, it will
9751 * be used to print the target address if this is a relative jump or call
9752 * The function returns the length of this instruction in bytes.
9755 static char intel_syntax
;
9756 static char intel_mnemonic
= !SYSV386_COMPAT
;
9757 static char open_char
;
9758 static char close_char
;
9759 static char separator_char
;
9760 static char scale_char
;
9762 /* Here for backwards compatibility. When gdb stops using
9763 print_insn_i386_att and print_insn_i386_intel these functions can
9764 disappear, and print_insn_i386 be merged into print_insn. */
9766 print_insn_i386_att (bfd_vma pc
, disassemble_info
*info
)
9770 return print_insn (pc
, info
);
9774 print_insn_i386_intel (bfd_vma pc
, disassemble_info
*info
)
9778 return print_insn (pc
, info
);
9782 print_insn_i386 (bfd_vma pc
, disassemble_info
*info
)
9786 return print_insn (pc
, info
);
9790 print_i386_disassembler_options (FILE *stream
)
9792 fprintf (stream
, _("\n\
9793 The following i386/x86-64 specific disassembler options are supported for use\n\
9794 with the -M switch (multiple options should be separated by commas):\n"));
9796 fprintf (stream
, _(" x86-64 Disassemble in 64bit mode\n"));
9797 fprintf (stream
, _(" i386 Disassemble in 32bit mode\n"));
9798 fprintf (stream
, _(" i8086 Disassemble in 16bit mode\n"));
9799 fprintf (stream
, _(" att Display instruction in AT&T syntax\n"));
9800 fprintf (stream
, _(" intel Display instruction in Intel syntax\n"));
9801 fprintf (stream
, _(" att-mnemonic\n"
9802 " Display instruction in AT&T mnemonic\n"));
9803 fprintf (stream
, _(" intel-mnemonic\n"
9804 " Display instruction in Intel mnemonic\n"));
9805 fprintf (stream
, _(" addr64 Assume 64bit address size\n"));
9806 fprintf (stream
, _(" addr32 Assume 32bit address size\n"));
9807 fprintf (stream
, _(" addr16 Assume 16bit address size\n"));
9808 fprintf (stream
, _(" data32 Assume 32bit data size\n"));
9809 fprintf (stream
, _(" data16 Assume 16bit data size\n"));
9810 fprintf (stream
, _(" suffix Always display instruction suffix in AT&T syntax\n"));
9813 /* Get a pointer to struct dis386 with a valid name. */
9815 static const struct dis386
*
9816 get_valid_dis386 (const struct dis386
*dp
, disassemble_info
*info
)
9818 int index
, vex_table_index
;
9820 if (dp
->name
!= NULL
)
9823 switch (dp
->op
[0].bytemode
)
9826 dp
= ®_table
[dp
->op
[1].bytemode
][modrm
.reg
];
9830 index
= modrm
.mod
== 0x3 ? 1 : 0;
9831 dp
= &mod_table
[dp
->op
[1].bytemode
][index
];
9835 dp
= &rm_table
[dp
->op
[1].bytemode
][modrm
.rm
];
9838 case USE_PREFIX_TABLE
:
9841 /* The prefix in VEX is implicit. */
9847 case REPE_PREFIX_OPCODE
:
9850 case DATA_PREFIX_OPCODE
:
9853 case REPNE_PREFIX_OPCODE
:
9864 used_prefixes
|= (prefixes
& PREFIX_REPZ
);
9865 if (prefixes
& PREFIX_REPZ
)
9872 /* We should check PREFIX_REPNZ and PREFIX_REPZ before
9874 used_prefixes
|= (prefixes
& PREFIX_REPNZ
);
9875 if (prefixes
& PREFIX_REPNZ
)
9878 repnz_prefix
= NULL
;
9882 used_prefixes
|= (prefixes
& PREFIX_DATA
);
9883 if (prefixes
& PREFIX_DATA
)
9891 dp
= &prefix_table
[dp
->op
[1].bytemode
][index
];
9894 case USE_X86_64_TABLE
:
9895 index
= address_mode
== mode_64bit
? 1 : 0;
9896 dp
= &x86_64_table
[dp
->op
[1].bytemode
][index
];
9899 case USE_3BYTE_TABLE
:
9900 FETCH_DATA (info
, codep
+ 2);
9902 dp
= &three_byte_table
[dp
->op
[1].bytemode
][index
];
9903 modrm
.mod
= (*codep
>> 6) & 3;
9904 modrm
.reg
= (*codep
>> 3) & 7;
9905 modrm
.rm
= *codep
& 7;
9908 case USE_VEX_LEN_TABLE
:
9925 dp
= &vex_len_table
[dp
->op
[1].bytemode
][index
];
9928 case USE_VEX_C4_TABLE
:
9929 FETCH_DATA (info
, codep
+ 3);
9930 /* All bits in the REX prefix are ignored. */
9932 rex
= ~(*codep
>> 5) & 0x7;
9933 switch ((*codep
& 0x1f))
9938 vex_table_index
= 0;
9941 vex_table_index
= 1;
9944 vex_table_index
= 2;
9948 vex
.w
= *codep
& 0x80;
9949 if (vex
.w
&& address_mode
== mode_64bit
)
9952 vex
.register_specifier
= (~(*codep
>> 3)) & 0xf;
9953 if (address_mode
!= mode_64bit
9954 && vex
.register_specifier
> 0x7)
9957 vex
.length
= (*codep
& 0x4) ? 256 : 128;
9958 switch ((*codep
& 0x3))
9964 vex
.prefix
= DATA_PREFIX_OPCODE
;
9967 vex
.prefix
= REPE_PREFIX_OPCODE
;
9970 vex
.prefix
= REPNE_PREFIX_OPCODE
;
9977 dp
= &vex_table
[vex_table_index
][index
];
9978 /* There is no MODRM byte for VEX [82|77]. */
9979 if (index
!= 0x77 && index
!= 0x82)
9981 FETCH_DATA (info
, codep
+ 1);
9982 modrm
.mod
= (*codep
>> 6) & 3;
9983 modrm
.reg
= (*codep
>> 3) & 7;
9984 modrm
.rm
= *codep
& 7;
9988 case USE_VEX_C5_TABLE
:
9989 FETCH_DATA (info
, codep
+ 2);
9990 /* All bits in the REX prefix are ignored. */
9992 rex
= (*codep
& 0x80) ? 0 : REX_R
;
9994 vex
.register_specifier
= (~(*codep
>> 3)) & 0xf;
9995 if (address_mode
!= mode_64bit
9996 && vex
.register_specifier
> 0x7)
9999 vex
.length
= (*codep
& 0x4) ? 256 : 128;
10000 switch ((*codep
& 0x3))
10006 vex
.prefix
= DATA_PREFIX_OPCODE
;
10009 vex
.prefix
= REPE_PREFIX_OPCODE
;
10012 vex
.prefix
= REPNE_PREFIX_OPCODE
;
10019 dp
= &vex_table
[dp
->op
[1].bytemode
][index
];
10020 /* There is no MODRM byte for VEX [82|77]. */
10021 if (index
!= 0x77 && index
!= 0x82)
10023 FETCH_DATA (info
, codep
+ 1);
10024 modrm
.mod
= (*codep
>> 6) & 3;
10025 modrm
.reg
= (*codep
>> 3) & 7;
10026 modrm
.rm
= *codep
& 7;
10031 oappend (INTERNAL_DISASSEMBLER_ERROR
);
10035 if (dp
->name
!= NULL
)
10038 return get_valid_dis386 (dp
, info
);
10042 print_insn (bfd_vma pc
, disassemble_info
*info
)
10044 const struct dis386
*dp
;
10046 char *op_txt
[MAX_OPERANDS
];
10050 struct dis_private priv
;
10052 char prefix_obuf
[32];
10053 char *prefix_obufp
;
10055 if (info
->mach
== bfd_mach_x86_64_intel_syntax
10056 || info
->mach
== bfd_mach_x86_64
)
10057 address_mode
= mode_64bit
;
10059 address_mode
= mode_32bit
;
10061 if (intel_syntax
== (char) -1)
10062 intel_syntax
= (info
->mach
== bfd_mach_i386_i386_intel_syntax
10063 || info
->mach
== bfd_mach_x86_64_intel_syntax
);
10065 if (info
->mach
== bfd_mach_i386_i386
10066 || info
->mach
== bfd_mach_x86_64
10067 || info
->mach
== bfd_mach_i386_i386_intel_syntax
10068 || info
->mach
== bfd_mach_x86_64_intel_syntax
)
10069 priv
.orig_sizeflag
= AFLAG
| DFLAG
;
10070 else if (info
->mach
== bfd_mach_i386_i8086
)
10071 priv
.orig_sizeflag
= 0;
10075 for (p
= info
->disassembler_options
; p
!= NULL
; )
10077 if (CONST_STRNEQ (p
, "x86-64"))
10079 address_mode
= mode_64bit
;
10080 priv
.orig_sizeflag
= AFLAG
| DFLAG
;
10082 else if (CONST_STRNEQ (p
, "i386"))
10084 address_mode
= mode_32bit
;
10085 priv
.orig_sizeflag
= AFLAG
| DFLAG
;
10087 else if (CONST_STRNEQ (p
, "i8086"))
10089 address_mode
= mode_16bit
;
10090 priv
.orig_sizeflag
= 0;
10092 else if (CONST_STRNEQ (p
, "intel"))
10095 if (CONST_STRNEQ (p
+ 5, "-mnemonic"))
10096 intel_mnemonic
= 1;
10098 else if (CONST_STRNEQ (p
, "att"))
10101 if (CONST_STRNEQ (p
+ 3, "-mnemonic"))
10102 intel_mnemonic
= 0;
10104 else if (CONST_STRNEQ (p
, "addr"))
10106 if (address_mode
== mode_64bit
)
10108 if (p
[4] == '3' && p
[5] == '2')
10109 priv
.orig_sizeflag
&= ~AFLAG
;
10110 else if (p
[4] == '6' && p
[5] == '4')
10111 priv
.orig_sizeflag
|= AFLAG
;
10115 if (p
[4] == '1' && p
[5] == '6')
10116 priv
.orig_sizeflag
&= ~AFLAG
;
10117 else if (p
[4] == '3' && p
[5] == '2')
10118 priv
.orig_sizeflag
|= AFLAG
;
10121 else if (CONST_STRNEQ (p
, "data"))
10123 if (p
[4] == '1' && p
[5] == '6')
10124 priv
.orig_sizeflag
&= ~DFLAG
;
10125 else if (p
[4] == '3' && p
[5] == '2')
10126 priv
.orig_sizeflag
|= DFLAG
;
10128 else if (CONST_STRNEQ (p
, "suffix"))
10129 priv
.orig_sizeflag
|= SUFFIX_ALWAYS
;
10131 p
= strchr (p
, ',');
10138 names64
= intel_names64
;
10139 names32
= intel_names32
;
10140 names16
= intel_names16
;
10141 names8
= intel_names8
;
10142 names8rex
= intel_names8rex
;
10143 names_seg
= intel_names_seg
;
10144 index64
= intel_index64
;
10145 index32
= intel_index32
;
10146 index16
= intel_index16
;
10149 separator_char
= '+';
10154 names64
= att_names64
;
10155 names32
= att_names32
;
10156 names16
= att_names16
;
10157 names8
= att_names8
;
10158 names8rex
= att_names8rex
;
10159 names_seg
= att_names_seg
;
10160 index64
= att_index64
;
10161 index32
= att_index32
;
10162 index16
= att_index16
;
10165 separator_char
= ',';
10169 /* The output looks better if we put 7 bytes on a line, since that
10170 puts most long word instructions on a single line. */
10171 info
->bytes_per_line
= 7;
10173 info
->private_data
= &priv
;
10174 priv
.max_fetched
= priv
.the_buffer
;
10175 priv
.insn_start
= pc
;
10178 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
10186 start_codep
= priv
.the_buffer
;
10187 codep
= priv
.the_buffer
;
10189 if (setjmp (priv
.bailout
) != 0)
10193 /* Getting here means we tried for data but didn't get it. That
10194 means we have an incomplete instruction of some sort. Just
10195 print the first byte as a prefix or a .byte pseudo-op. */
10196 if (codep
> priv
.the_buffer
)
10198 name
= prefix_name (priv
.the_buffer
[0], priv
.orig_sizeflag
);
10200 (*info
->fprintf_func
) (info
->stream
, "%s", name
);
10203 /* Just print the first byte as a .byte instruction. */
10204 (*info
->fprintf_func
) (info
->stream
, ".byte 0x%x",
10205 (unsigned int) priv
.the_buffer
[0]);
10217 insn_codep
= codep
;
10218 sizeflag
= priv
.orig_sizeflag
;
10220 FETCH_DATA (info
, codep
+ 1);
10221 two_source_ops
= (*codep
== 0x62) || (*codep
== 0xc8);
10223 if (((prefixes
& PREFIX_FWAIT
)
10224 && ((*codep
< 0xd8) || (*codep
> 0xdf)))
10225 || (rex
&& rex_used
))
10229 /* fwait not followed by floating point instruction, or rex followed
10230 by other prefixes. Print the first prefix. */
10231 name
= prefix_name (priv
.the_buffer
[0], priv
.orig_sizeflag
);
10233 name
= INTERNAL_DISASSEMBLER_ERROR
;
10234 (*info
->fprintf_func
) (info
->stream
, "%s", name
);
10239 if (*codep
== 0x0f)
10241 unsigned char threebyte
;
10242 FETCH_DATA (info
, codep
+ 2);
10243 threebyte
= *++codep
;
10244 dp
= &dis386_twobyte
[threebyte
];
10245 need_modrm
= twobyte_has_modrm
[*codep
];
10250 dp
= &dis386
[*codep
];
10251 need_modrm
= onebyte_has_modrm
[*codep
];
10255 if ((prefixes
& PREFIX_REPZ
))
10257 repz_prefix
= "repz ";
10258 used_prefixes
|= PREFIX_REPZ
;
10261 repz_prefix
= NULL
;
10263 if ((prefixes
& PREFIX_REPNZ
))
10265 repnz_prefix
= "repnz ";
10266 used_prefixes
|= PREFIX_REPNZ
;
10269 repnz_prefix
= NULL
;
10271 if ((prefixes
& PREFIX_LOCK
))
10273 lock_prefix
= "lock ";
10274 used_prefixes
|= PREFIX_LOCK
;
10277 lock_prefix
= NULL
;
10279 addr_prefix
= NULL
;
10280 if (prefixes
& PREFIX_ADDR
)
10283 if (dp
->op
[2].bytemode
!= loop_jcxz_mode
|| intel_syntax
)
10285 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
10286 addr_prefix
= "addr32 ";
10288 addr_prefix
= "addr16 ";
10289 used_prefixes
|= PREFIX_ADDR
;
10293 data_prefix
= NULL
;
10294 if ((prefixes
& PREFIX_DATA
))
10297 if (dp
->op
[2].bytemode
== cond_jump_mode
10298 && dp
->op
[0].bytemode
== v_mode
10301 if (sizeflag
& DFLAG
)
10302 data_prefix
= "data32 ";
10304 data_prefix
= "data16 ";
10305 used_prefixes
|= PREFIX_DATA
;
10311 FETCH_DATA (info
, codep
+ 1);
10312 modrm
.mod
= (*codep
>> 6) & 3;
10313 modrm
.reg
= (*codep
>> 3) & 7;
10314 modrm
.rm
= *codep
& 7;
10317 if (dp
->name
== NULL
&& dp
->op
[0].bytemode
== FLOATCODE
)
10319 dofloat (sizeflag
);
10326 dp
= get_valid_dis386 (dp
, info
);
10327 if (dp
!= NULL
&& putop (dp
->name
, sizeflag
) == 0)
10329 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
10332 op_ad
= MAX_OPERANDS
- 1 - i
;
10334 (*dp
->op
[i
].rtn
) (dp
->op
[i
].bytemode
, sizeflag
);
10339 /* See if any prefixes were not used. If so, print the first one
10340 separately. If we don't do this, we'll wind up printing an
10341 instruction stream which does not precisely correspond to the
10342 bytes we are disassembling. */
10343 if ((prefixes
& ~used_prefixes
) != 0)
10347 name
= prefix_name (priv
.the_buffer
[0], priv
.orig_sizeflag
);
10349 name
= INTERNAL_DISASSEMBLER_ERROR
;
10350 (*info
->fprintf_func
) (info
->stream
, "%s", name
);
10353 if ((rex_original
& ~rex_used
) || rex_ignored
)
10356 name
= prefix_name (rex_original
, priv
.orig_sizeflag
);
10358 name
= INTERNAL_DISASSEMBLER_ERROR
;
10359 (*info
->fprintf_func
) (info
->stream
, "%s ", name
);
10362 prefix_obuf
[0] = 0;
10363 prefix_obufp
= prefix_obuf
;
10365 prefix_obufp
= stpcpy (prefix_obufp
, lock_prefix
);
10367 prefix_obufp
= stpcpy (prefix_obufp
, repz_prefix
);
10369 prefix_obufp
= stpcpy (prefix_obufp
, repnz_prefix
);
10371 prefix_obufp
= stpcpy (prefix_obufp
, addr_prefix
);
10373 prefix_obufp
= stpcpy (prefix_obufp
, data_prefix
);
10375 if (prefix_obuf
[0] != 0)
10376 (*info
->fprintf_func
) (info
->stream
, "%s", prefix_obuf
);
10378 obufp
= mnemonicendp
;
10379 for (i
= strlen (obuf
) + strlen (prefix_obuf
); i
< 6; i
++)
10382 (*info
->fprintf_func
) (info
->stream
, "%s", obuf
);
10384 /* The enter and bound instructions are printed with operands in the same
10385 order as the intel book; everything else is printed in reverse order. */
10386 if (intel_syntax
|| two_source_ops
)
10390 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
10391 op_txt
[i
] = op_out
[i
];
10393 for (i
= 0; i
< (MAX_OPERANDS
>> 1); ++i
)
10395 op_ad
= op_index
[i
];
10396 op_index
[i
] = op_index
[MAX_OPERANDS
- 1 - i
];
10397 op_index
[MAX_OPERANDS
- 1 - i
] = op_ad
;
10398 riprel
= op_riprel
[i
];
10399 op_riprel
[i
] = op_riprel
[MAX_OPERANDS
- 1 - i
];
10400 op_riprel
[MAX_OPERANDS
- 1 - i
] = riprel
;
10405 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
10406 op_txt
[MAX_OPERANDS
- 1 - i
] = op_out
[i
];
10410 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
10414 (*info
->fprintf_func
) (info
->stream
, ",");
10415 if (op_index
[i
] != -1 && !op_riprel
[i
])
10416 (*info
->print_address_func
) ((bfd_vma
) op_address
[op_index
[i
]], info
);
10418 (*info
->fprintf_func
) (info
->stream
, "%s", op_txt
[i
]);
10422 for (i
= 0; i
< MAX_OPERANDS
; i
++)
10423 if (op_index
[i
] != -1 && op_riprel
[i
])
10425 (*info
->fprintf_func
) (info
->stream
, " # ");
10426 (*info
->print_address_func
) ((bfd_vma
) (start_pc
+ codep
- start_codep
10427 + op_address
[op_index
[i
]]), info
);
10430 return codep
- priv
.the_buffer
;
10433 static const char *float_mem
[] = {
10508 static const unsigned char float_mem_mode
[] = {
10583 #define ST { OP_ST, 0 }
10584 #define STi { OP_STi, 0 }
10586 #define FGRPd9_2 NULL, { { NULL, 0 } }
10587 #define FGRPd9_4 NULL, { { NULL, 1 } }
10588 #define FGRPd9_5 NULL, { { NULL, 2 } }
10589 #define FGRPd9_6 NULL, { { NULL, 3 } }
10590 #define FGRPd9_7 NULL, { { NULL, 4 } }
10591 #define FGRPda_5 NULL, { { NULL, 5 } }
10592 #define FGRPdb_4 NULL, { { NULL, 6 } }
10593 #define FGRPde_3 NULL, { { NULL, 7 } }
10594 #define FGRPdf_4 NULL, { { NULL, 8 } }
10596 static const struct dis386 float_reg
[][8] = {
10599 { "fadd", { ST
, STi
} },
10600 { "fmul", { ST
, STi
} },
10601 { "fcom", { STi
} },
10602 { "fcomp", { STi
} },
10603 { "fsub", { ST
, STi
} },
10604 { "fsubr", { ST
, STi
} },
10605 { "fdiv", { ST
, STi
} },
10606 { "fdivr", { ST
, STi
} },
10610 { "fld", { STi
} },
10611 { "fxch", { STi
} },
10613 { "(bad)", { XX
} },
10621 { "fcmovb", { ST
, STi
} },
10622 { "fcmove", { ST
, STi
} },
10623 { "fcmovbe",{ ST
, STi
} },
10624 { "fcmovu", { ST
, STi
} },
10625 { "(bad)", { XX
} },
10627 { "(bad)", { XX
} },
10628 { "(bad)", { XX
} },
10632 { "fcmovnb",{ ST
, STi
} },
10633 { "fcmovne",{ ST
, STi
} },
10634 { "fcmovnbe",{ ST
, STi
} },
10635 { "fcmovnu",{ ST
, STi
} },
10637 { "fucomi", { ST
, STi
} },
10638 { "fcomi", { ST
, STi
} },
10639 { "(bad)", { XX
} },
10643 { "fadd", { STi
, ST
} },
10644 { "fmul", { STi
, ST
} },
10645 { "(bad)", { XX
} },
10646 { "(bad)", { XX
} },
10647 { "fsub!M", { STi
, ST
} },
10648 { "fsubM", { STi
, ST
} },
10649 { "fdiv!M", { STi
, ST
} },
10650 { "fdivM", { STi
, ST
} },
10654 { "ffree", { STi
} },
10655 { "(bad)", { XX
} },
10656 { "fst", { STi
} },
10657 { "fstp", { STi
} },
10658 { "fucom", { STi
} },
10659 { "fucomp", { STi
} },
10660 { "(bad)", { XX
} },
10661 { "(bad)", { XX
} },
10665 { "faddp", { STi
, ST
} },
10666 { "fmulp", { STi
, ST
} },
10667 { "(bad)", { XX
} },
10669 { "fsub!Mp", { STi
, ST
} },
10670 { "fsubMp", { STi
, ST
} },
10671 { "fdiv!Mp", { STi
, ST
} },
10672 { "fdivMp", { STi
, ST
} },
10676 { "ffreep", { STi
} },
10677 { "(bad)", { XX
} },
10678 { "(bad)", { XX
} },
10679 { "(bad)", { XX
} },
10681 { "fucomip", { ST
, STi
} },
10682 { "fcomip", { ST
, STi
} },
10683 { "(bad)", { XX
} },
10687 static char *fgrps
[][8] = {
10690 "fnop","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10695 "fchs","fabs","(bad)","(bad)","ftst","fxam","(bad)","(bad)",
10700 "fld1","fldl2t","fldl2e","fldpi","fldlg2","fldln2","fldz","(bad)",
10705 "f2xm1","fyl2x","fptan","fpatan","fxtract","fprem1","fdecstp","fincstp",
10710 "fprem","fyl2xp1","fsqrt","fsincos","frndint","fscale","fsin","fcos",
10715 "(bad)","fucompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10720 "feni(287 only)","fdisi(287 only)","fNclex","fNinit",
10721 "fNsetpm(287 only)","(bad)","(bad)","(bad)",
10726 "(bad)","fcompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10731 "fNstsw","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10736 swap_operand (void)
10738 mnemonicendp
[0] = '.';
10739 mnemonicendp
[1] = 's';
10744 OP_Skip_MODRM (int bytemode ATTRIBUTE_UNUSED
,
10745 int sizeflag ATTRIBUTE_UNUSED
)
10747 /* Skip mod/rm byte. */
10753 dofloat (int sizeflag
)
10755 const struct dis386
*dp
;
10756 unsigned char floatop
;
10758 floatop
= codep
[-1];
10760 if (modrm
.mod
!= 3)
10762 int fp_indx
= (floatop
- 0xd8) * 8 + modrm
.reg
;
10764 putop (float_mem
[fp_indx
], sizeflag
);
10767 OP_E (float_mem_mode
[fp_indx
], sizeflag
);
10770 /* Skip mod/rm byte. */
10774 dp
= &float_reg
[floatop
- 0xd8][modrm
.reg
];
10775 if (dp
->name
== NULL
)
10777 putop (fgrps
[dp
->op
[0].bytemode
][modrm
.rm
], sizeflag
);
10779 /* Instruction fnstsw is only one with strange arg. */
10780 if (floatop
== 0xdf && codep
[-1] == 0xe0)
10781 strcpy (op_out
[0], names16
[0]);
10785 putop (dp
->name
, sizeflag
);
10790 (*dp
->op
[0].rtn
) (dp
->op
[0].bytemode
, sizeflag
);
10795 (*dp
->op
[1].rtn
) (dp
->op
[1].bytemode
, sizeflag
);
10800 OP_ST (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
10802 oappend ("%st" + intel_syntax
);
10806 OP_STi (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
10808 sprintf (scratchbuf
, "%%st(%d)", modrm
.rm
);
10809 oappend (scratchbuf
+ intel_syntax
);
10812 /* Capital letters in template are macros. */
10814 putop (const char *template, int sizeflag
)
10819 unsigned int l
= 0, len
= 1;
10822 #define SAVE_LAST(c) \
10823 if (l < len && l < sizeof (last)) \
10828 for (p
= template; *p
; p
++)
10845 while (*++p
!= '|')
10846 if (*p
== '}' || *p
== '\0')
10849 /* Fall through. */
10854 while (*++p
!= '}')
10865 if (modrm
.mod
!= 3 || (sizeflag
& SUFFIX_ALWAYS
))
10871 if (sizeflag
& SUFFIX_ALWAYS
)
10875 if (intel_syntax
&& !alt
)
10877 if ((prefixes
& PREFIX_DATA
) || (sizeflag
& SUFFIX_ALWAYS
))
10879 if (sizeflag
& DFLAG
)
10880 *obufp
++ = intel_syntax
? 'd' : 'l';
10882 *obufp
++ = intel_syntax
? 'w' : 's';
10883 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10887 if (intel_syntax
|| !(sizeflag
& SUFFIX_ALWAYS
))
10890 if (modrm
.mod
== 3)
10894 else if (sizeflag
& DFLAG
)
10895 *obufp
++ = intel_syntax
? 'd' : 'l';
10898 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10903 case 'E': /* For jcxz/jecxz */
10904 if (address_mode
== mode_64bit
)
10906 if (sizeflag
& AFLAG
)
10912 if (sizeflag
& AFLAG
)
10914 used_prefixes
|= (prefixes
& PREFIX_ADDR
);
10919 if ((prefixes
& PREFIX_ADDR
) || (sizeflag
& SUFFIX_ALWAYS
))
10921 if (sizeflag
& AFLAG
)
10922 *obufp
++ = address_mode
== mode_64bit
? 'q' : 'l';
10924 *obufp
++ = address_mode
== mode_64bit
? 'l' : 'w';
10925 used_prefixes
|= (prefixes
& PREFIX_ADDR
);
10929 if (intel_syntax
|| (obufp
[-1] != 's' && !(sizeflag
& SUFFIX_ALWAYS
)))
10931 if ((rex
& REX_W
) || (sizeflag
& DFLAG
))
10935 if (!(rex
& REX_W
))
10936 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10941 if ((prefixes
& (PREFIX_CS
| PREFIX_DS
)) == PREFIX_CS
10942 || (prefixes
& (PREFIX_CS
| PREFIX_DS
)) == PREFIX_DS
)
10944 used_prefixes
|= prefixes
& (PREFIX_CS
| PREFIX_DS
);
10947 if (prefixes
& PREFIX_DS
)
10968 if (address_mode
== mode_64bit
&& (sizeflag
& SUFFIX_ALWAYS
))
10973 /* Fall through. */
10976 if (l
!= 0 || len
!= 1)
10984 if (sizeflag
& SUFFIX_ALWAYS
)
10988 if (intel_mnemonic
!= cond
)
10992 if ((prefixes
& PREFIX_FWAIT
) == 0)
10995 used_prefixes
|= PREFIX_FWAIT
;
11001 else if (intel_syntax
&& (sizeflag
& DFLAG
))
11005 if (!(rex
& REX_W
))
11006 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11011 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
11016 /* Fall through. */
11020 if ((prefixes
& PREFIX_DATA
)
11022 || (sizeflag
& SUFFIX_ALWAYS
))
11029 if (sizeflag
& DFLAG
)
11034 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11040 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
11042 if (modrm
.mod
!= 3 || (sizeflag
& SUFFIX_ALWAYS
))
11046 /* Fall through. */
11049 if (l
== 0 && len
== 1)
11052 if (intel_syntax
&& !alt
)
11055 if (modrm
.mod
!= 3 || (sizeflag
& SUFFIX_ALWAYS
))
11061 if (sizeflag
& DFLAG
)
11062 *obufp
++ = intel_syntax
? 'd' : 'l';
11066 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11071 if (l
!= 1 || len
!= 2 || last
[0] != 'L')
11077 || (modrm
.mod
== 3 && !(sizeflag
& SUFFIX_ALWAYS
)))
11092 else if (sizeflag
& DFLAG
)
11101 if (intel_syntax
&& !p
[1]
11102 && ((rex
& REX_W
) || (sizeflag
& DFLAG
)))
11104 if (!(rex
& REX_W
))
11105 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11110 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
11112 if (sizeflag
& SUFFIX_ALWAYS
)
11116 /* Fall through. */
11120 if (sizeflag
& SUFFIX_ALWAYS
)
11126 if (sizeflag
& DFLAG
)
11130 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11135 if (l
!= 0 || len
!= 1)
11140 if (need_vex
&& vex
.prefix
)
11142 if (vex
.prefix
== DATA_PREFIX_OPCODE
)
11147 else if (prefixes
& PREFIX_DATA
)
11151 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11154 if (l
== 0 && len
== 1)
11156 if (intel_syntax
|| !(sizeflag
& SUFFIX_ALWAYS
))
11167 if (l
!= 1 || len
!= 2 || last
[0] != 'X')
11175 || (modrm
.mod
== 3 && !(sizeflag
& SUFFIX_ALWAYS
)))
11177 switch (vex
.length
)
11191 if (l
== 0 && len
== 1)
11193 /* operand size flag for cwtl, cbtw */
11202 else if (sizeflag
& DFLAG
)
11206 if (!(rex
& REX_W
))
11207 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11211 if (l
!= 1 || len
!= 2 || last
[0] != 'X')
11218 *obufp
++ = vex
.w
? 'd': 's';
11225 mnemonicendp
= obufp
;
11230 oappend (const char *s
)
11232 obufp
= stpcpy (obufp
, s
);
11238 if (prefixes
& PREFIX_CS
)
11240 used_prefixes
|= PREFIX_CS
;
11241 oappend ("%cs:" + intel_syntax
);
11243 if (prefixes
& PREFIX_DS
)
11245 used_prefixes
|= PREFIX_DS
;
11246 oappend ("%ds:" + intel_syntax
);
11248 if (prefixes
& PREFIX_SS
)
11250 used_prefixes
|= PREFIX_SS
;
11251 oappend ("%ss:" + intel_syntax
);
11253 if (prefixes
& PREFIX_ES
)
11255 used_prefixes
|= PREFIX_ES
;
11256 oappend ("%es:" + intel_syntax
);
11258 if (prefixes
& PREFIX_FS
)
11260 used_prefixes
|= PREFIX_FS
;
11261 oappend ("%fs:" + intel_syntax
);
11263 if (prefixes
& PREFIX_GS
)
11265 used_prefixes
|= PREFIX_GS
;
11266 oappend ("%gs:" + intel_syntax
);
11271 OP_indirE (int bytemode
, int sizeflag
)
11275 OP_E (bytemode
, sizeflag
);
11279 print_operand_value (char *buf
, int hex
, bfd_vma disp
)
11281 if (address_mode
== mode_64bit
)
11289 sprintf_vma (tmp
, disp
);
11290 for (i
= 0; tmp
[i
] == '0' && tmp
[i
+ 1]; i
++);
11291 strcpy (buf
+ 2, tmp
+ i
);
11295 bfd_signed_vma v
= disp
;
11302 /* Check for possible overflow on 0x8000000000000000. */
11305 strcpy (buf
, "9223372036854775808");
11319 tmp
[28 - i
] = (v
% 10) + '0';
11323 strcpy (buf
, tmp
+ 29 - i
);
11329 sprintf (buf
, "0x%x", (unsigned int) disp
);
11331 sprintf (buf
, "%d", (int) disp
);
11335 /* Put DISP in BUF as signed hex number. */
11338 print_displacement (char *buf
, bfd_vma disp
)
11340 bfd_signed_vma val
= disp
;
11349 /* Check for possible overflow. */
11352 switch (address_mode
)
11355 strcpy (buf
+ j
, "0x8000000000000000");
11358 strcpy (buf
+ j
, "0x80000000");
11361 strcpy (buf
+ j
, "0x8000");
11371 sprintf_vma (tmp
, (bfd_vma
) val
);
11372 for (i
= 0; tmp
[i
] == '0'; i
++)
11374 if (tmp
[i
] == '\0')
11376 strcpy (buf
+ j
, tmp
+ i
);
11380 intel_operand_size (int bytemode
, int sizeflag
)
11387 oappend ("BYTE PTR ");
11391 oappend ("WORD PTR ");
11394 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
11396 oappend ("QWORD PTR ");
11397 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11406 oappend ("QWORD PTR ");
11407 else if ((sizeflag
& DFLAG
) || bytemode
== dq_mode
)
11408 oappend ("DWORD PTR ");
11410 oappend ("WORD PTR ");
11411 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11414 if ((rex
& REX_W
) || (sizeflag
& DFLAG
))
11416 oappend ("WORD PTR ");
11417 if (!(rex
& REX_W
))
11418 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11421 if (sizeflag
& DFLAG
)
11422 oappend ("QWORD PTR ");
11424 oappend ("DWORD PTR ");
11425 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11430 oappend ("DWORD PTR ");
11434 oappend ("QWORD PTR ");
11437 if (address_mode
== mode_64bit
)
11438 oappend ("QWORD PTR ");
11440 oappend ("DWORD PTR ");
11443 if (sizeflag
& DFLAG
)
11444 oappend ("FWORD PTR ");
11446 oappend ("DWORD PTR ");
11447 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11450 oappend ("TBYTE PTR ");
11456 switch (vex
.length
)
11459 oappend ("XMMWORD PTR ");
11462 oappend ("YMMWORD PTR ");
11469 oappend ("XMMWORD PTR ");
11472 oappend ("XMMWORD PTR ");
11478 switch (vex
.length
)
11481 oappend ("QWORD PTR ");
11484 oappend ("XMMWORD PTR ");
11494 switch (vex
.length
)
11497 oappend ("QWORD PTR ");
11500 oappend ("YMMWORD PTR ");
11507 oappend ("OWORD PTR ");
11509 case vex_w_dq_mode
:
11514 oappend ("QWORD PTR ");
11516 oappend ("DWORD PTR ");
11524 OP_E_register (int bytemode
, int sizeflag
)
11526 int reg
= modrm
.rm
;
11527 const char **names
;
11533 if ((sizeflag
& SUFFIX_ALWAYS
)
11534 && (bytemode
== b_swap_mode
|| bytemode
== v_swap_mode
))
11557 names
= address_mode
== mode_64bit
? names64
: names32
;
11560 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
11563 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11577 else if ((sizeflag
& DFLAG
)
11578 || (bytemode
!= v_mode
11579 && bytemode
!= v_swap_mode
))
11583 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11588 oappend (INTERNAL_DISASSEMBLER_ERROR
);
11591 oappend (names
[reg
]);
11595 OP_E_memory (int bytemode
, int sizeflag
, int has_drex
)
11598 int add
= (rex
& REX_B
) ? 8 : 0;
11603 intel_operand_size (bytemode
, sizeflag
);
11606 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
11608 /* 32/64 bit address mode */
11626 FETCH_DATA (the_info
, codep
+ 1);
11627 index
= (*codep
>> 3) & 7;
11628 scale
= (*codep
>> 6) & 3;
11633 haveindex
= index
!= 4;
11636 rbase
= base
+ add
;
11638 /* If we have a DREX byte, skip it now
11639 (it has already been handled) */
11642 FETCH_DATA (the_info
, codep
+ 1);
11652 if (address_mode
== mode_64bit
&& !havesib
)
11658 FETCH_DATA (the_info
, codep
+ 1);
11660 if ((disp
& 0x80) != 0)
11668 /* In 32bit mode, we need index register to tell [offset] from
11669 [eiz*1 + offset]. */
11670 needindex
= (havesib
11673 && address_mode
== mode_32bit
);
11674 havedisp
= (havebase
11676 || (havesib
&& (haveindex
|| scale
!= 0)));
11679 if (modrm
.mod
!= 0 || base
== 5)
11681 if (havedisp
|| riprel
)
11682 print_displacement (scratchbuf
, disp
);
11684 print_operand_value (scratchbuf
, 1, disp
);
11685 oappend (scratchbuf
);
11689 oappend (sizeflag
& AFLAG
? "(%rip)" : "(%eip)");
11693 if (havebase
|| haveindex
|| riprel
)
11694 used_prefixes
|= PREFIX_ADDR
;
11696 if (havedisp
|| (intel_syntax
&& riprel
))
11698 *obufp
++ = open_char
;
11699 if (intel_syntax
&& riprel
)
11702 oappend (sizeflag
& AFLAG
? "rip" : "eip");
11706 oappend (address_mode
== mode_64bit
&& (sizeflag
& AFLAG
)
11707 ? names64
[rbase
] : names32
[rbase
]);
11710 /* ESP/RSP won't allow index. If base isn't ESP/RSP,
11711 print index to tell base + index from base. */
11715 || (havebase
&& base
!= ESP_REG_NUM
))
11717 if (!intel_syntax
|| havebase
)
11719 *obufp
++ = separator_char
;
11723 oappend (address_mode
== mode_64bit
11724 && (sizeflag
& AFLAG
)
11725 ? names64
[index
] : names32
[index
]);
11727 oappend (address_mode
== mode_64bit
11728 && (sizeflag
& AFLAG
)
11729 ? index64
: index32
);
11731 *obufp
++ = scale_char
;
11733 sprintf (scratchbuf
, "%d", 1 << scale
);
11734 oappend (scratchbuf
);
11738 && (disp
|| modrm
.mod
!= 0 || base
== 5))
11740 if (!havedisp
|| (bfd_signed_vma
) disp
>= 0)
11745 else if (modrm
.mod
!= 1)
11749 disp
= - (bfd_signed_vma
) disp
;
11753 print_displacement (scratchbuf
, disp
);
11755 print_operand_value (scratchbuf
, 1, disp
);
11756 oappend (scratchbuf
);
11759 *obufp
++ = close_char
;
11762 else if (intel_syntax
)
11764 if (modrm
.mod
!= 0 || base
== 5)
11766 if (prefixes
& (PREFIX_CS
| PREFIX_SS
| PREFIX_DS
11767 | PREFIX_ES
| PREFIX_FS
| PREFIX_GS
))
11771 oappend (names_seg
[ds_reg
- es_reg
]);
11774 print_operand_value (scratchbuf
, 1, disp
);
11775 oappend (scratchbuf
);
11780 { /* 16 bit address mode */
11787 if ((disp
& 0x8000) != 0)
11792 FETCH_DATA (the_info
, codep
+ 1);
11794 if ((disp
& 0x80) != 0)
11799 if ((disp
& 0x8000) != 0)
11805 if (modrm
.mod
!= 0 || modrm
.rm
== 6)
11807 print_displacement (scratchbuf
, disp
);
11808 oappend (scratchbuf
);
11811 if (modrm
.mod
!= 0 || modrm
.rm
!= 6)
11813 *obufp
++ = open_char
;
11815 oappend (index16
[modrm
.rm
]);
11817 && (disp
|| modrm
.mod
!= 0 || modrm
.rm
== 6))
11819 if ((bfd_signed_vma
) disp
>= 0)
11824 else if (modrm
.mod
!= 1)
11828 disp
= - (bfd_signed_vma
) disp
;
11831 print_displacement (scratchbuf
, disp
);
11832 oappend (scratchbuf
);
11835 *obufp
++ = close_char
;
11838 else if (intel_syntax
)
11840 if (prefixes
& (PREFIX_CS
| PREFIX_SS
| PREFIX_DS
11841 | PREFIX_ES
| PREFIX_FS
| PREFIX_GS
))
11845 oappend (names_seg
[ds_reg
- es_reg
]);
11848 print_operand_value (scratchbuf
, 1, disp
& 0xffff);
11849 oappend (scratchbuf
);
11855 OP_E_extended (int bytemode
, int sizeflag
, int has_drex
)
11857 /* Skip mod/rm byte. */
11861 if (modrm
.mod
== 3)
11862 OP_E_register (bytemode
, sizeflag
);
11864 OP_E_memory (bytemode
, sizeflag
, has_drex
);
11868 OP_E (int bytemode
, int sizeflag
)
11870 OP_E_extended (bytemode
, sizeflag
, 0);
11875 OP_G (int bytemode
, int sizeflag
)
11886 oappend (names8rex
[modrm
.reg
+ add
]);
11888 oappend (names8
[modrm
.reg
+ add
]);
11891 oappend (names16
[modrm
.reg
+ add
]);
11894 oappend (names32
[modrm
.reg
+ add
]);
11897 oappend (names64
[modrm
.reg
+ add
]);
11906 oappend (names64
[modrm
.reg
+ add
]);
11907 else if ((sizeflag
& DFLAG
) || bytemode
!= v_mode
)
11908 oappend (names32
[modrm
.reg
+ add
]);
11910 oappend (names16
[modrm
.reg
+ add
]);
11911 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11914 if (address_mode
== mode_64bit
)
11915 oappend (names64
[modrm
.reg
+ add
]);
11917 oappend (names32
[modrm
.reg
+ add
]);
11920 oappend (INTERNAL_DISASSEMBLER_ERROR
);
11933 FETCH_DATA (the_info
, codep
+ 8);
11934 a
= *codep
++ & 0xff;
11935 a
|= (*codep
++ & 0xff) << 8;
11936 a
|= (*codep
++ & 0xff) << 16;
11937 a
|= (*codep
++ & 0xff) << 24;
11938 b
= *codep
++ & 0xff;
11939 b
|= (*codep
++ & 0xff) << 8;
11940 b
|= (*codep
++ & 0xff) << 16;
11941 b
|= (*codep
++ & 0xff) << 24;
11942 x
= a
+ ((bfd_vma
) b
<< 32);
11950 static bfd_signed_vma
11953 bfd_signed_vma x
= 0;
11955 FETCH_DATA (the_info
, codep
+ 4);
11956 x
= *codep
++ & (bfd_signed_vma
) 0xff;
11957 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 8;
11958 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 16;
11959 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 24;
11963 static bfd_signed_vma
11966 bfd_signed_vma x
= 0;
11968 FETCH_DATA (the_info
, codep
+ 4);
11969 x
= *codep
++ & (bfd_signed_vma
) 0xff;
11970 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 8;
11971 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 16;
11972 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 24;
11974 x
= (x
^ ((bfd_signed_vma
) 1 << 31)) - ((bfd_signed_vma
) 1 << 31);
11984 FETCH_DATA (the_info
, codep
+ 2);
11985 x
= *codep
++ & 0xff;
11986 x
|= (*codep
++ & 0xff) << 8;
11991 set_op (bfd_vma op
, int riprel
)
11993 op_index
[op_ad
] = op_ad
;
11994 if (address_mode
== mode_64bit
)
11996 op_address
[op_ad
] = op
;
11997 op_riprel
[op_ad
] = riprel
;
12001 /* Mask to get a 32-bit address. */
12002 op_address
[op_ad
] = op
& 0xffffffff;
12003 op_riprel
[op_ad
] = riprel
& 0xffffffff;
12008 OP_REG (int code
, int sizeflag
)
12020 case ax_reg
: case cx_reg
: case dx_reg
: case bx_reg
:
12021 case sp_reg
: case bp_reg
: case si_reg
: case di_reg
:
12022 s
= names16
[code
- ax_reg
+ add
];
12024 case es_reg
: case ss_reg
: case cs_reg
:
12025 case ds_reg
: case fs_reg
: case gs_reg
:
12026 s
= names_seg
[code
- es_reg
+ add
];
12028 case al_reg
: case ah_reg
: case cl_reg
: case ch_reg
:
12029 case dl_reg
: case dh_reg
: case bl_reg
: case bh_reg
:
12032 s
= names8rex
[code
- al_reg
+ add
];
12034 s
= names8
[code
- al_reg
];
12036 case rAX_reg
: case rCX_reg
: case rDX_reg
: case rBX_reg
:
12037 case rSP_reg
: case rBP_reg
: case rSI_reg
: case rDI_reg
:
12038 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
12040 s
= names64
[code
- rAX_reg
+ add
];
12043 code
+= eAX_reg
- rAX_reg
;
12044 /* Fall through. */
12045 case eAX_reg
: case eCX_reg
: case eDX_reg
: case eBX_reg
:
12046 case eSP_reg
: case eBP_reg
: case eSI_reg
: case eDI_reg
:
12049 s
= names64
[code
- eAX_reg
+ add
];
12050 else if (sizeflag
& DFLAG
)
12051 s
= names32
[code
- eAX_reg
+ add
];
12053 s
= names16
[code
- eAX_reg
+ add
];
12054 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12057 s
= INTERNAL_DISASSEMBLER_ERROR
;
12064 OP_IMREG (int code
, int sizeflag
)
12076 case ax_reg
: case cx_reg
: case dx_reg
: case bx_reg
:
12077 case sp_reg
: case bp_reg
: case si_reg
: case di_reg
:
12078 s
= names16
[code
- ax_reg
];
12080 case es_reg
: case ss_reg
: case cs_reg
:
12081 case ds_reg
: case fs_reg
: case gs_reg
:
12082 s
= names_seg
[code
- es_reg
];
12084 case al_reg
: case ah_reg
: case cl_reg
: case ch_reg
:
12085 case dl_reg
: case dh_reg
: case bl_reg
: case bh_reg
:
12088 s
= names8rex
[code
- al_reg
];
12090 s
= names8
[code
- al_reg
];
12092 case eAX_reg
: case eCX_reg
: case eDX_reg
: case eBX_reg
:
12093 case eSP_reg
: case eBP_reg
: case eSI_reg
: case eDI_reg
:
12096 s
= names64
[code
- eAX_reg
];
12097 else if (sizeflag
& DFLAG
)
12098 s
= names32
[code
- eAX_reg
];
12100 s
= names16
[code
- eAX_reg
];
12101 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12103 case z_mode_ax_reg
:
12104 if ((rex
& REX_W
) || (sizeflag
& DFLAG
))
12108 if (!(rex
& REX_W
))
12109 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12112 s
= INTERNAL_DISASSEMBLER_ERROR
;
12119 OP_I (int bytemode
, int sizeflag
)
12122 bfd_signed_vma mask
= -1;
12127 FETCH_DATA (the_info
, codep
+ 1);
12132 if (address_mode
== mode_64bit
)
12137 /* Fall through. */
12142 else if (sizeflag
& DFLAG
)
12152 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12163 oappend (INTERNAL_DISASSEMBLER_ERROR
);
12168 scratchbuf
[0] = '$';
12169 print_operand_value (scratchbuf
+ 1, 1, op
);
12170 oappend (scratchbuf
+ intel_syntax
);
12171 scratchbuf
[0] = '\0';
12175 OP_I64 (int bytemode
, int sizeflag
)
12178 bfd_signed_vma mask
= -1;
12180 if (address_mode
!= mode_64bit
)
12182 OP_I (bytemode
, sizeflag
);
12189 FETCH_DATA (the_info
, codep
+ 1);
12197 else if (sizeflag
& DFLAG
)
12207 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12214 oappend (INTERNAL_DISASSEMBLER_ERROR
);
12219 scratchbuf
[0] = '$';
12220 print_operand_value (scratchbuf
+ 1, 1, op
);
12221 oappend (scratchbuf
+ intel_syntax
);
12222 scratchbuf
[0] = '\0';
12226 OP_sI (int bytemode
, int sizeflag
)
12229 bfd_signed_vma mask
= -1;
12234 FETCH_DATA (the_info
, codep
+ 1);
12236 if ((op
& 0x80) != 0)
12244 else if (sizeflag
& DFLAG
)
12253 if ((op
& 0x8000) != 0)
12256 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12261 if ((op
& 0x8000) != 0)
12265 oappend (INTERNAL_DISASSEMBLER_ERROR
);
12269 scratchbuf
[0] = '$';
12270 print_operand_value (scratchbuf
+ 1, 1, op
);
12271 oappend (scratchbuf
+ intel_syntax
);
12275 OP_J (int bytemode
, int sizeflag
)
12279 bfd_vma segment
= 0;
12284 FETCH_DATA (the_info
, codep
+ 1);
12286 if ((disp
& 0x80) != 0)
12290 if ((sizeflag
& DFLAG
) || (rex
& REX_W
))
12295 if ((disp
& 0x8000) != 0)
12297 /* In 16bit mode, address is wrapped around at 64k within
12298 the same segment. Otherwise, a data16 prefix on a jump
12299 instruction means that the pc is masked to 16 bits after
12300 the displacement is added! */
12302 if ((prefixes
& PREFIX_DATA
) == 0)
12303 segment
= ((start_pc
+ codep
- start_codep
)
12304 & ~((bfd_vma
) 0xffff));
12306 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12309 oappend (INTERNAL_DISASSEMBLER_ERROR
);
12312 disp
= ((start_pc
+ codep
- start_codep
+ disp
) & mask
) | segment
;
12314 print_operand_value (scratchbuf
, 1, disp
);
12315 oappend (scratchbuf
);
12319 OP_SEG (int bytemode
, int sizeflag
)
12321 if (bytemode
== w_mode
)
12322 oappend (names_seg
[modrm
.reg
]);
12324 OP_E (modrm
.mod
== 3 ? bytemode
: w_mode
, sizeflag
);
12328 OP_DIR (int dummy ATTRIBUTE_UNUSED
, int sizeflag
)
12332 if (sizeflag
& DFLAG
)
12342 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12344 sprintf (scratchbuf
, "0x%x:0x%x", seg
, offset
);
12346 sprintf (scratchbuf
, "$0x%x,$0x%x", seg
, offset
);
12347 oappend (scratchbuf
);
12351 OP_OFF (int bytemode
, int sizeflag
)
12355 if (intel_syntax
&& (sizeflag
& SUFFIX_ALWAYS
))
12356 intel_operand_size (bytemode
, sizeflag
);
12359 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
12366 if (!(prefixes
& (PREFIX_CS
| PREFIX_SS
| PREFIX_DS
12367 | PREFIX_ES
| PREFIX_FS
| PREFIX_GS
)))
12369 oappend (names_seg
[ds_reg
- es_reg
]);
12373 print_operand_value (scratchbuf
, 1, off
);
12374 oappend (scratchbuf
);
12378 OP_OFF64 (int bytemode
, int sizeflag
)
12382 if (address_mode
!= mode_64bit
12383 || (prefixes
& PREFIX_ADDR
))
12385 OP_OFF (bytemode
, sizeflag
);
12389 if (intel_syntax
&& (sizeflag
& SUFFIX_ALWAYS
))
12390 intel_operand_size (bytemode
, sizeflag
);
12397 if (!(prefixes
& (PREFIX_CS
| PREFIX_SS
| PREFIX_DS
12398 | PREFIX_ES
| PREFIX_FS
| PREFIX_GS
)))
12400 oappend (names_seg
[ds_reg
- es_reg
]);
12404 print_operand_value (scratchbuf
, 1, off
);
12405 oappend (scratchbuf
);
12409 ptr_reg (int code
, int sizeflag
)
12413 *obufp
++ = open_char
;
12414 used_prefixes
|= (prefixes
& PREFIX_ADDR
);
12415 if (address_mode
== mode_64bit
)
12417 if (!(sizeflag
& AFLAG
))
12418 s
= names32
[code
- eAX_reg
];
12420 s
= names64
[code
- eAX_reg
];
12422 else if (sizeflag
& AFLAG
)
12423 s
= names32
[code
- eAX_reg
];
12425 s
= names16
[code
- eAX_reg
];
12427 *obufp
++ = close_char
;
12432 OP_ESreg (int code
, int sizeflag
)
12438 case 0x6d: /* insw/insl */
12439 intel_operand_size (z_mode
, sizeflag
);
12441 case 0xa5: /* movsw/movsl/movsq */
12442 case 0xa7: /* cmpsw/cmpsl/cmpsq */
12443 case 0xab: /* stosw/stosl */
12444 case 0xaf: /* scasw/scasl */
12445 intel_operand_size (v_mode
, sizeflag
);
12448 intel_operand_size (b_mode
, sizeflag
);
12451 oappend ("%es:" + intel_syntax
);
12452 ptr_reg (code
, sizeflag
);
12456 OP_DSreg (int code
, int sizeflag
)
12462 case 0x6f: /* outsw/outsl */
12463 intel_operand_size (z_mode
, sizeflag
);
12465 case 0xa5: /* movsw/movsl/movsq */
12466 case 0xa7: /* cmpsw/cmpsl/cmpsq */
12467 case 0xad: /* lodsw/lodsl/lodsq */
12468 intel_operand_size (v_mode
, sizeflag
);
12471 intel_operand_size (b_mode
, sizeflag
);
12480 | PREFIX_GS
)) == 0)
12481 prefixes
|= PREFIX_DS
;
12483 ptr_reg (code
, sizeflag
);
12487 OP_C (int dummy ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12495 else if (address_mode
!= mode_64bit
&& (prefixes
& PREFIX_LOCK
))
12497 lock_prefix
= NULL
;
12498 used_prefixes
|= PREFIX_LOCK
;
12503 sprintf (scratchbuf
, "%%cr%d", modrm
.reg
+ add
);
12504 oappend (scratchbuf
+ intel_syntax
);
12508 OP_D (int dummy ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12517 sprintf (scratchbuf
, "db%d", modrm
.reg
+ add
);
12519 sprintf (scratchbuf
, "%%db%d", modrm
.reg
+ add
);
12520 oappend (scratchbuf
);
12524 OP_T (int dummy ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12526 sprintf (scratchbuf
, "%%tr%d", modrm
.reg
);
12527 oappend (scratchbuf
+ intel_syntax
);
12531 OP_R (int bytemode
, int sizeflag
)
12533 if (modrm
.mod
== 3)
12534 OP_E (bytemode
, sizeflag
);
12540 OP_MMX (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12542 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12543 if (prefixes
& PREFIX_DATA
)
12551 sprintf (scratchbuf
, "%%xmm%d", modrm
.reg
+ add
);
12554 sprintf (scratchbuf
, "%%mm%d", modrm
.reg
);
12555 oappend (scratchbuf
+ intel_syntax
);
12559 OP_XMM (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
12567 if (need_vex
&& bytemode
!= xmm_mode
)
12569 switch (vex
.length
)
12572 sprintf (scratchbuf
, "%%xmm%d", modrm
.reg
+ add
);
12575 sprintf (scratchbuf
, "%%ymm%d", modrm
.reg
+ add
);
12582 sprintf (scratchbuf
, "%%xmm%d", modrm
.reg
+ add
);
12583 oappend (scratchbuf
+ intel_syntax
);
12587 OP_EM (int bytemode
, int sizeflag
)
12589 if (modrm
.mod
!= 3)
12592 && (bytemode
== v_mode
|| bytemode
== v_swap_mode
))
12594 bytemode
= (prefixes
& PREFIX_DATA
) ? x_mode
: q_mode
;
12595 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12597 OP_E (bytemode
, sizeflag
);
12601 if ((sizeflag
& SUFFIX_ALWAYS
) && bytemode
== v_swap_mode
)
12604 /* Skip mod/rm byte. */
12607 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12608 if (prefixes
& PREFIX_DATA
)
12617 sprintf (scratchbuf
, "%%xmm%d", modrm
.rm
+ add
);
12620 sprintf (scratchbuf
, "%%mm%d", modrm
.rm
);
12621 oappend (scratchbuf
+ intel_syntax
);
12624 /* cvt* are the only instructions in sse2 which have
12625 both SSE and MMX operands and also have 0x66 prefix
12626 in their opcode. 0x66 was originally used to differentiate
12627 between SSE and MMX instruction(operands). So we have to handle the
12628 cvt* separately using OP_EMC and OP_MXC */
12630 OP_EMC (int bytemode
, int sizeflag
)
12632 if (modrm
.mod
!= 3)
12634 if (intel_syntax
&& bytemode
== v_mode
)
12636 bytemode
= (prefixes
& PREFIX_DATA
) ? x_mode
: q_mode
;
12637 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12639 OP_E (bytemode
, sizeflag
);
12643 /* Skip mod/rm byte. */
12646 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12647 sprintf (scratchbuf
, "%%mm%d", modrm
.rm
);
12648 oappend (scratchbuf
+ intel_syntax
);
12652 OP_MXC (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12654 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12655 sprintf (scratchbuf
, "%%mm%d", modrm
.reg
);
12656 oappend (scratchbuf
+ intel_syntax
);
12660 OP_EX (int bytemode
, int sizeflag
)
12663 if (modrm
.mod
!= 3)
12665 OP_E (bytemode
, sizeflag
);
12674 if ((sizeflag
& SUFFIX_ALWAYS
)
12675 && (bytemode
== x_swap_mode
12676 || bytemode
== d_swap_mode
12677 || bytemode
== q_swap_mode
))
12680 /* Skip mod/rm byte. */
12684 && bytemode
!= xmm_mode
12685 && bytemode
!= xmmq_mode
)
12687 switch (vex
.length
)
12690 sprintf (scratchbuf
, "%%xmm%d", modrm
.rm
+ add
);
12693 sprintf (scratchbuf
, "%%ymm%d", modrm
.rm
+ add
);
12700 sprintf (scratchbuf
, "%%xmm%d", modrm
.rm
+ add
);
12701 oappend (scratchbuf
+ intel_syntax
);
12705 OP_MS (int bytemode
, int sizeflag
)
12707 if (modrm
.mod
== 3)
12708 OP_EM (bytemode
, sizeflag
);
12714 OP_XS (int bytemode
, int sizeflag
)
12716 if (modrm
.mod
== 3)
12717 OP_EX (bytemode
, sizeflag
);
12723 OP_M (int bytemode
, int sizeflag
)
12725 if (modrm
.mod
== 3)
12726 /* bad bound,lea,lds,les,lfs,lgs,lss,cmpxchg8b,vmptrst modrm */
12729 OP_E (bytemode
, sizeflag
);
12733 OP_0f07 (int bytemode
, int sizeflag
)
12735 if (modrm
.mod
!= 3 || modrm
.rm
!= 0)
12738 OP_E (bytemode
, sizeflag
);
12741 /* NOP is an alias of "xchg %ax,%ax" in 16bit mode, "xchg %eax,%eax" in
12742 32bit mode and "xchg %rax,%rax" in 64bit mode. */
12745 NOP_Fixup1 (int bytemode
, int sizeflag
)
12747 if ((prefixes
& PREFIX_DATA
) != 0
12750 && address_mode
== mode_64bit
))
12751 OP_REG (bytemode
, sizeflag
);
12753 strcpy (obuf
, "nop");
12757 NOP_Fixup2 (int bytemode
, int sizeflag
)
12759 if ((prefixes
& PREFIX_DATA
) != 0
12762 && address_mode
== mode_64bit
))
12763 OP_IMREG (bytemode
, sizeflag
);
12766 static const char *const Suffix3DNow
[] = {
12767 /* 00 */ NULL
, NULL
, NULL
, NULL
,
12768 /* 04 */ NULL
, NULL
, NULL
, NULL
,
12769 /* 08 */ NULL
, NULL
, NULL
, NULL
,
12770 /* 0C */ "pi2fw", "pi2fd", NULL
, NULL
,
12771 /* 10 */ NULL
, NULL
, NULL
, NULL
,
12772 /* 14 */ NULL
, NULL
, NULL
, NULL
,
12773 /* 18 */ NULL
, NULL
, NULL
, NULL
,
12774 /* 1C */ "pf2iw", "pf2id", NULL
, NULL
,
12775 /* 20 */ NULL
, NULL
, NULL
, NULL
,
12776 /* 24 */ NULL
, NULL
, NULL
, NULL
,
12777 /* 28 */ NULL
, NULL
, NULL
, NULL
,
12778 /* 2C */ NULL
, NULL
, NULL
, NULL
,
12779 /* 30 */ NULL
, NULL
, NULL
, NULL
,
12780 /* 34 */ NULL
, NULL
, NULL
, NULL
,
12781 /* 38 */ NULL
, NULL
, NULL
, NULL
,
12782 /* 3C */ NULL
, NULL
, NULL
, NULL
,
12783 /* 40 */ NULL
, NULL
, NULL
, NULL
,
12784 /* 44 */ NULL
, NULL
, NULL
, NULL
,
12785 /* 48 */ NULL
, NULL
, NULL
, NULL
,
12786 /* 4C */ NULL
, NULL
, NULL
, NULL
,
12787 /* 50 */ NULL
, NULL
, NULL
, NULL
,
12788 /* 54 */ NULL
, NULL
, NULL
, NULL
,
12789 /* 58 */ NULL
, NULL
, NULL
, NULL
,
12790 /* 5C */ NULL
, NULL
, NULL
, NULL
,
12791 /* 60 */ NULL
, NULL
, NULL
, NULL
,
12792 /* 64 */ NULL
, NULL
, NULL
, NULL
,
12793 /* 68 */ NULL
, NULL
, NULL
, NULL
,
12794 /* 6C */ NULL
, NULL
, NULL
, NULL
,
12795 /* 70 */ NULL
, NULL
, NULL
, NULL
,
12796 /* 74 */ NULL
, NULL
, NULL
, NULL
,
12797 /* 78 */ NULL
, NULL
, NULL
, NULL
,
12798 /* 7C */ NULL
, NULL
, NULL
, NULL
,
12799 /* 80 */ NULL
, NULL
, NULL
, NULL
,
12800 /* 84 */ NULL
, NULL
, NULL
, NULL
,
12801 /* 88 */ NULL
, NULL
, "pfnacc", NULL
,
12802 /* 8C */ NULL
, NULL
, "pfpnacc", NULL
,
12803 /* 90 */ "pfcmpge", NULL
, NULL
, NULL
,
12804 /* 94 */ "pfmin", NULL
, "pfrcp", "pfrsqrt",
12805 /* 98 */ NULL
, NULL
, "pfsub", NULL
,
12806 /* 9C */ NULL
, NULL
, "pfadd", NULL
,
12807 /* A0 */ "pfcmpgt", NULL
, NULL
, NULL
,
12808 /* A4 */ "pfmax", NULL
, "pfrcpit1", "pfrsqit1",
12809 /* A8 */ NULL
, NULL
, "pfsubr", NULL
,
12810 /* AC */ NULL
, NULL
, "pfacc", NULL
,
12811 /* B0 */ "pfcmpeq", NULL
, NULL
, NULL
,
12812 /* B4 */ "pfmul", NULL
, "pfrcpit2", "pmulhrw",
12813 /* B8 */ NULL
, NULL
, NULL
, "pswapd",
12814 /* BC */ NULL
, NULL
, NULL
, "pavgusb",
12815 /* C0 */ NULL
, NULL
, NULL
, NULL
,
12816 /* C4 */ NULL
, NULL
, NULL
, NULL
,
12817 /* C8 */ NULL
, NULL
, NULL
, NULL
,
12818 /* CC */ NULL
, NULL
, NULL
, NULL
,
12819 /* D0 */ NULL
, NULL
, NULL
, NULL
,
12820 /* D4 */ NULL
, NULL
, NULL
, NULL
,
12821 /* D8 */ NULL
, NULL
, NULL
, NULL
,
12822 /* DC */ NULL
, NULL
, NULL
, NULL
,
12823 /* E0 */ NULL
, NULL
, NULL
, NULL
,
12824 /* E4 */ NULL
, NULL
, NULL
, NULL
,
12825 /* E8 */ NULL
, NULL
, NULL
, NULL
,
12826 /* EC */ NULL
, NULL
, NULL
, NULL
,
12827 /* F0 */ NULL
, NULL
, NULL
, NULL
,
12828 /* F4 */ NULL
, NULL
, NULL
, NULL
,
12829 /* F8 */ NULL
, NULL
, NULL
, NULL
,
12830 /* FC */ NULL
, NULL
, NULL
, NULL
,
12834 OP_3DNowSuffix (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12836 const char *mnemonic
;
12838 FETCH_DATA (the_info
, codep
+ 1);
12839 /* AMD 3DNow! instructions are specified by an opcode suffix in the
12840 place where an 8-bit immediate would normally go. ie. the last
12841 byte of the instruction. */
12842 obufp
= mnemonicendp
;
12843 mnemonic
= Suffix3DNow
[*codep
++ & 0xff];
12845 oappend (mnemonic
);
12848 /* Since a variable sized modrm/sib chunk is between the start
12849 of the opcode (0x0f0f) and the opcode suffix, we need to do
12850 all the modrm processing first, and don't know until now that
12851 we have a bad opcode. This necessitates some cleaning up. */
12852 op_out
[0][0] = '\0';
12853 op_out
[1][0] = '\0';
12856 mnemonicendp
= obufp
;
12859 static struct op simd_cmp_op
[] =
12861 { STRING_COMMA_LEN ("eq") },
12862 { STRING_COMMA_LEN ("lt") },
12863 { STRING_COMMA_LEN ("le") },
12864 { STRING_COMMA_LEN ("unord") },
12865 { STRING_COMMA_LEN ("neq") },
12866 { STRING_COMMA_LEN ("nlt") },
12867 { STRING_COMMA_LEN ("nle") },
12868 { STRING_COMMA_LEN ("ord") }
12872 CMP_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12874 unsigned int cmp_type
;
12876 FETCH_DATA (the_info
, codep
+ 1);
12877 cmp_type
= *codep
++ & 0xff;
12878 if (cmp_type
< ARRAY_SIZE (simd_cmp_op
))
12881 char *p
= mnemonicendp
- 2;
12885 sprintf (p
, "%s%s", simd_cmp_op
[cmp_type
].name
, suffix
);
12886 mnemonicendp
+= simd_cmp_op
[cmp_type
].len
;
12890 /* We have a reserved extension byte. Output it directly. */
12891 scratchbuf
[0] = '$';
12892 print_operand_value (scratchbuf
+ 1, 1, cmp_type
);
12893 oappend (scratchbuf
+ intel_syntax
);
12894 scratchbuf
[0] = '\0';
12899 OP_Mwait (int bytemode ATTRIBUTE_UNUSED
,
12900 int sizeflag ATTRIBUTE_UNUSED
)
12902 /* mwait %eax,%ecx */
12905 const char **names
= (address_mode
== mode_64bit
12906 ? names64
: names32
);
12907 strcpy (op_out
[0], names
[0]);
12908 strcpy (op_out
[1], names
[1]);
12909 two_source_ops
= 1;
12911 /* Skip mod/rm byte. */
12917 OP_Monitor (int bytemode ATTRIBUTE_UNUSED
,
12918 int sizeflag ATTRIBUTE_UNUSED
)
12920 /* monitor %eax,%ecx,%edx" */
12923 const char **op1_names
;
12924 const char **names
= (address_mode
== mode_64bit
12925 ? names64
: names32
);
12927 if (!(prefixes
& PREFIX_ADDR
))
12928 op1_names
= (address_mode
== mode_16bit
12929 ? names16
: names
);
12932 /* Remove "addr16/addr32". */
12933 addr_prefix
= NULL
;
12934 op1_names
= (address_mode
!= mode_32bit
12935 ? names32
: names16
);
12936 used_prefixes
|= PREFIX_ADDR
;
12938 strcpy (op_out
[0], op1_names
[0]);
12939 strcpy (op_out
[1], names
[1]);
12940 strcpy (op_out
[2], names
[2]);
12941 two_source_ops
= 1;
12943 /* Skip mod/rm byte. */
12951 /* Throw away prefixes and 1st. opcode byte. */
12952 codep
= insn_codep
+ 1;
12957 REP_Fixup (int bytemode
, int sizeflag
)
12959 /* The 0xf3 prefix should be displayed as "rep" for ins, outs, movs,
12961 if (prefixes
& PREFIX_REPZ
)
12962 repz_prefix
= "rep ";
12969 OP_IMREG (bytemode
, sizeflag
);
12972 OP_ESreg (bytemode
, sizeflag
);
12975 OP_DSreg (bytemode
, sizeflag
);
12984 CMPXCHG8B_Fixup (int bytemode
, int sizeflag
)
12989 /* Change cmpxchg8b to cmpxchg16b. */
12990 char *p
= mnemonicendp
- 2;
12991 mnemonicendp
= stpcpy (p
, "16b");
12994 OP_M (bytemode
, sizeflag
);
12998 XMM_Fixup (int reg
, int sizeflag ATTRIBUTE_UNUSED
)
13002 switch (vex
.length
)
13005 sprintf (scratchbuf
, "%%xmm%d", reg
);
13008 sprintf (scratchbuf
, "%%ymm%d", reg
);
13015 sprintf (scratchbuf
, "%%xmm%d", reg
);
13016 oappend (scratchbuf
+ intel_syntax
);
13020 CRC32_Fixup (int bytemode
, int sizeflag
)
13022 /* Add proper suffix to "crc32". */
13023 char *p
= mnemonicendp
;
13040 else if (sizeflag
& DFLAG
)
13044 used_prefixes
|= (prefixes
& PREFIX_DATA
);
13047 oappend (INTERNAL_DISASSEMBLER_ERROR
);
13054 if (modrm
.mod
== 3)
13058 /* Skip mod/rm byte. */
13063 add
= (rex
& REX_B
) ? 8 : 0;
13064 if (bytemode
== b_mode
)
13068 oappend (names8rex
[modrm
.rm
+ add
]);
13070 oappend (names8
[modrm
.rm
+ add
]);
13076 oappend (names64
[modrm
.rm
+ add
]);
13077 else if ((prefixes
& PREFIX_DATA
))
13078 oappend (names16
[modrm
.rm
+ add
]);
13080 oappend (names32
[modrm
.rm
+ add
]);
13084 OP_E (bytemode
, sizeflag
);
13087 /* Print a DREX argument as either a register or memory operation. */
13089 print_drex_arg (unsigned int reg
, int bytemode
, int sizeflag
)
13091 if (reg
== DREX_REG_UNKNOWN
)
13094 else if (reg
!= DREX_REG_MEMORY
)
13096 sprintf (scratchbuf
, "%%xmm%d", reg
);
13097 oappend (scratchbuf
+ intel_syntax
);
13101 OP_E_extended (bytemode
, sizeflag
, 1);
13104 /* SSE5 instructions that have 4 arguments are encoded as:
13105 0f 24 <sub-opcode> <modrm> <optional-sib> <drex> <offset>.
13107 The <sub-opcode> byte has 1 bit (0x4) that is combined with 1 bit in
13108 the DREX field (0x8) to determine how the arguments are laid out.
13109 The destination register must be the same register as one of the
13110 inputs, and it is encoded in the DREX byte. No REX prefix is used
13111 for these instructions, since the DREX field contains the 3 extension
13112 bits provided by the REX prefix.
13114 The bytemode argument adds 2 extra bits for passing extra information:
13115 DREX_OC1 -- Set the OC1 bit to indicate dest == 1st arg
13116 DREX_NO_OC0 -- OC0 in DREX is invalid
13117 (but pretend it is set). */
13120 OP_DREX4 (int flag_bytemode
, int sizeflag
)
13122 unsigned int drex_byte
;
13123 unsigned int regs
[4];
13124 unsigned int modrm_regmem
;
13125 unsigned int modrm_reg
;
13126 unsigned int drex_reg
;
13128 int rex_save
= rex
;
13129 int rex_used_save
= rex_used
;
13131 int oc1
= (flag_bytemode
& DREX_OC1
) ? 2 : 0;
13135 bytemode
= flag_bytemode
& ~ DREX_MASK
;
13137 for (i
= 0; i
< 4; i
++)
13138 regs
[i
] = DREX_REG_UNKNOWN
;
13140 /* Determine if we have a SIB byte in addition to MODRM before the
13142 if (((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
13143 && (modrm
.mod
!= 3)
13144 && (modrm
.rm
== 4))
13147 /* Get the DREX byte. */
13148 FETCH_DATA (the_info
, codep
+ 2 + has_sib
);
13149 drex_byte
= codep
[has_sib
+1];
13150 drex_reg
= DREX_XMM (drex_byte
);
13151 modrm_reg
= modrm
.reg
+ ((drex_byte
& REX_R
) ? 8 : 0);
13153 /* Is OC0 legal? If not, hardwire oc0 == 1. */
13154 if (flag_bytemode
& DREX_NO_OC0
)
13157 if (DREX_OC0 (drex_byte
))
13161 oc0
= DREX_OC0 (drex_byte
);
13163 if (modrm
.mod
== 3)
13165 /* regmem == register */
13166 modrm_regmem
= modrm
.rm
+ ((drex_byte
& REX_B
) ? 8 : 0);
13167 rex
= rex_used
= 0;
13168 /* skip modrm/drex since we don't call OP_E_extended */
13173 /* regmem == memory, fill in appropriate REX bits */
13174 modrm_regmem
= DREX_REG_MEMORY
;
13175 rex
= drex_byte
& (REX_B
| REX_X
| REX_R
);
13181 /* Based on the OC1/OC0 bits, lay out the arguments in the correct
13190 regs
[0] = modrm_regmem
;
13191 regs
[1] = modrm_reg
;
13192 regs
[2] = drex_reg
;
13193 regs
[3] = drex_reg
;
13197 regs
[0] = modrm_reg
;
13198 regs
[1] = modrm_regmem
;
13199 regs
[2] = drex_reg
;
13200 regs
[3] = drex_reg
;
13204 regs
[0] = drex_reg
;
13205 regs
[1] = modrm_regmem
;
13206 regs
[2] = modrm_reg
;
13207 regs
[3] = drex_reg
;
13211 regs
[0] = drex_reg
;
13212 regs
[1] = modrm_reg
;
13213 regs
[2] = modrm_regmem
;
13214 regs
[3] = drex_reg
;
13218 /* Print out the arguments. */
13219 for (i
= 0; i
< 4; i
++)
13221 int j
= (intel_syntax
) ? 3 - i
: i
;
13228 print_drex_arg (regs
[j
], bytemode
, sizeflag
);
13232 rex_used
= rex_used_save
;
13235 /* SSE5 instructions that have 3 arguments, and are encoded as:
13236 0f 24 <sub-opcode> <modrm> <optional-sib> <drex> <offset> (or)
13237 0f 25 <sub-opcode> <modrm> <optional-sib> <drex> <offset> <cmp-byte>
13239 The DREX field has 1 bit (0x8) to determine how the arguments are
13240 laid out. The destination register is encoded in the DREX byte.
13241 No REX prefix is used for these instructions, since the DREX field
13242 contains the 3 extension bits provided by the REX prefix. */
13245 OP_DREX3 (int flag_bytemode
, int sizeflag
)
13247 unsigned int drex_byte
;
13248 unsigned int regs
[3];
13249 unsigned int modrm_regmem
;
13250 unsigned int modrm_reg
;
13251 unsigned int drex_reg
;
13253 int rex_save
= rex
;
13254 int rex_used_save
= rex_used
;
13259 bytemode
= flag_bytemode
& ~ DREX_MASK
;
13261 for (i
= 0; i
< 3; i
++)
13262 regs
[i
] = DREX_REG_UNKNOWN
;
13264 /* Determine if we have a SIB byte in addition to MODRM before the
13266 if (((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
13267 && (modrm
.mod
!= 3)
13268 && (modrm
.rm
== 4))
13271 /* Get the DREX byte. */
13272 FETCH_DATA (the_info
, codep
+ 2 + has_sib
);
13273 drex_byte
= codep
[has_sib
+1];
13274 drex_reg
= DREX_XMM (drex_byte
);
13275 modrm_reg
= modrm
.reg
+ ((drex_byte
& REX_R
) ? 8 : 0);
13277 /* Is OC0 legal? If not, hardwire oc0 == 0 */
13278 oc0
= DREX_OC0 (drex_byte
);
13279 if ((flag_bytemode
& DREX_NO_OC0
) && oc0
)
13282 if (modrm
.mod
== 3)
13284 /* regmem == register */
13285 modrm_regmem
= modrm
.rm
+ ((drex_byte
& REX_B
) ? 8 : 0);
13286 rex
= rex_used
= 0;
13287 /* skip modrm/drex since we don't call OP_E_extended. */
13292 /* regmem == memory, fill in appropriate REX bits. */
13293 modrm_regmem
= DREX_REG_MEMORY
;
13294 rex
= drex_byte
& (REX_B
| REX_X
| REX_R
);
13300 /* Based on the OC1/OC0 bits, lay out the arguments in the correct
13309 regs
[0] = modrm_regmem
;
13310 regs
[1] = modrm_reg
;
13311 regs
[2] = drex_reg
;
13315 regs
[0] = modrm_reg
;
13316 regs
[1] = modrm_regmem
;
13317 regs
[2] = drex_reg
;
13321 /* Print out the arguments. */
13322 for (i
= 0; i
< 3; i
++)
13324 int j
= (intel_syntax
) ? 2 - i
: i
;
13331 print_drex_arg (regs
[j
], bytemode
, sizeflag
);
13335 rex_used
= rex_used_save
;
13338 /* Emit a floating point comparison for comp<xx> instructions. */
13341 OP_DREX_FCMP (int bytemode ATTRIBUTE_UNUSED
,
13342 int sizeflag ATTRIBUTE_UNUSED
)
13344 unsigned char byte
;
13346 static const char *const cmp_test
[] = {
13365 FETCH_DATA (the_info
, codep
+ 1);
13366 byte
= *codep
& 0xff;
13368 if (byte
>= ARRAY_SIZE (cmp_test
)
13373 /* The instruction isn't one we know about, so just append the
13374 extension byte as a numeric value. */
13380 sprintf (scratchbuf
, "com%s%s", cmp_test
[byte
], obuf
+3);
13381 mnemonicendp
= stpcpy (obuf
, scratchbuf
);
13386 /* Emit an integer point comparison for pcom<xx> instructions,
13387 rewriting the instruction to have the test inside of it. */
13390 OP_DREX_ICMP (int bytemode ATTRIBUTE_UNUSED
,
13391 int sizeflag ATTRIBUTE_UNUSED
)
13393 unsigned char byte
;
13395 static const char *const cmp_test
[] = {
13406 FETCH_DATA (the_info
, codep
+ 1);
13407 byte
= *codep
& 0xff;
13409 if (byte
>= ARRAY_SIZE (cmp_test
)
13415 /* The instruction isn't one we know about, so just print the
13416 comparison test byte as a numeric value. */
13422 sprintf (scratchbuf
, "pcom%s%s", cmp_test
[byte
], obuf
+4);
13423 mnemonicendp
= stpcpy (obuf
, scratchbuf
);
13428 /* Display the destination register operand for instructions with
13432 OP_VEX (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
13440 switch (vex
.length
)
13453 sprintf (scratchbuf
, "%%xmm%d", vex
.register_specifier
);
13466 sprintf (scratchbuf
, "%%ymm%d", vex
.register_specifier
);
13472 oappend (scratchbuf
+ intel_syntax
);
13476 OP_REG_VexI4 (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
13479 FETCH_DATA (the_info
, codep
+ 1);
13482 if (bytemode
!= x_mode
)
13489 if (reg
> 7 && address_mode
!= mode_64bit
)
13492 switch (vex
.length
)
13495 sprintf (scratchbuf
, "%%xmm%d", reg
);
13498 sprintf (scratchbuf
, "%%ymm%d", reg
);
13503 oappend (scratchbuf
+ intel_syntax
);
13507 OP_EX_Vex (int bytemode
, int sizeflag
)
13509 if (modrm
.mod
!= 3)
13511 if (vex
.register_specifier
!= 0)
13515 OP_EX (bytemode
, sizeflag
);
13519 OP_XMM_Vex (int bytemode
, int sizeflag
)
13521 if (modrm
.mod
!= 3)
13523 if (vex
.register_specifier
!= 0)
13527 OP_XMM (bytemode
, sizeflag
);
13531 VZERO_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
13533 switch (vex
.length
)
13536 mnemonicendp
= stpcpy (obuf
, "vzeroupper");
13539 mnemonicendp
= stpcpy (obuf
, "vzeroall");
13546 static struct op vex_cmp_op
[] =
13548 { STRING_COMMA_LEN ("eq") },
13549 { STRING_COMMA_LEN ("lt") },
13550 { STRING_COMMA_LEN ("le") },
13551 { STRING_COMMA_LEN ("unord") },
13552 { STRING_COMMA_LEN ("neq") },
13553 { STRING_COMMA_LEN ("nlt") },
13554 { STRING_COMMA_LEN ("nle") },
13555 { STRING_COMMA_LEN ("ord") },
13556 { STRING_COMMA_LEN ("eq_uq") },
13557 { STRING_COMMA_LEN ("nge") },
13558 { STRING_COMMA_LEN ("ngt") },
13559 { STRING_COMMA_LEN ("false") },
13560 { STRING_COMMA_LEN ("neq_oq") },
13561 { STRING_COMMA_LEN ("ge") },
13562 { STRING_COMMA_LEN ("gt") },
13563 { STRING_COMMA_LEN ("true") },
13564 { STRING_COMMA_LEN ("eq_os") },
13565 { STRING_COMMA_LEN ("lt_oq") },
13566 { STRING_COMMA_LEN ("le_oq") },
13567 { STRING_COMMA_LEN ("unord_s") },
13568 { STRING_COMMA_LEN ("neq_us") },
13569 { STRING_COMMA_LEN ("nlt_uq") },
13570 { STRING_COMMA_LEN ("nle_uq") },
13571 { STRING_COMMA_LEN ("ord_s") },
13572 { STRING_COMMA_LEN ("eq_us") },
13573 { STRING_COMMA_LEN ("nge_uq") },
13574 { STRING_COMMA_LEN ("ngt_uq") },
13575 { STRING_COMMA_LEN ("false_os") },
13576 { STRING_COMMA_LEN ("neq_os") },
13577 { STRING_COMMA_LEN ("ge_oq") },
13578 { STRING_COMMA_LEN ("gt_oq") },
13579 { STRING_COMMA_LEN ("true_us") },
13583 VCMP_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
13585 unsigned int cmp_type
;
13587 FETCH_DATA (the_info
, codep
+ 1);
13588 cmp_type
= *codep
++ & 0xff;
13589 if (cmp_type
< ARRAY_SIZE (vex_cmp_op
))
13592 char *p
= mnemonicendp
- 2;
13596 sprintf (p
, "%s%s", vex_cmp_op
[cmp_type
].name
, suffix
);
13597 mnemonicendp
+= vex_cmp_op
[cmp_type
].len
;
13601 /* We have a reserved extension byte. Output it directly. */
13602 scratchbuf
[0] = '$';
13603 print_operand_value (scratchbuf
+ 1, 1, cmp_type
);
13604 oappend (scratchbuf
+ intel_syntax
);
13605 scratchbuf
[0] = '\0';
13609 static const struct op pclmul_op
[] =
13611 { STRING_COMMA_LEN ("lql") },
13612 { STRING_COMMA_LEN ("hql") },
13613 { STRING_COMMA_LEN ("lqh") },
13614 { STRING_COMMA_LEN ("hqh") }
13618 PCLMUL_Fixup (int bytemode ATTRIBUTE_UNUSED
,
13619 int sizeflag ATTRIBUTE_UNUSED
)
13621 unsigned int pclmul_type
;
13623 FETCH_DATA (the_info
, codep
+ 1);
13624 pclmul_type
= *codep
++ & 0xff;
13625 switch (pclmul_type
)
13636 if (pclmul_type
< ARRAY_SIZE (pclmul_op
))
13639 char *p
= mnemonicendp
- 3;
13644 sprintf (p
, "%s%s", pclmul_op
[pclmul_type
].name
, suffix
);
13645 mnemonicendp
+= pclmul_op
[pclmul_type
].len
;
13649 /* We have a reserved extension byte. Output it directly. */
13650 scratchbuf
[0] = '$';
13651 print_operand_value (scratchbuf
+ 1, 1, pclmul_type
);
13652 oappend (scratchbuf
+ intel_syntax
);
13653 scratchbuf
[0] = '\0';
13658 MOVBE_Fixup (int bytemode
, int sizeflag
)
13660 /* Add proper suffix to "movbe". */
13661 char *p
= mnemonicendp
;
13670 if (sizeflag
& SUFFIX_ALWAYS
)
13674 else if (sizeflag
& DFLAG
)
13679 used_prefixes
|= (prefixes
& PREFIX_DATA
);
13682 oappend (INTERNAL_DISASSEMBLER_ERROR
);
13689 OP_M (bytemode
, sizeflag
);