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);
59 static void OP_E_extended (int, int);
60 static void print_displacement (char *, bfd_vma
);
61 static void OP_E (int, int);
62 static void OP_G (int, int);
63 static bfd_vma
get64 (void);
64 static bfd_signed_vma
get32 (void);
65 static bfd_signed_vma
get32s (void);
66 static int get16 (void);
67 static void set_op (bfd_vma
, int);
68 static void OP_Skip_MODRM (int, int);
69 static void OP_REG (int, int);
70 static void OP_IMREG (int, int);
71 static void OP_I (int, int);
72 static void OP_I64 (int, int);
73 static void OP_sI (int, int);
74 static void OP_J (int, int);
75 static void OP_SEG (int, int);
76 static void OP_DIR (int, int);
77 static void OP_OFF (int, int);
78 static void OP_OFF64 (int, int);
79 static void ptr_reg (int, int);
80 static void OP_ESreg (int, int);
81 static void OP_DSreg (int, int);
82 static void OP_C (int, int);
83 static void OP_D (int, int);
84 static void OP_T (int, int);
85 static void OP_R (int, int);
86 static void OP_MMX (int, int);
87 static void OP_XMM (int, int);
88 static void OP_EM (int, int);
89 static void OP_EX (int, int);
90 static void OP_EMC (int,int);
91 static void OP_MXC (int,int);
92 static void OP_MS (int, int);
93 static void OP_XS (int, int);
94 static void OP_M (int, int);
95 static void OP_VEX (int, int);
96 static void OP_VEX_FMA (int, int);
97 static void OP_EX_Vex (int, int);
98 static void OP_EX_VexW (int, int);
99 static void OP_XMM_Vex (int, int);
100 static void OP_XMM_VexW (int, int);
101 static void OP_REG_VexI4 (int, int);
102 static void PCLMUL_Fixup (int, int);
103 static void VEXI4_Fixup (int, int);
104 static void VZERO_Fixup (int, int);
105 static void VCMP_Fixup (int, int);
106 static void OP_0f07 (int, int);
107 static void OP_Monitor (int, int);
108 static void OP_Mwait (int, int);
109 static void NOP_Fixup1 (int, int);
110 static void NOP_Fixup2 (int, int);
111 static void OP_3DNowSuffix (int, int);
112 static void CMP_Fixup (int, int);
113 static void BadOp (void);
114 static void REP_Fixup (int, int);
115 static void CMPXCHG8B_Fixup (int, int);
116 static void XMM_Fixup (int, int);
117 static void CRC32_Fixup (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 /* Flags for prefixes which we somehow handled when printing the
167 current instruction. */
168 static int used_prefixes
;
170 /* Flags stored in PREFIXES. */
171 #define PREFIX_REPZ 1
172 #define PREFIX_REPNZ 2
173 #define PREFIX_LOCK 4
175 #define PREFIX_SS 0x10
176 #define PREFIX_DS 0x20
177 #define PREFIX_ES 0x40
178 #define PREFIX_FS 0x80
179 #define PREFIX_GS 0x100
180 #define PREFIX_DATA 0x200
181 #define PREFIX_ADDR 0x400
182 #define PREFIX_FWAIT 0x800
184 /* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive)
185 to ADDR (exclusive) are valid. Returns 1 for success, longjmps
187 #define FETCH_DATA(info, addr) \
188 ((addr) <= ((struct dis_private *) (info->private_data))->max_fetched \
189 ? 1 : fetch_data ((info), (addr)))
192 fetch_data (struct disassemble_info
*info
, bfd_byte
*addr
)
195 struct dis_private
*priv
= (struct dis_private
*) info
->private_data
;
196 bfd_vma start
= priv
->insn_start
+ (priv
->max_fetched
- priv
->the_buffer
);
198 if (addr
<= priv
->the_buffer
+ MAX_MNEM_SIZE
)
199 status
= (*info
->read_memory_func
) (start
,
201 addr
- priv
->max_fetched
,
207 /* If we did manage to read at least one byte, then
208 print_insn_i386 will do something sensible. Otherwise, print
209 an error. We do that here because this is where we know
211 if (priv
->max_fetched
== priv
->the_buffer
)
212 (*info
->memory_error_func
) (status
, start
, info
);
213 longjmp (priv
->bailout
, 1);
216 priv
->max_fetched
= addr
;
220 #define XX { NULL, 0 }
222 #define Eb { OP_E, b_mode }
223 #define EbS { OP_E, b_swap_mode }
224 #define Ev { OP_E, v_mode }
225 #define EvS { OP_E, v_swap_mode }
226 #define Ed { OP_E, d_mode }
227 #define Edq { OP_E, dq_mode }
228 #define Edqw { OP_E, dqw_mode }
229 #define Edqb { OP_E, dqb_mode }
230 #define Edqd { OP_E, dqd_mode }
231 #define Eq { OP_E, q_mode }
232 #define indirEv { OP_indirE, stack_v_mode }
233 #define indirEp { OP_indirE, f_mode }
234 #define stackEv { OP_E, stack_v_mode }
235 #define Em { OP_E, m_mode }
236 #define Ew { OP_E, w_mode }
237 #define M { OP_M, 0 } /* lea, lgdt, etc. */
238 #define Ma { OP_M, a_mode }
239 #define Mb { OP_M, b_mode }
240 #define Md { OP_M, d_mode }
241 #define Mo { OP_M, o_mode }
242 #define Mp { OP_M, f_mode } /* 32 or 48 bit memory operand for LDS, LES etc */
243 #define Mq { OP_M, q_mode }
244 #define Mx { OP_M, x_mode }
245 #define Mxmm { OP_M, xmm_mode }
246 #define Gb { OP_G, b_mode }
247 #define Gv { OP_G, v_mode }
248 #define Gd { OP_G, d_mode }
249 #define Gdq { OP_G, dq_mode }
250 #define Gm { OP_G, m_mode }
251 #define Gw { OP_G, w_mode }
252 #define Rd { OP_R, d_mode }
253 #define Rm { OP_R, m_mode }
254 #define Ib { OP_I, b_mode }
255 #define sIb { OP_sI, b_mode } /* sign extened byte */
256 #define Iv { OP_I, v_mode }
257 #define Iq { OP_I, q_mode }
258 #define Iv64 { OP_I64, v_mode }
259 #define Iw { OP_I, w_mode }
260 #define I1 { OP_I, const_1_mode }
261 #define Jb { OP_J, b_mode }
262 #define Jv { OP_J, v_mode }
263 #define Cm { OP_C, m_mode }
264 #define Dm { OP_D, m_mode }
265 #define Td { OP_T, d_mode }
266 #define Skip_MODRM { OP_Skip_MODRM, 0 }
268 #define RMeAX { OP_REG, eAX_reg }
269 #define RMeBX { OP_REG, eBX_reg }
270 #define RMeCX { OP_REG, eCX_reg }
271 #define RMeDX { OP_REG, eDX_reg }
272 #define RMeSP { OP_REG, eSP_reg }
273 #define RMeBP { OP_REG, eBP_reg }
274 #define RMeSI { OP_REG, eSI_reg }
275 #define RMeDI { OP_REG, eDI_reg }
276 #define RMrAX { OP_REG, rAX_reg }
277 #define RMrBX { OP_REG, rBX_reg }
278 #define RMrCX { OP_REG, rCX_reg }
279 #define RMrDX { OP_REG, rDX_reg }
280 #define RMrSP { OP_REG, rSP_reg }
281 #define RMrBP { OP_REG, rBP_reg }
282 #define RMrSI { OP_REG, rSI_reg }
283 #define RMrDI { OP_REG, rDI_reg }
284 #define RMAL { OP_REG, al_reg }
285 #define RMAL { OP_REG, al_reg }
286 #define RMCL { OP_REG, cl_reg }
287 #define RMDL { OP_REG, dl_reg }
288 #define RMBL { OP_REG, bl_reg }
289 #define RMAH { OP_REG, ah_reg }
290 #define RMCH { OP_REG, ch_reg }
291 #define RMDH { OP_REG, dh_reg }
292 #define RMBH { OP_REG, bh_reg }
293 #define RMAX { OP_REG, ax_reg }
294 #define RMDX { OP_REG, dx_reg }
296 #define eAX { OP_IMREG, eAX_reg }
297 #define eBX { OP_IMREG, eBX_reg }
298 #define eCX { OP_IMREG, eCX_reg }
299 #define eDX { OP_IMREG, eDX_reg }
300 #define eSP { OP_IMREG, eSP_reg }
301 #define eBP { OP_IMREG, eBP_reg }
302 #define eSI { OP_IMREG, eSI_reg }
303 #define eDI { OP_IMREG, eDI_reg }
304 #define AL { OP_IMREG, al_reg }
305 #define CL { OP_IMREG, cl_reg }
306 #define DL { OP_IMREG, dl_reg }
307 #define BL { OP_IMREG, bl_reg }
308 #define AH { OP_IMREG, ah_reg }
309 #define CH { OP_IMREG, ch_reg }
310 #define DH { OP_IMREG, dh_reg }
311 #define BH { OP_IMREG, bh_reg }
312 #define AX { OP_IMREG, ax_reg }
313 #define DX { OP_IMREG, dx_reg }
314 #define zAX { OP_IMREG, z_mode_ax_reg }
315 #define indirDX { OP_IMREG, indir_dx_reg }
317 #define Sw { OP_SEG, w_mode }
318 #define Sv { OP_SEG, v_mode }
319 #define Ap { OP_DIR, 0 }
320 #define Ob { OP_OFF64, b_mode }
321 #define Ov { OP_OFF64, v_mode }
322 #define Xb { OP_DSreg, eSI_reg }
323 #define Xv { OP_DSreg, eSI_reg }
324 #define Xz { OP_DSreg, eSI_reg }
325 #define Yb { OP_ESreg, eDI_reg }
326 #define Yv { OP_ESreg, eDI_reg }
327 #define DSBX { OP_DSreg, eBX_reg }
329 #define es { OP_REG, es_reg }
330 #define ss { OP_REG, ss_reg }
331 #define cs { OP_REG, cs_reg }
332 #define ds { OP_REG, ds_reg }
333 #define fs { OP_REG, fs_reg }
334 #define gs { OP_REG, gs_reg }
336 #define MX { OP_MMX, 0 }
337 #define XM { OP_XMM, 0 }
338 #define XMM { OP_XMM, xmm_mode }
339 #define EM { OP_EM, v_mode }
340 #define EMS { OP_EM, v_swap_mode }
341 #define EMd { OP_EM, d_mode }
342 #define EMx { OP_EM, x_mode }
343 #define EXw { OP_EX, w_mode }
344 #define EXd { OP_EX, d_mode }
345 #define EXdS { OP_EX, d_swap_mode }
346 #define EXq { OP_EX, q_mode }
347 #define EXqS { OP_EX, q_swap_mode }
348 #define EXx { OP_EX, x_mode }
349 #define EXxS { OP_EX, x_swap_mode }
350 #define EXxmm { OP_EX, xmm_mode }
351 #define EXxmmq { OP_EX, xmmq_mode }
352 #define EXymmq { OP_EX, ymmq_mode }
353 #define EXVexWdq { OP_EX, vex_w_dq_mode }
354 #define MS { OP_MS, v_mode }
355 #define XS { OP_XS, v_mode }
356 #define EMCq { OP_EMC, q_mode }
357 #define MXC { OP_MXC, 0 }
358 #define OPSUF { OP_3DNowSuffix, 0 }
359 #define CMP { CMP_Fixup, 0 }
360 #define XMM0 { XMM_Fixup, 0 }
362 #define Vex { OP_VEX, vex_mode }
363 #define Vex128 { OP_VEX, vex128_mode }
364 #define Vex256 { OP_VEX, vex256_mode }
365 #define VexI4 { VEXI4_Fixup, 0}
366 #define VexFMA { OP_VEX_FMA, vex_mode }
367 #define Vex128FMA { OP_VEX_FMA, vex128_mode }
368 #define EXdVex { OP_EX_Vex, d_mode }
369 #define EXdVexS { OP_EX_Vex, d_swap_mode }
370 #define EXqVex { OP_EX_Vex, q_mode }
371 #define EXqVexS { OP_EX_Vex, q_swap_mode }
372 #define EXVexW { OP_EX_VexW, x_mode }
373 #define EXdVexW { OP_EX_VexW, d_mode }
374 #define EXqVexW { OP_EX_VexW, q_mode }
375 #define XMVex { OP_XMM_Vex, 0 }
376 #define XMVexW { OP_XMM_VexW, 0 }
377 #define XMVexI4 { OP_REG_VexI4, x_mode }
378 #define PCLMUL { PCLMUL_Fixup, 0 }
379 #define VZERO { VZERO_Fixup, 0 }
380 #define VCMP { VCMP_Fixup, 0 }
382 /* Used handle "rep" prefix for string instructions. */
383 #define Xbr { REP_Fixup, eSI_reg }
384 #define Xvr { REP_Fixup, eSI_reg }
385 #define Ybr { REP_Fixup, eDI_reg }
386 #define Yvr { REP_Fixup, eDI_reg }
387 #define Yzr { REP_Fixup, eDI_reg }
388 #define indirDXr { REP_Fixup, indir_dx_reg }
389 #define ALr { REP_Fixup, al_reg }
390 #define eAXr { REP_Fixup, eAX_reg }
392 #define cond_jump_flag { NULL, cond_jump_mode }
393 #define loop_jcxz_flag { NULL, loop_jcxz_mode }
395 /* bits in sizeflag */
396 #define SUFFIX_ALWAYS 4
402 /* byte operand with operand swapped */
403 #define b_swap_mode (b_mode + 1)
404 /* operand size depends on prefixes */
405 #define v_mode (b_swap_mode + 1)
406 /* operand size depends on prefixes with operand swapped */
407 #define v_swap_mode (v_mode + 1)
409 #define w_mode (v_swap_mode + 1)
410 /* double word operand */
411 #define d_mode (w_mode + 1)
412 /* double word operand with operand swapped */
413 #define d_swap_mode (d_mode + 1)
414 /* quad word operand */
415 #define q_mode (d_swap_mode + 1)
416 /* quad word operand with operand swapped */
417 #define q_swap_mode (q_mode + 1)
418 /* ten-byte operand */
419 #define t_mode (q_swap_mode + 1)
420 /* 16-byte XMM or 32-byte YMM operand */
421 #define x_mode (t_mode + 1)
422 /* 16-byte XMM or 32-byte YMM operand with operand swapped */
423 #define x_swap_mode (x_mode + 1)
424 /* 16-byte XMM operand */
425 #define xmm_mode (x_swap_mode + 1)
426 /* 16-byte XMM or quad word operand */
427 #define xmmq_mode (xmm_mode + 1)
428 /* 32-byte YMM or quad word operand */
429 #define ymmq_mode (xmmq_mode + 1)
430 /* d_mode in 32bit, q_mode in 64bit mode. */
431 #define m_mode (ymmq_mode + 1)
432 /* pair of v_mode operands */
433 #define a_mode (m_mode + 1)
434 #define cond_jump_mode (a_mode + 1)
435 #define loop_jcxz_mode (cond_jump_mode + 1)
436 /* operand size depends on REX prefixes. */
437 #define dq_mode (loop_jcxz_mode + 1)
438 /* registers like dq_mode, memory like w_mode. */
439 #define dqw_mode (dq_mode + 1)
440 /* 4- or 6-byte pointer operand */
441 #define f_mode (dqw_mode + 1)
442 #define const_1_mode (f_mode + 1)
443 /* v_mode for stack-related opcodes. */
444 #define stack_v_mode (const_1_mode + 1)
445 /* non-quad operand size depends on prefixes */
446 #define z_mode (stack_v_mode + 1)
447 /* 16-byte operand */
448 #define o_mode (z_mode + 1)
449 /* registers like dq_mode, memory like b_mode. */
450 #define dqb_mode (o_mode + 1)
451 /* registers like dq_mode, memory like d_mode. */
452 #define dqd_mode (dqb_mode + 1)
453 /* normal vex mode */
454 #define vex_mode (dqd_mode + 1)
455 /* 128bit vex mode */
456 #define vex128_mode (vex_mode + 1)
457 /* 256bit vex mode */
458 #define vex256_mode (vex128_mode + 1)
459 /* operand size depends on the VEX.W bit. */
460 #define vex_w_dq_mode (vex256_mode + 1)
462 #define es_reg (vex_w_dq_mode + 1)
463 #define cs_reg (es_reg + 1)
464 #define ss_reg (cs_reg + 1)
465 #define ds_reg (ss_reg + 1)
466 #define fs_reg (ds_reg + 1)
467 #define gs_reg (fs_reg + 1)
469 #define eAX_reg (gs_reg + 1)
470 #define eCX_reg (eAX_reg + 1)
471 #define eDX_reg (eCX_reg + 1)
472 #define eBX_reg (eDX_reg + 1)
473 #define eSP_reg (eBX_reg + 1)
474 #define eBP_reg (eSP_reg + 1)
475 #define eSI_reg (eBP_reg + 1)
476 #define eDI_reg (eSI_reg + 1)
478 #define al_reg (eDI_reg + 1)
479 #define cl_reg (al_reg + 1)
480 #define dl_reg (cl_reg + 1)
481 #define bl_reg (dl_reg + 1)
482 #define ah_reg (bl_reg + 1)
483 #define ch_reg (ah_reg + 1)
484 #define dh_reg (ch_reg + 1)
485 #define bh_reg (dh_reg + 1)
487 #define ax_reg (bh_reg + 1)
488 #define cx_reg (ax_reg + 1)
489 #define dx_reg (cx_reg + 1)
490 #define bx_reg (dx_reg + 1)
491 #define sp_reg (bx_reg + 1)
492 #define bp_reg (sp_reg + 1)
493 #define si_reg (bp_reg + 1)
494 #define di_reg (si_reg + 1)
496 #define rAX_reg (di_reg + 1)
497 #define rCX_reg (rAX_reg + 1)
498 #define rDX_reg (rCX_reg + 1)
499 #define rBX_reg (rDX_reg + 1)
500 #define rSP_reg (rBX_reg + 1)
501 #define rBP_reg (rSP_reg + 1)
502 #define rSI_reg (rBP_reg + 1)
503 #define rDI_reg (rSI_reg + 1)
505 #define z_mode_ax_reg (rDI_reg + 1)
506 #define indir_dx_reg (z_mode_ax_reg + 1)
508 #define MAX_BYTEMODE indir_dx_reg
512 #define USE_REG_TABLE (FLOATCODE + 1)
513 #define USE_MOD_TABLE (USE_REG_TABLE + 1)
514 #define USE_RM_TABLE (USE_MOD_TABLE + 1)
515 #define USE_PREFIX_TABLE (USE_RM_TABLE + 1)
516 #define USE_X86_64_TABLE (USE_PREFIX_TABLE + 1)
517 #define USE_3BYTE_TABLE (USE_X86_64_TABLE + 1)
518 #define USE_VEX_C4_TABLE (USE_3BYTE_TABLE + 1)
519 #define USE_VEX_C5_TABLE (USE_VEX_C4_TABLE + 1)
520 #define USE_VEX_LEN_TABLE (USE_VEX_C5_TABLE + 1)
522 #define FLOAT NULL, { { NULL, FLOATCODE } }
524 #define DIS386(T, I) NULL, { { NULL, (T)}, { NULL, (I) } }
525 #define REG_TABLE(I) DIS386 (USE_REG_TABLE, (I))
526 #define MOD_TABLE(I) DIS386 (USE_MOD_TABLE, (I))
527 #define RM_TABLE(I) DIS386 (USE_RM_TABLE, (I))
528 #define PREFIX_TABLE(I) DIS386 (USE_PREFIX_TABLE, (I))
529 #define X86_64_TABLE(I) DIS386 (USE_X86_64_TABLE, (I))
530 #define THREE_BYTE_TABLE(I) DIS386 (USE_3BYTE_TABLE, (I))
531 #define VEX_C4_TABLE(I) DIS386 (USE_VEX_C4_TABLE, (I))
532 #define VEX_C5_TABLE(I) DIS386 (USE_VEX_C5_TABLE, (I))
533 #define VEX_LEN_TABLE(I) DIS386 (USE_VEX_LEN_TABLE, (I))
536 #define REG_81 (REG_80 + 1)
537 #define REG_82 (REG_81 + 1)
538 #define REG_8F (REG_82 + 1)
539 #define REG_C0 (REG_8F + 1)
540 #define REG_C1 (REG_C0 + 1)
541 #define REG_C6 (REG_C1 + 1)
542 #define REG_C7 (REG_C6 + 1)
543 #define REG_D0 (REG_C7 + 1)
544 #define REG_D1 (REG_D0 + 1)
545 #define REG_D2 (REG_D1 + 1)
546 #define REG_D3 (REG_D2 + 1)
547 #define REG_F6 (REG_D3 + 1)
548 #define REG_F7 (REG_F6 + 1)
549 #define REG_FE (REG_F7 + 1)
550 #define REG_FF (REG_FE + 1)
551 #define REG_0F00 (REG_FF + 1)
552 #define REG_0F01 (REG_0F00 + 1)
553 #define REG_0F0D (REG_0F01 + 1)
554 #define REG_0F18 (REG_0F0D + 1)
555 #define REG_0F71 (REG_0F18 + 1)
556 #define REG_0F72 (REG_0F71 + 1)
557 #define REG_0F73 (REG_0F72 + 1)
558 #define REG_0FA6 (REG_0F73 + 1)
559 #define REG_0FA7 (REG_0FA6 + 1)
560 #define REG_0FAE (REG_0FA7 + 1)
561 #define REG_0FBA (REG_0FAE + 1)
562 #define REG_0FC7 (REG_0FBA + 1)
563 #define REG_VEX_71 (REG_0FC7 + 1)
564 #define REG_VEX_72 (REG_VEX_71 + 1)
565 #define REG_VEX_73 (REG_VEX_72 + 1)
566 #define REG_VEX_AE (REG_VEX_73 + 1)
569 #define MOD_0F01_REG_0 (MOD_8D + 1)
570 #define MOD_0F01_REG_1 (MOD_0F01_REG_0 + 1)
571 #define MOD_0F01_REG_2 (MOD_0F01_REG_1 + 1)
572 #define MOD_0F01_REG_3 (MOD_0F01_REG_2 + 1)
573 #define MOD_0F01_REG_7 (MOD_0F01_REG_3 + 1)
574 #define MOD_0F12_PREFIX_0 (MOD_0F01_REG_7 + 1)
575 #define MOD_0F13 (MOD_0F12_PREFIX_0 + 1)
576 #define MOD_0F16_PREFIX_0 (MOD_0F13 + 1)
577 #define MOD_0F17 (MOD_0F16_PREFIX_0 + 1)
578 #define MOD_0F18_REG_0 (MOD_0F17 + 1)
579 #define MOD_0F18_REG_1 (MOD_0F18_REG_0 + 1)
580 #define MOD_0F18_REG_2 (MOD_0F18_REG_1 + 1)
581 #define MOD_0F18_REG_3 (MOD_0F18_REG_2 + 1)
582 #define MOD_0F20 (MOD_0F18_REG_3 + 1)
583 #define MOD_0F21 (MOD_0F20 + 1)
584 #define MOD_0F22 (MOD_0F21 + 1)
585 #define MOD_0F23 (MOD_0F22 + 1)
586 #define MOD_0F24 (MOD_0F23 + 1)
587 #define MOD_0F26 (MOD_0F24 + 1)
588 #define MOD_0F2B_PREFIX_0 (MOD_0F26 + 1)
589 #define MOD_0F2B_PREFIX_1 (MOD_0F2B_PREFIX_0 + 1)
590 #define MOD_0F2B_PREFIX_2 (MOD_0F2B_PREFIX_1 + 1)
591 #define MOD_0F2B_PREFIX_3 (MOD_0F2B_PREFIX_2 + 1)
592 #define MOD_0F51 (MOD_0F2B_PREFIX_3 + 1)
593 #define MOD_0F71_REG_2 (MOD_0F51 + 1)
594 #define MOD_0F71_REG_4 (MOD_0F71_REG_2 + 1)
595 #define MOD_0F71_REG_6 (MOD_0F71_REG_4 + 1)
596 #define MOD_0F72_REG_2 (MOD_0F71_REG_6 + 1)
597 #define MOD_0F72_REG_4 (MOD_0F72_REG_2 + 1)
598 #define MOD_0F72_REG_6 (MOD_0F72_REG_4 + 1)
599 #define MOD_0F73_REG_2 (MOD_0F72_REG_6 + 1)
600 #define MOD_0F73_REG_3 (MOD_0F73_REG_2 + 1)
601 #define MOD_0F73_REG_6 (MOD_0F73_REG_3 + 1)
602 #define MOD_0F73_REG_7 (MOD_0F73_REG_6 + 1)
603 #define MOD_0FAE_REG_0 (MOD_0F73_REG_7 + 1)
604 #define MOD_0FAE_REG_1 (MOD_0FAE_REG_0 + 1)
605 #define MOD_0FAE_REG_2 (MOD_0FAE_REG_1 + 1)
606 #define MOD_0FAE_REG_3 (MOD_0FAE_REG_2 + 1)
607 #define MOD_0FAE_REG_4 (MOD_0FAE_REG_3 + 1)
608 #define MOD_0FAE_REG_5 (MOD_0FAE_REG_4 + 1)
609 #define MOD_0FAE_REG_6 (MOD_0FAE_REG_5 + 1)
610 #define MOD_0FAE_REG_7 (MOD_0FAE_REG_6 + 1)
611 #define MOD_0FB2 (MOD_0FAE_REG_7 + 1)
612 #define MOD_0FB4 (MOD_0FB2 + 1)
613 #define MOD_0FB5 (MOD_0FB4 + 1)
614 #define MOD_0FC7_REG_6 (MOD_0FB5 + 1)
615 #define MOD_0FC7_REG_7 (MOD_0FC7_REG_6 + 1)
616 #define MOD_0FD7 (MOD_0FC7_REG_7 + 1)
617 #define MOD_0FE7_PREFIX_2 (MOD_0FD7 + 1)
618 #define MOD_0FF0_PREFIX_3 (MOD_0FE7_PREFIX_2 + 1)
619 #define MOD_0F382A_PREFIX_2 (MOD_0FF0_PREFIX_3 + 1)
620 #define MOD_62_32BIT (MOD_0F382A_PREFIX_2 + 1)
621 #define MOD_C4_32BIT (MOD_62_32BIT + 1)
622 #define MOD_C5_32BIT (MOD_C4_32BIT + 1)
623 #define MOD_VEX_12_PREFIX_0 (MOD_C5_32BIT + 1)
624 #define MOD_VEX_13 (MOD_VEX_12_PREFIX_0 + 1)
625 #define MOD_VEX_16_PREFIX_0 (MOD_VEX_13 + 1)
626 #define MOD_VEX_17 (MOD_VEX_16_PREFIX_0 + 1)
627 #define MOD_VEX_2B (MOD_VEX_17 + 1)
628 #define MOD_VEX_51 (MOD_VEX_2B + 1)
629 #define MOD_VEX_71_REG_2 (MOD_VEX_51 + 1)
630 #define MOD_VEX_71_REG_4 (MOD_VEX_71_REG_2 + 1)
631 #define MOD_VEX_71_REG_6 (MOD_VEX_71_REG_4 + 1)
632 #define MOD_VEX_72_REG_2 (MOD_VEX_71_REG_6 + 1)
633 #define MOD_VEX_72_REG_4 (MOD_VEX_72_REG_2 + 1)
634 #define MOD_VEX_72_REG_6 (MOD_VEX_72_REG_4 + 1)
635 #define MOD_VEX_73_REG_2 (MOD_VEX_72_REG_6 + 1)
636 #define MOD_VEX_73_REG_3 (MOD_VEX_73_REG_2 + 1)
637 #define MOD_VEX_73_REG_6 (MOD_VEX_73_REG_3 + 1)
638 #define MOD_VEX_73_REG_7 (MOD_VEX_73_REG_6 + 1)
639 #define MOD_VEX_AE_REG_2 (MOD_VEX_73_REG_7 + 1)
640 #define MOD_VEX_AE_REG_3 (MOD_VEX_AE_REG_2 + 1)
641 #define MOD_VEX_D7_PREFIX_2 (MOD_VEX_AE_REG_3 + 1)
642 #define MOD_VEX_E7_PREFIX_2 (MOD_VEX_D7_PREFIX_2 + 1)
643 #define MOD_VEX_F0_PREFIX_3 (MOD_VEX_E7_PREFIX_2 + 1)
644 #define MOD_VEX_3818_PREFIX_2 (MOD_VEX_F0_PREFIX_3 + 1)
645 #define MOD_VEX_3819_PREFIX_2 (MOD_VEX_3818_PREFIX_2 + 1)
646 #define MOD_VEX_381A_PREFIX_2 (MOD_VEX_3819_PREFIX_2 + 1)
647 #define MOD_VEX_382A_PREFIX_2 (MOD_VEX_381A_PREFIX_2 + 1)
648 #define MOD_VEX_382C_PREFIX_2 (MOD_VEX_382A_PREFIX_2 + 1)
649 #define MOD_VEX_382D_PREFIX_2 (MOD_VEX_382C_PREFIX_2 + 1)
650 #define MOD_VEX_382E_PREFIX_2 (MOD_VEX_382D_PREFIX_2 + 1)
651 #define MOD_VEX_382F_PREFIX_2 (MOD_VEX_382E_PREFIX_2 + 1)
653 #define RM_0F01_REG_0 0
654 #define RM_0F01_REG_1 (RM_0F01_REG_0 + 1)
655 #define RM_0F01_REG_2 (RM_0F01_REG_1 + 1)
656 #define RM_0F01_REG_3 (RM_0F01_REG_2 + 1)
657 #define RM_0F01_REG_7 (RM_0F01_REG_3 + 1)
658 #define RM_0FAE_REG_5 (RM_0F01_REG_7 + 1)
659 #define RM_0FAE_REG_6 (RM_0FAE_REG_5 + 1)
660 #define RM_0FAE_REG_7 (RM_0FAE_REG_6 + 1)
663 #define PREFIX_0F10 (PREFIX_90 + 1)
664 #define PREFIX_0F11 (PREFIX_0F10 + 1)
665 #define PREFIX_0F12 (PREFIX_0F11 + 1)
666 #define PREFIX_0F16 (PREFIX_0F12 + 1)
667 #define PREFIX_0F2A (PREFIX_0F16 + 1)
668 #define PREFIX_0F2B (PREFIX_0F2A + 1)
669 #define PREFIX_0F2C (PREFIX_0F2B + 1)
670 #define PREFIX_0F2D (PREFIX_0F2C + 1)
671 #define PREFIX_0F2E (PREFIX_0F2D + 1)
672 #define PREFIX_0F2F (PREFIX_0F2E + 1)
673 #define PREFIX_0F51 (PREFIX_0F2F + 1)
674 #define PREFIX_0F52 (PREFIX_0F51 + 1)
675 #define PREFIX_0F53 (PREFIX_0F52 + 1)
676 #define PREFIX_0F58 (PREFIX_0F53 + 1)
677 #define PREFIX_0F59 (PREFIX_0F58 + 1)
678 #define PREFIX_0F5A (PREFIX_0F59 + 1)
679 #define PREFIX_0F5B (PREFIX_0F5A + 1)
680 #define PREFIX_0F5C (PREFIX_0F5B + 1)
681 #define PREFIX_0F5D (PREFIX_0F5C + 1)
682 #define PREFIX_0F5E (PREFIX_0F5D + 1)
683 #define PREFIX_0F5F (PREFIX_0F5E + 1)
684 #define PREFIX_0F60 (PREFIX_0F5F + 1)
685 #define PREFIX_0F61 (PREFIX_0F60 + 1)
686 #define PREFIX_0F62 (PREFIX_0F61 + 1)
687 #define PREFIX_0F6C (PREFIX_0F62 + 1)
688 #define PREFIX_0F6D (PREFIX_0F6C + 1)
689 #define PREFIX_0F6F (PREFIX_0F6D + 1)
690 #define PREFIX_0F70 (PREFIX_0F6F + 1)
691 #define PREFIX_0F73_REG_3 (PREFIX_0F70 + 1)
692 #define PREFIX_0F73_REG_7 (PREFIX_0F73_REG_3 + 1)
693 #define PREFIX_0F78 (PREFIX_0F73_REG_7 + 1)
694 #define PREFIX_0F79 (PREFIX_0F78 + 1)
695 #define PREFIX_0F7C (PREFIX_0F79 + 1)
696 #define PREFIX_0F7D (PREFIX_0F7C + 1)
697 #define PREFIX_0F7E (PREFIX_0F7D + 1)
698 #define PREFIX_0F7F (PREFIX_0F7E + 1)
699 #define PREFIX_0FB8 (PREFIX_0F7F + 1)
700 #define PREFIX_0FBD (PREFIX_0FB8 + 1)
701 #define PREFIX_0FC2 (PREFIX_0FBD + 1)
702 #define PREFIX_0FC3 (PREFIX_0FC2 + 1)
703 #define PREFIX_0FC7_REG_6 (PREFIX_0FC3 + 1)
704 #define PREFIX_0FD0 (PREFIX_0FC7_REG_6 + 1)
705 #define PREFIX_0FD6 (PREFIX_0FD0 + 1)
706 #define PREFIX_0FE6 (PREFIX_0FD6 + 1)
707 #define PREFIX_0FE7 (PREFIX_0FE6 + 1)
708 #define PREFIX_0FF0 (PREFIX_0FE7 + 1)
709 #define PREFIX_0FF7 (PREFIX_0FF0 + 1)
710 #define PREFIX_0F3810 (PREFIX_0FF7 + 1)
711 #define PREFIX_0F3814 (PREFIX_0F3810 + 1)
712 #define PREFIX_0F3815 (PREFIX_0F3814 + 1)
713 #define PREFIX_0F3817 (PREFIX_0F3815 + 1)
714 #define PREFIX_0F3820 (PREFIX_0F3817 + 1)
715 #define PREFIX_0F3821 (PREFIX_0F3820 + 1)
716 #define PREFIX_0F3822 (PREFIX_0F3821 + 1)
717 #define PREFIX_0F3823 (PREFIX_0F3822 + 1)
718 #define PREFIX_0F3824 (PREFIX_0F3823 + 1)
719 #define PREFIX_0F3825 (PREFIX_0F3824 + 1)
720 #define PREFIX_0F3828 (PREFIX_0F3825 + 1)
721 #define PREFIX_0F3829 (PREFIX_0F3828 + 1)
722 #define PREFIX_0F382A (PREFIX_0F3829 + 1)
723 #define PREFIX_0F382B (PREFIX_0F382A + 1)
724 #define PREFIX_0F3830 (PREFIX_0F382B + 1)
725 #define PREFIX_0F3831 (PREFIX_0F3830 + 1)
726 #define PREFIX_0F3832 (PREFIX_0F3831 + 1)
727 #define PREFIX_0F3833 (PREFIX_0F3832 + 1)
728 #define PREFIX_0F3834 (PREFIX_0F3833 + 1)
729 #define PREFIX_0F3835 (PREFIX_0F3834 + 1)
730 #define PREFIX_0F3837 (PREFIX_0F3835 + 1)
731 #define PREFIX_0F3838 (PREFIX_0F3837 + 1)
732 #define PREFIX_0F3839 (PREFIX_0F3838 + 1)
733 #define PREFIX_0F383A (PREFIX_0F3839 + 1)
734 #define PREFIX_0F383B (PREFIX_0F383A + 1)
735 #define PREFIX_0F383C (PREFIX_0F383B + 1)
736 #define PREFIX_0F383D (PREFIX_0F383C + 1)
737 #define PREFIX_0F383E (PREFIX_0F383D + 1)
738 #define PREFIX_0F383F (PREFIX_0F383E + 1)
739 #define PREFIX_0F3840 (PREFIX_0F383F + 1)
740 #define PREFIX_0F3841 (PREFIX_0F3840 + 1)
741 #define PREFIX_0F3880 (PREFIX_0F3841 + 1)
742 #define PREFIX_0F3881 (PREFIX_0F3880 + 1)
743 #define PREFIX_0F38DB (PREFIX_0F3881 + 1)
744 #define PREFIX_0F38DC (PREFIX_0F38DB + 1)
745 #define PREFIX_0F38DD (PREFIX_0F38DC + 1)
746 #define PREFIX_0F38DE (PREFIX_0F38DD + 1)
747 #define PREFIX_0F38DF (PREFIX_0F38DE + 1)
748 #define PREFIX_0F38F0 (PREFIX_0F38DF + 1)
749 #define PREFIX_0F38F1 (PREFIX_0F38F0 + 1)
750 #define PREFIX_0F3A08 (PREFIX_0F38F1 + 1)
751 #define PREFIX_0F3A09 (PREFIX_0F3A08 + 1)
752 #define PREFIX_0F3A0A (PREFIX_0F3A09 + 1)
753 #define PREFIX_0F3A0B (PREFIX_0F3A0A + 1)
754 #define PREFIX_0F3A0C (PREFIX_0F3A0B + 1)
755 #define PREFIX_0F3A0D (PREFIX_0F3A0C + 1)
756 #define PREFIX_0F3A0E (PREFIX_0F3A0D + 1)
757 #define PREFIX_0F3A14 (PREFIX_0F3A0E + 1)
758 #define PREFIX_0F3A15 (PREFIX_0F3A14 + 1)
759 #define PREFIX_0F3A16 (PREFIX_0F3A15 + 1)
760 #define PREFIX_0F3A17 (PREFIX_0F3A16 + 1)
761 #define PREFIX_0F3A20 (PREFIX_0F3A17 + 1)
762 #define PREFIX_0F3A21 (PREFIX_0F3A20 + 1)
763 #define PREFIX_0F3A22 (PREFIX_0F3A21 + 1)
764 #define PREFIX_0F3A40 (PREFIX_0F3A22 + 1)
765 #define PREFIX_0F3A41 (PREFIX_0F3A40 + 1)
766 #define PREFIX_0F3A42 (PREFIX_0F3A41 + 1)
767 #define PREFIX_0F3A44 (PREFIX_0F3A42 + 1)
768 #define PREFIX_0F3A60 (PREFIX_0F3A44 + 1)
769 #define PREFIX_0F3A61 (PREFIX_0F3A60 + 1)
770 #define PREFIX_0F3A62 (PREFIX_0F3A61 + 1)
771 #define PREFIX_0F3A63 (PREFIX_0F3A62 + 1)
772 #define PREFIX_0F3ADF (PREFIX_0F3A63 + 1)
773 #define PREFIX_VEX_10 (PREFIX_0F3ADF + 1)
774 #define PREFIX_VEX_11 (PREFIX_VEX_10 + 1)
775 #define PREFIX_VEX_12 (PREFIX_VEX_11 + 1)
776 #define PREFIX_VEX_16 (PREFIX_VEX_12 + 1)
777 #define PREFIX_VEX_2A (PREFIX_VEX_16 + 1)
778 #define PREFIX_VEX_2C (PREFIX_VEX_2A + 1)
779 #define PREFIX_VEX_2D (PREFIX_VEX_2C + 1)
780 #define PREFIX_VEX_2E (PREFIX_VEX_2D + 1)
781 #define PREFIX_VEX_2F (PREFIX_VEX_2E + 1)
782 #define PREFIX_VEX_51 (PREFIX_VEX_2F + 1)
783 #define PREFIX_VEX_52 (PREFIX_VEX_51 + 1)
784 #define PREFIX_VEX_53 (PREFIX_VEX_52 + 1)
785 #define PREFIX_VEX_58 (PREFIX_VEX_53 + 1)
786 #define PREFIX_VEX_59 (PREFIX_VEX_58 + 1)
787 #define PREFIX_VEX_5A (PREFIX_VEX_59 + 1)
788 #define PREFIX_VEX_5B (PREFIX_VEX_5A + 1)
789 #define PREFIX_VEX_5C (PREFIX_VEX_5B + 1)
790 #define PREFIX_VEX_5D (PREFIX_VEX_5C + 1)
791 #define PREFIX_VEX_5E (PREFIX_VEX_5D + 1)
792 #define PREFIX_VEX_5F (PREFIX_VEX_5E + 1)
793 #define PREFIX_VEX_60 (PREFIX_VEX_5F + 1)
794 #define PREFIX_VEX_61 (PREFIX_VEX_60 + 1)
795 #define PREFIX_VEX_62 (PREFIX_VEX_61 + 1)
796 #define PREFIX_VEX_63 (PREFIX_VEX_62 + 1)
797 #define PREFIX_VEX_64 (PREFIX_VEX_63 + 1)
798 #define PREFIX_VEX_65 (PREFIX_VEX_64 + 1)
799 #define PREFIX_VEX_66 (PREFIX_VEX_65 + 1)
800 #define PREFIX_VEX_67 (PREFIX_VEX_66 + 1)
801 #define PREFIX_VEX_68 (PREFIX_VEX_67 + 1)
802 #define PREFIX_VEX_69 (PREFIX_VEX_68 + 1)
803 #define PREFIX_VEX_6A (PREFIX_VEX_69 + 1)
804 #define PREFIX_VEX_6B (PREFIX_VEX_6A + 1)
805 #define PREFIX_VEX_6C (PREFIX_VEX_6B + 1)
806 #define PREFIX_VEX_6D (PREFIX_VEX_6C + 1)
807 #define PREFIX_VEX_6E (PREFIX_VEX_6D + 1)
808 #define PREFIX_VEX_6F (PREFIX_VEX_6E + 1)
809 #define PREFIX_VEX_70 (PREFIX_VEX_6F + 1)
810 #define PREFIX_VEX_71_REG_2 (PREFIX_VEX_70 + 1)
811 #define PREFIX_VEX_71_REG_4 (PREFIX_VEX_71_REG_2 + 1)
812 #define PREFIX_VEX_71_REG_6 (PREFIX_VEX_71_REG_4 + 1)
813 #define PREFIX_VEX_72_REG_2 (PREFIX_VEX_71_REG_6 + 1)
814 #define PREFIX_VEX_72_REG_4 (PREFIX_VEX_72_REG_2 + 1)
815 #define PREFIX_VEX_72_REG_6 (PREFIX_VEX_72_REG_4 + 1)
816 #define PREFIX_VEX_73_REG_2 (PREFIX_VEX_72_REG_6 + 1)
817 #define PREFIX_VEX_73_REG_3 (PREFIX_VEX_73_REG_2 + 1)
818 #define PREFIX_VEX_73_REG_6 (PREFIX_VEX_73_REG_3 + 1)
819 #define PREFIX_VEX_73_REG_7 (PREFIX_VEX_73_REG_6 + 1)
820 #define PREFIX_VEX_74 (PREFIX_VEX_73_REG_7 + 1)
821 #define PREFIX_VEX_75 (PREFIX_VEX_74 + 1)
822 #define PREFIX_VEX_76 (PREFIX_VEX_75 + 1)
823 #define PREFIX_VEX_77 (PREFIX_VEX_76 + 1)
824 #define PREFIX_VEX_7C (PREFIX_VEX_77 + 1)
825 #define PREFIX_VEX_7D (PREFIX_VEX_7C + 1)
826 #define PREFIX_VEX_7E (PREFIX_VEX_7D + 1)
827 #define PREFIX_VEX_7F (PREFIX_VEX_7E + 1)
828 #define PREFIX_VEX_C2 (PREFIX_VEX_7F + 1)
829 #define PREFIX_VEX_C4 (PREFIX_VEX_C2 + 1)
830 #define PREFIX_VEX_C5 (PREFIX_VEX_C4 + 1)
831 #define PREFIX_VEX_D0 (PREFIX_VEX_C5 + 1)
832 #define PREFIX_VEX_D1 (PREFIX_VEX_D0 + 1)
833 #define PREFIX_VEX_D2 (PREFIX_VEX_D1 + 1)
834 #define PREFIX_VEX_D3 (PREFIX_VEX_D2 + 1)
835 #define PREFIX_VEX_D4 (PREFIX_VEX_D3 + 1)
836 #define PREFIX_VEX_D5 (PREFIX_VEX_D4 + 1)
837 #define PREFIX_VEX_D6 (PREFIX_VEX_D5 + 1)
838 #define PREFIX_VEX_D7 (PREFIX_VEX_D6 + 1)
839 #define PREFIX_VEX_D8 (PREFIX_VEX_D7 + 1)
840 #define PREFIX_VEX_D9 (PREFIX_VEX_D8 + 1)
841 #define PREFIX_VEX_DA (PREFIX_VEX_D9 + 1)
842 #define PREFIX_VEX_DB (PREFIX_VEX_DA + 1)
843 #define PREFIX_VEX_DC (PREFIX_VEX_DB + 1)
844 #define PREFIX_VEX_DD (PREFIX_VEX_DC + 1)
845 #define PREFIX_VEX_DE (PREFIX_VEX_DD + 1)
846 #define PREFIX_VEX_DF (PREFIX_VEX_DE + 1)
847 #define PREFIX_VEX_E0 (PREFIX_VEX_DF + 1)
848 #define PREFIX_VEX_E1 (PREFIX_VEX_E0 + 1)
849 #define PREFIX_VEX_E2 (PREFIX_VEX_E1 + 1)
850 #define PREFIX_VEX_E3 (PREFIX_VEX_E2 + 1)
851 #define PREFIX_VEX_E4 (PREFIX_VEX_E3 + 1)
852 #define PREFIX_VEX_E5 (PREFIX_VEX_E4 + 1)
853 #define PREFIX_VEX_E6 (PREFIX_VEX_E5 + 1)
854 #define PREFIX_VEX_E7 (PREFIX_VEX_E6 + 1)
855 #define PREFIX_VEX_E8 (PREFIX_VEX_E7 + 1)
856 #define PREFIX_VEX_E9 (PREFIX_VEX_E8 + 1)
857 #define PREFIX_VEX_EA (PREFIX_VEX_E9 + 1)
858 #define PREFIX_VEX_EB (PREFIX_VEX_EA + 1)
859 #define PREFIX_VEX_EC (PREFIX_VEX_EB + 1)
860 #define PREFIX_VEX_ED (PREFIX_VEX_EC + 1)
861 #define PREFIX_VEX_EE (PREFIX_VEX_ED + 1)
862 #define PREFIX_VEX_EF (PREFIX_VEX_EE + 1)
863 #define PREFIX_VEX_F0 (PREFIX_VEX_EF + 1)
864 #define PREFIX_VEX_F1 (PREFIX_VEX_F0 + 1)
865 #define PREFIX_VEX_F2 (PREFIX_VEX_F1 + 1)
866 #define PREFIX_VEX_F3 (PREFIX_VEX_F2 + 1)
867 #define PREFIX_VEX_F4 (PREFIX_VEX_F3 + 1)
868 #define PREFIX_VEX_F5 (PREFIX_VEX_F4 + 1)
869 #define PREFIX_VEX_F6 (PREFIX_VEX_F5 + 1)
870 #define PREFIX_VEX_F7 (PREFIX_VEX_F6 + 1)
871 #define PREFIX_VEX_F8 (PREFIX_VEX_F7 + 1)
872 #define PREFIX_VEX_F9 (PREFIX_VEX_F8 + 1)
873 #define PREFIX_VEX_FA (PREFIX_VEX_F9 + 1)
874 #define PREFIX_VEX_FB (PREFIX_VEX_FA + 1)
875 #define PREFIX_VEX_FC (PREFIX_VEX_FB + 1)
876 #define PREFIX_VEX_FD (PREFIX_VEX_FC + 1)
877 #define PREFIX_VEX_FE (PREFIX_VEX_FD + 1)
878 #define PREFIX_VEX_3800 (PREFIX_VEX_FE + 1)
879 #define PREFIX_VEX_3801 (PREFIX_VEX_3800 + 1)
880 #define PREFIX_VEX_3802 (PREFIX_VEX_3801 + 1)
881 #define PREFIX_VEX_3803 (PREFIX_VEX_3802 + 1)
882 #define PREFIX_VEX_3804 (PREFIX_VEX_3803 + 1)
883 #define PREFIX_VEX_3805 (PREFIX_VEX_3804 + 1)
884 #define PREFIX_VEX_3806 (PREFIX_VEX_3805 + 1)
885 #define PREFIX_VEX_3807 (PREFIX_VEX_3806 + 1)
886 #define PREFIX_VEX_3808 (PREFIX_VEX_3807 + 1)
887 #define PREFIX_VEX_3809 (PREFIX_VEX_3808 + 1)
888 #define PREFIX_VEX_380A (PREFIX_VEX_3809 + 1)
889 #define PREFIX_VEX_380B (PREFIX_VEX_380A + 1)
890 #define PREFIX_VEX_380C (PREFIX_VEX_380B + 1)
891 #define PREFIX_VEX_380D (PREFIX_VEX_380C + 1)
892 #define PREFIX_VEX_380E (PREFIX_VEX_380D + 1)
893 #define PREFIX_VEX_380F (PREFIX_VEX_380E + 1)
894 #define PREFIX_VEX_3817 (PREFIX_VEX_380F + 1)
895 #define PREFIX_VEX_3818 (PREFIX_VEX_3817 + 1)
896 #define PREFIX_VEX_3819 (PREFIX_VEX_3818 + 1)
897 #define PREFIX_VEX_381A (PREFIX_VEX_3819 + 1)
898 #define PREFIX_VEX_381C (PREFIX_VEX_381A + 1)
899 #define PREFIX_VEX_381D (PREFIX_VEX_381C + 1)
900 #define PREFIX_VEX_381E (PREFIX_VEX_381D + 1)
901 #define PREFIX_VEX_3820 (PREFIX_VEX_381E + 1)
902 #define PREFIX_VEX_3821 (PREFIX_VEX_3820 + 1)
903 #define PREFIX_VEX_3822 (PREFIX_VEX_3821 + 1)
904 #define PREFIX_VEX_3823 (PREFIX_VEX_3822 + 1)
905 #define PREFIX_VEX_3824 (PREFIX_VEX_3823 + 1)
906 #define PREFIX_VEX_3825 (PREFIX_VEX_3824 + 1)
907 #define PREFIX_VEX_3828 (PREFIX_VEX_3825 + 1)
908 #define PREFIX_VEX_3829 (PREFIX_VEX_3828 + 1)
909 #define PREFIX_VEX_382A (PREFIX_VEX_3829 + 1)
910 #define PREFIX_VEX_382B (PREFIX_VEX_382A + 1)
911 #define PREFIX_VEX_382C (PREFIX_VEX_382B + 1)
912 #define PREFIX_VEX_382D (PREFIX_VEX_382C + 1)
913 #define PREFIX_VEX_382E (PREFIX_VEX_382D + 1)
914 #define PREFIX_VEX_382F (PREFIX_VEX_382E + 1)
915 #define PREFIX_VEX_3830 (PREFIX_VEX_382F + 1)
916 #define PREFIX_VEX_3831 (PREFIX_VEX_3830 + 1)
917 #define PREFIX_VEX_3832 (PREFIX_VEX_3831 + 1)
918 #define PREFIX_VEX_3833 (PREFIX_VEX_3832 + 1)
919 #define PREFIX_VEX_3834 (PREFIX_VEX_3833 + 1)
920 #define PREFIX_VEX_3835 (PREFIX_VEX_3834 + 1)
921 #define PREFIX_VEX_3837 (PREFIX_VEX_3835 + 1)
922 #define PREFIX_VEX_3838 (PREFIX_VEX_3837 + 1)
923 #define PREFIX_VEX_3839 (PREFIX_VEX_3838 + 1)
924 #define PREFIX_VEX_383A (PREFIX_VEX_3839 + 1)
925 #define PREFIX_VEX_383B (PREFIX_VEX_383A + 1)
926 #define PREFIX_VEX_383C (PREFIX_VEX_383B + 1)
927 #define PREFIX_VEX_383D (PREFIX_VEX_383C + 1)
928 #define PREFIX_VEX_383E (PREFIX_VEX_383D + 1)
929 #define PREFIX_VEX_383F (PREFIX_VEX_383E + 1)
930 #define PREFIX_VEX_3840 (PREFIX_VEX_383F + 1)
931 #define PREFIX_VEX_3841 (PREFIX_VEX_3840 + 1)
932 #define PREFIX_VEX_3896 (PREFIX_VEX_3841 + 1)
933 #define PREFIX_VEX_3897 (PREFIX_VEX_3896 + 1)
934 #define PREFIX_VEX_3898 (PREFIX_VEX_3897 + 1)
935 #define PREFIX_VEX_3899 (PREFIX_VEX_3898 + 1)
936 #define PREFIX_VEX_389A (PREFIX_VEX_3899 + 1)
937 #define PREFIX_VEX_389B (PREFIX_VEX_389A + 1)
938 #define PREFIX_VEX_389C (PREFIX_VEX_389B + 1)
939 #define PREFIX_VEX_389D (PREFIX_VEX_389C + 1)
940 #define PREFIX_VEX_389E (PREFIX_VEX_389D + 1)
941 #define PREFIX_VEX_389F (PREFIX_VEX_389E + 1)
942 #define PREFIX_VEX_38A6 (PREFIX_VEX_389F + 1)
943 #define PREFIX_VEX_38A7 (PREFIX_VEX_38A6 + 1)
944 #define PREFIX_VEX_38A8 (PREFIX_VEX_38A7 + 1)
945 #define PREFIX_VEX_38A9 (PREFIX_VEX_38A8 + 1)
946 #define PREFIX_VEX_38AA (PREFIX_VEX_38A9 + 1)
947 #define PREFIX_VEX_38AB (PREFIX_VEX_38AA + 1)
948 #define PREFIX_VEX_38AC (PREFIX_VEX_38AB + 1)
949 #define PREFIX_VEX_38AD (PREFIX_VEX_38AC + 1)
950 #define PREFIX_VEX_38AE (PREFIX_VEX_38AD + 1)
951 #define PREFIX_VEX_38AF (PREFIX_VEX_38AE + 1)
952 #define PREFIX_VEX_38B6 (PREFIX_VEX_38AF + 1)
953 #define PREFIX_VEX_38B7 (PREFIX_VEX_38B6 + 1)
954 #define PREFIX_VEX_38B8 (PREFIX_VEX_38B7 + 1)
955 #define PREFIX_VEX_38B9 (PREFIX_VEX_38B8 + 1)
956 #define PREFIX_VEX_38BA (PREFIX_VEX_38B9 + 1)
957 #define PREFIX_VEX_38BB (PREFIX_VEX_38BA + 1)
958 #define PREFIX_VEX_38BC (PREFIX_VEX_38BB + 1)
959 #define PREFIX_VEX_38BD (PREFIX_VEX_38BC + 1)
960 #define PREFIX_VEX_38BE (PREFIX_VEX_38BD + 1)
961 #define PREFIX_VEX_38BF (PREFIX_VEX_38BE + 1)
962 #define PREFIX_VEX_38DB (PREFIX_VEX_38BF + 1)
963 #define PREFIX_VEX_38DC (PREFIX_VEX_38DB + 1)
964 #define PREFIX_VEX_38DD (PREFIX_VEX_38DC + 1)
965 #define PREFIX_VEX_38DE (PREFIX_VEX_38DD + 1)
966 #define PREFIX_VEX_38DF (PREFIX_VEX_38DE + 1)
967 #define PREFIX_VEX_3A04 (PREFIX_VEX_38DF + 1)
968 #define PREFIX_VEX_3A05 (PREFIX_VEX_3A04 + 1)
969 #define PREFIX_VEX_3A06 (PREFIX_VEX_3A05 + 1)
970 #define PREFIX_VEX_3A08 (PREFIX_VEX_3A06 + 1)
971 #define PREFIX_VEX_3A09 (PREFIX_VEX_3A08 + 1)
972 #define PREFIX_VEX_3A0A (PREFIX_VEX_3A09 + 1)
973 #define PREFIX_VEX_3A0B (PREFIX_VEX_3A0A + 1)
974 #define PREFIX_VEX_3A0C (PREFIX_VEX_3A0B + 1)
975 #define PREFIX_VEX_3A0D (PREFIX_VEX_3A0C + 1)
976 #define PREFIX_VEX_3A0E (PREFIX_VEX_3A0D + 1)
977 #define PREFIX_VEX_3A0F (PREFIX_VEX_3A0E + 1)
978 #define PREFIX_VEX_3A14 (PREFIX_VEX_3A0F + 1)
979 #define PREFIX_VEX_3A15 (PREFIX_VEX_3A14 + 1)
980 #define PREFIX_VEX_3A16 (PREFIX_VEX_3A15 + 1)
981 #define PREFIX_VEX_3A17 (PREFIX_VEX_3A16 + 1)
982 #define PREFIX_VEX_3A18 (PREFIX_VEX_3A17 + 1)
983 #define PREFIX_VEX_3A19 (PREFIX_VEX_3A18 + 1)
984 #define PREFIX_VEX_3A20 (PREFIX_VEX_3A19 + 1)
985 #define PREFIX_VEX_3A21 (PREFIX_VEX_3A20 + 1)
986 #define PREFIX_VEX_3A22 (PREFIX_VEX_3A21 + 1)
987 #define PREFIX_VEX_3A40 (PREFIX_VEX_3A22 + 1)
988 #define PREFIX_VEX_3A41 (PREFIX_VEX_3A40 + 1)
989 #define PREFIX_VEX_3A42 (PREFIX_VEX_3A41 + 1)
990 #define PREFIX_VEX_3A44 (PREFIX_VEX_3A42 + 1)
991 #define PREFIX_VEX_3A4A (PREFIX_VEX_3A44 + 1)
992 #define PREFIX_VEX_3A4B (PREFIX_VEX_3A4A + 1)
993 #define PREFIX_VEX_3A4C (PREFIX_VEX_3A4B + 1)
994 #define PREFIX_VEX_3A5C (PREFIX_VEX_3A4C + 1)
995 #define PREFIX_VEX_3A5D (PREFIX_VEX_3A5C + 1)
996 #define PREFIX_VEX_3A5E (PREFIX_VEX_3A5D + 1)
997 #define PREFIX_VEX_3A5F (PREFIX_VEX_3A5E + 1)
998 #define PREFIX_VEX_3A60 (PREFIX_VEX_3A5F + 1)
999 #define PREFIX_VEX_3A61 (PREFIX_VEX_3A60 + 1)
1000 #define PREFIX_VEX_3A62 (PREFIX_VEX_3A61 + 1)
1001 #define PREFIX_VEX_3A63 (PREFIX_VEX_3A62 + 1)
1002 #define PREFIX_VEX_3A68 (PREFIX_VEX_3A63 + 1)
1003 #define PREFIX_VEX_3A69 (PREFIX_VEX_3A68 + 1)
1004 #define PREFIX_VEX_3A6A (PREFIX_VEX_3A69 + 1)
1005 #define PREFIX_VEX_3A6B (PREFIX_VEX_3A6A + 1)
1006 #define PREFIX_VEX_3A6C (PREFIX_VEX_3A6B + 1)
1007 #define PREFIX_VEX_3A6D (PREFIX_VEX_3A6C + 1)
1008 #define PREFIX_VEX_3A6E (PREFIX_VEX_3A6D + 1)
1009 #define PREFIX_VEX_3A6F (PREFIX_VEX_3A6E + 1)
1010 #define PREFIX_VEX_3A78 (PREFIX_VEX_3A6F + 1)
1011 #define PREFIX_VEX_3A79 (PREFIX_VEX_3A78 + 1)
1012 #define PREFIX_VEX_3A7A (PREFIX_VEX_3A79 + 1)
1013 #define PREFIX_VEX_3A7B (PREFIX_VEX_3A7A + 1)
1014 #define PREFIX_VEX_3A7C (PREFIX_VEX_3A7B + 1)
1015 #define PREFIX_VEX_3A7D (PREFIX_VEX_3A7C + 1)
1016 #define PREFIX_VEX_3A7E (PREFIX_VEX_3A7D + 1)
1017 #define PREFIX_VEX_3A7F (PREFIX_VEX_3A7E + 1)
1018 #define PREFIX_VEX_3ADF (PREFIX_VEX_3A7F + 1)
1021 #define X86_64_07 (X86_64_06 + 1)
1022 #define X86_64_0D (X86_64_07 + 1)
1023 #define X86_64_16 (X86_64_0D + 1)
1024 #define X86_64_17 (X86_64_16 + 1)
1025 #define X86_64_1E (X86_64_17 + 1)
1026 #define X86_64_1F (X86_64_1E + 1)
1027 #define X86_64_27 (X86_64_1F + 1)
1028 #define X86_64_2F (X86_64_27 + 1)
1029 #define X86_64_37 (X86_64_2F + 1)
1030 #define X86_64_3F (X86_64_37 + 1)
1031 #define X86_64_60 (X86_64_3F + 1)
1032 #define X86_64_61 (X86_64_60 + 1)
1033 #define X86_64_62 (X86_64_61 + 1)
1034 #define X86_64_63 (X86_64_62 + 1)
1035 #define X86_64_6D (X86_64_63 + 1)
1036 #define X86_64_6F (X86_64_6D + 1)
1037 #define X86_64_9A (X86_64_6F + 1)
1038 #define X86_64_C4 (X86_64_9A + 1)
1039 #define X86_64_C5 (X86_64_C4 + 1)
1040 #define X86_64_CE (X86_64_C5 + 1)
1041 #define X86_64_D4 (X86_64_CE + 1)
1042 #define X86_64_D5 (X86_64_D4 + 1)
1043 #define X86_64_EA (X86_64_D5 + 1)
1044 #define X86_64_0F01_REG_0 (X86_64_EA + 1)
1045 #define X86_64_0F01_REG_1 (X86_64_0F01_REG_0 + 1)
1046 #define X86_64_0F01_REG_2 (X86_64_0F01_REG_1 + 1)
1047 #define X86_64_0F01_REG_3 (X86_64_0F01_REG_2 + 1)
1049 #define THREE_BYTE_0F38 0
1050 #define THREE_BYTE_0F3A (THREE_BYTE_0F38 + 1)
1051 #define THREE_BYTE_0F7A (THREE_BYTE_0F3A + 1)
1054 #define VEX_0F38 (VEX_0F + 1)
1055 #define VEX_0F3A (VEX_0F38 + 1)
1057 #define VEX_LEN_10_P_1 0
1058 #define VEX_LEN_10_P_3 (VEX_LEN_10_P_1 + 1)
1059 #define VEX_LEN_11_P_1 (VEX_LEN_10_P_3 + 1)
1060 #define VEX_LEN_11_P_3 (VEX_LEN_11_P_1 + 1)
1061 #define VEX_LEN_12_P_0_M_0 (VEX_LEN_11_P_3 + 1)
1062 #define VEX_LEN_12_P_0_M_1 (VEX_LEN_12_P_0_M_0 + 1)
1063 #define VEX_LEN_12_P_2 (VEX_LEN_12_P_0_M_1 + 1)
1064 #define VEX_LEN_13_M_0 (VEX_LEN_12_P_2 + 1)
1065 #define VEX_LEN_16_P_0_M_0 (VEX_LEN_13_M_0 + 1)
1066 #define VEX_LEN_16_P_0_M_1 (VEX_LEN_16_P_0_M_0 + 1)
1067 #define VEX_LEN_16_P_2 (VEX_LEN_16_P_0_M_1 + 1)
1068 #define VEX_LEN_17_M_0 (VEX_LEN_16_P_2 + 1)
1069 #define VEX_LEN_2A_P_1 (VEX_LEN_17_M_0 + 1)
1070 #define VEX_LEN_2A_P_3 (VEX_LEN_2A_P_1 + 1)
1071 #define VEX_LEN_2C_P_1 (VEX_LEN_2A_P_3 + 1)
1072 #define VEX_LEN_2C_P_3 (VEX_LEN_2C_P_1 + 1)
1073 #define VEX_LEN_2D_P_1 (VEX_LEN_2C_P_3 + 1)
1074 #define VEX_LEN_2D_P_3 (VEX_LEN_2D_P_1 + 1)
1075 #define VEX_LEN_2E_P_0 (VEX_LEN_2D_P_3 + 1)
1076 #define VEX_LEN_2E_P_2 (VEX_LEN_2E_P_0 + 1)
1077 #define VEX_LEN_2F_P_0 (VEX_LEN_2E_P_2 + 1)
1078 #define VEX_LEN_2F_P_2 (VEX_LEN_2F_P_0 + 1)
1079 #define VEX_LEN_51_P_1 (VEX_LEN_2F_P_2 + 1)
1080 #define VEX_LEN_51_P_3 (VEX_LEN_51_P_1 + 1)
1081 #define VEX_LEN_52_P_1 (VEX_LEN_51_P_3 + 1)
1082 #define VEX_LEN_53_P_1 (VEX_LEN_52_P_1 + 1)
1083 #define VEX_LEN_58_P_1 (VEX_LEN_53_P_1 + 1)
1084 #define VEX_LEN_58_P_3 (VEX_LEN_58_P_1 + 1)
1085 #define VEX_LEN_59_P_1 (VEX_LEN_58_P_3 + 1)
1086 #define VEX_LEN_59_P_3 (VEX_LEN_59_P_1 + 1)
1087 #define VEX_LEN_5A_P_1 (VEX_LEN_59_P_3 + 1)
1088 #define VEX_LEN_5A_P_3 (VEX_LEN_5A_P_1 + 1)
1089 #define VEX_LEN_5C_P_1 (VEX_LEN_5A_P_3 + 1)
1090 #define VEX_LEN_5C_P_3 (VEX_LEN_5C_P_1 + 1)
1091 #define VEX_LEN_5D_P_1 (VEX_LEN_5C_P_3 + 1)
1092 #define VEX_LEN_5D_P_3 (VEX_LEN_5D_P_1 + 1)
1093 #define VEX_LEN_5E_P_1 (VEX_LEN_5D_P_3 + 1)
1094 #define VEX_LEN_5E_P_3 (VEX_LEN_5E_P_1 + 1)
1095 #define VEX_LEN_5F_P_1 (VEX_LEN_5E_P_3 + 1)
1096 #define VEX_LEN_5F_P_3 (VEX_LEN_5F_P_1 + 1)
1097 #define VEX_LEN_60_P_2 (VEX_LEN_5F_P_3 + 1)
1098 #define VEX_LEN_61_P_2 (VEX_LEN_60_P_2 + 1)
1099 #define VEX_LEN_62_P_2 (VEX_LEN_61_P_2 + 1)
1100 #define VEX_LEN_63_P_2 (VEX_LEN_62_P_2 + 1)
1101 #define VEX_LEN_64_P_2 (VEX_LEN_63_P_2 + 1)
1102 #define VEX_LEN_65_P_2 (VEX_LEN_64_P_2 + 1)
1103 #define VEX_LEN_66_P_2 (VEX_LEN_65_P_2 + 1)
1104 #define VEX_LEN_67_P_2 (VEX_LEN_66_P_2 + 1)
1105 #define VEX_LEN_68_P_2 (VEX_LEN_67_P_2 + 1)
1106 #define VEX_LEN_69_P_2 (VEX_LEN_68_P_2 + 1)
1107 #define VEX_LEN_6A_P_2 (VEX_LEN_69_P_2 + 1)
1108 #define VEX_LEN_6B_P_2 (VEX_LEN_6A_P_2 + 1)
1109 #define VEX_LEN_6C_P_2 (VEX_LEN_6B_P_2 + 1)
1110 #define VEX_LEN_6D_P_2 (VEX_LEN_6C_P_2 + 1)
1111 #define VEX_LEN_6E_P_2 (VEX_LEN_6D_P_2 + 1)
1112 #define VEX_LEN_70_P_1 (VEX_LEN_6E_P_2 + 1)
1113 #define VEX_LEN_70_P_2 (VEX_LEN_70_P_1 + 1)
1114 #define VEX_LEN_70_P_3 (VEX_LEN_70_P_2 + 1)
1115 #define VEX_LEN_71_R_2_P_2 (VEX_LEN_70_P_3 + 1)
1116 #define VEX_LEN_71_R_4_P_2 (VEX_LEN_71_R_2_P_2 + 1)
1117 #define VEX_LEN_71_R_6_P_2 (VEX_LEN_71_R_4_P_2 + 1)
1118 #define VEX_LEN_72_R_2_P_2 (VEX_LEN_71_R_6_P_2 + 1)
1119 #define VEX_LEN_72_R_4_P_2 (VEX_LEN_72_R_2_P_2 + 1)
1120 #define VEX_LEN_72_R_6_P_2 (VEX_LEN_72_R_4_P_2 + 1)
1121 #define VEX_LEN_73_R_2_P_2 (VEX_LEN_72_R_6_P_2 + 1)
1122 #define VEX_LEN_73_R_3_P_2 (VEX_LEN_73_R_2_P_2 + 1)
1123 #define VEX_LEN_73_R_6_P_2 (VEX_LEN_73_R_3_P_2 + 1)
1124 #define VEX_LEN_73_R_7_P_2 (VEX_LEN_73_R_6_P_2 + 1)
1125 #define VEX_LEN_74_P_2 (VEX_LEN_73_R_7_P_2 + 1)
1126 #define VEX_LEN_75_P_2 (VEX_LEN_74_P_2 + 1)
1127 #define VEX_LEN_76_P_2 (VEX_LEN_75_P_2 + 1)
1128 #define VEX_LEN_7E_P_1 (VEX_LEN_76_P_2 + 1)
1129 #define VEX_LEN_7E_P_2 (VEX_LEN_7E_P_1 + 1)
1130 #define VEX_LEN_AE_R_2_M_0 (VEX_LEN_7E_P_2 + 1)
1131 #define VEX_LEN_AE_R_3_M_0 (VEX_LEN_AE_R_2_M_0 + 1)
1132 #define VEX_LEN_C2_P_1 (VEX_LEN_AE_R_3_M_0 + 1)
1133 #define VEX_LEN_C2_P_3 (VEX_LEN_C2_P_1 + 1)
1134 #define VEX_LEN_C4_P_2 (VEX_LEN_C2_P_3 + 1)
1135 #define VEX_LEN_C5_P_2 (VEX_LEN_C4_P_2 + 1)
1136 #define VEX_LEN_D1_P_2 (VEX_LEN_C5_P_2 + 1)
1137 #define VEX_LEN_D2_P_2 (VEX_LEN_D1_P_2 + 1)
1138 #define VEX_LEN_D3_P_2 (VEX_LEN_D2_P_2 + 1)
1139 #define VEX_LEN_D4_P_2 (VEX_LEN_D3_P_2 + 1)
1140 #define VEX_LEN_D5_P_2 (VEX_LEN_D4_P_2 + 1)
1141 #define VEX_LEN_D6_P_2 (VEX_LEN_D5_P_2 + 1)
1142 #define VEX_LEN_D7_P_2_M_1 (VEX_LEN_D6_P_2 + 1)
1143 #define VEX_LEN_D8_P_2 (VEX_LEN_D7_P_2_M_1 + 1)
1144 #define VEX_LEN_D9_P_2 (VEX_LEN_D8_P_2 + 1)
1145 #define VEX_LEN_DA_P_2 (VEX_LEN_D9_P_2 + 1)
1146 #define VEX_LEN_DB_P_2 (VEX_LEN_DA_P_2 + 1)
1147 #define VEX_LEN_DC_P_2 (VEX_LEN_DB_P_2 + 1)
1148 #define VEX_LEN_DD_P_2 (VEX_LEN_DC_P_2 + 1)
1149 #define VEX_LEN_DE_P_2 (VEX_LEN_DD_P_2 + 1)
1150 #define VEX_LEN_DF_P_2 (VEX_LEN_DE_P_2 + 1)
1151 #define VEX_LEN_E0_P_2 (VEX_LEN_DF_P_2 + 1)
1152 #define VEX_LEN_E1_P_2 (VEX_LEN_E0_P_2 + 1)
1153 #define VEX_LEN_E2_P_2 (VEX_LEN_E1_P_2 + 1)
1154 #define VEX_LEN_E3_P_2 (VEX_LEN_E2_P_2 + 1)
1155 #define VEX_LEN_E4_P_2 (VEX_LEN_E3_P_2 + 1)
1156 #define VEX_LEN_E5_P_2 (VEX_LEN_E4_P_2 + 1)
1157 #define VEX_LEN_E8_P_2 (VEX_LEN_E5_P_2 + 1)
1158 #define VEX_LEN_E9_P_2 (VEX_LEN_E8_P_2 + 1)
1159 #define VEX_LEN_EA_P_2 (VEX_LEN_E9_P_2 + 1)
1160 #define VEX_LEN_EB_P_2 (VEX_LEN_EA_P_2 + 1)
1161 #define VEX_LEN_EC_P_2 (VEX_LEN_EB_P_2 + 1)
1162 #define VEX_LEN_ED_P_2 (VEX_LEN_EC_P_2 + 1)
1163 #define VEX_LEN_EE_P_2 (VEX_LEN_ED_P_2 + 1)
1164 #define VEX_LEN_EF_P_2 (VEX_LEN_EE_P_2 + 1)
1165 #define VEX_LEN_F1_P_2 (VEX_LEN_EF_P_2 + 1)
1166 #define VEX_LEN_F2_P_2 (VEX_LEN_F1_P_2 + 1)
1167 #define VEX_LEN_F3_P_2 (VEX_LEN_F2_P_2 + 1)
1168 #define VEX_LEN_F4_P_2 (VEX_LEN_F3_P_2 + 1)
1169 #define VEX_LEN_F5_P_2 (VEX_LEN_F4_P_2 + 1)
1170 #define VEX_LEN_F6_P_2 (VEX_LEN_F5_P_2 + 1)
1171 #define VEX_LEN_F7_P_2 (VEX_LEN_F6_P_2 + 1)
1172 #define VEX_LEN_F8_P_2 (VEX_LEN_F7_P_2 + 1)
1173 #define VEX_LEN_F9_P_2 (VEX_LEN_F8_P_2 + 1)
1174 #define VEX_LEN_FA_P_2 (VEX_LEN_F9_P_2 + 1)
1175 #define VEX_LEN_FB_P_2 (VEX_LEN_FA_P_2 + 1)
1176 #define VEX_LEN_FC_P_2 (VEX_LEN_FB_P_2 + 1)
1177 #define VEX_LEN_FD_P_2 (VEX_LEN_FC_P_2 + 1)
1178 #define VEX_LEN_FE_P_2 (VEX_LEN_FD_P_2 + 1)
1179 #define VEX_LEN_3800_P_2 (VEX_LEN_FE_P_2 + 1)
1180 #define VEX_LEN_3801_P_2 (VEX_LEN_3800_P_2 + 1)
1181 #define VEX_LEN_3802_P_2 (VEX_LEN_3801_P_2 + 1)
1182 #define VEX_LEN_3803_P_2 (VEX_LEN_3802_P_2 + 1)
1183 #define VEX_LEN_3804_P_2 (VEX_LEN_3803_P_2 + 1)
1184 #define VEX_LEN_3805_P_2 (VEX_LEN_3804_P_2 + 1)
1185 #define VEX_LEN_3806_P_2 (VEX_LEN_3805_P_2 + 1)
1186 #define VEX_LEN_3807_P_2 (VEX_LEN_3806_P_2 + 1)
1187 #define VEX_LEN_3808_P_2 (VEX_LEN_3807_P_2 + 1)
1188 #define VEX_LEN_3809_P_2 (VEX_LEN_3808_P_2 + 1)
1189 #define VEX_LEN_380A_P_2 (VEX_LEN_3809_P_2 + 1)
1190 #define VEX_LEN_380B_P_2 (VEX_LEN_380A_P_2 + 1)
1191 #define VEX_LEN_3819_P_2_M_0 (VEX_LEN_380B_P_2 + 1)
1192 #define VEX_LEN_381A_P_2_M_0 (VEX_LEN_3819_P_2_M_0 + 1)
1193 #define VEX_LEN_381C_P_2 (VEX_LEN_381A_P_2_M_0 + 1)
1194 #define VEX_LEN_381D_P_2 (VEX_LEN_381C_P_2 + 1)
1195 #define VEX_LEN_381E_P_2 (VEX_LEN_381D_P_2 + 1)
1196 #define VEX_LEN_3820_P_2 (VEX_LEN_381E_P_2 + 1)
1197 #define VEX_LEN_3821_P_2 (VEX_LEN_3820_P_2 + 1)
1198 #define VEX_LEN_3822_P_2 (VEX_LEN_3821_P_2 + 1)
1199 #define VEX_LEN_3823_P_2 (VEX_LEN_3822_P_2 + 1)
1200 #define VEX_LEN_3824_P_2 (VEX_LEN_3823_P_2 + 1)
1201 #define VEX_LEN_3825_P_2 (VEX_LEN_3824_P_2 + 1)
1202 #define VEX_LEN_3828_P_2 (VEX_LEN_3825_P_2 + 1)
1203 #define VEX_LEN_3829_P_2 (VEX_LEN_3828_P_2 + 1)
1204 #define VEX_LEN_382A_P_2_M_0 (VEX_LEN_3829_P_2 + 1)
1205 #define VEX_LEN_382B_P_2 (VEX_LEN_382A_P_2_M_0 + 1)
1206 #define VEX_LEN_3830_P_2 (VEX_LEN_382B_P_2 + 1)
1207 #define VEX_LEN_3831_P_2 (VEX_LEN_3830_P_2 + 1)
1208 #define VEX_LEN_3832_P_2 (VEX_LEN_3831_P_2 + 1)
1209 #define VEX_LEN_3833_P_2 (VEX_LEN_3832_P_2 + 1)
1210 #define VEX_LEN_3834_P_2 (VEX_LEN_3833_P_2 + 1)
1211 #define VEX_LEN_3835_P_2 (VEX_LEN_3834_P_2 + 1)
1212 #define VEX_LEN_3837_P_2 (VEX_LEN_3835_P_2 + 1)
1213 #define VEX_LEN_3838_P_2 (VEX_LEN_3837_P_2 + 1)
1214 #define VEX_LEN_3839_P_2 (VEX_LEN_3838_P_2 + 1)
1215 #define VEX_LEN_383A_P_2 (VEX_LEN_3839_P_2 + 1)
1216 #define VEX_LEN_383B_P_2 (VEX_LEN_383A_P_2 + 1)
1217 #define VEX_LEN_383C_P_2 (VEX_LEN_383B_P_2 + 1)
1218 #define VEX_LEN_383D_P_2 (VEX_LEN_383C_P_2 + 1)
1219 #define VEX_LEN_383E_P_2 (VEX_LEN_383D_P_2 + 1)
1220 #define VEX_LEN_383F_P_2 (VEX_LEN_383E_P_2 + 1)
1221 #define VEX_LEN_3840_P_2 (VEX_LEN_383F_P_2 + 1)
1222 #define VEX_LEN_3841_P_2 (VEX_LEN_3840_P_2 + 1)
1223 #define VEX_LEN_38DB_P_2 (VEX_LEN_3841_P_2 + 1)
1224 #define VEX_LEN_38DC_P_2 (VEX_LEN_38DB_P_2 + 1)
1225 #define VEX_LEN_38DD_P_2 (VEX_LEN_38DC_P_2 + 1)
1226 #define VEX_LEN_38DE_P_2 (VEX_LEN_38DD_P_2 + 1)
1227 #define VEX_LEN_38DF_P_2 (VEX_LEN_38DE_P_2 + 1)
1228 #define VEX_LEN_3A06_P_2 (VEX_LEN_38DF_P_2 + 1)
1229 #define VEX_LEN_3A0A_P_2 (VEX_LEN_3A06_P_2 + 1)
1230 #define VEX_LEN_3A0B_P_2 (VEX_LEN_3A0A_P_2 + 1)
1231 #define VEX_LEN_3A0E_P_2 (VEX_LEN_3A0B_P_2 + 1)
1232 #define VEX_LEN_3A0F_P_2 (VEX_LEN_3A0E_P_2 + 1)
1233 #define VEX_LEN_3A14_P_2 (VEX_LEN_3A0F_P_2 + 1)
1234 #define VEX_LEN_3A15_P_2 (VEX_LEN_3A14_P_2 + 1)
1235 #define VEX_LEN_3A16_P_2 (VEX_LEN_3A15_P_2 + 1)
1236 #define VEX_LEN_3A17_P_2 (VEX_LEN_3A16_P_2 + 1)
1237 #define VEX_LEN_3A18_P_2 (VEX_LEN_3A17_P_2 + 1)
1238 #define VEX_LEN_3A19_P_2 (VEX_LEN_3A18_P_2 + 1)
1239 #define VEX_LEN_3A20_P_2 (VEX_LEN_3A19_P_2 + 1)
1240 #define VEX_LEN_3A21_P_2 (VEX_LEN_3A20_P_2 + 1)
1241 #define VEX_LEN_3A22_P_2 (VEX_LEN_3A21_P_2 + 1)
1242 #define VEX_LEN_3A41_P_2 (VEX_LEN_3A22_P_2 + 1)
1243 #define VEX_LEN_3A42_P_2 (VEX_LEN_3A41_P_2 + 1)
1244 #define VEX_LEN_3A44_P_2 (VEX_LEN_3A42_P_2 + 1)
1245 #define VEX_LEN_3A4C_P_2 (VEX_LEN_3A44_P_2 + 1)
1246 #define VEX_LEN_3A60_P_2 (VEX_LEN_3A4C_P_2 + 1)
1247 #define VEX_LEN_3A61_P_2 (VEX_LEN_3A60_P_2 + 1)
1248 #define VEX_LEN_3A62_P_2 (VEX_LEN_3A61_P_2 + 1)
1249 #define VEX_LEN_3A63_P_2 (VEX_LEN_3A62_P_2 + 1)
1250 #define VEX_LEN_3A6A_P_2 (VEX_LEN_3A63_P_2 + 1)
1251 #define VEX_LEN_3A6B_P_2 (VEX_LEN_3A6A_P_2 + 1)
1252 #define VEX_LEN_3A6E_P_2 (VEX_LEN_3A6B_P_2 + 1)
1253 #define VEX_LEN_3A6F_P_2 (VEX_LEN_3A6E_P_2 + 1)
1254 #define VEX_LEN_3A7A_P_2 (VEX_LEN_3A6F_P_2 + 1)
1255 #define VEX_LEN_3A7B_P_2 (VEX_LEN_3A7A_P_2 + 1)
1256 #define VEX_LEN_3A7E_P_2 (VEX_LEN_3A7B_P_2 + 1)
1257 #define VEX_LEN_3A7F_P_2 (VEX_LEN_3A7E_P_2 + 1)
1258 #define VEX_LEN_3ADF_P_2 (VEX_LEN_3A7F_P_2 + 1)
1260 typedef void (*op_rtn
) (int bytemode
, int sizeflag
);
1271 /* Upper case letters in the instruction names here are macros.
1272 'A' => print 'b' if no register operands or suffix_always is true
1273 'B' => print 'b' if suffix_always is true
1274 'C' => print 's' or 'l' ('w' or 'd' in Intel mode) depending on operand
1276 'D' => print 'w' if no register operands or 'w', 'l' or 'q', if
1277 suffix_always is true
1278 'E' => print 'e' if 32-bit form of jcxz
1279 'F' => print 'w' or 'l' depending on address size prefix (loop insns)
1280 'G' => print 'w' or 'l' depending on operand size prefix (i/o insns)
1281 'H' => print ",pt" or ",pn" branch hint
1282 'I' => honor following macro letter even in Intel mode (implemented only
1283 for some of the macro letters)
1285 'K' => print 'd' or 'q' if rex prefix is present.
1286 'L' => print 'l' if suffix_always is true
1287 'M' => print 'r' if intel_mnemonic is false.
1288 'N' => print 'n' if instruction has no wait "prefix"
1289 'O' => print 'd' or 'o' (or 'q' in Intel mode)
1290 'P' => print 'w', 'l' or 'q' if instruction has an operand size prefix,
1291 or suffix_always is true. print 'q' if rex prefix is present.
1292 'Q' => print 'w', 'l' or 'q' for memory operand or suffix_always
1294 'R' => print 'w', 'l' or 'q' ('d' for 'l' and 'e' in Intel mode)
1295 'S' => print 'w', 'l' or 'q' if suffix_always is true
1296 'T' => print 'q' in 64bit mode and behave as 'P' otherwise
1297 'U' => print 'q' in 64bit mode and behave as 'Q' otherwise
1298 'V' => print 'q' in 64bit mode and behave as 'S' otherwise
1299 'W' => print 'b', 'w' or 'l' ('d' in Intel mode)
1300 'X' => print 's', 'd' depending on data16 prefix (for XMM)
1301 'Y' => 'q' if instruction has an REX 64bit overwrite prefix and
1302 suffix_always is true.
1303 'Z' => print 'q' in 64bit mode and behave as 'L' otherwise
1304 '!' => change condition from true to false or from false to true.
1305 '%' => add 1 upper case letter to the macro.
1307 2 upper case letter macros:
1308 "XY" => print 'x' or 'y' if no register operands or suffix_always
1310 'XW' => print 's', 'd' depending on the VEX.W bit (for FMA)
1311 'LQ' => print 'l' ('d' in Intel mode) or 'q' for memory operand
1312 or suffix_always is true
1314 Many of the above letters print nothing in Intel mode. See "putop"
1317 Braces '{' and '}', and vertical bars '|', indicate alternative
1318 mnemonic strings for AT&T and Intel. */
1320 static const struct dis386 dis386
[] = {
1322 { "addB", { Eb
, Gb
} },
1323 { "addS", { Ev
, Gv
} },
1324 { "addB", { Gb
, EbS
} },
1325 { "addS", { Gv
, EvS
} },
1326 { "addB", { AL
, Ib
} },
1327 { "addS", { eAX
, Iv
} },
1328 { X86_64_TABLE (X86_64_06
) },
1329 { X86_64_TABLE (X86_64_07
) },
1331 { "orB", { Eb
, Gb
} },
1332 { "orS", { Ev
, Gv
} },
1333 { "orB", { Gb
, EbS
} },
1334 { "orS", { Gv
, EvS
} },
1335 { "orB", { AL
, Ib
} },
1336 { "orS", { eAX
, Iv
} },
1337 { X86_64_TABLE (X86_64_0D
) },
1338 { "(bad)", { XX
} }, /* 0x0f extended opcode escape */
1340 { "adcB", { Eb
, Gb
} },
1341 { "adcS", { Ev
, Gv
} },
1342 { "adcB", { Gb
, EbS
} },
1343 { "adcS", { Gv
, EvS
} },
1344 { "adcB", { AL
, Ib
} },
1345 { "adcS", { eAX
, Iv
} },
1346 { X86_64_TABLE (X86_64_16
) },
1347 { X86_64_TABLE (X86_64_17
) },
1349 { "sbbB", { Eb
, Gb
} },
1350 { "sbbS", { Ev
, Gv
} },
1351 { "sbbB", { Gb
, EbS
} },
1352 { "sbbS", { Gv
, EvS
} },
1353 { "sbbB", { AL
, Ib
} },
1354 { "sbbS", { eAX
, Iv
} },
1355 { X86_64_TABLE (X86_64_1E
) },
1356 { X86_64_TABLE (X86_64_1F
) },
1358 { "andB", { Eb
, Gb
} },
1359 { "andS", { Ev
, Gv
} },
1360 { "andB", { Gb
, EbS
} },
1361 { "andS", { Gv
, EvS
} },
1362 { "andB", { AL
, Ib
} },
1363 { "andS", { eAX
, Iv
} },
1364 { "(bad)", { XX
} }, /* SEG ES prefix */
1365 { X86_64_TABLE (X86_64_27
) },
1367 { "subB", { Eb
, Gb
} },
1368 { "subS", { Ev
, Gv
} },
1369 { "subB", { Gb
, EbS
} },
1370 { "subS", { Gv
, EvS
} },
1371 { "subB", { AL
, Ib
} },
1372 { "subS", { eAX
, Iv
} },
1373 { "(bad)", { XX
} }, /* SEG CS prefix */
1374 { X86_64_TABLE (X86_64_2F
) },
1376 { "xorB", { Eb
, Gb
} },
1377 { "xorS", { Ev
, Gv
} },
1378 { "xorB", { Gb
, EbS
} },
1379 { "xorS", { Gv
, EvS
} },
1380 { "xorB", { AL
, Ib
} },
1381 { "xorS", { eAX
, Iv
} },
1382 { "(bad)", { XX
} }, /* SEG SS prefix */
1383 { X86_64_TABLE (X86_64_37
) },
1385 { "cmpB", { Eb
, Gb
} },
1386 { "cmpS", { Ev
, Gv
} },
1387 { "cmpB", { Gb
, EbS
} },
1388 { "cmpS", { Gv
, EvS
} },
1389 { "cmpB", { AL
, Ib
} },
1390 { "cmpS", { eAX
, Iv
} },
1391 { "(bad)", { XX
} }, /* SEG DS prefix */
1392 { X86_64_TABLE (X86_64_3F
) },
1394 { "inc{S|}", { RMeAX
} },
1395 { "inc{S|}", { RMeCX
} },
1396 { "inc{S|}", { RMeDX
} },
1397 { "inc{S|}", { RMeBX
} },
1398 { "inc{S|}", { RMeSP
} },
1399 { "inc{S|}", { RMeBP
} },
1400 { "inc{S|}", { RMeSI
} },
1401 { "inc{S|}", { RMeDI
} },
1403 { "dec{S|}", { RMeAX
} },
1404 { "dec{S|}", { RMeCX
} },
1405 { "dec{S|}", { RMeDX
} },
1406 { "dec{S|}", { RMeBX
} },
1407 { "dec{S|}", { RMeSP
} },
1408 { "dec{S|}", { RMeBP
} },
1409 { "dec{S|}", { RMeSI
} },
1410 { "dec{S|}", { RMeDI
} },
1412 { "pushV", { RMrAX
} },
1413 { "pushV", { RMrCX
} },
1414 { "pushV", { RMrDX
} },
1415 { "pushV", { RMrBX
} },
1416 { "pushV", { RMrSP
} },
1417 { "pushV", { RMrBP
} },
1418 { "pushV", { RMrSI
} },
1419 { "pushV", { RMrDI
} },
1421 { "popV", { RMrAX
} },
1422 { "popV", { RMrCX
} },
1423 { "popV", { RMrDX
} },
1424 { "popV", { RMrBX
} },
1425 { "popV", { RMrSP
} },
1426 { "popV", { RMrBP
} },
1427 { "popV", { RMrSI
} },
1428 { "popV", { RMrDI
} },
1430 { X86_64_TABLE (X86_64_60
) },
1431 { X86_64_TABLE (X86_64_61
) },
1432 { X86_64_TABLE (X86_64_62
) },
1433 { X86_64_TABLE (X86_64_63
) },
1434 { "(bad)", { XX
} }, /* seg fs */
1435 { "(bad)", { XX
} }, /* seg gs */
1436 { "(bad)", { XX
} }, /* op size prefix */
1437 { "(bad)", { XX
} }, /* adr size prefix */
1439 { "pushT", { Iq
} },
1440 { "imulS", { Gv
, Ev
, Iv
} },
1441 { "pushT", { sIb
} },
1442 { "imulS", { Gv
, Ev
, sIb
} },
1443 { "ins{b|}", { Ybr
, indirDX
} },
1444 { X86_64_TABLE (X86_64_6D
) },
1445 { "outs{b|}", { indirDXr
, Xb
} },
1446 { X86_64_TABLE (X86_64_6F
) },
1448 { "joH", { Jb
, XX
, cond_jump_flag
} },
1449 { "jnoH", { Jb
, XX
, cond_jump_flag
} },
1450 { "jbH", { Jb
, XX
, cond_jump_flag
} },
1451 { "jaeH", { Jb
, XX
, cond_jump_flag
} },
1452 { "jeH", { Jb
, XX
, cond_jump_flag
} },
1453 { "jneH", { Jb
, XX
, cond_jump_flag
} },
1454 { "jbeH", { Jb
, XX
, cond_jump_flag
} },
1455 { "jaH", { Jb
, XX
, cond_jump_flag
} },
1457 { "jsH", { Jb
, XX
, cond_jump_flag
} },
1458 { "jnsH", { Jb
, XX
, cond_jump_flag
} },
1459 { "jpH", { Jb
, XX
, cond_jump_flag
} },
1460 { "jnpH", { Jb
, XX
, cond_jump_flag
} },
1461 { "jlH", { Jb
, XX
, cond_jump_flag
} },
1462 { "jgeH", { Jb
, XX
, cond_jump_flag
} },
1463 { "jleH", { Jb
, XX
, cond_jump_flag
} },
1464 { "jgH", { Jb
, XX
, cond_jump_flag
} },
1466 { REG_TABLE (REG_80
) },
1467 { REG_TABLE (REG_81
) },
1468 { "(bad)", { XX
} },
1469 { REG_TABLE (REG_82
) },
1470 { "testB", { Eb
, Gb
} },
1471 { "testS", { Ev
, Gv
} },
1472 { "xchgB", { Eb
, Gb
} },
1473 { "xchgS", { Ev
, Gv
} },
1475 { "movB", { Eb
, Gb
} },
1476 { "movS", { Ev
, Gv
} },
1477 { "movB", { Gb
, EbS
} },
1478 { "movS", { Gv
, EvS
} },
1479 { "movD", { Sv
, Sw
} },
1480 { MOD_TABLE (MOD_8D
) },
1481 { "movD", { Sw
, Sv
} },
1482 { REG_TABLE (REG_8F
) },
1484 { PREFIX_TABLE (PREFIX_90
) },
1485 { "xchgS", { RMeCX
, eAX
} },
1486 { "xchgS", { RMeDX
, eAX
} },
1487 { "xchgS", { RMeBX
, eAX
} },
1488 { "xchgS", { RMeSP
, eAX
} },
1489 { "xchgS", { RMeBP
, eAX
} },
1490 { "xchgS", { RMeSI
, eAX
} },
1491 { "xchgS", { RMeDI
, eAX
} },
1493 { "cW{t|}R", { XX
} },
1494 { "cR{t|}O", { XX
} },
1495 { X86_64_TABLE (X86_64_9A
) },
1496 { "(bad)", { XX
} }, /* fwait */
1497 { "pushfT", { XX
} },
1498 { "popfT", { XX
} },
1502 { "movB", { AL
, Ob
} },
1503 { "movS", { eAX
, Ov
} },
1504 { "movB", { Ob
, AL
} },
1505 { "movS", { Ov
, eAX
} },
1506 { "movs{b|}", { Ybr
, Xb
} },
1507 { "movs{R|}", { Yvr
, Xv
} },
1508 { "cmps{b|}", { Xb
, Yb
} },
1509 { "cmps{R|}", { Xv
, Yv
} },
1511 { "testB", { AL
, Ib
} },
1512 { "testS", { eAX
, Iv
} },
1513 { "stosB", { Ybr
, AL
} },
1514 { "stosS", { Yvr
, eAX
} },
1515 { "lodsB", { ALr
, Xb
} },
1516 { "lodsS", { eAXr
, Xv
} },
1517 { "scasB", { AL
, Yb
} },
1518 { "scasS", { eAX
, Yv
} },
1520 { "movB", { RMAL
, Ib
} },
1521 { "movB", { RMCL
, Ib
} },
1522 { "movB", { RMDL
, Ib
} },
1523 { "movB", { RMBL
, Ib
} },
1524 { "movB", { RMAH
, Ib
} },
1525 { "movB", { RMCH
, Ib
} },
1526 { "movB", { RMDH
, Ib
} },
1527 { "movB", { RMBH
, Ib
} },
1529 { "movS", { RMeAX
, Iv64
} },
1530 { "movS", { RMeCX
, Iv64
} },
1531 { "movS", { RMeDX
, Iv64
} },
1532 { "movS", { RMeBX
, Iv64
} },
1533 { "movS", { RMeSP
, Iv64
} },
1534 { "movS", { RMeBP
, Iv64
} },
1535 { "movS", { RMeSI
, Iv64
} },
1536 { "movS", { RMeDI
, Iv64
} },
1538 { REG_TABLE (REG_C0
) },
1539 { REG_TABLE (REG_C1
) },
1542 { X86_64_TABLE (X86_64_C4
) },
1543 { X86_64_TABLE (X86_64_C5
) },
1544 { REG_TABLE (REG_C6
) },
1545 { REG_TABLE (REG_C7
) },
1547 { "enterT", { Iw
, Ib
} },
1548 { "leaveT", { XX
} },
1549 { "Jret{|f}P", { Iw
} },
1550 { "Jret{|f}P", { XX
} },
1553 { X86_64_TABLE (X86_64_CE
) },
1554 { "iretP", { XX
} },
1556 { REG_TABLE (REG_D0
) },
1557 { REG_TABLE (REG_D1
) },
1558 { REG_TABLE (REG_D2
) },
1559 { REG_TABLE (REG_D3
) },
1560 { X86_64_TABLE (X86_64_D4
) },
1561 { X86_64_TABLE (X86_64_D5
) },
1562 { "(bad)", { XX
} },
1563 { "xlat", { DSBX
} },
1574 { "loopneFH", { Jb
, XX
, loop_jcxz_flag
} },
1575 { "loopeFH", { Jb
, XX
, loop_jcxz_flag
} },
1576 { "loopFH", { Jb
, XX
, loop_jcxz_flag
} },
1577 { "jEcxzH", { Jb
, XX
, loop_jcxz_flag
} },
1578 { "inB", { AL
, Ib
} },
1579 { "inG", { zAX
, Ib
} },
1580 { "outB", { Ib
, AL
} },
1581 { "outG", { Ib
, zAX
} },
1583 { "callT", { Jv
} },
1585 { X86_64_TABLE (X86_64_EA
) },
1587 { "inB", { AL
, indirDX
} },
1588 { "inG", { zAX
, indirDX
} },
1589 { "outB", { indirDX
, AL
} },
1590 { "outG", { indirDX
, zAX
} },
1592 { "(bad)", { XX
} }, /* lock prefix */
1593 { "icebp", { XX
} },
1594 { "(bad)", { XX
} }, /* repne */
1595 { "(bad)", { XX
} }, /* repz */
1598 { REG_TABLE (REG_F6
) },
1599 { REG_TABLE (REG_F7
) },
1607 { REG_TABLE (REG_FE
) },
1608 { REG_TABLE (REG_FF
) },
1611 static const struct dis386 dis386_twobyte
[] = {
1613 { REG_TABLE (REG_0F00
) },
1614 { REG_TABLE (REG_0F01
) },
1615 { "larS", { Gv
, Ew
} },
1616 { "lslS", { Gv
, Ew
} },
1617 { "(bad)", { XX
} },
1618 { "syscall", { XX
} },
1620 { "sysretP", { XX
} },
1623 { "wbinvd", { XX
} },
1624 { "(bad)", { XX
} },
1626 { "(bad)", { XX
} },
1627 { REG_TABLE (REG_0F0D
) },
1628 { "femms", { XX
} },
1629 { "", { MX
, EM
, OPSUF
} }, /* See OP_3DNowSuffix. */
1631 { PREFIX_TABLE (PREFIX_0F10
) },
1632 { PREFIX_TABLE (PREFIX_0F11
) },
1633 { PREFIX_TABLE (PREFIX_0F12
) },
1634 { MOD_TABLE (MOD_0F13
) },
1635 { "unpcklpX", { XM
, EXx
} },
1636 { "unpckhpX", { XM
, EXx
} },
1637 { PREFIX_TABLE (PREFIX_0F16
) },
1638 { MOD_TABLE (MOD_0F17
) },
1640 { REG_TABLE (REG_0F18
) },
1649 { MOD_TABLE (MOD_0F20
) },
1650 { MOD_TABLE (MOD_0F21
) },
1651 { MOD_TABLE (MOD_0F22
) },
1652 { MOD_TABLE (MOD_0F23
) },
1653 { MOD_TABLE (MOD_0F24
) },
1654 { "(bad)", { XX
} },
1655 { MOD_TABLE (MOD_0F26
) },
1656 { "(bad)", { XX
} },
1658 { "movapX", { XM
, EXx
} },
1659 { "movapX", { EXxS
, XM
} },
1660 { PREFIX_TABLE (PREFIX_0F2A
) },
1661 { PREFIX_TABLE (PREFIX_0F2B
) },
1662 { PREFIX_TABLE (PREFIX_0F2C
) },
1663 { PREFIX_TABLE (PREFIX_0F2D
) },
1664 { PREFIX_TABLE (PREFIX_0F2E
) },
1665 { PREFIX_TABLE (PREFIX_0F2F
) },
1667 { "wrmsr", { XX
} },
1668 { "rdtsc", { XX
} },
1669 { "rdmsr", { XX
} },
1670 { "rdpmc", { XX
} },
1671 { "sysenter", { XX
} },
1672 { "sysexit", { XX
} },
1673 { "(bad)", { XX
} },
1674 { "getsec", { XX
} },
1676 { THREE_BYTE_TABLE (THREE_BYTE_0F38
) },
1677 { "(bad)", { XX
} },
1678 { THREE_BYTE_TABLE (THREE_BYTE_0F3A
) },
1679 { "(bad)", { XX
} },
1680 { "(bad)", { XX
} },
1681 { "(bad)", { XX
} },
1682 { "(bad)", { XX
} },
1683 { "(bad)", { XX
} },
1685 { "cmovoS", { Gv
, Ev
} },
1686 { "cmovnoS", { Gv
, Ev
} },
1687 { "cmovbS", { Gv
, Ev
} },
1688 { "cmovaeS", { Gv
, Ev
} },
1689 { "cmoveS", { Gv
, Ev
} },
1690 { "cmovneS", { Gv
, Ev
} },
1691 { "cmovbeS", { Gv
, Ev
} },
1692 { "cmovaS", { Gv
, Ev
} },
1694 { "cmovsS", { Gv
, Ev
} },
1695 { "cmovnsS", { Gv
, Ev
} },
1696 { "cmovpS", { Gv
, Ev
} },
1697 { "cmovnpS", { Gv
, Ev
} },
1698 { "cmovlS", { Gv
, Ev
} },
1699 { "cmovgeS", { Gv
, Ev
} },
1700 { "cmovleS", { Gv
, Ev
} },
1701 { "cmovgS", { Gv
, Ev
} },
1703 { MOD_TABLE (MOD_0F51
) },
1704 { PREFIX_TABLE (PREFIX_0F51
) },
1705 { PREFIX_TABLE (PREFIX_0F52
) },
1706 { PREFIX_TABLE (PREFIX_0F53
) },
1707 { "andpX", { XM
, EXx
} },
1708 { "andnpX", { XM
, EXx
} },
1709 { "orpX", { XM
, EXx
} },
1710 { "xorpX", { XM
, EXx
} },
1712 { PREFIX_TABLE (PREFIX_0F58
) },
1713 { PREFIX_TABLE (PREFIX_0F59
) },
1714 { PREFIX_TABLE (PREFIX_0F5A
) },
1715 { PREFIX_TABLE (PREFIX_0F5B
) },
1716 { PREFIX_TABLE (PREFIX_0F5C
) },
1717 { PREFIX_TABLE (PREFIX_0F5D
) },
1718 { PREFIX_TABLE (PREFIX_0F5E
) },
1719 { PREFIX_TABLE (PREFIX_0F5F
) },
1721 { PREFIX_TABLE (PREFIX_0F60
) },
1722 { PREFIX_TABLE (PREFIX_0F61
) },
1723 { PREFIX_TABLE (PREFIX_0F62
) },
1724 { "packsswb", { MX
, EM
} },
1725 { "pcmpgtb", { MX
, EM
} },
1726 { "pcmpgtw", { MX
, EM
} },
1727 { "pcmpgtd", { MX
, EM
} },
1728 { "packuswb", { MX
, EM
} },
1730 { "punpckhbw", { MX
, EM
} },
1731 { "punpckhwd", { MX
, EM
} },
1732 { "punpckhdq", { MX
, EM
} },
1733 { "packssdw", { MX
, EM
} },
1734 { PREFIX_TABLE (PREFIX_0F6C
) },
1735 { PREFIX_TABLE (PREFIX_0F6D
) },
1736 { "movK", { MX
, Edq
} },
1737 { PREFIX_TABLE (PREFIX_0F6F
) },
1739 { PREFIX_TABLE (PREFIX_0F70
) },
1740 { REG_TABLE (REG_0F71
) },
1741 { REG_TABLE (REG_0F72
) },
1742 { REG_TABLE (REG_0F73
) },
1743 { "pcmpeqb", { MX
, EM
} },
1744 { "pcmpeqw", { MX
, EM
} },
1745 { "pcmpeqd", { MX
, EM
} },
1748 { PREFIX_TABLE (PREFIX_0F78
) },
1749 { PREFIX_TABLE (PREFIX_0F79
) },
1750 { THREE_BYTE_TABLE (THREE_BYTE_0F7A
) },
1751 { "(bad)", { XX
} },
1752 { PREFIX_TABLE (PREFIX_0F7C
) },
1753 { PREFIX_TABLE (PREFIX_0F7D
) },
1754 { PREFIX_TABLE (PREFIX_0F7E
) },
1755 { PREFIX_TABLE (PREFIX_0F7F
) },
1757 { "joH", { Jv
, XX
, cond_jump_flag
} },
1758 { "jnoH", { Jv
, XX
, cond_jump_flag
} },
1759 { "jbH", { Jv
, XX
, cond_jump_flag
} },
1760 { "jaeH", { Jv
, XX
, cond_jump_flag
} },
1761 { "jeH", { Jv
, XX
, cond_jump_flag
} },
1762 { "jneH", { Jv
, XX
, cond_jump_flag
} },
1763 { "jbeH", { Jv
, XX
, cond_jump_flag
} },
1764 { "jaH", { Jv
, XX
, cond_jump_flag
} },
1766 { "jsH", { Jv
, XX
, cond_jump_flag
} },
1767 { "jnsH", { Jv
, XX
, cond_jump_flag
} },
1768 { "jpH", { Jv
, XX
, cond_jump_flag
} },
1769 { "jnpH", { Jv
, XX
, cond_jump_flag
} },
1770 { "jlH", { Jv
, XX
, cond_jump_flag
} },
1771 { "jgeH", { Jv
, XX
, cond_jump_flag
} },
1772 { "jleH", { Jv
, XX
, cond_jump_flag
} },
1773 { "jgH", { Jv
, XX
, cond_jump_flag
} },
1776 { "setno", { Eb
} },
1778 { "setae", { Eb
} },
1780 { "setne", { Eb
} },
1781 { "setbe", { Eb
} },
1785 { "setns", { Eb
} },
1787 { "setnp", { Eb
} },
1789 { "setge", { Eb
} },
1790 { "setle", { Eb
} },
1793 { "pushT", { fs
} },
1795 { "cpuid", { XX
} },
1796 { "btS", { Ev
, Gv
} },
1797 { "shldS", { Ev
, Gv
, Ib
} },
1798 { "shldS", { Ev
, Gv
, CL
} },
1799 { REG_TABLE (REG_0FA6
) },
1800 { REG_TABLE (REG_0FA7
) },
1802 { "pushT", { gs
} },
1805 { "btsS", { Ev
, Gv
} },
1806 { "shrdS", { Ev
, Gv
, Ib
} },
1807 { "shrdS", { Ev
, Gv
, CL
} },
1808 { REG_TABLE (REG_0FAE
) },
1809 { "imulS", { Gv
, Ev
} },
1811 { "cmpxchgB", { Eb
, Gb
} },
1812 { "cmpxchgS", { Ev
, Gv
} },
1813 { MOD_TABLE (MOD_0FB2
) },
1814 { "btrS", { Ev
, Gv
} },
1815 { MOD_TABLE (MOD_0FB4
) },
1816 { MOD_TABLE (MOD_0FB5
) },
1817 { "movz{bR|x}", { Gv
, Eb
} },
1818 { "movz{wR|x}", { Gv
, Ew
} }, /* yes, there really is movzww ! */
1820 { PREFIX_TABLE (PREFIX_0FB8
) },
1822 { REG_TABLE (REG_0FBA
) },
1823 { "btcS", { Ev
, Gv
} },
1824 { "bsfS", { Gv
, Ev
} },
1825 { PREFIX_TABLE (PREFIX_0FBD
) },
1826 { "movs{bR|x}", { Gv
, Eb
} },
1827 { "movs{wR|x}", { Gv
, Ew
} }, /* yes, there really is movsww ! */
1829 { "xaddB", { Eb
, Gb
} },
1830 { "xaddS", { Ev
, Gv
} },
1831 { PREFIX_TABLE (PREFIX_0FC2
) },
1832 { PREFIX_TABLE (PREFIX_0FC3
) },
1833 { "pinsrw", { MX
, Edqw
, Ib
} },
1834 { "pextrw", { Gdq
, MS
, Ib
} },
1835 { "shufpX", { XM
, EXx
, Ib
} },
1836 { REG_TABLE (REG_0FC7
) },
1838 { "bswap", { RMeAX
} },
1839 { "bswap", { RMeCX
} },
1840 { "bswap", { RMeDX
} },
1841 { "bswap", { RMeBX
} },
1842 { "bswap", { RMeSP
} },
1843 { "bswap", { RMeBP
} },
1844 { "bswap", { RMeSI
} },
1845 { "bswap", { RMeDI
} },
1847 { PREFIX_TABLE (PREFIX_0FD0
) },
1848 { "psrlw", { MX
, EM
} },
1849 { "psrld", { MX
, EM
} },
1850 { "psrlq", { MX
, EM
} },
1851 { "paddq", { MX
, EM
} },
1852 { "pmullw", { MX
, EM
} },
1853 { PREFIX_TABLE (PREFIX_0FD6
) },
1854 { MOD_TABLE (MOD_0FD7
) },
1856 { "psubusb", { MX
, EM
} },
1857 { "psubusw", { MX
, EM
} },
1858 { "pminub", { MX
, EM
} },
1859 { "pand", { MX
, EM
} },
1860 { "paddusb", { MX
, EM
} },
1861 { "paddusw", { MX
, EM
} },
1862 { "pmaxub", { MX
, EM
} },
1863 { "pandn", { MX
, EM
} },
1865 { "pavgb", { MX
, EM
} },
1866 { "psraw", { MX
, EM
} },
1867 { "psrad", { MX
, EM
} },
1868 { "pavgw", { MX
, EM
} },
1869 { "pmulhuw", { MX
, EM
} },
1870 { "pmulhw", { MX
, EM
} },
1871 { PREFIX_TABLE (PREFIX_0FE6
) },
1872 { PREFIX_TABLE (PREFIX_0FE7
) },
1874 { "psubsb", { MX
, EM
} },
1875 { "psubsw", { MX
, EM
} },
1876 { "pminsw", { MX
, EM
} },
1877 { "por", { MX
, EM
} },
1878 { "paddsb", { MX
, EM
} },
1879 { "paddsw", { MX
, EM
} },
1880 { "pmaxsw", { MX
, EM
} },
1881 { "pxor", { MX
, EM
} },
1883 { PREFIX_TABLE (PREFIX_0FF0
) },
1884 { "psllw", { MX
, EM
} },
1885 { "pslld", { MX
, EM
} },
1886 { "psllq", { MX
, EM
} },
1887 { "pmuludq", { MX
, EM
} },
1888 { "pmaddwd", { MX
, EM
} },
1889 { "psadbw", { MX
, EM
} },
1890 { PREFIX_TABLE (PREFIX_0FF7
) },
1892 { "psubb", { MX
, EM
} },
1893 { "psubw", { MX
, EM
} },
1894 { "psubd", { MX
, EM
} },
1895 { "psubq", { MX
, EM
} },
1896 { "paddb", { MX
, EM
} },
1897 { "paddw", { MX
, EM
} },
1898 { "paddd", { MX
, EM
} },
1899 { "(bad)", { XX
} },
1902 static const unsigned char onebyte_has_modrm
[256] = {
1903 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1904 /* ------------------------------- */
1905 /* 00 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 00 */
1906 /* 10 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 10 */
1907 /* 20 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 20 */
1908 /* 30 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 30 */
1909 /* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 40 */
1910 /* 50 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 50 */
1911 /* 60 */ 0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0, /* 60 */
1912 /* 70 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 70 */
1913 /* 80 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 80 */
1914 /* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 90 */
1915 /* a0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* a0 */
1916 /* b0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* b0 */
1917 /* c0 */ 1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0, /* c0 */
1918 /* d0 */ 1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1, /* d0 */
1919 /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* e0 */
1920 /* f0 */ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1 /* f0 */
1921 /* ------------------------------- */
1922 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1925 static const unsigned char twobyte_has_modrm
[256] = {
1926 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1927 /* ------------------------------- */
1928 /* 00 */ 1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,1, /* 0f */
1929 /* 10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 1f */
1930 /* 20 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 2f */
1931 /* 30 */ 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0, /* 3f */
1932 /* 40 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 4f */
1933 /* 50 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 5f */
1934 /* 60 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 6f */
1935 /* 70 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 7f */
1936 /* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */
1937 /* 90 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 9f */
1938 /* a0 */ 0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1, /* af */
1939 /* b0 */ 1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1, /* bf */
1940 /* c0 */ 1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* cf */
1941 /* d0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* df */
1942 /* e0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ef */
1943 /* f0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0 /* ff */
1944 /* ------------------------------- */
1945 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
1948 static char obuf
[100];
1950 static char *mnemonicendp
;
1951 static char scratchbuf
[100];
1952 static unsigned char *start_codep
;
1953 static unsigned char *insn_codep
;
1954 static unsigned char *codep
;
1955 static const char *lock_prefix
;
1956 static const char *data_prefix
;
1957 static const char *addr_prefix
;
1958 static const char *repz_prefix
;
1959 static const char *repnz_prefix
;
1960 static disassemble_info
*the_info
;
1968 static unsigned char need_modrm
;
1971 int register_specifier
;
1977 static unsigned char need_vex
;
1978 static unsigned char need_vex_reg
;
1979 static unsigned char vex_w_done
;
1987 /* If we are accessing mod/rm/reg without need_modrm set, then the
1988 values are stale. Hitting this abort likely indicates that you
1989 need to update onebyte_has_modrm or twobyte_has_modrm. */
1990 #define MODRM_CHECK if (!need_modrm) abort ()
1992 static const char **names64
;
1993 static const char **names32
;
1994 static const char **names16
;
1995 static const char **names8
;
1996 static const char **names8rex
;
1997 static const char **names_seg
;
1998 static const char *index64
;
1999 static const char *index32
;
2000 static const char **index16
;
2002 static const char *intel_names64
[] = {
2003 "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
2004 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
2006 static const char *intel_names32
[] = {
2007 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi",
2008 "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d"
2010 static const char *intel_names16
[] = {
2011 "ax", "cx", "dx", "bx", "sp", "bp", "si", "di",
2012 "r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w"
2014 static const char *intel_names8
[] = {
2015 "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh",
2017 static const char *intel_names8rex
[] = {
2018 "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil",
2019 "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b"
2021 static const char *intel_names_seg
[] = {
2022 "es", "cs", "ss", "ds", "fs", "gs", "?", "?",
2024 static const char *intel_index64
= "riz";
2025 static const char *intel_index32
= "eiz";
2026 static const char *intel_index16
[] = {
2027 "bx+si", "bx+di", "bp+si", "bp+di", "si", "di", "bp", "bx"
2030 static const char *att_names64
[] = {
2031 "%rax", "%rcx", "%rdx", "%rbx", "%rsp", "%rbp", "%rsi", "%rdi",
2032 "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"
2034 static const char *att_names32
[] = {
2035 "%eax", "%ecx", "%edx", "%ebx", "%esp", "%ebp", "%esi", "%edi",
2036 "%r8d", "%r9d", "%r10d", "%r11d", "%r12d", "%r13d", "%r14d", "%r15d"
2038 static const char *att_names16
[] = {
2039 "%ax", "%cx", "%dx", "%bx", "%sp", "%bp", "%si", "%di",
2040 "%r8w", "%r9w", "%r10w", "%r11w", "%r12w", "%r13w", "%r14w", "%r15w"
2042 static const char *att_names8
[] = {
2043 "%al", "%cl", "%dl", "%bl", "%ah", "%ch", "%dh", "%bh",
2045 static const char *att_names8rex
[] = {
2046 "%al", "%cl", "%dl", "%bl", "%spl", "%bpl", "%sil", "%dil",
2047 "%r8b", "%r9b", "%r10b", "%r11b", "%r12b", "%r13b", "%r14b", "%r15b"
2049 static const char *att_names_seg
[] = {
2050 "%es", "%cs", "%ss", "%ds", "%fs", "%gs", "%?", "%?",
2052 static const char *att_index64
= "%riz";
2053 static const char *att_index32
= "%eiz";
2054 static const char *att_index16
[] = {
2055 "%bx,%si", "%bx,%di", "%bp,%si", "%bp,%di", "%si", "%di", "%bp", "%bx"
2058 static const struct dis386 reg_table
[][8] = {
2061 { "addA", { Eb
, Ib
} },
2062 { "orA", { Eb
, Ib
} },
2063 { "adcA", { Eb
, Ib
} },
2064 { "sbbA", { Eb
, Ib
} },
2065 { "andA", { Eb
, Ib
} },
2066 { "subA", { Eb
, Ib
} },
2067 { "xorA", { Eb
, Ib
} },
2068 { "cmpA", { Eb
, Ib
} },
2072 { "addQ", { Ev
, Iv
} },
2073 { "orQ", { Ev
, Iv
} },
2074 { "adcQ", { Ev
, Iv
} },
2075 { "sbbQ", { Ev
, Iv
} },
2076 { "andQ", { Ev
, Iv
} },
2077 { "subQ", { Ev
, Iv
} },
2078 { "xorQ", { Ev
, Iv
} },
2079 { "cmpQ", { Ev
, Iv
} },
2083 { "addQ", { Ev
, sIb
} },
2084 { "orQ", { Ev
, sIb
} },
2085 { "adcQ", { Ev
, sIb
} },
2086 { "sbbQ", { Ev
, sIb
} },
2087 { "andQ", { Ev
, sIb
} },
2088 { "subQ", { Ev
, sIb
} },
2089 { "xorQ", { Ev
, sIb
} },
2090 { "cmpQ", { Ev
, sIb
} },
2094 { "popU", { stackEv
} },
2095 { "(bad)", { XX
} },
2096 { "(bad)", { XX
} },
2097 { "(bad)", { XX
} },
2098 { "(bad)", { XX
} },
2099 { "(bad)", { XX
} },
2100 { "(bad)", { XX
} },
2101 { "(bad)", { XX
} },
2105 { "rolA", { Eb
, Ib
} },
2106 { "rorA", { Eb
, Ib
} },
2107 { "rclA", { Eb
, Ib
} },
2108 { "rcrA", { Eb
, Ib
} },
2109 { "shlA", { Eb
, Ib
} },
2110 { "shrA", { Eb
, Ib
} },
2111 { "(bad)", { XX
} },
2112 { "sarA", { Eb
, Ib
} },
2116 { "rolQ", { Ev
, Ib
} },
2117 { "rorQ", { Ev
, Ib
} },
2118 { "rclQ", { Ev
, Ib
} },
2119 { "rcrQ", { Ev
, Ib
} },
2120 { "shlQ", { Ev
, Ib
} },
2121 { "shrQ", { Ev
, Ib
} },
2122 { "(bad)", { XX
} },
2123 { "sarQ", { Ev
, Ib
} },
2127 { "movA", { Eb
, Ib
} },
2128 { "(bad)", { XX
} },
2129 { "(bad)", { XX
} },
2130 { "(bad)", { XX
} },
2131 { "(bad)", { XX
} },
2132 { "(bad)", { XX
} },
2133 { "(bad)", { XX
} },
2134 { "(bad)", { XX
} },
2138 { "movQ", { Ev
, Iv
} },
2139 { "(bad)", { XX
} },
2140 { "(bad)", { XX
} },
2141 { "(bad)", { XX
} },
2142 { "(bad)", { XX
} },
2143 { "(bad)", { XX
} },
2144 { "(bad)", { XX
} },
2145 { "(bad)", { XX
} },
2149 { "rolA", { Eb
, I1
} },
2150 { "rorA", { Eb
, I1
} },
2151 { "rclA", { Eb
, I1
} },
2152 { "rcrA", { Eb
, I1
} },
2153 { "shlA", { Eb
, I1
} },
2154 { "shrA", { Eb
, I1
} },
2155 { "(bad)", { XX
} },
2156 { "sarA", { Eb
, I1
} },
2160 { "rolQ", { Ev
, I1
} },
2161 { "rorQ", { Ev
, I1
} },
2162 { "rclQ", { Ev
, I1
} },
2163 { "rcrQ", { Ev
, I1
} },
2164 { "shlQ", { Ev
, I1
} },
2165 { "shrQ", { Ev
, I1
} },
2166 { "(bad)", { XX
} },
2167 { "sarQ", { Ev
, I1
} },
2171 { "rolA", { Eb
, CL
} },
2172 { "rorA", { Eb
, CL
} },
2173 { "rclA", { Eb
, CL
} },
2174 { "rcrA", { Eb
, CL
} },
2175 { "shlA", { Eb
, CL
} },
2176 { "shrA", { Eb
, CL
} },
2177 { "(bad)", { XX
} },
2178 { "sarA", { Eb
, CL
} },
2182 { "rolQ", { Ev
, CL
} },
2183 { "rorQ", { Ev
, CL
} },
2184 { "rclQ", { Ev
, CL
} },
2185 { "rcrQ", { Ev
, CL
} },
2186 { "shlQ", { Ev
, CL
} },
2187 { "shrQ", { Ev
, CL
} },
2188 { "(bad)", { XX
} },
2189 { "sarQ", { Ev
, CL
} },
2193 { "testA", { Eb
, Ib
} },
2194 { "(bad)", { XX
} },
2197 { "mulA", { Eb
} }, /* Don't print the implicit %al register, */
2198 { "imulA", { Eb
} }, /* to distinguish these opcodes from other */
2199 { "divA", { Eb
} }, /* mul/imul opcodes. Do the same for div */
2200 { "idivA", { Eb
} }, /* and idiv for consistency. */
2204 { "testQ", { Ev
, Iv
} },
2205 { "(bad)", { XX
} },
2208 { "mulQ", { Ev
} }, /* Don't print the implicit register. */
2209 { "imulQ", { Ev
} },
2211 { "idivQ", { Ev
} },
2217 { "(bad)", { XX
} },
2218 { "(bad)", { XX
} },
2219 { "(bad)", { XX
} },
2220 { "(bad)", { XX
} },
2221 { "(bad)", { XX
} },
2222 { "(bad)", { XX
} },
2228 { "callT", { indirEv
} },
2229 { "JcallT", { indirEp
} },
2230 { "jmpT", { indirEv
} },
2231 { "JjmpT", { indirEp
} },
2232 { "pushU", { stackEv
} },
2233 { "(bad)", { XX
} },
2237 { "sldtD", { Sv
} },
2243 { "(bad)", { XX
} },
2244 { "(bad)", { XX
} },
2248 { MOD_TABLE (MOD_0F01_REG_0
) },
2249 { MOD_TABLE (MOD_0F01_REG_1
) },
2250 { MOD_TABLE (MOD_0F01_REG_2
) },
2251 { MOD_TABLE (MOD_0F01_REG_3
) },
2252 { "smswD", { Sv
} },
2253 { "(bad)", { XX
} },
2255 { MOD_TABLE (MOD_0F01_REG_7
) },
2259 { "prefetch", { Eb
} },
2260 { "prefetchw", { Eb
} },
2261 { "(bad)", { XX
} },
2262 { "(bad)", { XX
} },
2263 { "(bad)", { XX
} },
2264 { "(bad)", { XX
} },
2265 { "(bad)", { XX
} },
2266 { "(bad)", { XX
} },
2270 { MOD_TABLE (MOD_0F18_REG_0
) },
2271 { MOD_TABLE (MOD_0F18_REG_1
) },
2272 { MOD_TABLE (MOD_0F18_REG_2
) },
2273 { MOD_TABLE (MOD_0F18_REG_3
) },
2274 { "(bad)", { XX
} },
2275 { "(bad)", { XX
} },
2276 { "(bad)", { XX
} },
2277 { "(bad)", { XX
} },
2281 { "(bad)", { XX
} },
2282 { "(bad)", { XX
} },
2283 { MOD_TABLE (MOD_0F71_REG_2
) },
2284 { "(bad)", { XX
} },
2285 { MOD_TABLE (MOD_0F71_REG_4
) },
2286 { "(bad)", { XX
} },
2287 { MOD_TABLE (MOD_0F71_REG_6
) },
2288 { "(bad)", { XX
} },
2292 { "(bad)", { XX
} },
2293 { "(bad)", { XX
} },
2294 { MOD_TABLE (MOD_0F72_REG_2
) },
2295 { "(bad)", { XX
} },
2296 { MOD_TABLE (MOD_0F72_REG_4
) },
2297 { "(bad)", { XX
} },
2298 { MOD_TABLE (MOD_0F72_REG_6
) },
2299 { "(bad)", { XX
} },
2303 { "(bad)", { XX
} },
2304 { "(bad)", { XX
} },
2305 { MOD_TABLE (MOD_0F73_REG_2
) },
2306 { MOD_TABLE (MOD_0F73_REG_3
) },
2307 { "(bad)", { XX
} },
2308 { "(bad)", { XX
} },
2309 { MOD_TABLE (MOD_0F73_REG_6
) },
2310 { MOD_TABLE (MOD_0F73_REG_7
) },
2314 { "montmul", { { OP_0f07
, 0 } } },
2315 { "xsha1", { { OP_0f07
, 0 } } },
2316 { "xsha256", { { OP_0f07
, 0 } } },
2317 { "(bad)", { { OP_0f07
, 0 } } },
2318 { "(bad)", { { OP_0f07
, 0 } } },
2319 { "(bad)", { { OP_0f07
, 0 } } },
2320 { "(bad)", { { OP_0f07
, 0 } } },
2321 { "(bad)", { { OP_0f07
, 0 } } },
2325 { "xstore-rng", { { OP_0f07
, 0 } } },
2326 { "xcrypt-ecb", { { OP_0f07
, 0 } } },
2327 { "xcrypt-cbc", { { OP_0f07
, 0 } } },
2328 { "xcrypt-ctr", { { OP_0f07
, 0 } } },
2329 { "xcrypt-cfb", { { OP_0f07
, 0 } } },
2330 { "xcrypt-ofb", { { OP_0f07
, 0 } } },
2331 { "(bad)", { { OP_0f07
, 0 } } },
2332 { "(bad)", { { OP_0f07
, 0 } } },
2336 { MOD_TABLE (MOD_0FAE_REG_0
) },
2337 { MOD_TABLE (MOD_0FAE_REG_1
) },
2338 { MOD_TABLE (MOD_0FAE_REG_2
) },
2339 { MOD_TABLE (MOD_0FAE_REG_3
) },
2340 { MOD_TABLE (MOD_0FAE_REG_4
) },
2341 { MOD_TABLE (MOD_0FAE_REG_5
) },
2342 { MOD_TABLE (MOD_0FAE_REG_6
) },
2343 { MOD_TABLE (MOD_0FAE_REG_7
) },
2347 { "(bad)", { XX
} },
2348 { "(bad)", { XX
} },
2349 { "(bad)", { XX
} },
2350 { "(bad)", { XX
} },
2351 { "btQ", { Ev
, Ib
} },
2352 { "btsQ", { Ev
, Ib
} },
2353 { "btrQ", { Ev
, Ib
} },
2354 { "btcQ", { Ev
, Ib
} },
2358 { "(bad)", { XX
} },
2359 { "cmpxchg8b", { { CMPXCHG8B_Fixup
, q_mode
} } },
2360 { "(bad)", { XX
} },
2361 { "(bad)", { XX
} },
2362 { "(bad)", { XX
} },
2363 { "(bad)", { XX
} },
2364 { MOD_TABLE (MOD_0FC7_REG_6
) },
2365 { MOD_TABLE (MOD_0FC7_REG_7
) },
2369 { "(bad)", { XX
} },
2370 { "(bad)", { XX
} },
2371 { MOD_TABLE (MOD_VEX_71_REG_2
) },
2372 { "(bad)", { XX
} },
2373 { MOD_TABLE (MOD_VEX_71_REG_4
) },
2374 { "(bad)", { XX
} },
2375 { MOD_TABLE (MOD_VEX_71_REG_6
) },
2376 { "(bad)", { XX
} },
2380 { "(bad)", { XX
} },
2381 { "(bad)", { XX
} },
2382 { MOD_TABLE (MOD_VEX_72_REG_2
) },
2383 { "(bad)", { XX
} },
2384 { MOD_TABLE (MOD_VEX_72_REG_4
) },
2385 { "(bad)", { XX
} },
2386 { MOD_TABLE (MOD_VEX_72_REG_6
) },
2387 { "(bad)", { XX
} },
2391 { "(bad)", { XX
} },
2392 { "(bad)", { XX
} },
2393 { MOD_TABLE (MOD_VEX_73_REG_2
) },
2394 { MOD_TABLE (MOD_VEX_73_REG_3
) },
2395 { "(bad)", { XX
} },
2396 { "(bad)", { XX
} },
2397 { MOD_TABLE (MOD_VEX_73_REG_6
) },
2398 { MOD_TABLE (MOD_VEX_73_REG_7
) },
2402 { "(bad)", { XX
} },
2403 { "(bad)", { XX
} },
2404 { MOD_TABLE (MOD_VEX_AE_REG_2
) },
2405 { MOD_TABLE (MOD_VEX_AE_REG_3
) },
2406 { "(bad)", { XX
} },
2407 { "(bad)", { XX
} },
2408 { "(bad)", { XX
} },
2409 { "(bad)", { XX
} },
2413 static const struct dis386 prefix_table
[][4] = {
2416 { "xchgS", { { NOP_Fixup1
, eAX_reg
}, { NOP_Fixup2
, eAX_reg
} } },
2417 { "pause", { XX
} },
2418 { "xchgS", { { NOP_Fixup1
, eAX_reg
}, { NOP_Fixup2
, eAX_reg
} } },
2419 { "(bad)", { XX
} },
2424 { "movups", { XM
, EXx
} },
2425 { "movss", { XM
, EXd
} },
2426 { "movupd", { XM
, EXx
} },
2427 { "movsd", { XM
, EXq
} },
2432 { "movups", { EXxS
, XM
} },
2433 { "movss", { EXdS
, XM
} },
2434 { "movupd", { EXxS
, XM
} },
2435 { "movsd", { EXqS
, XM
} },
2440 { MOD_TABLE (MOD_0F12_PREFIX_0
) },
2441 { "movsldup", { XM
, EXx
} },
2442 { "movlpd", { XM
, EXq
} },
2443 { "movddup", { XM
, EXq
} },
2448 { MOD_TABLE (MOD_0F16_PREFIX_0
) },
2449 { "movshdup", { XM
, EXx
} },
2450 { "movhpd", { XM
, EXq
} },
2451 { "(bad)", { XX
} },
2456 { "cvtpi2ps", { XM
, EMCq
} },
2457 { "cvtsi2ss%LQ", { XM
, Ev
} },
2458 { "cvtpi2pd", { XM
, EMCq
} },
2459 { "cvtsi2sd%LQ", { XM
, Ev
} },
2464 { MOD_TABLE (MOD_0F2B_PREFIX_0
) },
2465 { MOD_TABLE (MOD_0F2B_PREFIX_1
) },
2466 { MOD_TABLE (MOD_0F2B_PREFIX_2
) },
2467 { MOD_TABLE (MOD_0F2B_PREFIX_3
) },
2472 { "cvttps2pi", { MXC
, EXq
} },
2473 { "cvttss2siY", { Gv
, EXd
} },
2474 { "cvttpd2pi", { MXC
, EXx
} },
2475 { "cvttsd2siY", { Gv
, EXq
} },
2480 { "cvtps2pi", { MXC
, EXq
} },
2481 { "cvtss2siY", { Gv
, EXd
} },
2482 { "cvtpd2pi", { MXC
, EXx
} },
2483 { "cvtsd2siY", { Gv
, EXq
} },
2488 { "ucomiss",{ XM
, EXd
} },
2489 { "(bad)", { XX
} },
2490 { "ucomisd",{ XM
, EXq
} },
2491 { "(bad)", { XX
} },
2496 { "comiss", { XM
, EXd
} },
2497 { "(bad)", { XX
} },
2498 { "comisd", { XM
, EXq
} },
2499 { "(bad)", { XX
} },
2504 { "sqrtps", { XM
, EXx
} },
2505 { "sqrtss", { XM
, EXd
} },
2506 { "sqrtpd", { XM
, EXx
} },
2507 { "sqrtsd", { XM
, EXq
} },
2512 { "rsqrtps",{ XM
, EXx
} },
2513 { "rsqrtss",{ XM
, EXd
} },
2514 { "(bad)", { XX
} },
2515 { "(bad)", { XX
} },
2520 { "rcpps", { XM
, EXx
} },
2521 { "rcpss", { XM
, EXd
} },
2522 { "(bad)", { XX
} },
2523 { "(bad)", { XX
} },
2528 { "addps", { XM
, EXx
} },
2529 { "addss", { XM
, EXd
} },
2530 { "addpd", { XM
, EXx
} },
2531 { "addsd", { XM
, EXq
} },
2536 { "mulps", { XM
, EXx
} },
2537 { "mulss", { XM
, EXd
} },
2538 { "mulpd", { XM
, EXx
} },
2539 { "mulsd", { XM
, EXq
} },
2544 { "cvtps2pd", { XM
, EXq
} },
2545 { "cvtss2sd", { XM
, EXd
} },
2546 { "cvtpd2ps", { XM
, EXx
} },
2547 { "cvtsd2ss", { XM
, EXq
} },
2552 { "cvtdq2ps", { XM
, EXx
} },
2553 { "cvttps2dq", { XM
, EXx
} },
2554 { "cvtps2dq", { XM
, EXx
} },
2555 { "(bad)", { XX
} },
2560 { "subps", { XM
, EXx
} },
2561 { "subss", { XM
, EXd
} },
2562 { "subpd", { XM
, EXx
} },
2563 { "subsd", { XM
, EXq
} },
2568 { "minps", { XM
, EXx
} },
2569 { "minss", { XM
, EXd
} },
2570 { "minpd", { XM
, EXx
} },
2571 { "minsd", { XM
, EXq
} },
2576 { "divps", { XM
, EXx
} },
2577 { "divss", { XM
, EXd
} },
2578 { "divpd", { XM
, EXx
} },
2579 { "divsd", { XM
, EXq
} },
2584 { "maxps", { XM
, EXx
} },
2585 { "maxss", { XM
, EXd
} },
2586 { "maxpd", { XM
, EXx
} },
2587 { "maxsd", { XM
, EXq
} },
2592 { "punpcklbw",{ MX
, EMd
} },
2593 { "(bad)", { XX
} },
2594 { "punpcklbw",{ MX
, EMx
} },
2595 { "(bad)", { XX
} },
2600 { "punpcklwd",{ MX
, EMd
} },
2601 { "(bad)", { XX
} },
2602 { "punpcklwd",{ MX
, EMx
} },
2603 { "(bad)", { XX
} },
2608 { "punpckldq",{ MX
, EMd
} },
2609 { "(bad)", { XX
} },
2610 { "punpckldq",{ MX
, EMx
} },
2611 { "(bad)", { XX
} },
2616 { "(bad)", { XX
} },
2617 { "(bad)", { XX
} },
2618 { "punpcklqdq", { XM
, EXx
} },
2619 { "(bad)", { XX
} },
2624 { "(bad)", { XX
} },
2625 { "(bad)", { XX
} },
2626 { "punpckhqdq", { XM
, EXx
} },
2627 { "(bad)", { XX
} },
2632 { "movq", { MX
, EM
} },
2633 { "movdqu", { XM
, EXx
} },
2634 { "movdqa", { XM
, EXx
} },
2635 { "(bad)", { XX
} },
2640 { "pshufw", { MX
, EM
, Ib
} },
2641 { "pshufhw",{ XM
, EXx
, Ib
} },
2642 { "pshufd", { XM
, EXx
, Ib
} },
2643 { "pshuflw",{ XM
, EXx
, Ib
} },
2646 /* PREFIX_0F73_REG_3 */
2648 { "(bad)", { XX
} },
2649 { "(bad)", { XX
} },
2650 { "psrldq", { XS
, Ib
} },
2651 { "(bad)", { XX
} },
2654 /* PREFIX_0F73_REG_7 */
2656 { "(bad)", { XX
} },
2657 { "(bad)", { XX
} },
2658 { "pslldq", { XS
, Ib
} },
2659 { "(bad)", { XX
} },
2664 {"vmread", { Em
, Gm
} },
2666 {"extrq", { XS
, Ib
, Ib
} },
2667 {"insertq", { XM
, XS
, Ib
, Ib
} },
2672 {"vmwrite", { Gm
, Em
} },
2674 {"extrq", { XM
, XS
} },
2675 {"insertq", { XM
, XS
} },
2680 { "(bad)", { XX
} },
2681 { "(bad)", { XX
} },
2682 { "haddpd", { XM
, EXx
} },
2683 { "haddps", { XM
, EXx
} },
2688 { "(bad)", { XX
} },
2689 { "(bad)", { XX
} },
2690 { "hsubpd", { XM
, EXx
} },
2691 { "hsubps", { XM
, EXx
} },
2696 { "movK", { Edq
, MX
} },
2697 { "movq", { XM
, EXq
} },
2698 { "movK", { Edq
, XM
} },
2699 { "(bad)", { XX
} },
2704 { "movq", { EMS
, MX
} },
2705 { "movdqu", { EXxS
, XM
} },
2706 { "movdqa", { EXxS
, XM
} },
2707 { "(bad)", { XX
} },
2712 { "(bad)", { XX
} },
2713 { "popcntS", { Gv
, Ev
} },
2714 { "(bad)", { XX
} },
2715 { "(bad)", { XX
} },
2720 { "bsrS", { Gv
, Ev
} },
2721 { "lzcntS", { Gv
, Ev
} },
2722 { "bsrS", { Gv
, Ev
} },
2723 { "(bad)", { XX
} },
2728 { "cmpps", { XM
, EXx
, CMP
} },
2729 { "cmpss", { XM
, EXd
, CMP
} },
2730 { "cmppd", { XM
, EXx
, CMP
} },
2731 { "cmpsd", { XM
, EXq
, CMP
} },
2736 { "movntiS", { Ma
, Gv
} },
2737 { "(bad)", { XX
} },
2738 { "(bad)", { XX
} },
2739 { "(bad)", { XX
} },
2742 /* PREFIX_0FC7_REG_6 */
2744 { "vmptrld",{ Mq
} },
2745 { "vmxon", { Mq
} },
2746 { "vmclear",{ Mq
} },
2747 { "(bad)", { XX
} },
2752 { "(bad)", { XX
} },
2753 { "(bad)", { XX
} },
2754 { "addsubpd", { XM
, EXx
} },
2755 { "addsubps", { XM
, EXx
} },
2760 { "(bad)", { XX
} },
2761 { "movq2dq",{ XM
, MS
} },
2762 { "movq", { EXqS
, XM
} },
2763 { "movdq2q",{ MX
, XS
} },
2768 { "(bad)", { XX
} },
2769 { "cvtdq2pd", { XM
, EXq
} },
2770 { "cvttpd2dq", { XM
, EXx
} },
2771 { "cvtpd2dq", { XM
, EXx
} },
2776 { "movntq", { Mq
, MX
} },
2777 { "(bad)", { XX
} },
2778 { MOD_TABLE (MOD_0FE7_PREFIX_2
) },
2779 { "(bad)", { XX
} },
2784 { "(bad)", { XX
} },
2785 { "(bad)", { XX
} },
2786 { "(bad)", { XX
} },
2787 { MOD_TABLE (MOD_0FF0_PREFIX_3
) },
2792 { "maskmovq", { MX
, MS
} },
2793 { "(bad)", { XX
} },
2794 { "maskmovdqu", { XM
, XS
} },
2795 { "(bad)", { XX
} },
2800 { "(bad)", { XX
} },
2801 { "(bad)", { XX
} },
2802 { "pblendvb", { XM
, EXx
, XMM0
} },
2803 { "(bad)", { XX
} },
2808 { "(bad)", { XX
} },
2809 { "(bad)", { XX
} },
2810 { "blendvps", { XM
, EXx
, XMM0
} },
2811 { "(bad)", { XX
} },
2816 { "(bad)", { XX
} },
2817 { "(bad)", { XX
} },
2818 { "blendvpd", { XM
, EXx
, XMM0
} },
2819 { "(bad)", { XX
} },
2824 { "(bad)", { XX
} },
2825 { "(bad)", { XX
} },
2826 { "ptest", { XM
, EXx
} },
2827 { "(bad)", { XX
} },
2832 { "(bad)", { XX
} },
2833 { "(bad)", { XX
} },
2834 { "pmovsxbw", { XM
, EXq
} },
2835 { "(bad)", { XX
} },
2840 { "(bad)", { XX
} },
2841 { "(bad)", { XX
} },
2842 { "pmovsxbd", { XM
, EXd
} },
2843 { "(bad)", { XX
} },
2848 { "(bad)", { XX
} },
2849 { "(bad)", { XX
} },
2850 { "pmovsxbq", { XM
, EXw
} },
2851 { "(bad)", { XX
} },
2856 { "(bad)", { XX
} },
2857 { "(bad)", { XX
} },
2858 { "pmovsxwd", { XM
, EXq
} },
2859 { "(bad)", { XX
} },
2864 { "(bad)", { XX
} },
2865 { "(bad)", { XX
} },
2866 { "pmovsxwq", { XM
, EXd
} },
2867 { "(bad)", { XX
} },
2872 { "(bad)", { XX
} },
2873 { "(bad)", { XX
} },
2874 { "pmovsxdq", { XM
, EXq
} },
2875 { "(bad)", { XX
} },
2880 { "(bad)", { XX
} },
2881 { "(bad)", { XX
} },
2882 { "pmuldq", { XM
, EXx
} },
2883 { "(bad)", { XX
} },
2888 { "(bad)", { XX
} },
2889 { "(bad)", { XX
} },
2890 { "pcmpeqq", { XM
, EXx
} },
2891 { "(bad)", { XX
} },
2896 { "(bad)", { XX
} },
2897 { "(bad)", { XX
} },
2898 { MOD_TABLE (MOD_0F382A_PREFIX_2
) },
2899 { "(bad)", { XX
} },
2904 { "(bad)", { XX
} },
2905 { "(bad)", { XX
} },
2906 { "packusdw", { XM
, EXx
} },
2907 { "(bad)", { XX
} },
2912 { "(bad)", { XX
} },
2913 { "(bad)", { XX
} },
2914 { "pmovzxbw", { XM
, EXq
} },
2915 { "(bad)", { XX
} },
2920 { "(bad)", { XX
} },
2921 { "(bad)", { XX
} },
2922 { "pmovzxbd", { XM
, EXd
} },
2923 { "(bad)", { XX
} },
2928 { "(bad)", { XX
} },
2929 { "(bad)", { XX
} },
2930 { "pmovzxbq", { XM
, EXw
} },
2931 { "(bad)", { XX
} },
2936 { "(bad)", { XX
} },
2937 { "(bad)", { XX
} },
2938 { "pmovzxwd", { XM
, EXq
} },
2939 { "(bad)", { XX
} },
2944 { "(bad)", { XX
} },
2945 { "(bad)", { XX
} },
2946 { "pmovzxwq", { XM
, EXd
} },
2947 { "(bad)", { XX
} },
2952 { "(bad)", { XX
} },
2953 { "(bad)", { XX
} },
2954 { "pmovzxdq", { XM
, EXq
} },
2955 { "(bad)", { XX
} },
2960 { "(bad)", { XX
} },
2961 { "(bad)", { XX
} },
2962 { "pcmpgtq", { XM
, EXx
} },
2963 { "(bad)", { XX
} },
2968 { "(bad)", { XX
} },
2969 { "(bad)", { XX
} },
2970 { "pminsb", { XM
, EXx
} },
2971 { "(bad)", { XX
} },
2976 { "(bad)", { XX
} },
2977 { "(bad)", { XX
} },
2978 { "pminsd", { XM
, EXx
} },
2979 { "(bad)", { XX
} },
2984 { "(bad)", { XX
} },
2985 { "(bad)", { XX
} },
2986 { "pminuw", { XM
, EXx
} },
2987 { "(bad)", { XX
} },
2992 { "(bad)", { XX
} },
2993 { "(bad)", { XX
} },
2994 { "pminud", { XM
, EXx
} },
2995 { "(bad)", { XX
} },
3000 { "(bad)", { XX
} },
3001 { "(bad)", { XX
} },
3002 { "pmaxsb", { XM
, EXx
} },
3003 { "(bad)", { XX
} },
3008 { "(bad)", { XX
} },
3009 { "(bad)", { XX
} },
3010 { "pmaxsd", { XM
, EXx
} },
3011 { "(bad)", { XX
} },
3016 { "(bad)", { XX
} },
3017 { "(bad)", { XX
} },
3018 { "pmaxuw", { XM
, EXx
} },
3019 { "(bad)", { XX
} },
3024 { "(bad)", { XX
} },
3025 { "(bad)", { XX
} },
3026 { "pmaxud", { XM
, EXx
} },
3027 { "(bad)", { XX
} },
3032 { "(bad)", { XX
} },
3033 { "(bad)", { XX
} },
3034 { "pmulld", { XM
, EXx
} },
3035 { "(bad)", { XX
} },
3040 { "(bad)", { XX
} },
3041 { "(bad)", { XX
} },
3042 { "phminposuw", { XM
, EXx
} },
3043 { "(bad)", { XX
} },
3048 { "(bad)", { XX
} },
3049 { "(bad)", { XX
} },
3050 { "invept", { Gm
, Mo
} },
3051 { "(bad)", { XX
} },
3056 { "(bad)", { XX
} },
3057 { "(bad)", { XX
} },
3058 { "invvpid", { Gm
, Mo
} },
3059 { "(bad)", { XX
} },
3064 { "(bad)", { XX
} },
3065 { "(bad)", { XX
} },
3066 { "aesimc", { XM
, EXx
} },
3067 { "(bad)", { XX
} },
3072 { "(bad)", { XX
} },
3073 { "(bad)", { XX
} },
3074 { "aesenc", { XM
, EXx
} },
3075 { "(bad)", { XX
} },
3080 { "(bad)", { XX
} },
3081 { "(bad)", { XX
} },
3082 { "aesenclast", { XM
, EXx
} },
3083 { "(bad)", { XX
} },
3088 { "(bad)", { XX
} },
3089 { "(bad)", { XX
} },
3090 { "aesdec", { XM
, EXx
} },
3091 { "(bad)", { XX
} },
3096 { "(bad)", { XX
} },
3097 { "(bad)", { XX
} },
3098 { "aesdeclast", { XM
, EXx
} },
3099 { "(bad)", { XX
} },
3104 { "movbeS", { Gv
, { MOVBE_Fixup
, v_mode
} } },
3105 { "(bad)", { XX
} },
3106 { "movbeS", { Gv
, { MOVBE_Fixup
, v_mode
} } },
3107 { "crc32", { Gdq
, { CRC32_Fixup
, b_mode
} } },
3112 { "movbeS", { { MOVBE_Fixup
, v_mode
}, Gv
} },
3113 { "(bad)", { XX
} },
3114 { "movbeS", { { MOVBE_Fixup
, v_mode
}, Gv
} },
3115 { "crc32", { Gdq
, { CRC32_Fixup
, v_mode
} } },
3120 { "(bad)", { XX
} },
3121 { "(bad)", { XX
} },
3122 { "roundps", { XM
, EXx
, Ib
} },
3123 { "(bad)", { XX
} },
3128 { "(bad)", { XX
} },
3129 { "(bad)", { XX
} },
3130 { "roundpd", { XM
, EXx
, Ib
} },
3131 { "(bad)", { XX
} },
3136 { "(bad)", { XX
} },
3137 { "(bad)", { XX
} },
3138 { "roundss", { XM
, EXd
, Ib
} },
3139 { "(bad)", { XX
} },
3144 { "(bad)", { XX
} },
3145 { "(bad)", { XX
} },
3146 { "roundsd", { XM
, EXq
, Ib
} },
3147 { "(bad)", { XX
} },
3152 { "(bad)", { XX
} },
3153 { "(bad)", { XX
} },
3154 { "blendps", { XM
, EXx
, Ib
} },
3155 { "(bad)", { XX
} },
3160 { "(bad)", { XX
} },
3161 { "(bad)", { XX
} },
3162 { "blendpd", { XM
, EXx
, Ib
} },
3163 { "(bad)", { XX
} },
3168 { "(bad)", { XX
} },
3169 { "(bad)", { XX
} },
3170 { "pblendw", { XM
, EXx
, Ib
} },
3171 { "(bad)", { XX
} },
3176 { "(bad)", { XX
} },
3177 { "(bad)", { XX
} },
3178 { "pextrb", { Edqb
, XM
, Ib
} },
3179 { "(bad)", { XX
} },
3184 { "(bad)", { XX
} },
3185 { "(bad)", { XX
} },
3186 { "pextrw", { Edqw
, XM
, Ib
} },
3187 { "(bad)", { XX
} },
3192 { "(bad)", { XX
} },
3193 { "(bad)", { XX
} },
3194 { "pextrK", { Edq
, XM
, Ib
} },
3195 { "(bad)", { XX
} },
3200 { "(bad)", { XX
} },
3201 { "(bad)", { XX
} },
3202 { "extractps", { Edqd
, XM
, Ib
} },
3203 { "(bad)", { XX
} },
3208 { "(bad)", { XX
} },
3209 { "(bad)", { XX
} },
3210 { "pinsrb", { XM
, Edqb
, Ib
} },
3211 { "(bad)", { XX
} },
3216 { "(bad)", { XX
} },
3217 { "(bad)", { XX
} },
3218 { "insertps", { XM
, EXd
, Ib
} },
3219 { "(bad)", { XX
} },
3224 { "(bad)", { XX
} },
3225 { "(bad)", { XX
} },
3226 { "pinsrK", { XM
, Edq
, Ib
} },
3227 { "(bad)", { XX
} },
3232 { "(bad)", { XX
} },
3233 { "(bad)", { XX
} },
3234 { "dpps", { XM
, EXx
, Ib
} },
3235 { "(bad)", { XX
} },
3240 { "(bad)", { XX
} },
3241 { "(bad)", { XX
} },
3242 { "dppd", { XM
, EXx
, Ib
} },
3243 { "(bad)", { XX
} },
3248 { "(bad)", { XX
} },
3249 { "(bad)", { XX
} },
3250 { "mpsadbw", { XM
, EXx
, Ib
} },
3251 { "(bad)", { XX
} },
3256 { "(bad)", { XX
} },
3257 { "(bad)", { XX
} },
3258 { "pclmulqdq", { XM
, EXx
, PCLMUL
} },
3259 { "(bad)", { XX
} },
3264 { "(bad)", { XX
} },
3265 { "(bad)", { XX
} },
3266 { "pcmpestrm", { XM
, EXx
, Ib
} },
3267 { "(bad)", { XX
} },
3272 { "(bad)", { XX
} },
3273 { "(bad)", { XX
} },
3274 { "pcmpestri", { XM
, EXx
, Ib
} },
3275 { "(bad)", { XX
} },
3280 { "(bad)", { XX
} },
3281 { "(bad)", { XX
} },
3282 { "pcmpistrm", { XM
, EXx
, Ib
} },
3283 { "(bad)", { XX
} },
3288 { "(bad)", { XX
} },
3289 { "(bad)", { XX
} },
3290 { "pcmpistri", { XM
, EXx
, Ib
} },
3291 { "(bad)", { XX
} },
3296 { "(bad)", { XX
} },
3297 { "(bad)", { XX
} },
3298 { "aeskeygenassist", { XM
, EXx
, Ib
} },
3299 { "(bad)", { XX
} },
3304 { "vmovups", { XM
, EXx
} },
3305 { VEX_LEN_TABLE (VEX_LEN_10_P_1
) },
3306 { "vmovupd", { XM
, EXx
} },
3307 { VEX_LEN_TABLE (VEX_LEN_10_P_3
) },
3312 { "vmovups", { EXxS
, XM
} },
3313 { VEX_LEN_TABLE (VEX_LEN_11_P_1
) },
3314 { "vmovupd", { EXxS
, XM
} },
3315 { VEX_LEN_TABLE (VEX_LEN_11_P_3
) },
3320 { MOD_TABLE (MOD_VEX_12_PREFIX_0
) },
3321 { "vmovsldup", { XM
, EXx
} },
3322 { VEX_LEN_TABLE (VEX_LEN_12_P_2
) },
3323 { "vmovddup", { XM
, EXymmq
} },
3328 { MOD_TABLE (MOD_VEX_16_PREFIX_0
) },
3329 { "vmovshdup", { XM
, EXx
} },
3330 { VEX_LEN_TABLE (VEX_LEN_16_P_2
) },
3331 { "(bad)", { XX
} },
3336 { "(bad)", { XX
} },
3337 { VEX_LEN_TABLE (VEX_LEN_2A_P_1
) },
3338 { "(bad)", { XX
} },
3339 { VEX_LEN_TABLE (VEX_LEN_2A_P_3
) },
3344 { "(bad)", { XX
} },
3345 { VEX_LEN_TABLE (VEX_LEN_2C_P_1
) },
3346 { "(bad)", { XX
} },
3347 { VEX_LEN_TABLE (VEX_LEN_2C_P_3
) },
3352 { "(bad)", { XX
} },
3353 { VEX_LEN_TABLE (VEX_LEN_2D_P_1
) },
3354 { "(bad)", { XX
} },
3355 { VEX_LEN_TABLE (VEX_LEN_2D_P_3
) },
3360 { VEX_LEN_TABLE (VEX_LEN_2E_P_0
) },
3361 { "(bad)", { XX
} },
3362 { VEX_LEN_TABLE (VEX_LEN_2E_P_2
) },
3363 { "(bad)", { XX
} },
3368 { VEX_LEN_TABLE (VEX_LEN_2F_P_0
) },
3369 { "(bad)", { XX
} },
3370 { VEX_LEN_TABLE (VEX_LEN_2F_P_2
) },
3371 { "(bad)", { XX
} },
3376 { "vsqrtps", { XM
, EXx
} },
3377 { VEX_LEN_TABLE (VEX_LEN_51_P_1
) },
3378 { "vsqrtpd", { XM
, EXx
} },
3379 { VEX_LEN_TABLE (VEX_LEN_51_P_3
) },
3384 { "vrsqrtps", { XM
, EXx
} },
3385 { VEX_LEN_TABLE (VEX_LEN_52_P_1
) },
3386 { "(bad)", { XX
} },
3387 { "(bad)", { XX
} },
3392 { "vrcpps", { XM
, EXx
} },
3393 { VEX_LEN_TABLE (VEX_LEN_53_P_1
) },
3394 { "(bad)", { XX
} },
3395 { "(bad)", { XX
} },
3400 { "vaddps", { XM
, Vex
, EXx
} },
3401 { VEX_LEN_TABLE (VEX_LEN_58_P_1
) },
3402 { "vaddpd", { XM
, Vex
, EXx
} },
3403 { VEX_LEN_TABLE (VEX_LEN_58_P_3
) },
3408 { "vmulps", { XM
, Vex
, EXx
} },
3409 { VEX_LEN_TABLE (VEX_LEN_59_P_1
) },
3410 { "vmulpd", { XM
, Vex
, EXx
} },
3411 { VEX_LEN_TABLE (VEX_LEN_59_P_3
) },
3416 { "vcvtps2pd", { XM
, EXxmmq
} },
3417 { VEX_LEN_TABLE (VEX_LEN_5A_P_1
) },
3418 { "vcvtpd2ps%XY", { XMM
, EXx
} },
3419 { VEX_LEN_TABLE (VEX_LEN_5A_P_3
) },
3424 { "vcvtdq2ps", { XM
, EXx
} },
3425 { "vcvttps2dq", { XM
, EXx
} },
3426 { "vcvtps2dq", { XM
, EXx
} },
3427 { "(bad)", { XX
} },
3432 { "vsubps", { XM
, Vex
, EXx
} },
3433 { VEX_LEN_TABLE (VEX_LEN_5C_P_1
) },
3434 { "vsubpd", { XM
, Vex
, EXx
} },
3435 { VEX_LEN_TABLE (VEX_LEN_5C_P_3
) },
3440 { "vminps", { XM
, Vex
, EXx
} },
3441 { VEX_LEN_TABLE (VEX_LEN_5D_P_1
) },
3442 { "vminpd", { XM
, Vex
, EXx
} },
3443 { VEX_LEN_TABLE (VEX_LEN_5D_P_3
) },
3448 { "vdivps", { XM
, Vex
, EXx
} },
3449 { VEX_LEN_TABLE (VEX_LEN_5E_P_1
) },
3450 { "vdivpd", { XM
, Vex
, EXx
} },
3451 { VEX_LEN_TABLE (VEX_LEN_5E_P_3
) },
3456 { "vmaxps", { XM
, Vex
, EXx
} },
3457 { VEX_LEN_TABLE (VEX_LEN_5F_P_1
) },
3458 { "vmaxpd", { XM
, Vex
, EXx
} },
3459 { VEX_LEN_TABLE (VEX_LEN_5F_P_3
) },
3464 { "(bad)", { XX
} },
3465 { "(bad)", { XX
} },
3466 { VEX_LEN_TABLE (VEX_LEN_60_P_2
) },
3467 { "(bad)", { XX
} },
3472 { "(bad)", { XX
} },
3473 { "(bad)", { XX
} },
3474 { VEX_LEN_TABLE (VEX_LEN_61_P_2
) },
3475 { "(bad)", { XX
} },
3480 { "(bad)", { XX
} },
3481 { "(bad)", { XX
} },
3482 { VEX_LEN_TABLE (VEX_LEN_62_P_2
) },
3483 { "(bad)", { XX
} },
3488 { "(bad)", { XX
} },
3489 { "(bad)", { XX
} },
3490 { VEX_LEN_TABLE (VEX_LEN_63_P_2
) },
3491 { "(bad)", { XX
} },
3496 { "(bad)", { XX
} },
3497 { "(bad)", { XX
} },
3498 { VEX_LEN_TABLE (VEX_LEN_64_P_2
) },
3499 { "(bad)", { XX
} },
3504 { "(bad)", { XX
} },
3505 { "(bad)", { XX
} },
3506 { VEX_LEN_TABLE (VEX_LEN_65_P_2
) },
3507 { "(bad)", { XX
} },
3512 { "(bad)", { XX
} },
3513 { "(bad)", { XX
} },
3514 { VEX_LEN_TABLE (VEX_LEN_66_P_2
) },
3515 { "(bad)", { XX
} },
3520 { "(bad)", { XX
} },
3521 { "(bad)", { XX
} },
3522 { VEX_LEN_TABLE (VEX_LEN_67_P_2
) },
3523 { "(bad)", { XX
} },
3528 { "(bad)", { XX
} },
3529 { "(bad)", { XX
} },
3530 { VEX_LEN_TABLE (VEX_LEN_68_P_2
) },
3531 { "(bad)", { XX
} },
3536 { "(bad)", { XX
} },
3537 { "(bad)", { XX
} },
3538 { VEX_LEN_TABLE (VEX_LEN_69_P_2
) },
3539 { "(bad)", { XX
} },
3544 { "(bad)", { XX
} },
3545 { "(bad)", { XX
} },
3546 { VEX_LEN_TABLE (VEX_LEN_6A_P_2
) },
3547 { "(bad)", { XX
} },
3552 { "(bad)", { XX
} },
3553 { "(bad)", { XX
} },
3554 { VEX_LEN_TABLE (VEX_LEN_6B_P_2
) },
3555 { "(bad)", { XX
} },
3560 { "(bad)", { XX
} },
3561 { "(bad)", { XX
} },
3562 { VEX_LEN_TABLE (VEX_LEN_6C_P_2
) },
3563 { "(bad)", { XX
} },
3568 { "(bad)", { XX
} },
3569 { "(bad)", { XX
} },
3570 { VEX_LEN_TABLE (VEX_LEN_6D_P_2
) },
3571 { "(bad)", { XX
} },
3576 { "(bad)", { XX
} },
3577 { "(bad)", { XX
} },
3578 { VEX_LEN_TABLE (VEX_LEN_6E_P_2
) },
3579 { "(bad)", { XX
} },
3584 { "(bad)", { XX
} },
3585 { "vmovdqu", { XM
, EXx
} },
3586 { "vmovdqa", { XM
, EXx
} },
3587 { "(bad)", { XX
} },
3592 { "(bad)", { XX
} },
3593 { VEX_LEN_TABLE (VEX_LEN_70_P_1
) },
3594 { VEX_LEN_TABLE (VEX_LEN_70_P_2
) },
3595 { VEX_LEN_TABLE (VEX_LEN_70_P_3
) },
3598 /* PREFIX_VEX_71_REG_2 */
3600 { "(bad)", { XX
} },
3601 { "(bad)", { XX
} },
3602 { VEX_LEN_TABLE (VEX_LEN_71_R_2_P_2
) },
3603 { "(bad)", { XX
} },
3606 /* PREFIX_VEX_71_REG_4 */
3608 { "(bad)", { XX
} },
3609 { "(bad)", { XX
} },
3610 { VEX_LEN_TABLE (VEX_LEN_71_R_4_P_2
) },
3611 { "(bad)", { XX
} },
3614 /* PREFIX_VEX_71_REG_6 */
3616 { "(bad)", { XX
} },
3617 { "(bad)", { XX
} },
3618 { VEX_LEN_TABLE (VEX_LEN_71_R_6_P_2
) },
3619 { "(bad)", { XX
} },
3622 /* PREFIX_VEX_72_REG_2 */
3624 { "(bad)", { XX
} },
3625 { "(bad)", { XX
} },
3626 { VEX_LEN_TABLE (VEX_LEN_72_R_2_P_2
) },
3627 { "(bad)", { XX
} },
3630 /* PREFIX_VEX_72_REG_4 */
3632 { "(bad)", { XX
} },
3633 { "(bad)", { XX
} },
3634 { VEX_LEN_TABLE (VEX_LEN_72_R_4_P_2
) },
3635 { "(bad)", { XX
} },
3638 /* PREFIX_VEX_72_REG_6 */
3640 { "(bad)", { XX
} },
3641 { "(bad)", { XX
} },
3642 { VEX_LEN_TABLE (VEX_LEN_72_R_6_P_2
) },
3643 { "(bad)", { XX
} },
3646 /* PREFIX_VEX_73_REG_2 */
3648 { "(bad)", { XX
} },
3649 { "(bad)", { XX
} },
3650 { VEX_LEN_TABLE (VEX_LEN_73_R_2_P_2
) },
3651 { "(bad)", { XX
} },
3654 /* PREFIX_VEX_73_REG_3 */
3656 { "(bad)", { XX
} },
3657 { "(bad)", { XX
} },
3658 { VEX_LEN_TABLE (VEX_LEN_73_R_3_P_2
) },
3659 { "(bad)", { XX
} },
3662 /* PREFIX_VEX_73_REG_6 */
3664 { "(bad)", { XX
} },
3665 { "(bad)", { XX
} },
3666 { VEX_LEN_TABLE (VEX_LEN_73_R_6_P_2
) },
3667 { "(bad)", { XX
} },
3670 /* PREFIX_VEX_73_REG_7 */
3672 { "(bad)", { XX
} },
3673 { "(bad)", { XX
} },
3674 { VEX_LEN_TABLE (VEX_LEN_73_R_7_P_2
) },
3675 { "(bad)", { XX
} },
3680 { "(bad)", { XX
} },
3681 { "(bad)", { XX
} },
3682 { VEX_LEN_TABLE (VEX_LEN_74_P_2
) },
3683 { "(bad)", { XX
} },
3688 { "(bad)", { XX
} },
3689 { "(bad)", { XX
} },
3690 { VEX_LEN_TABLE (VEX_LEN_75_P_2
) },
3691 { "(bad)", { XX
} },
3696 { "(bad)", { XX
} },
3697 { "(bad)", { XX
} },
3698 { VEX_LEN_TABLE (VEX_LEN_76_P_2
) },
3699 { "(bad)", { XX
} },
3705 { "(bad)", { XX
} },
3706 { "(bad)", { XX
} },
3707 { "(bad)", { XX
} },
3712 { "(bad)", { XX
} },
3713 { "(bad)", { XX
} },
3714 { "vhaddpd", { XM
, Vex
, EXx
} },
3715 { "vhaddps", { XM
, Vex
, EXx
} },
3720 { "(bad)", { XX
} },
3721 { "(bad)", { XX
} },
3722 { "vhsubpd", { XM
, Vex
, EXx
} },
3723 { "vhsubps", { XM
, Vex
, EXx
} },
3728 { "(bad)", { XX
} },
3729 { VEX_LEN_TABLE (VEX_LEN_7E_P_1
) },
3730 { VEX_LEN_TABLE (VEX_LEN_7E_P_2
) },
3731 { "(bad)", { XX
} },
3736 { "(bad)", { XX
} },
3737 { "vmovdqu", { EXxS
, XM
} },
3738 { "vmovdqa", { EXxS
, XM
} },
3739 { "(bad)", { XX
} },
3744 { "vcmpps", { XM
, Vex
, EXx
, VCMP
} },
3745 { VEX_LEN_TABLE (VEX_LEN_C2_P_1
) },
3746 { "vcmppd", { XM
, Vex
, EXx
, VCMP
} },
3747 { VEX_LEN_TABLE (VEX_LEN_C2_P_3
) },
3752 { "(bad)", { XX
} },
3753 { "(bad)", { XX
} },
3754 { VEX_LEN_TABLE (VEX_LEN_C4_P_2
) },
3755 { "(bad)", { XX
} },
3760 { "(bad)", { XX
} },
3761 { "(bad)", { XX
} },
3762 { VEX_LEN_TABLE (VEX_LEN_C5_P_2
) },
3763 { "(bad)", { XX
} },
3768 { "(bad)", { XX
} },
3769 { "(bad)", { XX
} },
3770 { "vaddsubpd", { XM
, Vex
, EXx
} },
3771 { "vaddsubps", { XM
, Vex
, EXx
} },
3776 { "(bad)", { XX
} },
3777 { "(bad)", { XX
} },
3778 { VEX_LEN_TABLE (VEX_LEN_D1_P_2
) },
3779 { "(bad)", { XX
} },
3784 { "(bad)", { XX
} },
3785 { "(bad)", { XX
} },
3786 { VEX_LEN_TABLE (VEX_LEN_D2_P_2
) },
3787 { "(bad)", { XX
} },
3792 { "(bad)", { XX
} },
3793 { "(bad)", { XX
} },
3794 { VEX_LEN_TABLE (VEX_LEN_D3_P_2
) },
3795 { "(bad)", { XX
} },
3800 { "(bad)", { XX
} },
3801 { "(bad)", { XX
} },
3802 { VEX_LEN_TABLE (VEX_LEN_D4_P_2
) },
3803 { "(bad)", { XX
} },
3808 { "(bad)", { XX
} },
3809 { "(bad)", { XX
} },
3810 { VEX_LEN_TABLE (VEX_LEN_D5_P_2
) },
3811 { "(bad)", { XX
} },
3816 { "(bad)", { XX
} },
3817 { "(bad)", { XX
} },
3818 { VEX_LEN_TABLE (VEX_LEN_D6_P_2
) },
3819 { "(bad)", { XX
} },
3824 { "(bad)", { XX
} },
3825 { "(bad)", { XX
} },
3826 { MOD_TABLE (MOD_VEX_D7_PREFIX_2
) },
3827 { "(bad)", { XX
} },
3832 { "(bad)", { XX
} },
3833 { "(bad)", { XX
} },
3834 { VEX_LEN_TABLE (VEX_LEN_D8_P_2
) },
3835 { "(bad)", { XX
} },
3840 { "(bad)", { XX
} },
3841 { "(bad)", { XX
} },
3842 { VEX_LEN_TABLE (VEX_LEN_D9_P_2
) },
3843 { "(bad)", { XX
} },
3848 { "(bad)", { XX
} },
3849 { "(bad)", { XX
} },
3850 { VEX_LEN_TABLE (VEX_LEN_DA_P_2
) },
3851 { "(bad)", { XX
} },
3856 { "(bad)", { XX
} },
3857 { "(bad)", { XX
} },
3858 { VEX_LEN_TABLE (VEX_LEN_DB_P_2
) },
3859 { "(bad)", { XX
} },
3864 { "(bad)", { XX
} },
3865 { "(bad)", { XX
} },
3866 { VEX_LEN_TABLE (VEX_LEN_DC_P_2
) },
3867 { "(bad)", { XX
} },
3872 { "(bad)", { XX
} },
3873 { "(bad)", { XX
} },
3874 { VEX_LEN_TABLE (VEX_LEN_DD_P_2
) },
3875 { "(bad)", { XX
} },
3880 { "(bad)", { XX
} },
3881 { "(bad)", { XX
} },
3882 { VEX_LEN_TABLE (VEX_LEN_DE_P_2
) },
3883 { "(bad)", { XX
} },
3888 { "(bad)", { XX
} },
3889 { "(bad)", { XX
} },
3890 { VEX_LEN_TABLE (VEX_LEN_DF_P_2
) },
3891 { "(bad)", { XX
} },
3896 { "(bad)", { XX
} },
3897 { "(bad)", { XX
} },
3898 { VEX_LEN_TABLE (VEX_LEN_E0_P_2
) },
3899 { "(bad)", { XX
} },
3904 { "(bad)", { XX
} },
3905 { "(bad)", { XX
} },
3906 { VEX_LEN_TABLE (VEX_LEN_E1_P_2
) },
3907 { "(bad)", { XX
} },
3912 { "(bad)", { XX
} },
3913 { "(bad)", { XX
} },
3914 { VEX_LEN_TABLE (VEX_LEN_E2_P_2
) },
3915 { "(bad)", { XX
} },
3920 { "(bad)", { XX
} },
3921 { "(bad)", { XX
} },
3922 { VEX_LEN_TABLE (VEX_LEN_E3_P_2
) },
3923 { "(bad)", { XX
} },
3928 { "(bad)", { XX
} },
3929 { "(bad)", { XX
} },
3930 { VEX_LEN_TABLE (VEX_LEN_E4_P_2
) },
3931 { "(bad)", { XX
} },
3936 { "(bad)", { XX
} },
3937 { "(bad)", { XX
} },
3938 { VEX_LEN_TABLE (VEX_LEN_E5_P_2
) },
3939 { "(bad)", { XX
} },
3944 { "(bad)", { XX
} },
3945 { "vcvtdq2pd", { XM
, EXxmmq
} },
3946 { "vcvttpd2dq%XY", { XMM
, EXx
} },
3947 { "vcvtpd2dq%XY", { XMM
, EXx
} },
3952 { "(bad)", { XX
} },
3953 { "(bad)", { XX
} },
3954 { MOD_TABLE (MOD_VEX_E7_PREFIX_2
) },
3955 { "(bad)", { XX
} },
3960 { "(bad)", { XX
} },
3961 { "(bad)", { XX
} },
3962 { VEX_LEN_TABLE (VEX_LEN_E8_P_2
) },
3963 { "(bad)", { XX
} },
3968 { "(bad)", { XX
} },
3969 { "(bad)", { XX
} },
3970 { VEX_LEN_TABLE (VEX_LEN_E9_P_2
) },
3971 { "(bad)", { XX
} },
3976 { "(bad)", { XX
} },
3977 { "(bad)", { XX
} },
3978 { VEX_LEN_TABLE (VEX_LEN_EA_P_2
) },
3979 { "(bad)", { XX
} },
3984 { "(bad)", { XX
} },
3985 { "(bad)", { XX
} },
3986 { VEX_LEN_TABLE (VEX_LEN_EB_P_2
) },
3987 { "(bad)", { XX
} },
3992 { "(bad)", { XX
} },
3993 { "(bad)", { XX
} },
3994 { VEX_LEN_TABLE (VEX_LEN_EC_P_2
) },
3995 { "(bad)", { XX
} },
4000 { "(bad)", { XX
} },
4001 { "(bad)", { XX
} },
4002 { VEX_LEN_TABLE (VEX_LEN_ED_P_2
) },
4003 { "(bad)", { XX
} },
4008 { "(bad)", { XX
} },
4009 { "(bad)", { XX
} },
4010 { VEX_LEN_TABLE (VEX_LEN_EE_P_2
) },
4011 { "(bad)", { XX
} },
4016 { "(bad)", { XX
} },
4017 { "(bad)", { XX
} },
4018 { VEX_LEN_TABLE (VEX_LEN_EF_P_2
) },
4019 { "(bad)", { XX
} },
4024 { "(bad)", { XX
} },
4025 { "(bad)", { XX
} },
4026 { "(bad)", { XX
} },
4027 { MOD_TABLE (MOD_VEX_F0_PREFIX_3
) },
4032 { "(bad)", { XX
} },
4033 { "(bad)", { XX
} },
4034 { VEX_LEN_TABLE (VEX_LEN_F1_P_2
) },
4035 { "(bad)", { XX
} },
4040 { "(bad)", { XX
} },
4041 { "(bad)", { XX
} },
4042 { VEX_LEN_TABLE (VEX_LEN_F2_P_2
) },
4043 { "(bad)", { XX
} },
4048 { "(bad)", { XX
} },
4049 { "(bad)", { XX
} },
4050 { VEX_LEN_TABLE (VEX_LEN_F3_P_2
) },
4051 { "(bad)", { XX
} },
4056 { "(bad)", { XX
} },
4057 { "(bad)", { XX
} },
4058 { VEX_LEN_TABLE (VEX_LEN_F4_P_2
) },
4059 { "(bad)", { XX
} },
4064 { "(bad)", { XX
} },
4065 { "(bad)", { XX
} },
4066 { VEX_LEN_TABLE (VEX_LEN_F5_P_2
) },
4067 { "(bad)", { XX
} },
4072 { "(bad)", { XX
} },
4073 { "(bad)", { XX
} },
4074 { VEX_LEN_TABLE (VEX_LEN_F6_P_2
) },
4075 { "(bad)", { XX
} },
4080 { "(bad)", { XX
} },
4081 { "(bad)", { XX
} },
4082 { VEX_LEN_TABLE (VEX_LEN_F7_P_2
) },
4083 { "(bad)", { XX
} },
4088 { "(bad)", { XX
} },
4089 { "(bad)", { XX
} },
4090 { VEX_LEN_TABLE (VEX_LEN_F8_P_2
) },
4091 { "(bad)", { XX
} },
4096 { "(bad)", { XX
} },
4097 { "(bad)", { XX
} },
4098 { VEX_LEN_TABLE (VEX_LEN_F9_P_2
) },
4099 { "(bad)", { XX
} },
4104 { "(bad)", { XX
} },
4105 { "(bad)", { XX
} },
4106 { VEX_LEN_TABLE (VEX_LEN_FA_P_2
) },
4107 { "(bad)", { XX
} },
4112 { "(bad)", { XX
} },
4113 { "(bad)", { XX
} },
4114 { VEX_LEN_TABLE (VEX_LEN_FB_P_2
) },
4115 { "(bad)", { XX
} },
4120 { "(bad)", { XX
} },
4121 { "(bad)", { XX
} },
4122 { VEX_LEN_TABLE (VEX_LEN_FC_P_2
) },
4123 { "(bad)", { XX
} },
4128 { "(bad)", { XX
} },
4129 { "(bad)", { XX
} },
4130 { VEX_LEN_TABLE (VEX_LEN_FD_P_2
) },
4131 { "(bad)", { XX
} },
4136 { "(bad)", { XX
} },
4137 { "(bad)", { XX
} },
4138 { VEX_LEN_TABLE (VEX_LEN_FE_P_2
) },
4139 { "(bad)", { XX
} },
4142 /* PREFIX_VEX_3800 */
4144 { "(bad)", { XX
} },
4145 { "(bad)", { XX
} },
4146 { VEX_LEN_TABLE (VEX_LEN_3800_P_2
) },
4147 { "(bad)", { XX
} },
4150 /* PREFIX_VEX_3801 */
4152 { "(bad)", { XX
} },
4153 { "(bad)", { XX
} },
4154 { VEX_LEN_TABLE (VEX_LEN_3801_P_2
) },
4155 { "(bad)", { XX
} },
4158 /* PREFIX_VEX_3802 */
4160 { "(bad)", { XX
} },
4161 { "(bad)", { XX
} },
4162 { VEX_LEN_TABLE (VEX_LEN_3802_P_2
) },
4163 { "(bad)", { XX
} },
4166 /* PREFIX_VEX_3803 */
4168 { "(bad)", { XX
} },
4169 { "(bad)", { XX
} },
4170 { VEX_LEN_TABLE (VEX_LEN_3803_P_2
) },
4171 { "(bad)", { XX
} },
4174 /* PREFIX_VEX_3804 */
4176 { "(bad)", { XX
} },
4177 { "(bad)", { XX
} },
4178 { VEX_LEN_TABLE (VEX_LEN_3804_P_2
) },
4179 { "(bad)", { XX
} },
4182 /* PREFIX_VEX_3805 */
4184 { "(bad)", { XX
} },
4185 { "(bad)", { XX
} },
4186 { VEX_LEN_TABLE (VEX_LEN_3805_P_2
) },
4187 { "(bad)", { XX
} },
4190 /* PREFIX_VEX_3806 */
4192 { "(bad)", { XX
} },
4193 { "(bad)", { XX
} },
4194 { VEX_LEN_TABLE (VEX_LEN_3806_P_2
) },
4195 { "(bad)", { XX
} },
4198 /* PREFIX_VEX_3807 */
4200 { "(bad)", { XX
} },
4201 { "(bad)", { XX
} },
4202 { VEX_LEN_TABLE (VEX_LEN_3807_P_2
) },
4203 { "(bad)", { XX
} },
4206 /* PREFIX_VEX_3808 */
4208 { "(bad)", { XX
} },
4209 { "(bad)", { XX
} },
4210 { VEX_LEN_TABLE (VEX_LEN_3808_P_2
) },
4211 { "(bad)", { XX
} },
4214 /* PREFIX_VEX_3809 */
4216 { "(bad)", { XX
} },
4217 { "(bad)", { XX
} },
4218 { VEX_LEN_TABLE (VEX_LEN_3809_P_2
) },
4219 { "(bad)", { XX
} },
4222 /* PREFIX_VEX_380A */
4224 { "(bad)", { XX
} },
4225 { "(bad)", { XX
} },
4226 { VEX_LEN_TABLE (VEX_LEN_380A_P_2
) },
4227 { "(bad)", { XX
} },
4230 /* PREFIX_VEX_380B */
4232 { "(bad)", { XX
} },
4233 { "(bad)", { XX
} },
4234 { VEX_LEN_TABLE (VEX_LEN_380B_P_2
) },
4235 { "(bad)", { XX
} },
4238 /* PREFIX_VEX_380C */
4240 { "(bad)", { XX
} },
4241 { "(bad)", { XX
} },
4242 { "vpermilps", { XM
, Vex
, EXx
} },
4243 { "(bad)", { XX
} },
4246 /* PREFIX_VEX_380D */
4248 { "(bad)", { XX
} },
4249 { "(bad)", { XX
} },
4250 { "vpermilpd", { XM
, Vex
, EXx
} },
4251 { "(bad)", { XX
} },
4254 /* PREFIX_VEX_380E */
4256 { "(bad)", { XX
} },
4257 { "(bad)", { XX
} },
4258 { "vtestps", { XM
, EXx
} },
4259 { "(bad)", { XX
} },
4262 /* PREFIX_VEX_380F */
4264 { "(bad)", { XX
} },
4265 { "(bad)", { XX
} },
4266 { "vtestpd", { XM
, EXx
} },
4267 { "(bad)", { XX
} },
4270 /* PREFIX_VEX_3817 */
4272 { "(bad)", { XX
} },
4273 { "(bad)", { XX
} },
4274 { "vptest", { XM
, EXx
} },
4275 { "(bad)", { XX
} },
4278 /* PREFIX_VEX_3818 */
4280 { "(bad)", { XX
} },
4281 { "(bad)", { XX
} },
4282 { MOD_TABLE (MOD_VEX_3818_PREFIX_2
) },
4283 { "(bad)", { XX
} },
4286 /* PREFIX_VEX_3819 */
4288 { "(bad)", { XX
} },
4289 { "(bad)", { XX
} },
4290 { MOD_TABLE (MOD_VEX_3819_PREFIX_2
) },
4291 { "(bad)", { XX
} },
4294 /* PREFIX_VEX_381A */
4296 { "(bad)", { XX
} },
4297 { "(bad)", { XX
} },
4298 { MOD_TABLE (MOD_VEX_381A_PREFIX_2
) },
4299 { "(bad)", { XX
} },
4302 /* PREFIX_VEX_381C */
4304 { "(bad)", { XX
} },
4305 { "(bad)", { XX
} },
4306 { VEX_LEN_TABLE (VEX_LEN_381C_P_2
) },
4307 { "(bad)", { XX
} },
4310 /* PREFIX_VEX_381D */
4312 { "(bad)", { XX
} },
4313 { "(bad)", { XX
} },
4314 { VEX_LEN_TABLE (VEX_LEN_381D_P_2
) },
4315 { "(bad)", { XX
} },
4318 /* PREFIX_VEX_381E */
4320 { "(bad)", { XX
} },
4321 { "(bad)", { XX
} },
4322 { VEX_LEN_TABLE (VEX_LEN_381E_P_2
) },
4323 { "(bad)", { XX
} },
4326 /* PREFIX_VEX_3820 */
4328 { "(bad)", { XX
} },
4329 { "(bad)", { XX
} },
4330 { VEX_LEN_TABLE (VEX_LEN_3820_P_2
) },
4331 { "(bad)", { XX
} },
4334 /* PREFIX_VEX_3821 */
4336 { "(bad)", { XX
} },
4337 { "(bad)", { XX
} },
4338 { VEX_LEN_TABLE (VEX_LEN_3821_P_2
) },
4339 { "(bad)", { XX
} },
4342 /* PREFIX_VEX_3822 */
4344 { "(bad)", { XX
} },
4345 { "(bad)", { XX
} },
4346 { VEX_LEN_TABLE (VEX_LEN_3822_P_2
) },
4347 { "(bad)", { XX
} },
4350 /* PREFIX_VEX_3823 */
4352 { "(bad)", { XX
} },
4353 { "(bad)", { XX
} },
4354 { VEX_LEN_TABLE (VEX_LEN_3823_P_2
) },
4355 { "(bad)", { XX
} },
4358 /* PREFIX_VEX_3824 */
4360 { "(bad)", { XX
} },
4361 { "(bad)", { XX
} },
4362 { VEX_LEN_TABLE (VEX_LEN_3824_P_2
) },
4363 { "(bad)", { XX
} },
4366 /* PREFIX_VEX_3825 */
4368 { "(bad)", { XX
} },
4369 { "(bad)", { XX
} },
4370 { VEX_LEN_TABLE (VEX_LEN_3825_P_2
) },
4371 { "(bad)", { XX
} },
4374 /* PREFIX_VEX_3828 */
4376 { "(bad)", { XX
} },
4377 { "(bad)", { XX
} },
4378 { VEX_LEN_TABLE (VEX_LEN_3828_P_2
) },
4379 { "(bad)", { XX
} },
4382 /* PREFIX_VEX_3829 */
4384 { "(bad)", { XX
} },
4385 { "(bad)", { XX
} },
4386 { VEX_LEN_TABLE (VEX_LEN_3829_P_2
) },
4387 { "(bad)", { XX
} },
4390 /* PREFIX_VEX_382A */
4392 { "(bad)", { XX
} },
4393 { "(bad)", { XX
} },
4394 { MOD_TABLE (MOD_VEX_382A_PREFIX_2
) },
4395 { "(bad)", { XX
} },
4398 /* PREFIX_VEX_382B */
4400 { "(bad)", { XX
} },
4401 { "(bad)", { XX
} },
4402 { VEX_LEN_TABLE (VEX_LEN_382B_P_2
) },
4403 { "(bad)", { XX
} },
4406 /* PREFIX_VEX_382C */
4408 { "(bad)", { XX
} },
4409 { "(bad)", { XX
} },
4410 { MOD_TABLE (MOD_VEX_382C_PREFIX_2
) },
4411 { "(bad)", { XX
} },
4414 /* PREFIX_VEX_382D */
4416 { "(bad)", { XX
} },
4417 { "(bad)", { XX
} },
4418 { MOD_TABLE (MOD_VEX_382D_PREFIX_2
) },
4419 { "(bad)", { XX
} },
4422 /* PREFIX_VEX_382E */
4424 { "(bad)", { XX
} },
4425 { "(bad)", { XX
} },
4426 { MOD_TABLE (MOD_VEX_382E_PREFIX_2
) },
4427 { "(bad)", { XX
} },
4430 /* PREFIX_VEX_382F */
4432 { "(bad)", { XX
} },
4433 { "(bad)", { XX
} },
4434 { MOD_TABLE (MOD_VEX_382F_PREFIX_2
) },
4435 { "(bad)", { XX
} },
4438 /* PREFIX_VEX_3830 */
4440 { "(bad)", { XX
} },
4441 { "(bad)", { XX
} },
4442 { VEX_LEN_TABLE (VEX_LEN_3830_P_2
) },
4443 { "(bad)", { XX
} },
4446 /* PREFIX_VEX_3831 */
4448 { "(bad)", { XX
} },
4449 { "(bad)", { XX
} },
4450 { VEX_LEN_TABLE (VEX_LEN_3831_P_2
) },
4451 { "(bad)", { XX
} },
4454 /* PREFIX_VEX_3832 */
4456 { "(bad)", { XX
} },
4457 { "(bad)", { XX
} },
4458 { VEX_LEN_TABLE (VEX_LEN_3832_P_2
) },
4459 { "(bad)", { XX
} },
4462 /* PREFIX_VEX_3833 */
4464 { "(bad)", { XX
} },
4465 { "(bad)", { XX
} },
4466 { VEX_LEN_TABLE (VEX_LEN_3833_P_2
) },
4467 { "(bad)", { XX
} },
4470 /* PREFIX_VEX_3834 */
4472 { "(bad)", { XX
} },
4473 { "(bad)", { XX
} },
4474 { VEX_LEN_TABLE (VEX_LEN_3834_P_2
) },
4475 { "(bad)", { XX
} },
4478 /* PREFIX_VEX_3835 */
4480 { "(bad)", { XX
} },
4481 { "(bad)", { XX
} },
4482 { VEX_LEN_TABLE (VEX_LEN_3835_P_2
) },
4483 { "(bad)", { XX
} },
4486 /* PREFIX_VEX_3837 */
4488 { "(bad)", { XX
} },
4489 { "(bad)", { XX
} },
4490 { VEX_LEN_TABLE (VEX_LEN_3837_P_2
) },
4491 { "(bad)", { XX
} },
4494 /* PREFIX_VEX_3838 */
4496 { "(bad)", { XX
} },
4497 { "(bad)", { XX
} },
4498 { VEX_LEN_TABLE (VEX_LEN_3838_P_2
) },
4499 { "(bad)", { XX
} },
4502 /* PREFIX_VEX_3839 */
4504 { "(bad)", { XX
} },
4505 { "(bad)", { XX
} },
4506 { VEX_LEN_TABLE (VEX_LEN_3839_P_2
) },
4507 { "(bad)", { XX
} },
4510 /* PREFIX_VEX_383A */
4512 { "(bad)", { XX
} },
4513 { "(bad)", { XX
} },
4514 { VEX_LEN_TABLE (VEX_LEN_383A_P_2
) },
4515 { "(bad)", { XX
} },
4518 /* PREFIX_VEX_383B */
4520 { "(bad)", { XX
} },
4521 { "(bad)", { XX
} },
4522 { VEX_LEN_TABLE (VEX_LEN_383B_P_2
) },
4523 { "(bad)", { XX
} },
4526 /* PREFIX_VEX_383C */
4528 { "(bad)", { XX
} },
4529 { "(bad)", { XX
} },
4530 { VEX_LEN_TABLE (VEX_LEN_383C_P_2
) },
4531 { "(bad)", { XX
} },
4534 /* PREFIX_VEX_383D */
4536 { "(bad)", { XX
} },
4537 { "(bad)", { XX
} },
4538 { VEX_LEN_TABLE (VEX_LEN_383D_P_2
) },
4539 { "(bad)", { XX
} },
4542 /* PREFIX_VEX_383E */
4544 { "(bad)", { XX
} },
4545 { "(bad)", { XX
} },
4546 { VEX_LEN_TABLE (VEX_LEN_383E_P_2
) },
4547 { "(bad)", { XX
} },
4550 /* PREFIX_VEX_383F */
4552 { "(bad)", { XX
} },
4553 { "(bad)", { XX
} },
4554 { VEX_LEN_TABLE (VEX_LEN_383F_P_2
) },
4555 { "(bad)", { XX
} },
4558 /* PREFIX_VEX_3840 */
4560 { "(bad)", { XX
} },
4561 { "(bad)", { XX
} },
4562 { VEX_LEN_TABLE (VEX_LEN_3840_P_2
) },
4563 { "(bad)", { XX
} },
4566 /* PREFIX_VEX_3841 */
4568 { "(bad)", { XX
} },
4569 { "(bad)", { XX
} },
4570 { VEX_LEN_TABLE (VEX_LEN_3841_P_2
) },
4571 { "(bad)", { XX
} },
4574 /* PREFIX_VEX_3896 */
4576 { "(bad)", { XX
} },
4577 { "(bad)", { XX
} },
4578 { "vfmaddsub132p%XW", { XM
, Vex
, EXx
} },
4579 { "(bad)", { XX
} },
4582 /* PREFIX_VEX_3897 */
4584 { "(bad)", { XX
} },
4585 { "(bad)", { XX
} },
4586 { "vfmsubadd132p%XW", { XM
, Vex
, EXx
} },
4587 { "(bad)", { XX
} },
4590 /* PREFIX_VEX_3898 */
4592 { "(bad)", { XX
} },
4593 { "(bad)", { XX
} },
4594 { "vfmadd132p%XW", { XM
, Vex
, EXx
} },
4595 { "(bad)", { XX
} },
4598 /* PREFIX_VEX_3899 */
4600 { "(bad)", { XX
} },
4601 { "(bad)", { XX
} },
4602 { "vfmadd132s%XW", { XM
, Vex
, EXVexWdq
} },
4603 { "(bad)", { XX
} },
4606 /* PREFIX_VEX_389A */
4608 { "(bad)", { XX
} },
4609 { "(bad)", { XX
} },
4610 { "vfmsub132p%XW", { XM
, Vex
, EXx
} },
4611 { "(bad)", { XX
} },
4614 /* PREFIX_VEX_389B */
4616 { "(bad)", { XX
} },
4617 { "(bad)", { XX
} },
4618 { "vfmsub132s%XW", { XM
, Vex
, EXVexWdq
} },
4619 { "(bad)", { XX
} },
4622 /* PREFIX_VEX_389C */
4624 { "(bad)", { XX
} },
4625 { "(bad)", { XX
} },
4626 { "vfnmadd132p%XW", { XM
, Vex
, EXx
} },
4627 { "(bad)", { XX
} },
4630 /* PREFIX_VEX_389D */
4632 { "(bad)", { XX
} },
4633 { "(bad)", { XX
} },
4634 { "vfnmadd132s%XW", { XM
, Vex
, EXVexWdq
} },
4635 { "(bad)", { XX
} },
4638 /* PREFIX_VEX_389E */
4640 { "(bad)", { XX
} },
4641 { "(bad)", { XX
} },
4642 { "vfnmsub132p%XW", { XM
, Vex
, EXx
} },
4643 { "(bad)", { XX
} },
4646 /* PREFIX_VEX_389F */
4648 { "(bad)", { XX
} },
4649 { "(bad)", { XX
} },
4650 { "vfnmsub132s%XW", { XM
, Vex
, EXVexWdq
} },
4651 { "(bad)", { XX
} },
4654 /* PREFIX_VEX_38A6 */
4656 { "(bad)", { XX
} },
4657 { "(bad)", { XX
} },
4658 { "vfmaddsub213p%XW", { XM
, Vex
, EXx
} },
4659 { "(bad)", { XX
} },
4662 /* PREFIX_VEX_38A7 */
4664 { "(bad)", { XX
} },
4665 { "(bad)", { XX
} },
4666 { "vfmsubadd213p%XW", { XM
, Vex
, EXx
} },
4667 { "(bad)", { XX
} },
4670 /* PREFIX_VEX_38A8 */
4672 { "(bad)", { XX
} },
4673 { "(bad)", { XX
} },
4674 { "vfmadd213p%XW", { XM
, Vex
, EXx
} },
4675 { "(bad)", { XX
} },
4678 /* PREFIX_VEX_38A9 */
4680 { "(bad)", { XX
} },
4681 { "(bad)", { XX
} },
4682 { "vfmadd213s%XW", { XM
, Vex
, EXVexWdq
} },
4683 { "(bad)", { XX
} },
4686 /* PREFIX_VEX_38AA */
4688 { "(bad)", { XX
} },
4689 { "(bad)", { XX
} },
4690 { "vfmsub213p%XW", { XM
, Vex
, EXx
} },
4691 { "(bad)", { XX
} },
4694 /* PREFIX_VEX_38AB */
4696 { "(bad)", { XX
} },
4697 { "(bad)", { XX
} },
4698 { "vfmsub213s%XW", { XM
, Vex
, EXVexWdq
} },
4699 { "(bad)", { XX
} },
4702 /* PREFIX_VEX_38AC */
4704 { "(bad)", { XX
} },
4705 { "(bad)", { XX
} },
4706 { "vfnmadd213p%XW", { XM
, Vex
, EXx
} },
4707 { "(bad)", { XX
} },
4710 /* PREFIX_VEX_38AD */
4712 { "(bad)", { XX
} },
4713 { "(bad)", { XX
} },
4714 { "vfnmadd213s%XW", { XM
, Vex
, EXVexWdq
} },
4715 { "(bad)", { XX
} },
4718 /* PREFIX_VEX_38AE */
4720 { "(bad)", { XX
} },
4721 { "(bad)", { XX
} },
4722 { "vfnmsub213p%XW", { XM
, Vex
, EXx
} },
4723 { "(bad)", { XX
} },
4726 /* PREFIX_VEX_38AF */
4728 { "(bad)", { XX
} },
4729 { "(bad)", { XX
} },
4730 { "vfnmsub213s%XW", { XM
, Vex
, EXVexWdq
} },
4731 { "(bad)", { XX
} },
4734 /* PREFIX_VEX_38B6 */
4736 { "(bad)", { XX
} },
4737 { "(bad)", { XX
} },
4738 { "vfmaddsub231p%XW", { XM
, Vex
, EXx
} },
4739 { "(bad)", { XX
} },
4742 /* PREFIX_VEX_38B7 */
4744 { "(bad)", { XX
} },
4745 { "(bad)", { XX
} },
4746 { "vfmsubadd231p%XW", { XM
, Vex
, EXx
} },
4747 { "(bad)", { XX
} },
4750 /* PREFIX_VEX_38B8 */
4752 { "(bad)", { XX
} },
4753 { "(bad)", { XX
} },
4754 { "vfmadd231p%XW", { XM
, Vex
, EXx
} },
4755 { "(bad)", { XX
} },
4758 /* PREFIX_VEX_38B9 */
4760 { "(bad)", { XX
} },
4761 { "(bad)", { XX
} },
4762 { "vfmadd231s%XW", { XM
, Vex
, EXVexWdq
} },
4763 { "(bad)", { XX
} },
4766 /* PREFIX_VEX_38BA */
4768 { "(bad)", { XX
} },
4769 { "(bad)", { XX
} },
4770 { "vfmsub231p%XW", { XM
, Vex
, EXx
} },
4771 { "(bad)", { XX
} },
4774 /* PREFIX_VEX_38BB */
4776 { "(bad)", { XX
} },
4777 { "(bad)", { XX
} },
4778 { "vfmsub231s%XW", { XM
, Vex
, EXVexWdq
} },
4779 { "(bad)", { XX
} },
4782 /* PREFIX_VEX_38BC */
4784 { "(bad)", { XX
} },
4785 { "(bad)", { XX
} },
4786 { "vfnmadd231p%XW", { XM
, Vex
, EXx
} },
4787 { "(bad)", { XX
} },
4790 /* PREFIX_VEX_38BD */
4792 { "(bad)", { XX
} },
4793 { "(bad)", { XX
} },
4794 { "vfnmadd231s%XW", { XM
, Vex
, EXVexWdq
} },
4795 { "(bad)", { XX
} },
4798 /* PREFIX_VEX_38BE */
4800 { "(bad)", { XX
} },
4801 { "(bad)", { XX
} },
4802 { "vfnmsub231p%XW", { XM
, Vex
, EXx
} },
4803 { "(bad)", { XX
} },
4806 /* PREFIX_VEX_38BF */
4808 { "(bad)", { XX
} },
4809 { "(bad)", { XX
} },
4810 { "vfnmsub231s%XW", { XM
, Vex
, EXVexWdq
} },
4811 { "(bad)", { XX
} },
4814 /* PREFIX_VEX_38DB */
4816 { "(bad)", { XX
} },
4817 { "(bad)", { XX
} },
4818 { VEX_LEN_TABLE (VEX_LEN_38DB_P_2
) },
4819 { "(bad)", { XX
} },
4822 /* PREFIX_VEX_38DC */
4824 { "(bad)", { XX
} },
4825 { "(bad)", { XX
} },
4826 { VEX_LEN_TABLE (VEX_LEN_38DC_P_2
) },
4827 { "(bad)", { XX
} },
4830 /* PREFIX_VEX_38DD */
4832 { "(bad)", { XX
} },
4833 { "(bad)", { XX
} },
4834 { VEX_LEN_TABLE (VEX_LEN_38DD_P_2
) },
4835 { "(bad)", { XX
} },
4838 /* PREFIX_VEX_38DE */
4840 { "(bad)", { XX
} },
4841 { "(bad)", { XX
} },
4842 { VEX_LEN_TABLE (VEX_LEN_38DE_P_2
) },
4843 { "(bad)", { XX
} },
4846 /* PREFIX_VEX_38DF */
4848 { "(bad)", { XX
} },
4849 { "(bad)", { XX
} },
4850 { VEX_LEN_TABLE (VEX_LEN_38DF_P_2
) },
4851 { "(bad)", { XX
} },
4854 /* PREFIX_VEX_3A04 */
4856 { "(bad)", { XX
} },
4857 { "(bad)", { XX
} },
4858 { "vpermilps", { XM
, EXx
, Ib
} },
4859 { "(bad)", { XX
} },
4862 /* PREFIX_VEX_3A05 */
4864 { "(bad)", { XX
} },
4865 { "(bad)", { XX
} },
4866 { "vpermilpd", { XM
, EXx
, Ib
} },
4867 { "(bad)", { XX
} },
4870 /* PREFIX_VEX_3A06 */
4872 { "(bad)", { XX
} },
4873 { "(bad)", { XX
} },
4874 { VEX_LEN_TABLE (VEX_LEN_3A06_P_2
) },
4875 { "(bad)", { XX
} },
4878 /* PREFIX_VEX_3A08 */
4880 { "(bad)", { XX
} },
4881 { "(bad)", { XX
} },
4882 { "vroundps", { XM
, EXx
, Ib
} },
4883 { "(bad)", { XX
} },
4886 /* PREFIX_VEX_3A09 */
4888 { "(bad)", { XX
} },
4889 { "(bad)", { XX
} },
4890 { "vroundpd", { XM
, EXx
, Ib
} },
4891 { "(bad)", { XX
} },
4894 /* PREFIX_VEX_3A0A */
4896 { "(bad)", { XX
} },
4897 { "(bad)", { XX
} },
4898 { VEX_LEN_TABLE (VEX_LEN_3A0A_P_2
) },
4899 { "(bad)", { XX
} },
4902 /* PREFIX_VEX_3A0B */
4904 { "(bad)", { XX
} },
4905 { "(bad)", { XX
} },
4906 { VEX_LEN_TABLE (VEX_LEN_3A0B_P_2
) },
4907 { "(bad)", { XX
} },
4910 /* PREFIX_VEX_3A0C */
4912 { "(bad)", { XX
} },
4913 { "(bad)", { XX
} },
4914 { "vblendps", { XM
, Vex
, EXx
, Ib
} },
4915 { "(bad)", { XX
} },
4918 /* PREFIX_VEX_3A0D */
4920 { "(bad)", { XX
} },
4921 { "(bad)", { XX
} },
4922 { "vblendpd", { XM
, Vex
, EXx
, Ib
} },
4923 { "(bad)", { XX
} },
4926 /* PREFIX_VEX_3A0E */
4928 { "(bad)", { XX
} },
4929 { "(bad)", { XX
} },
4930 { VEX_LEN_TABLE (VEX_LEN_3A0E_P_2
) },
4931 { "(bad)", { XX
} },
4934 /* PREFIX_VEX_3A0F */
4936 { "(bad)", { XX
} },
4937 { "(bad)", { XX
} },
4938 { VEX_LEN_TABLE (VEX_LEN_3A0F_P_2
) },
4939 { "(bad)", { XX
} },
4942 /* PREFIX_VEX_3A14 */
4944 { "(bad)", { XX
} },
4945 { "(bad)", { XX
} },
4946 { VEX_LEN_TABLE (VEX_LEN_3A14_P_2
) },
4947 { "(bad)", { XX
} },
4950 /* PREFIX_VEX_3A15 */
4952 { "(bad)", { XX
} },
4953 { "(bad)", { XX
} },
4954 { VEX_LEN_TABLE (VEX_LEN_3A15_P_2
) },
4955 { "(bad)", { XX
} },
4958 /* PREFIX_VEX_3A16 */
4960 { "(bad)", { XX
} },
4961 { "(bad)", { XX
} },
4962 { VEX_LEN_TABLE (VEX_LEN_3A16_P_2
) },
4963 { "(bad)", { XX
} },
4966 /* PREFIX_VEX_3A17 */
4968 { "(bad)", { XX
} },
4969 { "(bad)", { XX
} },
4970 { VEX_LEN_TABLE (VEX_LEN_3A17_P_2
) },
4971 { "(bad)", { XX
} },
4974 /* PREFIX_VEX_3A18 */
4976 { "(bad)", { XX
} },
4977 { "(bad)", { XX
} },
4978 { VEX_LEN_TABLE (VEX_LEN_3A18_P_2
) },
4979 { "(bad)", { XX
} },
4982 /* PREFIX_VEX_3A19 */
4984 { "(bad)", { XX
} },
4985 { "(bad)", { XX
} },
4986 { VEX_LEN_TABLE (VEX_LEN_3A19_P_2
) },
4987 { "(bad)", { XX
} },
4990 /* PREFIX_VEX_3A20 */
4992 { "(bad)", { XX
} },
4993 { "(bad)", { XX
} },
4994 { VEX_LEN_TABLE (VEX_LEN_3A20_P_2
) },
4995 { "(bad)", { XX
} },
4998 /* PREFIX_VEX_3A21 */
5000 { "(bad)", { XX
} },
5001 { "(bad)", { XX
} },
5002 { VEX_LEN_TABLE (VEX_LEN_3A21_P_2
) },
5003 { "(bad)", { XX
} },
5006 /* PREFIX_VEX_3A22 */
5008 { "(bad)", { XX
} },
5009 { "(bad)", { XX
} },
5010 { VEX_LEN_TABLE (VEX_LEN_3A22_P_2
) },
5011 { "(bad)", { XX
} },
5014 /* PREFIX_VEX_3A40 */
5016 { "(bad)", { XX
} },
5017 { "(bad)", { XX
} },
5018 { "vdpps", { XM
, Vex
, EXx
, Ib
} },
5019 { "(bad)", { XX
} },
5022 /* PREFIX_VEX_3A41 */
5024 { "(bad)", { XX
} },
5025 { "(bad)", { XX
} },
5026 { VEX_LEN_TABLE (VEX_LEN_3A41_P_2
) },
5027 { "(bad)", { XX
} },
5030 /* PREFIX_VEX_3A42 */
5032 { "(bad)", { XX
} },
5033 { "(bad)", { XX
} },
5034 { VEX_LEN_TABLE (VEX_LEN_3A42_P_2
) },
5035 { "(bad)", { XX
} },
5038 /* PREFIX_VEX_3A44 */
5040 { "(bad)", { XX
} },
5041 { "(bad)", { XX
} },
5042 { VEX_LEN_TABLE (VEX_LEN_3A44_P_2
) },
5043 { "(bad)", { XX
} },
5046 /* PREFIX_VEX_3A4A */
5048 { "(bad)", { XX
} },
5049 { "(bad)", { XX
} },
5050 { "vblendvps", { XM
, Vex
, EXx
, XMVexI4
} },
5051 { "(bad)", { XX
} },
5054 /* PREFIX_VEX_3A4B */
5056 { "(bad)", { XX
} },
5057 { "(bad)", { XX
} },
5058 { "vblendvpd", { XM
, Vex
, EXx
, XMVexI4
} },
5059 { "(bad)", { XX
} },
5062 /* PREFIX_VEX_3A4C */
5064 { "(bad)", { XX
} },
5065 { "(bad)", { XX
} },
5066 { VEX_LEN_TABLE (VEX_LEN_3A4C_P_2
) },
5067 { "(bad)", { XX
} },
5070 /* PREFIX_VEX_3A5C */
5072 { "(bad)", { XX
} },
5073 { "(bad)", { XX
} },
5074 { "vfmaddsubps", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5075 { "(bad)", { XX
} },
5078 /* PREFIX_VEX_3A5D */
5080 { "(bad)", { XX
} },
5081 { "(bad)", { XX
} },
5082 { "vfmaddsubpd", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5083 { "(bad)", { XX
} },
5086 /* PREFIX_VEX_3A5E */
5088 { "(bad)", { XX
} },
5089 { "(bad)", { XX
} },
5090 { "vfmsubaddps", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5091 { "(bad)", { XX
} },
5094 /* PREFIX_VEX_3A5F */
5096 { "(bad)", { XX
} },
5097 { "(bad)", { XX
} },
5098 { "vfmsubaddpd", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5099 { "(bad)", { XX
} },
5102 /* PREFIX_VEX_3A60 */
5104 { "(bad)", { XX
} },
5105 { "(bad)", { XX
} },
5106 { VEX_LEN_TABLE (VEX_LEN_3A60_P_2
) },
5107 { "(bad)", { XX
} },
5110 /* PREFIX_VEX_3A61 */
5112 { "(bad)", { XX
} },
5113 { "(bad)", { XX
} },
5114 { VEX_LEN_TABLE (VEX_LEN_3A61_P_2
) },
5115 { "(bad)", { XX
} },
5118 /* PREFIX_VEX_3A62 */
5120 { "(bad)", { XX
} },
5121 { "(bad)", { XX
} },
5122 { VEX_LEN_TABLE (VEX_LEN_3A62_P_2
) },
5123 { "(bad)", { XX
} },
5126 /* PREFIX_VEX_3A63 */
5128 { "(bad)", { XX
} },
5129 { "(bad)", { XX
} },
5130 { VEX_LEN_TABLE (VEX_LEN_3A63_P_2
) },
5131 { "(bad)", { XX
} },
5134 /* PREFIX_VEX_3A68 */
5136 { "(bad)", { XX
} },
5137 { "(bad)", { XX
} },
5138 { "vfmaddps", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5139 { "(bad)", { XX
} },
5142 /* PREFIX_VEX_3A69 */
5144 { "(bad)", { XX
} },
5145 { "(bad)", { XX
} },
5146 { "vfmaddpd", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5147 { "(bad)", { XX
} },
5150 /* PREFIX_VEX_3A6A */
5152 { "(bad)", { XX
} },
5153 { "(bad)", { XX
} },
5154 { VEX_LEN_TABLE (VEX_LEN_3A6A_P_2
) },
5155 { "(bad)", { XX
} },
5158 /* PREFIX_VEX_3A6B */
5160 { "(bad)", { XX
} },
5161 { "(bad)", { XX
} },
5162 { VEX_LEN_TABLE (VEX_LEN_3A6B_P_2
) },
5163 { "(bad)", { XX
} },
5166 /* PREFIX_VEX_3A6C */
5168 { "(bad)", { XX
} },
5169 { "(bad)", { XX
} },
5170 { "vfmsubps", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5171 { "(bad)", { XX
} },
5174 /* PREFIX_VEX_3A6D */
5176 { "(bad)", { XX
} },
5177 { "(bad)", { XX
} },
5178 { "vfmsubpd", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5179 { "(bad)", { XX
} },
5182 /* PREFIX_VEX_3A6E */
5184 { "(bad)", { XX
} },
5185 { "(bad)", { XX
} },
5186 { VEX_LEN_TABLE (VEX_LEN_3A6E_P_2
) },
5187 { "(bad)", { XX
} },
5190 /* PREFIX_VEX_3A6F */
5192 { "(bad)", { XX
} },
5193 { "(bad)", { XX
} },
5194 { VEX_LEN_TABLE (VEX_LEN_3A6F_P_2
) },
5195 { "(bad)", { XX
} },
5198 /* PREFIX_VEX_3A78 */
5200 { "(bad)", { XX
} },
5201 { "(bad)", { XX
} },
5202 { "vfnmaddps", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5203 { "(bad)", { XX
} },
5206 /* PREFIX_VEX_3A79 */
5208 { "(bad)", { XX
} },
5209 { "(bad)", { XX
} },
5210 { "vfnmaddpd", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5211 { "(bad)", { XX
} },
5214 /* PREFIX_VEX_3A7A */
5216 { "(bad)", { XX
} },
5217 { "(bad)", { XX
} },
5218 { VEX_LEN_TABLE (VEX_LEN_3A7A_P_2
) },
5219 { "(bad)", { XX
} },
5222 /* PREFIX_VEX_3A7B */
5224 { "(bad)", { XX
} },
5225 { "(bad)", { XX
} },
5226 { VEX_LEN_TABLE (VEX_LEN_3A7B_P_2
) },
5227 { "(bad)", { XX
} },
5230 /* PREFIX_VEX_3A7C */
5232 { "(bad)", { XX
} },
5233 { "(bad)", { XX
} },
5234 { "vfnmsubps", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5235 { "(bad)", { XX
} },
5238 /* PREFIX_VEX_3A7D */
5240 { "(bad)", { XX
} },
5241 { "(bad)", { XX
} },
5242 { "vfnmsubpd", { XMVexW
, VexFMA
, EXVexW
, EXVexW
, VexI4
} },
5243 { "(bad)", { XX
} },
5246 /* PREFIX_VEX_3A7E */
5248 { "(bad)", { XX
} },
5249 { "(bad)", { XX
} },
5250 { VEX_LEN_TABLE (VEX_LEN_3A7E_P_2
) },
5251 { "(bad)", { XX
} },
5254 /* PREFIX_VEX_3A7F */
5256 { "(bad)", { XX
} },
5257 { "(bad)", { XX
} },
5258 { VEX_LEN_TABLE (VEX_LEN_3A7F_P_2
) },
5259 { "(bad)", { XX
} },
5262 /* PREFIX_VEX_3ADF */
5264 { "(bad)", { XX
} },
5265 { "(bad)", { XX
} },
5266 { VEX_LEN_TABLE (VEX_LEN_3ADF_P_2
) },
5267 { "(bad)", { XX
} },
5271 static const struct dis386 x86_64_table
[][2] = {
5274 { "push{T|}", { es
} },
5275 { "(bad)", { XX
} },
5280 { "pop{T|}", { es
} },
5281 { "(bad)", { XX
} },
5286 { "push{T|}", { cs
} },
5287 { "(bad)", { XX
} },
5292 { "push{T|}", { ss
} },
5293 { "(bad)", { XX
} },
5298 { "pop{T|}", { ss
} },
5299 { "(bad)", { XX
} },
5304 { "push{T|}", { ds
} },
5305 { "(bad)", { XX
} },
5310 { "pop{T|}", { ds
} },
5311 { "(bad)", { XX
} },
5317 { "(bad)", { XX
} },
5323 { "(bad)", { XX
} },
5329 { "(bad)", { XX
} },
5335 { "(bad)", { XX
} },
5340 { "pusha{P|}", { XX
} },
5341 { "(bad)", { XX
} },
5346 { "popa{P|}", { XX
} },
5347 { "(bad)", { XX
} },
5352 { MOD_TABLE (MOD_62_32BIT
) },
5353 { "(bad)", { XX
} },
5358 { "arpl", { Ew
, Gw
} },
5359 { "movs{lq|xd}", { Gv
, Ed
} },
5364 { "ins{R|}", { Yzr
, indirDX
} },
5365 { "ins{G|}", { Yzr
, indirDX
} },
5370 { "outs{R|}", { indirDXr
, Xz
} },
5371 { "outs{G|}", { indirDXr
, Xz
} },
5376 { "Jcall{T|}", { Ap
} },
5377 { "(bad)", { XX
} },
5382 { MOD_TABLE (MOD_C4_32BIT
) },
5383 { VEX_C4_TABLE (VEX_0F
) },
5388 { MOD_TABLE (MOD_C5_32BIT
) },
5389 { VEX_C5_TABLE (VEX_0F
) },
5395 { "(bad)", { XX
} },
5401 { "(bad)", { XX
} },
5407 { "(bad)", { XX
} },
5412 { "Jjmp{T|}", { Ap
} },
5413 { "(bad)", { XX
} },
5416 /* X86_64_0F01_REG_0 */
5418 { "sgdt{Q|IQ}", { M
} },
5422 /* X86_64_0F01_REG_1 */
5424 { "sidt{Q|IQ}", { M
} },
5428 /* X86_64_0F01_REG_2 */
5430 { "lgdt{Q|Q}", { M
} },
5434 /* X86_64_0F01_REG_3 */
5436 { "lidt{Q|Q}", { M
} },
5441 static const struct dis386 three_byte_table
[][256] = {
5443 /* THREE_BYTE_0F38 */
5446 { "pshufb", { MX
, EM
} },
5447 { "phaddw", { MX
, EM
} },
5448 { "phaddd", { MX
, EM
} },
5449 { "phaddsw", { MX
, EM
} },
5450 { "pmaddubsw", { MX
, EM
} },
5451 { "phsubw", { MX
, EM
} },
5452 { "phsubd", { MX
, EM
} },
5453 { "phsubsw", { MX
, EM
} },
5455 { "psignb", { MX
, EM
} },
5456 { "psignw", { MX
, EM
} },
5457 { "psignd", { MX
, EM
} },
5458 { "pmulhrsw", { MX
, EM
} },
5459 { "(bad)", { XX
} },
5460 { "(bad)", { XX
} },
5461 { "(bad)", { XX
} },
5462 { "(bad)", { XX
} },
5464 { PREFIX_TABLE (PREFIX_0F3810
) },
5465 { "(bad)", { XX
} },
5466 { "(bad)", { XX
} },
5467 { "(bad)", { XX
} },
5468 { PREFIX_TABLE (PREFIX_0F3814
) },
5469 { PREFIX_TABLE (PREFIX_0F3815
) },
5470 { "(bad)", { XX
} },
5471 { PREFIX_TABLE (PREFIX_0F3817
) },
5473 { "(bad)", { XX
} },
5474 { "(bad)", { XX
} },
5475 { "(bad)", { XX
} },
5476 { "(bad)", { XX
} },
5477 { "pabsb", { MX
, EM
} },
5478 { "pabsw", { MX
, EM
} },
5479 { "pabsd", { MX
, EM
} },
5480 { "(bad)", { XX
} },
5482 { PREFIX_TABLE (PREFIX_0F3820
) },
5483 { PREFIX_TABLE (PREFIX_0F3821
) },
5484 { PREFIX_TABLE (PREFIX_0F3822
) },
5485 { PREFIX_TABLE (PREFIX_0F3823
) },
5486 { PREFIX_TABLE (PREFIX_0F3824
) },
5487 { PREFIX_TABLE (PREFIX_0F3825
) },
5488 { "(bad)", { XX
} },
5489 { "(bad)", { XX
} },
5491 { PREFIX_TABLE (PREFIX_0F3828
) },
5492 { PREFIX_TABLE (PREFIX_0F3829
) },
5493 { PREFIX_TABLE (PREFIX_0F382A
) },
5494 { PREFIX_TABLE (PREFIX_0F382B
) },
5495 { "(bad)", { XX
} },
5496 { "(bad)", { XX
} },
5497 { "(bad)", { XX
} },
5498 { "(bad)", { XX
} },
5500 { PREFIX_TABLE (PREFIX_0F3830
) },
5501 { PREFIX_TABLE (PREFIX_0F3831
) },
5502 { PREFIX_TABLE (PREFIX_0F3832
) },
5503 { PREFIX_TABLE (PREFIX_0F3833
) },
5504 { PREFIX_TABLE (PREFIX_0F3834
) },
5505 { PREFIX_TABLE (PREFIX_0F3835
) },
5506 { "(bad)", { XX
} },
5507 { PREFIX_TABLE (PREFIX_0F3837
) },
5509 { PREFIX_TABLE (PREFIX_0F3838
) },
5510 { PREFIX_TABLE (PREFIX_0F3839
) },
5511 { PREFIX_TABLE (PREFIX_0F383A
) },
5512 { PREFIX_TABLE (PREFIX_0F383B
) },
5513 { PREFIX_TABLE (PREFIX_0F383C
) },
5514 { PREFIX_TABLE (PREFIX_0F383D
) },
5515 { PREFIX_TABLE (PREFIX_0F383E
) },
5516 { PREFIX_TABLE (PREFIX_0F383F
) },
5518 { PREFIX_TABLE (PREFIX_0F3840
) },
5519 { PREFIX_TABLE (PREFIX_0F3841
) },
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 { "(bad)", { XX
} },
5555 { "(bad)", { XX
} },
5556 { "(bad)", { XX
} },
5557 { "(bad)", { XX
} },
5558 { "(bad)", { XX
} },
5559 { "(bad)", { XX
} },
5560 { "(bad)", { XX
} },
5561 { "(bad)", { XX
} },
5563 { "(bad)", { XX
} },
5564 { "(bad)", { XX
} },
5565 { "(bad)", { XX
} },
5566 { "(bad)", { XX
} },
5567 { "(bad)", { XX
} },
5568 { "(bad)", { XX
} },
5569 { "(bad)", { XX
} },
5570 { "(bad)", { XX
} },
5572 { "(bad)", { XX
} },
5573 { "(bad)", { XX
} },
5574 { "(bad)", { XX
} },
5575 { "(bad)", { XX
} },
5576 { "(bad)", { XX
} },
5577 { "(bad)", { XX
} },
5578 { "(bad)", { XX
} },
5579 { "(bad)", { XX
} },
5581 { "(bad)", { XX
} },
5582 { "(bad)", { XX
} },
5583 { "(bad)", { XX
} },
5584 { "(bad)", { XX
} },
5585 { "(bad)", { XX
} },
5586 { "(bad)", { XX
} },
5587 { "(bad)", { XX
} },
5588 { "(bad)", { XX
} },
5590 { PREFIX_TABLE (PREFIX_0F3880
) },
5591 { PREFIX_TABLE (PREFIX_0F3881
) },
5592 { "(bad)", { XX
} },
5593 { "(bad)", { XX
} },
5594 { "(bad)", { XX
} },
5595 { "(bad)", { XX
} },
5596 { "(bad)", { XX
} },
5597 { "(bad)", { XX
} },
5599 { "(bad)", { XX
} },
5600 { "(bad)", { XX
} },
5601 { "(bad)", { XX
} },
5602 { "(bad)", { XX
} },
5603 { "(bad)", { XX
} },
5604 { "(bad)", { XX
} },
5605 { "(bad)", { XX
} },
5606 { "(bad)", { XX
} },
5608 { "(bad)", { XX
} },
5609 { "(bad)", { XX
} },
5610 { "(bad)", { XX
} },
5611 { "(bad)", { XX
} },
5612 { "(bad)", { XX
} },
5613 { "(bad)", { XX
} },
5614 { "(bad)", { XX
} },
5615 { "(bad)", { XX
} },
5617 { "(bad)", { XX
} },
5618 { "(bad)", { XX
} },
5619 { "(bad)", { XX
} },
5620 { "(bad)", { XX
} },
5621 { "(bad)", { XX
} },
5622 { "(bad)", { XX
} },
5623 { "(bad)", { XX
} },
5624 { "(bad)", { XX
} },
5626 { "(bad)", { XX
} },
5627 { "(bad)", { XX
} },
5628 { "(bad)", { XX
} },
5629 { "(bad)", { XX
} },
5630 { "(bad)", { XX
} },
5631 { "(bad)", { XX
} },
5632 { "(bad)", { XX
} },
5633 { "(bad)", { XX
} },
5635 { "(bad)", { XX
} },
5636 { "(bad)", { XX
} },
5637 { "(bad)", { XX
} },
5638 { "(bad)", { XX
} },
5639 { "(bad)", { XX
} },
5640 { "(bad)", { XX
} },
5641 { "(bad)", { XX
} },
5642 { "(bad)", { XX
} },
5644 { "(bad)", { XX
} },
5645 { "(bad)", { XX
} },
5646 { "(bad)", { XX
} },
5647 { "(bad)", { XX
} },
5648 { "(bad)", { XX
} },
5649 { "(bad)", { XX
} },
5650 { "(bad)", { XX
} },
5651 { "(bad)", { XX
} },
5653 { "(bad)", { XX
} },
5654 { "(bad)", { XX
} },
5655 { "(bad)", { XX
} },
5656 { "(bad)", { XX
} },
5657 { "(bad)", { XX
} },
5658 { "(bad)", { XX
} },
5659 { "(bad)", { XX
} },
5660 { "(bad)", { XX
} },
5662 { "(bad)", { XX
} },
5663 { "(bad)", { XX
} },
5664 { "(bad)", { XX
} },
5665 { "(bad)", { XX
} },
5666 { "(bad)", { XX
} },
5667 { "(bad)", { XX
} },
5668 { "(bad)", { XX
} },
5669 { "(bad)", { XX
} },
5671 { "(bad)", { XX
} },
5672 { "(bad)", { XX
} },
5673 { "(bad)", { XX
} },
5674 { "(bad)", { XX
} },
5675 { "(bad)", { XX
} },
5676 { "(bad)", { XX
} },
5677 { "(bad)", { XX
} },
5678 { "(bad)", { XX
} },
5680 { "(bad)", { XX
} },
5681 { "(bad)", { XX
} },
5682 { "(bad)", { XX
} },
5683 { "(bad)", { XX
} },
5684 { "(bad)", { XX
} },
5685 { "(bad)", { XX
} },
5686 { "(bad)", { XX
} },
5687 { "(bad)", { XX
} },
5689 { "(bad)", { XX
} },
5690 { "(bad)", { XX
} },
5691 { "(bad)", { XX
} },
5692 { PREFIX_TABLE (PREFIX_0F38DB
) },
5693 { PREFIX_TABLE (PREFIX_0F38DC
) },
5694 { PREFIX_TABLE (PREFIX_0F38DD
) },
5695 { PREFIX_TABLE (PREFIX_0F38DE
) },
5696 { PREFIX_TABLE (PREFIX_0F38DF
) },
5698 { "(bad)", { XX
} },
5699 { "(bad)", { XX
} },
5700 { "(bad)", { XX
} },
5701 { "(bad)", { XX
} },
5702 { "(bad)", { XX
} },
5703 { "(bad)", { XX
} },
5704 { "(bad)", { XX
} },
5705 { "(bad)", { XX
} },
5707 { "(bad)", { XX
} },
5708 { "(bad)", { XX
} },
5709 { "(bad)", { XX
} },
5710 { "(bad)", { XX
} },
5711 { "(bad)", { XX
} },
5712 { "(bad)", { XX
} },
5713 { "(bad)", { XX
} },
5714 { "(bad)", { XX
} },
5716 { PREFIX_TABLE (PREFIX_0F38F0
) },
5717 { PREFIX_TABLE (PREFIX_0F38F1
) },
5718 { "(bad)", { XX
} },
5719 { "(bad)", { XX
} },
5720 { "(bad)", { XX
} },
5721 { "(bad)", { XX
} },
5722 { "(bad)", { XX
} },
5723 { "(bad)", { XX
} },
5725 { "(bad)", { XX
} },
5726 { "(bad)", { XX
} },
5727 { "(bad)", { XX
} },
5728 { "(bad)", { XX
} },
5729 { "(bad)", { XX
} },
5730 { "(bad)", { XX
} },
5731 { "(bad)", { XX
} },
5732 { "(bad)", { XX
} },
5734 /* THREE_BYTE_0F3A */
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 { PREFIX_TABLE (PREFIX_0F3A08
) },
5747 { PREFIX_TABLE (PREFIX_0F3A09
) },
5748 { PREFIX_TABLE (PREFIX_0F3A0A
) },
5749 { PREFIX_TABLE (PREFIX_0F3A0B
) },
5750 { PREFIX_TABLE (PREFIX_0F3A0C
) },
5751 { PREFIX_TABLE (PREFIX_0F3A0D
) },
5752 { PREFIX_TABLE (PREFIX_0F3A0E
) },
5753 { "palignr", { MX
, EM
, Ib
} },
5755 { "(bad)", { XX
} },
5756 { "(bad)", { XX
} },
5757 { "(bad)", { XX
} },
5758 { "(bad)", { XX
} },
5759 { PREFIX_TABLE (PREFIX_0F3A14
) },
5760 { PREFIX_TABLE (PREFIX_0F3A15
) },
5761 { PREFIX_TABLE (PREFIX_0F3A16
) },
5762 { PREFIX_TABLE (PREFIX_0F3A17
) },
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 { PREFIX_TABLE (PREFIX_0F3A20
) },
5774 { PREFIX_TABLE (PREFIX_0F3A21
) },
5775 { PREFIX_TABLE (PREFIX_0F3A22
) },
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 { PREFIX_TABLE (PREFIX_0F3A40
) },
5810 { PREFIX_TABLE (PREFIX_0F3A41
) },
5811 { PREFIX_TABLE (PREFIX_0F3A42
) },
5812 { "(bad)", { XX
} },
5813 { PREFIX_TABLE (PREFIX_0F3A44
) },
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 { PREFIX_TABLE (PREFIX_0F3A60
) },
5846 { PREFIX_TABLE (PREFIX_0F3A61
) },
5847 { PREFIX_TABLE (PREFIX_0F3A62
) },
5848 { PREFIX_TABLE (PREFIX_0F3A63
) },
5849 { "(bad)", { XX
} },
5850 { "(bad)", { XX
} },
5851 { "(bad)", { XX
} },
5852 { "(bad)", { XX
} },
5854 { "(bad)", { XX
} },
5855 { "(bad)", { XX
} },
5856 { "(bad)", { XX
} },
5857 { "(bad)", { XX
} },
5858 { "(bad)", { XX
} },
5859 { "(bad)", { XX
} },
5860 { "(bad)", { XX
} },
5861 { "(bad)", { XX
} },
5863 { "(bad)", { XX
} },
5864 { "(bad)", { XX
} },
5865 { "(bad)", { XX
} },
5866 { "(bad)", { XX
} },
5867 { "(bad)", { XX
} },
5868 { "(bad)", { XX
} },
5869 { "(bad)", { XX
} },
5870 { "(bad)", { XX
} },
5872 { "(bad)", { XX
} },
5873 { "(bad)", { XX
} },
5874 { "(bad)", { XX
} },
5875 { "(bad)", { XX
} },
5876 { "(bad)", { XX
} },
5877 { "(bad)", { XX
} },
5878 { "(bad)", { XX
} },
5879 { "(bad)", { XX
} },
5881 { "(bad)", { XX
} },
5882 { "(bad)", { XX
} },
5883 { "(bad)", { XX
} },
5884 { "(bad)", { XX
} },
5885 { "(bad)", { XX
} },
5886 { "(bad)", { XX
} },
5887 { "(bad)", { XX
} },
5888 { "(bad)", { XX
} },
5890 { "(bad)", { XX
} },
5891 { "(bad)", { XX
} },
5892 { "(bad)", { XX
} },
5893 { "(bad)", { XX
} },
5894 { "(bad)", { XX
} },
5895 { "(bad)", { XX
} },
5896 { "(bad)", { XX
} },
5897 { "(bad)", { XX
} },
5899 { "(bad)", { XX
} },
5900 { "(bad)", { XX
} },
5901 { "(bad)", { XX
} },
5902 { "(bad)", { XX
} },
5903 { "(bad)", { XX
} },
5904 { "(bad)", { XX
} },
5905 { "(bad)", { XX
} },
5906 { "(bad)", { XX
} },
5908 { "(bad)", { XX
} },
5909 { "(bad)", { XX
} },
5910 { "(bad)", { XX
} },
5911 { "(bad)", { XX
} },
5912 { "(bad)", { XX
} },
5913 { "(bad)", { XX
} },
5914 { "(bad)", { XX
} },
5915 { "(bad)", { XX
} },
5917 { "(bad)", { XX
} },
5918 { "(bad)", { XX
} },
5919 { "(bad)", { XX
} },
5920 { "(bad)", { XX
} },
5921 { "(bad)", { XX
} },
5922 { "(bad)", { XX
} },
5923 { "(bad)", { XX
} },
5924 { "(bad)", { XX
} },
5926 { "(bad)", { XX
} },
5927 { "(bad)", { XX
} },
5928 { "(bad)", { XX
} },
5929 { "(bad)", { XX
} },
5930 { "(bad)", { XX
} },
5931 { "(bad)", { XX
} },
5932 { "(bad)", { XX
} },
5933 { "(bad)", { XX
} },
5935 { "(bad)", { XX
} },
5936 { "(bad)", { XX
} },
5937 { "(bad)", { XX
} },
5938 { "(bad)", { XX
} },
5939 { "(bad)", { XX
} },
5940 { "(bad)", { XX
} },
5941 { "(bad)", { XX
} },
5942 { "(bad)", { XX
} },
5944 { "(bad)", { XX
} },
5945 { "(bad)", { XX
} },
5946 { "(bad)", { XX
} },
5947 { "(bad)", { XX
} },
5948 { "(bad)", { XX
} },
5949 { "(bad)", { XX
} },
5950 { "(bad)", { XX
} },
5951 { "(bad)", { XX
} },
5953 { "(bad)", { XX
} },
5954 { "(bad)", { XX
} },
5955 { "(bad)", { XX
} },
5956 { "(bad)", { XX
} },
5957 { "(bad)", { XX
} },
5958 { "(bad)", { XX
} },
5959 { "(bad)", { XX
} },
5960 { "(bad)", { XX
} },
5962 { "(bad)", { XX
} },
5963 { "(bad)", { XX
} },
5964 { "(bad)", { XX
} },
5965 { "(bad)", { XX
} },
5966 { "(bad)", { XX
} },
5967 { "(bad)", { XX
} },
5968 { "(bad)", { XX
} },
5969 { "(bad)", { XX
} },
5971 { "(bad)", { XX
} },
5972 { "(bad)", { XX
} },
5973 { "(bad)", { XX
} },
5974 { "(bad)", { XX
} },
5975 { "(bad)", { XX
} },
5976 { "(bad)", { XX
} },
5977 { "(bad)", { XX
} },
5978 { "(bad)", { XX
} },
5980 { "(bad)", { XX
} },
5981 { "(bad)", { XX
} },
5982 { "(bad)", { XX
} },
5983 { "(bad)", { XX
} },
5984 { "(bad)", { XX
} },
5985 { "(bad)", { XX
} },
5986 { "(bad)", { XX
} },
5987 { PREFIX_TABLE (PREFIX_0F3ADF
) },
5989 { "(bad)", { XX
} },
5990 { "(bad)", { XX
} },
5991 { "(bad)", { XX
} },
5992 { "(bad)", { XX
} },
5993 { "(bad)", { XX
} },
5994 { "(bad)", { XX
} },
5995 { "(bad)", { XX
} },
5996 { "(bad)", { XX
} },
5998 { "(bad)", { XX
} },
5999 { "(bad)", { XX
} },
6000 { "(bad)", { XX
} },
6001 { "(bad)", { XX
} },
6002 { "(bad)", { XX
} },
6003 { "(bad)", { XX
} },
6004 { "(bad)", { XX
} },
6005 { "(bad)", { XX
} },
6007 { "(bad)", { XX
} },
6008 { "(bad)", { XX
} },
6009 { "(bad)", { XX
} },
6010 { "(bad)", { XX
} },
6011 { "(bad)", { XX
} },
6012 { "(bad)", { XX
} },
6013 { "(bad)", { XX
} },
6014 { "(bad)", { XX
} },
6016 { "(bad)", { XX
} },
6017 { "(bad)", { XX
} },
6018 { "(bad)", { XX
} },
6019 { "(bad)", { XX
} },
6020 { "(bad)", { XX
} },
6021 { "(bad)", { XX
} },
6022 { "(bad)", { XX
} },
6023 { "(bad)", { XX
} },
6026 /* THREE_BYTE_0F7A */
6029 { "(bad)", { XX
} },
6030 { "(bad)", { XX
} },
6031 { "(bad)", { XX
} },
6032 { "(bad)", { XX
} },
6033 { "(bad)", { XX
} },
6034 { "(bad)", { XX
} },
6035 { "(bad)", { XX
} },
6036 { "(bad)", { XX
} },
6038 { "(bad)", { XX
} },
6039 { "(bad)", { XX
} },
6040 { "(bad)", { XX
} },
6041 { "(bad)", { XX
} },
6042 { "(bad)", { XX
} },
6043 { "(bad)", { XX
} },
6044 { "(bad)", { XX
} },
6045 { "(bad)", { XX
} },
6047 { "(bad)", { XX
} },
6048 { "(bad)", { XX
} },
6049 { "(bad)", { XX
} },
6050 { "(bad)", { XX
} },
6051 { "(bad)", { XX
} },
6052 { "(bad)", { XX
} },
6053 { "(bad)", { XX
} },
6054 { "(bad)", { XX
} },
6056 { "(bad)", { XX
} },
6057 { "(bad)", { XX
} },
6058 { "(bad)", { XX
} },
6059 { "(bad)", { XX
} },
6060 { "(bad)", { XX
} },
6061 { "(bad)", { XX
} },
6062 { "(bad)", { XX
} },
6063 { "(bad)", { XX
} },
6065 { "ptest", { XX
} },
6066 { "(bad)", { XX
} },
6067 { "(bad)", { XX
} },
6068 { "(bad)", { XX
} },
6069 { "(bad)", { XX
} },
6070 { "(bad)", { XX
} },
6071 { "(bad)", { XX
} },
6072 { "(bad)", { XX
} },
6074 { "(bad)", { XX
} },
6075 { "(bad)", { XX
} },
6076 { "(bad)", { XX
} },
6077 { "(bad)", { XX
} },
6078 { "(bad)", { XX
} },
6079 { "(bad)", { XX
} },
6080 { "(bad)", { XX
} },
6081 { "(bad)", { XX
} },
6083 { "(bad)", { XX
} },
6084 { "(bad)", { XX
} },
6085 { "(bad)", { XX
} },
6086 { "(bad)", { XX
} },
6087 { "(bad)", { XX
} },
6088 { "(bad)", { XX
} },
6089 { "(bad)", { XX
} },
6090 { "(bad)", { XX
} },
6092 { "(bad)", { XX
} },
6093 { "(bad)", { XX
} },
6094 { "(bad)", { XX
} },
6095 { "(bad)", { XX
} },
6096 { "(bad)", { XX
} },
6097 { "(bad)", { XX
} },
6098 { "(bad)", { XX
} },
6099 { "(bad)", { XX
} },
6101 { "(bad)", { XX
} },
6102 { "phaddbw", { XM
, EXq
} },
6103 { "phaddbd", { XM
, EXq
} },
6104 { "phaddbq", { XM
, EXq
} },
6105 { "(bad)", { XX
} },
6106 { "(bad)", { XX
} },
6107 { "phaddwd", { XM
, EXq
} },
6108 { "phaddwq", { XM
, EXq
} },
6110 { "(bad)", { XX
} },
6111 { "(bad)", { XX
} },
6112 { "(bad)", { XX
} },
6113 { "phadddq", { XM
, EXq
} },
6114 { "(bad)", { XX
} },
6115 { "(bad)", { XX
} },
6116 { "(bad)", { XX
} },
6117 { "(bad)", { XX
} },
6119 { "(bad)", { XX
} },
6120 { "phaddubw", { XM
, EXq
} },
6121 { "phaddubd", { XM
, EXq
} },
6122 { "phaddubq", { XM
, EXq
} },
6123 { "(bad)", { XX
} },
6124 { "(bad)", { XX
} },
6125 { "phadduwd", { XM
, EXq
} },
6126 { "phadduwq", { XM
, EXq
} },
6128 { "(bad)", { XX
} },
6129 { "(bad)", { XX
} },
6130 { "(bad)", { XX
} },
6131 { "phaddudq", { XM
, EXq
} },
6132 { "(bad)", { XX
} },
6133 { "(bad)", { XX
} },
6134 { "(bad)", { XX
} },
6135 { "(bad)", { XX
} },
6137 { "(bad)", { XX
} },
6138 { "phsubbw", { XM
, EXq
} },
6139 { "phsubbd", { XM
, EXq
} },
6140 { "phsubbq", { XM
, EXq
} },
6141 { "(bad)", { XX
} },
6142 { "(bad)", { XX
} },
6143 { "(bad)", { XX
} },
6144 { "(bad)", { XX
} },
6146 { "(bad)", { XX
} },
6147 { "(bad)", { XX
} },
6148 { "(bad)", { XX
} },
6149 { "(bad)", { XX
} },
6150 { "(bad)", { XX
} },
6151 { "(bad)", { XX
} },
6152 { "(bad)", { XX
} },
6153 { "(bad)", { XX
} },
6155 { "(bad)", { XX
} },
6156 { "(bad)", { XX
} },
6157 { "(bad)", { XX
} },
6158 { "(bad)", { XX
} },
6159 { "(bad)", { XX
} },
6160 { "(bad)", { XX
} },
6161 { "(bad)", { XX
} },
6162 { "(bad)", { XX
} },
6164 { "(bad)", { XX
} },
6165 { "(bad)", { XX
} },
6166 { "(bad)", { XX
} },
6167 { "(bad)", { XX
} },
6168 { "(bad)", { XX
} },
6169 { "(bad)", { XX
} },
6170 { "(bad)", { XX
} },
6171 { "(bad)", { XX
} },
6173 { "(bad)", { XX
} },
6174 { "(bad)", { XX
} },
6175 { "(bad)", { XX
} },
6176 { "(bad)", { XX
} },
6177 { "(bad)", { XX
} },
6178 { "(bad)", { XX
} },
6179 { "(bad)", { XX
} },
6180 { "(bad)", { XX
} },
6182 { "(bad)", { XX
} },
6183 { "(bad)", { XX
} },
6184 { "(bad)", { XX
} },
6185 { "(bad)", { XX
} },
6186 { "(bad)", { XX
} },
6187 { "(bad)", { XX
} },
6188 { "(bad)", { XX
} },
6189 { "(bad)", { XX
} },
6191 { "(bad)", { XX
} },
6192 { "(bad)", { XX
} },
6193 { "(bad)", { XX
} },
6194 { "(bad)", { XX
} },
6195 { "(bad)", { XX
} },
6196 { "(bad)", { XX
} },
6197 { "(bad)", { XX
} },
6198 { "(bad)", { XX
} },
6200 { "(bad)", { XX
} },
6201 { "(bad)", { XX
} },
6202 { "(bad)", { XX
} },
6203 { "(bad)", { XX
} },
6204 { "(bad)", { XX
} },
6205 { "(bad)", { XX
} },
6206 { "(bad)", { XX
} },
6207 { "(bad)", { XX
} },
6209 { "(bad)", { XX
} },
6210 { "(bad)", { XX
} },
6211 { "(bad)", { XX
} },
6212 { "(bad)", { XX
} },
6213 { "(bad)", { XX
} },
6214 { "(bad)", { XX
} },
6215 { "(bad)", { XX
} },
6216 { "(bad)", { XX
} },
6218 { "(bad)", { XX
} },
6219 { "(bad)", { XX
} },
6220 { "(bad)", { XX
} },
6221 { "(bad)", { XX
} },
6222 { "(bad)", { XX
} },
6223 { "(bad)", { XX
} },
6224 { "(bad)", { XX
} },
6225 { "(bad)", { XX
} },
6227 { "(bad)", { XX
} },
6228 { "(bad)", { XX
} },
6229 { "(bad)", { XX
} },
6230 { "(bad)", { XX
} },
6231 { "(bad)", { XX
} },
6232 { "(bad)", { XX
} },
6233 { "(bad)", { XX
} },
6234 { "(bad)", { XX
} },
6236 { "(bad)", { XX
} },
6237 { "(bad)", { XX
} },
6238 { "(bad)", { XX
} },
6239 { "(bad)", { XX
} },
6240 { "(bad)", { XX
} },
6241 { "(bad)", { XX
} },
6242 { "(bad)", { XX
} },
6243 { "(bad)", { XX
} },
6245 { "(bad)", { XX
} },
6246 { "(bad)", { XX
} },
6247 { "(bad)", { XX
} },
6248 { "(bad)", { XX
} },
6249 { "(bad)", { XX
} },
6250 { "(bad)", { XX
} },
6251 { "(bad)", { XX
} },
6252 { "(bad)", { XX
} },
6254 { "(bad)", { XX
} },
6255 { "(bad)", { XX
} },
6256 { "(bad)", { XX
} },
6257 { "(bad)", { XX
} },
6258 { "(bad)", { XX
} },
6259 { "(bad)", { XX
} },
6260 { "(bad)", { XX
} },
6261 { "(bad)", { XX
} },
6263 { "(bad)", { XX
} },
6264 { "(bad)", { XX
} },
6265 { "(bad)", { XX
} },
6266 { "(bad)", { XX
} },
6267 { "(bad)", { XX
} },
6268 { "(bad)", { XX
} },
6269 { "(bad)", { XX
} },
6270 { "(bad)", { XX
} },
6272 { "(bad)", { XX
} },
6273 { "(bad)", { XX
} },
6274 { "(bad)", { XX
} },
6275 { "(bad)", { XX
} },
6276 { "(bad)", { XX
} },
6277 { "(bad)", { XX
} },
6278 { "(bad)", { XX
} },
6279 { "(bad)", { XX
} },
6281 { "(bad)", { XX
} },
6282 { "(bad)", { XX
} },
6283 { "(bad)", { XX
} },
6284 { "(bad)", { XX
} },
6285 { "(bad)", { XX
} },
6286 { "(bad)", { XX
} },
6287 { "(bad)", { XX
} },
6288 { "(bad)", { XX
} },
6290 { "(bad)", { XX
} },
6291 { "(bad)", { XX
} },
6292 { "(bad)", { XX
} },
6293 { "(bad)", { XX
} },
6294 { "(bad)", { XX
} },
6295 { "(bad)", { XX
} },
6296 { "(bad)", { XX
} },
6297 { "(bad)", { XX
} },
6299 { "(bad)", { XX
} },
6300 { "(bad)", { XX
} },
6301 { "(bad)", { XX
} },
6302 { "(bad)", { XX
} },
6303 { "(bad)", { XX
} },
6304 { "(bad)", { XX
} },
6305 { "(bad)", { XX
} },
6306 { "(bad)", { XX
} },
6308 { "(bad)", { XX
} },
6309 { "(bad)", { XX
} },
6310 { "(bad)", { XX
} },
6311 { "(bad)", { XX
} },
6312 { "(bad)", { XX
} },
6313 { "(bad)", { XX
} },
6314 { "(bad)", { XX
} },
6315 { "(bad)", { XX
} },
6320 static const struct dis386 vex_table
[][256] = {
6324 { "(bad)", { XX
} },
6325 { "(bad)", { XX
} },
6326 { "(bad)", { XX
} },
6327 { "(bad)", { XX
} },
6328 { "(bad)", { XX
} },
6329 { "(bad)", { XX
} },
6330 { "(bad)", { XX
} },
6331 { "(bad)", { XX
} },
6333 { "(bad)", { XX
} },
6334 { "(bad)", { XX
} },
6335 { "(bad)", { XX
} },
6336 { "(bad)", { XX
} },
6337 { "(bad)", { XX
} },
6338 { "(bad)", { XX
} },
6339 { "(bad)", { XX
} },
6340 { "(bad)", { XX
} },
6342 { PREFIX_TABLE (PREFIX_VEX_10
) },
6343 { PREFIX_TABLE (PREFIX_VEX_11
) },
6344 { PREFIX_TABLE (PREFIX_VEX_12
) },
6345 { MOD_TABLE (MOD_VEX_13
) },
6346 { "vunpcklpX", { XM
, Vex
, EXx
} },
6347 { "vunpckhpX", { XM
, Vex
, EXx
} },
6348 { PREFIX_TABLE (PREFIX_VEX_16
) },
6349 { MOD_TABLE (MOD_VEX_17
) },
6351 { "(bad)", { XX
} },
6352 { "(bad)", { XX
} },
6353 { "(bad)", { XX
} },
6354 { "(bad)", { XX
} },
6355 { "(bad)", { XX
} },
6356 { "(bad)", { XX
} },
6357 { "(bad)", { XX
} },
6358 { "(bad)", { XX
} },
6360 { "(bad)", { XX
} },
6361 { "(bad)", { XX
} },
6362 { "(bad)", { XX
} },
6363 { "(bad)", { XX
} },
6364 { "(bad)", { XX
} },
6365 { "(bad)", { XX
} },
6366 { "(bad)", { XX
} },
6367 { "(bad)", { XX
} },
6369 { "vmovapX", { XM
, EXx
} },
6370 { "vmovapX", { EXxS
, XM
} },
6371 { PREFIX_TABLE (PREFIX_VEX_2A
) },
6372 { MOD_TABLE (MOD_VEX_2B
) },
6373 { PREFIX_TABLE (PREFIX_VEX_2C
) },
6374 { PREFIX_TABLE (PREFIX_VEX_2D
) },
6375 { PREFIX_TABLE (PREFIX_VEX_2E
) },
6376 { PREFIX_TABLE (PREFIX_VEX_2F
) },
6378 { "(bad)", { XX
} },
6379 { "(bad)", { XX
} },
6380 { "(bad)", { XX
} },
6381 { "(bad)", { XX
} },
6382 { "(bad)", { XX
} },
6383 { "(bad)", { XX
} },
6384 { "(bad)", { XX
} },
6385 { "(bad)", { XX
} },
6387 { "(bad)", { XX
} },
6388 { "(bad)", { XX
} },
6389 { "(bad)", { XX
} },
6390 { "(bad)", { XX
} },
6391 { "(bad)", { XX
} },
6392 { "(bad)", { XX
} },
6393 { "(bad)", { XX
} },
6394 { "(bad)", { XX
} },
6396 { "(bad)", { XX
} },
6397 { "(bad)", { XX
} },
6398 { "(bad)", { XX
} },
6399 { "(bad)", { XX
} },
6400 { "(bad)", { XX
} },
6401 { "(bad)", { XX
} },
6402 { "(bad)", { XX
} },
6403 { "(bad)", { XX
} },
6405 { "(bad)", { XX
} },
6406 { "(bad)", { XX
} },
6407 { "(bad)", { XX
} },
6408 { "(bad)", { XX
} },
6409 { "(bad)", { XX
} },
6410 { "(bad)", { XX
} },
6411 { "(bad)", { XX
} },
6412 { "(bad)", { XX
} },
6414 { MOD_TABLE (MOD_VEX_51
) },
6415 { PREFIX_TABLE (PREFIX_VEX_51
) },
6416 { PREFIX_TABLE (PREFIX_VEX_52
) },
6417 { PREFIX_TABLE (PREFIX_VEX_53
) },
6418 { "vandpX", { XM
, Vex
, EXx
} },
6419 { "vandnpX", { XM
, Vex
, EXx
} },
6420 { "vorpX", { XM
, Vex
, EXx
} },
6421 { "vxorpX", { XM
, Vex
, EXx
} },
6423 { PREFIX_TABLE (PREFIX_VEX_58
) },
6424 { PREFIX_TABLE (PREFIX_VEX_59
) },
6425 { PREFIX_TABLE (PREFIX_VEX_5A
) },
6426 { PREFIX_TABLE (PREFIX_VEX_5B
) },
6427 { PREFIX_TABLE (PREFIX_VEX_5C
) },
6428 { PREFIX_TABLE (PREFIX_VEX_5D
) },
6429 { PREFIX_TABLE (PREFIX_VEX_5E
) },
6430 { PREFIX_TABLE (PREFIX_VEX_5F
) },
6432 { PREFIX_TABLE (PREFIX_VEX_60
) },
6433 { PREFIX_TABLE (PREFIX_VEX_61
) },
6434 { PREFIX_TABLE (PREFIX_VEX_62
) },
6435 { PREFIX_TABLE (PREFIX_VEX_63
) },
6436 { PREFIX_TABLE (PREFIX_VEX_64
) },
6437 { PREFIX_TABLE (PREFIX_VEX_65
) },
6438 { PREFIX_TABLE (PREFIX_VEX_66
) },
6439 { PREFIX_TABLE (PREFIX_VEX_67
) },
6441 { PREFIX_TABLE (PREFIX_VEX_68
) },
6442 { PREFIX_TABLE (PREFIX_VEX_69
) },
6443 { PREFIX_TABLE (PREFIX_VEX_6A
) },
6444 { PREFIX_TABLE (PREFIX_VEX_6B
) },
6445 { PREFIX_TABLE (PREFIX_VEX_6C
) },
6446 { PREFIX_TABLE (PREFIX_VEX_6D
) },
6447 { PREFIX_TABLE (PREFIX_VEX_6E
) },
6448 { PREFIX_TABLE (PREFIX_VEX_6F
) },
6450 { PREFIX_TABLE (PREFIX_VEX_70
) },
6451 { REG_TABLE (REG_VEX_71
) },
6452 { REG_TABLE (REG_VEX_72
) },
6453 { REG_TABLE (REG_VEX_73
) },
6454 { PREFIX_TABLE (PREFIX_VEX_74
) },
6455 { PREFIX_TABLE (PREFIX_VEX_75
) },
6456 { PREFIX_TABLE (PREFIX_VEX_76
) },
6457 { PREFIX_TABLE (PREFIX_VEX_77
) },
6459 { "(bad)", { XX
} },
6460 { "(bad)", { XX
} },
6461 { "(bad)", { XX
} },
6462 { "(bad)", { XX
} },
6463 { PREFIX_TABLE (PREFIX_VEX_7C
) },
6464 { PREFIX_TABLE (PREFIX_VEX_7D
) },
6465 { PREFIX_TABLE (PREFIX_VEX_7E
) },
6466 { PREFIX_TABLE (PREFIX_VEX_7F
) },
6468 { "(bad)", { XX
} },
6469 { "(bad)", { XX
} },
6470 { "(bad)", { XX
} },
6471 { "(bad)", { XX
} },
6472 { "(bad)", { XX
} },
6473 { "(bad)", { XX
} },
6474 { "(bad)", { XX
} },
6475 { "(bad)", { XX
} },
6477 { "(bad)", { XX
} },
6478 { "(bad)", { XX
} },
6479 { "(bad)", { XX
} },
6480 { "(bad)", { XX
} },
6481 { "(bad)", { XX
} },
6482 { "(bad)", { XX
} },
6483 { "(bad)", { XX
} },
6484 { "(bad)", { XX
} },
6486 { "(bad)", { XX
} },
6487 { "(bad)", { XX
} },
6488 { "(bad)", { XX
} },
6489 { "(bad)", { XX
} },
6490 { "(bad)", { XX
} },
6491 { "(bad)", { XX
} },
6492 { "(bad)", { XX
} },
6493 { "(bad)", { XX
} },
6495 { "(bad)", { XX
} },
6496 { "(bad)", { XX
} },
6497 { "(bad)", { XX
} },
6498 { "(bad)", { XX
} },
6499 { "(bad)", { XX
} },
6500 { "(bad)", { XX
} },
6501 { "(bad)", { XX
} },
6502 { "(bad)", { XX
} },
6504 { "(bad)", { XX
} },
6505 { "(bad)", { XX
} },
6506 { "(bad)", { XX
} },
6507 { "(bad)", { XX
} },
6508 { "(bad)", { XX
} },
6509 { "(bad)", { XX
} },
6510 { "(bad)", { XX
} },
6511 { "(bad)", { XX
} },
6513 { "(bad)", { XX
} },
6514 { "(bad)", { XX
} },
6515 { "(bad)", { XX
} },
6516 { "(bad)", { XX
} },
6517 { "(bad)", { XX
} },
6518 { "(bad)", { XX
} },
6519 { REG_TABLE (REG_VEX_AE
) },
6520 { "(bad)", { XX
} },
6522 { "(bad)", { XX
} },
6523 { "(bad)", { XX
} },
6524 { "(bad)", { XX
} },
6525 { "(bad)", { XX
} },
6526 { "(bad)", { XX
} },
6527 { "(bad)", { XX
} },
6528 { "(bad)", { XX
} },
6529 { "(bad)", { XX
} },
6531 { "(bad)", { XX
} },
6532 { "(bad)", { XX
} },
6533 { "(bad)", { XX
} },
6534 { "(bad)", { XX
} },
6535 { "(bad)", { XX
} },
6536 { "(bad)", { XX
} },
6537 { "(bad)", { XX
} },
6538 { "(bad)", { XX
} },
6540 { "(bad)", { XX
} },
6541 { "(bad)", { XX
} },
6542 { PREFIX_TABLE (PREFIX_VEX_C2
) },
6543 { "(bad)", { XX
} },
6544 { PREFIX_TABLE (PREFIX_VEX_C4
) },
6545 { PREFIX_TABLE (PREFIX_VEX_C5
) },
6546 { "vshufpX", { XM
, Vex
, EXx
, Ib
} },
6547 { "(bad)", { XX
} },
6549 { "(bad)", { XX
} },
6550 { "(bad)", { XX
} },
6551 { "(bad)", { XX
} },
6552 { "(bad)", { XX
} },
6553 { "(bad)", { XX
} },
6554 { "(bad)", { XX
} },
6555 { "(bad)", { XX
} },
6556 { "(bad)", { XX
} },
6558 { PREFIX_TABLE (PREFIX_VEX_D0
) },
6559 { PREFIX_TABLE (PREFIX_VEX_D1
) },
6560 { PREFIX_TABLE (PREFIX_VEX_D2
) },
6561 { PREFIX_TABLE (PREFIX_VEX_D3
) },
6562 { PREFIX_TABLE (PREFIX_VEX_D4
) },
6563 { PREFIX_TABLE (PREFIX_VEX_D5
) },
6564 { PREFIX_TABLE (PREFIX_VEX_D6
) },
6565 { PREFIX_TABLE (PREFIX_VEX_D7
) },
6567 { PREFIX_TABLE (PREFIX_VEX_D8
) },
6568 { PREFIX_TABLE (PREFIX_VEX_D9
) },
6569 { PREFIX_TABLE (PREFIX_VEX_DA
) },
6570 { PREFIX_TABLE (PREFIX_VEX_DB
) },
6571 { PREFIX_TABLE (PREFIX_VEX_DC
) },
6572 { PREFIX_TABLE (PREFIX_VEX_DD
) },
6573 { PREFIX_TABLE (PREFIX_VEX_DE
) },
6574 { PREFIX_TABLE (PREFIX_VEX_DF
) },
6576 { PREFIX_TABLE (PREFIX_VEX_E0
) },
6577 { PREFIX_TABLE (PREFIX_VEX_E1
) },
6578 { PREFIX_TABLE (PREFIX_VEX_E2
) },
6579 { PREFIX_TABLE (PREFIX_VEX_E3
) },
6580 { PREFIX_TABLE (PREFIX_VEX_E4
) },
6581 { PREFIX_TABLE (PREFIX_VEX_E5
) },
6582 { PREFIX_TABLE (PREFIX_VEX_E6
) },
6583 { PREFIX_TABLE (PREFIX_VEX_E7
) },
6585 { PREFIX_TABLE (PREFIX_VEX_E8
) },
6586 { PREFIX_TABLE (PREFIX_VEX_E9
) },
6587 { PREFIX_TABLE (PREFIX_VEX_EA
) },
6588 { PREFIX_TABLE (PREFIX_VEX_EB
) },
6589 { PREFIX_TABLE (PREFIX_VEX_EC
) },
6590 { PREFIX_TABLE (PREFIX_VEX_ED
) },
6591 { PREFIX_TABLE (PREFIX_VEX_EE
) },
6592 { PREFIX_TABLE (PREFIX_VEX_EF
) },
6594 { PREFIX_TABLE (PREFIX_VEX_F0
) },
6595 { PREFIX_TABLE (PREFIX_VEX_F1
) },
6596 { PREFIX_TABLE (PREFIX_VEX_F2
) },
6597 { PREFIX_TABLE (PREFIX_VEX_F3
) },
6598 { PREFIX_TABLE (PREFIX_VEX_F4
) },
6599 { PREFIX_TABLE (PREFIX_VEX_F5
) },
6600 { PREFIX_TABLE (PREFIX_VEX_F6
) },
6601 { PREFIX_TABLE (PREFIX_VEX_F7
) },
6603 { PREFIX_TABLE (PREFIX_VEX_F8
) },
6604 { PREFIX_TABLE (PREFIX_VEX_F9
) },
6605 { PREFIX_TABLE (PREFIX_VEX_FA
) },
6606 { PREFIX_TABLE (PREFIX_VEX_FB
) },
6607 { PREFIX_TABLE (PREFIX_VEX_FC
) },
6608 { PREFIX_TABLE (PREFIX_VEX_FD
) },
6609 { PREFIX_TABLE (PREFIX_VEX_FE
) },
6610 { "(bad)", { XX
} },
6615 { PREFIX_TABLE (PREFIX_VEX_3800
) },
6616 { PREFIX_TABLE (PREFIX_VEX_3801
) },
6617 { PREFIX_TABLE (PREFIX_VEX_3802
) },
6618 { PREFIX_TABLE (PREFIX_VEX_3803
) },
6619 { PREFIX_TABLE (PREFIX_VEX_3804
) },
6620 { PREFIX_TABLE (PREFIX_VEX_3805
) },
6621 { PREFIX_TABLE (PREFIX_VEX_3806
) },
6622 { PREFIX_TABLE (PREFIX_VEX_3807
) },
6624 { PREFIX_TABLE (PREFIX_VEX_3808
) },
6625 { PREFIX_TABLE (PREFIX_VEX_3809
) },
6626 { PREFIX_TABLE (PREFIX_VEX_380A
) },
6627 { PREFIX_TABLE (PREFIX_VEX_380B
) },
6628 { PREFIX_TABLE (PREFIX_VEX_380C
) },
6629 { PREFIX_TABLE (PREFIX_VEX_380D
) },
6630 { PREFIX_TABLE (PREFIX_VEX_380E
) },
6631 { PREFIX_TABLE (PREFIX_VEX_380F
) },
6633 { "(bad)", { XX
} },
6634 { "(bad)", { XX
} },
6635 { "(bad)", { XX
} },
6636 { "(bad)", { XX
} },
6637 { "(bad)", { XX
} },
6638 { "(bad)", { XX
} },
6639 { "(bad)", { XX
} },
6640 { PREFIX_TABLE (PREFIX_VEX_3817
) },
6642 { PREFIX_TABLE (PREFIX_VEX_3818
) },
6643 { PREFIX_TABLE (PREFIX_VEX_3819
) },
6644 { PREFIX_TABLE (PREFIX_VEX_381A
) },
6645 { "(bad)", { XX
} },
6646 { PREFIX_TABLE (PREFIX_VEX_381C
) },
6647 { PREFIX_TABLE (PREFIX_VEX_381D
) },
6648 { PREFIX_TABLE (PREFIX_VEX_381E
) },
6649 { "(bad)", { XX
} },
6651 { PREFIX_TABLE (PREFIX_VEX_3820
) },
6652 { PREFIX_TABLE (PREFIX_VEX_3821
) },
6653 { PREFIX_TABLE (PREFIX_VEX_3822
) },
6654 { PREFIX_TABLE (PREFIX_VEX_3823
) },
6655 { PREFIX_TABLE (PREFIX_VEX_3824
) },
6656 { PREFIX_TABLE (PREFIX_VEX_3825
) },
6657 { "(bad)", { XX
} },
6658 { "(bad)", { XX
} },
6660 { PREFIX_TABLE (PREFIX_VEX_3828
) },
6661 { PREFIX_TABLE (PREFIX_VEX_3829
) },
6662 { PREFIX_TABLE (PREFIX_VEX_382A
) },
6663 { PREFIX_TABLE (PREFIX_VEX_382B
) },
6664 { PREFIX_TABLE (PREFIX_VEX_382C
) },
6665 { PREFIX_TABLE (PREFIX_VEX_382D
) },
6666 { PREFIX_TABLE (PREFIX_VEX_382E
) },
6667 { PREFIX_TABLE (PREFIX_VEX_382F
) },
6669 { PREFIX_TABLE (PREFIX_VEX_3830
) },
6670 { PREFIX_TABLE (PREFIX_VEX_3831
) },
6671 { PREFIX_TABLE (PREFIX_VEX_3832
) },
6672 { PREFIX_TABLE (PREFIX_VEX_3833
) },
6673 { PREFIX_TABLE (PREFIX_VEX_3834
) },
6674 { PREFIX_TABLE (PREFIX_VEX_3835
) },
6675 { "(bad)", { XX
} },
6676 { PREFIX_TABLE (PREFIX_VEX_3837
) },
6678 { PREFIX_TABLE (PREFIX_VEX_3838
) },
6679 { PREFIX_TABLE (PREFIX_VEX_3839
) },
6680 { PREFIX_TABLE (PREFIX_VEX_383A
) },
6681 { PREFIX_TABLE (PREFIX_VEX_383B
) },
6682 { PREFIX_TABLE (PREFIX_VEX_383C
) },
6683 { PREFIX_TABLE (PREFIX_VEX_383D
) },
6684 { PREFIX_TABLE (PREFIX_VEX_383E
) },
6685 { PREFIX_TABLE (PREFIX_VEX_383F
) },
6687 { PREFIX_TABLE (PREFIX_VEX_3840
) },
6688 { PREFIX_TABLE (PREFIX_VEX_3841
) },
6689 { "(bad)", { XX
} },
6690 { "(bad)", { XX
} },
6691 { "(bad)", { XX
} },
6692 { "(bad)", { XX
} },
6693 { "(bad)", { XX
} },
6694 { "(bad)", { XX
} },
6696 { "(bad)", { XX
} },
6697 { "(bad)", { XX
} },
6698 { "(bad)", { XX
} },
6699 { "(bad)", { XX
} },
6700 { "(bad)", { XX
} },
6701 { "(bad)", { XX
} },
6702 { "(bad)", { XX
} },
6703 { "(bad)", { XX
} },
6705 { "(bad)", { XX
} },
6706 { "(bad)", { XX
} },
6707 { "(bad)", { XX
} },
6708 { "(bad)", { XX
} },
6709 { "(bad)", { XX
} },
6710 { "(bad)", { XX
} },
6711 { "(bad)", { XX
} },
6712 { "(bad)", { XX
} },
6714 { "(bad)", { XX
} },
6715 { "(bad)", { XX
} },
6716 { "(bad)", { XX
} },
6717 { "(bad)", { XX
} },
6718 { "(bad)", { XX
} },
6719 { "(bad)", { XX
} },
6720 { "(bad)", { XX
} },
6721 { "(bad)", { XX
} },
6723 { "(bad)", { XX
} },
6724 { "(bad)", { XX
} },
6725 { "(bad)", { XX
} },
6726 { "(bad)", { XX
} },
6727 { "(bad)", { XX
} },
6728 { "(bad)", { XX
} },
6729 { "(bad)", { XX
} },
6730 { "(bad)", { XX
} },
6732 { "(bad)", { XX
} },
6733 { "(bad)", { XX
} },
6734 { "(bad)", { XX
} },
6735 { "(bad)", { XX
} },
6736 { "(bad)", { XX
} },
6737 { "(bad)", { XX
} },
6738 { "(bad)", { XX
} },
6739 { "(bad)", { XX
} },
6741 { "(bad)", { XX
} },
6742 { "(bad)", { XX
} },
6743 { "(bad)", { XX
} },
6744 { "(bad)", { XX
} },
6745 { "(bad)", { XX
} },
6746 { "(bad)", { XX
} },
6747 { "(bad)", { XX
} },
6748 { "(bad)", { XX
} },
6750 { "(bad)", { XX
} },
6751 { "(bad)", { XX
} },
6752 { "(bad)", { XX
} },
6753 { "(bad)", { XX
} },
6754 { "(bad)", { XX
} },
6755 { "(bad)", { XX
} },
6756 { "(bad)", { XX
} },
6757 { "(bad)", { XX
} },
6759 { "(bad)", { XX
} },
6760 { "(bad)", { XX
} },
6761 { "(bad)", { XX
} },
6762 { "(bad)", { XX
} },
6763 { "(bad)", { XX
} },
6764 { "(bad)", { XX
} },
6765 { "(bad)", { XX
} },
6766 { "(bad)", { XX
} },
6768 { "(bad)", { XX
} },
6769 { "(bad)", { XX
} },
6770 { "(bad)", { XX
} },
6771 { "(bad)", { XX
} },
6772 { "(bad)", { XX
} },
6773 { "(bad)", { XX
} },
6774 { "(bad)", { XX
} },
6775 { "(bad)", { XX
} },
6777 { "(bad)", { XX
} },
6778 { "(bad)", { XX
} },
6779 { "(bad)", { XX
} },
6780 { "(bad)", { XX
} },
6781 { "(bad)", { XX
} },
6782 { "(bad)", { XX
} },
6783 { PREFIX_TABLE (PREFIX_VEX_3896
) },
6784 { PREFIX_TABLE (PREFIX_VEX_3897
) },
6786 { PREFIX_TABLE (PREFIX_VEX_3898
) },
6787 { PREFIX_TABLE (PREFIX_VEX_3899
) },
6788 { PREFIX_TABLE (PREFIX_VEX_389A
) },
6789 { PREFIX_TABLE (PREFIX_VEX_389B
) },
6790 { PREFIX_TABLE (PREFIX_VEX_389C
) },
6791 { PREFIX_TABLE (PREFIX_VEX_389D
) },
6792 { PREFIX_TABLE (PREFIX_VEX_389E
) },
6793 { PREFIX_TABLE (PREFIX_VEX_389F
) },
6795 { "(bad)", { XX
} },
6796 { "(bad)", { XX
} },
6797 { "(bad)", { XX
} },
6798 { "(bad)", { XX
} },
6799 { "(bad)", { XX
} },
6800 { "(bad)", { XX
} },
6801 { PREFIX_TABLE (PREFIX_VEX_38A6
) },
6802 { PREFIX_TABLE (PREFIX_VEX_38A7
) },
6804 { PREFIX_TABLE (PREFIX_VEX_38A8
) },
6805 { PREFIX_TABLE (PREFIX_VEX_38A9
) },
6806 { PREFIX_TABLE (PREFIX_VEX_38AA
) },
6807 { PREFIX_TABLE (PREFIX_VEX_38AB
) },
6808 { PREFIX_TABLE (PREFIX_VEX_38AC
) },
6809 { PREFIX_TABLE (PREFIX_VEX_38AD
) },
6810 { PREFIX_TABLE (PREFIX_VEX_38AE
) },
6811 { PREFIX_TABLE (PREFIX_VEX_38AF
) },
6813 { "(bad)", { XX
} },
6814 { "(bad)", { XX
} },
6815 { "(bad)", { XX
} },
6816 { "(bad)", { XX
} },
6817 { "(bad)", { XX
} },
6818 { "(bad)", { XX
} },
6819 { PREFIX_TABLE (PREFIX_VEX_38B6
) },
6820 { PREFIX_TABLE (PREFIX_VEX_38B7
) },
6822 { PREFIX_TABLE (PREFIX_VEX_38B8
) },
6823 { PREFIX_TABLE (PREFIX_VEX_38B9
) },
6824 { PREFIX_TABLE (PREFIX_VEX_38BA
) },
6825 { PREFIX_TABLE (PREFIX_VEX_38BB
) },
6826 { PREFIX_TABLE (PREFIX_VEX_38BC
) },
6827 { PREFIX_TABLE (PREFIX_VEX_38BD
) },
6828 { PREFIX_TABLE (PREFIX_VEX_38BE
) },
6829 { PREFIX_TABLE (PREFIX_VEX_38BF
) },
6831 { "(bad)", { XX
} },
6832 { "(bad)", { XX
} },
6833 { "(bad)", { XX
} },
6834 { "(bad)", { XX
} },
6835 { "(bad)", { XX
} },
6836 { "(bad)", { XX
} },
6837 { "(bad)", { XX
} },
6838 { "(bad)", { XX
} },
6840 { "(bad)", { XX
} },
6841 { "(bad)", { XX
} },
6842 { "(bad)", { XX
} },
6843 { "(bad)", { XX
} },
6844 { "(bad)", { XX
} },
6845 { "(bad)", { XX
} },
6846 { "(bad)", { XX
} },
6847 { "(bad)", { XX
} },
6849 { "(bad)", { XX
} },
6850 { "(bad)", { XX
} },
6851 { "(bad)", { XX
} },
6852 { "(bad)", { XX
} },
6853 { "(bad)", { XX
} },
6854 { "(bad)", { XX
} },
6855 { "(bad)", { XX
} },
6856 { "(bad)", { XX
} },
6858 { "(bad)", { XX
} },
6859 { "(bad)", { XX
} },
6860 { "(bad)", { XX
} },
6861 { PREFIX_TABLE (PREFIX_VEX_38DB
) },
6862 { PREFIX_TABLE (PREFIX_VEX_38DC
) },
6863 { PREFIX_TABLE (PREFIX_VEX_38DD
) },
6864 { PREFIX_TABLE (PREFIX_VEX_38DE
) },
6865 { PREFIX_TABLE (PREFIX_VEX_38DF
) },
6867 { "(bad)", { XX
} },
6868 { "(bad)", { XX
} },
6869 { "(bad)", { XX
} },
6870 { "(bad)", { XX
} },
6871 { "(bad)", { XX
} },
6872 { "(bad)", { XX
} },
6873 { "(bad)", { XX
} },
6874 { "(bad)", { XX
} },
6876 { "(bad)", { XX
} },
6877 { "(bad)", { XX
} },
6878 { "(bad)", { XX
} },
6879 { "(bad)", { XX
} },
6880 { "(bad)", { XX
} },
6881 { "(bad)", { XX
} },
6882 { "(bad)", { XX
} },
6883 { "(bad)", { XX
} },
6885 { "(bad)", { XX
} },
6886 { "(bad)", { XX
} },
6887 { "(bad)", { XX
} },
6888 { "(bad)", { XX
} },
6889 { "(bad)", { XX
} },
6890 { "(bad)", { XX
} },
6891 { "(bad)", { XX
} },
6892 { "(bad)", { XX
} },
6894 { "(bad)", { XX
} },
6895 { "(bad)", { XX
} },
6896 { "(bad)", { XX
} },
6897 { "(bad)", { XX
} },
6898 { "(bad)", { XX
} },
6899 { "(bad)", { XX
} },
6900 { "(bad)", { XX
} },
6901 { "(bad)", { XX
} },
6906 { "(bad)", { XX
} },
6907 { "(bad)", { XX
} },
6908 { "(bad)", { XX
} },
6909 { "(bad)", { XX
} },
6910 { PREFIX_TABLE (PREFIX_VEX_3A04
) },
6911 { PREFIX_TABLE (PREFIX_VEX_3A05
) },
6912 { PREFIX_TABLE (PREFIX_VEX_3A06
) },
6913 { "(bad)", { XX
} },
6915 { PREFIX_TABLE (PREFIX_VEX_3A08
) },
6916 { PREFIX_TABLE (PREFIX_VEX_3A09
) },
6917 { PREFIX_TABLE (PREFIX_VEX_3A0A
) },
6918 { PREFIX_TABLE (PREFIX_VEX_3A0B
) },
6919 { PREFIX_TABLE (PREFIX_VEX_3A0C
) },
6920 { PREFIX_TABLE (PREFIX_VEX_3A0D
) },
6921 { PREFIX_TABLE (PREFIX_VEX_3A0E
) },
6922 { PREFIX_TABLE (PREFIX_VEX_3A0F
) },
6924 { "(bad)", { XX
} },
6925 { "(bad)", { XX
} },
6926 { "(bad)", { XX
} },
6927 { "(bad)", { XX
} },
6928 { PREFIX_TABLE (PREFIX_VEX_3A14
) },
6929 { PREFIX_TABLE (PREFIX_VEX_3A15
) },
6930 { PREFIX_TABLE (PREFIX_VEX_3A16
) },
6931 { PREFIX_TABLE (PREFIX_VEX_3A17
) },
6933 { PREFIX_TABLE (PREFIX_VEX_3A18
) },
6934 { PREFIX_TABLE (PREFIX_VEX_3A19
) },
6935 { "(bad)", { XX
} },
6936 { "(bad)", { XX
} },
6937 { "(bad)", { XX
} },
6938 { "(bad)", { XX
} },
6939 { "(bad)", { XX
} },
6940 { "(bad)", { XX
} },
6942 { PREFIX_TABLE (PREFIX_VEX_3A20
) },
6943 { PREFIX_TABLE (PREFIX_VEX_3A21
) },
6944 { PREFIX_TABLE (PREFIX_VEX_3A22
) },
6945 { "(bad)", { XX
} },
6946 { "(bad)", { XX
} },
6947 { "(bad)", { XX
} },
6948 { "(bad)", { XX
} },
6949 { "(bad)", { XX
} },
6951 { "(bad)", { XX
} },
6952 { "(bad)", { XX
} },
6953 { "(bad)", { XX
} },
6954 { "(bad)", { XX
} },
6955 { "(bad)", { XX
} },
6956 { "(bad)", { XX
} },
6957 { "(bad)", { XX
} },
6958 { "(bad)", { XX
} },
6960 { "(bad)", { XX
} },
6961 { "(bad)", { XX
} },
6962 { "(bad)", { XX
} },
6963 { "(bad)", { XX
} },
6964 { "(bad)", { XX
} },
6965 { "(bad)", { XX
} },
6966 { "(bad)", { XX
} },
6967 { "(bad)", { XX
} },
6969 { "(bad)", { XX
} },
6970 { "(bad)", { XX
} },
6971 { "(bad)", { XX
} },
6972 { "(bad)", { XX
} },
6973 { "(bad)", { XX
} },
6974 { "(bad)", { XX
} },
6975 { "(bad)", { XX
} },
6976 { "(bad)", { XX
} },
6978 { PREFIX_TABLE (PREFIX_VEX_3A40
) },
6979 { PREFIX_TABLE (PREFIX_VEX_3A41
) },
6980 { PREFIX_TABLE (PREFIX_VEX_3A42
) },
6981 { "(bad)", { XX
} },
6982 { PREFIX_TABLE (PREFIX_VEX_3A44
) },
6983 { "(bad)", { XX
} },
6984 { "(bad)", { XX
} },
6985 { "(bad)", { XX
} },
6987 { "(bad)", { XX
} },
6988 { "(bad)", { XX
} },
6989 { PREFIX_TABLE (PREFIX_VEX_3A4A
) },
6990 { PREFIX_TABLE (PREFIX_VEX_3A4B
) },
6991 { PREFIX_TABLE (PREFIX_VEX_3A4C
) },
6992 { "(bad)", { XX
} },
6993 { "(bad)", { XX
} },
6994 { "(bad)", { XX
} },
6996 { "(bad)", { XX
} },
6997 { "(bad)", { XX
} },
6998 { "(bad)", { XX
} },
6999 { "(bad)", { XX
} },
7000 { "(bad)", { XX
} },
7001 { "(bad)", { XX
} },
7002 { "(bad)", { XX
} },
7003 { "(bad)", { XX
} },
7005 { "(bad)", { XX
} },
7006 { "(bad)", { XX
} },
7007 { "(bad)", { XX
} },
7008 { "(bad)", { XX
} },
7009 { PREFIX_TABLE (PREFIX_VEX_3A5C
) },
7010 { PREFIX_TABLE (PREFIX_VEX_3A5D
) },
7011 { PREFIX_TABLE (PREFIX_VEX_3A5E
) },
7012 { PREFIX_TABLE (PREFIX_VEX_3A5F
) },
7014 { PREFIX_TABLE (PREFIX_VEX_3A60
) },
7015 { PREFIX_TABLE (PREFIX_VEX_3A61
) },
7016 { PREFIX_TABLE (PREFIX_VEX_3A62
) },
7017 { PREFIX_TABLE (PREFIX_VEX_3A63
) },
7018 { "(bad)", { XX
} },
7019 { "(bad)", { XX
} },
7020 { "(bad)", { XX
} },
7021 { "(bad)", { XX
} },
7023 { PREFIX_TABLE (PREFIX_VEX_3A68
) },
7024 { PREFIX_TABLE (PREFIX_VEX_3A69
) },
7025 { PREFIX_TABLE (PREFIX_VEX_3A6A
) },
7026 { PREFIX_TABLE (PREFIX_VEX_3A6B
) },
7027 { PREFIX_TABLE (PREFIX_VEX_3A6C
) },
7028 { PREFIX_TABLE (PREFIX_VEX_3A6D
) },
7029 { PREFIX_TABLE (PREFIX_VEX_3A6E
) },
7030 { PREFIX_TABLE (PREFIX_VEX_3A6F
) },
7032 { "(bad)", { XX
} },
7033 { "(bad)", { XX
} },
7034 { "(bad)", { XX
} },
7035 { "(bad)", { XX
} },
7036 { "(bad)", { XX
} },
7037 { "(bad)", { XX
} },
7038 { "(bad)", { XX
} },
7039 { "(bad)", { XX
} },
7041 { PREFIX_TABLE (PREFIX_VEX_3A78
) },
7042 { PREFIX_TABLE (PREFIX_VEX_3A79
) },
7043 { PREFIX_TABLE (PREFIX_VEX_3A7A
) },
7044 { PREFIX_TABLE (PREFIX_VEX_3A7B
) },
7045 { PREFIX_TABLE (PREFIX_VEX_3A7C
) },
7046 { PREFIX_TABLE (PREFIX_VEX_3A7D
) },
7047 { PREFIX_TABLE (PREFIX_VEX_3A7E
) },
7048 { PREFIX_TABLE (PREFIX_VEX_3A7F
) },
7050 { "(bad)", { XX
} },
7051 { "(bad)", { XX
} },
7052 { "(bad)", { XX
} },
7053 { "(bad)", { XX
} },
7054 { "(bad)", { XX
} },
7055 { "(bad)", { XX
} },
7056 { "(bad)", { XX
} },
7057 { "(bad)", { XX
} },
7059 { "(bad)", { XX
} },
7060 { "(bad)", { XX
} },
7061 { "(bad)", { XX
} },
7062 { "(bad)", { XX
} },
7063 { "(bad)", { XX
} },
7064 { "(bad)", { XX
} },
7065 { "(bad)", { XX
} },
7066 { "(bad)", { XX
} },
7068 { "(bad)", { XX
} },
7069 { "(bad)", { XX
} },
7070 { "(bad)", { XX
} },
7071 { "(bad)", { XX
} },
7072 { "(bad)", { XX
} },
7073 { "(bad)", { XX
} },
7074 { "(bad)", { XX
} },
7075 { "(bad)", { XX
} },
7077 { "(bad)", { XX
} },
7078 { "(bad)", { XX
} },
7079 { "(bad)", { XX
} },
7080 { "(bad)", { XX
} },
7081 { "(bad)", { XX
} },
7082 { "(bad)", { XX
} },
7083 { "(bad)", { XX
} },
7084 { "(bad)", { XX
} },
7086 { "(bad)", { XX
} },
7087 { "(bad)", { XX
} },
7088 { "(bad)", { XX
} },
7089 { "(bad)", { XX
} },
7090 { "(bad)", { XX
} },
7091 { "(bad)", { XX
} },
7092 { "(bad)", { XX
} },
7093 { "(bad)", { XX
} },
7095 { "(bad)", { XX
} },
7096 { "(bad)", { XX
} },
7097 { "(bad)", { XX
} },
7098 { "(bad)", { XX
} },
7099 { "(bad)", { XX
} },
7100 { "(bad)", { XX
} },
7101 { "(bad)", { XX
} },
7102 { "(bad)", { XX
} },
7104 { "(bad)", { XX
} },
7105 { "(bad)", { XX
} },
7106 { "(bad)", { XX
} },
7107 { "(bad)", { XX
} },
7108 { "(bad)", { XX
} },
7109 { "(bad)", { XX
} },
7110 { "(bad)", { XX
} },
7111 { "(bad)", { XX
} },
7113 { "(bad)", { XX
} },
7114 { "(bad)", { XX
} },
7115 { "(bad)", { XX
} },
7116 { "(bad)", { XX
} },
7117 { "(bad)", { XX
} },
7118 { "(bad)", { XX
} },
7119 { "(bad)", { XX
} },
7120 { "(bad)", { XX
} },
7122 { "(bad)", { XX
} },
7123 { "(bad)", { XX
} },
7124 { "(bad)", { XX
} },
7125 { "(bad)", { XX
} },
7126 { "(bad)", { XX
} },
7127 { "(bad)", { XX
} },
7128 { "(bad)", { XX
} },
7129 { "(bad)", { XX
} },
7131 { "(bad)", { XX
} },
7132 { "(bad)", { XX
} },
7133 { "(bad)", { XX
} },
7134 { "(bad)", { XX
} },
7135 { "(bad)", { XX
} },
7136 { "(bad)", { XX
} },
7137 { "(bad)", { XX
} },
7138 { "(bad)", { XX
} },
7140 { "(bad)", { XX
} },
7141 { "(bad)", { XX
} },
7142 { "(bad)", { XX
} },
7143 { "(bad)", { XX
} },
7144 { "(bad)", { XX
} },
7145 { "(bad)", { XX
} },
7146 { "(bad)", { XX
} },
7147 { "(bad)", { XX
} },
7149 { "(bad)", { XX
} },
7150 { "(bad)", { XX
} },
7151 { "(bad)", { XX
} },
7152 { "(bad)", { XX
} },
7153 { "(bad)", { XX
} },
7154 { "(bad)", { XX
} },
7155 { "(bad)", { XX
} },
7156 { PREFIX_TABLE (PREFIX_VEX_3ADF
) },
7158 { "(bad)", { XX
} },
7159 { "(bad)", { XX
} },
7160 { "(bad)", { XX
} },
7161 { "(bad)", { XX
} },
7162 { "(bad)", { XX
} },
7163 { "(bad)", { XX
} },
7164 { "(bad)", { XX
} },
7165 { "(bad)", { XX
} },
7167 { "(bad)", { XX
} },
7168 { "(bad)", { XX
} },
7169 { "(bad)", { XX
} },
7170 { "(bad)", { XX
} },
7171 { "(bad)", { XX
} },
7172 { "(bad)", { XX
} },
7173 { "(bad)", { XX
} },
7174 { "(bad)", { XX
} },
7176 { "(bad)", { XX
} },
7177 { "(bad)", { XX
} },
7178 { "(bad)", { XX
} },
7179 { "(bad)", { XX
} },
7180 { "(bad)", { XX
} },
7181 { "(bad)", { XX
} },
7182 { "(bad)", { XX
} },
7183 { "(bad)", { XX
} },
7185 { "(bad)", { XX
} },
7186 { "(bad)", { XX
} },
7187 { "(bad)", { XX
} },
7188 { "(bad)", { XX
} },
7189 { "(bad)", { XX
} },
7190 { "(bad)", { XX
} },
7191 { "(bad)", { XX
} },
7192 { "(bad)", { XX
} },
7196 static const struct dis386 vex_len_table
[][2] = {
7197 /* VEX_LEN_10_P_1 */
7199 { "vmovss", { XMVex
, Vex128
, EXd
} },
7200 { "(bad)", { XX
} },
7203 /* VEX_LEN_10_P_3 */
7205 { "vmovsd", { XMVex
, Vex128
, EXq
} },
7206 { "(bad)", { XX
} },
7209 /* VEX_LEN_11_P_1 */
7211 { "vmovss", { EXdVexS
, Vex128
, XM
} },
7212 { "(bad)", { XX
} },
7215 /* VEX_LEN_11_P_3 */
7217 { "vmovsd", { EXqVexS
, Vex128
, XM
} },
7218 { "(bad)", { XX
} },
7221 /* VEX_LEN_12_P_0_M_0 */
7223 { "vmovlps", { XM
, Vex128
, EXq
} },
7224 { "(bad)", { XX
} },
7227 /* VEX_LEN_12_P_0_M_1 */
7229 { "vmovhlps", { XM
, Vex128
, EXq
} },
7230 { "(bad)", { XX
} },
7233 /* VEX_LEN_12_P_2 */
7235 { "vmovlpd", { XM
, Vex128
, EXq
} },
7236 { "(bad)", { XX
} },
7239 /* VEX_LEN_13_M_0 */
7241 { "vmovlpX", { EXq
, XM
} },
7242 { "(bad)", { XX
} },
7245 /* VEX_LEN_16_P_0_M_0 */
7247 { "vmovhps", { XM
, Vex128
, EXq
} },
7248 { "(bad)", { XX
} },
7251 /* VEX_LEN_16_P_0_M_1 */
7253 { "vmovlhps", { XM
, Vex128
, EXq
} },
7254 { "(bad)", { XX
} },
7257 /* VEX_LEN_16_P_2 */
7259 { "vmovhpd", { XM
, Vex128
, EXq
} },
7260 { "(bad)", { XX
} },
7263 /* VEX_LEN_17_M_0 */
7265 { "vmovhpX", { EXq
, XM
} },
7266 { "(bad)", { XX
} },
7269 /* VEX_LEN_2A_P_1 */
7271 { "vcvtsi2ss%LQ", { XM
, Vex128
, Ev
} },
7272 { "(bad)", { XX
} },
7275 /* VEX_LEN_2A_P_3 */
7277 { "vcvtsi2sd%LQ", { XM
, Vex128
, Ev
} },
7278 { "(bad)", { XX
} },
7281 /* VEX_LEN_2C_P_1 */
7283 { "vcvttss2siY", { Gv
, EXd
} },
7284 { "(bad)", { XX
} },
7287 /* VEX_LEN_2C_P_3 */
7289 { "vcvttsd2siY", { Gv
, EXq
} },
7290 { "(bad)", { XX
} },
7293 /* VEX_LEN_2D_P_1 */
7295 { "vcvtss2siY", { Gv
, EXd
} },
7296 { "(bad)", { XX
} },
7299 /* VEX_LEN_2D_P_3 */
7301 { "vcvtsd2siY", { Gv
, EXq
} },
7302 { "(bad)", { XX
} },
7305 /* VEX_LEN_2E_P_0 */
7307 { "vucomiss", { XM
, EXd
} },
7308 { "(bad)", { XX
} },
7311 /* VEX_LEN_2E_P_2 */
7313 { "vucomisd", { XM
, EXq
} },
7314 { "(bad)", { XX
} },
7317 /* VEX_LEN_2F_P_0 */
7319 { "vcomiss", { XM
, EXd
} },
7320 { "(bad)", { XX
} },
7323 /* VEX_LEN_2F_P_2 */
7325 { "vcomisd", { XM
, EXq
} },
7326 { "(bad)", { XX
} },
7329 /* VEX_LEN_51_P_1 */
7331 { "vsqrtss", { XM
, Vex128
, EXd
} },
7332 { "(bad)", { XX
} },
7335 /* VEX_LEN_51_P_3 */
7337 { "vsqrtsd", { XM
, Vex128
, EXq
} },
7338 { "(bad)", { XX
} },
7341 /* VEX_LEN_52_P_1 */
7343 { "vrsqrtss", { XM
, Vex128
, EXd
} },
7344 { "(bad)", { XX
} },
7347 /* VEX_LEN_53_P_1 */
7349 { "vrcpss", { XM
, Vex128
, EXd
} },
7350 { "(bad)", { XX
} },
7353 /* VEX_LEN_58_P_1 */
7355 { "vaddss", { XM
, Vex128
, EXd
} },
7356 { "(bad)", { XX
} },
7359 /* VEX_LEN_58_P_3 */
7361 { "vaddsd", { XM
, Vex128
, EXq
} },
7362 { "(bad)", { XX
} },
7365 /* VEX_LEN_59_P_1 */
7367 { "vmulss", { XM
, Vex128
, EXd
} },
7368 { "(bad)", { XX
} },
7371 /* VEX_LEN_59_P_3 */
7373 { "vmulsd", { XM
, Vex128
, EXq
} },
7374 { "(bad)", { XX
} },
7377 /* VEX_LEN_5A_P_1 */
7379 { "vcvtss2sd", { XM
, Vex128
, EXd
} },
7380 { "(bad)", { XX
} },
7383 /* VEX_LEN_5A_P_3 */
7385 { "vcvtsd2ss", { XM
, Vex128
, EXq
} },
7386 { "(bad)", { XX
} },
7389 /* VEX_LEN_5C_P_1 */
7391 { "vsubss", { XM
, Vex128
, EXd
} },
7392 { "(bad)", { XX
} },
7395 /* VEX_LEN_5C_P_3 */
7397 { "vsubsd", { XM
, Vex128
, EXq
} },
7398 { "(bad)", { XX
} },
7401 /* VEX_LEN_5D_P_1 */
7403 { "vminss", { XM
, Vex128
, EXd
} },
7404 { "(bad)", { XX
} },
7407 /* VEX_LEN_5D_P_3 */
7409 { "vminsd", { XM
, Vex128
, EXq
} },
7410 { "(bad)", { XX
} },
7413 /* VEX_LEN_5E_P_1 */
7415 { "vdivss", { XM
, Vex128
, EXd
} },
7416 { "(bad)", { XX
} },
7419 /* VEX_LEN_5E_P_3 */
7421 { "vdivsd", { XM
, Vex128
, EXq
} },
7422 { "(bad)", { XX
} },
7425 /* VEX_LEN_5F_P_1 */
7427 { "vmaxss", { XM
, Vex128
, EXd
} },
7428 { "(bad)", { XX
} },
7431 /* VEX_LEN_5F_P_3 */
7433 { "vmaxsd", { XM
, Vex128
, EXq
} },
7434 { "(bad)", { XX
} },
7437 /* VEX_LEN_60_P_2 */
7439 { "vpunpcklbw", { XM
, Vex128
, EXx
} },
7440 { "(bad)", { XX
} },
7443 /* VEX_LEN_61_P_2 */
7445 { "vpunpcklwd", { XM
, Vex128
, EXx
} },
7446 { "(bad)", { XX
} },
7449 /* VEX_LEN_62_P_2 */
7451 { "vpunpckldq", { XM
, Vex128
, EXx
} },
7452 { "(bad)", { XX
} },
7455 /* VEX_LEN_63_P_2 */
7457 { "vpacksswb", { XM
, Vex128
, EXx
} },
7458 { "(bad)", { XX
} },
7461 /* VEX_LEN_64_P_2 */
7463 { "vpcmpgtb", { XM
, Vex128
, EXx
} },
7464 { "(bad)", { XX
} },
7467 /* VEX_LEN_65_P_2 */
7469 { "vpcmpgtw", { XM
, Vex128
, EXx
} },
7470 { "(bad)", { XX
} },
7473 /* VEX_LEN_66_P_2 */
7475 { "vpcmpgtd", { XM
, Vex128
, EXx
} },
7476 { "(bad)", { XX
} },
7479 /* VEX_LEN_67_P_2 */
7481 { "vpackuswb", { XM
, Vex128
, EXx
} },
7482 { "(bad)", { XX
} },
7485 /* VEX_LEN_68_P_2 */
7487 { "vpunpckhbw", { XM
, Vex128
, EXx
} },
7488 { "(bad)", { XX
} },
7491 /* VEX_LEN_69_P_2 */
7493 { "vpunpckhwd", { XM
, Vex128
, EXx
} },
7494 { "(bad)", { XX
} },
7497 /* VEX_LEN_6A_P_2 */
7499 { "vpunpckhdq", { XM
, Vex128
, EXx
} },
7500 { "(bad)", { XX
} },
7503 /* VEX_LEN_6B_P_2 */
7505 { "vpackssdw", { XM
, Vex128
, EXx
} },
7506 { "(bad)", { XX
} },
7509 /* VEX_LEN_6C_P_2 */
7511 { "vpunpcklqdq", { XM
, Vex128
, EXx
} },
7512 { "(bad)", { XX
} },
7515 /* VEX_LEN_6D_P_2 */
7517 { "vpunpckhqdq", { XM
, Vex128
, EXx
} },
7518 { "(bad)", { XX
} },
7521 /* VEX_LEN_6E_P_2 */
7523 { "vmovK", { XM
, Edq
} },
7524 { "(bad)", { XX
} },
7527 /* VEX_LEN_70_P_1 */
7529 { "vpshufhw", { XM
, EXx
, Ib
} },
7530 { "(bad)", { XX
} },
7533 /* VEX_LEN_70_P_2 */
7535 { "vpshufd", { XM
, EXx
, Ib
} },
7536 { "(bad)", { XX
} },
7539 /* VEX_LEN_70_P_3 */
7541 { "vpshuflw", { XM
, EXx
, Ib
} },
7542 { "(bad)", { XX
} },
7545 /* VEX_LEN_71_R_2_P_2 */
7547 { "vpsrlw", { Vex128
, XS
, Ib
} },
7548 { "(bad)", { XX
} },
7551 /* VEX_LEN_71_R_4_P_2 */
7553 { "vpsraw", { Vex128
, XS
, Ib
} },
7554 { "(bad)", { XX
} },
7557 /* VEX_LEN_71_R_6_P_2 */
7559 { "vpsllw", { Vex128
, XS
, Ib
} },
7560 { "(bad)", { XX
} },
7563 /* VEX_LEN_72_R_2_P_2 */
7565 { "vpsrld", { Vex128
, XS
, Ib
} },
7566 { "(bad)", { XX
} },
7569 /* VEX_LEN_72_R_4_P_2 */
7571 { "vpsrad", { Vex128
, XS
, Ib
} },
7572 { "(bad)", { XX
} },
7575 /* VEX_LEN_72_R_6_P_2 */
7577 { "vpslld", { Vex128
, XS
, Ib
} },
7578 { "(bad)", { XX
} },
7581 /* VEX_LEN_73_R_2_P_2 */
7583 { "vpsrlq", { Vex128
, XS
, Ib
} },
7584 { "(bad)", { XX
} },
7587 /* VEX_LEN_73_R_3_P_2 */
7589 { "vpsrldq", { Vex128
, XS
, Ib
} },
7590 { "(bad)", { XX
} },
7593 /* VEX_LEN_73_R_6_P_2 */
7595 { "vpsllq", { Vex128
, XS
, Ib
} },
7596 { "(bad)", { XX
} },
7599 /* VEX_LEN_73_R_7_P_2 */
7601 { "vpslldq", { Vex128
, XS
, Ib
} },
7602 { "(bad)", { XX
} },
7605 /* VEX_LEN_74_P_2 */
7607 { "vpcmpeqb", { XM
, Vex128
, EXx
} },
7608 { "(bad)", { XX
} },
7611 /* VEX_LEN_75_P_2 */
7613 { "vpcmpeqw", { XM
, Vex128
, EXx
} },
7614 { "(bad)", { XX
} },
7617 /* VEX_LEN_76_P_2 */
7619 { "vpcmpeqd", { XM
, Vex128
, EXx
} },
7620 { "(bad)", { XX
} },
7623 /* VEX_LEN_7E_P_1 */
7625 { "vmovq", { XM
, EXq
} },
7626 { "(bad)", { XX
} },
7629 /* VEX_LEN_7E_P_2 */
7631 { "vmovK", { Edq
, XM
} },
7632 { "(bad)", { XX
} },
7635 /* VEX_LEN_AE_R_2_M_0 */
7637 { "vldmxcsr", { Md
} },
7638 { "(bad)", { XX
} },
7641 /* VEX_LEN_AE_R_3_M_0 */
7643 { "vstmxcsr", { Md
} },
7644 { "(bad)", { XX
} },
7647 /* VEX_LEN_C2_P_1 */
7649 { "vcmpss", { XM
, Vex128
, EXd
, VCMP
} },
7650 { "(bad)", { XX
} },
7653 /* VEX_LEN_C2_P_3 */
7655 { "vcmpsd", { XM
, Vex128
, EXq
, VCMP
} },
7656 { "(bad)", { XX
} },
7659 /* VEX_LEN_C4_P_2 */
7661 { "vpinsrw", { XM
, Vex128
, Edqw
, Ib
} },
7662 { "(bad)", { XX
} },
7665 /* VEX_LEN_C5_P_2 */
7667 { "vpextrw", { Gdq
, XS
, Ib
} },
7668 { "(bad)", { XX
} },
7671 /* VEX_LEN_D1_P_2 */
7673 { "vpsrlw", { XM
, Vex128
, EXx
} },
7674 { "(bad)", { XX
} },
7677 /* VEX_LEN_D2_P_2 */
7679 { "vpsrld", { XM
, Vex128
, EXx
} },
7680 { "(bad)", { XX
} },
7683 /* VEX_LEN_D3_P_2 */
7685 { "vpsrlq", { XM
, Vex128
, EXx
} },
7686 { "(bad)", { XX
} },
7689 /* VEX_LEN_D4_P_2 */
7691 { "vpaddq", { XM
, Vex128
, EXx
} },
7692 { "(bad)", { XX
} },
7695 /* VEX_LEN_D5_P_2 */
7697 { "vpmullw", { XM
, Vex128
, EXx
} },
7698 { "(bad)", { XX
} },
7701 /* VEX_LEN_D6_P_2 */
7703 { "vmovq", { EXqS
, XM
} },
7704 { "(bad)", { XX
} },
7707 /* VEX_LEN_D7_P_2_M_1 */
7709 { "vpmovmskb", { Gdq
, XS
} },
7710 { "(bad)", { XX
} },
7713 /* VEX_LEN_D8_P_2 */
7715 { "vpsubusb", { XM
, Vex128
, EXx
} },
7716 { "(bad)", { XX
} },
7719 /* VEX_LEN_D9_P_2 */
7721 { "vpsubusw", { XM
, Vex128
, EXx
} },
7722 { "(bad)", { XX
} },
7725 /* VEX_LEN_DA_P_2 */
7727 { "vpminub", { XM
, Vex128
, EXx
} },
7728 { "(bad)", { XX
} },
7731 /* VEX_LEN_DB_P_2 */
7733 { "vpand", { XM
, Vex128
, EXx
} },
7734 { "(bad)", { XX
} },
7737 /* VEX_LEN_DC_P_2 */
7739 { "vpaddusb", { XM
, Vex128
, EXx
} },
7740 { "(bad)", { XX
} },
7743 /* VEX_LEN_DD_P_2 */
7745 { "vpaddusw", { XM
, Vex128
, EXx
} },
7746 { "(bad)", { XX
} },
7749 /* VEX_LEN_DE_P_2 */
7751 { "vpmaxub", { XM
, Vex128
, EXx
} },
7752 { "(bad)", { XX
} },
7755 /* VEX_LEN_DF_P_2 */
7757 { "vpandn", { XM
, Vex128
, EXx
} },
7758 { "(bad)", { XX
} },
7761 /* VEX_LEN_E0_P_2 */
7763 { "vpavgb", { XM
, Vex128
, EXx
} },
7764 { "(bad)", { XX
} },
7767 /* VEX_LEN_E1_P_2 */
7769 { "vpsraw", { XM
, Vex128
, EXx
} },
7770 { "(bad)", { XX
} },
7773 /* VEX_LEN_E2_P_2 */
7775 { "vpsrad", { XM
, Vex128
, EXx
} },
7776 { "(bad)", { XX
} },
7779 /* VEX_LEN_E3_P_2 */
7781 { "vpavgw", { XM
, Vex128
, EXx
} },
7782 { "(bad)", { XX
} },
7785 /* VEX_LEN_E4_P_2 */
7787 { "vpmulhuw", { XM
, Vex128
, EXx
} },
7788 { "(bad)", { XX
} },
7791 /* VEX_LEN_E5_P_2 */
7793 { "vpmulhw", { XM
, Vex128
, EXx
} },
7794 { "(bad)", { XX
} },
7797 /* VEX_LEN_E8_P_2 */
7799 { "vpsubsb", { XM
, Vex128
, EXx
} },
7800 { "(bad)", { XX
} },
7803 /* VEX_LEN_E9_P_2 */
7805 { "vpsubsw", { XM
, Vex128
, EXx
} },
7806 { "(bad)", { XX
} },
7809 /* VEX_LEN_EA_P_2 */
7811 { "vpminsw", { XM
, Vex128
, EXx
} },
7812 { "(bad)", { XX
} },
7815 /* VEX_LEN_EB_P_2 */
7817 { "vpor", { XM
, Vex128
, EXx
} },
7818 { "(bad)", { XX
} },
7821 /* VEX_LEN_EC_P_2 */
7823 { "vpaddsb", { XM
, Vex128
, EXx
} },
7824 { "(bad)", { XX
} },
7827 /* VEX_LEN_ED_P_2 */
7829 { "vpaddsw", { XM
, Vex128
, EXx
} },
7830 { "(bad)", { XX
} },
7833 /* VEX_LEN_EE_P_2 */
7835 { "vpmaxsw", { XM
, Vex128
, EXx
} },
7836 { "(bad)", { XX
} },
7839 /* VEX_LEN_EF_P_2 */
7841 { "vpxor", { XM
, Vex128
, EXx
} },
7842 { "(bad)", { XX
} },
7845 /* VEX_LEN_F1_P_2 */
7847 { "vpsllw", { XM
, Vex128
, EXx
} },
7848 { "(bad)", { XX
} },
7851 /* VEX_LEN_F2_P_2 */
7853 { "vpslld", { XM
, Vex128
, EXx
} },
7854 { "(bad)", { XX
} },
7857 /* VEX_LEN_F3_P_2 */
7859 { "vpsllq", { XM
, Vex128
, EXx
} },
7860 { "(bad)", { XX
} },
7863 /* VEX_LEN_F4_P_2 */
7865 { "vpmuludq", { XM
, Vex128
, EXx
} },
7866 { "(bad)", { XX
} },
7869 /* VEX_LEN_F5_P_2 */
7871 { "vpmaddwd", { XM
, Vex128
, EXx
} },
7872 { "(bad)", { XX
} },
7875 /* VEX_LEN_F6_P_2 */
7877 { "vpsadbw", { XM
, Vex128
, EXx
} },
7878 { "(bad)", { XX
} },
7881 /* VEX_LEN_F7_P_2 */
7883 { "vmaskmovdqu", { XM
, XS
} },
7884 { "(bad)", { XX
} },
7887 /* VEX_LEN_F8_P_2 */
7889 { "vpsubb", { XM
, Vex128
, EXx
} },
7890 { "(bad)", { XX
} },
7893 /* VEX_LEN_F9_P_2 */
7895 { "vpsubw", { XM
, Vex128
, EXx
} },
7896 { "(bad)", { XX
} },
7899 /* VEX_LEN_FA_P_2 */
7901 { "vpsubd", { XM
, Vex128
, EXx
} },
7902 { "(bad)", { XX
} },
7905 /* VEX_LEN_FB_P_2 */
7907 { "vpsubq", { XM
, Vex128
, EXx
} },
7908 { "(bad)", { XX
} },
7911 /* VEX_LEN_FC_P_2 */
7913 { "vpaddb", { XM
, Vex128
, EXx
} },
7914 { "(bad)", { XX
} },
7917 /* VEX_LEN_FD_P_2 */
7919 { "vpaddw", { XM
, Vex128
, EXx
} },
7920 { "(bad)", { XX
} },
7923 /* VEX_LEN_FE_P_2 */
7925 { "vpaddd", { XM
, Vex128
, EXx
} },
7926 { "(bad)", { XX
} },
7929 /* VEX_LEN_3800_P_2 */
7931 { "vpshufb", { XM
, Vex128
, EXx
} },
7932 { "(bad)", { XX
} },
7935 /* VEX_LEN_3801_P_2 */
7937 { "vphaddw", { XM
, Vex128
, EXx
} },
7938 { "(bad)", { XX
} },
7941 /* VEX_LEN_3802_P_2 */
7943 { "vphaddd", { XM
, Vex128
, EXx
} },
7944 { "(bad)", { XX
} },
7947 /* VEX_LEN_3803_P_2 */
7949 { "vphaddsw", { XM
, Vex128
, EXx
} },
7950 { "(bad)", { XX
} },
7953 /* VEX_LEN_3804_P_2 */
7955 { "vpmaddubsw", { XM
, Vex128
, EXx
} },
7956 { "(bad)", { XX
} },
7959 /* VEX_LEN_3805_P_2 */
7961 { "vphsubw", { XM
, Vex128
, EXx
} },
7962 { "(bad)", { XX
} },
7965 /* VEX_LEN_3806_P_2 */
7967 { "vphsubd", { XM
, Vex128
, EXx
} },
7968 { "(bad)", { XX
} },
7971 /* VEX_LEN_3807_P_2 */
7973 { "vphsubsw", { XM
, Vex128
, EXx
} },
7974 { "(bad)", { XX
} },
7977 /* VEX_LEN_3808_P_2 */
7979 { "vpsignb", { XM
, Vex128
, EXx
} },
7980 { "(bad)", { XX
} },
7983 /* VEX_LEN_3809_P_2 */
7985 { "vpsignw", { XM
, Vex128
, EXx
} },
7986 { "(bad)", { XX
} },
7989 /* VEX_LEN_380A_P_2 */
7991 { "vpsignd", { XM
, Vex128
, EXx
} },
7992 { "(bad)", { XX
} },
7995 /* VEX_LEN_380B_P_2 */
7997 { "vpmulhrsw", { XM
, Vex128
, EXx
} },
7998 { "(bad)", { XX
} },
8001 /* VEX_LEN_3819_P_2_M_0 */
8003 { "(bad)", { XX
} },
8004 { "vbroadcastsd", { XM
, Mq
} },
8007 /* VEX_LEN_381A_P_2_M_0 */
8009 { "(bad)", { XX
} },
8010 { "vbroadcastf128", { XM
, Mxmm
} },
8013 /* VEX_LEN_381C_P_2 */
8015 { "vpabsb", { XM
, EXx
} },
8016 { "(bad)", { XX
} },
8019 /* VEX_LEN_381D_P_2 */
8021 { "vpabsw", { XM
, EXx
} },
8022 { "(bad)", { XX
} },
8025 /* VEX_LEN_381E_P_2 */
8027 { "vpabsd", { XM
, EXx
} },
8028 { "(bad)", { XX
} },
8031 /* VEX_LEN_3820_P_2 */
8033 { "vpmovsxbw", { XM
, EXq
} },
8034 { "(bad)", { XX
} },
8037 /* VEX_LEN_3821_P_2 */
8039 { "vpmovsxbd", { XM
, EXd
} },
8040 { "(bad)", { XX
} },
8043 /* VEX_LEN_3822_P_2 */
8045 { "vpmovsxbq", { XM
, EXw
} },
8046 { "(bad)", { XX
} },
8049 /* VEX_LEN_3823_P_2 */
8051 { "vpmovsxwd", { XM
, EXq
} },
8052 { "(bad)", { XX
} },
8055 /* VEX_LEN_3824_P_2 */
8057 { "vpmovsxwq", { XM
, EXd
} },
8058 { "(bad)", { XX
} },
8061 /* VEX_LEN_3825_P_2 */
8063 { "vpmovsxdq", { XM
, EXq
} },
8064 { "(bad)", { XX
} },
8067 /* VEX_LEN_3828_P_2 */
8069 { "vpmuldq", { XM
, Vex128
, EXx
} },
8070 { "(bad)", { XX
} },
8073 /* VEX_LEN_3829_P_2 */
8075 { "vpcmpeqq", { XM
, Vex128
, EXx
} },
8076 { "(bad)", { XX
} },
8079 /* VEX_LEN_382A_P_2_M_0 */
8081 { "vmovntdqa", { XM
, Mx
} },
8082 { "(bad)", { XX
} },
8085 /* VEX_LEN_382B_P_2 */
8087 { "vpackusdw", { XM
, Vex128
, EXx
} },
8088 { "(bad)", { XX
} },
8091 /* VEX_LEN_3830_P_2 */
8093 { "vpmovzxbw", { XM
, EXq
} },
8094 { "(bad)", { XX
} },
8097 /* VEX_LEN_3831_P_2 */
8099 { "vpmovzxbd", { XM
, EXd
} },
8100 { "(bad)", { XX
} },
8103 /* VEX_LEN_3832_P_2 */
8105 { "vpmovzxbq", { XM
, EXw
} },
8106 { "(bad)", { XX
} },
8109 /* VEX_LEN_3833_P_2 */
8111 { "vpmovzxwd", { XM
, EXq
} },
8112 { "(bad)", { XX
} },
8115 /* VEX_LEN_3834_P_2 */
8117 { "vpmovzxwq", { XM
, EXd
} },
8118 { "(bad)", { XX
} },
8121 /* VEX_LEN_3835_P_2 */
8123 { "vpmovzxdq", { XM
, EXq
} },
8124 { "(bad)", { XX
} },
8127 /* VEX_LEN_3837_P_2 */
8129 { "vpcmpgtq", { XM
, Vex128
, EXx
} },
8130 { "(bad)", { XX
} },
8133 /* VEX_LEN_3838_P_2 */
8135 { "vpminsb", { XM
, Vex128
, EXx
} },
8136 { "(bad)", { XX
} },
8139 /* VEX_LEN_3839_P_2 */
8141 { "vpminsd", { XM
, Vex128
, EXx
} },
8142 { "(bad)", { XX
} },
8145 /* VEX_LEN_383A_P_2 */
8147 { "vpminuw", { XM
, Vex128
, EXx
} },
8148 { "(bad)", { XX
} },
8151 /* VEX_LEN_383B_P_2 */
8153 { "vpminud", { XM
, Vex128
, EXx
} },
8154 { "(bad)", { XX
} },
8157 /* VEX_LEN_383C_P_2 */
8159 { "vpmaxsb", { XM
, Vex128
, EXx
} },
8160 { "(bad)", { XX
} },
8163 /* VEX_LEN_383D_P_2 */
8165 { "vpmaxsd", { XM
, Vex128
, EXx
} },
8166 { "(bad)", { XX
} },
8169 /* VEX_LEN_383E_P_2 */
8171 { "vpmaxuw", { XM
, Vex128
, EXx
} },
8172 { "(bad)", { XX
} },
8175 /* VEX_LEN_383F_P_2 */
8177 { "vpmaxud", { XM
, Vex128
, EXx
} },
8178 { "(bad)", { XX
} },
8181 /* VEX_LEN_3840_P_2 */
8183 { "vpmulld", { XM
, Vex128
, EXx
} },
8184 { "(bad)", { XX
} },
8187 /* VEX_LEN_3841_P_2 */
8189 { "vphminposuw", { XM
, EXx
} },
8190 { "(bad)", { XX
} },
8193 /* VEX_LEN_38DB_P_2 */
8195 { "vaesimc", { XM
, EXx
} },
8196 { "(bad)", { XX
} },
8199 /* VEX_LEN_38DC_P_2 */
8201 { "vaesenc", { XM
, Vex128
, EXx
} },
8202 { "(bad)", { XX
} },
8205 /* VEX_LEN_38DD_P_2 */
8207 { "vaesenclast", { XM
, Vex128
, EXx
} },
8208 { "(bad)", { XX
} },
8211 /* VEX_LEN_38DE_P_2 */
8213 { "vaesdec", { XM
, Vex128
, EXx
} },
8214 { "(bad)", { XX
} },
8217 /* VEX_LEN_38DF_P_2 */
8219 { "vaesdeclast", { XM
, Vex128
, EXx
} },
8220 { "(bad)", { XX
} },
8223 /* VEX_LEN_3A06_P_2 */
8225 { "(bad)", { XX
} },
8226 { "vperm2f128", { XM
, Vex256
, EXx
, Ib
} },
8229 /* VEX_LEN_3A0A_P_2 */
8231 { "vroundss", { XM
, Vex128
, EXd
, Ib
} },
8232 { "(bad)", { XX
} },
8235 /* VEX_LEN_3A0B_P_2 */
8237 { "vroundsd", { XM
, Vex128
, EXq
, Ib
} },
8238 { "(bad)", { XX
} },
8241 /* VEX_LEN_3A0E_P_2 */
8243 { "vpblendw", { XM
, Vex128
, EXx
, Ib
} },
8244 { "(bad)", { XX
} },
8247 /* VEX_LEN_3A0F_P_2 */
8249 { "vpalignr", { XM
, Vex128
, EXx
, Ib
} },
8250 { "(bad)", { XX
} },
8253 /* VEX_LEN_3A14_P_2 */
8255 { "vpextrb", { Edqb
, XM
, Ib
} },
8256 { "(bad)", { XX
} },
8259 /* VEX_LEN_3A15_P_2 */
8261 { "vpextrw", { Edqw
, XM
, Ib
} },
8262 { "(bad)", { XX
} },
8265 /* VEX_LEN_3A16_P_2 */
8267 { "vpextrK", { Edq
, XM
, Ib
} },
8268 { "(bad)", { XX
} },
8271 /* VEX_LEN_3A17_P_2 */
8273 { "vextractps", { Edqd
, XM
, Ib
} },
8274 { "(bad)", { XX
} },
8277 /* VEX_LEN_3A18_P_2 */
8279 { "(bad)", { XX
} },
8280 { "vinsertf128", { XM
, Vex256
, EXxmm
, Ib
} },
8283 /* VEX_LEN_3A19_P_2 */
8285 { "(bad)", { XX
} },
8286 { "vextractf128", { EXxmm
, XM
, Ib
} },
8289 /* VEX_LEN_3A20_P_2 */
8291 { "vpinsrb", { XM
, Vex128
, Edqb
, Ib
} },
8292 { "(bad)", { XX
} },
8295 /* VEX_LEN_3A21_P_2 */
8297 { "vinsertps", { XM
, Vex128
, EXd
, Ib
} },
8298 { "(bad)", { XX
} },
8301 /* VEX_LEN_3A22_P_2 */
8303 { "vpinsrK", { XM
, Vex128
, Edq
, Ib
} },
8304 { "(bad)", { XX
} },
8307 /* VEX_LEN_3A41_P_2 */
8309 { "vdppd", { XM
, Vex128
, EXx
, Ib
} },
8310 { "(bad)", { XX
} },
8313 /* VEX_LEN_3A42_P_2 */
8315 { "vmpsadbw", { XM
, Vex128
, EXx
, Ib
} },
8316 { "(bad)", { XX
} },
8319 /* VEX_LEN_3A44_P_2 */
8321 { "vpclmulqdq", { XM
, Vex128
, EXx
, PCLMUL
} },
8322 { "(bad)", { XX
} },
8325 /* VEX_LEN_3A4C_P_2 */
8327 { "vpblendvb", { XM
, Vex128
, EXx
, XMVexI4
} },
8328 { "(bad)", { XX
} },
8331 /* VEX_LEN_3A60_P_2 */
8333 { "vpcmpestrm", { XM
, EXx
, Ib
} },
8334 { "(bad)", { XX
} },
8337 /* VEX_LEN_3A61_P_2 */
8339 { "vpcmpestri", { XM
, EXx
, Ib
} },
8340 { "(bad)", { XX
} },
8343 /* VEX_LEN_3A62_P_2 */
8345 { "vpcmpistrm", { XM
, EXx
, Ib
} },
8346 { "(bad)", { XX
} },
8349 /* VEX_LEN_3A63_P_2 */
8351 { "vpcmpistri", { XM
, EXx
, Ib
} },
8352 { "(bad)", { XX
} },
8355 /* VEX_LEN_3A6A_P_2 */
8357 { "vfmaddss", { XMVexW
, Vex128FMA
, EXdVexW
, EXdVexW
, VexI4
} },
8358 { "(bad)", { XX
} },
8361 /* VEX_LEN_3A6B_P_2 */
8363 { "vfmaddsd", { XMVexW
, Vex128FMA
, EXqVexW
, EXqVexW
, VexI4
} },
8364 { "(bad)", { XX
} },
8367 /* VEX_LEN_3A6E_P_2 */
8369 { "vfmsubss", { XMVexW
, Vex128FMA
, EXdVexW
, EXdVexW
, VexI4
} },
8370 { "(bad)", { XX
} },
8373 /* VEX_LEN_3A6F_P_2 */
8375 { "vfmsubsd", { XMVexW
, Vex128FMA
, EXqVexW
, EXqVexW
, VexI4
} },
8376 { "(bad)", { XX
} },
8379 /* VEX_LEN_3A7A_P_2 */
8381 { "vfnmaddss", { XMVexW
, Vex128FMA
, EXdVexW
, EXdVexW
, VexI4
} },
8382 { "(bad)", { XX
} },
8385 /* VEX_LEN_3A7B_P_2 */
8387 { "vfnmaddsd", { XMVexW
, Vex128FMA
, EXqVexW
, EXqVexW
, VexI4
} },
8388 { "(bad)", { XX
} },
8391 /* VEX_LEN_3A7E_P_2 */
8393 { "vfnmsubss", { XMVexW
, Vex128FMA
, EXdVexW
, EXdVexW
, VexI4
} },
8394 { "(bad)", { XX
} },
8397 /* VEX_LEN_3A7F_P_2 */
8399 { "vfnmsubsd", { XMVexW
, Vex128FMA
, EXqVexW
, EXqVexW
, VexI4
} },
8400 { "(bad)", { XX
} },
8403 /* VEX_LEN_3ADF_P_2 */
8405 { "vaeskeygenassist", { XM
, EXx
, Ib
} },
8406 { "(bad)", { XX
} },
8410 static const struct dis386 mod_table
[][2] = {
8413 { "leaS", { Gv
, M
} },
8414 { "(bad)", { XX
} },
8417 /* MOD_0F01_REG_0 */
8418 { X86_64_TABLE (X86_64_0F01_REG_0
) },
8419 { RM_TABLE (RM_0F01_REG_0
) },
8422 /* MOD_0F01_REG_1 */
8423 { X86_64_TABLE (X86_64_0F01_REG_1
) },
8424 { RM_TABLE (RM_0F01_REG_1
) },
8427 /* MOD_0F01_REG_2 */
8428 { X86_64_TABLE (X86_64_0F01_REG_2
) },
8429 { RM_TABLE (RM_0F01_REG_2
) },
8432 /* MOD_0F01_REG_3 */
8433 { X86_64_TABLE (X86_64_0F01_REG_3
) },
8434 { RM_TABLE (RM_0F01_REG_3
) },
8437 /* MOD_0F01_REG_7 */
8438 { "invlpg", { Mb
} },
8439 { RM_TABLE (RM_0F01_REG_7
) },
8442 /* MOD_0F12_PREFIX_0 */
8443 { "movlps", { XM
, EXq
} },
8444 { "movhlps", { XM
, EXq
} },
8448 { "movlpX", { EXq
, XM
} },
8449 { "(bad)", { XX
} },
8452 /* MOD_0F16_PREFIX_0 */
8453 { "movhps", { XM
, EXq
} },
8454 { "movlhps", { XM
, EXq
} },
8458 { "movhpX", { EXq
, XM
} },
8459 { "(bad)", { XX
} },
8462 /* MOD_0F18_REG_0 */
8463 { "prefetchnta", { Mb
} },
8464 { "(bad)", { XX
} },
8467 /* MOD_0F18_REG_1 */
8468 { "prefetcht0", { Mb
} },
8469 { "(bad)", { XX
} },
8472 /* MOD_0F18_REG_2 */
8473 { "prefetcht1", { Mb
} },
8474 { "(bad)", { XX
} },
8477 /* MOD_0F18_REG_3 */
8478 { "prefetcht2", { Mb
} },
8479 { "(bad)", { XX
} },
8483 { "(bad)", { XX
} },
8484 { "movZ", { Rm
, Cm
} },
8488 { "(bad)", { XX
} },
8489 { "movZ", { Rm
, Dm
} },
8493 { "(bad)", { XX
} },
8494 { "movZ", { Cm
, Rm
} },
8498 { "(bad)", { XX
} },
8499 { "movZ", { Dm
, Rm
} },
8503 { "(bad)", { XX
} },
8504 { "movL", { Rd
, Td
} },
8508 { "(bad)", { XX
} },
8509 { "movL", { Td
, Rd
} },
8512 /* MOD_0F2B_PREFIX_0 */
8513 {"movntps", { Mx
, XM
} },
8514 { "(bad)", { XX
} },
8517 /* MOD_0F2B_PREFIX_1 */
8518 {"movntss", { Md
, XM
} },
8519 { "(bad)", { XX
} },
8522 /* MOD_0F2B_PREFIX_2 */
8523 {"movntpd", { Mx
, XM
} },
8524 { "(bad)", { XX
} },
8527 /* MOD_0F2B_PREFIX_3 */
8528 {"movntsd", { Mq
, XM
} },
8529 { "(bad)", { XX
} },
8533 { "(bad)", { XX
} },
8534 { "movmskpX", { Gdq
, XS
} },
8537 /* MOD_0F71_REG_2 */
8538 { "(bad)", { XX
} },
8539 { "psrlw", { MS
, Ib
} },
8542 /* MOD_0F71_REG_4 */
8543 { "(bad)", { XX
} },
8544 { "psraw", { MS
, Ib
} },
8547 /* MOD_0F71_REG_6 */
8548 { "(bad)", { XX
} },
8549 { "psllw", { MS
, Ib
} },
8552 /* MOD_0F72_REG_2 */
8553 { "(bad)", { XX
} },
8554 { "psrld", { MS
, Ib
} },
8557 /* MOD_0F72_REG_4 */
8558 { "(bad)", { XX
} },
8559 { "psrad", { MS
, Ib
} },
8562 /* MOD_0F72_REG_6 */
8563 { "(bad)", { XX
} },
8564 { "pslld", { MS
, Ib
} },
8567 /* MOD_0F73_REG_2 */
8568 { "(bad)", { XX
} },
8569 { "psrlq", { MS
, Ib
} },
8572 /* MOD_0F73_REG_3 */
8573 { "(bad)", { XX
} },
8574 { PREFIX_TABLE (PREFIX_0F73_REG_3
) },
8577 /* MOD_0F73_REG_6 */
8578 { "(bad)", { XX
} },
8579 { "psllq", { MS
, Ib
} },
8582 /* MOD_0F73_REG_7 */
8583 { "(bad)", { XX
} },
8584 { PREFIX_TABLE (PREFIX_0F73_REG_7
) },
8587 /* MOD_0FAE_REG_0 */
8588 { "fxsave", { M
} },
8589 { "(bad)", { XX
} },
8592 /* MOD_0FAE_REG_1 */
8593 { "fxrstor", { M
} },
8594 { "(bad)", { XX
} },
8597 /* MOD_0FAE_REG_2 */
8598 { "ldmxcsr", { Md
} },
8599 { "(bad)", { XX
} },
8602 /* MOD_0FAE_REG_3 */
8603 { "stmxcsr", { Md
} },
8604 { "(bad)", { XX
} },
8607 /* MOD_0FAE_REG_4 */
8609 { "(bad)", { XX
} },
8612 /* MOD_0FAE_REG_5 */
8613 { "xrstor", { M
} },
8614 { RM_TABLE (RM_0FAE_REG_5
) },
8617 /* MOD_0FAE_REG_6 */
8618 { "xsaveopt", { M
} },
8619 { RM_TABLE (RM_0FAE_REG_6
) },
8622 /* MOD_0FAE_REG_7 */
8623 { "clflush", { Mb
} },
8624 { RM_TABLE (RM_0FAE_REG_7
) },
8628 { "lssS", { Gv
, Mp
} },
8629 { "(bad)", { XX
} },
8633 { "lfsS", { Gv
, Mp
} },
8634 { "(bad)", { XX
} },
8638 { "lgsS", { Gv
, Mp
} },
8639 { "(bad)", { XX
} },
8642 /* MOD_0FC7_REG_6 */
8643 { PREFIX_TABLE (PREFIX_0FC7_REG_6
) },
8644 { "(bad)", { XX
} },
8647 /* MOD_0FC7_REG_7 */
8648 { "vmptrst", { Mq
} },
8649 { "(bad)", { XX
} },
8653 { "(bad)", { XX
} },
8654 { "pmovmskb", { Gdq
, MS
} },
8657 /* MOD_0FE7_PREFIX_2 */
8658 { "movntdq", { Mx
, XM
} },
8659 { "(bad)", { XX
} },
8662 /* MOD_0FF0_PREFIX_3 */
8663 { "lddqu", { XM
, M
} },
8664 { "(bad)", { XX
} },
8667 /* MOD_0F382A_PREFIX_2 */
8668 { "movntdqa", { XM
, Mx
} },
8669 { "(bad)", { XX
} },
8673 { "bound{S|}", { Gv
, Ma
} },
8674 { "(bad)", { XX
} },
8678 { "lesS", { Gv
, Mp
} },
8679 { VEX_C4_TABLE (VEX_0F
) },
8683 { "ldsS", { Gv
, Mp
} },
8684 { VEX_C5_TABLE (VEX_0F
) },
8687 /* MOD_VEX_12_PREFIX_0 */
8688 { VEX_LEN_TABLE (VEX_LEN_12_P_0_M_0
) },
8689 { VEX_LEN_TABLE (VEX_LEN_12_P_0_M_1
) },
8693 { VEX_LEN_TABLE (VEX_LEN_13_M_0
) },
8694 { "(bad)", { XX
} },
8697 /* MOD_VEX_16_PREFIX_0 */
8698 { VEX_LEN_TABLE (VEX_LEN_16_P_0_M_0
) },
8699 { VEX_LEN_TABLE (VEX_LEN_16_P_0_M_1
) },
8703 { VEX_LEN_TABLE (VEX_LEN_17_M_0
) },
8704 { "(bad)", { XX
} },
8708 { "vmovntpX", { Mx
, XM
} },
8709 { "(bad)", { XX
} },
8713 { "(bad)", { XX
} },
8714 { "vmovmskpX", { Gdq
, XS
} },
8717 /* MOD_VEX_71_REG_2 */
8718 { "(bad)", { XX
} },
8719 { PREFIX_TABLE (PREFIX_VEX_71_REG_2
) },
8722 /* MOD_VEX_71_REG_4 */
8723 { "(bad)", { XX
} },
8724 { PREFIX_TABLE (PREFIX_VEX_71_REG_4
) },
8727 /* MOD_VEX_71_REG_6 */
8728 { "(bad)", { XX
} },
8729 { PREFIX_TABLE (PREFIX_VEX_71_REG_6
) },
8732 /* MOD_VEX_72_REG_2 */
8733 { "(bad)", { XX
} },
8734 { PREFIX_TABLE (PREFIX_VEX_72_REG_2
) },
8737 /* MOD_VEX_72_REG_4 */
8738 { "(bad)", { XX
} },
8739 { PREFIX_TABLE (PREFIX_VEX_72_REG_4
) },
8742 /* MOD_VEX_72_REG_6 */
8743 { "(bad)", { XX
} },
8744 { PREFIX_TABLE (PREFIX_VEX_72_REG_6
) },
8747 /* MOD_VEX_73_REG_2 */
8748 { "(bad)", { XX
} },
8749 { PREFIX_TABLE (PREFIX_VEX_73_REG_2
) },
8752 /* MOD_VEX_73_REG_3 */
8753 { "(bad)", { XX
} },
8754 { PREFIX_TABLE (PREFIX_VEX_73_REG_3
) },
8757 /* MOD_VEX_73_REG_6 */
8758 { "(bad)", { XX
} },
8759 { PREFIX_TABLE (PREFIX_VEX_73_REG_6
) },
8762 /* MOD_VEX_73_REG_7 */
8763 { "(bad)", { XX
} },
8764 { PREFIX_TABLE (PREFIX_VEX_73_REG_7
) },
8767 /* MOD_VEX_AE_REG_2 */
8768 { VEX_LEN_TABLE (VEX_LEN_AE_R_2_M_0
) },
8769 { "(bad)", { XX
} },
8772 /* MOD_VEX_AE_REG_3 */
8773 { VEX_LEN_TABLE (VEX_LEN_AE_R_3_M_0
) },
8774 { "(bad)", { XX
} },
8777 /* MOD_VEX_D7_PREFIX_2 */
8778 { "(bad)", { XX
} },
8779 { VEX_LEN_TABLE (VEX_LEN_D7_P_2_M_1
) },
8782 /* MOD_VEX_E7_PREFIX_2 */
8783 { "vmovntdq", { Mx
, XM
} },
8784 { "(bad)", { XX
} },
8787 /* MOD_VEX_F0_PREFIX_3 */
8788 { "vlddqu", { XM
, M
} },
8789 { "(bad)", { XX
} },
8792 /* MOD_VEX_3818_PREFIX_2 */
8793 { "vbroadcastss", { XM
, Md
} },
8794 { "(bad)", { XX
} },
8797 /* MOD_VEX_3819_PREFIX_2 */
8798 { VEX_LEN_TABLE (VEX_LEN_3819_P_2_M_0
) },
8799 { "(bad)", { XX
} },
8802 /* MOD_VEX_381A_PREFIX_2 */
8803 { VEX_LEN_TABLE (VEX_LEN_381A_P_2_M_0
) },
8804 { "(bad)", { XX
} },
8807 /* MOD_VEX_382A_PREFIX_2 */
8808 { VEX_LEN_TABLE (VEX_LEN_382A_P_2_M_0
) },
8809 { "(bad)", { XX
} },
8812 /* MOD_VEX_382C_PREFIX_2 */
8813 { "vmaskmovps", { XM
, Vex
, Mx
} },
8814 { "(bad)", { XX
} },
8817 /* MOD_VEX_382D_PREFIX_2 */
8818 { "vmaskmovpd", { XM
, Vex
, Mx
} },
8819 { "(bad)", { XX
} },
8822 /* MOD_VEX_382E_PREFIX_2 */
8823 { "vmaskmovps", { Mx
, Vex
, XM
} },
8824 { "(bad)", { XX
} },
8827 /* MOD_VEX_382F_PREFIX_2 */
8828 { "vmaskmovpd", { Mx
, Vex
, XM
} },
8829 { "(bad)", { XX
} },
8833 static const struct dis386 rm_table
[][8] = {
8836 { "(bad)", { XX
} },
8837 { "vmcall", { Skip_MODRM
} },
8838 { "vmlaunch", { Skip_MODRM
} },
8839 { "vmresume", { Skip_MODRM
} },
8840 { "vmxoff", { Skip_MODRM
} },
8841 { "(bad)", { XX
} },
8842 { "(bad)", { XX
} },
8843 { "(bad)", { XX
} },
8847 { "monitor", { { OP_Monitor
, 0 } } },
8848 { "mwait", { { OP_Mwait
, 0 } } },
8849 { "(bad)", { XX
} },
8850 { "(bad)", { XX
} },
8851 { "(bad)", { XX
} },
8852 { "(bad)", { XX
} },
8853 { "(bad)", { XX
} },
8854 { "(bad)", { XX
} },
8858 { "xgetbv", { Skip_MODRM
} },
8859 { "xsetbv", { Skip_MODRM
} },
8860 { "(bad)", { XX
} },
8861 { "(bad)", { XX
} },
8862 { "(bad)", { XX
} },
8863 { "(bad)", { XX
} },
8864 { "(bad)", { XX
} },
8865 { "(bad)", { XX
} },
8869 { "vmrun", { Skip_MODRM
} },
8870 { "vmmcall", { Skip_MODRM
} },
8871 { "vmload", { Skip_MODRM
} },
8872 { "vmsave", { Skip_MODRM
} },
8873 { "stgi", { Skip_MODRM
} },
8874 { "clgi", { Skip_MODRM
} },
8875 { "skinit", { Skip_MODRM
} },
8876 { "invlpga", { Skip_MODRM
} },
8880 { "swapgs", { Skip_MODRM
} },
8881 { "rdtscp", { Skip_MODRM
} },
8882 { "(bad)", { XX
} },
8883 { "(bad)", { XX
} },
8884 { "(bad)", { XX
} },
8885 { "(bad)", { XX
} },
8886 { "(bad)", { XX
} },
8887 { "(bad)", { XX
} },
8891 { "lfence", { Skip_MODRM
} },
8892 { "(bad)", { XX
} },
8893 { "(bad)", { XX
} },
8894 { "(bad)", { XX
} },
8895 { "(bad)", { XX
} },
8896 { "(bad)", { XX
} },
8897 { "(bad)", { XX
} },
8898 { "(bad)", { XX
} },
8902 { "mfence", { Skip_MODRM
} },
8903 { "(bad)", { XX
} },
8904 { "(bad)", { XX
} },
8905 { "(bad)", { XX
} },
8906 { "(bad)", { XX
} },
8907 { "(bad)", { XX
} },
8908 { "(bad)", { XX
} },
8909 { "(bad)", { XX
} },
8913 { "sfence", { Skip_MODRM
} },
8914 { "(bad)", { XX
} },
8915 { "(bad)", { XX
} },
8916 { "(bad)", { XX
} },
8917 { "(bad)", { XX
} },
8918 { "(bad)", { XX
} },
8919 { "(bad)", { XX
} },
8920 { "(bad)", { XX
} },
8924 #define INTERNAL_DISASSEMBLER_ERROR _("<internal disassembler error>")
8938 FETCH_DATA (the_info
, codep
+ 1);
8942 /* REX prefixes family. */
8959 if (address_mode
== mode_64bit
)
8965 prefixes
|= PREFIX_REPZ
;
8968 prefixes
|= PREFIX_REPNZ
;
8971 prefixes
|= PREFIX_LOCK
;
8974 prefixes
|= PREFIX_CS
;
8977 prefixes
|= PREFIX_SS
;
8980 prefixes
|= PREFIX_DS
;
8983 prefixes
|= PREFIX_ES
;
8986 prefixes
|= PREFIX_FS
;
8989 prefixes
|= PREFIX_GS
;
8992 prefixes
|= PREFIX_DATA
;
8995 prefixes
|= PREFIX_ADDR
;
8998 /* fwait is really an instruction. If there are prefixes
8999 before the fwait, they belong to the fwait, *not* to the
9000 following instruction. */
9001 if (prefixes
|| rex
)
9003 prefixes
|= PREFIX_FWAIT
;
9007 prefixes
= PREFIX_FWAIT
;
9012 /* Rex is ignored when followed by another prefix. */
9024 /* Return the name of the prefix byte PREF, or NULL if PREF is not a
9028 prefix_name (int pref
, int sizeflag
)
9030 static const char *rexes
[16] =
9035 "rex.XB", /* 0x43 */
9037 "rex.RB", /* 0x45 */
9038 "rex.RX", /* 0x46 */
9039 "rex.RXB", /* 0x47 */
9041 "rex.WB", /* 0x49 */
9042 "rex.WX", /* 0x4a */
9043 "rex.WXB", /* 0x4b */
9044 "rex.WR", /* 0x4c */
9045 "rex.WRB", /* 0x4d */
9046 "rex.WRX", /* 0x4e */
9047 "rex.WRXB", /* 0x4f */
9052 /* REX prefixes family. */
9069 return rexes
[pref
- 0x40];
9089 return (sizeflag
& DFLAG
) ? "data16" : "data32";
9091 if (address_mode
== mode_64bit
)
9092 return (sizeflag
& AFLAG
) ? "addr32" : "addr64";
9094 return (sizeflag
& AFLAG
) ? "addr16" : "addr32";
9102 static char op_out
[MAX_OPERANDS
][100];
9103 static int op_ad
, op_index
[MAX_OPERANDS
];
9104 static int two_source_ops
;
9105 static bfd_vma op_address
[MAX_OPERANDS
];
9106 static bfd_vma op_riprel
[MAX_OPERANDS
];
9107 static bfd_vma start_pc
;
9110 * On the 386's of 1988, the maximum length of an instruction is 15 bytes.
9111 * (see topic "Redundant prefixes" in the "Differences from 8086"
9112 * section of the "Virtual 8086 Mode" chapter.)
9113 * 'pc' should be the address of this instruction, it will
9114 * be used to print the target address if this is a relative jump or call
9115 * The function returns the length of this instruction in bytes.
9118 static char intel_syntax
;
9119 static char intel_mnemonic
= !SYSV386_COMPAT
;
9120 static char open_char
;
9121 static char close_char
;
9122 static char separator_char
;
9123 static char scale_char
;
9125 /* Here for backwards compatibility. When gdb stops using
9126 print_insn_i386_att and print_insn_i386_intel these functions can
9127 disappear, and print_insn_i386 be merged into print_insn. */
9129 print_insn_i386_att (bfd_vma pc
, disassemble_info
*info
)
9133 return print_insn (pc
, info
);
9137 print_insn_i386_intel (bfd_vma pc
, disassemble_info
*info
)
9141 return print_insn (pc
, info
);
9145 print_insn_i386 (bfd_vma pc
, disassemble_info
*info
)
9149 return print_insn (pc
, info
);
9153 print_i386_disassembler_options (FILE *stream
)
9155 fprintf (stream
, _("\n\
9156 The following i386/x86-64 specific disassembler options are supported for use\n\
9157 with the -M switch (multiple options should be separated by commas):\n"));
9159 fprintf (stream
, _(" x86-64 Disassemble in 64bit mode\n"));
9160 fprintf (stream
, _(" i386 Disassemble in 32bit mode\n"));
9161 fprintf (stream
, _(" i8086 Disassemble in 16bit mode\n"));
9162 fprintf (stream
, _(" att Display instruction in AT&T syntax\n"));
9163 fprintf (stream
, _(" intel Display instruction in Intel syntax\n"));
9164 fprintf (stream
, _(" att-mnemonic\n"
9165 " Display instruction in AT&T mnemonic\n"));
9166 fprintf (stream
, _(" intel-mnemonic\n"
9167 " Display instruction in Intel mnemonic\n"));
9168 fprintf (stream
, _(" addr64 Assume 64bit address size\n"));
9169 fprintf (stream
, _(" addr32 Assume 32bit address size\n"));
9170 fprintf (stream
, _(" addr16 Assume 16bit address size\n"));
9171 fprintf (stream
, _(" data32 Assume 32bit data size\n"));
9172 fprintf (stream
, _(" data16 Assume 16bit data size\n"));
9173 fprintf (stream
, _(" suffix Always display instruction suffix in AT&T syntax\n"));
9176 /* Get a pointer to struct dis386 with a valid name. */
9178 static const struct dis386
*
9179 get_valid_dis386 (const struct dis386
*dp
, disassemble_info
*info
)
9181 int index
, vex_table_index
;
9183 if (dp
->name
!= NULL
)
9186 switch (dp
->op
[0].bytemode
)
9189 dp
= ®_table
[dp
->op
[1].bytemode
][modrm
.reg
];
9193 index
= modrm
.mod
== 0x3 ? 1 : 0;
9194 dp
= &mod_table
[dp
->op
[1].bytemode
][index
];
9198 dp
= &rm_table
[dp
->op
[1].bytemode
][modrm
.rm
];
9201 case USE_PREFIX_TABLE
:
9204 /* The prefix in VEX is implicit. */
9210 case REPE_PREFIX_OPCODE
:
9213 case DATA_PREFIX_OPCODE
:
9216 case REPNE_PREFIX_OPCODE
:
9227 used_prefixes
|= (prefixes
& PREFIX_REPZ
);
9228 if (prefixes
& PREFIX_REPZ
)
9235 /* We should check PREFIX_REPNZ and PREFIX_REPZ before
9237 used_prefixes
|= (prefixes
& PREFIX_REPNZ
);
9238 if (prefixes
& PREFIX_REPNZ
)
9241 repnz_prefix
= NULL
;
9245 used_prefixes
|= (prefixes
& PREFIX_DATA
);
9246 if (prefixes
& PREFIX_DATA
)
9254 dp
= &prefix_table
[dp
->op
[1].bytemode
][index
];
9257 case USE_X86_64_TABLE
:
9258 index
= address_mode
== mode_64bit
? 1 : 0;
9259 dp
= &x86_64_table
[dp
->op
[1].bytemode
][index
];
9262 case USE_3BYTE_TABLE
:
9263 FETCH_DATA (info
, codep
+ 2);
9265 dp
= &three_byte_table
[dp
->op
[1].bytemode
][index
];
9266 modrm
.mod
= (*codep
>> 6) & 3;
9267 modrm
.reg
= (*codep
>> 3) & 7;
9268 modrm
.rm
= *codep
& 7;
9271 case USE_VEX_LEN_TABLE
:
9288 dp
= &vex_len_table
[dp
->op
[1].bytemode
][index
];
9291 case USE_VEX_C4_TABLE
:
9292 FETCH_DATA (info
, codep
+ 3);
9293 /* All bits in the REX prefix are ignored. */
9295 rex
= ~(*codep
>> 5) & 0x7;
9296 switch ((*codep
& 0x1f))
9301 vex_table_index
= 0;
9304 vex_table_index
= 1;
9307 vex_table_index
= 2;
9311 vex
.w
= *codep
& 0x80;
9312 if (vex
.w
&& address_mode
== mode_64bit
)
9315 vex
.register_specifier
= (~(*codep
>> 3)) & 0xf;
9316 if (address_mode
!= mode_64bit
9317 && vex
.register_specifier
> 0x7)
9320 vex
.length
= (*codep
& 0x4) ? 256 : 128;
9321 switch ((*codep
& 0x3))
9327 vex
.prefix
= DATA_PREFIX_OPCODE
;
9330 vex
.prefix
= REPE_PREFIX_OPCODE
;
9333 vex
.prefix
= REPNE_PREFIX_OPCODE
;
9340 dp
= &vex_table
[vex_table_index
][index
];
9341 /* There is no MODRM byte for VEX [82|77]. */
9342 if (index
!= 0x77 && index
!= 0x82)
9344 FETCH_DATA (info
, codep
+ 1);
9345 modrm
.mod
= (*codep
>> 6) & 3;
9346 modrm
.reg
= (*codep
>> 3) & 7;
9347 modrm
.rm
= *codep
& 7;
9351 case USE_VEX_C5_TABLE
:
9352 FETCH_DATA (info
, codep
+ 2);
9353 /* All bits in the REX prefix are ignored. */
9355 rex
= (*codep
& 0x80) ? 0 : REX_R
;
9357 vex
.register_specifier
= (~(*codep
>> 3)) & 0xf;
9358 if (address_mode
!= mode_64bit
9359 && vex
.register_specifier
> 0x7)
9362 vex
.length
= (*codep
& 0x4) ? 256 : 128;
9363 switch ((*codep
& 0x3))
9369 vex
.prefix
= DATA_PREFIX_OPCODE
;
9372 vex
.prefix
= REPE_PREFIX_OPCODE
;
9375 vex
.prefix
= REPNE_PREFIX_OPCODE
;
9382 dp
= &vex_table
[dp
->op
[1].bytemode
][index
];
9383 /* There is no MODRM byte for VEX [82|77]. */
9384 if (index
!= 0x77 && index
!= 0x82)
9386 FETCH_DATA (info
, codep
+ 1);
9387 modrm
.mod
= (*codep
>> 6) & 3;
9388 modrm
.reg
= (*codep
>> 3) & 7;
9389 modrm
.rm
= *codep
& 7;
9397 if (dp
->name
!= NULL
)
9400 return get_valid_dis386 (dp
, info
);
9404 print_insn (bfd_vma pc
, disassemble_info
*info
)
9406 const struct dis386
*dp
;
9408 char *op_txt
[MAX_OPERANDS
];
9412 struct dis_private priv
;
9414 char prefix_obuf
[32];
9417 if (info
->mach
== bfd_mach_x86_64_intel_syntax
9418 || info
->mach
== bfd_mach_x86_64
9419 || info
->mach
== bfd_mach_l1om
9420 || info
->mach
== bfd_mach_l1om_intel_syntax
)
9421 address_mode
= mode_64bit
;
9423 address_mode
= mode_32bit
;
9425 if (intel_syntax
== (char) -1)
9426 intel_syntax
= (info
->mach
== bfd_mach_i386_i386_intel_syntax
9427 || info
->mach
== bfd_mach_x86_64_intel_syntax
9428 || info
->mach
== bfd_mach_l1om_intel_syntax
);
9430 if (info
->mach
== bfd_mach_i386_i386
9431 || info
->mach
== bfd_mach_x86_64
9432 || info
->mach
== bfd_mach_l1om
9433 || info
->mach
== bfd_mach_i386_i386_intel_syntax
9434 || info
->mach
== bfd_mach_x86_64_intel_syntax
9435 || info
->mach
== bfd_mach_l1om_intel_syntax
)
9436 priv
.orig_sizeflag
= AFLAG
| DFLAG
;
9437 else if (info
->mach
== bfd_mach_i386_i8086
)
9438 priv
.orig_sizeflag
= 0;
9442 for (p
= info
->disassembler_options
; p
!= NULL
; )
9444 if (CONST_STRNEQ (p
, "x86-64"))
9446 address_mode
= mode_64bit
;
9447 priv
.orig_sizeflag
= AFLAG
| DFLAG
;
9449 else if (CONST_STRNEQ (p
, "i386"))
9451 address_mode
= mode_32bit
;
9452 priv
.orig_sizeflag
= AFLAG
| DFLAG
;
9454 else if (CONST_STRNEQ (p
, "i8086"))
9456 address_mode
= mode_16bit
;
9457 priv
.orig_sizeflag
= 0;
9459 else if (CONST_STRNEQ (p
, "intel"))
9462 if (CONST_STRNEQ (p
+ 5, "-mnemonic"))
9465 else if (CONST_STRNEQ (p
, "att"))
9468 if (CONST_STRNEQ (p
+ 3, "-mnemonic"))
9471 else if (CONST_STRNEQ (p
, "addr"))
9473 if (address_mode
== mode_64bit
)
9475 if (p
[4] == '3' && p
[5] == '2')
9476 priv
.orig_sizeflag
&= ~AFLAG
;
9477 else if (p
[4] == '6' && p
[5] == '4')
9478 priv
.orig_sizeflag
|= AFLAG
;
9482 if (p
[4] == '1' && p
[5] == '6')
9483 priv
.orig_sizeflag
&= ~AFLAG
;
9484 else if (p
[4] == '3' && p
[5] == '2')
9485 priv
.orig_sizeflag
|= AFLAG
;
9488 else if (CONST_STRNEQ (p
, "data"))
9490 if (p
[4] == '1' && p
[5] == '6')
9491 priv
.orig_sizeflag
&= ~DFLAG
;
9492 else if (p
[4] == '3' && p
[5] == '2')
9493 priv
.orig_sizeflag
|= DFLAG
;
9495 else if (CONST_STRNEQ (p
, "suffix"))
9496 priv
.orig_sizeflag
|= SUFFIX_ALWAYS
;
9498 p
= strchr (p
, ',');
9505 names64
= intel_names64
;
9506 names32
= intel_names32
;
9507 names16
= intel_names16
;
9508 names8
= intel_names8
;
9509 names8rex
= intel_names8rex
;
9510 names_seg
= intel_names_seg
;
9511 index64
= intel_index64
;
9512 index32
= intel_index32
;
9513 index16
= intel_index16
;
9516 separator_char
= '+';
9521 names64
= att_names64
;
9522 names32
= att_names32
;
9523 names16
= att_names16
;
9524 names8
= att_names8
;
9525 names8rex
= att_names8rex
;
9526 names_seg
= att_names_seg
;
9527 index64
= att_index64
;
9528 index32
= att_index32
;
9529 index16
= att_index16
;
9532 separator_char
= ',';
9536 /* The output looks better if we put 7 bytes on a line, since that
9537 puts most long word instructions on a single line. Use 8 bytes
9539 if (info
->mach
== bfd_mach_l1om
9540 || info
->mach
== bfd_mach_l1om_intel_syntax
)
9541 info
->bytes_per_line
= 8;
9543 info
->bytes_per_line
= 7;
9545 info
->private_data
= &priv
;
9546 priv
.max_fetched
= priv
.the_buffer
;
9547 priv
.insn_start
= pc
;
9550 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
9558 start_codep
= priv
.the_buffer
;
9559 codep
= priv
.the_buffer
;
9561 if (setjmp (priv
.bailout
) != 0)
9565 /* Getting here means we tried for data but didn't get it. That
9566 means we have an incomplete instruction of some sort. Just
9567 print the first byte as a prefix or a .byte pseudo-op. */
9568 if (codep
> priv
.the_buffer
)
9570 name
= prefix_name (priv
.the_buffer
[0], priv
.orig_sizeflag
);
9572 (*info
->fprintf_func
) (info
->stream
, "%s", name
);
9575 /* Just print the first byte as a .byte instruction. */
9576 (*info
->fprintf_func
) (info
->stream
, ".byte 0x%x",
9577 (unsigned int) priv
.the_buffer
[0]);
9590 sizeflag
= priv
.orig_sizeflag
;
9592 FETCH_DATA (info
, codep
+ 1);
9593 two_source_ops
= (*codep
== 0x62) || (*codep
== 0xc8);
9595 if (((prefixes
& PREFIX_FWAIT
)
9596 && ((*codep
< 0xd8) || (*codep
> 0xdf)))
9597 || (rex
&& rex_used
))
9601 /* fwait not followed by floating point instruction, or rex followed
9602 by other prefixes. Print the first prefix. */
9603 name
= prefix_name (priv
.the_buffer
[0], priv
.orig_sizeflag
);
9605 name
= INTERNAL_DISASSEMBLER_ERROR
;
9606 (*info
->fprintf_func
) (info
->stream
, "%s", name
);
9614 unsigned char threebyte
;
9615 FETCH_DATA (info
, codep
+ 2);
9616 threebyte
= *++codep
;
9617 dp
= &dis386_twobyte
[threebyte
];
9618 need_modrm
= twobyte_has_modrm
[*codep
];
9623 dp
= &dis386
[*codep
];
9624 need_modrm
= onebyte_has_modrm
[*codep
];
9628 if ((prefixes
& PREFIX_REPZ
))
9630 repz_prefix
= "repz ";
9631 used_prefixes
|= PREFIX_REPZ
;
9636 if ((prefixes
& PREFIX_REPNZ
))
9638 repnz_prefix
= "repnz ";
9639 used_prefixes
|= PREFIX_REPNZ
;
9642 repnz_prefix
= NULL
;
9644 if ((prefixes
& PREFIX_LOCK
))
9646 lock_prefix
= "lock ";
9647 used_prefixes
|= PREFIX_LOCK
;
9653 if (prefixes
& PREFIX_ADDR
)
9656 if (dp
->op
[2].bytemode
!= loop_jcxz_mode
|| intel_syntax
)
9658 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
9659 addr_prefix
= "addr32 ";
9661 addr_prefix
= "addr16 ";
9662 used_prefixes
|= PREFIX_ADDR
;
9667 if ((prefixes
& PREFIX_DATA
))
9670 if (dp
->op
[2].bytemode
== cond_jump_mode
9671 && dp
->op
[0].bytemode
== v_mode
9674 if (sizeflag
& DFLAG
)
9675 data_prefix
= "data32 ";
9677 data_prefix
= "data16 ";
9678 used_prefixes
|= PREFIX_DATA
;
9684 FETCH_DATA (info
, codep
+ 1);
9685 modrm
.mod
= (*codep
>> 6) & 3;
9686 modrm
.reg
= (*codep
>> 3) & 7;
9687 modrm
.rm
= *codep
& 7;
9690 if (dp
->name
== NULL
&& dp
->op
[0].bytemode
== FLOATCODE
)
9699 dp
= get_valid_dis386 (dp
, info
);
9700 if (dp
!= NULL
&& putop (dp
->name
, sizeflag
) == 0)
9702 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
9705 op_ad
= MAX_OPERANDS
- 1 - i
;
9707 (*dp
->op
[i
].rtn
) (dp
->op
[i
].bytemode
, sizeflag
);
9712 /* See if any prefixes were not used. If so, print the first one
9713 separately. If we don't do this, we'll wind up printing an
9714 instruction stream which does not precisely correspond to the
9715 bytes we are disassembling. */
9716 if ((prefixes
& ~used_prefixes
) != 0)
9720 name
= prefix_name (priv
.the_buffer
[0], priv
.orig_sizeflag
);
9722 name
= INTERNAL_DISASSEMBLER_ERROR
;
9723 (*info
->fprintf_func
) (info
->stream
, "%s", name
);
9726 if ((rex_original
& ~rex_used
) || rex_ignored
)
9729 name
= prefix_name (rex_original
, priv
.orig_sizeflag
);
9731 name
= INTERNAL_DISASSEMBLER_ERROR
;
9732 (*info
->fprintf_func
) (info
->stream
, "%s ", name
);
9736 prefix_obufp
= prefix_obuf
;
9738 prefix_obufp
= stpcpy (prefix_obufp
, lock_prefix
);
9740 prefix_obufp
= stpcpy (prefix_obufp
, repz_prefix
);
9742 prefix_obufp
= stpcpy (prefix_obufp
, repnz_prefix
);
9744 prefix_obufp
= stpcpy (prefix_obufp
, addr_prefix
);
9746 prefix_obufp
= stpcpy (prefix_obufp
, data_prefix
);
9748 if (prefix_obuf
[0] != 0)
9749 (*info
->fprintf_func
) (info
->stream
, "%s", prefix_obuf
);
9751 obufp
= mnemonicendp
;
9752 for (i
= strlen (obuf
) + strlen (prefix_obuf
); i
< 6; i
++)
9755 (*info
->fprintf_func
) (info
->stream
, "%s", obuf
);
9757 /* The enter and bound instructions are printed with operands in the same
9758 order as the intel book; everything else is printed in reverse order. */
9759 if (intel_syntax
|| two_source_ops
)
9763 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
9764 op_txt
[i
] = op_out
[i
];
9766 for (i
= 0; i
< (MAX_OPERANDS
>> 1); ++i
)
9768 op_ad
= op_index
[i
];
9769 op_index
[i
] = op_index
[MAX_OPERANDS
- 1 - i
];
9770 op_index
[MAX_OPERANDS
- 1 - i
] = op_ad
;
9771 riprel
= op_riprel
[i
];
9772 op_riprel
[i
] = op_riprel
[MAX_OPERANDS
- 1 - i
];
9773 op_riprel
[MAX_OPERANDS
- 1 - i
] = riprel
;
9778 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
9779 op_txt
[MAX_OPERANDS
- 1 - i
] = op_out
[i
];
9783 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
9787 (*info
->fprintf_func
) (info
->stream
, ",");
9788 if (op_index
[i
] != -1 && !op_riprel
[i
])
9789 (*info
->print_address_func
) ((bfd_vma
) op_address
[op_index
[i
]], info
);
9791 (*info
->fprintf_func
) (info
->stream
, "%s", op_txt
[i
]);
9795 for (i
= 0; i
< MAX_OPERANDS
; i
++)
9796 if (op_index
[i
] != -1 && op_riprel
[i
])
9798 (*info
->fprintf_func
) (info
->stream
, " # ");
9799 (*info
->print_address_func
) ((bfd_vma
) (start_pc
+ codep
- start_codep
9800 + op_address
[op_index
[i
]]), info
);
9803 return codep
- priv
.the_buffer
;
9806 static const char *float_mem
[] = {
9881 static const unsigned char float_mem_mode
[] = {
9956 #define ST { OP_ST, 0 }
9957 #define STi { OP_STi, 0 }
9959 #define FGRPd9_2 NULL, { { NULL, 0 } }
9960 #define FGRPd9_4 NULL, { { NULL, 1 } }
9961 #define FGRPd9_5 NULL, { { NULL, 2 } }
9962 #define FGRPd9_6 NULL, { { NULL, 3 } }
9963 #define FGRPd9_7 NULL, { { NULL, 4 } }
9964 #define FGRPda_5 NULL, { { NULL, 5 } }
9965 #define FGRPdb_4 NULL, { { NULL, 6 } }
9966 #define FGRPde_3 NULL, { { NULL, 7 } }
9967 #define FGRPdf_4 NULL, { { NULL, 8 } }
9969 static const struct dis386 float_reg
[][8] = {
9972 { "fadd", { ST
, STi
} },
9973 { "fmul", { ST
, STi
} },
9974 { "fcom", { STi
} },
9975 { "fcomp", { STi
} },
9976 { "fsub", { ST
, STi
} },
9977 { "fsubr", { ST
, STi
} },
9978 { "fdiv", { ST
, STi
} },
9979 { "fdivr", { ST
, STi
} },
9984 { "fxch", { STi
} },
9986 { "(bad)", { XX
} },
9994 { "fcmovb", { ST
, STi
} },
9995 { "fcmove", { ST
, STi
} },
9996 { "fcmovbe",{ ST
, STi
} },
9997 { "fcmovu", { ST
, STi
} },
9998 { "(bad)", { XX
} },
10000 { "(bad)", { XX
} },
10001 { "(bad)", { XX
} },
10005 { "fcmovnb",{ ST
, STi
} },
10006 { "fcmovne",{ ST
, STi
} },
10007 { "fcmovnbe",{ ST
, STi
} },
10008 { "fcmovnu",{ ST
, STi
} },
10010 { "fucomi", { ST
, STi
} },
10011 { "fcomi", { ST
, STi
} },
10012 { "(bad)", { XX
} },
10016 { "fadd", { STi
, ST
} },
10017 { "fmul", { STi
, ST
} },
10018 { "(bad)", { XX
} },
10019 { "(bad)", { XX
} },
10020 { "fsub!M", { STi
, ST
} },
10021 { "fsubM", { STi
, ST
} },
10022 { "fdiv!M", { STi
, ST
} },
10023 { "fdivM", { STi
, ST
} },
10027 { "ffree", { STi
} },
10028 { "(bad)", { XX
} },
10029 { "fst", { STi
} },
10030 { "fstp", { STi
} },
10031 { "fucom", { STi
} },
10032 { "fucomp", { STi
} },
10033 { "(bad)", { XX
} },
10034 { "(bad)", { XX
} },
10038 { "faddp", { STi
, ST
} },
10039 { "fmulp", { STi
, ST
} },
10040 { "(bad)", { XX
} },
10042 { "fsub!Mp", { STi
, ST
} },
10043 { "fsubMp", { STi
, ST
} },
10044 { "fdiv!Mp", { STi
, ST
} },
10045 { "fdivMp", { STi
, ST
} },
10049 { "ffreep", { STi
} },
10050 { "(bad)", { XX
} },
10051 { "(bad)", { XX
} },
10052 { "(bad)", { XX
} },
10054 { "fucomip", { ST
, STi
} },
10055 { "fcomip", { ST
, STi
} },
10056 { "(bad)", { XX
} },
10060 static char *fgrps
[][8] = {
10063 "fnop","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10068 "fchs","fabs","(bad)","(bad)","ftst","fxam","(bad)","(bad)",
10073 "fld1","fldl2t","fldl2e","fldpi","fldlg2","fldln2","fldz","(bad)",
10078 "f2xm1","fyl2x","fptan","fpatan","fxtract","fprem1","fdecstp","fincstp",
10083 "fprem","fyl2xp1","fsqrt","fsincos","frndint","fscale","fsin","fcos",
10088 "(bad)","fucompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10093 "fNeni(8087 only)","fNdisi(8087 only)","fNclex","fNinit",
10094 "fNsetpm(287 only)","frstpm(287 only)","(bad)","(bad)",
10099 "(bad)","fcompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10104 "fNstsw","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
10109 swap_operand (void)
10111 mnemonicendp
[0] = '.';
10112 mnemonicendp
[1] = 's';
10117 OP_Skip_MODRM (int bytemode ATTRIBUTE_UNUSED
,
10118 int sizeflag ATTRIBUTE_UNUSED
)
10120 /* Skip mod/rm byte. */
10126 dofloat (int sizeflag
)
10128 const struct dis386
*dp
;
10129 unsigned char floatop
;
10131 floatop
= codep
[-1];
10133 if (modrm
.mod
!= 3)
10135 int fp_indx
= (floatop
- 0xd8) * 8 + modrm
.reg
;
10137 putop (float_mem
[fp_indx
], sizeflag
);
10140 OP_E (float_mem_mode
[fp_indx
], sizeflag
);
10143 /* Skip mod/rm byte. */
10147 dp
= &float_reg
[floatop
- 0xd8][modrm
.reg
];
10148 if (dp
->name
== NULL
)
10150 putop (fgrps
[dp
->op
[0].bytemode
][modrm
.rm
], sizeflag
);
10152 /* Instruction fnstsw is only one with strange arg. */
10153 if (floatop
== 0xdf && codep
[-1] == 0xe0)
10154 strcpy (op_out
[0], names16
[0]);
10158 putop (dp
->name
, sizeflag
);
10163 (*dp
->op
[0].rtn
) (dp
->op
[0].bytemode
, sizeflag
);
10168 (*dp
->op
[1].rtn
) (dp
->op
[1].bytemode
, sizeflag
);
10173 OP_ST (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
10175 oappend ("%st" + intel_syntax
);
10179 OP_STi (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
10181 sprintf (scratchbuf
, "%%st(%d)", modrm
.rm
);
10182 oappend (scratchbuf
+ intel_syntax
);
10185 /* Capital letters in template are macros. */
10187 putop (const char *in_template
, int sizeflag
)
10192 unsigned int l
= 0, len
= 1;
10195 #define SAVE_LAST(c) \
10196 if (l < len && l < sizeof (last)) \
10201 for (p
= in_template
; *p
; p
++)
10218 while (*++p
!= '|')
10219 if (*p
== '}' || *p
== '\0')
10222 /* Fall through. */
10227 while (*++p
!= '}')
10238 if (modrm
.mod
!= 3 || (sizeflag
& SUFFIX_ALWAYS
))
10244 if (sizeflag
& SUFFIX_ALWAYS
)
10248 if (intel_syntax
&& !alt
)
10250 if ((prefixes
& PREFIX_DATA
) || (sizeflag
& SUFFIX_ALWAYS
))
10252 if (sizeflag
& DFLAG
)
10253 *obufp
++ = intel_syntax
? 'd' : 'l';
10255 *obufp
++ = intel_syntax
? 'w' : 's';
10256 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10260 if (intel_syntax
|| !(sizeflag
& SUFFIX_ALWAYS
))
10263 if (modrm
.mod
== 3)
10267 else if (sizeflag
& DFLAG
)
10268 *obufp
++ = intel_syntax
? 'd' : 'l';
10271 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10276 case 'E': /* For jcxz/jecxz */
10277 if (address_mode
== mode_64bit
)
10279 if (sizeflag
& AFLAG
)
10285 if (sizeflag
& AFLAG
)
10287 used_prefixes
|= (prefixes
& PREFIX_ADDR
);
10292 if ((prefixes
& PREFIX_ADDR
) || (sizeflag
& SUFFIX_ALWAYS
))
10294 if (sizeflag
& AFLAG
)
10295 *obufp
++ = address_mode
== mode_64bit
? 'q' : 'l';
10297 *obufp
++ = address_mode
== mode_64bit
? 'l' : 'w';
10298 used_prefixes
|= (prefixes
& PREFIX_ADDR
);
10302 if (intel_syntax
|| (obufp
[-1] != 's' && !(sizeflag
& SUFFIX_ALWAYS
)))
10304 if ((rex
& REX_W
) || (sizeflag
& DFLAG
))
10308 if (!(rex
& REX_W
))
10309 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10314 if ((prefixes
& (PREFIX_CS
| PREFIX_DS
)) == PREFIX_CS
10315 || (prefixes
& (PREFIX_CS
| PREFIX_DS
)) == PREFIX_DS
)
10317 used_prefixes
|= prefixes
& (PREFIX_CS
| PREFIX_DS
);
10320 if (prefixes
& PREFIX_DS
)
10341 if (address_mode
== mode_64bit
&& (sizeflag
& SUFFIX_ALWAYS
))
10346 /* Fall through. */
10349 if (l
!= 0 || len
!= 1)
10357 if (sizeflag
& SUFFIX_ALWAYS
)
10361 if (intel_mnemonic
!= cond
)
10365 if ((prefixes
& PREFIX_FWAIT
) == 0)
10368 used_prefixes
|= PREFIX_FWAIT
;
10374 else if (intel_syntax
&& (sizeflag
& DFLAG
))
10378 if (!(rex
& REX_W
))
10379 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10384 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
10389 /* Fall through. */
10393 if ((prefixes
& PREFIX_DATA
)
10395 || (sizeflag
& SUFFIX_ALWAYS
))
10402 if (sizeflag
& DFLAG
)
10407 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10413 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
10415 if (modrm
.mod
!= 3 || (sizeflag
& SUFFIX_ALWAYS
))
10419 /* Fall through. */
10422 if (l
== 0 && len
== 1)
10425 if (intel_syntax
&& !alt
)
10428 if (modrm
.mod
!= 3 || (sizeflag
& SUFFIX_ALWAYS
))
10434 if (sizeflag
& DFLAG
)
10435 *obufp
++ = intel_syntax
? 'd' : 'l';
10439 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10444 if (l
!= 1 || len
!= 2 || last
[0] != 'L')
10450 || (modrm
.mod
== 3 && !(sizeflag
& SUFFIX_ALWAYS
)))
10465 else if (sizeflag
& DFLAG
)
10474 if (intel_syntax
&& !p
[1]
10475 && ((rex
& REX_W
) || (sizeflag
& DFLAG
)))
10477 if (!(rex
& REX_W
))
10478 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10483 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
10485 if (sizeflag
& SUFFIX_ALWAYS
)
10489 /* Fall through. */
10493 if (sizeflag
& SUFFIX_ALWAYS
)
10499 if (sizeflag
& DFLAG
)
10503 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10508 if (l
!= 0 || len
!= 1)
10513 if (need_vex
&& vex
.prefix
)
10515 if (vex
.prefix
== DATA_PREFIX_OPCODE
)
10520 else if (prefixes
& PREFIX_DATA
)
10524 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10527 if (l
== 0 && len
== 1)
10529 if (intel_syntax
|| !(sizeflag
& SUFFIX_ALWAYS
))
10540 if (l
!= 1 || len
!= 2 || last
[0] != 'X')
10548 || (modrm
.mod
== 3 && !(sizeflag
& SUFFIX_ALWAYS
)))
10550 switch (vex
.length
)
10564 if (l
== 0 && len
== 1)
10566 /* operand size flag for cwtl, cbtw */
10575 else if (sizeflag
& DFLAG
)
10579 if (!(rex
& REX_W
))
10580 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10584 if (l
!= 1 || len
!= 2 || last
[0] != 'X')
10591 *obufp
++ = vex
.w
? 'd': 's';
10598 mnemonicendp
= obufp
;
10603 oappend (const char *s
)
10605 obufp
= stpcpy (obufp
, s
);
10611 if (prefixes
& PREFIX_CS
)
10613 used_prefixes
|= PREFIX_CS
;
10614 oappend ("%cs:" + intel_syntax
);
10616 if (prefixes
& PREFIX_DS
)
10618 used_prefixes
|= PREFIX_DS
;
10619 oappend ("%ds:" + intel_syntax
);
10621 if (prefixes
& PREFIX_SS
)
10623 used_prefixes
|= PREFIX_SS
;
10624 oappend ("%ss:" + intel_syntax
);
10626 if (prefixes
& PREFIX_ES
)
10628 used_prefixes
|= PREFIX_ES
;
10629 oappend ("%es:" + intel_syntax
);
10631 if (prefixes
& PREFIX_FS
)
10633 used_prefixes
|= PREFIX_FS
;
10634 oappend ("%fs:" + intel_syntax
);
10636 if (prefixes
& PREFIX_GS
)
10638 used_prefixes
|= PREFIX_GS
;
10639 oappend ("%gs:" + intel_syntax
);
10644 OP_indirE (int bytemode
, int sizeflag
)
10648 OP_E (bytemode
, sizeflag
);
10652 print_operand_value (char *buf
, int hex
, bfd_vma disp
)
10654 if (address_mode
== mode_64bit
)
10662 sprintf_vma (tmp
, disp
);
10663 for (i
= 0; tmp
[i
] == '0' && tmp
[i
+ 1]; i
++);
10664 strcpy (buf
+ 2, tmp
+ i
);
10668 bfd_signed_vma v
= disp
;
10675 /* Check for possible overflow on 0x8000000000000000. */
10678 strcpy (buf
, "9223372036854775808");
10692 tmp
[28 - i
] = (v
% 10) + '0';
10696 strcpy (buf
, tmp
+ 29 - i
);
10702 sprintf (buf
, "0x%x", (unsigned int) disp
);
10704 sprintf (buf
, "%d", (int) disp
);
10708 /* Put DISP in BUF as signed hex number. */
10711 print_displacement (char *buf
, bfd_vma disp
)
10713 bfd_signed_vma val
= disp
;
10722 /* Check for possible overflow. */
10725 switch (address_mode
)
10728 strcpy (buf
+ j
, "0x8000000000000000");
10731 strcpy (buf
+ j
, "0x80000000");
10734 strcpy (buf
+ j
, "0x8000");
10744 sprintf_vma (tmp
, (bfd_vma
) val
);
10745 for (i
= 0; tmp
[i
] == '0'; i
++)
10747 if (tmp
[i
] == '\0')
10749 strcpy (buf
+ j
, tmp
+ i
);
10753 intel_operand_size (int bytemode
, int sizeflag
)
10760 oappend ("BYTE PTR ");
10764 oappend ("WORD PTR ");
10767 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
10769 oappend ("QWORD PTR ");
10770 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10779 oappend ("QWORD PTR ");
10780 else if ((sizeflag
& DFLAG
) || bytemode
== dq_mode
)
10781 oappend ("DWORD PTR ");
10783 oappend ("WORD PTR ");
10784 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10787 if ((rex
& REX_W
) || (sizeflag
& DFLAG
))
10789 oappend ("WORD PTR ");
10790 if (!(rex
& REX_W
))
10791 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10794 if (sizeflag
& DFLAG
)
10795 oappend ("QWORD PTR ");
10797 oappend ("DWORD PTR ");
10798 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10803 oappend ("DWORD PTR ");
10807 oappend ("QWORD PTR ");
10810 if (address_mode
== mode_64bit
)
10811 oappend ("QWORD PTR ");
10813 oappend ("DWORD PTR ");
10816 if (sizeflag
& DFLAG
)
10817 oappend ("FWORD PTR ");
10819 oappend ("DWORD PTR ");
10820 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10823 oappend ("TBYTE PTR ");
10829 switch (vex
.length
)
10832 oappend ("XMMWORD PTR ");
10835 oappend ("YMMWORD PTR ");
10842 oappend ("XMMWORD PTR ");
10845 oappend ("XMMWORD PTR ");
10851 switch (vex
.length
)
10854 oappend ("QWORD PTR ");
10857 oappend ("XMMWORD PTR ");
10867 switch (vex
.length
)
10870 oappend ("QWORD PTR ");
10873 oappend ("YMMWORD PTR ");
10880 oappend ("OWORD PTR ");
10882 case vex_w_dq_mode
:
10887 oappend ("QWORD PTR ");
10889 oappend ("DWORD PTR ");
10897 OP_E_register (int bytemode
, int sizeflag
)
10899 int reg
= modrm
.rm
;
10900 const char **names
;
10906 if ((sizeflag
& SUFFIX_ALWAYS
)
10907 && (bytemode
== b_swap_mode
|| bytemode
== v_swap_mode
))
10930 names
= address_mode
== mode_64bit
? names64
: names32
;
10933 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
10936 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10950 else if ((sizeflag
& DFLAG
)
10951 || (bytemode
!= v_mode
10952 && bytemode
!= v_swap_mode
))
10956 used_prefixes
|= (prefixes
& PREFIX_DATA
);
10961 oappend (INTERNAL_DISASSEMBLER_ERROR
);
10964 oappend (names
[reg
]);
10968 OP_E_memory (int bytemode
, int sizeflag
)
10971 int add
= (rex
& REX_B
) ? 8 : 0;
10976 intel_operand_size (bytemode
, sizeflag
);
10979 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
10981 /* 32/64 bit address mode */
10999 FETCH_DATA (the_info
, codep
+ 1);
11000 index
= (*codep
>> 3) & 7;
11001 scale
= (*codep
>> 6) & 3;
11006 haveindex
= index
!= 4;
11009 rbase
= base
+ add
;
11017 if (address_mode
== mode_64bit
&& !havesib
)
11023 FETCH_DATA (the_info
, codep
+ 1);
11025 if ((disp
& 0x80) != 0)
11033 /* In 32bit mode, we need index register to tell [offset] from
11034 [eiz*1 + offset]. */
11035 needindex
= (havesib
11038 && address_mode
== mode_32bit
);
11039 havedisp
= (havebase
11041 || (havesib
&& (haveindex
|| scale
!= 0)));
11044 if (modrm
.mod
!= 0 || base
== 5)
11046 if (havedisp
|| riprel
)
11047 print_displacement (scratchbuf
, disp
);
11049 print_operand_value (scratchbuf
, 1, disp
);
11050 oappend (scratchbuf
);
11054 oappend (sizeflag
& AFLAG
? "(%rip)" : "(%eip)");
11058 if (havebase
|| haveindex
|| riprel
)
11059 used_prefixes
|= PREFIX_ADDR
;
11061 if (havedisp
|| (intel_syntax
&& riprel
))
11063 *obufp
++ = open_char
;
11064 if (intel_syntax
&& riprel
)
11067 oappend (sizeflag
& AFLAG
? "rip" : "eip");
11071 oappend (address_mode
== mode_64bit
&& (sizeflag
& AFLAG
)
11072 ? names64
[rbase
] : names32
[rbase
]);
11075 /* ESP/RSP won't allow index. If base isn't ESP/RSP,
11076 print index to tell base + index from base. */
11080 || (havebase
&& base
!= ESP_REG_NUM
))
11082 if (!intel_syntax
|| havebase
)
11084 *obufp
++ = separator_char
;
11088 oappend (address_mode
== mode_64bit
11089 && (sizeflag
& AFLAG
)
11090 ? names64
[index
] : names32
[index
]);
11092 oappend (address_mode
== mode_64bit
11093 && (sizeflag
& AFLAG
)
11094 ? index64
: index32
);
11096 *obufp
++ = scale_char
;
11098 sprintf (scratchbuf
, "%d", 1 << scale
);
11099 oappend (scratchbuf
);
11103 && (disp
|| modrm
.mod
!= 0 || base
== 5))
11105 if (!havedisp
|| (bfd_signed_vma
) disp
>= 0)
11110 else if (modrm
.mod
!= 1 && disp
!= -disp
)
11114 disp
= - (bfd_signed_vma
) disp
;
11118 print_displacement (scratchbuf
, disp
);
11120 print_operand_value (scratchbuf
, 1, disp
);
11121 oappend (scratchbuf
);
11124 *obufp
++ = close_char
;
11127 else if (intel_syntax
)
11129 if (modrm
.mod
!= 0 || base
== 5)
11131 if (prefixes
& (PREFIX_CS
| PREFIX_SS
| PREFIX_DS
11132 | PREFIX_ES
| PREFIX_FS
| PREFIX_GS
))
11136 oappend (names_seg
[ds_reg
- es_reg
]);
11139 print_operand_value (scratchbuf
, 1, disp
);
11140 oappend (scratchbuf
);
11145 { /* 16 bit address mode */
11152 if ((disp
& 0x8000) != 0)
11157 FETCH_DATA (the_info
, codep
+ 1);
11159 if ((disp
& 0x80) != 0)
11164 if ((disp
& 0x8000) != 0)
11170 if (modrm
.mod
!= 0 || modrm
.rm
== 6)
11172 print_displacement (scratchbuf
, disp
);
11173 oappend (scratchbuf
);
11176 if (modrm
.mod
!= 0 || modrm
.rm
!= 6)
11178 *obufp
++ = open_char
;
11180 oappend (index16
[modrm
.rm
]);
11182 && (disp
|| modrm
.mod
!= 0 || modrm
.rm
== 6))
11184 if ((bfd_signed_vma
) disp
>= 0)
11189 else if (modrm
.mod
!= 1)
11193 disp
= - (bfd_signed_vma
) disp
;
11196 print_displacement (scratchbuf
, disp
);
11197 oappend (scratchbuf
);
11200 *obufp
++ = close_char
;
11203 else if (intel_syntax
)
11205 if (prefixes
& (PREFIX_CS
| PREFIX_SS
| PREFIX_DS
11206 | PREFIX_ES
| PREFIX_FS
| PREFIX_GS
))
11210 oappend (names_seg
[ds_reg
- es_reg
]);
11213 print_operand_value (scratchbuf
, 1, disp
& 0xffff);
11214 oappend (scratchbuf
);
11220 OP_E_extended (int bytemode
, int sizeflag
)
11222 /* Skip mod/rm byte. */
11226 if (modrm
.mod
== 3)
11227 OP_E_register (bytemode
, sizeflag
);
11229 OP_E_memory (bytemode
, sizeflag
);
11233 OP_E (int bytemode
, int sizeflag
)
11235 OP_E_extended (bytemode
, sizeflag
);
11240 OP_G (int bytemode
, int sizeflag
)
11251 oappend (names8rex
[modrm
.reg
+ add
]);
11253 oappend (names8
[modrm
.reg
+ add
]);
11256 oappend (names16
[modrm
.reg
+ add
]);
11259 oappend (names32
[modrm
.reg
+ add
]);
11262 oappend (names64
[modrm
.reg
+ add
]);
11271 oappend (names64
[modrm
.reg
+ add
]);
11272 else if ((sizeflag
& DFLAG
) || bytemode
!= v_mode
)
11273 oappend (names32
[modrm
.reg
+ add
]);
11275 oappend (names16
[modrm
.reg
+ add
]);
11276 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11279 if (address_mode
== mode_64bit
)
11280 oappend (names64
[modrm
.reg
+ add
]);
11282 oappend (names32
[modrm
.reg
+ add
]);
11285 oappend (INTERNAL_DISASSEMBLER_ERROR
);
11298 FETCH_DATA (the_info
, codep
+ 8);
11299 a
= *codep
++ & 0xff;
11300 a
|= (*codep
++ & 0xff) << 8;
11301 a
|= (*codep
++ & 0xff) << 16;
11302 a
|= (*codep
++ & 0xff) << 24;
11303 b
= *codep
++ & 0xff;
11304 b
|= (*codep
++ & 0xff) << 8;
11305 b
|= (*codep
++ & 0xff) << 16;
11306 b
|= (*codep
++ & 0xff) << 24;
11307 x
= a
+ ((bfd_vma
) b
<< 32);
11315 static bfd_signed_vma
11318 bfd_signed_vma x
= 0;
11320 FETCH_DATA (the_info
, codep
+ 4);
11321 x
= *codep
++ & (bfd_signed_vma
) 0xff;
11322 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 8;
11323 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 16;
11324 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 24;
11328 static bfd_signed_vma
11331 bfd_signed_vma x
= 0;
11333 FETCH_DATA (the_info
, codep
+ 4);
11334 x
= *codep
++ & (bfd_signed_vma
) 0xff;
11335 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 8;
11336 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 16;
11337 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 24;
11339 x
= (x
^ ((bfd_signed_vma
) 1 << 31)) - ((bfd_signed_vma
) 1 << 31);
11349 FETCH_DATA (the_info
, codep
+ 2);
11350 x
= *codep
++ & 0xff;
11351 x
|= (*codep
++ & 0xff) << 8;
11356 set_op (bfd_vma op
, int riprel
)
11358 op_index
[op_ad
] = op_ad
;
11359 if (address_mode
== mode_64bit
)
11361 op_address
[op_ad
] = op
;
11362 op_riprel
[op_ad
] = riprel
;
11366 /* Mask to get a 32-bit address. */
11367 op_address
[op_ad
] = op
& 0xffffffff;
11368 op_riprel
[op_ad
] = riprel
& 0xffffffff;
11373 OP_REG (int code
, int sizeflag
)
11385 case ax_reg
: case cx_reg
: case dx_reg
: case bx_reg
:
11386 case sp_reg
: case bp_reg
: case si_reg
: case di_reg
:
11387 s
= names16
[code
- ax_reg
+ add
];
11389 case es_reg
: case ss_reg
: case cs_reg
:
11390 case ds_reg
: case fs_reg
: case gs_reg
:
11391 s
= names_seg
[code
- es_reg
+ add
];
11393 case al_reg
: case ah_reg
: case cl_reg
: case ch_reg
:
11394 case dl_reg
: case dh_reg
: case bl_reg
: case bh_reg
:
11397 s
= names8rex
[code
- al_reg
+ add
];
11399 s
= names8
[code
- al_reg
];
11401 case rAX_reg
: case rCX_reg
: case rDX_reg
: case rBX_reg
:
11402 case rSP_reg
: case rBP_reg
: case rSI_reg
: case rDI_reg
:
11403 if (address_mode
== mode_64bit
&& (sizeflag
& DFLAG
))
11405 s
= names64
[code
- rAX_reg
+ add
];
11408 code
+= eAX_reg
- rAX_reg
;
11409 /* Fall through. */
11410 case eAX_reg
: case eCX_reg
: case eDX_reg
: case eBX_reg
:
11411 case eSP_reg
: case eBP_reg
: case eSI_reg
: case eDI_reg
:
11414 s
= names64
[code
- eAX_reg
+ add
];
11415 else if (sizeflag
& DFLAG
)
11416 s
= names32
[code
- eAX_reg
+ add
];
11418 s
= names16
[code
- eAX_reg
+ add
];
11419 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11422 s
= INTERNAL_DISASSEMBLER_ERROR
;
11429 OP_IMREG (int code
, int sizeflag
)
11441 case ax_reg
: case cx_reg
: case dx_reg
: case bx_reg
:
11442 case sp_reg
: case bp_reg
: case si_reg
: case di_reg
:
11443 s
= names16
[code
- ax_reg
];
11445 case es_reg
: case ss_reg
: case cs_reg
:
11446 case ds_reg
: case fs_reg
: case gs_reg
:
11447 s
= names_seg
[code
- es_reg
];
11449 case al_reg
: case ah_reg
: case cl_reg
: case ch_reg
:
11450 case dl_reg
: case dh_reg
: case bl_reg
: case bh_reg
:
11453 s
= names8rex
[code
- al_reg
];
11455 s
= names8
[code
- al_reg
];
11457 case eAX_reg
: case eCX_reg
: case eDX_reg
: case eBX_reg
:
11458 case eSP_reg
: case eBP_reg
: case eSI_reg
: case eDI_reg
:
11461 s
= names64
[code
- eAX_reg
];
11462 else if (sizeflag
& DFLAG
)
11463 s
= names32
[code
- eAX_reg
];
11465 s
= names16
[code
- eAX_reg
];
11466 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11468 case z_mode_ax_reg
:
11469 if ((rex
& REX_W
) || (sizeflag
& DFLAG
))
11473 if (!(rex
& REX_W
))
11474 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11477 s
= INTERNAL_DISASSEMBLER_ERROR
;
11484 OP_I (int bytemode
, int sizeflag
)
11487 bfd_signed_vma mask
= -1;
11492 FETCH_DATA (the_info
, codep
+ 1);
11497 if (address_mode
== mode_64bit
)
11502 /* Fall through. */
11507 else if (sizeflag
& DFLAG
)
11517 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11528 oappend (INTERNAL_DISASSEMBLER_ERROR
);
11533 scratchbuf
[0] = '$';
11534 print_operand_value (scratchbuf
+ 1, 1, op
);
11535 oappend (scratchbuf
+ intel_syntax
);
11536 scratchbuf
[0] = '\0';
11540 OP_I64 (int bytemode
, int sizeflag
)
11543 bfd_signed_vma mask
= -1;
11545 if (address_mode
!= mode_64bit
)
11547 OP_I (bytemode
, sizeflag
);
11554 FETCH_DATA (the_info
, codep
+ 1);
11562 else if (sizeflag
& DFLAG
)
11572 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11579 oappend (INTERNAL_DISASSEMBLER_ERROR
);
11584 scratchbuf
[0] = '$';
11585 print_operand_value (scratchbuf
+ 1, 1, op
);
11586 oappend (scratchbuf
+ intel_syntax
);
11587 scratchbuf
[0] = '\0';
11591 OP_sI (int bytemode
, int sizeflag
)
11594 bfd_signed_vma mask
= -1;
11599 FETCH_DATA (the_info
, codep
+ 1);
11601 if ((op
& 0x80) != 0)
11609 else if (sizeflag
& DFLAG
)
11618 if ((op
& 0x8000) != 0)
11621 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11626 if ((op
& 0x8000) != 0)
11630 oappend (INTERNAL_DISASSEMBLER_ERROR
);
11634 scratchbuf
[0] = '$';
11635 print_operand_value (scratchbuf
+ 1, 1, op
);
11636 oappend (scratchbuf
+ intel_syntax
);
11640 OP_J (int bytemode
, int sizeflag
)
11644 bfd_vma segment
= 0;
11649 FETCH_DATA (the_info
, codep
+ 1);
11651 if ((disp
& 0x80) != 0)
11655 if ((sizeflag
& DFLAG
) || (rex
& REX_W
))
11660 if ((disp
& 0x8000) != 0)
11662 /* In 16bit mode, address is wrapped around at 64k within
11663 the same segment. Otherwise, a data16 prefix on a jump
11664 instruction means that the pc is masked to 16 bits after
11665 the displacement is added! */
11667 if ((prefixes
& PREFIX_DATA
) == 0)
11668 segment
= ((start_pc
+ codep
- start_codep
)
11669 & ~((bfd_vma
) 0xffff));
11671 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11674 oappend (INTERNAL_DISASSEMBLER_ERROR
);
11677 disp
= ((start_pc
+ codep
- start_codep
+ disp
) & mask
) | segment
;
11679 print_operand_value (scratchbuf
, 1, disp
);
11680 oappend (scratchbuf
);
11684 OP_SEG (int bytemode
, int sizeflag
)
11686 if (bytemode
== w_mode
)
11687 oappend (names_seg
[modrm
.reg
]);
11689 OP_E (modrm
.mod
== 3 ? bytemode
: w_mode
, sizeflag
);
11693 OP_DIR (int dummy ATTRIBUTE_UNUSED
, int sizeflag
)
11697 if (sizeflag
& DFLAG
)
11707 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11709 sprintf (scratchbuf
, "0x%x:0x%x", seg
, offset
);
11711 sprintf (scratchbuf
, "$0x%x,$0x%x", seg
, offset
);
11712 oappend (scratchbuf
);
11716 OP_OFF (int bytemode
, int sizeflag
)
11720 if (intel_syntax
&& (sizeflag
& SUFFIX_ALWAYS
))
11721 intel_operand_size (bytemode
, sizeflag
);
11724 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
11731 if (!(prefixes
& (PREFIX_CS
| PREFIX_SS
| PREFIX_DS
11732 | PREFIX_ES
| PREFIX_FS
| PREFIX_GS
)))
11734 oappend (names_seg
[ds_reg
- es_reg
]);
11738 print_operand_value (scratchbuf
, 1, off
);
11739 oappend (scratchbuf
);
11743 OP_OFF64 (int bytemode
, int sizeflag
)
11747 if (address_mode
!= mode_64bit
11748 || (prefixes
& PREFIX_ADDR
))
11750 OP_OFF (bytemode
, sizeflag
);
11754 if (intel_syntax
&& (sizeflag
& SUFFIX_ALWAYS
))
11755 intel_operand_size (bytemode
, sizeflag
);
11762 if (!(prefixes
& (PREFIX_CS
| PREFIX_SS
| PREFIX_DS
11763 | PREFIX_ES
| PREFIX_FS
| PREFIX_GS
)))
11765 oappend (names_seg
[ds_reg
- es_reg
]);
11769 print_operand_value (scratchbuf
, 1, off
);
11770 oappend (scratchbuf
);
11774 ptr_reg (int code
, int sizeflag
)
11778 *obufp
++ = open_char
;
11779 used_prefixes
|= (prefixes
& PREFIX_ADDR
);
11780 if (address_mode
== mode_64bit
)
11782 if (!(sizeflag
& AFLAG
))
11783 s
= names32
[code
- eAX_reg
];
11785 s
= names64
[code
- eAX_reg
];
11787 else if (sizeflag
& AFLAG
)
11788 s
= names32
[code
- eAX_reg
];
11790 s
= names16
[code
- eAX_reg
];
11792 *obufp
++ = close_char
;
11797 OP_ESreg (int code
, int sizeflag
)
11803 case 0x6d: /* insw/insl */
11804 intel_operand_size (z_mode
, sizeflag
);
11806 case 0xa5: /* movsw/movsl/movsq */
11807 case 0xa7: /* cmpsw/cmpsl/cmpsq */
11808 case 0xab: /* stosw/stosl */
11809 case 0xaf: /* scasw/scasl */
11810 intel_operand_size (v_mode
, sizeflag
);
11813 intel_operand_size (b_mode
, sizeflag
);
11816 oappend ("%es:" + intel_syntax
);
11817 ptr_reg (code
, sizeflag
);
11821 OP_DSreg (int code
, int sizeflag
)
11827 case 0x6f: /* outsw/outsl */
11828 intel_operand_size (z_mode
, sizeflag
);
11830 case 0xa5: /* movsw/movsl/movsq */
11831 case 0xa7: /* cmpsw/cmpsl/cmpsq */
11832 case 0xad: /* lodsw/lodsl/lodsq */
11833 intel_operand_size (v_mode
, sizeflag
);
11836 intel_operand_size (b_mode
, sizeflag
);
11845 | PREFIX_GS
)) == 0)
11846 prefixes
|= PREFIX_DS
;
11848 ptr_reg (code
, sizeflag
);
11852 OP_C (int dummy ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
11860 else if (address_mode
!= mode_64bit
&& (prefixes
& PREFIX_LOCK
))
11862 lock_prefix
= NULL
;
11863 used_prefixes
|= PREFIX_LOCK
;
11868 sprintf (scratchbuf
, "%%cr%d", modrm
.reg
+ add
);
11869 oappend (scratchbuf
+ intel_syntax
);
11873 OP_D (int dummy ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
11882 sprintf (scratchbuf
, "db%d", modrm
.reg
+ add
);
11884 sprintf (scratchbuf
, "%%db%d", modrm
.reg
+ add
);
11885 oappend (scratchbuf
);
11889 OP_T (int dummy ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
11891 sprintf (scratchbuf
, "%%tr%d", modrm
.reg
);
11892 oappend (scratchbuf
+ intel_syntax
);
11896 OP_R (int bytemode
, int sizeflag
)
11898 if (modrm
.mod
== 3)
11899 OP_E (bytemode
, sizeflag
);
11905 OP_MMX (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
11907 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11908 if (prefixes
& PREFIX_DATA
)
11916 sprintf (scratchbuf
, "%%xmm%d", modrm
.reg
+ add
);
11919 sprintf (scratchbuf
, "%%mm%d", modrm
.reg
);
11920 oappend (scratchbuf
+ intel_syntax
);
11924 OP_XMM (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
11932 if (need_vex
&& bytemode
!= xmm_mode
)
11934 switch (vex
.length
)
11937 sprintf (scratchbuf
, "%%xmm%d", modrm
.reg
+ add
);
11940 sprintf (scratchbuf
, "%%ymm%d", modrm
.reg
+ add
);
11947 sprintf (scratchbuf
, "%%xmm%d", modrm
.reg
+ add
);
11948 oappend (scratchbuf
+ intel_syntax
);
11952 OP_EM (int bytemode
, int sizeflag
)
11954 if (modrm
.mod
!= 3)
11957 && (bytemode
== v_mode
|| bytemode
== v_swap_mode
))
11959 bytemode
= (prefixes
& PREFIX_DATA
) ? x_mode
: q_mode
;
11960 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11962 OP_E (bytemode
, sizeflag
);
11966 if ((sizeflag
& SUFFIX_ALWAYS
) && bytemode
== v_swap_mode
)
11969 /* Skip mod/rm byte. */
11972 used_prefixes
|= (prefixes
& PREFIX_DATA
);
11973 if (prefixes
& PREFIX_DATA
)
11982 sprintf (scratchbuf
, "%%xmm%d", modrm
.rm
+ add
);
11985 sprintf (scratchbuf
, "%%mm%d", modrm
.rm
);
11986 oappend (scratchbuf
+ intel_syntax
);
11989 /* cvt* are the only instructions in sse2 which have
11990 both SSE and MMX operands and also have 0x66 prefix
11991 in their opcode. 0x66 was originally used to differentiate
11992 between SSE and MMX instruction(operands). So we have to handle the
11993 cvt* separately using OP_EMC and OP_MXC */
11995 OP_EMC (int bytemode
, int sizeflag
)
11997 if (modrm
.mod
!= 3)
11999 if (intel_syntax
&& bytemode
== v_mode
)
12001 bytemode
= (prefixes
& PREFIX_DATA
) ? x_mode
: q_mode
;
12002 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12004 OP_E (bytemode
, sizeflag
);
12008 /* Skip mod/rm byte. */
12011 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12012 sprintf (scratchbuf
, "%%mm%d", modrm
.rm
);
12013 oappend (scratchbuf
+ intel_syntax
);
12017 OP_MXC (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12019 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12020 sprintf (scratchbuf
, "%%mm%d", modrm
.reg
);
12021 oappend (scratchbuf
+ intel_syntax
);
12025 OP_EX (int bytemode
, int sizeflag
)
12029 /* Skip mod/rm byte. */
12033 if (modrm
.mod
!= 3)
12035 OP_E_memory (bytemode
, sizeflag
);
12045 if ((sizeflag
& SUFFIX_ALWAYS
)
12046 && (bytemode
== x_swap_mode
12047 || bytemode
== d_swap_mode
12048 || bytemode
== q_swap_mode
))
12052 && bytemode
!= xmm_mode
12053 && bytemode
!= xmmq_mode
)
12055 switch (vex
.length
)
12058 sprintf (scratchbuf
, "%%xmm%d", modrm
.rm
+ add
);
12061 sprintf (scratchbuf
, "%%ymm%d", modrm
.rm
+ add
);
12068 sprintf (scratchbuf
, "%%xmm%d", modrm
.rm
+ add
);
12069 oappend (scratchbuf
+ intel_syntax
);
12073 OP_MS (int bytemode
, int sizeflag
)
12075 if (modrm
.mod
== 3)
12076 OP_EM (bytemode
, sizeflag
);
12082 OP_XS (int bytemode
, int sizeflag
)
12084 if (modrm
.mod
== 3)
12085 OP_EX (bytemode
, sizeflag
);
12091 OP_M (int bytemode
, int sizeflag
)
12093 if (modrm
.mod
== 3)
12094 /* bad bound,lea,lds,les,lfs,lgs,lss,cmpxchg8b,vmptrst modrm */
12097 OP_E (bytemode
, sizeflag
);
12101 OP_0f07 (int bytemode
, int sizeflag
)
12103 if (modrm
.mod
!= 3 || modrm
.rm
!= 0)
12106 OP_E (bytemode
, sizeflag
);
12109 /* NOP is an alias of "xchg %ax,%ax" in 16bit mode, "xchg %eax,%eax" in
12110 32bit mode and "xchg %rax,%rax" in 64bit mode. */
12113 NOP_Fixup1 (int bytemode
, int sizeflag
)
12115 if ((prefixes
& PREFIX_DATA
) != 0
12118 && address_mode
== mode_64bit
))
12119 OP_REG (bytemode
, sizeflag
);
12121 strcpy (obuf
, "nop");
12125 NOP_Fixup2 (int bytemode
, int sizeflag
)
12127 if ((prefixes
& PREFIX_DATA
) != 0
12130 && address_mode
== mode_64bit
))
12131 OP_IMREG (bytemode
, sizeflag
);
12134 static const char *const Suffix3DNow
[] = {
12135 /* 00 */ NULL
, NULL
, NULL
, NULL
,
12136 /* 04 */ NULL
, NULL
, NULL
, NULL
,
12137 /* 08 */ NULL
, NULL
, NULL
, NULL
,
12138 /* 0C */ "pi2fw", "pi2fd", NULL
, NULL
,
12139 /* 10 */ NULL
, NULL
, NULL
, NULL
,
12140 /* 14 */ NULL
, NULL
, NULL
, NULL
,
12141 /* 18 */ NULL
, NULL
, NULL
, NULL
,
12142 /* 1C */ "pf2iw", "pf2id", NULL
, NULL
,
12143 /* 20 */ NULL
, NULL
, NULL
, NULL
,
12144 /* 24 */ NULL
, NULL
, NULL
, NULL
,
12145 /* 28 */ NULL
, NULL
, NULL
, NULL
,
12146 /* 2C */ NULL
, NULL
, NULL
, NULL
,
12147 /* 30 */ NULL
, NULL
, NULL
, NULL
,
12148 /* 34 */ NULL
, NULL
, NULL
, NULL
,
12149 /* 38 */ NULL
, NULL
, NULL
, NULL
,
12150 /* 3C */ NULL
, NULL
, NULL
, NULL
,
12151 /* 40 */ NULL
, NULL
, NULL
, NULL
,
12152 /* 44 */ NULL
, NULL
, NULL
, NULL
,
12153 /* 48 */ NULL
, NULL
, NULL
, NULL
,
12154 /* 4C */ NULL
, NULL
, NULL
, NULL
,
12155 /* 50 */ NULL
, NULL
, NULL
, NULL
,
12156 /* 54 */ NULL
, NULL
, NULL
, NULL
,
12157 /* 58 */ NULL
, NULL
, NULL
, NULL
,
12158 /* 5C */ NULL
, NULL
, NULL
, NULL
,
12159 /* 60 */ NULL
, NULL
, NULL
, NULL
,
12160 /* 64 */ NULL
, NULL
, NULL
, NULL
,
12161 /* 68 */ NULL
, NULL
, NULL
, NULL
,
12162 /* 6C */ NULL
, NULL
, NULL
, NULL
,
12163 /* 70 */ NULL
, NULL
, NULL
, NULL
,
12164 /* 74 */ NULL
, NULL
, NULL
, NULL
,
12165 /* 78 */ NULL
, NULL
, NULL
, NULL
,
12166 /* 7C */ NULL
, NULL
, NULL
, NULL
,
12167 /* 80 */ NULL
, NULL
, NULL
, NULL
,
12168 /* 84 */ NULL
, NULL
, NULL
, NULL
,
12169 /* 88 */ NULL
, NULL
, "pfnacc", NULL
,
12170 /* 8C */ NULL
, NULL
, "pfpnacc", NULL
,
12171 /* 90 */ "pfcmpge", NULL
, NULL
, NULL
,
12172 /* 94 */ "pfmin", NULL
, "pfrcp", "pfrsqrt",
12173 /* 98 */ NULL
, NULL
, "pfsub", NULL
,
12174 /* 9C */ NULL
, NULL
, "pfadd", NULL
,
12175 /* A0 */ "pfcmpgt", NULL
, NULL
, NULL
,
12176 /* A4 */ "pfmax", NULL
, "pfrcpit1", "pfrsqit1",
12177 /* A8 */ NULL
, NULL
, "pfsubr", NULL
,
12178 /* AC */ NULL
, NULL
, "pfacc", NULL
,
12179 /* B0 */ "pfcmpeq", NULL
, NULL
, NULL
,
12180 /* B4 */ "pfmul", NULL
, "pfrcpit2", "pmulhrw",
12181 /* B8 */ NULL
, NULL
, NULL
, "pswapd",
12182 /* BC */ NULL
, NULL
, NULL
, "pavgusb",
12183 /* C0 */ NULL
, NULL
, NULL
, NULL
,
12184 /* C4 */ NULL
, NULL
, NULL
, NULL
,
12185 /* C8 */ NULL
, NULL
, NULL
, NULL
,
12186 /* CC */ NULL
, NULL
, NULL
, NULL
,
12187 /* D0 */ NULL
, NULL
, NULL
, NULL
,
12188 /* D4 */ NULL
, NULL
, NULL
, NULL
,
12189 /* D8 */ NULL
, NULL
, NULL
, NULL
,
12190 /* DC */ NULL
, NULL
, NULL
, NULL
,
12191 /* E0 */ NULL
, NULL
, NULL
, NULL
,
12192 /* E4 */ NULL
, NULL
, NULL
, NULL
,
12193 /* E8 */ NULL
, NULL
, NULL
, NULL
,
12194 /* EC */ NULL
, NULL
, NULL
, NULL
,
12195 /* F0 */ NULL
, NULL
, NULL
, NULL
,
12196 /* F4 */ NULL
, NULL
, NULL
, NULL
,
12197 /* F8 */ NULL
, NULL
, NULL
, NULL
,
12198 /* FC */ NULL
, NULL
, NULL
, NULL
,
12202 OP_3DNowSuffix (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12204 const char *mnemonic
;
12206 FETCH_DATA (the_info
, codep
+ 1);
12207 /* AMD 3DNow! instructions are specified by an opcode suffix in the
12208 place where an 8-bit immediate would normally go. ie. the last
12209 byte of the instruction. */
12210 obufp
= mnemonicendp
;
12211 mnemonic
= Suffix3DNow
[*codep
++ & 0xff];
12213 oappend (mnemonic
);
12216 /* Since a variable sized modrm/sib chunk is between the start
12217 of the opcode (0x0f0f) and the opcode suffix, we need to do
12218 all the modrm processing first, and don't know until now that
12219 we have a bad opcode. This necessitates some cleaning up. */
12220 op_out
[0][0] = '\0';
12221 op_out
[1][0] = '\0';
12224 mnemonicendp
= obufp
;
12227 static struct op simd_cmp_op
[] =
12229 { STRING_COMMA_LEN ("eq") },
12230 { STRING_COMMA_LEN ("lt") },
12231 { STRING_COMMA_LEN ("le") },
12232 { STRING_COMMA_LEN ("unord") },
12233 { STRING_COMMA_LEN ("neq") },
12234 { STRING_COMMA_LEN ("nlt") },
12235 { STRING_COMMA_LEN ("nle") },
12236 { STRING_COMMA_LEN ("ord") }
12240 CMP_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12242 unsigned int cmp_type
;
12244 FETCH_DATA (the_info
, codep
+ 1);
12245 cmp_type
= *codep
++ & 0xff;
12246 if (cmp_type
< ARRAY_SIZE (simd_cmp_op
))
12249 char *p
= mnemonicendp
- 2;
12253 sprintf (p
, "%s%s", simd_cmp_op
[cmp_type
].name
, suffix
);
12254 mnemonicendp
+= simd_cmp_op
[cmp_type
].len
;
12258 /* We have a reserved extension byte. Output it directly. */
12259 scratchbuf
[0] = '$';
12260 print_operand_value (scratchbuf
+ 1, 1, cmp_type
);
12261 oappend (scratchbuf
+ intel_syntax
);
12262 scratchbuf
[0] = '\0';
12267 OP_Mwait (int bytemode ATTRIBUTE_UNUSED
,
12268 int sizeflag ATTRIBUTE_UNUSED
)
12270 /* mwait %eax,%ecx */
12273 const char **names
= (address_mode
== mode_64bit
12274 ? names64
: names32
);
12275 strcpy (op_out
[0], names
[0]);
12276 strcpy (op_out
[1], names
[1]);
12277 two_source_ops
= 1;
12279 /* Skip mod/rm byte. */
12285 OP_Monitor (int bytemode ATTRIBUTE_UNUSED
,
12286 int sizeflag ATTRIBUTE_UNUSED
)
12288 /* monitor %eax,%ecx,%edx" */
12291 const char **op1_names
;
12292 const char **names
= (address_mode
== mode_64bit
12293 ? names64
: names32
);
12295 if (!(prefixes
& PREFIX_ADDR
))
12296 op1_names
= (address_mode
== mode_16bit
12297 ? names16
: names
);
12300 /* Remove "addr16/addr32". */
12301 addr_prefix
= NULL
;
12302 op1_names
= (address_mode
!= mode_32bit
12303 ? names32
: names16
);
12304 used_prefixes
|= PREFIX_ADDR
;
12306 strcpy (op_out
[0], op1_names
[0]);
12307 strcpy (op_out
[1], names
[1]);
12308 strcpy (op_out
[2], names
[2]);
12309 two_source_ops
= 1;
12311 /* Skip mod/rm byte. */
12319 /* Throw away prefixes and 1st. opcode byte. */
12320 codep
= insn_codep
+ 1;
12325 REP_Fixup (int bytemode
, int sizeflag
)
12327 /* The 0xf3 prefix should be displayed as "rep" for ins, outs, movs,
12329 if (prefixes
& PREFIX_REPZ
)
12330 repz_prefix
= "rep ";
12337 OP_IMREG (bytemode
, sizeflag
);
12340 OP_ESreg (bytemode
, sizeflag
);
12343 OP_DSreg (bytemode
, sizeflag
);
12352 CMPXCHG8B_Fixup (int bytemode
, int sizeflag
)
12357 /* Change cmpxchg8b to cmpxchg16b. */
12358 char *p
= mnemonicendp
- 2;
12359 mnemonicendp
= stpcpy (p
, "16b");
12362 OP_M (bytemode
, sizeflag
);
12366 XMM_Fixup (int reg
, int sizeflag ATTRIBUTE_UNUSED
)
12370 switch (vex
.length
)
12373 sprintf (scratchbuf
, "%%xmm%d", reg
);
12376 sprintf (scratchbuf
, "%%ymm%d", reg
);
12383 sprintf (scratchbuf
, "%%xmm%d", reg
);
12384 oappend (scratchbuf
+ intel_syntax
);
12388 CRC32_Fixup (int bytemode
, int sizeflag
)
12390 /* Add proper suffix to "crc32". */
12391 char *p
= mnemonicendp
;
12408 else if (sizeflag
& DFLAG
)
12412 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12415 oappend (INTERNAL_DISASSEMBLER_ERROR
);
12422 if (modrm
.mod
== 3)
12426 /* Skip mod/rm byte. */
12431 add
= (rex
& REX_B
) ? 8 : 0;
12432 if (bytemode
== b_mode
)
12436 oappend (names8rex
[modrm
.rm
+ add
]);
12438 oappend (names8
[modrm
.rm
+ add
]);
12444 oappend (names64
[modrm
.rm
+ add
]);
12445 else if ((prefixes
& PREFIX_DATA
))
12446 oappend (names16
[modrm
.rm
+ add
]);
12448 oappend (names32
[modrm
.rm
+ add
]);
12452 OP_E (bytemode
, sizeflag
);
12455 /* Display the destination register operand for instructions with
12459 OP_VEX (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
12467 switch (vex
.length
)
12480 sprintf (scratchbuf
, "%%xmm%d", vex
.register_specifier
);
12493 sprintf (scratchbuf
, "%%ymm%d", vex
.register_specifier
);
12499 oappend (scratchbuf
+ intel_syntax
);
12502 /* Get the VEX immediate byte without moving codep. */
12504 static unsigned char
12505 get_vex_imm8 (int sizeflag
)
12507 int bytes_before_imm
= 0;
12509 /* Skip mod/rm byte. */
12513 if (modrm
.mod
!= 3)
12515 /* There are SIB/displacement bytes. */
12516 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
12518 /* 32/64 bit address mode */
12519 int base
= modrm
.rm
;
12521 /* Check SIB byte. */
12524 FETCH_DATA (the_info
, codep
+ 1);
12526 bytes_before_imm
++;
12532 /* When modrm.rm == 5 or modrm.rm == 4 and base in
12533 SIB == 5, there is a 4 byte displacement. */
12535 /* No displacement. */
12538 /* 4 byte displacement. */
12539 bytes_before_imm
+= 4;
12542 /* 1 byte displacement. */
12543 bytes_before_imm
++;
12548 { /* 16 bit address mode */
12552 /* When modrm.rm == 6, there is a 2 byte displacement. */
12554 /* No displacement. */
12557 /* 2 byte displacement. */
12558 bytes_before_imm
+= 2;
12561 /* 1 byte displacement. */
12562 bytes_before_imm
++;
12568 FETCH_DATA (the_info
, codep
+ bytes_before_imm
+ 1);
12569 return codep
[bytes_before_imm
];
12573 OP_EX_VexReg (int bytemode
, int sizeflag
, int reg
)
12575 if (reg
== -1 && modrm
.mod
!= 3)
12577 OP_E_memory (bytemode
, sizeflag
);
12589 else if (reg
> 7 && address_mode
!= mode_64bit
)
12593 switch (vex
.length
)
12596 sprintf (scratchbuf
, "%%xmm%d", reg
);
12599 sprintf (scratchbuf
, "%%ymm%d", reg
);
12604 oappend (scratchbuf
+ intel_syntax
);
12608 OP_EX_VexW (int bytemode
, int sizeflag
)
12616 reg
= vex
.register_specifier
;
12621 reg
= vex
.register_specifier
;
12624 OP_EX_VexReg (bytemode
, sizeflag
, reg
);
12628 OP_VEX_FMA (int bytemode
, int sizeflag
)
12630 int reg
= get_vex_imm8 (sizeflag
) >> 4;
12632 if (reg
> 7 && address_mode
!= mode_64bit
)
12635 switch (vex
.length
)
12648 sprintf (scratchbuf
, "%%xmm%d", reg
);
12660 sprintf (scratchbuf
, "%%ymm%d", reg
);
12665 oappend (scratchbuf
+ intel_syntax
);
12669 VEXI4_Fixup (int bytemode ATTRIBUTE_UNUSED
,
12670 int sizeflag ATTRIBUTE_UNUSED
)
12672 /* Skip the immediate byte and check for invalid bits. */
12673 FETCH_DATA (the_info
, codep
+ 1);
12674 if (*codep
++ & 0xf)
12679 OP_REG_VexI4 (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
12682 FETCH_DATA (the_info
, codep
+ 1);
12685 if (bytemode
!= x_mode
)
12692 if (reg
> 7 && address_mode
!= mode_64bit
)
12695 switch (vex
.length
)
12698 sprintf (scratchbuf
, "%%xmm%d", reg
);
12701 sprintf (scratchbuf
, "%%ymm%d", reg
);
12706 oappend (scratchbuf
+ intel_syntax
);
12710 OP_XMM_VexW (int bytemode
, int sizeflag
)
12712 /* Turn off the REX.W bit since it is used for swapping operands
12715 OP_XMM (bytemode
, sizeflag
);
12719 OP_EX_Vex (int bytemode
, int sizeflag
)
12721 if (modrm
.mod
!= 3)
12723 if (vex
.register_specifier
!= 0)
12727 OP_EX (bytemode
, sizeflag
);
12731 OP_XMM_Vex (int bytemode
, int sizeflag
)
12733 if (modrm
.mod
!= 3)
12735 if (vex
.register_specifier
!= 0)
12739 OP_XMM (bytemode
, sizeflag
);
12743 VZERO_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12745 switch (vex
.length
)
12748 mnemonicendp
= stpcpy (obuf
, "vzeroupper");
12751 mnemonicendp
= stpcpy (obuf
, "vzeroall");
12758 static struct op vex_cmp_op
[] =
12760 { STRING_COMMA_LEN ("eq") },
12761 { STRING_COMMA_LEN ("lt") },
12762 { STRING_COMMA_LEN ("le") },
12763 { STRING_COMMA_LEN ("unord") },
12764 { STRING_COMMA_LEN ("neq") },
12765 { STRING_COMMA_LEN ("nlt") },
12766 { STRING_COMMA_LEN ("nle") },
12767 { STRING_COMMA_LEN ("ord") },
12768 { STRING_COMMA_LEN ("eq_uq") },
12769 { STRING_COMMA_LEN ("nge") },
12770 { STRING_COMMA_LEN ("ngt") },
12771 { STRING_COMMA_LEN ("false") },
12772 { STRING_COMMA_LEN ("neq_oq") },
12773 { STRING_COMMA_LEN ("ge") },
12774 { STRING_COMMA_LEN ("gt") },
12775 { STRING_COMMA_LEN ("true") },
12776 { STRING_COMMA_LEN ("eq_os") },
12777 { STRING_COMMA_LEN ("lt_oq") },
12778 { STRING_COMMA_LEN ("le_oq") },
12779 { STRING_COMMA_LEN ("unord_s") },
12780 { STRING_COMMA_LEN ("neq_us") },
12781 { STRING_COMMA_LEN ("nlt_uq") },
12782 { STRING_COMMA_LEN ("nle_uq") },
12783 { STRING_COMMA_LEN ("ord_s") },
12784 { STRING_COMMA_LEN ("eq_us") },
12785 { STRING_COMMA_LEN ("nge_uq") },
12786 { STRING_COMMA_LEN ("ngt_uq") },
12787 { STRING_COMMA_LEN ("false_os") },
12788 { STRING_COMMA_LEN ("neq_os") },
12789 { STRING_COMMA_LEN ("ge_oq") },
12790 { STRING_COMMA_LEN ("gt_oq") },
12791 { STRING_COMMA_LEN ("true_us") },
12795 VCMP_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
12797 unsigned int cmp_type
;
12799 FETCH_DATA (the_info
, codep
+ 1);
12800 cmp_type
= *codep
++ & 0xff;
12801 if (cmp_type
< ARRAY_SIZE (vex_cmp_op
))
12804 char *p
= mnemonicendp
- 2;
12808 sprintf (p
, "%s%s", vex_cmp_op
[cmp_type
].name
, suffix
);
12809 mnemonicendp
+= vex_cmp_op
[cmp_type
].len
;
12813 /* We have a reserved extension byte. Output it directly. */
12814 scratchbuf
[0] = '$';
12815 print_operand_value (scratchbuf
+ 1, 1, cmp_type
);
12816 oappend (scratchbuf
+ intel_syntax
);
12817 scratchbuf
[0] = '\0';
12821 static const struct op pclmul_op
[] =
12823 { STRING_COMMA_LEN ("lql") },
12824 { STRING_COMMA_LEN ("hql") },
12825 { STRING_COMMA_LEN ("lqh") },
12826 { STRING_COMMA_LEN ("hqh") }
12830 PCLMUL_Fixup (int bytemode ATTRIBUTE_UNUSED
,
12831 int sizeflag ATTRIBUTE_UNUSED
)
12833 unsigned int pclmul_type
;
12835 FETCH_DATA (the_info
, codep
+ 1);
12836 pclmul_type
= *codep
++ & 0xff;
12837 switch (pclmul_type
)
12848 if (pclmul_type
< ARRAY_SIZE (pclmul_op
))
12851 char *p
= mnemonicendp
- 3;
12856 sprintf (p
, "%s%s", pclmul_op
[pclmul_type
].name
, suffix
);
12857 mnemonicendp
+= pclmul_op
[pclmul_type
].len
;
12861 /* We have a reserved extension byte. Output it directly. */
12862 scratchbuf
[0] = '$';
12863 print_operand_value (scratchbuf
+ 1, 1, pclmul_type
);
12864 oappend (scratchbuf
+ intel_syntax
);
12865 scratchbuf
[0] = '\0';
12870 MOVBE_Fixup (int bytemode
, int sizeflag
)
12872 /* Add proper suffix to "movbe". */
12873 char *p
= mnemonicendp
;
12882 if (sizeflag
& SUFFIX_ALWAYS
)
12886 else if (sizeflag
& DFLAG
)
12891 used_prefixes
|= (prefixes
& PREFIX_DATA
);
12894 oappend (INTERNAL_DISASSEMBLER_ERROR
);
12901 OP_M (bytemode
, sizeflag
);