1 /* Print i386 instructions for GDB, the GNU debugger.
2 Copyright (C) 1988-2016 Free Software Foundation, Inc.
4 This file is part of the GNU opcodes library.
6 This library is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3, or (at your option)
11 It is distributed in the hope that it will be useful, but WITHOUT
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
14 License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
19 MA 02110-1301, USA. */
22 /* 80386 instruction printer by Pace Willisson (pace@prep.ai.mit.edu)
24 modified by John Hassey (hassey@dg-rtp.dg.com)
25 x86-64 support added by Jan Hubicka (jh@suse.cz)
26 VIA PadLock support by Michal Ludvig (mludvig@suse.cz). */
28 /* The main tables describing the instructions is essentially a copy
29 of the "Opcode Map" chapter (Appendix A) of the Intel 80386
30 Programmers Manual. Usually, there is a capital letter, followed
31 by a small letter. The capital letter tell the addressing mode,
32 and the small letter tells about the operand size. Refer to
33 the Intel manual for details. */
38 #include "opcode/i386.h"
39 #include "libiberty.h"
43 static int print_insn (bfd_vma
, disassemble_info
*);
44 static void dofloat (int);
45 static void OP_ST (int, int);
46 static void OP_STi (int, int);
47 static int putop (const char *, int);
48 static void oappend (const char *);
49 static void append_seg (void);
50 static void OP_indirE (int, int);
51 static void print_operand_value (char *, int, bfd_vma
);
52 static void OP_E_register (int, int);
53 static void OP_E_memory (int, int);
54 static void print_displacement (char *, bfd_vma
);
55 static void OP_E (int, int);
56 static void OP_G (int, int);
57 static bfd_vma
get64 (void);
58 static bfd_signed_vma
get32 (void);
59 static bfd_signed_vma
get32s (void);
60 static int get16 (void);
61 static void set_op (bfd_vma
, int);
62 static void OP_Skip_MODRM (int, int);
63 static void OP_REG (int, int);
64 static void OP_IMREG (int, int);
65 static void OP_I (int, int);
66 static void OP_I64 (int, int);
67 static void OP_sI (int, int);
68 static void OP_J (int, int);
69 static void OP_SEG (int, int);
70 static void OP_DIR (int, int);
71 static void OP_OFF (int, int);
72 static void OP_OFF64 (int, int);
73 static void ptr_reg (int, int);
74 static void OP_ESreg (int, int);
75 static void OP_DSreg (int, int);
76 static void OP_C (int, int);
77 static void OP_D (int, int);
78 static void OP_T (int, int);
79 static void OP_R (int, int);
80 static void OP_MMX (int, int);
81 static void OP_XMM (int, int);
82 static void OP_EM (int, int);
83 static void OP_EX (int, int);
84 static void OP_EMC (int,int);
85 static void OP_MXC (int,int);
86 static void OP_MS (int, int);
87 static void OP_XS (int, int);
88 static void OP_M (int, int);
89 static void OP_VEX (int, int);
90 static void OP_EX_Vex (int, int);
91 static void OP_EX_VexW (int, int);
92 static void OP_EX_VexImmW (int, int);
93 static void OP_XMM_Vex (int, int);
94 static void OP_XMM_VexW (int, int);
95 static void OP_Rounding (int, int);
96 static void OP_REG_VexI4 (int, int);
97 static void PCLMUL_Fixup (int, int);
98 static void VEXI4_Fixup (int, int);
99 static void VZERO_Fixup (int, int);
100 static void VCMP_Fixup (int, int);
101 static void VPCMP_Fixup (int, int);
102 static void OP_0f07 (int, int);
103 static void OP_Monitor (int, int);
104 static void OP_Mwait (int, int);
105 static void OP_Mwaitx (int, int);
106 static void NOP_Fixup1 (int, int);
107 static void NOP_Fixup2 (int, int);
108 static void OP_3DNowSuffix (int, int);
109 static void CMP_Fixup (int, int);
110 static void BadOp (void);
111 static void REP_Fixup (int, int);
112 static void BND_Fixup (int, int);
113 static void HLE_Fixup1 (int, int);
114 static void HLE_Fixup2 (int, int);
115 static void HLE_Fixup3 (int, int);
116 static void CMPXCHG8B_Fixup (int, int);
117 static void XMM_Fixup (int, int);
118 static void CRC32_Fixup (int, int);
119 static void FXSAVE_Fixup (int, int);
120 static void OP_LWPCB_E (int, int);
121 static void OP_LWP_E (int, int);
122 static void OP_Vex_2src_1 (int, int);
123 static void OP_Vex_2src_2 (int, int);
125 static void MOVBE_Fixup (int, int);
127 static void OP_Mask (int, int);
130 /* Points to first byte not fetched. */
131 bfd_byte
*max_fetched
;
132 bfd_byte the_buffer
[MAX_MNEM_SIZE
];
135 OPCODES_SIGJMP_BUF bailout
;
145 enum address_mode address_mode
;
147 /* Flags for the prefixes for the current instruction. See below. */
150 /* REX prefix the current instruction. See below. */
152 /* Bits of REX we've already used. */
154 /* REX bits in original REX prefix ignored. */
155 static int rex_ignored
;
156 /* Mark parts used in the REX prefix. When we are testing for
157 empty prefix (for 8bit register REX extension), just mask it
158 out. Otherwise test for REX bit is excuse for existence of REX
159 only in case value is nonzero. */
160 #define USED_REX(value) \
165 rex_used |= (value) | REX_OPCODE; \
168 rex_used |= REX_OPCODE; \
171 /* Flags for prefixes which we somehow handled when printing the
172 current instruction. */
173 static int used_prefixes
;
175 /* Flags stored in PREFIXES. */
176 #define PREFIX_REPZ 1
177 #define PREFIX_REPNZ 2
178 #define PREFIX_LOCK 4
180 #define PREFIX_SS 0x10
181 #define PREFIX_DS 0x20
182 #define PREFIX_ES 0x40
183 #define PREFIX_FS 0x80
184 #define PREFIX_GS 0x100
185 #define PREFIX_DATA 0x200
186 #define PREFIX_ADDR 0x400
187 #define PREFIX_FWAIT 0x800
189 /* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive)
190 to ADDR (exclusive) are valid. Returns 1 for success, longjmps
192 #define FETCH_DATA(info, addr) \
193 ((addr) <= ((struct dis_private *) (info->private_data))->max_fetched \
194 ? 1 : fetch_data ((info), (addr)))
197 fetch_data (struct disassemble_info
*info
, bfd_byte
*addr
)
200 struct dis_private
*priv
= (struct dis_private
*) info
->private_data
;
201 bfd_vma start
= priv
->insn_start
+ (priv
->max_fetched
- priv
->the_buffer
);
203 if (addr
<= priv
->the_buffer
+ MAX_MNEM_SIZE
)
204 status
= (*info
->read_memory_func
) (start
,
206 addr
- priv
->max_fetched
,
212 /* If we did manage to read at least one byte, then
213 print_insn_i386 will do something sensible. Otherwise, print
214 an error. We do that here because this is where we know
216 if (priv
->max_fetched
== priv
->the_buffer
)
217 (*info
->memory_error_func
) (status
, start
, info
);
218 OPCODES_SIGLONGJMP (priv
->bailout
, 1);
221 priv
->max_fetched
= addr
;
225 /* Possible values for prefix requirement. */
226 #define PREFIX_IGNORED_SHIFT 16
227 #define PREFIX_IGNORED_REPZ (PREFIX_REPZ << PREFIX_IGNORED_SHIFT)
228 #define PREFIX_IGNORED_REPNZ (PREFIX_REPNZ << PREFIX_IGNORED_SHIFT)
229 #define PREFIX_IGNORED_DATA (PREFIX_DATA << PREFIX_IGNORED_SHIFT)
230 #define PREFIX_IGNORED_ADDR (PREFIX_ADDR << PREFIX_IGNORED_SHIFT)
231 #define PREFIX_IGNORED_LOCK (PREFIX_LOCK << PREFIX_IGNORED_SHIFT)
233 /* Opcode prefixes. */
234 #define PREFIX_OPCODE (PREFIX_REPZ \
238 /* Prefixes ignored. */
239 #define PREFIX_IGNORED (PREFIX_IGNORED_REPZ \
240 | PREFIX_IGNORED_REPNZ \
241 | PREFIX_IGNORED_DATA)
243 #define XX { NULL, 0 }
244 #define Bad_Opcode NULL, { { NULL, 0 } }, 0
246 #define Eb { OP_E, b_mode }
247 #define Ebnd { OP_E, bnd_mode }
248 #define EbS { OP_E, b_swap_mode }
249 #define Ev { OP_E, v_mode }
250 #define Ev_bnd { OP_E, v_bnd_mode }
251 #define EvS { OP_E, v_swap_mode }
252 #define Ed { OP_E, d_mode }
253 #define Edq { OP_E, dq_mode }
254 #define Edqw { OP_E, dqw_mode }
255 #define EdqwS { OP_E, dqw_swap_mode }
256 #define Edqb { OP_E, dqb_mode }
257 #define Edb { OP_E, db_mode }
258 #define Edw { OP_E, dw_mode }
259 #define Edqd { OP_E, dqd_mode }
260 #define Eq { OP_E, q_mode }
261 #define indirEv { OP_indirE, indir_v_mode }
262 #define indirEp { OP_indirE, f_mode }
263 #define stackEv { OP_E, stack_v_mode }
264 #define Em { OP_E, m_mode }
265 #define Ew { OP_E, w_mode }
266 #define M { OP_M, 0 } /* lea, lgdt, etc. */
267 #define Ma { OP_M, a_mode }
268 #define Mb { OP_M, b_mode }
269 #define Md { OP_M, d_mode }
270 #define Mo { OP_M, o_mode }
271 #define Mp { OP_M, f_mode } /* 32 or 48 bit memory operand for LDS, LES etc */
272 #define Mq { OP_M, q_mode }
273 #define Mx { OP_M, x_mode }
274 #define Mxmm { OP_M, xmm_mode }
275 #define Gb { OP_G, b_mode }
276 #define Gbnd { OP_G, bnd_mode }
277 #define Gv { OP_G, v_mode }
278 #define Gd { OP_G, d_mode }
279 #define Gdq { OP_G, dq_mode }
280 #define Gm { OP_G, m_mode }
281 #define Gw { OP_G, w_mode }
282 #define Rd { OP_R, d_mode }
283 #define Rdq { OP_R, dq_mode }
284 #define Rm { OP_R, m_mode }
285 #define Ib { OP_I, b_mode }
286 #define sIb { OP_sI, b_mode } /* sign extened byte */
287 #define sIbT { OP_sI, b_T_mode } /* sign extened byte like 'T' */
288 #define Iv { OP_I, v_mode }
289 #define sIv { OP_sI, v_mode }
290 #define Iq { OP_I, q_mode }
291 #define Iv64 { OP_I64, v_mode }
292 #define Iw { OP_I, w_mode }
293 #define I1 { OP_I, const_1_mode }
294 #define Jb { OP_J, b_mode }
295 #define Jv { OP_J, v_mode }
296 #define Cm { OP_C, m_mode }
297 #define Dm { OP_D, m_mode }
298 #define Td { OP_T, d_mode }
299 #define Skip_MODRM { OP_Skip_MODRM, 0 }
301 #define RMeAX { OP_REG, eAX_reg }
302 #define RMeBX { OP_REG, eBX_reg }
303 #define RMeCX { OP_REG, eCX_reg }
304 #define RMeDX { OP_REG, eDX_reg }
305 #define RMeSP { OP_REG, eSP_reg }
306 #define RMeBP { OP_REG, eBP_reg }
307 #define RMeSI { OP_REG, eSI_reg }
308 #define RMeDI { OP_REG, eDI_reg }
309 #define RMrAX { OP_REG, rAX_reg }
310 #define RMrBX { OP_REG, rBX_reg }
311 #define RMrCX { OP_REG, rCX_reg }
312 #define RMrDX { OP_REG, rDX_reg }
313 #define RMrSP { OP_REG, rSP_reg }
314 #define RMrBP { OP_REG, rBP_reg }
315 #define RMrSI { OP_REG, rSI_reg }
316 #define RMrDI { OP_REG, rDI_reg }
317 #define RMAL { OP_REG, al_reg }
318 #define RMCL { OP_REG, cl_reg }
319 #define RMDL { OP_REG, dl_reg }
320 #define RMBL { OP_REG, bl_reg }
321 #define RMAH { OP_REG, ah_reg }
322 #define RMCH { OP_REG, ch_reg }
323 #define RMDH { OP_REG, dh_reg }
324 #define RMBH { OP_REG, bh_reg }
325 #define RMAX { OP_REG, ax_reg }
326 #define RMDX { OP_REG, dx_reg }
328 #define eAX { OP_IMREG, eAX_reg }
329 #define eBX { OP_IMREG, eBX_reg }
330 #define eCX { OP_IMREG, eCX_reg }
331 #define eDX { OP_IMREG, eDX_reg }
332 #define eSP { OP_IMREG, eSP_reg }
333 #define eBP { OP_IMREG, eBP_reg }
334 #define eSI { OP_IMREG, eSI_reg }
335 #define eDI { OP_IMREG, eDI_reg }
336 #define AL { OP_IMREG, al_reg }
337 #define CL { OP_IMREG, cl_reg }
338 #define DL { OP_IMREG, dl_reg }
339 #define BL { OP_IMREG, bl_reg }
340 #define AH { OP_IMREG, ah_reg }
341 #define CH { OP_IMREG, ch_reg }
342 #define DH { OP_IMREG, dh_reg }
343 #define BH { OP_IMREG, bh_reg }
344 #define AX { OP_IMREG, ax_reg }
345 #define DX { OP_IMREG, dx_reg }
346 #define zAX { OP_IMREG, z_mode_ax_reg }
347 #define indirDX { OP_IMREG, indir_dx_reg }
349 #define Sw { OP_SEG, w_mode }
350 #define Sv { OP_SEG, v_mode }
351 #define Ap { OP_DIR, 0 }
352 #define Ob { OP_OFF64, b_mode }
353 #define Ov { OP_OFF64, v_mode }
354 #define Xb { OP_DSreg, eSI_reg }
355 #define Xv { OP_DSreg, eSI_reg }
356 #define Xz { OP_DSreg, eSI_reg }
357 #define Yb { OP_ESreg, eDI_reg }
358 #define Yv { OP_ESreg, eDI_reg }
359 #define DSBX { OP_DSreg, eBX_reg }
361 #define es { OP_REG, es_reg }
362 #define ss { OP_REG, ss_reg }
363 #define cs { OP_REG, cs_reg }
364 #define ds { OP_REG, ds_reg }
365 #define fs { OP_REG, fs_reg }
366 #define gs { OP_REG, gs_reg }
368 #define MX { OP_MMX, 0 }
369 #define XM { OP_XMM, 0 }
370 #define XMScalar { OP_XMM, scalar_mode }
371 #define XMGatherQ { OP_XMM, vex_vsib_q_w_dq_mode }
372 #define XMM { OP_XMM, xmm_mode }
373 #define XMxmmq { OP_XMM, xmmq_mode }
374 #define EM { OP_EM, v_mode }
375 #define EMS { OP_EM, v_swap_mode }
376 #define EMd { OP_EM, d_mode }
377 #define EMx { OP_EM, x_mode }
378 #define EXw { OP_EX, w_mode }
379 #define EXd { OP_EX, d_mode }
380 #define EXdScalar { OP_EX, d_scalar_mode }
381 #define EXdS { OP_EX, d_swap_mode }
382 #define EXdScalarS { OP_EX, d_scalar_swap_mode }
383 #define EXq { OP_EX, q_mode }
384 #define EXqScalar { OP_EX, q_scalar_mode }
385 #define EXqScalarS { OP_EX, q_scalar_swap_mode }
386 #define EXqS { OP_EX, q_swap_mode }
387 #define EXx { OP_EX, x_mode }
388 #define EXxS { OP_EX, x_swap_mode }
389 #define EXxmm { OP_EX, xmm_mode }
390 #define EXymm { OP_EX, ymm_mode }
391 #define EXxmmq { OP_EX, xmmq_mode }
392 #define EXEvexHalfBcstXmmq { OP_EX, evex_half_bcst_xmmq_mode }
393 #define EXxmm_mb { OP_EX, xmm_mb_mode }
394 #define EXxmm_mw { OP_EX, xmm_mw_mode }
395 #define EXxmm_md { OP_EX, xmm_md_mode }
396 #define EXxmm_mq { OP_EX, xmm_mq_mode }
397 #define EXxmm_mdq { OP_EX, xmm_mdq_mode }
398 #define EXxmmdw { OP_EX, xmmdw_mode }
399 #define EXxmmqd { OP_EX, xmmqd_mode }
400 #define EXymmq { OP_EX, ymmq_mode }
401 #define EXVexWdq { OP_EX, vex_w_dq_mode }
402 #define EXVexWdqScalar { OP_EX, vex_scalar_w_dq_mode }
403 #define EXEvexXGscat { OP_EX, evex_x_gscat_mode }
404 #define EXEvexXNoBcst { OP_EX, evex_x_nobcst_mode }
405 #define MS { OP_MS, v_mode }
406 #define XS { OP_XS, v_mode }
407 #define EMCq { OP_EMC, q_mode }
408 #define MXC { OP_MXC, 0 }
409 #define OPSUF { OP_3DNowSuffix, 0 }
410 #define CMP { CMP_Fixup, 0 }
411 #define XMM0 { XMM_Fixup, 0 }
412 #define FXSAVE { FXSAVE_Fixup, 0 }
413 #define Vex_2src_1 { OP_Vex_2src_1, 0 }
414 #define Vex_2src_2 { OP_Vex_2src_2, 0 }
416 #define Vex { OP_VEX, vex_mode }
417 #define VexScalar { OP_VEX, vex_scalar_mode }
418 #define VexGatherQ { OP_VEX, vex_vsib_q_w_dq_mode }
419 #define Vex128 { OP_VEX, vex128_mode }
420 #define Vex256 { OP_VEX, vex256_mode }
421 #define VexGdq { OP_VEX, dq_mode }
422 #define VexI4 { VEXI4_Fixup, 0}
423 #define EXdVex { OP_EX_Vex, d_mode }
424 #define EXdVexS { OP_EX_Vex, d_swap_mode }
425 #define EXdVexScalarS { OP_EX_Vex, d_scalar_swap_mode }
426 #define EXqVex { OP_EX_Vex, q_mode }
427 #define EXqVexS { OP_EX_Vex, q_swap_mode }
428 #define EXqVexScalarS { OP_EX_Vex, q_scalar_swap_mode }
429 #define EXVexW { OP_EX_VexW, x_mode }
430 #define EXdVexW { OP_EX_VexW, d_mode }
431 #define EXqVexW { OP_EX_VexW, q_mode }
432 #define EXVexImmW { OP_EX_VexImmW, x_mode }
433 #define XMVex { OP_XMM_Vex, 0 }
434 #define XMVexScalar { OP_XMM_Vex, scalar_mode }
435 #define XMVexW { OP_XMM_VexW, 0 }
436 #define XMVexI4 { OP_REG_VexI4, x_mode }
437 #define PCLMUL { PCLMUL_Fixup, 0 }
438 #define VZERO { VZERO_Fixup, 0 }
439 #define VCMP { VCMP_Fixup, 0 }
440 #define VPCMP { VPCMP_Fixup, 0 }
442 #define EXxEVexR { OP_Rounding, evex_rounding_mode }
443 #define EXxEVexS { OP_Rounding, evex_sae_mode }
445 #define XMask { OP_Mask, mask_mode }
446 #define MaskG { OP_G, mask_mode }
447 #define MaskE { OP_E, mask_mode }
448 #define MaskBDE { OP_E, mask_bd_mode }
449 #define MaskR { OP_R, mask_mode }
450 #define MaskVex { OP_VEX, mask_mode }
452 #define MVexVSIBDWpX { OP_M, vex_vsib_d_w_dq_mode }
453 #define MVexVSIBDQWpX { OP_M, vex_vsib_d_w_d_mode }
454 #define MVexVSIBQWpX { OP_M, vex_vsib_q_w_dq_mode }
455 #define MVexVSIBQDWpX { OP_M, vex_vsib_q_w_d_mode }
457 /* Used handle "rep" prefix for string instructions. */
458 #define Xbr { REP_Fixup, eSI_reg }
459 #define Xvr { REP_Fixup, eSI_reg }
460 #define Ybr { REP_Fixup, eDI_reg }
461 #define Yvr { REP_Fixup, eDI_reg }
462 #define Yzr { REP_Fixup, eDI_reg }
463 #define indirDXr { REP_Fixup, indir_dx_reg }
464 #define ALr { REP_Fixup, al_reg }
465 #define eAXr { REP_Fixup, eAX_reg }
467 /* Used handle HLE prefix for lockable instructions. */
468 #define Ebh1 { HLE_Fixup1, b_mode }
469 #define Evh1 { HLE_Fixup1, v_mode }
470 #define Ebh2 { HLE_Fixup2, b_mode }
471 #define Evh2 { HLE_Fixup2, v_mode }
472 #define Ebh3 { HLE_Fixup3, b_mode }
473 #define Evh3 { HLE_Fixup3, v_mode }
475 #define BND { BND_Fixup, 0 }
477 #define cond_jump_flag { NULL, cond_jump_mode }
478 #define loop_jcxz_flag { NULL, loop_jcxz_mode }
480 /* bits in sizeflag */
481 #define SUFFIX_ALWAYS 4
489 /* byte operand with operand swapped */
491 /* byte operand, sign extend like 'T' suffix */
493 /* operand size depends on prefixes */
495 /* operand size depends on prefixes with operand swapped */
499 /* double word operand */
501 /* double word operand with operand swapped */
503 /* quad word operand */
505 /* quad word operand with operand swapped */
507 /* ten-byte operand */
509 /* 16-byte XMM, 32-byte YMM or 64-byte ZMM operand. In EVEX with
510 broadcast enabled. */
512 /* Similar to x_mode, but with different EVEX mem shifts. */
514 /* Similar to x_mode, but with disabled broadcast. */
516 /* Similar to x_mode, but with operands swapped and disabled broadcast
519 /* 16-byte XMM operand */
521 /* XMM, XMM or YMM register operand, or quad word, xmmword or ymmword
522 memory operand (depending on vector length). Broadcast isn't
525 /* Same as xmmq_mode, but broadcast is allowed. */
526 evex_half_bcst_xmmq_mode
,
527 /* XMM register or byte memory operand */
529 /* XMM register or word memory operand */
531 /* XMM register or double word memory operand */
533 /* XMM register or quad word memory operand */
535 /* XMM register or double/quad word memory operand, depending on
538 /* 16-byte XMM, word, double word or quad word operand. */
540 /* 16-byte XMM, double word, quad word operand or xmm word operand. */
542 /* 32-byte YMM operand */
544 /* quad word, ymmword or zmmword memory operand. */
546 /* 32-byte YMM or 16-byte word operand */
548 /* d_mode in 32bit, q_mode in 64bit mode. */
550 /* pair of v_mode operands */
555 /* operand size depends on REX prefixes. */
557 /* registers like dq_mode, memory like w_mode. */
561 /* 4- or 6-byte pointer operand */
564 /* v_mode for indirect branch opcodes. */
566 /* v_mode for stack-related opcodes. */
568 /* non-quad operand size depends on prefixes */
570 /* 16-byte operand */
572 /* registers like dq_mode, memory like b_mode. */
574 /* registers like d_mode, memory like b_mode. */
576 /* registers like d_mode, memory like w_mode. */
578 /* registers like dq_mode, memory like d_mode. */
580 /* normal vex mode */
582 /* 128bit vex mode */
584 /* 256bit vex mode */
586 /* operand size depends on the VEX.W bit. */
589 /* Similar to vex_w_dq_mode, with VSIB dword indices. */
590 vex_vsib_d_w_dq_mode
,
591 /* Similar to vex_vsib_d_w_dq_mode, with smaller memory. */
593 /* Similar to vex_w_dq_mode, with VSIB qword indices. */
594 vex_vsib_q_w_dq_mode
,
595 /* Similar to vex_vsib_q_w_dq_mode, with smaller memory. */
598 /* scalar, ignore vector length. */
600 /* like d_mode, ignore vector length. */
602 /* like d_swap_mode, ignore vector length. */
604 /* like q_mode, ignore vector length. */
606 /* like q_swap_mode, ignore vector length. */
608 /* like vex_mode, ignore vector length. */
610 /* like vex_w_dq_mode, ignore vector length. */
611 vex_scalar_w_dq_mode
,
613 /* Static rounding. */
615 /* Supress all exceptions. */
618 /* Mask register operand. */
620 /* Mask register operand. */
687 #define FLOAT NULL, { { NULL, FLOATCODE } }, 0
689 #define DIS386(T, I) NULL, { { NULL, (T)}, { NULL, (I) } }, 0
690 #define DIS386_PREFIX(T, I, P) NULL, { { NULL, (T)}, { NULL, (I) } }, P
691 #define REG_TABLE(I) DIS386 (USE_REG_TABLE, (I))
692 #define MOD_TABLE(I) DIS386 (USE_MOD_TABLE, (I))
693 #define RM_TABLE(I) DIS386 (USE_RM_TABLE, (I))
694 #define PREFIX_TABLE(I) DIS386 (USE_PREFIX_TABLE, (I))
695 #define X86_64_TABLE(I) DIS386 (USE_X86_64_TABLE, (I))
696 #define THREE_BYTE_TABLE(I) DIS386 (USE_3BYTE_TABLE, (I))
697 #define THREE_BYTE_TABLE_PREFIX(I, P) DIS386_PREFIX (USE_3BYTE_TABLE, (I), P)
698 #define XOP_8F_TABLE(I) DIS386 (USE_XOP_8F_TABLE, (I))
699 #define VEX_C4_TABLE(I) DIS386 (USE_VEX_C4_TABLE, (I))
700 #define VEX_C5_TABLE(I) DIS386 (USE_VEX_C5_TABLE, (I))
701 #define VEX_LEN_TABLE(I) DIS386 (USE_VEX_LEN_TABLE, (I))
702 #define VEX_W_TABLE(I) DIS386 (USE_VEX_W_TABLE, (I))
703 #define EVEX_TABLE(I) DIS386 (USE_EVEX_TABLE, (I))
821 MOD_VEX_0F12_PREFIX_0
,
823 MOD_VEX_0F16_PREFIX_0
,
826 MOD_VEX_W_0_0F41_P_0_LEN_1
,
827 MOD_VEX_W_1_0F41_P_0_LEN_1
,
828 MOD_VEX_W_0_0F41_P_2_LEN_1
,
829 MOD_VEX_W_1_0F41_P_2_LEN_1
,
830 MOD_VEX_W_0_0F42_P_0_LEN_1
,
831 MOD_VEX_W_1_0F42_P_0_LEN_1
,
832 MOD_VEX_W_0_0F42_P_2_LEN_1
,
833 MOD_VEX_W_1_0F42_P_2_LEN_1
,
834 MOD_VEX_W_0_0F44_P_0_LEN_1
,
835 MOD_VEX_W_1_0F44_P_0_LEN_1
,
836 MOD_VEX_W_0_0F44_P_2_LEN_1
,
837 MOD_VEX_W_1_0F44_P_2_LEN_1
,
838 MOD_VEX_W_0_0F45_P_0_LEN_1
,
839 MOD_VEX_W_1_0F45_P_0_LEN_1
,
840 MOD_VEX_W_0_0F45_P_2_LEN_1
,
841 MOD_VEX_W_1_0F45_P_2_LEN_1
,
842 MOD_VEX_W_0_0F46_P_0_LEN_1
,
843 MOD_VEX_W_1_0F46_P_0_LEN_1
,
844 MOD_VEX_W_0_0F46_P_2_LEN_1
,
845 MOD_VEX_W_1_0F46_P_2_LEN_1
,
846 MOD_VEX_W_0_0F47_P_0_LEN_1
,
847 MOD_VEX_W_1_0F47_P_0_LEN_1
,
848 MOD_VEX_W_0_0F47_P_2_LEN_1
,
849 MOD_VEX_W_1_0F47_P_2_LEN_1
,
850 MOD_VEX_W_0_0F4A_P_0_LEN_1
,
851 MOD_VEX_W_1_0F4A_P_0_LEN_1
,
852 MOD_VEX_W_0_0F4A_P_2_LEN_1
,
853 MOD_VEX_W_1_0F4A_P_2_LEN_1
,
854 MOD_VEX_W_0_0F4B_P_0_LEN_1
,
855 MOD_VEX_W_1_0F4B_P_0_LEN_1
,
856 MOD_VEX_W_0_0F4B_P_2_LEN_1
,
868 MOD_VEX_W_0_0F91_P_0_LEN_0
,
869 MOD_VEX_W_1_0F91_P_0_LEN_0
,
870 MOD_VEX_W_0_0F91_P_2_LEN_0
,
871 MOD_VEX_W_1_0F91_P_2_LEN_0
,
872 MOD_VEX_W_0_0F92_P_0_LEN_0
,
873 MOD_VEX_W_0_0F92_P_2_LEN_0
,
874 MOD_VEX_W_0_0F92_P_3_LEN_0
,
875 MOD_VEX_W_1_0F92_P_3_LEN_0
,
876 MOD_VEX_W_0_0F93_P_0_LEN_0
,
877 MOD_VEX_W_0_0F93_P_2_LEN_0
,
878 MOD_VEX_W_0_0F93_P_3_LEN_0
,
879 MOD_VEX_W_1_0F93_P_3_LEN_0
,
880 MOD_VEX_W_0_0F98_P_0_LEN_0
,
881 MOD_VEX_W_1_0F98_P_0_LEN_0
,
882 MOD_VEX_W_0_0F98_P_2_LEN_0
,
883 MOD_VEX_W_1_0F98_P_2_LEN_0
,
884 MOD_VEX_W_0_0F99_P_0_LEN_0
,
885 MOD_VEX_W_1_0F99_P_0_LEN_0
,
886 MOD_VEX_W_0_0F99_P_2_LEN_0
,
887 MOD_VEX_W_1_0F99_P_2_LEN_0
,
890 MOD_VEX_0FD7_PREFIX_2
,
891 MOD_VEX_0FE7_PREFIX_2
,
892 MOD_VEX_0FF0_PREFIX_3
,
893 MOD_VEX_0F381A_PREFIX_2
,
894 MOD_VEX_0F382A_PREFIX_2
,
895 MOD_VEX_0F382C_PREFIX_2
,
896 MOD_VEX_0F382D_PREFIX_2
,
897 MOD_VEX_0F382E_PREFIX_2
,
898 MOD_VEX_0F382F_PREFIX_2
,
899 MOD_VEX_0F385A_PREFIX_2
,
900 MOD_VEX_0F388C_PREFIX_2
,
901 MOD_VEX_0F388E_PREFIX_2
,
902 MOD_VEX_W_0_0F3A30_P_2_LEN_0
,
903 MOD_VEX_W_1_0F3A30_P_2_LEN_0
,
904 MOD_VEX_W_0_0F3A31_P_2_LEN_0
,
905 MOD_VEX_W_1_0F3A31_P_2_LEN_0
,
906 MOD_VEX_W_0_0F3A32_P_2_LEN_0
,
907 MOD_VEX_W_1_0F3A32_P_2_LEN_0
,
908 MOD_VEX_W_0_0F3A33_P_2_LEN_0
,
909 MOD_VEX_W_1_0F3A33_P_2_LEN_0
,
911 MOD_EVEX_0F10_PREFIX_1
,
912 MOD_EVEX_0F10_PREFIX_3
,
913 MOD_EVEX_0F11_PREFIX_1
,
914 MOD_EVEX_0F11_PREFIX_3
,
915 MOD_EVEX_0F12_PREFIX_0
,
916 MOD_EVEX_0F16_PREFIX_0
,
917 MOD_EVEX_0F38C6_REG_1
,
918 MOD_EVEX_0F38C6_REG_2
,
919 MOD_EVEX_0F38C6_REG_5
,
920 MOD_EVEX_0F38C6_REG_6
,
921 MOD_EVEX_0F38C7_REG_1
,
922 MOD_EVEX_0F38C7_REG_2
,
923 MOD_EVEX_0F38C7_REG_5
,
924 MOD_EVEX_0F38C7_REG_6
987 PREFIX_MOD_0_0FAE_REG_4
,
988 PREFIX_MOD_3_0FAE_REG_4
,
996 PREFIX_MOD_0_0FC7_REG_6
,
997 PREFIX_MOD_3_0FC7_REG_6
,
998 PREFIX_MOD_3_0FC7_REG_7
,
1122 PREFIX_VEX_0F71_REG_2
,
1123 PREFIX_VEX_0F71_REG_4
,
1124 PREFIX_VEX_0F71_REG_6
,
1125 PREFIX_VEX_0F72_REG_2
,
1126 PREFIX_VEX_0F72_REG_4
,
1127 PREFIX_VEX_0F72_REG_6
,
1128 PREFIX_VEX_0F73_REG_2
,
1129 PREFIX_VEX_0F73_REG_3
,
1130 PREFIX_VEX_0F73_REG_6
,
1131 PREFIX_VEX_0F73_REG_7
,
1303 PREFIX_VEX_0F38F3_REG_1
,
1304 PREFIX_VEX_0F38F3_REG_2
,
1305 PREFIX_VEX_0F38F3_REG_3
,
1422 PREFIX_EVEX_0F71_REG_2
,
1423 PREFIX_EVEX_0F71_REG_4
,
1424 PREFIX_EVEX_0F71_REG_6
,
1425 PREFIX_EVEX_0F72_REG_0
,
1426 PREFIX_EVEX_0F72_REG_1
,
1427 PREFIX_EVEX_0F72_REG_2
,
1428 PREFIX_EVEX_0F72_REG_4
,
1429 PREFIX_EVEX_0F72_REG_6
,
1430 PREFIX_EVEX_0F73_REG_2
,
1431 PREFIX_EVEX_0F73_REG_3
,
1432 PREFIX_EVEX_0F73_REG_6
,
1433 PREFIX_EVEX_0F73_REG_7
,
1618 PREFIX_EVEX_0F38C6_REG_1
,
1619 PREFIX_EVEX_0F38C6_REG_2
,
1620 PREFIX_EVEX_0F38C6_REG_5
,
1621 PREFIX_EVEX_0F38C6_REG_6
,
1622 PREFIX_EVEX_0F38C7_REG_1
,
1623 PREFIX_EVEX_0F38C7_REG_2
,
1624 PREFIX_EVEX_0F38C7_REG_5
,
1625 PREFIX_EVEX_0F38C7_REG_6
,
1715 THREE_BYTE_0F38
= 0,
1742 VEX_LEN_0F10_P_1
= 0,
1746 VEX_LEN_0F12_P_0_M_0
,
1747 VEX_LEN_0F12_P_0_M_1
,
1750 VEX_LEN_0F16_P_0_M_0
,
1751 VEX_LEN_0F16_P_0_M_1
,
1815 VEX_LEN_0FAE_R_2_M_0
,
1816 VEX_LEN_0FAE_R_3_M_0
,
1825 VEX_LEN_0F381A_P_2_M_0
,
1828 VEX_LEN_0F385A_P_2_M_0
,
1835 VEX_LEN_0F38F3_R_1_P_0
,
1836 VEX_LEN_0F38F3_R_2_P_0
,
1837 VEX_LEN_0F38F3_R_3_P_0
,
1883 VEX_LEN_0FXOP_08_CC
,
1884 VEX_LEN_0FXOP_08_CD
,
1885 VEX_LEN_0FXOP_08_CE
,
1886 VEX_LEN_0FXOP_08_CF
,
1887 VEX_LEN_0FXOP_08_EC
,
1888 VEX_LEN_0FXOP_08_ED
,
1889 VEX_LEN_0FXOP_08_EE
,
1890 VEX_LEN_0FXOP_08_EF
,
1891 VEX_LEN_0FXOP_09_80
,
1925 VEX_W_0F41_P_0_LEN_1
,
1926 VEX_W_0F41_P_2_LEN_1
,
1927 VEX_W_0F42_P_0_LEN_1
,
1928 VEX_W_0F42_P_2_LEN_1
,
1929 VEX_W_0F44_P_0_LEN_0
,
1930 VEX_W_0F44_P_2_LEN_0
,
1931 VEX_W_0F45_P_0_LEN_1
,
1932 VEX_W_0F45_P_2_LEN_1
,
1933 VEX_W_0F46_P_0_LEN_1
,
1934 VEX_W_0F46_P_2_LEN_1
,
1935 VEX_W_0F47_P_0_LEN_1
,
1936 VEX_W_0F47_P_2_LEN_1
,
1937 VEX_W_0F4A_P_0_LEN_1
,
1938 VEX_W_0F4A_P_2_LEN_1
,
1939 VEX_W_0F4B_P_0_LEN_1
,
1940 VEX_W_0F4B_P_2_LEN_1
,
2020 VEX_W_0F90_P_0_LEN_0
,
2021 VEX_W_0F90_P_2_LEN_0
,
2022 VEX_W_0F91_P_0_LEN_0
,
2023 VEX_W_0F91_P_2_LEN_0
,
2024 VEX_W_0F92_P_0_LEN_0
,
2025 VEX_W_0F92_P_2_LEN_0
,
2026 VEX_W_0F92_P_3_LEN_0
,
2027 VEX_W_0F93_P_0_LEN_0
,
2028 VEX_W_0F93_P_2_LEN_0
,
2029 VEX_W_0F93_P_3_LEN_0
,
2030 VEX_W_0F98_P_0_LEN_0
,
2031 VEX_W_0F98_P_2_LEN_0
,
2032 VEX_W_0F99_P_0_LEN_0
,
2033 VEX_W_0F99_P_2_LEN_0
,
2112 VEX_W_0F381A_P_2_M_0
,
2124 VEX_W_0F382A_P_2_M_0
,
2126 VEX_W_0F382C_P_2_M_0
,
2127 VEX_W_0F382D_P_2_M_0
,
2128 VEX_W_0F382E_P_2_M_0
,
2129 VEX_W_0F382F_P_2_M_0
,
2151 VEX_W_0F385A_P_2_M_0
,
2179 VEX_W_0F3A30_P_2_LEN_0
,
2180 VEX_W_0F3A31_P_2_LEN_0
,
2181 VEX_W_0F3A32_P_2_LEN_0
,
2182 VEX_W_0F3A33_P_2_LEN_0
,
2202 EVEX_W_0F10_P_1_M_0
,
2203 EVEX_W_0F10_P_1_M_1
,
2205 EVEX_W_0F10_P_3_M_0
,
2206 EVEX_W_0F10_P_3_M_1
,
2208 EVEX_W_0F11_P_1_M_0
,
2209 EVEX_W_0F11_P_1_M_1
,
2211 EVEX_W_0F11_P_3_M_0
,
2212 EVEX_W_0F11_P_3_M_1
,
2213 EVEX_W_0F12_P_0_M_0
,
2214 EVEX_W_0F12_P_0_M_1
,
2224 EVEX_W_0F16_P_0_M_0
,
2225 EVEX_W_0F16_P_0_M_1
,
2296 EVEX_W_0F72_R_2_P_2
,
2297 EVEX_W_0F72_R_6_P_2
,
2298 EVEX_W_0F73_R_2_P_2
,
2299 EVEX_W_0F73_R_6_P_2
,
2399 EVEX_W_0F38C7_R_1_P_2
,
2400 EVEX_W_0F38C7_R_2_P_2
,
2401 EVEX_W_0F38C7_R_5_P_2
,
2402 EVEX_W_0F38C7_R_6_P_2
,
2437 typedef void (*op_rtn
) (int bytemode
, int sizeflag
);
2446 unsigned int prefix_requirement
;
2449 /* Upper case letters in the instruction names here are macros.
2450 'A' => print 'b' if no register operands or suffix_always is true
2451 'B' => print 'b' if suffix_always is true
2452 'C' => print 's' or 'l' ('w' or 'd' in Intel mode) depending on operand
2454 'D' => print 'w' if no register operands or 'w', 'l' or 'q', if
2455 suffix_always is true
2456 'E' => print 'e' if 32-bit form of jcxz
2457 'F' => print 'w' or 'l' depending on address size prefix (loop insns)
2458 'G' => print 'w' or 'l' depending on operand size prefix (i/o insns)
2459 'H' => print ",pt" or ",pn" branch hint
2460 'I' => honor following macro letter even in Intel mode (implemented only
2461 for some of the macro letters)
2463 'K' => print 'd' or 'q' if rex prefix is present.
2464 'L' => print 'l' if suffix_always is true
2465 'M' => print 'r' if intel_mnemonic is false.
2466 'N' => print 'n' if instruction has no wait "prefix"
2467 'O' => print 'd' or 'o' (or 'q' in Intel mode)
2468 'P' => print 'w', 'l' or 'q' if instruction has an operand size prefix,
2469 or suffix_always is true. print 'q' if rex prefix is present.
2470 'Q' => print 'w', 'l' or 'q' for memory operand or suffix_always
2472 'R' => print 'w', 'l' or 'q' ('d' for 'l' and 'e' in Intel mode)
2473 'S' => print 'w', 'l' or 'q' if suffix_always is true
2474 'T' => print 'q' in 64bit mode if instruction has no operand size
2475 prefix and behave as 'P' otherwise
2476 'U' => print 'q' in 64bit mode if instruction has no operand size
2477 prefix and behave as 'Q' otherwise
2478 'V' => print 'q' in 64bit mode if instruction has no operand size
2479 prefix and behave as 'S' otherwise
2480 'W' => print 'b', 'w' or 'l' ('d' in Intel mode)
2481 'X' => print 's', 'd' depending on data16 prefix (for XMM)
2482 'Y' => 'q' if instruction has an REX 64bit overwrite prefix and
2483 suffix_always is true.
2484 'Z' => print 'q' in 64bit mode and behave as 'L' otherwise
2485 '!' => change condition from true to false or from false to true.
2486 '%' => add 1 upper case letter to the macro.
2487 '^' => print 'w' or 'l' depending on operand size prefix or
2488 suffix_always is true (lcall/ljmp).
2489 '@' => print 'q' for Intel64 ISA, 'w' or 'q' for AMD64 ISA depending
2490 on operand size prefix.
2491 '&' => print 'q' in 64bit mode for Intel64 ISA or if instruction
2492 has no operand size prefix for AMD64 ISA, behave as 'P'
2495 2 upper case letter macros:
2496 "XY" => print 'x' or 'y' if suffix_always is true or no register
2497 operands and no broadcast.
2498 "XZ" => print 'x', 'y', or 'z' if suffix_always is true or no
2499 register operands and no broadcast.
2500 "XW" => print 's', 'd' depending on the VEX.W bit (for FMA)
2501 "LQ" => print 'l' ('d' in Intel mode) or 'q' for memory operand
2502 or suffix_always is true
2503 "LB" => print "abs" in 64bit mode and behave as 'B' otherwise
2504 "LS" => print "abs" in 64bit mode and behave as 'S' otherwise
2505 "LV" => print "abs" for 64bit operand and behave as 'S' otherwise
2506 "LW" => print 'd', 'q' depending on the VEX.W bit
2507 "LP" => print 'w' or 'l' ('d' in Intel mode) if instruction has
2508 an operand size prefix, or suffix_always is true. print
2509 'q' if rex prefix is present.
2511 Many of the above letters print nothing in Intel mode. See "putop"
2514 Braces '{' and '}', and vertical bars '|', indicate alternative
2515 mnemonic strings for AT&T and Intel. */
2517 static const struct dis386 dis386
[] = {
2519 { "addB", { Ebh1
, Gb
}, 0 },
2520 { "addS", { Evh1
, Gv
}, 0 },
2521 { "addB", { Gb
, EbS
}, 0 },
2522 { "addS", { Gv
, EvS
}, 0 },
2523 { "addB", { AL
, Ib
}, 0 },
2524 { "addS", { eAX
, Iv
}, 0 },
2525 { X86_64_TABLE (X86_64_06
) },
2526 { X86_64_TABLE (X86_64_07
) },
2528 { "orB", { Ebh1
, Gb
}, 0 },
2529 { "orS", { Evh1
, Gv
}, 0 },
2530 { "orB", { Gb
, EbS
}, 0 },
2531 { "orS", { Gv
, EvS
}, 0 },
2532 { "orB", { AL
, Ib
}, 0 },
2533 { "orS", { eAX
, Iv
}, 0 },
2534 { X86_64_TABLE (X86_64_0D
) },
2535 { Bad_Opcode
}, /* 0x0f extended opcode escape */
2537 { "adcB", { Ebh1
, Gb
}, 0 },
2538 { "adcS", { Evh1
, Gv
}, 0 },
2539 { "adcB", { Gb
, EbS
}, 0 },
2540 { "adcS", { Gv
, EvS
}, 0 },
2541 { "adcB", { AL
, Ib
}, 0 },
2542 { "adcS", { eAX
, Iv
}, 0 },
2543 { X86_64_TABLE (X86_64_16
) },
2544 { X86_64_TABLE (X86_64_17
) },
2546 { "sbbB", { Ebh1
, Gb
}, 0 },
2547 { "sbbS", { Evh1
, Gv
}, 0 },
2548 { "sbbB", { Gb
, EbS
}, 0 },
2549 { "sbbS", { Gv
, EvS
}, 0 },
2550 { "sbbB", { AL
, Ib
}, 0 },
2551 { "sbbS", { eAX
, Iv
}, 0 },
2552 { X86_64_TABLE (X86_64_1E
) },
2553 { X86_64_TABLE (X86_64_1F
) },
2555 { "andB", { Ebh1
, Gb
}, 0 },
2556 { "andS", { Evh1
, Gv
}, 0 },
2557 { "andB", { Gb
, EbS
}, 0 },
2558 { "andS", { Gv
, EvS
}, 0 },
2559 { "andB", { AL
, Ib
}, 0 },
2560 { "andS", { eAX
, Iv
}, 0 },
2561 { Bad_Opcode
}, /* SEG ES prefix */
2562 { X86_64_TABLE (X86_64_27
) },
2564 { "subB", { Ebh1
, Gb
}, 0 },
2565 { "subS", { Evh1
, Gv
}, 0 },
2566 { "subB", { Gb
, EbS
}, 0 },
2567 { "subS", { Gv
, EvS
}, 0 },
2568 { "subB", { AL
, Ib
}, 0 },
2569 { "subS", { eAX
, Iv
}, 0 },
2570 { Bad_Opcode
}, /* SEG CS prefix */
2571 { X86_64_TABLE (X86_64_2F
) },
2573 { "xorB", { Ebh1
, Gb
}, 0 },
2574 { "xorS", { Evh1
, Gv
}, 0 },
2575 { "xorB", { Gb
, EbS
}, 0 },
2576 { "xorS", { Gv
, EvS
}, 0 },
2577 { "xorB", { AL
, Ib
}, 0 },
2578 { "xorS", { eAX
, Iv
}, 0 },
2579 { Bad_Opcode
}, /* SEG SS prefix */
2580 { X86_64_TABLE (X86_64_37
) },
2582 { "cmpB", { Eb
, Gb
}, 0 },
2583 { "cmpS", { Ev
, Gv
}, 0 },
2584 { "cmpB", { Gb
, EbS
}, 0 },
2585 { "cmpS", { Gv
, EvS
}, 0 },
2586 { "cmpB", { AL
, Ib
}, 0 },
2587 { "cmpS", { eAX
, Iv
}, 0 },
2588 { Bad_Opcode
}, /* SEG DS prefix */
2589 { X86_64_TABLE (X86_64_3F
) },
2591 { "inc{S|}", { RMeAX
}, 0 },
2592 { "inc{S|}", { RMeCX
}, 0 },
2593 { "inc{S|}", { RMeDX
}, 0 },
2594 { "inc{S|}", { RMeBX
}, 0 },
2595 { "inc{S|}", { RMeSP
}, 0 },
2596 { "inc{S|}", { RMeBP
}, 0 },
2597 { "inc{S|}", { RMeSI
}, 0 },
2598 { "inc{S|}", { RMeDI
}, 0 },
2600 { "dec{S|}", { RMeAX
}, 0 },
2601 { "dec{S|}", { RMeCX
}, 0 },
2602 { "dec{S|}", { RMeDX
}, 0 },
2603 { "dec{S|}", { RMeBX
}, 0 },
2604 { "dec{S|}", { RMeSP
}, 0 },
2605 { "dec{S|}", { RMeBP
}, 0 },
2606 { "dec{S|}", { RMeSI
}, 0 },
2607 { "dec{S|}", { RMeDI
}, 0 },
2609 { "pushV", { RMrAX
}, 0 },
2610 { "pushV", { RMrCX
}, 0 },
2611 { "pushV", { RMrDX
}, 0 },
2612 { "pushV", { RMrBX
}, 0 },
2613 { "pushV", { RMrSP
}, 0 },
2614 { "pushV", { RMrBP
}, 0 },
2615 { "pushV", { RMrSI
}, 0 },
2616 { "pushV", { RMrDI
}, 0 },
2618 { "popV", { RMrAX
}, 0 },
2619 { "popV", { RMrCX
}, 0 },
2620 { "popV", { RMrDX
}, 0 },
2621 { "popV", { RMrBX
}, 0 },
2622 { "popV", { RMrSP
}, 0 },
2623 { "popV", { RMrBP
}, 0 },
2624 { "popV", { RMrSI
}, 0 },
2625 { "popV", { RMrDI
}, 0 },
2627 { X86_64_TABLE (X86_64_60
) },
2628 { X86_64_TABLE (X86_64_61
) },
2629 { X86_64_TABLE (X86_64_62
) },
2630 { X86_64_TABLE (X86_64_63
) },
2631 { Bad_Opcode
}, /* seg fs */
2632 { Bad_Opcode
}, /* seg gs */
2633 { Bad_Opcode
}, /* op size prefix */
2634 { Bad_Opcode
}, /* adr size prefix */
2636 { "pushT", { sIv
}, 0 },
2637 { "imulS", { Gv
, Ev
, Iv
}, 0 },
2638 { "pushT", { sIbT
}, 0 },
2639 { "imulS", { Gv
, Ev
, sIb
}, 0 },
2640 { "ins{b|}", { Ybr
, indirDX
}, 0 },
2641 { X86_64_TABLE (X86_64_6D
) },
2642 { "outs{b|}", { indirDXr
, Xb
}, 0 },
2643 { X86_64_TABLE (X86_64_6F
) },
2645 { "joH", { Jb
, BND
, cond_jump_flag
}, 0 },
2646 { "jnoH", { Jb
, BND
, cond_jump_flag
}, 0 },
2647 { "jbH", { Jb
, BND
, cond_jump_flag
}, 0 },
2648 { "jaeH", { Jb
, BND
, cond_jump_flag
}, 0 },
2649 { "jeH", { Jb
, BND
, cond_jump_flag
}, 0 },
2650 { "jneH", { Jb
, BND
, cond_jump_flag
}, 0 },
2651 { "jbeH", { Jb
, BND
, cond_jump_flag
}, 0 },
2652 { "jaH", { Jb
, BND
, cond_jump_flag
}, 0 },
2654 { "jsH", { Jb
, BND
, cond_jump_flag
}, 0 },
2655 { "jnsH", { Jb
, BND
, cond_jump_flag
}, 0 },
2656 { "jpH", { Jb
, BND
, cond_jump_flag
}, 0 },
2657 { "jnpH", { Jb
, BND
, cond_jump_flag
}, 0 },
2658 { "jlH", { Jb
, BND
, cond_jump_flag
}, 0 },
2659 { "jgeH", { Jb
, BND
, cond_jump_flag
}, 0 },
2660 { "jleH", { Jb
, BND
, cond_jump_flag
}, 0 },
2661 { "jgH", { Jb
, BND
, cond_jump_flag
}, 0 },
2663 { REG_TABLE (REG_80
) },
2664 { REG_TABLE (REG_81
) },
2665 { X86_64_TABLE (X86_64_82
) },
2666 { REG_TABLE (REG_83
) },
2667 { "testB", { Eb
, Gb
}, 0 },
2668 { "testS", { Ev
, Gv
}, 0 },
2669 { "xchgB", { Ebh2
, Gb
}, 0 },
2670 { "xchgS", { Evh2
, Gv
}, 0 },
2672 { "movB", { Ebh3
, Gb
}, 0 },
2673 { "movS", { Evh3
, Gv
}, 0 },
2674 { "movB", { Gb
, EbS
}, 0 },
2675 { "movS", { Gv
, EvS
}, 0 },
2676 { "movD", { Sv
, Sw
}, 0 },
2677 { MOD_TABLE (MOD_8D
) },
2678 { "movD", { Sw
, Sv
}, 0 },
2679 { REG_TABLE (REG_8F
) },
2681 { PREFIX_TABLE (PREFIX_90
) },
2682 { "xchgS", { RMeCX
, eAX
}, 0 },
2683 { "xchgS", { RMeDX
, eAX
}, 0 },
2684 { "xchgS", { RMeBX
, eAX
}, 0 },
2685 { "xchgS", { RMeSP
, eAX
}, 0 },
2686 { "xchgS", { RMeBP
, eAX
}, 0 },
2687 { "xchgS", { RMeSI
, eAX
}, 0 },
2688 { "xchgS", { RMeDI
, eAX
}, 0 },
2690 { "cW{t|}R", { XX
}, 0 },
2691 { "cR{t|}O", { XX
}, 0 },
2692 { X86_64_TABLE (X86_64_9A
) },
2693 { Bad_Opcode
}, /* fwait */
2694 { "pushfT", { XX
}, 0 },
2695 { "popfT", { XX
}, 0 },
2696 { "sahf", { XX
}, 0 },
2697 { "lahf", { XX
}, 0 },
2699 { "mov%LB", { AL
, Ob
}, 0 },
2700 { "mov%LS", { eAX
, Ov
}, 0 },
2701 { "mov%LB", { Ob
, AL
}, 0 },
2702 { "mov%LS", { Ov
, eAX
}, 0 },
2703 { "movs{b|}", { Ybr
, Xb
}, 0 },
2704 { "movs{R|}", { Yvr
, Xv
}, 0 },
2705 { "cmps{b|}", { Xb
, Yb
}, 0 },
2706 { "cmps{R|}", { Xv
, Yv
}, 0 },
2708 { "testB", { AL
, Ib
}, 0 },
2709 { "testS", { eAX
, Iv
}, 0 },
2710 { "stosB", { Ybr
, AL
}, 0 },
2711 { "stosS", { Yvr
, eAX
}, 0 },
2712 { "lodsB", { ALr
, Xb
}, 0 },
2713 { "lodsS", { eAXr
, Xv
}, 0 },
2714 { "scasB", { AL
, Yb
}, 0 },
2715 { "scasS", { eAX
, Yv
}, 0 },
2717 { "movB", { RMAL
, Ib
}, 0 },
2718 { "movB", { RMCL
, Ib
}, 0 },
2719 { "movB", { RMDL
, Ib
}, 0 },
2720 { "movB", { RMBL
, Ib
}, 0 },
2721 { "movB", { RMAH
, Ib
}, 0 },
2722 { "movB", { RMCH
, Ib
}, 0 },
2723 { "movB", { RMDH
, Ib
}, 0 },
2724 { "movB", { RMBH
, Ib
}, 0 },
2726 { "mov%LV", { RMeAX
, Iv64
}, 0 },
2727 { "mov%LV", { RMeCX
, Iv64
}, 0 },
2728 { "mov%LV", { RMeDX
, Iv64
}, 0 },
2729 { "mov%LV", { RMeBX
, Iv64
}, 0 },
2730 { "mov%LV", { RMeSP
, Iv64
}, 0 },
2731 { "mov%LV", { RMeBP
, Iv64
}, 0 },
2732 { "mov%LV", { RMeSI
, Iv64
}, 0 },
2733 { "mov%LV", { RMeDI
, Iv64
}, 0 },
2735 { REG_TABLE (REG_C0
) },
2736 { REG_TABLE (REG_C1
) },
2737 { "retT", { Iw
, BND
}, 0 },
2738 { "retT", { BND
}, 0 },
2739 { X86_64_TABLE (X86_64_C4
) },
2740 { X86_64_TABLE (X86_64_C5
) },
2741 { REG_TABLE (REG_C6
) },
2742 { REG_TABLE (REG_C7
) },
2744 { "enterT", { Iw
, Ib
}, 0 },
2745 { "leaveT", { XX
}, 0 },
2746 { "Jret{|f}P", { Iw
}, 0 },
2747 { "Jret{|f}P", { XX
}, 0 },
2748 { "int3", { XX
}, 0 },
2749 { "int", { Ib
}, 0 },
2750 { X86_64_TABLE (X86_64_CE
) },
2751 { "iret%LP", { XX
}, 0 },
2753 { REG_TABLE (REG_D0
) },
2754 { REG_TABLE (REG_D1
) },
2755 { REG_TABLE (REG_D2
) },
2756 { REG_TABLE (REG_D3
) },
2757 { X86_64_TABLE (X86_64_D4
) },
2758 { X86_64_TABLE (X86_64_D5
) },
2760 { "xlat", { DSBX
}, 0 },
2771 { "loopneFH", { Jb
, XX
, loop_jcxz_flag
}, 0 },
2772 { "loopeFH", { Jb
, XX
, loop_jcxz_flag
}, 0 },
2773 { "loopFH", { Jb
, XX
, loop_jcxz_flag
}, 0 },
2774 { "jEcxzH", { Jb
, XX
, loop_jcxz_flag
}, 0 },
2775 { "inB", { AL
, Ib
}, 0 },
2776 { "inG", { zAX
, Ib
}, 0 },
2777 { "outB", { Ib
, AL
}, 0 },
2778 { "outG", { Ib
, zAX
}, 0 },
2780 { X86_64_TABLE (X86_64_E8
) },
2781 { X86_64_TABLE (X86_64_E9
) },
2782 { X86_64_TABLE (X86_64_EA
) },
2783 { "jmp", { Jb
, BND
}, 0 },
2784 { "inB", { AL
, indirDX
}, 0 },
2785 { "inG", { zAX
, indirDX
}, 0 },
2786 { "outB", { indirDX
, AL
}, 0 },
2787 { "outG", { indirDX
, zAX
}, 0 },
2789 { Bad_Opcode
}, /* lock prefix */
2790 { "icebp", { XX
}, 0 },
2791 { Bad_Opcode
}, /* repne */
2792 { Bad_Opcode
}, /* repz */
2793 { "hlt", { XX
}, 0 },
2794 { "cmc", { XX
}, 0 },
2795 { REG_TABLE (REG_F6
) },
2796 { REG_TABLE (REG_F7
) },
2798 { "clc", { XX
}, 0 },
2799 { "stc", { XX
}, 0 },
2800 { "cli", { XX
}, 0 },
2801 { "sti", { XX
}, 0 },
2802 { "cld", { XX
}, 0 },
2803 { "std", { XX
}, 0 },
2804 { REG_TABLE (REG_FE
) },
2805 { REG_TABLE (REG_FF
) },
2808 static const struct dis386 dis386_twobyte
[] = {
2810 { REG_TABLE (REG_0F00
) },
2811 { REG_TABLE (REG_0F01
) },
2812 { "larS", { Gv
, Ew
}, 0 },
2813 { "lslS", { Gv
, Ew
}, 0 },
2815 { "syscall", { XX
}, 0 },
2816 { "clts", { XX
}, 0 },
2817 { "sysret%LP", { XX
}, 0 },
2819 { "invd", { XX
}, 0 },
2820 { "wbinvd", { XX
}, 0 },
2822 { "ud2", { XX
}, 0 },
2824 { REG_TABLE (REG_0F0D
) },
2825 { "femms", { XX
}, 0 },
2826 { "", { MX
, EM
, OPSUF
}, 0 }, /* See OP_3DNowSuffix. */
2828 { PREFIX_TABLE (PREFIX_0F10
) },
2829 { PREFIX_TABLE (PREFIX_0F11
) },
2830 { PREFIX_TABLE (PREFIX_0F12
) },
2831 { MOD_TABLE (MOD_0F13
) },
2832 { "unpcklpX", { XM
, EXx
}, PREFIX_OPCODE
},
2833 { "unpckhpX", { XM
, EXx
}, PREFIX_OPCODE
},
2834 { PREFIX_TABLE (PREFIX_0F16
) },
2835 { MOD_TABLE (MOD_0F17
) },
2837 { REG_TABLE (REG_0F18
) },
2838 { "nopQ", { Ev
}, 0 },
2839 { PREFIX_TABLE (PREFIX_0F1A
) },
2840 { PREFIX_TABLE (PREFIX_0F1B
) },
2841 { "nopQ", { Ev
}, 0 },
2842 { "nopQ", { Ev
}, 0 },
2843 { "nopQ", { Ev
}, 0 },
2844 { "nopQ", { Ev
}, 0 },
2846 { "movZ", { Rm
, Cm
}, 0 },
2847 { "movZ", { Rm
, Dm
}, 0 },
2848 { "movZ", { Cm
, Rm
}, 0 },
2849 { "movZ", { Dm
, Rm
}, 0 },
2850 { MOD_TABLE (MOD_0F24
) },
2852 { MOD_TABLE (MOD_0F26
) },
2855 { "movapX", { XM
, EXx
}, PREFIX_OPCODE
},
2856 { "movapX", { EXxS
, XM
}, PREFIX_OPCODE
},
2857 { PREFIX_TABLE (PREFIX_0F2A
) },
2858 { PREFIX_TABLE (PREFIX_0F2B
) },
2859 { PREFIX_TABLE (PREFIX_0F2C
) },
2860 { PREFIX_TABLE (PREFIX_0F2D
) },
2861 { PREFIX_TABLE (PREFIX_0F2E
) },
2862 { PREFIX_TABLE (PREFIX_0F2F
) },
2864 { "wrmsr", { XX
}, 0 },
2865 { "rdtsc", { XX
}, 0 },
2866 { "rdmsr", { XX
}, 0 },
2867 { "rdpmc", { XX
}, 0 },
2868 { "sysenter", { XX
}, 0 },
2869 { "sysexit", { XX
}, 0 },
2871 { "getsec", { XX
}, 0 },
2873 { THREE_BYTE_TABLE_PREFIX (THREE_BYTE_0F38
, PREFIX_OPCODE
) },
2875 { THREE_BYTE_TABLE_PREFIX (THREE_BYTE_0F3A
, PREFIX_OPCODE
) },
2882 { "cmovoS", { Gv
, Ev
}, 0 },
2883 { "cmovnoS", { Gv
, Ev
}, 0 },
2884 { "cmovbS", { Gv
, Ev
}, 0 },
2885 { "cmovaeS", { Gv
, Ev
}, 0 },
2886 { "cmoveS", { Gv
, Ev
}, 0 },
2887 { "cmovneS", { Gv
, Ev
}, 0 },
2888 { "cmovbeS", { Gv
, Ev
}, 0 },
2889 { "cmovaS", { Gv
, Ev
}, 0 },
2891 { "cmovsS", { Gv
, Ev
}, 0 },
2892 { "cmovnsS", { Gv
, Ev
}, 0 },
2893 { "cmovpS", { Gv
, Ev
}, 0 },
2894 { "cmovnpS", { Gv
, Ev
}, 0 },
2895 { "cmovlS", { Gv
, Ev
}, 0 },
2896 { "cmovgeS", { Gv
, Ev
}, 0 },
2897 { "cmovleS", { Gv
, Ev
}, 0 },
2898 { "cmovgS", { Gv
, Ev
}, 0 },
2900 { MOD_TABLE (MOD_0F51
) },
2901 { PREFIX_TABLE (PREFIX_0F51
) },
2902 { PREFIX_TABLE (PREFIX_0F52
) },
2903 { PREFIX_TABLE (PREFIX_0F53
) },
2904 { "andpX", { XM
, EXx
}, PREFIX_OPCODE
},
2905 { "andnpX", { XM
, EXx
}, PREFIX_OPCODE
},
2906 { "orpX", { XM
, EXx
}, PREFIX_OPCODE
},
2907 { "xorpX", { XM
, EXx
}, PREFIX_OPCODE
},
2909 { PREFIX_TABLE (PREFIX_0F58
) },
2910 { PREFIX_TABLE (PREFIX_0F59
) },
2911 { PREFIX_TABLE (PREFIX_0F5A
) },
2912 { PREFIX_TABLE (PREFIX_0F5B
) },
2913 { PREFIX_TABLE (PREFIX_0F5C
) },
2914 { PREFIX_TABLE (PREFIX_0F5D
) },
2915 { PREFIX_TABLE (PREFIX_0F5E
) },
2916 { PREFIX_TABLE (PREFIX_0F5F
) },
2918 { PREFIX_TABLE (PREFIX_0F60
) },
2919 { PREFIX_TABLE (PREFIX_0F61
) },
2920 { PREFIX_TABLE (PREFIX_0F62
) },
2921 { "packsswb", { MX
, EM
}, PREFIX_OPCODE
},
2922 { "pcmpgtb", { MX
, EM
}, PREFIX_OPCODE
},
2923 { "pcmpgtw", { MX
, EM
}, PREFIX_OPCODE
},
2924 { "pcmpgtd", { MX
, EM
}, PREFIX_OPCODE
},
2925 { "packuswb", { MX
, EM
}, PREFIX_OPCODE
},
2927 { "punpckhbw", { MX
, EM
}, PREFIX_OPCODE
},
2928 { "punpckhwd", { MX
, EM
}, PREFIX_OPCODE
},
2929 { "punpckhdq", { MX
, EM
}, PREFIX_OPCODE
},
2930 { "packssdw", { MX
, EM
}, PREFIX_OPCODE
},
2931 { PREFIX_TABLE (PREFIX_0F6C
) },
2932 { PREFIX_TABLE (PREFIX_0F6D
) },
2933 { "movK", { MX
, Edq
}, PREFIX_OPCODE
},
2934 { PREFIX_TABLE (PREFIX_0F6F
) },
2936 { PREFIX_TABLE (PREFIX_0F70
) },
2937 { REG_TABLE (REG_0F71
) },
2938 { REG_TABLE (REG_0F72
) },
2939 { REG_TABLE (REG_0F73
) },
2940 { "pcmpeqb", { MX
, EM
}, PREFIX_OPCODE
},
2941 { "pcmpeqw", { MX
, EM
}, PREFIX_OPCODE
},
2942 { "pcmpeqd", { MX
, EM
}, PREFIX_OPCODE
},
2943 { "emms", { XX
}, PREFIX_OPCODE
},
2945 { PREFIX_TABLE (PREFIX_0F78
) },
2946 { PREFIX_TABLE (PREFIX_0F79
) },
2949 { PREFIX_TABLE (PREFIX_0F7C
) },
2950 { PREFIX_TABLE (PREFIX_0F7D
) },
2951 { PREFIX_TABLE (PREFIX_0F7E
) },
2952 { PREFIX_TABLE (PREFIX_0F7F
) },
2954 { "joH", { Jv
, BND
, cond_jump_flag
}, 0 },
2955 { "jnoH", { Jv
, BND
, cond_jump_flag
}, 0 },
2956 { "jbH", { Jv
, BND
, cond_jump_flag
}, 0 },
2957 { "jaeH", { Jv
, BND
, cond_jump_flag
}, 0 },
2958 { "jeH", { Jv
, BND
, cond_jump_flag
}, 0 },
2959 { "jneH", { Jv
, BND
, cond_jump_flag
}, 0 },
2960 { "jbeH", { Jv
, BND
, cond_jump_flag
}, 0 },
2961 { "jaH", { Jv
, BND
, cond_jump_flag
}, 0 },
2963 { "jsH", { Jv
, BND
, cond_jump_flag
}, 0 },
2964 { "jnsH", { Jv
, BND
, cond_jump_flag
}, 0 },
2965 { "jpH", { Jv
, BND
, cond_jump_flag
}, 0 },
2966 { "jnpH", { Jv
, BND
, cond_jump_flag
}, 0 },
2967 { "jlH", { Jv
, BND
, cond_jump_flag
}, 0 },
2968 { "jgeH", { Jv
, BND
, cond_jump_flag
}, 0 },
2969 { "jleH", { Jv
, BND
, cond_jump_flag
}, 0 },
2970 { "jgH", { Jv
, BND
, cond_jump_flag
}, 0 },
2972 { "seto", { Eb
}, 0 },
2973 { "setno", { Eb
}, 0 },
2974 { "setb", { Eb
}, 0 },
2975 { "setae", { Eb
}, 0 },
2976 { "sete", { Eb
}, 0 },
2977 { "setne", { Eb
}, 0 },
2978 { "setbe", { Eb
}, 0 },
2979 { "seta", { Eb
}, 0 },
2981 { "sets", { Eb
}, 0 },
2982 { "setns", { Eb
}, 0 },
2983 { "setp", { Eb
}, 0 },
2984 { "setnp", { Eb
}, 0 },
2985 { "setl", { Eb
}, 0 },
2986 { "setge", { Eb
}, 0 },
2987 { "setle", { Eb
}, 0 },
2988 { "setg", { Eb
}, 0 },
2990 { "pushT", { fs
}, 0 },
2991 { "popT", { fs
}, 0 },
2992 { "cpuid", { XX
}, 0 },
2993 { "btS", { Ev
, Gv
}, 0 },
2994 { "shldS", { Ev
, Gv
, Ib
}, 0 },
2995 { "shldS", { Ev
, Gv
, CL
}, 0 },
2996 { REG_TABLE (REG_0FA6
) },
2997 { REG_TABLE (REG_0FA7
) },
2999 { "pushT", { gs
}, 0 },
3000 { "popT", { gs
}, 0 },
3001 { "rsm", { XX
}, 0 },
3002 { "btsS", { Evh1
, Gv
}, 0 },
3003 { "shrdS", { Ev
, Gv
, Ib
}, 0 },
3004 { "shrdS", { Ev
, Gv
, CL
}, 0 },
3005 { REG_TABLE (REG_0FAE
) },
3006 { "imulS", { Gv
, Ev
}, 0 },
3008 { "cmpxchgB", { Ebh1
, Gb
}, 0 },
3009 { "cmpxchgS", { Evh1
, Gv
}, 0 },
3010 { MOD_TABLE (MOD_0FB2
) },
3011 { "btrS", { Evh1
, Gv
}, 0 },
3012 { MOD_TABLE (MOD_0FB4
) },
3013 { MOD_TABLE (MOD_0FB5
) },
3014 { "movz{bR|x}", { Gv
, Eb
}, 0 },
3015 { "movz{wR|x}", { Gv
, Ew
}, 0 }, /* yes, there really is movzww ! */
3017 { PREFIX_TABLE (PREFIX_0FB8
) },
3018 { "ud1", { XX
}, 0 },
3019 { REG_TABLE (REG_0FBA
) },
3020 { "btcS", { Evh1
, Gv
}, 0 },
3021 { PREFIX_TABLE (PREFIX_0FBC
) },
3022 { PREFIX_TABLE (PREFIX_0FBD
) },
3023 { "movs{bR|x}", { Gv
, Eb
}, 0 },
3024 { "movs{wR|x}", { Gv
, Ew
}, 0 }, /* yes, there really is movsww ! */
3026 { "xaddB", { Ebh1
, Gb
}, 0 },
3027 { "xaddS", { Evh1
, Gv
}, 0 },
3028 { PREFIX_TABLE (PREFIX_0FC2
) },
3029 { MOD_TABLE (MOD_0FC3
) },
3030 { "pinsrw", { MX
, Edqw
, Ib
}, PREFIX_OPCODE
},
3031 { "pextrw", { Gdq
, MS
, Ib
}, PREFIX_OPCODE
},
3032 { "shufpX", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
3033 { REG_TABLE (REG_0FC7
) },
3035 { "bswap", { RMeAX
}, 0 },
3036 { "bswap", { RMeCX
}, 0 },
3037 { "bswap", { RMeDX
}, 0 },
3038 { "bswap", { RMeBX
}, 0 },
3039 { "bswap", { RMeSP
}, 0 },
3040 { "bswap", { RMeBP
}, 0 },
3041 { "bswap", { RMeSI
}, 0 },
3042 { "bswap", { RMeDI
}, 0 },
3044 { PREFIX_TABLE (PREFIX_0FD0
) },
3045 { "psrlw", { MX
, EM
}, PREFIX_OPCODE
},
3046 { "psrld", { MX
, EM
}, PREFIX_OPCODE
},
3047 { "psrlq", { MX
, EM
}, PREFIX_OPCODE
},
3048 { "paddq", { MX
, EM
}, PREFIX_OPCODE
},
3049 { "pmullw", { MX
, EM
}, PREFIX_OPCODE
},
3050 { PREFIX_TABLE (PREFIX_0FD6
) },
3051 { MOD_TABLE (MOD_0FD7
) },
3053 { "psubusb", { MX
, EM
}, PREFIX_OPCODE
},
3054 { "psubusw", { MX
, EM
}, PREFIX_OPCODE
},
3055 { "pminub", { MX
, EM
}, PREFIX_OPCODE
},
3056 { "pand", { MX
, EM
}, PREFIX_OPCODE
},
3057 { "paddusb", { MX
, EM
}, PREFIX_OPCODE
},
3058 { "paddusw", { MX
, EM
}, PREFIX_OPCODE
},
3059 { "pmaxub", { MX
, EM
}, PREFIX_OPCODE
},
3060 { "pandn", { MX
, EM
}, PREFIX_OPCODE
},
3062 { "pavgb", { MX
, EM
}, PREFIX_OPCODE
},
3063 { "psraw", { MX
, EM
}, PREFIX_OPCODE
},
3064 { "psrad", { MX
, EM
}, PREFIX_OPCODE
},
3065 { "pavgw", { MX
, EM
}, PREFIX_OPCODE
},
3066 { "pmulhuw", { MX
, EM
}, PREFIX_OPCODE
},
3067 { "pmulhw", { MX
, EM
}, PREFIX_OPCODE
},
3068 { PREFIX_TABLE (PREFIX_0FE6
) },
3069 { PREFIX_TABLE (PREFIX_0FE7
) },
3071 { "psubsb", { MX
, EM
}, PREFIX_OPCODE
},
3072 { "psubsw", { MX
, EM
}, PREFIX_OPCODE
},
3073 { "pminsw", { MX
, EM
}, PREFIX_OPCODE
},
3074 { "por", { MX
, EM
}, PREFIX_OPCODE
},
3075 { "paddsb", { MX
, EM
}, PREFIX_OPCODE
},
3076 { "paddsw", { MX
, EM
}, PREFIX_OPCODE
},
3077 { "pmaxsw", { MX
, EM
}, PREFIX_OPCODE
},
3078 { "pxor", { MX
, EM
}, PREFIX_OPCODE
},
3080 { PREFIX_TABLE (PREFIX_0FF0
) },
3081 { "psllw", { MX
, EM
}, PREFIX_OPCODE
},
3082 { "pslld", { MX
, EM
}, PREFIX_OPCODE
},
3083 { "psllq", { MX
, EM
}, PREFIX_OPCODE
},
3084 { "pmuludq", { MX
, EM
}, PREFIX_OPCODE
},
3085 { "pmaddwd", { MX
, EM
}, PREFIX_OPCODE
},
3086 { "psadbw", { MX
, EM
}, PREFIX_OPCODE
},
3087 { PREFIX_TABLE (PREFIX_0FF7
) },
3089 { "psubb", { MX
, EM
}, PREFIX_OPCODE
},
3090 { "psubw", { MX
, EM
}, PREFIX_OPCODE
},
3091 { "psubd", { MX
, EM
}, PREFIX_OPCODE
},
3092 { "psubq", { MX
, EM
}, PREFIX_OPCODE
},
3093 { "paddb", { MX
, EM
}, PREFIX_OPCODE
},
3094 { "paddw", { MX
, EM
}, PREFIX_OPCODE
},
3095 { "paddd", { MX
, EM
}, PREFIX_OPCODE
},
3099 static const unsigned char onebyte_has_modrm
[256] = {
3100 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
3101 /* ------------------------------- */
3102 /* 00 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 00 */
3103 /* 10 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 10 */
3104 /* 20 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 20 */
3105 /* 30 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 30 */
3106 /* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 40 */
3107 /* 50 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 50 */
3108 /* 60 */ 0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0, /* 60 */
3109 /* 70 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 70 */
3110 /* 80 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 80 */
3111 /* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 90 */
3112 /* a0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* a0 */
3113 /* b0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* b0 */
3114 /* c0 */ 1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0, /* c0 */
3115 /* d0 */ 1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1, /* d0 */
3116 /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* e0 */
3117 /* f0 */ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1 /* f0 */
3118 /* ------------------------------- */
3119 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
3122 static const unsigned char twobyte_has_modrm
[256] = {
3123 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
3124 /* ------------------------------- */
3125 /* 00 */ 1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,1, /* 0f */
3126 /* 10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 1f */
3127 /* 20 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 2f */
3128 /* 30 */ 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0, /* 3f */
3129 /* 40 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 4f */
3130 /* 50 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 5f */
3131 /* 60 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 6f */
3132 /* 70 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 7f */
3133 /* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */
3134 /* 90 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 9f */
3135 /* a0 */ 0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1, /* af */
3136 /* b0 */ 1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1, /* bf */
3137 /* c0 */ 1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* cf */
3138 /* d0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* df */
3139 /* e0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ef */
3140 /* f0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0 /* ff */
3141 /* ------------------------------- */
3142 /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */
3145 static char obuf
[100];
3147 static char *mnemonicendp
;
3148 static char scratchbuf
[100];
3149 static unsigned char *start_codep
;
3150 static unsigned char *insn_codep
;
3151 static unsigned char *codep
;
3152 static unsigned char *end_codep
;
3153 static int last_lock_prefix
;
3154 static int last_repz_prefix
;
3155 static int last_repnz_prefix
;
3156 static int last_data_prefix
;
3157 static int last_addr_prefix
;
3158 static int last_rex_prefix
;
3159 static int last_seg_prefix
;
3160 static int fwait_prefix
;
3161 /* The active segment register prefix. */
3162 static int active_seg_prefix
;
3163 #define MAX_CODE_LENGTH 15
3164 /* We can up to 14 prefixes since the maximum instruction length is
3166 static int all_prefixes
[MAX_CODE_LENGTH
- 1];
3167 static disassemble_info
*the_info
;
3175 static unsigned char need_modrm
;
3185 int register_specifier
;
3192 int mask_register_specifier
;
3198 static unsigned char need_vex
;
3199 static unsigned char need_vex_reg
;
3200 static unsigned char vex_w_done
;
3208 /* If we are accessing mod/rm/reg without need_modrm set, then the
3209 values are stale. Hitting this abort likely indicates that you
3210 need to update onebyte_has_modrm or twobyte_has_modrm. */
3211 #define MODRM_CHECK if (!need_modrm) abort ()
3213 static const char **names64
;
3214 static const char **names32
;
3215 static const char **names16
;
3216 static const char **names8
;
3217 static const char **names8rex
;
3218 static const char **names_seg
;
3219 static const char *index64
;
3220 static const char *index32
;
3221 static const char **index16
;
3222 static const char **names_bnd
;
3224 static const char *intel_names64
[] = {
3225 "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi",
3226 "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
3228 static const char *intel_names32
[] = {
3229 "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi",
3230 "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d"
3232 static const char *intel_names16
[] = {
3233 "ax", "cx", "dx", "bx", "sp", "bp", "si", "di",
3234 "r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w"
3236 static const char *intel_names8
[] = {
3237 "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh",
3239 static const char *intel_names8rex
[] = {
3240 "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil",
3241 "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b"
3243 static const char *intel_names_seg
[] = {
3244 "es", "cs", "ss", "ds", "fs", "gs", "?", "?",
3246 static const char *intel_index64
= "riz";
3247 static const char *intel_index32
= "eiz";
3248 static const char *intel_index16
[] = {
3249 "bx+si", "bx+di", "bp+si", "bp+di", "si", "di", "bp", "bx"
3252 static const char *att_names64
[] = {
3253 "%rax", "%rcx", "%rdx", "%rbx", "%rsp", "%rbp", "%rsi", "%rdi",
3254 "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15"
3256 static const char *att_names32
[] = {
3257 "%eax", "%ecx", "%edx", "%ebx", "%esp", "%ebp", "%esi", "%edi",
3258 "%r8d", "%r9d", "%r10d", "%r11d", "%r12d", "%r13d", "%r14d", "%r15d"
3260 static const char *att_names16
[] = {
3261 "%ax", "%cx", "%dx", "%bx", "%sp", "%bp", "%si", "%di",
3262 "%r8w", "%r9w", "%r10w", "%r11w", "%r12w", "%r13w", "%r14w", "%r15w"
3264 static const char *att_names8
[] = {
3265 "%al", "%cl", "%dl", "%bl", "%ah", "%ch", "%dh", "%bh",
3267 static const char *att_names8rex
[] = {
3268 "%al", "%cl", "%dl", "%bl", "%spl", "%bpl", "%sil", "%dil",
3269 "%r8b", "%r9b", "%r10b", "%r11b", "%r12b", "%r13b", "%r14b", "%r15b"
3271 static const char *att_names_seg
[] = {
3272 "%es", "%cs", "%ss", "%ds", "%fs", "%gs", "%?", "%?",
3274 static const char *att_index64
= "%riz";
3275 static const char *att_index32
= "%eiz";
3276 static const char *att_index16
[] = {
3277 "%bx,%si", "%bx,%di", "%bp,%si", "%bp,%di", "%si", "%di", "%bp", "%bx"
3280 static const char **names_mm
;
3281 static const char *intel_names_mm
[] = {
3282 "mm0", "mm1", "mm2", "mm3",
3283 "mm4", "mm5", "mm6", "mm7"
3285 static const char *att_names_mm
[] = {
3286 "%mm0", "%mm1", "%mm2", "%mm3",
3287 "%mm4", "%mm5", "%mm6", "%mm7"
3290 static const char *intel_names_bnd
[] = {
3291 "bnd0", "bnd1", "bnd2", "bnd3"
3294 static const char *att_names_bnd
[] = {
3295 "%bnd0", "%bnd1", "%bnd2", "%bnd3"
3298 static const char **names_xmm
;
3299 static const char *intel_names_xmm
[] = {
3300 "xmm0", "xmm1", "xmm2", "xmm3",
3301 "xmm4", "xmm5", "xmm6", "xmm7",
3302 "xmm8", "xmm9", "xmm10", "xmm11",
3303 "xmm12", "xmm13", "xmm14", "xmm15",
3304 "xmm16", "xmm17", "xmm18", "xmm19",
3305 "xmm20", "xmm21", "xmm22", "xmm23",
3306 "xmm24", "xmm25", "xmm26", "xmm27",
3307 "xmm28", "xmm29", "xmm30", "xmm31"
3309 static const char *att_names_xmm
[] = {
3310 "%xmm0", "%xmm1", "%xmm2", "%xmm3",
3311 "%xmm4", "%xmm5", "%xmm6", "%xmm7",
3312 "%xmm8", "%xmm9", "%xmm10", "%xmm11",
3313 "%xmm12", "%xmm13", "%xmm14", "%xmm15",
3314 "%xmm16", "%xmm17", "%xmm18", "%xmm19",
3315 "%xmm20", "%xmm21", "%xmm22", "%xmm23",
3316 "%xmm24", "%xmm25", "%xmm26", "%xmm27",
3317 "%xmm28", "%xmm29", "%xmm30", "%xmm31"
3320 static const char **names_ymm
;
3321 static const char *intel_names_ymm
[] = {
3322 "ymm0", "ymm1", "ymm2", "ymm3",
3323 "ymm4", "ymm5", "ymm6", "ymm7",
3324 "ymm8", "ymm9", "ymm10", "ymm11",
3325 "ymm12", "ymm13", "ymm14", "ymm15",
3326 "ymm16", "ymm17", "ymm18", "ymm19",
3327 "ymm20", "ymm21", "ymm22", "ymm23",
3328 "ymm24", "ymm25", "ymm26", "ymm27",
3329 "ymm28", "ymm29", "ymm30", "ymm31"
3331 static const char *att_names_ymm
[] = {
3332 "%ymm0", "%ymm1", "%ymm2", "%ymm3",
3333 "%ymm4", "%ymm5", "%ymm6", "%ymm7",
3334 "%ymm8", "%ymm9", "%ymm10", "%ymm11",
3335 "%ymm12", "%ymm13", "%ymm14", "%ymm15",
3336 "%ymm16", "%ymm17", "%ymm18", "%ymm19",
3337 "%ymm20", "%ymm21", "%ymm22", "%ymm23",
3338 "%ymm24", "%ymm25", "%ymm26", "%ymm27",
3339 "%ymm28", "%ymm29", "%ymm30", "%ymm31"
3342 static const char **names_zmm
;
3343 static const char *intel_names_zmm
[] = {
3344 "zmm0", "zmm1", "zmm2", "zmm3",
3345 "zmm4", "zmm5", "zmm6", "zmm7",
3346 "zmm8", "zmm9", "zmm10", "zmm11",
3347 "zmm12", "zmm13", "zmm14", "zmm15",
3348 "zmm16", "zmm17", "zmm18", "zmm19",
3349 "zmm20", "zmm21", "zmm22", "zmm23",
3350 "zmm24", "zmm25", "zmm26", "zmm27",
3351 "zmm28", "zmm29", "zmm30", "zmm31"
3353 static const char *att_names_zmm
[] = {
3354 "%zmm0", "%zmm1", "%zmm2", "%zmm3",
3355 "%zmm4", "%zmm5", "%zmm6", "%zmm7",
3356 "%zmm8", "%zmm9", "%zmm10", "%zmm11",
3357 "%zmm12", "%zmm13", "%zmm14", "%zmm15",
3358 "%zmm16", "%zmm17", "%zmm18", "%zmm19",
3359 "%zmm20", "%zmm21", "%zmm22", "%zmm23",
3360 "%zmm24", "%zmm25", "%zmm26", "%zmm27",
3361 "%zmm28", "%zmm29", "%zmm30", "%zmm31"
3364 static const char **names_mask
;
3365 static const char *intel_names_mask
[] = {
3366 "k0", "k1", "k2", "k3", "k4", "k5", "k6", "k7"
3368 static const char *att_names_mask
[] = {
3369 "%k0", "%k1", "%k2", "%k3", "%k4", "%k5", "%k6", "%k7"
3372 static const char *names_rounding
[] =
3380 static const struct dis386 reg_table
[][8] = {
3383 { "addA", { Ebh1
, Ib
}, 0 },
3384 { "orA", { Ebh1
, Ib
}, 0 },
3385 { "adcA", { Ebh1
, Ib
}, 0 },
3386 { "sbbA", { Ebh1
, Ib
}, 0 },
3387 { "andA", { Ebh1
, Ib
}, 0 },
3388 { "subA", { Ebh1
, Ib
}, 0 },
3389 { "xorA", { Ebh1
, Ib
}, 0 },
3390 { "cmpA", { Eb
, Ib
}, 0 },
3394 { "addQ", { Evh1
, Iv
}, 0 },
3395 { "orQ", { Evh1
, Iv
}, 0 },
3396 { "adcQ", { Evh1
, Iv
}, 0 },
3397 { "sbbQ", { Evh1
, Iv
}, 0 },
3398 { "andQ", { Evh1
, Iv
}, 0 },
3399 { "subQ", { Evh1
, Iv
}, 0 },
3400 { "xorQ", { Evh1
, Iv
}, 0 },
3401 { "cmpQ", { Ev
, Iv
}, 0 },
3405 { "addQ", { Evh1
, sIb
}, 0 },
3406 { "orQ", { Evh1
, sIb
}, 0 },
3407 { "adcQ", { Evh1
, sIb
}, 0 },
3408 { "sbbQ", { Evh1
, sIb
}, 0 },
3409 { "andQ", { Evh1
, sIb
}, 0 },
3410 { "subQ", { Evh1
, sIb
}, 0 },
3411 { "xorQ", { Evh1
, sIb
}, 0 },
3412 { "cmpQ", { Ev
, sIb
}, 0 },
3416 { "popU", { stackEv
}, 0 },
3417 { XOP_8F_TABLE (XOP_09
) },
3421 { XOP_8F_TABLE (XOP_09
) },
3425 { "rolA", { Eb
, Ib
}, 0 },
3426 { "rorA", { Eb
, Ib
}, 0 },
3427 { "rclA", { Eb
, Ib
}, 0 },
3428 { "rcrA", { Eb
, Ib
}, 0 },
3429 { "shlA", { Eb
, Ib
}, 0 },
3430 { "shrA", { Eb
, Ib
}, 0 },
3432 { "sarA", { Eb
, Ib
}, 0 },
3436 { "rolQ", { Ev
, Ib
}, 0 },
3437 { "rorQ", { Ev
, Ib
}, 0 },
3438 { "rclQ", { Ev
, Ib
}, 0 },
3439 { "rcrQ", { Ev
, Ib
}, 0 },
3440 { "shlQ", { Ev
, Ib
}, 0 },
3441 { "shrQ", { Ev
, Ib
}, 0 },
3443 { "sarQ", { Ev
, Ib
}, 0 },
3447 { "movA", { Ebh3
, Ib
}, 0 },
3454 { MOD_TABLE (MOD_C6_REG_7
) },
3458 { "movQ", { Evh3
, Iv
}, 0 },
3465 { MOD_TABLE (MOD_C7_REG_7
) },
3469 { "rolA", { Eb
, I1
}, 0 },
3470 { "rorA", { Eb
, I1
}, 0 },
3471 { "rclA", { Eb
, I1
}, 0 },
3472 { "rcrA", { Eb
, I1
}, 0 },
3473 { "shlA", { Eb
, I1
}, 0 },
3474 { "shrA", { Eb
, I1
}, 0 },
3476 { "sarA", { Eb
, I1
}, 0 },
3480 { "rolQ", { Ev
, I1
}, 0 },
3481 { "rorQ", { Ev
, I1
}, 0 },
3482 { "rclQ", { Ev
, I1
}, 0 },
3483 { "rcrQ", { Ev
, I1
}, 0 },
3484 { "shlQ", { Ev
, I1
}, 0 },
3485 { "shrQ", { Ev
, I1
}, 0 },
3487 { "sarQ", { Ev
, I1
}, 0 },
3491 { "rolA", { Eb
, CL
}, 0 },
3492 { "rorA", { Eb
, CL
}, 0 },
3493 { "rclA", { Eb
, CL
}, 0 },
3494 { "rcrA", { Eb
, CL
}, 0 },
3495 { "shlA", { Eb
, CL
}, 0 },
3496 { "shrA", { Eb
, CL
}, 0 },
3498 { "sarA", { Eb
, CL
}, 0 },
3502 { "rolQ", { Ev
, CL
}, 0 },
3503 { "rorQ", { Ev
, CL
}, 0 },
3504 { "rclQ", { Ev
, CL
}, 0 },
3505 { "rcrQ", { Ev
, CL
}, 0 },
3506 { "shlQ", { Ev
, CL
}, 0 },
3507 { "shrQ", { Ev
, CL
}, 0 },
3509 { "sarQ", { Ev
, CL
}, 0 },
3513 { "testA", { Eb
, Ib
}, 0 },
3515 { "notA", { Ebh1
}, 0 },
3516 { "negA", { Ebh1
}, 0 },
3517 { "mulA", { Eb
}, 0 }, /* Don't print the implicit %al register, */
3518 { "imulA", { Eb
}, 0 }, /* to distinguish these opcodes from other */
3519 { "divA", { Eb
}, 0 }, /* mul/imul opcodes. Do the same for div */
3520 { "idivA", { Eb
}, 0 }, /* and idiv for consistency. */
3524 { "testQ", { Ev
, Iv
}, 0 },
3526 { "notQ", { Evh1
}, 0 },
3527 { "negQ", { Evh1
}, 0 },
3528 { "mulQ", { Ev
}, 0 }, /* Don't print the implicit register. */
3529 { "imulQ", { Ev
}, 0 },
3530 { "divQ", { Ev
}, 0 },
3531 { "idivQ", { Ev
}, 0 },
3535 { "incA", { Ebh1
}, 0 },
3536 { "decA", { Ebh1
}, 0 },
3540 { "incQ", { Evh1
}, 0 },
3541 { "decQ", { Evh1
}, 0 },
3542 { "call{&|}", { indirEv
, BND
}, 0 },
3543 { MOD_TABLE (MOD_FF_REG_3
) },
3544 { "jmp{&|}", { indirEv
, BND
}, 0 },
3545 { MOD_TABLE (MOD_FF_REG_5
) },
3546 { "pushU", { stackEv
}, 0 },
3551 { "sldtD", { Sv
}, 0 },
3552 { "strD", { Sv
}, 0 },
3553 { "lldt", { Ew
}, 0 },
3554 { "ltr", { Ew
}, 0 },
3555 { "verr", { Ew
}, 0 },
3556 { "verw", { Ew
}, 0 },
3562 { MOD_TABLE (MOD_0F01_REG_0
) },
3563 { MOD_TABLE (MOD_0F01_REG_1
) },
3564 { MOD_TABLE (MOD_0F01_REG_2
) },
3565 { MOD_TABLE (MOD_0F01_REG_3
) },
3566 { "smswD", { Sv
}, 0 },
3567 { MOD_TABLE (MOD_0F01_REG_5
) },
3568 { "lmsw", { Ew
}, 0 },
3569 { MOD_TABLE (MOD_0F01_REG_7
) },
3573 { "prefetch", { Mb
}, 0 },
3574 { "prefetchw", { Mb
}, 0 },
3575 { "prefetchwt1", { Mb
}, 0 },
3576 { "prefetch", { Mb
}, 0 },
3577 { "prefetch", { Mb
}, 0 },
3578 { "prefetch", { Mb
}, 0 },
3579 { "prefetch", { Mb
}, 0 },
3580 { "prefetch", { Mb
}, 0 },
3584 { MOD_TABLE (MOD_0F18_REG_0
) },
3585 { MOD_TABLE (MOD_0F18_REG_1
) },
3586 { MOD_TABLE (MOD_0F18_REG_2
) },
3587 { MOD_TABLE (MOD_0F18_REG_3
) },
3588 { MOD_TABLE (MOD_0F18_REG_4
) },
3589 { MOD_TABLE (MOD_0F18_REG_5
) },
3590 { MOD_TABLE (MOD_0F18_REG_6
) },
3591 { MOD_TABLE (MOD_0F18_REG_7
) },
3597 { MOD_TABLE (MOD_0F71_REG_2
) },
3599 { MOD_TABLE (MOD_0F71_REG_4
) },
3601 { MOD_TABLE (MOD_0F71_REG_6
) },
3607 { MOD_TABLE (MOD_0F72_REG_2
) },
3609 { MOD_TABLE (MOD_0F72_REG_4
) },
3611 { MOD_TABLE (MOD_0F72_REG_6
) },
3617 { MOD_TABLE (MOD_0F73_REG_2
) },
3618 { MOD_TABLE (MOD_0F73_REG_3
) },
3621 { MOD_TABLE (MOD_0F73_REG_6
) },
3622 { MOD_TABLE (MOD_0F73_REG_7
) },
3626 { "montmul", { { OP_0f07
, 0 } }, 0 },
3627 { "xsha1", { { OP_0f07
, 0 } }, 0 },
3628 { "xsha256", { { OP_0f07
, 0 } }, 0 },
3632 { "xstore-rng", { { OP_0f07
, 0 } }, 0 },
3633 { "xcrypt-ecb", { { OP_0f07
, 0 } }, 0 },
3634 { "xcrypt-cbc", { { OP_0f07
, 0 } }, 0 },
3635 { "xcrypt-ctr", { { OP_0f07
, 0 } }, 0 },
3636 { "xcrypt-cfb", { { OP_0f07
, 0 } }, 0 },
3637 { "xcrypt-ofb", { { OP_0f07
, 0 } }, 0 },
3641 { MOD_TABLE (MOD_0FAE_REG_0
) },
3642 { MOD_TABLE (MOD_0FAE_REG_1
) },
3643 { MOD_TABLE (MOD_0FAE_REG_2
) },
3644 { MOD_TABLE (MOD_0FAE_REG_3
) },
3645 { MOD_TABLE (MOD_0FAE_REG_4
) },
3646 { MOD_TABLE (MOD_0FAE_REG_5
) },
3647 { MOD_TABLE (MOD_0FAE_REG_6
) },
3648 { MOD_TABLE (MOD_0FAE_REG_7
) },
3656 { "btQ", { Ev
, Ib
}, 0 },
3657 { "btsQ", { Evh1
, Ib
}, 0 },
3658 { "btrQ", { Evh1
, Ib
}, 0 },
3659 { "btcQ", { Evh1
, Ib
}, 0 },
3664 { "cmpxchg8b", { { CMPXCHG8B_Fixup
, q_mode
} }, 0 },
3666 { MOD_TABLE (MOD_0FC7_REG_3
) },
3667 { MOD_TABLE (MOD_0FC7_REG_4
) },
3668 { MOD_TABLE (MOD_0FC7_REG_5
) },
3669 { MOD_TABLE (MOD_0FC7_REG_6
) },
3670 { MOD_TABLE (MOD_0FC7_REG_7
) },
3676 { MOD_TABLE (MOD_VEX_0F71_REG_2
) },
3678 { MOD_TABLE (MOD_VEX_0F71_REG_4
) },
3680 { MOD_TABLE (MOD_VEX_0F71_REG_6
) },
3686 { MOD_TABLE (MOD_VEX_0F72_REG_2
) },
3688 { MOD_TABLE (MOD_VEX_0F72_REG_4
) },
3690 { MOD_TABLE (MOD_VEX_0F72_REG_6
) },
3696 { MOD_TABLE (MOD_VEX_0F73_REG_2
) },
3697 { MOD_TABLE (MOD_VEX_0F73_REG_3
) },
3700 { MOD_TABLE (MOD_VEX_0F73_REG_6
) },
3701 { MOD_TABLE (MOD_VEX_0F73_REG_7
) },
3707 { MOD_TABLE (MOD_VEX_0FAE_REG_2
) },
3708 { MOD_TABLE (MOD_VEX_0FAE_REG_3
) },
3710 /* REG_VEX_0F38F3 */
3713 { PREFIX_TABLE (PREFIX_VEX_0F38F3_REG_1
) },
3714 { PREFIX_TABLE (PREFIX_VEX_0F38F3_REG_2
) },
3715 { PREFIX_TABLE (PREFIX_VEX_0F38F3_REG_3
) },
3719 { "llwpcb", { { OP_LWPCB_E
, 0 } }, 0 },
3720 { "slwpcb", { { OP_LWPCB_E
, 0 } }, 0 },
3724 { "lwpins", { { OP_LWP_E
, 0 }, Ed
, Iq
}, 0 },
3725 { "lwpval", { { OP_LWP_E
, 0 }, Ed
, Iq
}, 0 },
3727 /* REG_XOP_TBM_01 */
3730 { "blcfill", { { OP_LWP_E
, 0 }, Ev
}, 0 },
3731 { "blsfill", { { OP_LWP_E
, 0 }, Ev
}, 0 },
3732 { "blcs", { { OP_LWP_E
, 0 }, Ev
}, 0 },
3733 { "tzmsk", { { OP_LWP_E
, 0 }, Ev
}, 0 },
3734 { "blcic", { { OP_LWP_E
, 0 }, Ev
}, 0 },
3735 { "blsic", { { OP_LWP_E
, 0 }, Ev
}, 0 },
3736 { "t1mskc", { { OP_LWP_E
, 0 }, Ev
}, 0 },
3738 /* REG_XOP_TBM_02 */
3741 { "blcmsk", { { OP_LWP_E
, 0 }, Ev
}, 0 },
3746 { "blci", { { OP_LWP_E
, 0 }, Ev
}, 0 },
3748 #define NEED_REG_TABLE
3749 #include "i386-dis-evex.h"
3750 #undef NEED_REG_TABLE
3753 static const struct dis386 prefix_table
[][4] = {
3756 { "xchgS", { { NOP_Fixup1
, eAX_reg
}, { NOP_Fixup2
, eAX_reg
} }, 0 },
3757 { "pause", { XX
}, 0 },
3758 { "xchgS", { { NOP_Fixup1
, eAX_reg
}, { NOP_Fixup2
, eAX_reg
} }, 0 },
3759 { NULL
, { { NULL
, 0 } }, PREFIX_IGNORED
}
3764 { "movups", { XM
, EXx
}, PREFIX_OPCODE
},
3765 { "movss", { XM
, EXd
}, PREFIX_OPCODE
},
3766 { "movupd", { XM
, EXx
}, PREFIX_OPCODE
},
3767 { "movsd", { XM
, EXq
}, PREFIX_OPCODE
},
3772 { "movups", { EXxS
, XM
}, PREFIX_OPCODE
},
3773 { "movss", { EXdS
, XM
}, PREFIX_OPCODE
},
3774 { "movupd", { EXxS
, XM
}, PREFIX_OPCODE
},
3775 { "movsd", { EXqS
, XM
}, PREFIX_OPCODE
},
3780 { MOD_TABLE (MOD_0F12_PREFIX_0
) },
3781 { "movsldup", { XM
, EXx
}, PREFIX_OPCODE
},
3782 { "movlpd", { XM
, EXq
}, PREFIX_OPCODE
},
3783 { "movddup", { XM
, EXq
}, PREFIX_OPCODE
},
3788 { MOD_TABLE (MOD_0F16_PREFIX_0
) },
3789 { "movshdup", { XM
, EXx
}, PREFIX_OPCODE
},
3790 { "movhpd", { XM
, EXq
}, PREFIX_OPCODE
},
3795 { MOD_TABLE (MOD_0F1A_PREFIX_0
) },
3796 { "bndcl", { Gbnd
, Ev_bnd
}, 0 },
3797 { "bndmov", { Gbnd
, Ebnd
}, 0 },
3798 { "bndcu", { Gbnd
, Ev_bnd
}, 0 },
3803 { MOD_TABLE (MOD_0F1B_PREFIX_0
) },
3804 { MOD_TABLE (MOD_0F1B_PREFIX_1
) },
3805 { "bndmov", { Ebnd
, Gbnd
}, 0 },
3806 { "bndcn", { Gbnd
, Ev_bnd
}, 0 },
3811 { "cvtpi2ps", { XM
, EMCq
}, PREFIX_OPCODE
},
3812 { "cvtsi2ss%LQ", { XM
, Ev
}, PREFIX_OPCODE
},
3813 { "cvtpi2pd", { XM
, EMCq
}, PREFIX_OPCODE
},
3814 { "cvtsi2sd%LQ", { XM
, Ev
}, 0 },
3819 { MOD_TABLE (MOD_0F2B_PREFIX_0
) },
3820 { MOD_TABLE (MOD_0F2B_PREFIX_1
) },
3821 { MOD_TABLE (MOD_0F2B_PREFIX_2
) },
3822 { MOD_TABLE (MOD_0F2B_PREFIX_3
) },
3827 { "cvttps2pi", { MXC
, EXq
}, PREFIX_OPCODE
},
3828 { "cvttss2siY", { Gv
, EXd
}, PREFIX_OPCODE
},
3829 { "cvttpd2pi", { MXC
, EXx
}, PREFIX_OPCODE
},
3830 { "cvttsd2siY", { Gv
, EXq
}, PREFIX_OPCODE
},
3835 { "cvtps2pi", { MXC
, EXq
}, PREFIX_OPCODE
},
3836 { "cvtss2siY", { Gv
, EXd
}, PREFIX_OPCODE
},
3837 { "cvtpd2pi", { MXC
, EXx
}, PREFIX_OPCODE
},
3838 { "cvtsd2siY", { Gv
, EXq
}, PREFIX_OPCODE
},
3843 { "ucomiss",{ XM
, EXd
}, 0 },
3845 { "ucomisd",{ XM
, EXq
}, 0 },
3850 { "comiss", { XM
, EXd
}, 0 },
3852 { "comisd", { XM
, EXq
}, 0 },
3857 { "sqrtps", { XM
, EXx
}, PREFIX_OPCODE
},
3858 { "sqrtss", { XM
, EXd
}, PREFIX_OPCODE
},
3859 { "sqrtpd", { XM
, EXx
}, PREFIX_OPCODE
},
3860 { "sqrtsd", { XM
, EXq
}, PREFIX_OPCODE
},
3865 { "rsqrtps",{ XM
, EXx
}, PREFIX_OPCODE
},
3866 { "rsqrtss",{ XM
, EXd
}, PREFIX_OPCODE
},
3871 { "rcpps", { XM
, EXx
}, PREFIX_OPCODE
},
3872 { "rcpss", { XM
, EXd
}, PREFIX_OPCODE
},
3877 { "addps", { XM
, EXx
}, PREFIX_OPCODE
},
3878 { "addss", { XM
, EXd
}, PREFIX_OPCODE
},
3879 { "addpd", { XM
, EXx
}, PREFIX_OPCODE
},
3880 { "addsd", { XM
, EXq
}, PREFIX_OPCODE
},
3885 { "mulps", { XM
, EXx
}, PREFIX_OPCODE
},
3886 { "mulss", { XM
, EXd
}, PREFIX_OPCODE
},
3887 { "mulpd", { XM
, EXx
}, PREFIX_OPCODE
},
3888 { "mulsd", { XM
, EXq
}, PREFIX_OPCODE
},
3893 { "cvtps2pd", { XM
, EXq
}, PREFIX_OPCODE
},
3894 { "cvtss2sd", { XM
, EXd
}, PREFIX_OPCODE
},
3895 { "cvtpd2ps", { XM
, EXx
}, PREFIX_OPCODE
},
3896 { "cvtsd2ss", { XM
, EXq
}, PREFIX_OPCODE
},
3901 { "cvtdq2ps", { XM
, EXx
}, PREFIX_OPCODE
},
3902 { "cvttps2dq", { XM
, EXx
}, PREFIX_OPCODE
},
3903 { "cvtps2dq", { XM
, EXx
}, PREFIX_OPCODE
},
3908 { "subps", { XM
, EXx
}, PREFIX_OPCODE
},
3909 { "subss", { XM
, EXd
}, PREFIX_OPCODE
},
3910 { "subpd", { XM
, EXx
}, PREFIX_OPCODE
},
3911 { "subsd", { XM
, EXq
}, PREFIX_OPCODE
},
3916 { "minps", { XM
, EXx
}, PREFIX_OPCODE
},
3917 { "minss", { XM
, EXd
}, PREFIX_OPCODE
},
3918 { "minpd", { XM
, EXx
}, PREFIX_OPCODE
},
3919 { "minsd", { XM
, EXq
}, PREFIX_OPCODE
},
3924 { "divps", { XM
, EXx
}, PREFIX_OPCODE
},
3925 { "divss", { XM
, EXd
}, PREFIX_OPCODE
},
3926 { "divpd", { XM
, EXx
}, PREFIX_OPCODE
},
3927 { "divsd", { XM
, EXq
}, PREFIX_OPCODE
},
3932 { "maxps", { XM
, EXx
}, PREFIX_OPCODE
},
3933 { "maxss", { XM
, EXd
}, PREFIX_OPCODE
},
3934 { "maxpd", { XM
, EXx
}, PREFIX_OPCODE
},
3935 { "maxsd", { XM
, EXq
}, PREFIX_OPCODE
},
3940 { "punpcklbw",{ MX
, EMd
}, PREFIX_OPCODE
},
3942 { "punpcklbw",{ MX
, EMx
}, PREFIX_OPCODE
},
3947 { "punpcklwd",{ MX
, EMd
}, PREFIX_OPCODE
},
3949 { "punpcklwd",{ MX
, EMx
}, PREFIX_OPCODE
},
3954 { "punpckldq",{ MX
, EMd
}, PREFIX_OPCODE
},
3956 { "punpckldq",{ MX
, EMx
}, PREFIX_OPCODE
},
3963 { "punpcklqdq", { XM
, EXx
}, PREFIX_OPCODE
},
3970 { "punpckhqdq", { XM
, EXx
}, PREFIX_OPCODE
},
3975 { "movq", { MX
, EM
}, PREFIX_OPCODE
},
3976 { "movdqu", { XM
, EXx
}, PREFIX_OPCODE
},
3977 { "movdqa", { XM
, EXx
}, PREFIX_OPCODE
},
3982 { "pshufw", { MX
, EM
, Ib
}, PREFIX_OPCODE
},
3983 { "pshufhw",{ XM
, EXx
, Ib
}, PREFIX_OPCODE
},
3984 { "pshufd", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
3985 { "pshuflw",{ XM
, EXx
, Ib
}, PREFIX_OPCODE
},
3988 /* PREFIX_0F73_REG_3 */
3992 { "psrldq", { XS
, Ib
}, 0 },
3995 /* PREFIX_0F73_REG_7 */
3999 { "pslldq", { XS
, Ib
}, 0 },
4004 {"vmread", { Em
, Gm
}, 0 },
4006 {"extrq", { XS
, Ib
, Ib
}, 0 },
4007 {"insertq", { XM
, XS
, Ib
, Ib
}, 0 },
4012 {"vmwrite", { Gm
, Em
}, 0 },
4014 {"extrq", { XM
, XS
}, 0 },
4015 {"insertq", { XM
, XS
}, 0 },
4022 { "haddpd", { XM
, EXx
}, PREFIX_OPCODE
},
4023 { "haddps", { XM
, EXx
}, PREFIX_OPCODE
},
4030 { "hsubpd", { XM
, EXx
}, PREFIX_OPCODE
},
4031 { "hsubps", { XM
, EXx
}, PREFIX_OPCODE
},
4036 { "movK", { Edq
, MX
}, PREFIX_OPCODE
},
4037 { "movq", { XM
, EXq
}, PREFIX_OPCODE
},
4038 { "movK", { Edq
, XM
}, PREFIX_OPCODE
},
4043 { "movq", { EMS
, MX
}, PREFIX_OPCODE
},
4044 { "movdqu", { EXxS
, XM
}, PREFIX_OPCODE
},
4045 { "movdqa", { EXxS
, XM
}, PREFIX_OPCODE
},
4048 /* PREFIX_0FAE_REG_0 */
4051 { "rdfsbase", { Ev
}, 0 },
4054 /* PREFIX_0FAE_REG_1 */
4057 { "rdgsbase", { Ev
}, 0 },
4060 /* PREFIX_0FAE_REG_2 */
4063 { "wrfsbase", { Ev
}, 0 },
4066 /* PREFIX_0FAE_REG_3 */
4069 { "wrgsbase", { Ev
}, 0 },
4072 /* PREFIX_MOD_0_0FAE_REG_4 */
4074 { "xsave", { FXSAVE
}, 0 },
4075 { "ptwrite%LQ", { Edq
}, 0 },
4078 /* PREFIX_MOD_3_0FAE_REG_4 */
4081 { "ptwrite%LQ", { Edq
}, 0 },
4084 /* PREFIX_0FAE_REG_6 */
4086 { "xsaveopt", { FXSAVE
}, 0 },
4088 { "clwb", { Mb
}, 0 },
4091 /* PREFIX_0FAE_REG_7 */
4093 { "clflush", { Mb
}, 0 },
4095 { "clflushopt", { Mb
}, 0 },
4101 { "popcntS", { Gv
, Ev
}, 0 },
4106 { "bsfS", { Gv
, Ev
}, 0 },
4107 { "tzcntS", { Gv
, Ev
}, 0 },
4108 { "bsfS", { Gv
, Ev
}, 0 },
4113 { "bsrS", { Gv
, Ev
}, 0 },
4114 { "lzcntS", { Gv
, Ev
}, 0 },
4115 { "bsrS", { Gv
, Ev
}, 0 },
4120 { "cmpps", { XM
, EXx
, CMP
}, PREFIX_OPCODE
},
4121 { "cmpss", { XM
, EXd
, CMP
}, PREFIX_OPCODE
},
4122 { "cmppd", { XM
, EXx
, CMP
}, PREFIX_OPCODE
},
4123 { "cmpsd", { XM
, EXq
, CMP
}, PREFIX_OPCODE
},
4126 /* PREFIX_MOD_0_0FC3 */
4128 { "movntiS", { Ev
, Gv
}, PREFIX_OPCODE
},
4131 /* PREFIX_MOD_0_0FC7_REG_6 */
4133 { "vmptrld",{ Mq
}, 0 },
4134 { "vmxon", { Mq
}, 0 },
4135 { "vmclear",{ Mq
}, 0 },
4138 /* PREFIX_MOD_3_0FC7_REG_6 */
4140 { "rdrand", { Ev
}, 0 },
4142 { "rdrand", { Ev
}, 0 }
4145 /* PREFIX_MOD_3_0FC7_REG_7 */
4147 { "rdseed", { Ev
}, 0 },
4148 { "rdpid", { Em
}, 0 },
4149 { "rdseed", { Ev
}, 0 },
4156 { "addsubpd", { XM
, EXx
}, 0 },
4157 { "addsubps", { XM
, EXx
}, 0 },
4163 { "movq2dq",{ XM
, MS
}, 0 },
4164 { "movq", { EXqS
, XM
}, 0 },
4165 { "movdq2q",{ MX
, XS
}, 0 },
4171 { "cvtdq2pd", { XM
, EXq
}, PREFIX_OPCODE
},
4172 { "cvttpd2dq", { XM
, EXx
}, PREFIX_OPCODE
},
4173 { "cvtpd2dq", { XM
, EXx
}, PREFIX_OPCODE
},
4178 { "movntq", { Mq
, MX
}, PREFIX_OPCODE
},
4180 { MOD_TABLE (MOD_0FE7_PREFIX_2
) },
4188 { MOD_TABLE (MOD_0FF0_PREFIX_3
) },
4193 { "maskmovq", { MX
, MS
}, PREFIX_OPCODE
},
4195 { "maskmovdqu", { XM
, XS
}, PREFIX_OPCODE
},
4202 { "pblendvb", { XM
, EXx
, XMM0
}, PREFIX_OPCODE
},
4209 { "blendvps", { XM
, EXx
, XMM0
}, PREFIX_OPCODE
},
4216 { "blendvpd", { XM
, EXx
, XMM0
}, PREFIX_OPCODE
},
4223 { "ptest", { XM
, EXx
}, PREFIX_OPCODE
},
4230 { "pmovsxbw", { XM
, EXq
}, PREFIX_OPCODE
},
4237 { "pmovsxbd", { XM
, EXd
}, PREFIX_OPCODE
},
4244 { "pmovsxbq", { XM
, EXw
}, PREFIX_OPCODE
},
4251 { "pmovsxwd", { XM
, EXq
}, PREFIX_OPCODE
},
4258 { "pmovsxwq", { XM
, EXd
}, PREFIX_OPCODE
},
4265 { "pmovsxdq", { XM
, EXq
}, PREFIX_OPCODE
},
4272 { "pmuldq", { XM
, EXx
}, PREFIX_OPCODE
},
4279 { "pcmpeqq", { XM
, EXx
}, PREFIX_OPCODE
},
4286 { MOD_TABLE (MOD_0F382A_PREFIX_2
) },
4293 { "packusdw", { XM
, EXx
}, PREFIX_OPCODE
},
4300 { "pmovzxbw", { XM
, EXq
}, PREFIX_OPCODE
},
4307 { "pmovzxbd", { XM
, EXd
}, PREFIX_OPCODE
},
4314 { "pmovzxbq", { XM
, EXw
}, PREFIX_OPCODE
},
4321 { "pmovzxwd", { XM
, EXq
}, PREFIX_OPCODE
},
4328 { "pmovzxwq", { XM
, EXd
}, PREFIX_OPCODE
},
4335 { "pmovzxdq", { XM
, EXq
}, PREFIX_OPCODE
},
4342 { "pcmpgtq", { XM
, EXx
}, PREFIX_OPCODE
},
4349 { "pminsb", { XM
, EXx
}, PREFIX_OPCODE
},
4356 { "pminsd", { XM
, EXx
}, PREFIX_OPCODE
},
4363 { "pminuw", { XM
, EXx
}, PREFIX_OPCODE
},
4370 { "pminud", { XM
, EXx
}, PREFIX_OPCODE
},
4377 { "pmaxsb", { XM
, EXx
}, PREFIX_OPCODE
},
4384 { "pmaxsd", { XM
, EXx
}, PREFIX_OPCODE
},
4391 { "pmaxuw", { XM
, EXx
}, PREFIX_OPCODE
},
4398 { "pmaxud", { XM
, EXx
}, PREFIX_OPCODE
},
4405 { "pmulld", { XM
, EXx
}, PREFIX_OPCODE
},
4412 { "phminposuw", { XM
, EXx
}, PREFIX_OPCODE
},
4419 { "invept", { Gm
, Mo
}, PREFIX_OPCODE
},
4426 { "invvpid", { Gm
, Mo
}, PREFIX_OPCODE
},
4433 { "invpcid", { Gm
, M
}, PREFIX_OPCODE
},
4438 { "sha1nexte", { XM
, EXxmm
}, PREFIX_OPCODE
},
4443 { "sha1msg1", { XM
, EXxmm
}, PREFIX_OPCODE
},
4448 { "sha1msg2", { XM
, EXxmm
}, PREFIX_OPCODE
},
4453 { "sha256rnds2", { XM
, EXxmm
, XMM0
}, PREFIX_OPCODE
},
4458 { "sha256msg1", { XM
, EXxmm
}, PREFIX_OPCODE
},
4463 { "sha256msg2", { XM
, EXxmm
}, PREFIX_OPCODE
},
4470 { "aesimc", { XM
, EXx
}, PREFIX_OPCODE
},
4477 { "aesenc", { XM
, EXx
}, PREFIX_OPCODE
},
4484 { "aesenclast", { XM
, EXx
}, PREFIX_OPCODE
},
4491 { "aesdec", { XM
, EXx
}, PREFIX_OPCODE
},
4498 { "aesdeclast", { XM
, EXx
}, PREFIX_OPCODE
},
4503 { "movbeS", { Gv
, { MOVBE_Fixup
, v_mode
} }, PREFIX_OPCODE
},
4505 { "movbeS", { Gv
, { MOVBE_Fixup
, v_mode
} }, PREFIX_OPCODE
},
4506 { "crc32", { Gdq
, { CRC32_Fixup
, b_mode
} }, PREFIX_OPCODE
},
4511 { "movbeS", { { MOVBE_Fixup
, v_mode
}, Gv
}, PREFIX_OPCODE
},
4513 { "movbeS", { { MOVBE_Fixup
, v_mode
}, Gv
}, PREFIX_OPCODE
},
4514 { "crc32", { Gdq
, { CRC32_Fixup
, v_mode
} }, PREFIX_OPCODE
},
4520 { "adoxS", { Gdq
, Edq
}, PREFIX_OPCODE
},
4521 { "adcxS", { Gdq
, Edq
}, PREFIX_OPCODE
},
4529 { "roundps", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4536 { "roundpd", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4543 { "roundss", { XM
, EXd
, Ib
}, PREFIX_OPCODE
},
4550 { "roundsd", { XM
, EXq
, Ib
}, PREFIX_OPCODE
},
4557 { "blendps", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4564 { "blendpd", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4571 { "pblendw", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4578 { "pextrb", { Edqb
, XM
, Ib
}, PREFIX_OPCODE
},
4585 { "pextrw", { Edqw
, XM
, Ib
}, PREFIX_OPCODE
},
4592 { "pextrK", { Edq
, XM
, Ib
}, PREFIX_OPCODE
},
4599 { "extractps", { Edqd
, XM
, Ib
}, PREFIX_OPCODE
},
4606 { "pinsrb", { XM
, Edqb
, Ib
}, PREFIX_OPCODE
},
4613 { "insertps", { XM
, EXd
, Ib
}, PREFIX_OPCODE
},
4620 { "pinsrK", { XM
, Edq
, Ib
}, PREFIX_OPCODE
},
4627 { "dpps", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4634 { "dppd", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4641 { "mpsadbw", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4648 { "pclmulqdq", { XM
, EXx
, PCLMUL
}, PREFIX_OPCODE
},
4655 { "pcmpestrm", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4662 { "pcmpestri", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4669 { "pcmpistrm", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4676 { "pcmpistri", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4681 { "sha1rnds4", { XM
, EXxmm
, Ib
}, PREFIX_OPCODE
},
4688 { "aeskeygenassist", { XM
, EXx
, Ib
}, PREFIX_OPCODE
},
4691 /* PREFIX_VEX_0F10 */
4693 { VEX_W_TABLE (VEX_W_0F10_P_0
) },
4694 { VEX_LEN_TABLE (VEX_LEN_0F10_P_1
) },
4695 { VEX_W_TABLE (VEX_W_0F10_P_2
) },
4696 { VEX_LEN_TABLE (VEX_LEN_0F10_P_3
) },
4699 /* PREFIX_VEX_0F11 */
4701 { VEX_W_TABLE (VEX_W_0F11_P_0
) },
4702 { VEX_LEN_TABLE (VEX_LEN_0F11_P_1
) },
4703 { VEX_W_TABLE (VEX_W_0F11_P_2
) },
4704 { VEX_LEN_TABLE (VEX_LEN_0F11_P_3
) },
4707 /* PREFIX_VEX_0F12 */
4709 { MOD_TABLE (MOD_VEX_0F12_PREFIX_0
) },
4710 { VEX_W_TABLE (VEX_W_0F12_P_1
) },
4711 { VEX_LEN_TABLE (VEX_LEN_0F12_P_2
) },
4712 { VEX_W_TABLE (VEX_W_0F12_P_3
) },
4715 /* PREFIX_VEX_0F16 */
4717 { MOD_TABLE (MOD_VEX_0F16_PREFIX_0
) },
4718 { VEX_W_TABLE (VEX_W_0F16_P_1
) },
4719 { VEX_LEN_TABLE (VEX_LEN_0F16_P_2
) },
4722 /* PREFIX_VEX_0F2A */
4725 { VEX_LEN_TABLE (VEX_LEN_0F2A_P_1
) },
4727 { VEX_LEN_TABLE (VEX_LEN_0F2A_P_3
) },
4730 /* PREFIX_VEX_0F2C */
4733 { VEX_LEN_TABLE (VEX_LEN_0F2C_P_1
) },
4735 { VEX_LEN_TABLE (VEX_LEN_0F2C_P_3
) },
4738 /* PREFIX_VEX_0F2D */
4741 { VEX_LEN_TABLE (VEX_LEN_0F2D_P_1
) },
4743 { VEX_LEN_TABLE (VEX_LEN_0F2D_P_3
) },
4746 /* PREFIX_VEX_0F2E */
4748 { VEX_LEN_TABLE (VEX_LEN_0F2E_P_0
) },
4750 { VEX_LEN_TABLE (VEX_LEN_0F2E_P_2
) },
4753 /* PREFIX_VEX_0F2F */
4755 { VEX_LEN_TABLE (VEX_LEN_0F2F_P_0
) },
4757 { VEX_LEN_TABLE (VEX_LEN_0F2F_P_2
) },
4760 /* PREFIX_VEX_0F41 */
4762 { VEX_LEN_TABLE (VEX_LEN_0F41_P_0
) },
4764 { VEX_LEN_TABLE (VEX_LEN_0F41_P_2
) },
4767 /* PREFIX_VEX_0F42 */
4769 { VEX_LEN_TABLE (VEX_LEN_0F42_P_0
) },
4771 { VEX_LEN_TABLE (VEX_LEN_0F42_P_2
) },
4774 /* PREFIX_VEX_0F44 */
4776 { VEX_LEN_TABLE (VEX_LEN_0F44_P_0
) },
4778 { VEX_LEN_TABLE (VEX_LEN_0F44_P_2
) },
4781 /* PREFIX_VEX_0F45 */
4783 { VEX_LEN_TABLE (VEX_LEN_0F45_P_0
) },
4785 { VEX_LEN_TABLE (VEX_LEN_0F45_P_2
) },
4788 /* PREFIX_VEX_0F46 */
4790 { VEX_LEN_TABLE (VEX_LEN_0F46_P_0
) },
4792 { VEX_LEN_TABLE (VEX_LEN_0F46_P_2
) },
4795 /* PREFIX_VEX_0F47 */
4797 { VEX_LEN_TABLE (VEX_LEN_0F47_P_0
) },
4799 { VEX_LEN_TABLE (VEX_LEN_0F47_P_2
) },
4802 /* PREFIX_VEX_0F4A */
4804 { VEX_LEN_TABLE (VEX_LEN_0F4A_P_0
) },
4806 { VEX_LEN_TABLE (VEX_LEN_0F4A_P_2
) },
4809 /* PREFIX_VEX_0F4B */
4811 { VEX_LEN_TABLE (VEX_LEN_0F4B_P_0
) },
4813 { VEX_LEN_TABLE (VEX_LEN_0F4B_P_2
) },
4816 /* PREFIX_VEX_0F51 */
4818 { VEX_W_TABLE (VEX_W_0F51_P_0
) },
4819 { VEX_LEN_TABLE (VEX_LEN_0F51_P_1
) },
4820 { VEX_W_TABLE (VEX_W_0F51_P_2
) },
4821 { VEX_LEN_TABLE (VEX_LEN_0F51_P_3
) },
4824 /* PREFIX_VEX_0F52 */
4826 { VEX_W_TABLE (VEX_W_0F52_P_0
) },
4827 { VEX_LEN_TABLE (VEX_LEN_0F52_P_1
) },
4830 /* PREFIX_VEX_0F53 */
4832 { VEX_W_TABLE (VEX_W_0F53_P_0
) },
4833 { VEX_LEN_TABLE (VEX_LEN_0F53_P_1
) },
4836 /* PREFIX_VEX_0F58 */
4838 { VEX_W_TABLE (VEX_W_0F58_P_0
) },
4839 { VEX_LEN_TABLE (VEX_LEN_0F58_P_1
) },
4840 { VEX_W_TABLE (VEX_W_0F58_P_2
) },
4841 { VEX_LEN_TABLE (VEX_LEN_0F58_P_3
) },
4844 /* PREFIX_VEX_0F59 */
4846 { VEX_W_TABLE (VEX_W_0F59_P_0
) },
4847 { VEX_LEN_TABLE (VEX_LEN_0F59_P_1
) },
4848 { VEX_W_TABLE (VEX_W_0F59_P_2
) },
4849 { VEX_LEN_TABLE (VEX_LEN_0F59_P_3
) },
4852 /* PREFIX_VEX_0F5A */
4854 { VEX_W_TABLE (VEX_W_0F5A_P_0
) },
4855 { VEX_LEN_TABLE (VEX_LEN_0F5A_P_1
) },
4856 { "vcvtpd2ps%XY", { XMM
, EXx
}, 0 },
4857 { VEX_LEN_TABLE (VEX_LEN_0F5A_P_3
) },
4860 /* PREFIX_VEX_0F5B */
4862 { VEX_W_TABLE (VEX_W_0F5B_P_0
) },
4863 { VEX_W_TABLE (VEX_W_0F5B_P_1
) },
4864 { VEX_W_TABLE (VEX_W_0F5B_P_2
) },
4867 /* PREFIX_VEX_0F5C */
4869 { VEX_W_TABLE (VEX_W_0F5C_P_0
) },
4870 { VEX_LEN_TABLE (VEX_LEN_0F5C_P_1
) },
4871 { VEX_W_TABLE (VEX_W_0F5C_P_2
) },
4872 { VEX_LEN_TABLE (VEX_LEN_0F5C_P_3
) },
4875 /* PREFIX_VEX_0F5D */
4877 { VEX_W_TABLE (VEX_W_0F5D_P_0
) },
4878 { VEX_LEN_TABLE (VEX_LEN_0F5D_P_1
) },
4879 { VEX_W_TABLE (VEX_W_0F5D_P_2
) },
4880 { VEX_LEN_TABLE (VEX_LEN_0F5D_P_3
) },
4883 /* PREFIX_VEX_0F5E */
4885 { VEX_W_TABLE (VEX_W_0F5E_P_0
) },
4886 { VEX_LEN_TABLE (VEX_LEN_0F5E_P_1
) },
4887 { VEX_W_TABLE (VEX_W_0F5E_P_2
) },
4888 { VEX_LEN_TABLE (VEX_LEN_0F5E_P_3
) },
4891 /* PREFIX_VEX_0F5F */
4893 { VEX_W_TABLE (VEX_W_0F5F_P_0
) },
4894 { VEX_LEN_TABLE (VEX_LEN_0F5F_P_1
) },
4895 { VEX_W_TABLE (VEX_W_0F5F_P_2
) },
4896 { VEX_LEN_TABLE (VEX_LEN_0F5F_P_3
) },
4899 /* PREFIX_VEX_0F60 */
4903 { VEX_W_TABLE (VEX_W_0F60_P_2
) },
4906 /* PREFIX_VEX_0F61 */
4910 { VEX_W_TABLE (VEX_W_0F61_P_2
) },
4913 /* PREFIX_VEX_0F62 */
4917 { VEX_W_TABLE (VEX_W_0F62_P_2
) },
4920 /* PREFIX_VEX_0F63 */
4924 { VEX_W_TABLE (VEX_W_0F63_P_2
) },
4927 /* PREFIX_VEX_0F64 */
4931 { VEX_W_TABLE (VEX_W_0F64_P_2
) },
4934 /* PREFIX_VEX_0F65 */
4938 { VEX_W_TABLE (VEX_W_0F65_P_2
) },
4941 /* PREFIX_VEX_0F66 */
4945 { VEX_W_TABLE (VEX_W_0F66_P_2
) },
4948 /* PREFIX_VEX_0F67 */
4952 { VEX_W_TABLE (VEX_W_0F67_P_2
) },
4955 /* PREFIX_VEX_0F68 */
4959 { VEX_W_TABLE (VEX_W_0F68_P_2
) },
4962 /* PREFIX_VEX_0F69 */
4966 { VEX_W_TABLE (VEX_W_0F69_P_2
) },
4969 /* PREFIX_VEX_0F6A */
4973 { VEX_W_TABLE (VEX_W_0F6A_P_2
) },
4976 /* PREFIX_VEX_0F6B */
4980 { VEX_W_TABLE (VEX_W_0F6B_P_2
) },
4983 /* PREFIX_VEX_0F6C */
4987 { VEX_W_TABLE (VEX_W_0F6C_P_2
) },
4990 /* PREFIX_VEX_0F6D */
4994 { VEX_W_TABLE (VEX_W_0F6D_P_2
) },
4997 /* PREFIX_VEX_0F6E */
5001 { VEX_LEN_TABLE (VEX_LEN_0F6E_P_2
) },
5004 /* PREFIX_VEX_0F6F */
5007 { VEX_W_TABLE (VEX_W_0F6F_P_1
) },
5008 { VEX_W_TABLE (VEX_W_0F6F_P_2
) },
5011 /* PREFIX_VEX_0F70 */
5014 { VEX_W_TABLE (VEX_W_0F70_P_1
) },
5015 { VEX_W_TABLE (VEX_W_0F70_P_2
) },
5016 { VEX_W_TABLE (VEX_W_0F70_P_3
) },
5019 /* PREFIX_VEX_0F71_REG_2 */
5023 { VEX_W_TABLE (VEX_W_0F71_R_2_P_2
) },
5026 /* PREFIX_VEX_0F71_REG_4 */
5030 { VEX_W_TABLE (VEX_W_0F71_R_4_P_2
) },
5033 /* PREFIX_VEX_0F71_REG_6 */
5037 { VEX_W_TABLE (VEX_W_0F71_R_6_P_2
) },
5040 /* PREFIX_VEX_0F72_REG_2 */
5044 { VEX_W_TABLE (VEX_W_0F72_R_2_P_2
) },
5047 /* PREFIX_VEX_0F72_REG_4 */
5051 { VEX_W_TABLE (VEX_W_0F72_R_4_P_2
) },
5054 /* PREFIX_VEX_0F72_REG_6 */
5058 { VEX_W_TABLE (VEX_W_0F72_R_6_P_2
) },
5061 /* PREFIX_VEX_0F73_REG_2 */
5065 { VEX_W_TABLE (VEX_W_0F73_R_2_P_2
) },
5068 /* PREFIX_VEX_0F73_REG_3 */
5072 { VEX_W_TABLE (VEX_W_0F73_R_3_P_2
) },
5075 /* PREFIX_VEX_0F73_REG_6 */
5079 { VEX_W_TABLE (VEX_W_0F73_R_6_P_2
) },
5082 /* PREFIX_VEX_0F73_REG_7 */
5086 { VEX_W_TABLE (VEX_W_0F73_R_7_P_2
) },
5089 /* PREFIX_VEX_0F74 */
5093 { VEX_W_TABLE (VEX_W_0F74_P_2
) },
5096 /* PREFIX_VEX_0F75 */
5100 { VEX_W_TABLE (VEX_W_0F75_P_2
) },
5103 /* PREFIX_VEX_0F76 */
5107 { VEX_W_TABLE (VEX_W_0F76_P_2
) },
5110 /* PREFIX_VEX_0F77 */
5112 { VEX_W_TABLE (VEX_W_0F77_P_0
) },
5115 /* PREFIX_VEX_0F7C */
5119 { VEX_W_TABLE (VEX_W_0F7C_P_2
) },
5120 { VEX_W_TABLE (VEX_W_0F7C_P_3
) },
5123 /* PREFIX_VEX_0F7D */
5127 { VEX_W_TABLE (VEX_W_0F7D_P_2
) },
5128 { VEX_W_TABLE (VEX_W_0F7D_P_3
) },
5131 /* PREFIX_VEX_0F7E */
5134 { VEX_LEN_TABLE (VEX_LEN_0F7E_P_1
) },
5135 { VEX_LEN_TABLE (VEX_LEN_0F7E_P_2
) },
5138 /* PREFIX_VEX_0F7F */
5141 { VEX_W_TABLE (VEX_W_0F7F_P_1
) },
5142 { VEX_W_TABLE (VEX_W_0F7F_P_2
) },
5145 /* PREFIX_VEX_0F90 */
5147 { VEX_LEN_TABLE (VEX_LEN_0F90_P_0
) },
5149 { VEX_LEN_TABLE (VEX_LEN_0F90_P_2
) },
5152 /* PREFIX_VEX_0F91 */
5154 { VEX_LEN_TABLE (VEX_LEN_0F91_P_0
) },
5156 { VEX_LEN_TABLE (VEX_LEN_0F91_P_2
) },
5159 /* PREFIX_VEX_0F92 */
5161 { VEX_LEN_TABLE (VEX_LEN_0F92_P_0
) },
5163 { VEX_LEN_TABLE (VEX_LEN_0F92_P_2
) },
5164 { VEX_LEN_TABLE (VEX_LEN_0F92_P_3
) },
5167 /* PREFIX_VEX_0F93 */
5169 { VEX_LEN_TABLE (VEX_LEN_0F93_P_0
) },
5171 { VEX_LEN_TABLE (VEX_LEN_0F93_P_2
) },
5172 { VEX_LEN_TABLE (VEX_LEN_0F93_P_3
) },
5175 /* PREFIX_VEX_0F98 */
5177 { VEX_LEN_TABLE (VEX_LEN_0F98_P_0
) },
5179 { VEX_LEN_TABLE (VEX_LEN_0F98_P_2
) },
5182 /* PREFIX_VEX_0F99 */
5184 { VEX_LEN_TABLE (VEX_LEN_0F99_P_0
) },
5186 { VEX_LEN_TABLE (VEX_LEN_0F99_P_2
) },
5189 /* PREFIX_VEX_0FC2 */
5191 { VEX_W_TABLE (VEX_W_0FC2_P_0
) },
5192 { VEX_LEN_TABLE (VEX_LEN_0FC2_P_1
) },
5193 { VEX_W_TABLE (VEX_W_0FC2_P_2
) },
5194 { VEX_LEN_TABLE (VEX_LEN_0FC2_P_3
) },
5197 /* PREFIX_VEX_0FC4 */
5201 { VEX_LEN_TABLE (VEX_LEN_0FC4_P_2
) },
5204 /* PREFIX_VEX_0FC5 */
5208 { VEX_LEN_TABLE (VEX_LEN_0FC5_P_2
) },
5211 /* PREFIX_VEX_0FD0 */
5215 { VEX_W_TABLE (VEX_W_0FD0_P_2
) },
5216 { VEX_W_TABLE (VEX_W_0FD0_P_3
) },
5219 /* PREFIX_VEX_0FD1 */
5223 { VEX_W_TABLE (VEX_W_0FD1_P_2
) },
5226 /* PREFIX_VEX_0FD2 */
5230 { VEX_W_TABLE (VEX_W_0FD2_P_2
) },
5233 /* PREFIX_VEX_0FD3 */
5237 { VEX_W_TABLE (VEX_W_0FD3_P_2
) },
5240 /* PREFIX_VEX_0FD4 */
5244 { VEX_W_TABLE (VEX_W_0FD4_P_2
) },
5247 /* PREFIX_VEX_0FD5 */
5251 { VEX_W_TABLE (VEX_W_0FD5_P_2
) },
5254 /* PREFIX_VEX_0FD6 */
5258 { VEX_LEN_TABLE (VEX_LEN_0FD6_P_2
) },
5261 /* PREFIX_VEX_0FD7 */
5265 { MOD_TABLE (MOD_VEX_0FD7_PREFIX_2
) },
5268 /* PREFIX_VEX_0FD8 */
5272 { VEX_W_TABLE (VEX_W_0FD8_P_2
) },
5275 /* PREFIX_VEX_0FD9 */
5279 { VEX_W_TABLE (VEX_W_0FD9_P_2
) },
5282 /* PREFIX_VEX_0FDA */
5286 { VEX_W_TABLE (VEX_W_0FDA_P_2
) },
5289 /* PREFIX_VEX_0FDB */
5293 { VEX_W_TABLE (VEX_W_0FDB_P_2
) },
5296 /* PREFIX_VEX_0FDC */
5300 { VEX_W_TABLE (VEX_W_0FDC_P_2
) },
5303 /* PREFIX_VEX_0FDD */
5307 { VEX_W_TABLE (VEX_W_0FDD_P_2
) },
5310 /* PREFIX_VEX_0FDE */
5314 { VEX_W_TABLE (VEX_W_0FDE_P_2
) },
5317 /* PREFIX_VEX_0FDF */
5321 { VEX_W_TABLE (VEX_W_0FDF_P_2
) },
5324 /* PREFIX_VEX_0FE0 */
5328 { VEX_W_TABLE (VEX_W_0FE0_P_2
) },
5331 /* PREFIX_VEX_0FE1 */
5335 { VEX_W_TABLE (VEX_W_0FE1_P_2
) },
5338 /* PREFIX_VEX_0FE2 */
5342 { VEX_W_TABLE (VEX_W_0FE2_P_2
) },
5345 /* PREFIX_VEX_0FE3 */
5349 { VEX_W_TABLE (VEX_W_0FE3_P_2
) },
5352 /* PREFIX_VEX_0FE4 */
5356 { VEX_W_TABLE (VEX_W_0FE4_P_2
) },
5359 /* PREFIX_VEX_0FE5 */
5363 { VEX_W_TABLE (VEX_W_0FE5_P_2
) },
5366 /* PREFIX_VEX_0FE6 */
5369 { VEX_W_TABLE (VEX_W_0FE6_P_1
) },
5370 { VEX_W_TABLE (VEX_W_0FE6_P_2
) },
5371 { VEX_W_TABLE (VEX_W_0FE6_P_3
) },
5374 /* PREFIX_VEX_0FE7 */
5378 { MOD_TABLE (MOD_VEX_0FE7_PREFIX_2
) },
5381 /* PREFIX_VEX_0FE8 */
5385 { VEX_W_TABLE (VEX_W_0FE8_P_2
) },
5388 /* PREFIX_VEX_0FE9 */
5392 { VEX_W_TABLE (VEX_W_0FE9_P_2
) },
5395 /* PREFIX_VEX_0FEA */
5399 { VEX_W_TABLE (VEX_W_0FEA_P_2
) },
5402 /* PREFIX_VEX_0FEB */
5406 { VEX_W_TABLE (VEX_W_0FEB_P_2
) },
5409 /* PREFIX_VEX_0FEC */
5413 { VEX_W_TABLE (VEX_W_0FEC_P_2
) },
5416 /* PREFIX_VEX_0FED */
5420 { VEX_W_TABLE (VEX_W_0FED_P_2
) },
5423 /* PREFIX_VEX_0FEE */
5427 { VEX_W_TABLE (VEX_W_0FEE_P_2
) },
5430 /* PREFIX_VEX_0FEF */
5434 { VEX_W_TABLE (VEX_W_0FEF_P_2
) },
5437 /* PREFIX_VEX_0FF0 */
5442 { MOD_TABLE (MOD_VEX_0FF0_PREFIX_3
) },
5445 /* PREFIX_VEX_0FF1 */
5449 { VEX_W_TABLE (VEX_W_0FF1_P_2
) },
5452 /* PREFIX_VEX_0FF2 */
5456 { VEX_W_TABLE (VEX_W_0FF2_P_2
) },
5459 /* PREFIX_VEX_0FF3 */
5463 { VEX_W_TABLE (VEX_W_0FF3_P_2
) },
5466 /* PREFIX_VEX_0FF4 */
5470 { VEX_W_TABLE (VEX_W_0FF4_P_2
) },
5473 /* PREFIX_VEX_0FF5 */
5477 { VEX_W_TABLE (VEX_W_0FF5_P_2
) },
5480 /* PREFIX_VEX_0FF6 */
5484 { VEX_W_TABLE (VEX_W_0FF6_P_2
) },
5487 /* PREFIX_VEX_0FF7 */
5491 { VEX_LEN_TABLE (VEX_LEN_0FF7_P_2
) },
5494 /* PREFIX_VEX_0FF8 */
5498 { VEX_W_TABLE (VEX_W_0FF8_P_2
) },
5501 /* PREFIX_VEX_0FF9 */
5505 { VEX_W_TABLE (VEX_W_0FF9_P_2
) },
5508 /* PREFIX_VEX_0FFA */
5512 { VEX_W_TABLE (VEX_W_0FFA_P_2
) },
5515 /* PREFIX_VEX_0FFB */
5519 { VEX_W_TABLE (VEX_W_0FFB_P_2
) },
5522 /* PREFIX_VEX_0FFC */
5526 { VEX_W_TABLE (VEX_W_0FFC_P_2
) },
5529 /* PREFIX_VEX_0FFD */
5533 { VEX_W_TABLE (VEX_W_0FFD_P_2
) },
5536 /* PREFIX_VEX_0FFE */
5540 { VEX_W_TABLE (VEX_W_0FFE_P_2
) },
5543 /* PREFIX_VEX_0F3800 */
5547 { VEX_W_TABLE (VEX_W_0F3800_P_2
) },
5550 /* PREFIX_VEX_0F3801 */
5554 { VEX_W_TABLE (VEX_W_0F3801_P_2
) },
5557 /* PREFIX_VEX_0F3802 */
5561 { VEX_W_TABLE (VEX_W_0F3802_P_2
) },
5564 /* PREFIX_VEX_0F3803 */
5568 { VEX_W_TABLE (VEX_W_0F3803_P_2
) },
5571 /* PREFIX_VEX_0F3804 */
5575 { VEX_W_TABLE (VEX_W_0F3804_P_2
) },
5578 /* PREFIX_VEX_0F3805 */
5582 { VEX_W_TABLE (VEX_W_0F3805_P_2
) },
5585 /* PREFIX_VEX_0F3806 */
5589 { VEX_W_TABLE (VEX_W_0F3806_P_2
) },
5592 /* PREFIX_VEX_0F3807 */
5596 { VEX_W_TABLE (VEX_W_0F3807_P_2
) },
5599 /* PREFIX_VEX_0F3808 */
5603 { VEX_W_TABLE (VEX_W_0F3808_P_2
) },
5606 /* PREFIX_VEX_0F3809 */
5610 { VEX_W_TABLE (VEX_W_0F3809_P_2
) },
5613 /* PREFIX_VEX_0F380A */
5617 { VEX_W_TABLE (VEX_W_0F380A_P_2
) },
5620 /* PREFIX_VEX_0F380B */
5624 { VEX_W_TABLE (VEX_W_0F380B_P_2
) },
5627 /* PREFIX_VEX_0F380C */
5631 { VEX_W_TABLE (VEX_W_0F380C_P_2
) },
5634 /* PREFIX_VEX_0F380D */
5638 { VEX_W_TABLE (VEX_W_0F380D_P_2
) },
5641 /* PREFIX_VEX_0F380E */
5645 { VEX_W_TABLE (VEX_W_0F380E_P_2
) },
5648 /* PREFIX_VEX_0F380F */
5652 { VEX_W_TABLE (VEX_W_0F380F_P_2
) },
5655 /* PREFIX_VEX_0F3813 */
5659 { "vcvtph2ps", { XM
, EXxmmq
}, 0 },
5662 /* PREFIX_VEX_0F3816 */
5666 { VEX_LEN_TABLE (VEX_LEN_0F3816_P_2
) },
5669 /* PREFIX_VEX_0F3817 */
5673 { VEX_W_TABLE (VEX_W_0F3817_P_2
) },
5676 /* PREFIX_VEX_0F3818 */
5680 { VEX_W_TABLE (VEX_W_0F3818_P_2
) },
5683 /* PREFIX_VEX_0F3819 */
5687 { VEX_LEN_TABLE (VEX_LEN_0F3819_P_2
) },
5690 /* PREFIX_VEX_0F381A */
5694 { MOD_TABLE (MOD_VEX_0F381A_PREFIX_2
) },
5697 /* PREFIX_VEX_0F381C */
5701 { VEX_W_TABLE (VEX_W_0F381C_P_2
) },
5704 /* PREFIX_VEX_0F381D */
5708 { VEX_W_TABLE (VEX_W_0F381D_P_2
) },
5711 /* PREFIX_VEX_0F381E */
5715 { VEX_W_TABLE (VEX_W_0F381E_P_2
) },
5718 /* PREFIX_VEX_0F3820 */
5722 { VEX_W_TABLE (VEX_W_0F3820_P_2
) },
5725 /* PREFIX_VEX_0F3821 */
5729 { VEX_W_TABLE (VEX_W_0F3821_P_2
) },
5732 /* PREFIX_VEX_0F3822 */
5736 { VEX_W_TABLE (VEX_W_0F3822_P_2
) },
5739 /* PREFIX_VEX_0F3823 */
5743 { VEX_W_TABLE (VEX_W_0F3823_P_2
) },
5746 /* PREFIX_VEX_0F3824 */
5750 { VEX_W_TABLE (VEX_W_0F3824_P_2
) },
5753 /* PREFIX_VEX_0F3825 */
5757 { VEX_W_TABLE (VEX_W_0F3825_P_2
) },
5760 /* PREFIX_VEX_0F3828 */
5764 { VEX_W_TABLE (VEX_W_0F3828_P_2
) },
5767 /* PREFIX_VEX_0F3829 */
5771 { VEX_W_TABLE (VEX_W_0F3829_P_2
) },
5774 /* PREFIX_VEX_0F382A */
5778 { MOD_TABLE (MOD_VEX_0F382A_PREFIX_2
) },
5781 /* PREFIX_VEX_0F382B */
5785 { VEX_W_TABLE (VEX_W_0F382B_P_2
) },
5788 /* PREFIX_VEX_0F382C */
5792 { MOD_TABLE (MOD_VEX_0F382C_PREFIX_2
) },
5795 /* PREFIX_VEX_0F382D */
5799 { MOD_TABLE (MOD_VEX_0F382D_PREFIX_2
) },
5802 /* PREFIX_VEX_0F382E */
5806 { MOD_TABLE (MOD_VEX_0F382E_PREFIX_2
) },
5809 /* PREFIX_VEX_0F382F */
5813 { MOD_TABLE (MOD_VEX_0F382F_PREFIX_2
) },
5816 /* PREFIX_VEX_0F3830 */
5820 { VEX_W_TABLE (VEX_W_0F3830_P_2
) },
5823 /* PREFIX_VEX_0F3831 */
5827 { VEX_W_TABLE (VEX_W_0F3831_P_2
) },
5830 /* PREFIX_VEX_0F3832 */
5834 { VEX_W_TABLE (VEX_W_0F3832_P_2
) },
5837 /* PREFIX_VEX_0F3833 */
5841 { VEX_W_TABLE (VEX_W_0F3833_P_2
) },
5844 /* PREFIX_VEX_0F3834 */
5848 { VEX_W_TABLE (VEX_W_0F3834_P_2
) },
5851 /* PREFIX_VEX_0F3835 */
5855 { VEX_W_TABLE (VEX_W_0F3835_P_2
) },
5858 /* PREFIX_VEX_0F3836 */
5862 { VEX_LEN_TABLE (VEX_LEN_0F3836_P_2
) },
5865 /* PREFIX_VEX_0F3837 */
5869 { VEX_W_TABLE (VEX_W_0F3837_P_2
) },
5872 /* PREFIX_VEX_0F3838 */
5876 { VEX_W_TABLE (VEX_W_0F3838_P_2
) },
5879 /* PREFIX_VEX_0F3839 */
5883 { VEX_W_TABLE (VEX_W_0F3839_P_2
) },
5886 /* PREFIX_VEX_0F383A */
5890 { VEX_W_TABLE (VEX_W_0F383A_P_2
) },
5893 /* PREFIX_VEX_0F383B */
5897 { VEX_W_TABLE (VEX_W_0F383B_P_2
) },
5900 /* PREFIX_VEX_0F383C */
5904 { VEX_W_TABLE (VEX_W_0F383C_P_2
) },
5907 /* PREFIX_VEX_0F383D */
5911 { VEX_W_TABLE (VEX_W_0F383D_P_2
) },
5914 /* PREFIX_VEX_0F383E */
5918 { VEX_W_TABLE (VEX_W_0F383E_P_2
) },
5921 /* PREFIX_VEX_0F383F */
5925 { VEX_W_TABLE (VEX_W_0F383F_P_2
) },
5928 /* PREFIX_VEX_0F3840 */
5932 { VEX_W_TABLE (VEX_W_0F3840_P_2
) },
5935 /* PREFIX_VEX_0F3841 */
5939 { VEX_LEN_TABLE (VEX_LEN_0F3841_P_2
) },
5942 /* PREFIX_VEX_0F3845 */
5946 { "vpsrlv%LW", { XM
, Vex
, EXx
}, 0 },
5949 /* PREFIX_VEX_0F3846 */
5953 { VEX_W_TABLE (VEX_W_0F3846_P_2
) },
5956 /* PREFIX_VEX_0F3847 */
5960 { "vpsllv%LW", { XM
, Vex
, EXx
}, 0 },
5963 /* PREFIX_VEX_0F3858 */
5967 { VEX_W_TABLE (VEX_W_0F3858_P_2
) },
5970 /* PREFIX_VEX_0F3859 */
5974 { VEX_W_TABLE (VEX_W_0F3859_P_2
) },
5977 /* PREFIX_VEX_0F385A */
5981 { MOD_TABLE (MOD_VEX_0F385A_PREFIX_2
) },
5984 /* PREFIX_VEX_0F3878 */
5988 { VEX_W_TABLE (VEX_W_0F3878_P_2
) },
5991 /* PREFIX_VEX_0F3879 */
5995 { VEX_W_TABLE (VEX_W_0F3879_P_2
) },
5998 /* PREFIX_VEX_0F388C */
6002 { MOD_TABLE (MOD_VEX_0F388C_PREFIX_2
) },
6005 /* PREFIX_VEX_0F388E */
6009 { MOD_TABLE (MOD_VEX_0F388E_PREFIX_2
) },
6012 /* PREFIX_VEX_0F3890 */
6016 { "vpgatherd%LW", { XM
, MVexVSIBDWpX
, Vex
}, 0 },
6019 /* PREFIX_VEX_0F3891 */
6023 { "vpgatherq%LW", { XMGatherQ
, MVexVSIBQWpX
, VexGatherQ
}, 0 },
6026 /* PREFIX_VEX_0F3892 */
6030 { "vgatherdp%XW", { XM
, MVexVSIBDWpX
, Vex
}, 0 },
6033 /* PREFIX_VEX_0F3893 */
6037 { "vgatherqp%XW", { XMGatherQ
, MVexVSIBQWpX
, VexGatherQ
}, 0 },
6040 /* PREFIX_VEX_0F3896 */
6044 { "vfmaddsub132p%XW", { XM
, Vex
, EXx
}, 0 },
6047 /* PREFIX_VEX_0F3897 */
6051 { "vfmsubadd132p%XW", { XM
, Vex
, EXx
}, 0 },
6054 /* PREFIX_VEX_0F3898 */
6058 { "vfmadd132p%XW", { XM
, Vex
, EXx
}, 0 },
6061 /* PREFIX_VEX_0F3899 */
6065 { "vfmadd132s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6068 /* PREFIX_VEX_0F389A */
6072 { "vfmsub132p%XW", { XM
, Vex
, EXx
}, 0 },
6075 /* PREFIX_VEX_0F389B */
6079 { "vfmsub132s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6082 /* PREFIX_VEX_0F389C */
6086 { "vfnmadd132p%XW", { XM
, Vex
, EXx
}, 0 },
6089 /* PREFIX_VEX_0F389D */
6093 { "vfnmadd132s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6096 /* PREFIX_VEX_0F389E */
6100 { "vfnmsub132p%XW", { XM
, Vex
, EXx
}, 0 },
6103 /* PREFIX_VEX_0F389F */
6107 { "vfnmsub132s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6110 /* PREFIX_VEX_0F38A6 */
6114 { "vfmaddsub213p%XW", { XM
, Vex
, EXx
}, 0 },
6118 /* PREFIX_VEX_0F38A7 */
6122 { "vfmsubadd213p%XW", { XM
, Vex
, EXx
}, 0 },
6125 /* PREFIX_VEX_0F38A8 */
6129 { "vfmadd213p%XW", { XM
, Vex
, EXx
}, 0 },
6132 /* PREFIX_VEX_0F38A9 */
6136 { "vfmadd213s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6139 /* PREFIX_VEX_0F38AA */
6143 { "vfmsub213p%XW", { XM
, Vex
, EXx
}, 0 },
6146 /* PREFIX_VEX_0F38AB */
6150 { "vfmsub213s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6153 /* PREFIX_VEX_0F38AC */
6157 { "vfnmadd213p%XW", { XM
, Vex
, EXx
}, 0 },
6160 /* PREFIX_VEX_0F38AD */
6164 { "vfnmadd213s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6167 /* PREFIX_VEX_0F38AE */
6171 { "vfnmsub213p%XW", { XM
, Vex
, EXx
}, 0 },
6174 /* PREFIX_VEX_0F38AF */
6178 { "vfnmsub213s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6181 /* PREFIX_VEX_0F38B6 */
6185 { "vfmaddsub231p%XW", { XM
, Vex
, EXx
}, 0 },
6188 /* PREFIX_VEX_0F38B7 */
6192 { "vfmsubadd231p%XW", { XM
, Vex
, EXx
}, 0 },
6195 /* PREFIX_VEX_0F38B8 */
6199 { "vfmadd231p%XW", { XM
, Vex
, EXx
}, 0 },
6202 /* PREFIX_VEX_0F38B9 */
6206 { "vfmadd231s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6209 /* PREFIX_VEX_0F38BA */
6213 { "vfmsub231p%XW", { XM
, Vex
, EXx
}, 0 },
6216 /* PREFIX_VEX_0F38BB */
6220 { "vfmsub231s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6223 /* PREFIX_VEX_0F38BC */
6227 { "vfnmadd231p%XW", { XM
, Vex
, EXx
}, 0 },
6230 /* PREFIX_VEX_0F38BD */
6234 { "vfnmadd231s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6237 /* PREFIX_VEX_0F38BE */
6241 { "vfnmsub231p%XW", { XM
, Vex
, EXx
}, 0 },
6244 /* PREFIX_VEX_0F38BF */
6248 { "vfnmsub231s%XW", { XMScalar
, VexScalar
, EXVexWdqScalar
}, 0 },
6251 /* PREFIX_VEX_0F38DB */
6255 { VEX_LEN_TABLE (VEX_LEN_0F38DB_P_2
) },
6258 /* PREFIX_VEX_0F38DC */
6262 { VEX_LEN_TABLE (VEX_LEN_0F38DC_P_2
) },
6265 /* PREFIX_VEX_0F38DD */
6269 { VEX_LEN_TABLE (VEX_LEN_0F38DD_P_2
) },
6272 /* PREFIX_VEX_0F38DE */
6276 { VEX_LEN_TABLE (VEX_LEN_0F38DE_P_2
) },
6279 /* PREFIX_VEX_0F38DF */
6283 { VEX_LEN_TABLE (VEX_LEN_0F38DF_P_2
) },
6286 /* PREFIX_VEX_0F38F2 */
6288 { VEX_LEN_TABLE (VEX_LEN_0F38F2_P_0
) },
6291 /* PREFIX_VEX_0F38F3_REG_1 */
6293 { VEX_LEN_TABLE (VEX_LEN_0F38F3_R_1_P_0
) },
6296 /* PREFIX_VEX_0F38F3_REG_2 */
6298 { VEX_LEN_TABLE (VEX_LEN_0F38F3_R_2_P_0
) },
6301 /* PREFIX_VEX_0F38F3_REG_3 */
6303 { VEX_LEN_TABLE (VEX_LEN_0F38F3_R_3_P_0
) },
6306 /* PREFIX_VEX_0F38F5 */
6308 { VEX_LEN_TABLE (VEX_LEN_0F38F5_P_0
) },
6309 { VEX_LEN_TABLE (VEX_LEN_0F38F5_P_1
) },
6311 { VEX_LEN_TABLE (VEX_LEN_0F38F5_P_3
) },
6314 /* PREFIX_VEX_0F38F6 */
6319 { VEX_LEN_TABLE (VEX_LEN_0F38F6_P_3
) },
6322 /* PREFIX_VEX_0F38F7 */
6324 { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_0
) },
6325 { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_1
) },
6326 { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_2
) },
6327 { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_3
) },
6330 /* PREFIX_VEX_0F3A00 */
6334 { VEX_LEN_TABLE (VEX_LEN_0F3A00_P_2
) },
6337 /* PREFIX_VEX_0F3A01 */
6341 { VEX_LEN_TABLE (VEX_LEN_0F3A01_P_2
) },
6344 /* PREFIX_VEX_0F3A02 */
6348 { VEX_W_TABLE (VEX_W_0F3A02_P_2
) },
6351 /* PREFIX_VEX_0F3A04 */
6355 { VEX_W_TABLE (VEX_W_0F3A04_P_2
) },
6358 /* PREFIX_VEX_0F3A05 */
6362 { VEX_W_TABLE (VEX_W_0F3A05_P_2
) },
6365 /* PREFIX_VEX_0F3A06 */
6369 { VEX_LEN_TABLE (VEX_LEN_0F3A06_P_2
) },
6372 /* PREFIX_VEX_0F3A08 */
6376 { VEX_W_TABLE (VEX_W_0F3A08_P_2
) },
6379 /* PREFIX_VEX_0F3A09 */
6383 { VEX_W_TABLE (VEX_W_0F3A09_P_2
) },
6386 /* PREFIX_VEX_0F3A0A */
6390 { VEX_LEN_TABLE (VEX_LEN_0F3A0A_P_2
) },
6393 /* PREFIX_VEX_0F3A0B */
6397 { VEX_LEN_TABLE (VEX_LEN_0F3A0B_P_2
) },
6400 /* PREFIX_VEX_0F3A0C */
6404 { VEX_W_TABLE (VEX_W_0F3A0C_P_2
) },
6407 /* PREFIX_VEX_0F3A0D */
6411 { VEX_W_TABLE (VEX_W_0F3A0D_P_2
) },
6414 /* PREFIX_VEX_0F3A0E */
6418 { VEX_W_TABLE (VEX_W_0F3A0E_P_2
) },
6421 /* PREFIX_VEX_0F3A0F */
6425 { VEX_W_TABLE (VEX_W_0F3A0F_P_2
) },
6428 /* PREFIX_VEX_0F3A14 */
6432 { VEX_LEN_TABLE (VEX_LEN_0F3A14_P_2
) },
6435 /* PREFIX_VEX_0F3A15 */
6439 { VEX_LEN_TABLE (VEX_LEN_0F3A15_P_2
) },
6442 /* PREFIX_VEX_0F3A16 */
6446 { VEX_LEN_TABLE (VEX_LEN_0F3A16_P_2
) },
6449 /* PREFIX_VEX_0F3A17 */
6453 { VEX_LEN_TABLE (VEX_LEN_0F3A17_P_2
) },
6456 /* PREFIX_VEX_0F3A18 */
6460 { VEX_LEN_TABLE (VEX_LEN_0F3A18_P_2
) },
6463 /* PREFIX_VEX_0F3A19 */
6467 { VEX_LEN_TABLE (VEX_LEN_0F3A19_P_2
) },
6470 /* PREFIX_VEX_0F3A1D */
6474 { "vcvtps2ph", { EXxmmq
, XM
, Ib
}, 0 },
6477 /* PREFIX_VEX_0F3A20 */
6481 { VEX_LEN_TABLE (VEX_LEN_0F3A20_P_2
) },
6484 /* PREFIX_VEX_0F3A21 */
6488 { VEX_LEN_TABLE (VEX_LEN_0F3A21_P_2
) },
6491 /* PREFIX_VEX_0F3A22 */
6495 { VEX_LEN_TABLE (VEX_LEN_0F3A22_P_2
) },
6498 /* PREFIX_VEX_0F3A30 */
6502 { VEX_LEN_TABLE (VEX_LEN_0F3A30_P_2
) },
6505 /* PREFIX_VEX_0F3A31 */
6509 { VEX_LEN_TABLE (VEX_LEN_0F3A31_P_2
) },
6512 /* PREFIX_VEX_0F3A32 */
6516 { VEX_LEN_TABLE (VEX_LEN_0F3A32_P_2
) },
6519 /* PREFIX_VEX_0F3A33 */
6523 { VEX_LEN_TABLE (VEX_LEN_0F3A33_P_2
) },
6526 /* PREFIX_VEX_0F3A38 */
6530 { VEX_LEN_TABLE (VEX_LEN_0F3A38_P_2
) },
6533 /* PREFIX_VEX_0F3A39 */
6537 { VEX_LEN_TABLE (VEX_LEN_0F3A39_P_2
) },
6540 /* PREFIX_VEX_0F3A40 */
6544 { VEX_W_TABLE (VEX_W_0F3A40_P_2
) },
6547 /* PREFIX_VEX_0F3A41 */
6551 { VEX_LEN_TABLE (VEX_LEN_0F3A41_P_2
) },
6554 /* PREFIX_VEX_0F3A42 */
6558 { VEX_W_TABLE (VEX_W_0F3A42_P_2
) },
6561 /* PREFIX_VEX_0F3A44 */
6565 { VEX_LEN_TABLE (VEX_LEN_0F3A44_P_2
) },
6568 /* PREFIX_VEX_0F3A46 */
6572 { VEX_LEN_TABLE (VEX_LEN_0F3A46_P_2
) },
6575 /* PREFIX_VEX_0F3A48 */
6579 { VEX_W_TABLE (VEX_W_0F3A48_P_2
) },
6582 /* PREFIX_VEX_0F3A49 */
6586 { VEX_W_TABLE (VEX_W_0F3A49_P_2
) },
6589 /* PREFIX_VEX_0F3A4A */
6593 { VEX_W_TABLE (VEX_W_0F3A4A_P_2
) },
6596 /* PREFIX_VEX_0F3A4B */
6600 { VEX_W_TABLE (VEX_W_0F3A4B_P_2
) },
6603 /* PREFIX_VEX_0F3A4C */
6607 { VEX_W_TABLE (VEX_W_0F3A4C_P_2
) },
6610 /* PREFIX_VEX_0F3A5C */
6614 { "vfmaddsubps", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6617 /* PREFIX_VEX_0F3A5D */
6621 { "vfmaddsubpd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6624 /* PREFIX_VEX_0F3A5E */
6628 { "vfmsubaddps", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6631 /* PREFIX_VEX_0F3A5F */
6635 { "vfmsubaddpd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6638 /* PREFIX_VEX_0F3A60 */
6642 { VEX_LEN_TABLE (VEX_LEN_0F3A60_P_2
) },
6646 /* PREFIX_VEX_0F3A61 */
6650 { VEX_LEN_TABLE (VEX_LEN_0F3A61_P_2
) },
6653 /* PREFIX_VEX_0F3A62 */
6657 { VEX_LEN_TABLE (VEX_LEN_0F3A62_P_2
) },
6660 /* PREFIX_VEX_0F3A63 */
6664 { VEX_LEN_TABLE (VEX_LEN_0F3A63_P_2
) },
6667 /* PREFIX_VEX_0F3A68 */
6671 { "vfmaddps", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6674 /* PREFIX_VEX_0F3A69 */
6678 { "vfmaddpd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6681 /* PREFIX_VEX_0F3A6A */
6685 { VEX_LEN_TABLE (VEX_LEN_0F3A6A_P_2
) },
6688 /* PREFIX_VEX_0F3A6B */
6692 { VEX_LEN_TABLE (VEX_LEN_0F3A6B_P_2
) },
6695 /* PREFIX_VEX_0F3A6C */
6699 { "vfmsubps", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6702 /* PREFIX_VEX_0F3A6D */
6706 { "vfmsubpd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6709 /* PREFIX_VEX_0F3A6E */
6713 { VEX_LEN_TABLE (VEX_LEN_0F3A6E_P_2
) },
6716 /* PREFIX_VEX_0F3A6F */
6720 { VEX_LEN_TABLE (VEX_LEN_0F3A6F_P_2
) },
6723 /* PREFIX_VEX_0F3A78 */
6727 { "vfnmaddps", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6730 /* PREFIX_VEX_0F3A79 */
6734 { "vfnmaddpd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6737 /* PREFIX_VEX_0F3A7A */
6741 { VEX_LEN_TABLE (VEX_LEN_0F3A7A_P_2
) },
6744 /* PREFIX_VEX_0F3A7B */
6748 { VEX_LEN_TABLE (VEX_LEN_0F3A7B_P_2
) },
6751 /* PREFIX_VEX_0F3A7C */
6755 { "vfnmsubps", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6759 /* PREFIX_VEX_0F3A7D */
6763 { "vfnmsubpd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
6766 /* PREFIX_VEX_0F3A7E */
6770 { VEX_LEN_TABLE (VEX_LEN_0F3A7E_P_2
) },
6773 /* PREFIX_VEX_0F3A7F */
6777 { VEX_LEN_TABLE (VEX_LEN_0F3A7F_P_2
) },
6780 /* PREFIX_VEX_0F3ADF */
6784 { VEX_LEN_TABLE (VEX_LEN_0F3ADF_P_2
) },
6787 /* PREFIX_VEX_0F3AF0 */
6792 { VEX_LEN_TABLE (VEX_LEN_0F3AF0_P_3
) },
6795 #define NEED_PREFIX_TABLE
6796 #include "i386-dis-evex.h"
6797 #undef NEED_PREFIX_TABLE
6800 static const struct dis386 x86_64_table
[][2] = {
6803 { "pushP", { es
}, 0 },
6808 { "popP", { es
}, 0 },
6813 { "pushP", { cs
}, 0 },
6818 { "pushP", { ss
}, 0 },
6823 { "popP", { ss
}, 0 },
6828 { "pushP", { ds
}, 0 },
6833 { "popP", { ds
}, 0 },
6838 { "daa", { XX
}, 0 },
6843 { "das", { XX
}, 0 },
6848 { "aaa", { XX
}, 0 },
6853 { "aas", { XX
}, 0 },
6858 { "pushaP", { XX
}, 0 },
6863 { "popaP", { XX
}, 0 },
6868 { MOD_TABLE (MOD_62_32BIT
) },
6869 { EVEX_TABLE (EVEX_0F
) },
6874 { "arpl", { Ew
, Gw
}, 0 },
6875 { "movs{lq|xd}", { Gv
, Ed
}, 0 },
6880 { "ins{R|}", { Yzr
, indirDX
}, 0 },
6881 { "ins{G|}", { Yzr
, indirDX
}, 0 },
6886 { "outs{R|}", { indirDXr
, Xz
}, 0 },
6887 { "outs{G|}", { indirDXr
, Xz
}, 0 },
6892 /* Opcode 0x82 is an alias of of opcode 0x80 in 32-bit mode. */
6893 { REG_TABLE (REG_80
) },
6898 { "Jcall{T|}", { Ap
}, 0 },
6903 { MOD_TABLE (MOD_C4_32BIT
) },
6904 { VEX_C4_TABLE (VEX_0F
) },
6909 { MOD_TABLE (MOD_C5_32BIT
) },
6910 { VEX_C5_TABLE (VEX_0F
) },
6915 { "into", { XX
}, 0 },
6920 { "aam", { Ib
}, 0 },
6925 { "aad", { Ib
}, 0 },
6930 { "callP", { Jv
, BND
}, 0 },
6931 { "call@", { Jv
, BND
}, 0 }
6936 { "jmpP", { Jv
, BND
}, 0 },
6937 { "jmp@", { Jv
, BND
}, 0 }
6942 { "Jjmp{T|}", { Ap
}, 0 },
6945 /* X86_64_0F01_REG_0 */
6947 { "sgdt{Q|IQ}", { M
}, 0 },
6948 { "sgdt", { M
}, 0 },
6951 /* X86_64_0F01_REG_1 */
6953 { "sidt{Q|IQ}", { M
}, 0 },
6954 { "sidt", { M
}, 0 },
6957 /* X86_64_0F01_REG_2 */
6959 { "lgdt{Q|Q}", { M
}, 0 },
6960 { "lgdt", { M
}, 0 },
6963 /* X86_64_0F01_REG_3 */
6965 { "lidt{Q|Q}", { M
}, 0 },
6966 { "lidt", { M
}, 0 },
6970 static const struct dis386 three_byte_table
[][256] = {
6972 /* THREE_BYTE_0F38 */
6975 { "pshufb", { MX
, EM
}, PREFIX_OPCODE
},
6976 { "phaddw", { MX
, EM
}, PREFIX_OPCODE
},
6977 { "phaddd", { MX
, EM
}, PREFIX_OPCODE
},
6978 { "phaddsw", { MX
, EM
}, PREFIX_OPCODE
},
6979 { "pmaddubsw", { MX
, EM
}, PREFIX_OPCODE
},
6980 { "phsubw", { MX
, EM
}, PREFIX_OPCODE
},
6981 { "phsubd", { MX
, EM
}, PREFIX_OPCODE
},
6982 { "phsubsw", { MX
, EM
}, PREFIX_OPCODE
},
6984 { "psignb", { MX
, EM
}, PREFIX_OPCODE
},
6985 { "psignw", { MX
, EM
}, PREFIX_OPCODE
},
6986 { "psignd", { MX
, EM
}, PREFIX_OPCODE
},
6987 { "pmulhrsw", { MX
, EM
}, PREFIX_OPCODE
},
6993 { PREFIX_TABLE (PREFIX_0F3810
) },
6997 { PREFIX_TABLE (PREFIX_0F3814
) },
6998 { PREFIX_TABLE (PREFIX_0F3815
) },
7000 { PREFIX_TABLE (PREFIX_0F3817
) },
7006 { "pabsb", { MX
, EM
}, PREFIX_OPCODE
},
7007 { "pabsw", { MX
, EM
}, PREFIX_OPCODE
},
7008 { "pabsd", { MX
, EM
}, PREFIX_OPCODE
},
7011 { PREFIX_TABLE (PREFIX_0F3820
) },
7012 { PREFIX_TABLE (PREFIX_0F3821
) },
7013 { PREFIX_TABLE (PREFIX_0F3822
) },
7014 { PREFIX_TABLE (PREFIX_0F3823
) },
7015 { PREFIX_TABLE (PREFIX_0F3824
) },
7016 { PREFIX_TABLE (PREFIX_0F3825
) },
7020 { PREFIX_TABLE (PREFIX_0F3828
) },
7021 { PREFIX_TABLE (PREFIX_0F3829
) },
7022 { PREFIX_TABLE (PREFIX_0F382A
) },
7023 { PREFIX_TABLE (PREFIX_0F382B
) },
7029 { PREFIX_TABLE (PREFIX_0F3830
) },
7030 { PREFIX_TABLE (PREFIX_0F3831
) },
7031 { PREFIX_TABLE (PREFIX_0F3832
) },
7032 { PREFIX_TABLE (PREFIX_0F3833
) },
7033 { PREFIX_TABLE (PREFIX_0F3834
) },
7034 { PREFIX_TABLE (PREFIX_0F3835
) },
7036 { PREFIX_TABLE (PREFIX_0F3837
) },
7038 { PREFIX_TABLE (PREFIX_0F3838
) },
7039 { PREFIX_TABLE (PREFIX_0F3839
) },
7040 { PREFIX_TABLE (PREFIX_0F383A
) },
7041 { PREFIX_TABLE (PREFIX_0F383B
) },
7042 { PREFIX_TABLE (PREFIX_0F383C
) },
7043 { PREFIX_TABLE (PREFIX_0F383D
) },
7044 { PREFIX_TABLE (PREFIX_0F383E
) },
7045 { PREFIX_TABLE (PREFIX_0F383F
) },
7047 { PREFIX_TABLE (PREFIX_0F3840
) },
7048 { PREFIX_TABLE (PREFIX_0F3841
) },
7119 { PREFIX_TABLE (PREFIX_0F3880
) },
7120 { PREFIX_TABLE (PREFIX_0F3881
) },
7121 { PREFIX_TABLE (PREFIX_0F3882
) },
7200 { PREFIX_TABLE (PREFIX_0F38C8
) },
7201 { PREFIX_TABLE (PREFIX_0F38C9
) },
7202 { PREFIX_TABLE (PREFIX_0F38CA
) },
7203 { PREFIX_TABLE (PREFIX_0F38CB
) },
7204 { PREFIX_TABLE (PREFIX_0F38CC
) },
7205 { PREFIX_TABLE (PREFIX_0F38CD
) },
7221 { PREFIX_TABLE (PREFIX_0F38DB
) },
7222 { PREFIX_TABLE (PREFIX_0F38DC
) },
7223 { PREFIX_TABLE (PREFIX_0F38DD
) },
7224 { PREFIX_TABLE (PREFIX_0F38DE
) },
7225 { PREFIX_TABLE (PREFIX_0F38DF
) },
7245 { PREFIX_TABLE (PREFIX_0F38F0
) },
7246 { PREFIX_TABLE (PREFIX_0F38F1
) },
7251 { PREFIX_TABLE (PREFIX_0F38F6
) },
7263 /* THREE_BYTE_0F3A */
7275 { PREFIX_TABLE (PREFIX_0F3A08
) },
7276 { PREFIX_TABLE (PREFIX_0F3A09
) },
7277 { PREFIX_TABLE (PREFIX_0F3A0A
) },
7278 { PREFIX_TABLE (PREFIX_0F3A0B
) },
7279 { PREFIX_TABLE (PREFIX_0F3A0C
) },
7280 { PREFIX_TABLE (PREFIX_0F3A0D
) },
7281 { PREFIX_TABLE (PREFIX_0F3A0E
) },
7282 { "palignr", { MX
, EM
, Ib
}, PREFIX_OPCODE
},
7288 { PREFIX_TABLE (PREFIX_0F3A14
) },
7289 { PREFIX_TABLE (PREFIX_0F3A15
) },
7290 { PREFIX_TABLE (PREFIX_0F3A16
) },
7291 { PREFIX_TABLE (PREFIX_0F3A17
) },
7302 { PREFIX_TABLE (PREFIX_0F3A20
) },
7303 { PREFIX_TABLE (PREFIX_0F3A21
) },
7304 { PREFIX_TABLE (PREFIX_0F3A22
) },
7338 { PREFIX_TABLE (PREFIX_0F3A40
) },
7339 { PREFIX_TABLE (PREFIX_0F3A41
) },
7340 { PREFIX_TABLE (PREFIX_0F3A42
) },
7342 { PREFIX_TABLE (PREFIX_0F3A44
) },
7374 { PREFIX_TABLE (PREFIX_0F3A60
) },
7375 { PREFIX_TABLE (PREFIX_0F3A61
) },
7376 { PREFIX_TABLE (PREFIX_0F3A62
) },
7377 { PREFIX_TABLE (PREFIX_0F3A63
) },
7495 { PREFIX_TABLE (PREFIX_0F3ACC
) },
7516 { PREFIX_TABLE (PREFIX_0F3ADF
) },
7556 static const struct dis386 xop_table
[][256] = {
7709 { "vpmacssww", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7710 { "vpmacsswd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7711 { "vpmacssdql", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7719 { "vpmacssdd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7720 { "vpmacssdqh", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7727 { "vpmacsww", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7728 { "vpmacswd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7729 { "vpmacsdql", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7737 { "vpmacsdd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7738 { "vpmacsdqh", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7742 { "vpcmov", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7743 { "vpperm", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7746 { "vpmadcsswd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7764 { "vpmadcswd", { XMVexW
, Vex
, EXVexW
, EXVexW
, VexI4
}, 0 },
7776 { "vprotb", { XM
, Vex_2src_1
, Ib
}, 0 },
7777 { "vprotw", { XM
, Vex_2src_1
, Ib
}, 0 },
7778 { "vprotd", { XM
, Vex_2src_1
, Ib
}, 0 },
7779 { "vprotq", { XM
, Vex_2src_1
, Ib
}, 0 },
7789 { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CC
) },
7790 { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CD
) },
7791 { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CE
) },
7792 { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CF
) },
7825 { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_EC
) },
7826 { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_ED
) },
7827 { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_EE
) },
7828 { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_EF
) },
7852 { REG_TABLE (REG_XOP_TBM_01
) },
7853 { REG_TABLE (REG_XOP_TBM_02
) },
7871 { REG_TABLE (REG_XOP_LWPCB
) },
7995 { VEX_LEN_TABLE (VEX_LEN_0FXOP_09_80
) },
7996 { VEX_LEN_TABLE (VEX_LEN_0FXOP_09_81
) },
7997 { "vfrczss", { XM
, EXd
}, 0 },
7998 { "vfrczsd", { XM
, EXq
}, 0 },
8013 { "vprotb", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8014 { "vprotw", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8015 { "vprotd", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8016 { "vprotq", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8017 { "vpshlb", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8018 { "vpshlw", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8019 { "vpshld", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8020 { "vpshlq", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8022 { "vpshab", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8023 { "vpshaw", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8024 { "vpshad", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8025 { "vpshaq", { XM
, Vex_2src_1
, Vex_2src_2
}, 0 },
8068 { "vphaddbw", { XM
, EXxmm
}, 0 },
8069 { "vphaddbd", { XM
, EXxmm
}, 0 },
8070 { "vphaddbq", { XM
, EXxmm
}, 0 },
8073 { "vphaddwd", { XM
, EXxmm
}, 0 },
8074 { "vphaddwq", { XM
, EXxmm
}, 0 },
8079 { "vphadddq", { XM
, EXxmm
}, 0 },
8086 { "vphaddubw", { XM
, EXxmm
}, 0 },
8087 { "vphaddubd", { XM
, EXxmm
}, 0 },
8088 { "vphaddubq", { XM
, EXxmm
}, 0 },
8091 { "vphadduwd", { XM
, EXxmm
}, 0 },
8092 { "vphadduwq", { XM
, EXxmm
}, 0 },
8097 { "vphaddudq", { XM
, EXxmm
}, 0 },
8104 { "vphsubbw", { XM
, EXxmm
}, 0 },
8105 { "vphsubwd", { XM
, EXxmm
}, 0 },
8106 { "vphsubdq", { XM
, EXxmm
}, 0 },
8160 { "bextr", { Gv
, Ev
, Iq
}, 0 },
8162 { REG_TABLE (REG_XOP_LWP
) },
8432 static const struct dis386 vex_table
[][256] = {
8454 { PREFIX_TABLE (PREFIX_VEX_0F10
) },
8455 { PREFIX_TABLE (PREFIX_VEX_0F11
) },
8456 { PREFIX_TABLE (PREFIX_VEX_0F12
) },
8457 { MOD_TABLE (MOD_VEX_0F13
) },
8458 { VEX_W_TABLE (VEX_W_0F14
) },
8459 { VEX_W_TABLE (VEX_W_0F15
) },
8460 { PREFIX_TABLE (PREFIX_VEX_0F16
) },
8461 { MOD_TABLE (MOD_VEX_0F17
) },
8481 { VEX_W_TABLE (VEX_W_0F28
) },
8482 { VEX_W_TABLE (VEX_W_0F29
) },
8483 { PREFIX_TABLE (PREFIX_VEX_0F2A
) },
8484 { MOD_TABLE (MOD_VEX_0F2B
) },
8485 { PREFIX_TABLE (PREFIX_VEX_0F2C
) },
8486 { PREFIX_TABLE (PREFIX_VEX_0F2D
) },
8487 { PREFIX_TABLE (PREFIX_VEX_0F2E
) },
8488 { PREFIX_TABLE (PREFIX_VEX_0F2F
) },
8509 { PREFIX_TABLE (PREFIX_VEX_0F41
) },
8510 { PREFIX_TABLE (PREFIX_VEX_0F42
) },
8512 { PREFIX_TABLE (PREFIX_VEX_0F44
) },
8513 { PREFIX_TABLE (PREFIX_VEX_0F45
) },
8514 { PREFIX_TABLE (PREFIX_VEX_0F46
) },
8515 { PREFIX_TABLE (PREFIX_VEX_0F47
) },
8519 { PREFIX_TABLE (PREFIX_VEX_0F4A
) },
8520 { PREFIX_TABLE (PREFIX_VEX_0F4B
) },
8526 { MOD_TABLE (MOD_VEX_0F50
) },
8527 { PREFIX_TABLE (PREFIX_VEX_0F51
) },
8528 { PREFIX_TABLE (PREFIX_VEX_0F52
) },
8529 { PREFIX_TABLE (PREFIX_VEX_0F53
) },
8530 { "vandpX", { XM
, Vex
, EXx
}, 0 },
8531 { "vandnpX", { XM
, Vex
, EXx
}, 0 },
8532 { "vorpX", { XM
, Vex
, EXx
}, 0 },
8533 { "vxorpX", { XM
, Vex
, EXx
}, 0 },
8535 { PREFIX_TABLE (PREFIX_VEX_0F58
) },
8536 { PREFIX_TABLE (PREFIX_VEX_0F59
) },
8537 { PREFIX_TABLE (PREFIX_VEX_0F5A
) },
8538 { PREFIX_TABLE (PREFIX_VEX_0F5B
) },
8539 { PREFIX_TABLE (PREFIX_VEX_0F5C
) },
8540 { PREFIX_TABLE (PREFIX_VEX_0F5D
) },
8541 { PREFIX_TABLE (PREFIX_VEX_0F5E
) },
8542 { PREFIX_TABLE (PREFIX_VEX_0F5F
) },
8544 { PREFIX_TABLE (PREFIX_VEX_0F60
) },
8545 { PREFIX_TABLE (PREFIX_VEX_0F61
) },
8546 { PREFIX_TABLE (PREFIX_VEX_0F62
) },
8547 { PREFIX_TABLE (PREFIX_VEX_0F63
) },
8548 { PREFIX_TABLE (PREFIX_VEX_0F64
) },
8549 { PREFIX_TABLE (PREFIX_VEX_0F65
) },
8550 { PREFIX_TABLE (PREFIX_VEX_0F66
) },
8551 { PREFIX_TABLE (PREFIX_VEX_0F67
) },
8553 { PREFIX_TABLE (PREFIX_VEX_0F68
) },
8554 { PREFIX_TABLE (PREFIX_VEX_0F69
) },
8555 { PREFIX_TABLE (PREFIX_VEX_0F6A
) },
8556 { PREFIX_TABLE (PREFIX_VEX_0F6B
) },
8557 { PREFIX_TABLE (PREFIX_VEX_0F6C
) },
8558 { PREFIX_TABLE (PREFIX_VEX_0F6D
) },
8559 { PREFIX_TABLE (PREFIX_VEX_0F6E
) },
8560 { PREFIX_TABLE (PREFIX_VEX_0F6F
) },
8562 { PREFIX_TABLE (PREFIX_VEX_0F70
) },
8563 { REG_TABLE (REG_VEX_0F71
) },
8564 { REG_TABLE (REG_VEX_0F72
) },
8565 { REG_TABLE (REG_VEX_0F73
) },
8566 { PREFIX_TABLE (PREFIX_VEX_0F74
) },
8567 { PREFIX_TABLE (PREFIX_VEX_0F75
) },
8568 { PREFIX_TABLE (PREFIX_VEX_0F76
) },
8569 { PREFIX_TABLE (PREFIX_VEX_0F77
) },
8575 { PREFIX_TABLE (PREFIX_VEX_0F7C
) },
8576 { PREFIX_TABLE (PREFIX_VEX_0F7D
) },
8577 { PREFIX_TABLE (PREFIX_VEX_0F7E
) },
8578 { PREFIX_TABLE (PREFIX_VEX_0F7F
) },
8598 { PREFIX_TABLE (PREFIX_VEX_0F90
) },
8599 { PREFIX_TABLE (PREFIX_VEX_0F91
) },
8600 { PREFIX_TABLE (PREFIX_VEX_0F92
) },
8601 { PREFIX_TABLE (PREFIX_VEX_0F93
) },
8607 { PREFIX_TABLE (PREFIX_VEX_0F98
) },
8608 { PREFIX_TABLE (PREFIX_VEX_0F99
) },
8631 { REG_TABLE (REG_VEX_0FAE
) },
8654 { PREFIX_TABLE (PREFIX_VEX_0FC2
) },
8656 { PREFIX_TABLE (PREFIX_VEX_0FC4
) },
8657 { PREFIX_TABLE (PREFIX_VEX_0FC5
) },
8658 { "vshufpX", { XM
, Vex
, EXx
, Ib
}, 0 },
8670 { PREFIX_TABLE (PREFIX_VEX_0FD0
) },
8671 { PREFIX_TABLE (PREFIX_VEX_0FD1
) },
8672 { PREFIX_TABLE (PREFIX_VEX_0FD2
) },
8673 { PREFIX_TABLE (PREFIX_VEX_0FD3
) },
8674 { PREFIX_TABLE (PREFIX_VEX_0FD4
) },
8675 { PREFIX_TABLE (PREFIX_VEX_0FD5
) },
8676 { PREFIX_TABLE (PREFIX_VEX_0FD6
) },
8677 { PREFIX_TABLE (PREFIX_VEX_0FD7
) },
8679 { PREFIX_TABLE (PREFIX_VEX_0FD8
) },
8680 { PREFIX_TABLE (PREFIX_VEX_0FD9
) },
8681 { PREFIX_TABLE (PREFIX_VEX_0FDA
) },
8682 { PREFIX_TABLE (PREFIX_VEX_0FDB
) },
8683 { PREFIX_TABLE (PREFIX_VEX_0FDC
) },
8684 { PREFIX_TABLE (PREFIX_VEX_0FDD
) },
8685 { PREFIX_TABLE (PREFIX_VEX_0FDE
) },
8686 { PREFIX_TABLE (PREFIX_VEX_0FDF
) },
8688 { PREFIX_TABLE (PREFIX_VEX_0FE0
) },
8689 { PREFIX_TABLE (PREFIX_VEX_0FE1
) },
8690 { PREFIX_TABLE (PREFIX_VEX_0FE2
) },
8691 { PREFIX_TABLE (PREFIX_VEX_0FE3
) },
8692 { PREFIX_TABLE (PREFIX_VEX_0FE4
) },
8693 { PREFIX_TABLE (PREFIX_VEX_0FE5
) },
8694 { PREFIX_TABLE (PREFIX_VEX_0FE6
) },
8695 { PREFIX_TABLE (PREFIX_VEX_0FE7
) },
8697 { PREFIX_TABLE (PREFIX_VEX_0FE8
) },
8698 { PREFIX_TABLE (PREFIX_VEX_0FE9
) },
8699 { PREFIX_TABLE (PREFIX_VEX_0FEA
) },
8700 { PREFIX_TABLE (PREFIX_VEX_0FEB
) },
8701 { PREFIX_TABLE (PREFIX_VEX_0FEC
) },
8702 { PREFIX_TABLE (PREFIX_VEX_0FED
) },
8703 { PREFIX_TABLE (PREFIX_VEX_0FEE
) },
8704 { PREFIX_TABLE (PREFIX_VEX_0FEF
) },
8706 { PREFIX_TABLE (PREFIX_VEX_0FF0
) },
8707 { PREFIX_TABLE (PREFIX_VEX_0FF1
) },
8708 { PREFIX_TABLE (PREFIX_VEX_0FF2
) },
8709 { PREFIX_TABLE (PREFIX_VEX_0FF3
) },
8710 { PREFIX_TABLE (PREFIX_VEX_0FF4
) },
8711 { PREFIX_TABLE (PREFIX_VEX_0FF5
) },
8712 { PREFIX_TABLE (PREFIX_VEX_0FF6
) },
8713 { PREFIX_TABLE (PREFIX_VEX_0FF7
) },
8715 { PREFIX_TABLE (PREFIX_VEX_0FF8
) },
8716 { PREFIX_TABLE (PREFIX_VEX_0FF9
) },
8717 { PREFIX_TABLE (PREFIX_VEX_0FFA
) },
8718 { PREFIX_TABLE (PREFIX_VEX_0FFB
) },
8719 { PREFIX_TABLE (PREFIX_VEX_0FFC
) },
8720 { PREFIX_TABLE (PREFIX_VEX_0FFD
) },
8721 { PREFIX_TABLE (PREFIX_VEX_0FFE
) },
8727 { PREFIX_TABLE (PREFIX_VEX_0F3800
) },
8728 { PREFIX_TABLE (PREFIX_VEX_0F3801
) },
8729 { PREFIX_TABLE (PREFIX_VEX_0F3802
) },
8730 { PREFIX_TABLE (PREFIX_VEX_0F3803
) },
8731 { PREFIX_TABLE (PREFIX_VEX_0F3804
) },
8732 { PREFIX_TABLE (PREFIX_VEX_0F3805
) },
8733 { PREFIX_TABLE (PREFIX_VEX_0F3806
) },
8734 { PREFIX_TABLE (PREFIX_VEX_0F3807
) },
8736 { PREFIX_TABLE (PREFIX_VEX_0F3808
) },
8737 { PREFIX_TABLE (PREFIX_VEX_0F3809
) },
8738 { PREFIX_TABLE (PREFIX_VEX_0F380A
) },
8739 { PREFIX_TABLE (PREFIX_VEX_0F380B
) },
8740 { PREFIX_TABLE (PREFIX_VEX_0F380C
) },
8741 { PREFIX_TABLE (PREFIX_VEX_0F380D
) },
8742 { PREFIX_TABLE (PREFIX_VEX_0F380E
) },
8743 { PREFIX_TABLE (PREFIX_VEX_0F380F
) },
8748 { PREFIX_TABLE (PREFIX_VEX_0F3813
) },
8751 { PREFIX_TABLE (PREFIX_VEX_0F3816
) },
8752 { PREFIX_TABLE (PREFIX_VEX_0F3817
) },
8754 { PREFIX_TABLE (PREFIX_VEX_0F3818
) },
8755 { PREFIX_TABLE (PREFIX_VEX_0F3819
) },
8756 { PREFIX_TABLE (PREFIX_VEX_0F381A
) },
8758 { PREFIX_TABLE (PREFIX_VEX_0F381C
) },
8759 { PREFIX_TABLE (PREFIX_VEX_0F381D
) },
8760 { PREFIX_TABLE (PREFIX_VEX_0F381E
) },
8763 { PREFIX_TABLE (PREFIX_VEX_0F3820
) },
8764 { PREFIX_TABLE (PREFIX_VEX_0F3821
) },
8765 { PREFIX_TABLE (PREFIX_VEX_0F3822
) },
8766 { PREFIX_TABLE (PREFIX_VEX_0F3823
) },
8767 { PREFIX_TABLE (PREFIX_VEX_0F3824
) },
8768 { PREFIX_TABLE (PREFIX_VEX_0F3825
) },
8772 { PREFIX_TABLE (PREFIX_VEX_0F3828
) },
8773 { PREFIX_TABLE (PREFIX_VEX_0F3829
) },
8774 { PREFIX_TABLE (PREFIX_VEX_0F382A
) },
8775 { PREFIX_TABLE (PREFIX_VEX_0F382B
) },
8776 { PREFIX_TABLE (PREFIX_VEX_0F382C
) },
8777 { PREFIX_TABLE (PREFIX_VEX_0F382D
) },
8778 { PREFIX_TABLE (PREFIX_VEX_0F382E
) },
8779 { PREFIX_TABLE (PREFIX_VEX_0F382F
) },
8781 { PREFIX_TABLE (PREFIX_VEX_0F3830
) },
8782 { PREFIX_TABLE (PREFIX_VEX_0F3831
) },
8783 { PREFIX_TABLE (PREFIX_VEX_0F3832
) },
8784 { PREFIX_TABLE (PREFIX_VEX_0F3833
) },
8785 { PREFIX_TABLE (PREFIX_VEX_0F3834
) },
8786 { PREFIX_TABLE (PREFIX_VEX_0F3835
) },
8787 { PREFIX_TABLE (PREFIX_VEX_0F3836
) },
8788 { PREFIX_TABLE (PREFIX_VEX_0F3837
) },
8790 { PREFIX_TABLE (PREFIX_VEX_0F3838
) },
8791 { PREFIX_TABLE (PREFIX_VEX_0F3839
) },
8792 { PREFIX_TABLE (PREFIX_VEX_0F383A
) },
8793 { PREFIX_TABLE (PREFIX_VEX_0F383B
) },
8794 { PREFIX_TABLE (PREFIX_VEX_0F383C
) },
8795 { PREFIX_TABLE (PREFIX_VEX_0F383D
) },
8796 { PREFIX_TABLE (PREFIX_VEX_0F383E
) },
8797 { PREFIX_TABLE (PREFIX_VEX_0F383F
) },
8799 { PREFIX_TABLE (PREFIX_VEX_0F3840
) },
8800 { PREFIX_TABLE (PREFIX_VEX_0F3841
) },
8804 { PREFIX_TABLE (PREFIX_VEX_0F3845
) },
8805 { PREFIX_TABLE (PREFIX_VEX_0F3846
) },
8806 { PREFIX_TABLE (PREFIX_VEX_0F3847
) },
8826 { PREFIX_TABLE (PREFIX_VEX_0F3858
) },
8827 { PREFIX_TABLE (PREFIX_VEX_0F3859
) },
8828 { PREFIX_TABLE (PREFIX_VEX_0F385A
) },
8862 { PREFIX_TABLE (PREFIX_VEX_0F3878
) },
8863 { PREFIX_TABLE (PREFIX_VEX_0F3879
) },
8884 { PREFIX_TABLE (PREFIX_VEX_0F388C
) },
8886 { PREFIX_TABLE (PREFIX_VEX_0F388E
) },
8889 { PREFIX_TABLE (PREFIX_VEX_0F3890
) },
8890 { PREFIX_TABLE (PREFIX_VEX_0F3891
) },
8891 { PREFIX_TABLE (PREFIX_VEX_0F3892
) },
8892 { PREFIX_TABLE (PREFIX_VEX_0F3893
) },
8895 { PREFIX_TABLE (PREFIX_VEX_0F3896
) },
8896 { PREFIX_TABLE (PREFIX_VEX_0F3897
) },
8898 { PREFIX_TABLE (PREFIX_VEX_0F3898
) },
8899 { PREFIX_TABLE (PREFIX_VEX_0F3899
) },
8900 { PREFIX_TABLE (PREFIX_VEX_0F389A
) },
8901 { PREFIX_TABLE (PREFIX_VEX_0F389B
) },
8902 { PREFIX_TABLE (PREFIX_VEX_0F389C
) },
8903 { PREFIX_TABLE (PREFIX_VEX_0F389D
) },
8904 { PREFIX_TABLE (PREFIX_VEX_0F389E
) },
8905 { PREFIX_TABLE (PREFIX_VEX_0F389F
) },
8913 { PREFIX_TABLE (PREFIX_VEX_0F38A6
) },
8914 { PREFIX_TABLE (PREFIX_VEX_0F38A7
) },
8916 { PREFIX_TABLE (PREFIX_VEX_0F38A8
) },
8917 { PREFIX_TABLE (PREFIX_VEX_0F38A9
) },
8918 { PREFIX_TABLE (PREFIX_VEX_0F38AA
) },
8919 { PREFIX_TABLE (PREFIX_VEX_0F38AB
) },
8920 { PREFIX_TABLE (PREFIX_VEX_0F38AC
) },
8921 { PREFIX_TABLE (PREFIX_VEX_0F38AD
) },
8922 { PREFIX_TABLE (PREFIX_VEX_0F38AE
) },
8923 { PREFIX_TABLE (PREFIX_VEX_0F38AF
) },
8931 { PREFIX_TABLE (PREFIX_VEX_0F38B6
) },
8932 { PREFIX_TABLE (PREFIX_VEX_0F38B7
) },
8934 { PREFIX_TABLE (PREFIX_VEX_0F38B8
) },
8935 { PREFIX_TABLE (PREFIX_VEX_0F38B9
) },
8936 { PREFIX_TABLE (PREFIX_VEX_0F38BA
) },
8937 { PREFIX_TABLE (PREFIX_VEX_0F38BB
) },
8938 { PREFIX_TABLE (PREFIX_VEX_0F38BC
) },
8939 { PREFIX_TABLE (PREFIX_VEX_0F38BD
) },
8940 { PREFIX_TABLE (PREFIX_VEX_0F38BE
) },
8941 { PREFIX_TABLE (PREFIX_VEX_0F38BF
) },
8973 { PREFIX_TABLE (PREFIX_VEX_0F38DB
) },
8974 { PREFIX_TABLE (PREFIX_VEX_0F38DC
) },
8975 { PREFIX_TABLE (PREFIX_VEX_0F38DD
) },
8976 { PREFIX_TABLE (PREFIX_VEX_0F38DE
) },
8977 { PREFIX_TABLE (PREFIX_VEX_0F38DF
) },
8999 { PREFIX_TABLE (PREFIX_VEX_0F38F2
) },
9000 { REG_TABLE (REG_VEX_0F38F3
) },
9002 { PREFIX_TABLE (PREFIX_VEX_0F38F5
) },
9003 { PREFIX_TABLE (PREFIX_VEX_0F38F6
) },
9004 { PREFIX_TABLE (PREFIX_VEX_0F38F7
) },
9018 { PREFIX_TABLE (PREFIX_VEX_0F3A00
) },
9019 { PREFIX_TABLE (PREFIX_VEX_0F3A01
) },
9020 { PREFIX_TABLE (PREFIX_VEX_0F3A02
) },
9022 { PREFIX_TABLE (PREFIX_VEX_0F3A04
) },
9023 { PREFIX_TABLE (PREFIX_VEX_0F3A05
) },
9024 { PREFIX_TABLE (PREFIX_VEX_0F3A06
) },
9027 { PREFIX_TABLE (PREFIX_VEX_0F3A08
) },
9028 { PREFIX_TABLE (PREFIX_VEX_0F3A09
) },
9029 { PREFIX_TABLE (PREFIX_VEX_0F3A0A
) },
9030 { PREFIX_TABLE (PREFIX_VEX_0F3A0B
) },
9031 { PREFIX_TABLE (PREFIX_VEX_0F3A0C
) },
9032 { PREFIX_TABLE (PREFIX_VEX_0F3A0D
) },
9033 { PREFIX_TABLE (PREFIX_VEX_0F3A0E
) },
9034 { PREFIX_TABLE (PREFIX_VEX_0F3A0F
) },
9040 { PREFIX_TABLE (PREFIX_VEX_0F3A14
) },
9041 { PREFIX_TABLE (PREFIX_VEX_0F3A15
) },
9042 { PREFIX_TABLE (PREFIX_VEX_0F3A16
) },
9043 { PREFIX_TABLE (PREFIX_VEX_0F3A17
) },
9045 { PREFIX_TABLE (PREFIX_VEX_0F3A18
) },
9046 { PREFIX_TABLE (PREFIX_VEX_0F3A19
) },
9050 { PREFIX_TABLE (PREFIX_VEX_0F3A1D
) },
9054 { PREFIX_TABLE (PREFIX_VEX_0F3A20
) },
9055 { PREFIX_TABLE (PREFIX_VEX_0F3A21
) },
9056 { PREFIX_TABLE (PREFIX_VEX_0F3A22
) },
9072 { PREFIX_TABLE (PREFIX_VEX_0F3A30
) },
9073 { PREFIX_TABLE (PREFIX_VEX_0F3A31
) },
9074 { PREFIX_TABLE (PREFIX_VEX_0F3A32
) },
9075 { PREFIX_TABLE (PREFIX_VEX_0F3A33
) },
9081 { PREFIX_TABLE (PREFIX_VEX_0F3A38
) },
9082 { PREFIX_TABLE (PREFIX_VEX_0F3A39
) },
9090 { PREFIX_TABLE (PREFIX_VEX_0F3A40
) },
9091 { PREFIX_TABLE (PREFIX_VEX_0F3A41
) },
9092 { PREFIX_TABLE (PREFIX_VEX_0F3A42
) },
9094 { PREFIX_TABLE (PREFIX_VEX_0F3A44
) },
9096 { PREFIX_TABLE (PREFIX_VEX_0F3A46
) },
9099 { PREFIX_TABLE (PREFIX_VEX_0F3A48
) },
9100 { PREFIX_TABLE (PREFIX_VEX_0F3A49
) },
9101 { PREFIX_TABLE (PREFIX_VEX_0F3A4A
) },
9102 { PREFIX_TABLE (PREFIX_VEX_0F3A4B
) },
9103 { PREFIX_TABLE (PREFIX_VEX_0F3A4C
) },
9121 { PREFIX_TABLE (PREFIX_VEX_0F3A5C
) },
9122 { PREFIX_TABLE (PREFIX_VEX_0F3A5D
) },
9123 { PREFIX_TABLE (PREFIX_VEX_0F3A5E
) },
9124 { PREFIX_TABLE (PREFIX_VEX_0F3A5F
) },
9126 { PREFIX_TABLE (PREFIX_VEX_0F3A60
) },
9127 { PREFIX_TABLE (PREFIX_VEX_0F3A61
) },
9128 { PREFIX_TABLE (PREFIX_VEX_0F3A62
) },
9129 { PREFIX_TABLE (PREFIX_VEX_0F3A63
) },
9135 { PREFIX_TABLE (PREFIX_VEX_0F3A68
) },
9136 { PREFIX_TABLE (PREFIX_VEX_0F3A69
) },
9137 { PREFIX_TABLE (PREFIX_VEX_0F3A6A
) },
9138 { PREFIX_TABLE (PREFIX_VEX_0F3A6B
) },
9139 { PREFIX_TABLE (PREFIX_VEX_0F3A6C
) },
9140 { PREFIX_TABLE (PREFIX_VEX_0F3A6D
) },
9141 { PREFIX_TABLE (PREFIX_VEX_0F3A6E
) },
9142 { PREFIX_TABLE (PREFIX_VEX_0F3A6F
) },
9153 { PREFIX_TABLE (PREFIX_VEX_0F3A78
) },
9154 { PREFIX_TABLE (PREFIX_VEX_0F3A79
) },
9155 { PREFIX_TABLE (PREFIX_VEX_0F3A7A
) },
9156 { PREFIX_TABLE (PREFIX_VEX_0F3A7B
) },
9157 { PREFIX_TABLE (PREFIX_VEX_0F3A7C
) },
9158 { PREFIX_TABLE (PREFIX_VEX_0F3A7D
) },
9159 { PREFIX_TABLE (PREFIX_VEX_0F3A7E
) },
9160 { PREFIX_TABLE (PREFIX_VEX_0F3A7F
) },
9268 { PREFIX_TABLE (PREFIX_VEX_0F3ADF
) },
9288 { PREFIX_TABLE (PREFIX_VEX_0F3AF0
) },
9308 #define NEED_OPCODE_TABLE
9309 #include "i386-dis-evex.h"
9310 #undef NEED_OPCODE_TABLE
9311 static const struct dis386 vex_len_table
[][2] = {
9312 /* VEX_LEN_0F10_P_1 */
9314 { VEX_W_TABLE (VEX_W_0F10_P_1
) },
9315 { VEX_W_TABLE (VEX_W_0F10_P_1
) },
9318 /* VEX_LEN_0F10_P_3 */
9320 { VEX_W_TABLE (VEX_W_0F10_P_3
) },
9321 { VEX_W_TABLE (VEX_W_0F10_P_3
) },
9324 /* VEX_LEN_0F11_P_1 */
9326 { VEX_W_TABLE (VEX_W_0F11_P_1
) },
9327 { VEX_W_TABLE (VEX_W_0F11_P_1
) },
9330 /* VEX_LEN_0F11_P_3 */
9332 { VEX_W_TABLE (VEX_W_0F11_P_3
) },
9333 { VEX_W_TABLE (VEX_W_0F11_P_3
) },
9336 /* VEX_LEN_0F12_P_0_M_0 */
9338 { VEX_W_TABLE (VEX_W_0F12_P_0_M_0
) },
9341 /* VEX_LEN_0F12_P_0_M_1 */
9343 { VEX_W_TABLE (VEX_W_0F12_P_0_M_1
) },
9346 /* VEX_LEN_0F12_P_2 */
9348 { VEX_W_TABLE (VEX_W_0F12_P_2
) },
9351 /* VEX_LEN_0F13_M_0 */
9353 { VEX_W_TABLE (VEX_W_0F13_M_0
) },
9356 /* VEX_LEN_0F16_P_0_M_0 */
9358 { VEX_W_TABLE (VEX_W_0F16_P_0_M_0
) },
9361 /* VEX_LEN_0F16_P_0_M_1 */
9363 { VEX_W_TABLE (VEX_W_0F16_P_0_M_1
) },
9366 /* VEX_LEN_0F16_P_2 */
9368 { VEX_W_TABLE (VEX_W_0F16_P_2
) },
9371 /* VEX_LEN_0F17_M_0 */
9373 { VEX_W_TABLE (VEX_W_0F17_M_0
) },
9376 /* VEX_LEN_0F2A_P_1 */
9378 { "vcvtsi2ss%LQ", { XMScalar
, VexScalar
, Ev
}, 0 },
9379 { "vcvtsi2ss%LQ", { XMScalar
, VexScalar
, Ev
}, 0 },
9382 /* VEX_LEN_0F2A_P_3 */
9384 { "vcvtsi2sd%LQ", { XMScalar
, VexScalar
, Ev
}, 0 },
9385 { "vcvtsi2sd%LQ", { XMScalar
, VexScalar
, Ev
}, 0 },
9388 /* VEX_LEN_0F2C_P_1 */
9390 { "vcvttss2siY", { Gv
, EXdScalar
}, 0 },
9391 { "vcvttss2siY", { Gv
, EXdScalar
}, 0 },
9394 /* VEX_LEN_0F2C_P_3 */
9396 { "vcvttsd2siY", { Gv
, EXqScalar
}, 0 },
9397 { "vcvttsd2siY", { Gv
, EXqScalar
}, 0 },
9400 /* VEX_LEN_0F2D_P_1 */
9402 { "vcvtss2siY", { Gv
, EXdScalar
}, 0 },
9403 { "vcvtss2siY", { Gv
, EXdScalar
}, 0 },
9406 /* VEX_LEN_0F2D_P_3 */
9408 { "vcvtsd2siY", { Gv
, EXqScalar
}, 0 },
9409 { "vcvtsd2siY", { Gv
, EXqScalar
}, 0 },
9412 /* VEX_LEN_0F2E_P_0 */
9414 { VEX_W_TABLE (VEX_W_0F2E_P_0
) },
9415 { VEX_W_TABLE (VEX_W_0F2E_P_0
) },
9418 /* VEX_LEN_0F2E_P_2 */
9420 { VEX_W_TABLE (VEX_W_0F2E_P_2
) },
9421 { VEX_W_TABLE (VEX_W_0F2E_P_2
) },
9424 /* VEX_LEN_0F2F_P_0 */
9426 { VEX_W_TABLE (VEX_W_0F2F_P_0
) },
9427 { VEX_W_TABLE (VEX_W_0F2F_P_0
) },
9430 /* VEX_LEN_0F2F_P_2 */
9432 { VEX_W_TABLE (VEX_W_0F2F_P_2
) },
9433 { VEX_W_TABLE (VEX_W_0F2F_P_2
) },
9436 /* VEX_LEN_0F41_P_0 */
9439 { VEX_W_TABLE (VEX_W_0F41_P_0_LEN_1
) },
9441 /* VEX_LEN_0F41_P_2 */
9444 { VEX_W_TABLE (VEX_W_0F41_P_2_LEN_1
) },
9446 /* VEX_LEN_0F42_P_0 */
9449 { VEX_W_TABLE (VEX_W_0F42_P_0_LEN_1
) },
9451 /* VEX_LEN_0F42_P_2 */
9454 { VEX_W_TABLE (VEX_W_0F42_P_2_LEN_1
) },
9456 /* VEX_LEN_0F44_P_0 */
9458 { VEX_W_TABLE (VEX_W_0F44_P_0_LEN_0
) },
9460 /* VEX_LEN_0F44_P_2 */
9462 { VEX_W_TABLE (VEX_W_0F44_P_2_LEN_0
) },
9464 /* VEX_LEN_0F45_P_0 */
9467 { VEX_W_TABLE (VEX_W_0F45_P_0_LEN_1
) },
9469 /* VEX_LEN_0F45_P_2 */
9472 { VEX_W_TABLE (VEX_W_0F45_P_2_LEN_1
) },
9474 /* VEX_LEN_0F46_P_0 */
9477 { VEX_W_TABLE (VEX_W_0F46_P_0_LEN_1
) },
9479 /* VEX_LEN_0F46_P_2 */
9482 { VEX_W_TABLE (VEX_W_0F46_P_2_LEN_1
) },
9484 /* VEX_LEN_0F47_P_0 */
9487 { VEX_W_TABLE (VEX_W_0F47_P_0_LEN_1
) },
9489 /* VEX_LEN_0F47_P_2 */
9492 { VEX_W_TABLE (VEX_W_0F47_P_2_LEN_1
) },
9494 /* VEX_LEN_0F4A_P_0 */
9497 { VEX_W_TABLE (VEX_W_0F4A_P_0_LEN_1
) },
9499 /* VEX_LEN_0F4A_P_2 */
9502 { VEX_W_TABLE (VEX_W_0F4A_P_2_LEN_1
) },
9504 /* VEX_LEN_0F4B_P_0 */
9507 { VEX_W_TABLE (VEX_W_0F4B_P_0_LEN_1
) },
9509 /* VEX_LEN_0F4B_P_2 */
9512 { VEX_W_TABLE (VEX_W_0F4B_P_2_LEN_1
) },
9515 /* VEX_LEN_0F51_P_1 */
9517 { VEX_W_TABLE (VEX_W_0F51_P_1
) },
9518 { VEX_W_TABLE (VEX_W_0F51_P_1
) },
9521 /* VEX_LEN_0F51_P_3 */
9523 { VEX_W_TABLE (VEX_W_0F51_P_3
) },
9524 { VEX_W_TABLE (VEX_W_0F51_P_3
) },
9527 /* VEX_LEN_0F52_P_1 */
9529 { VEX_W_TABLE (VEX_W_0F52_P_1
) },
9530 { VEX_W_TABLE (VEX_W_0F52_P_1
) },
9533 /* VEX_LEN_0F53_P_1 */
9535 { VEX_W_TABLE (VEX_W_0F53_P_1
) },
9536 { VEX_W_TABLE (VEX_W_0F53_P_1
) },
9539 /* VEX_LEN_0F58_P_1 */
9541 { VEX_W_TABLE (VEX_W_0F58_P_1
) },
9542 { VEX_W_TABLE (VEX_W_0F58_P_1
) },
9545 /* VEX_LEN_0F58_P_3 */
9547 { VEX_W_TABLE (VEX_W_0F58_P_3
) },
9548 { VEX_W_TABLE (VEX_W_0F58_P_3
) },
9551 /* VEX_LEN_0F59_P_1 */
9553 { VEX_W_TABLE (VEX_W_0F59_P_1
) },
9554 { VEX_W_TABLE (VEX_W_0F59_P_1
) },
9557 /* VEX_LEN_0F59_P_3 */
9559 { VEX_W_TABLE (VEX_W_0F59_P_3
) },
9560 { VEX_W_TABLE (VEX_W_0F59_P_3
) },
9563 /* VEX_LEN_0F5A_P_1 */
9565 { VEX_W_TABLE (VEX_W_0F5A_P_1
) },
9566 { VEX_W_TABLE (VEX_W_0F5A_P_1
) },
9569 /* VEX_LEN_0F5A_P_3 */
9571 { VEX_W_TABLE (VEX_W_0F5A_P_3
) },
9572 { VEX_W_TABLE (VEX_W_0F5A_P_3
) },
9575 /* VEX_LEN_0F5C_P_1 */
9577 { VEX_W_TABLE (VEX_W_0F5C_P_1
) },
9578 { VEX_W_TABLE (VEX_W_0F5C_P_1
) },
9581 /* VEX_LEN_0F5C_P_3 */
9583 { VEX_W_TABLE (VEX_W_0F5C_P_3
) },
9584 { VEX_W_TABLE (VEX_W_0F5C_P_3
) },
9587 /* VEX_LEN_0F5D_P_1 */
9589 { VEX_W_TABLE (VEX_W_0F5D_P_1
) },
9590 { VEX_W_TABLE (VEX_W_0F5D_P_1
) },
9593 /* VEX_LEN_0F5D_P_3 */
9595 { VEX_W_TABLE (VEX_W_0F5D_P_3
) },
9596 { VEX_W_TABLE (VEX_W_0F5D_P_3
) },
9599 /* VEX_LEN_0F5E_P_1 */
9601 { VEX_W_TABLE (VEX_W_0F5E_P_1
) },
9602 { VEX_W_TABLE (VEX_W_0F5E_P_1
) },
9605 /* VEX_LEN_0F5E_P_3 */
9607 { VEX_W_TABLE (VEX_W_0F5E_P_3
) },
9608 { VEX_W_TABLE (VEX_W_0F5E_P_3
) },
9611 /* VEX_LEN_0F5F_P_1 */
9613 { VEX_W_TABLE (VEX_W_0F5F_P_1
) },
9614 { VEX_W_TABLE (VEX_W_0F5F_P_1
) },
9617 /* VEX_LEN_0F5F_P_3 */
9619 { VEX_W_TABLE (VEX_W_0F5F_P_3
) },
9620 { VEX_W_TABLE (VEX_W_0F5F_P_3
) },
9623 /* VEX_LEN_0F6E_P_2 */
9625 { "vmovK", { XMScalar
, Edq
}, 0 },
9626 { "vmovK", { XMScalar
, Edq
}, 0 },
9629 /* VEX_LEN_0F7E_P_1 */
9631 { VEX_W_TABLE (VEX_W_0F7E_P_1
) },
9632 { VEX_W_TABLE (VEX_W_0F7E_P_1
) },
9635 /* VEX_LEN_0F7E_P_2 */
9637 { "vmovK", { Edq
, XMScalar
}, 0 },
9638 { "vmovK", { Edq
, XMScalar
}, 0 },
9641 /* VEX_LEN_0F90_P_0 */
9643 { VEX_W_TABLE (VEX_W_0F90_P_0_LEN_0
) },
9646 /* VEX_LEN_0F90_P_2 */
9648 { VEX_W_TABLE (VEX_W_0F90_P_2_LEN_0
) },
9651 /* VEX_LEN_0F91_P_0 */
9653 { VEX_W_TABLE (VEX_W_0F91_P_0_LEN_0
) },
9656 /* VEX_LEN_0F91_P_2 */
9658 { VEX_W_TABLE (VEX_W_0F91_P_2_LEN_0
) },
9661 /* VEX_LEN_0F92_P_0 */
9663 { VEX_W_TABLE (VEX_W_0F92_P_0_LEN_0
) },
9666 /* VEX_LEN_0F92_P_2 */
9668 { VEX_W_TABLE (VEX_W_0F92_P_2_LEN_0
) },
9671 /* VEX_LEN_0F92_P_3 */
9673 { VEX_W_TABLE (VEX_W_0F92_P_3_LEN_0
) },
9676 /* VEX_LEN_0F93_P_0 */
9678 { VEX_W_TABLE (VEX_W_0F93_P_0_LEN_0
) },
9681 /* VEX_LEN_0F93_P_2 */
9683 { VEX_W_TABLE (VEX_W_0F93_P_2_LEN_0
) },
9686 /* VEX_LEN_0F93_P_3 */
9688 { VEX_W_TABLE (VEX_W_0F93_P_3_LEN_0
) },
9691 /* VEX_LEN_0F98_P_0 */
9693 { VEX_W_TABLE (VEX_W_0F98_P_0_LEN_0
) },
9696 /* VEX_LEN_0F98_P_2 */
9698 { VEX_W_TABLE (VEX_W_0F98_P_2_LEN_0
) },
9701 /* VEX_LEN_0F99_P_0 */
9703 { VEX_W_TABLE (VEX_W_0F99_P_0_LEN_0
) },
9706 /* VEX_LEN_0F99_P_2 */
9708 { VEX_W_TABLE (VEX_W_0F99_P_2_LEN_0
) },
9711 /* VEX_LEN_0FAE_R_2_M_0 */
9713 { VEX_W_TABLE (VEX_W_0FAE_R_2_M_0
) },
9716 /* VEX_LEN_0FAE_R_3_M_0 */
9718 { VEX_W_TABLE (VEX_W_0FAE_R_3_M_0
) },
9721 /* VEX_LEN_0FC2_P_1 */
9723 { VEX_W_TABLE (VEX_W_0FC2_P_1
) },
9724 { VEX_W_TABLE (VEX_W_0FC2_P_1
) },
9727 /* VEX_LEN_0FC2_P_3 */
9729 { VEX_W_TABLE (VEX_W_0FC2_P_3
) },
9730 { VEX_W_TABLE (VEX_W_0FC2_P_3
) },
9733 /* VEX_LEN_0FC4_P_2 */
9735 { VEX_W_TABLE (VEX_W_0FC4_P_2
) },
9738 /* VEX_LEN_0FC5_P_2 */
9740 { VEX_W_TABLE (VEX_W_0FC5_P_2
) },
9743 /* VEX_LEN_0FD6_P_2 */
9745 { VEX_W_TABLE (VEX_W_0FD6_P_2
) },
9746 { VEX_W_TABLE (VEX_W_0FD6_P_2
) },
9749 /* VEX_LEN_0FF7_P_2 */
9751 { VEX_W_TABLE (VEX_W_0FF7_P_2
) },
9754 /* VEX_LEN_0F3816_P_2 */
9757 { VEX_W_TABLE (VEX_W_0F3816_P_2
) },
9760 /* VEX_LEN_0F3819_P_2 */
9763 { VEX_W_TABLE (VEX_W_0F3819_P_2
) },
9766 /* VEX_LEN_0F381A_P_2_M_0 */
9769 { VEX_W_TABLE (VEX_W_0F381A_P_2_M_0
) },
9772 /* VEX_LEN_0F3836_P_2 */
9775 { VEX_W_TABLE (VEX_W_0F3836_P_2
) },
9778 /* VEX_LEN_0F3841_P_2 */
9780 { VEX_W_TABLE (VEX_W_0F3841_P_2
) },
9783 /* VEX_LEN_0F385A_P_2_M_0 */
9786 { VEX_W_TABLE (VEX_W_0F385A_P_2_M_0
) },
9789 /* VEX_LEN_0F38DB_P_2 */
9791 { VEX_W_TABLE (VEX_W_0F38DB_P_2
) },
9794 /* VEX_LEN_0F38DC_P_2 */
9796 { VEX_W_TABLE (VEX_W_0F38DC_P_2
) },
9799 /* VEX_LEN_0F38DD_P_2 */
9801 { VEX_W_TABLE (VEX_W_0F38DD_P_2
) },
9804 /* VEX_LEN_0F38DE_P_2 */
9806 { VEX_W_TABLE (VEX_W_0F38DE_P_2
) },
9809 /* VEX_LEN_0F38DF_P_2 */
9811 { VEX_W_TABLE (VEX_W_0F38DF_P_2
) },
9814 /* VEX_LEN_0F38F2_P_0 */
9816 { "andnS", { Gdq
, VexGdq
, Edq
}, 0 },
9819 /* VEX_LEN_0F38F3_R_1_P_0 */
9821 { "blsrS", { VexGdq
, Edq
}, 0 },
9824 /* VEX_LEN_0F38F3_R_2_P_0 */
9826 { "blsmskS", { VexGdq
, Edq
}, 0 },
9829 /* VEX_LEN_0F38F3_R_3_P_0 */
9831 { "blsiS", { VexGdq
, Edq
}, 0 },
9834 /* VEX_LEN_0F38F5_P_0 */
9836 { "bzhiS", { Gdq
, Edq
, VexGdq
}, 0 },
9839 /* VEX_LEN_0F38F5_P_1 */
9841 { "pextS", { Gdq
, VexGdq
, Edq
}, 0 },
9844 /* VEX_LEN_0F38F5_P_3 */
9846 { "pdepS", { Gdq
, VexGdq
, Edq
}, 0 },
9849 /* VEX_LEN_0F38F6_P_3 */
9851 { "mulxS", { Gdq
, VexGdq
, Edq
}, 0 },
9854 /* VEX_LEN_0F38F7_P_0 */
9856 { "bextrS", { Gdq
, Edq
, VexGdq
}, 0 },
9859 /* VEX_LEN_0F38F7_P_1 */
9861 { "sarxS", { Gdq
, Edq
, VexGdq
}, 0 },
9864 /* VEX_LEN_0F38F7_P_2 */
9866 { "shlxS", { Gdq
, Edq
, VexGdq
}, 0 },
9869 /* VEX_LEN_0F38F7_P_3 */
9871 { "shrxS", { Gdq
, Edq
, VexGdq
}, 0 },
9874 /* VEX_LEN_0F3A00_P_2 */
9877 { VEX_W_TABLE (VEX_W_0F3A00_P_2
) },
9880 /* VEX_LEN_0F3A01_P_2 */
9883 { VEX_W_TABLE (VEX_W_0F3A01_P_2
) },
9886 /* VEX_LEN_0F3A06_P_2 */
9889 { VEX_W_TABLE (VEX_W_0F3A06_P_2
) },
9892 /* VEX_LEN_0F3A0A_P_2 */
9894 { VEX_W_TABLE (VEX_W_0F3A0A_P_2
) },
9895 { VEX_W_TABLE (VEX_W_0F3A0A_P_2
) },
9898 /* VEX_LEN_0F3A0B_P_2 */
9900 { VEX_W_TABLE (VEX_W_0F3A0B_P_2
) },
9901 { VEX_W_TABLE (VEX_W_0F3A0B_P_2
) },
9904 /* VEX_LEN_0F3A14_P_2 */
9906 { VEX_W_TABLE (VEX_W_0F3A14_P_2
) },
9909 /* VEX_LEN_0F3A15_P_2 */
9911 { VEX_W_TABLE (VEX_W_0F3A15_P_2
) },
9914 /* VEX_LEN_0F3A16_P_2 */
9916 { "vpextrK", { Edq
, XM
, Ib
}, 0 },
9919 /* VEX_LEN_0F3A17_P_2 */
9921 { "vextractps", { Edqd
, XM
, Ib
}, 0 },
9924 /* VEX_LEN_0F3A18_P_2 */
9927 { VEX_W_TABLE (VEX_W_0F3A18_P_2
) },
9930 /* VEX_LEN_0F3A19_P_2 */
9933 { VEX_W_TABLE (VEX_W_0F3A19_P_2
) },
9936 /* VEX_LEN_0F3A20_P_2 */
9938 { VEX_W_TABLE (VEX_W_0F3A20_P_2
) },
9941 /* VEX_LEN_0F3A21_P_2 */
9943 { VEX_W_TABLE (VEX_W_0F3A21_P_2
) },
9946 /* VEX_LEN_0F3A22_P_2 */
9948 { "vpinsrK", { XM
, Vex128
, Edq
, Ib
}, 0 },
9951 /* VEX_LEN_0F3A30_P_2 */
9953 { VEX_W_TABLE (VEX_W_0F3A30_P_2_LEN_0
) },
9956 /* VEX_LEN_0F3A31_P_2 */
9958 { VEX_W_TABLE (VEX_W_0F3A31_P_2_LEN_0
) },
9961 /* VEX_LEN_0F3A32_P_2 */
9963 { VEX_W_TABLE (VEX_W_0F3A32_P_2_LEN_0
) },
9966 /* VEX_LEN_0F3A33_P_2 */
9968 { VEX_W_TABLE (VEX_W_0F3A33_P_2_LEN_0
) },
9971 /* VEX_LEN_0F3A38_P_2 */
9974 { VEX_W_TABLE (VEX_W_0F3A38_P_2
) },
9977 /* VEX_LEN_0F3A39_P_2 */
9980 { VEX_W_TABLE (VEX_W_0F3A39_P_2
) },
9983 /* VEX_LEN_0F3A41_P_2 */
9985 { VEX_W_TABLE (VEX_W_0F3A41_P_2
) },
9988 /* VEX_LEN_0F3A44_P_2 */
9990 { VEX_W_TABLE (VEX_W_0F3A44_P_2
) },
9993 /* VEX_LEN_0F3A46_P_2 */
9996 { VEX_W_TABLE (VEX_W_0F3A46_P_2
) },
9999 /* VEX_LEN_0F3A60_P_2 */
10001 { VEX_W_TABLE (VEX_W_0F3A60_P_2
) },
10004 /* VEX_LEN_0F3A61_P_2 */
10006 { VEX_W_TABLE (VEX_W_0F3A61_P_2
) },
10009 /* VEX_LEN_0F3A62_P_2 */
10011 { VEX_W_TABLE (VEX_W_0F3A62_P_2
) },
10014 /* VEX_LEN_0F3A63_P_2 */
10016 { VEX_W_TABLE (VEX_W_0F3A63_P_2
) },
10019 /* VEX_LEN_0F3A6A_P_2 */
10021 { "vfmaddss", { XMVexW
, Vex128
, EXdVexW
, EXdVexW
, VexI4
}, 0 },
10024 /* VEX_LEN_0F3A6B_P_2 */
10026 { "vfmaddsd", { XMVexW
, Vex128
, EXqVexW
, EXqVexW
, VexI4
}, 0 },
10029 /* VEX_LEN_0F3A6E_P_2 */
10031 { "vfmsubss", { XMVexW
, Vex128
, EXdVexW
, EXdVexW
, VexI4
}, 0 },
10034 /* VEX_LEN_0F3A6F_P_2 */
10036 { "vfmsubsd", { XMVexW
, Vex128
, EXqVexW
, EXqVexW
, VexI4
}, 0 },
10039 /* VEX_LEN_0F3A7A_P_2 */
10041 { "vfnmaddss", { XMVexW
, Vex128
, EXdVexW
, EXdVexW
, VexI4
}, 0 },
10044 /* VEX_LEN_0F3A7B_P_2 */
10046 { "vfnmaddsd", { XMVexW
, Vex128
, EXqVexW
, EXqVexW
, VexI4
}, 0 },
10049 /* VEX_LEN_0F3A7E_P_2 */
10051 { "vfnmsubss", { XMVexW
, Vex128
, EXdVexW
, EXdVexW
, VexI4
}, 0 },
10054 /* VEX_LEN_0F3A7F_P_2 */
10056 { "vfnmsubsd", { XMVexW
, Vex128
, EXqVexW
, EXqVexW
, VexI4
}, 0 },
10059 /* VEX_LEN_0F3ADF_P_2 */
10061 { VEX_W_TABLE (VEX_W_0F3ADF_P_2
) },
10064 /* VEX_LEN_0F3AF0_P_3 */
10066 { "rorxS", { Gdq
, Edq
, Ib
}, 0 },
10069 /* VEX_LEN_0FXOP_08_CC */
10071 { "vpcomb", { XM
, Vex128
, EXx
, Ib
}, 0 },
10074 /* VEX_LEN_0FXOP_08_CD */
10076 { "vpcomw", { XM
, Vex128
, EXx
, Ib
}, 0 },
10079 /* VEX_LEN_0FXOP_08_CE */
10081 { "vpcomd", { XM
, Vex128
, EXx
, Ib
}, 0 },
10084 /* VEX_LEN_0FXOP_08_CF */
10086 { "vpcomq", { XM
, Vex128
, EXx
, Ib
}, 0 },
10089 /* VEX_LEN_0FXOP_08_EC */
10091 { "vpcomub", { XM
, Vex128
, EXx
, Ib
}, 0 },
10094 /* VEX_LEN_0FXOP_08_ED */
10096 { "vpcomuw", { XM
, Vex128
, EXx
, Ib
}, 0 },
10099 /* VEX_LEN_0FXOP_08_EE */
10101 { "vpcomud", { XM
, Vex128
, EXx
, Ib
}, 0 },
10104 /* VEX_LEN_0FXOP_08_EF */
10106 { "vpcomuq", { XM
, Vex128
, EXx
, Ib
}, 0 },
10109 /* VEX_LEN_0FXOP_09_80 */
10111 { "vfrczps", { XM
, EXxmm
}, 0 },
10112 { "vfrczps", { XM
, EXymmq
}, 0 },
10115 /* VEX_LEN_0FXOP_09_81 */
10117 { "vfrczpd", { XM
, EXxmm
}, 0 },
10118 { "vfrczpd", { XM
, EXymmq
}, 0 },
10122 static const struct dis386 vex_w_table
[][2] = {
10124 /* VEX_W_0F10_P_0 */
10125 { "vmovups", { XM
, EXx
}, 0 },
10128 /* VEX_W_0F10_P_1 */
10129 { "vmovss", { XMVexScalar
, VexScalar
, EXdScalar
}, 0 },
10132 /* VEX_W_0F10_P_2 */
10133 { "vmovupd", { XM
, EXx
}, 0 },
10136 /* VEX_W_0F10_P_3 */
10137 { "vmovsd", { XMVexScalar
, VexScalar
, EXqScalar
}, 0 },
10140 /* VEX_W_0F11_P_0 */
10141 { "vmovups", { EXxS
, XM
}, 0 },
10144 /* VEX_W_0F11_P_1 */
10145 { "vmovss", { EXdVexScalarS
, VexScalar
, XMScalar
}, 0 },
10148 /* VEX_W_0F11_P_2 */
10149 { "vmovupd", { EXxS
, XM
}, 0 },
10152 /* VEX_W_0F11_P_3 */
10153 { "vmovsd", { EXqVexScalarS
, VexScalar
, XMScalar
}, 0 },
10156 /* VEX_W_0F12_P_0_M_0 */
10157 { "vmovlps", { XM
, Vex128
, EXq
}, 0 },
10160 /* VEX_W_0F12_P_0_M_1 */
10161 { "vmovhlps", { XM
, Vex128
, EXq
}, 0 },
10164 /* VEX_W_0F12_P_1 */
10165 { "vmovsldup", { XM
, EXx
}, 0 },
10168 /* VEX_W_0F12_P_2 */
10169 { "vmovlpd", { XM
, Vex128
, EXq
}, 0 },
10172 /* VEX_W_0F12_P_3 */
10173 { "vmovddup", { XM
, EXymmq
}, 0 },
10176 /* VEX_W_0F13_M_0 */
10177 { "vmovlpX", { EXq
, XM
}, 0 },
10181 { "vunpcklpX", { XM
, Vex
, EXx
}, 0 },
10185 { "vunpckhpX", { XM
, Vex
, EXx
}, 0 },
10188 /* VEX_W_0F16_P_0_M_0 */
10189 { "vmovhps", { XM
, Vex128
, EXq
}, 0 },
10192 /* VEX_W_0F16_P_0_M_1 */
10193 { "vmovlhps", { XM
, Vex128
, EXq
}, 0 },
10196 /* VEX_W_0F16_P_1 */
10197 { "vmovshdup", { XM
, EXx
}, 0 },
10200 /* VEX_W_0F16_P_2 */
10201 { "vmovhpd", { XM
, Vex128
, EXq
}, 0 },
10204 /* VEX_W_0F17_M_0 */
10205 { "vmovhpX", { EXq
, XM
}, 0 },
10209 { "vmovapX", { XM
, EXx
}, 0 },
10213 { "vmovapX", { EXxS
, XM
}, 0 },
10216 /* VEX_W_0F2B_M_0 */
10217 { "vmovntpX", { Mx
, XM
}, 0 },
10220 /* VEX_W_0F2E_P_0 */
10221 { "vucomiss", { XMScalar
, EXdScalar
}, 0 },
10224 /* VEX_W_0F2E_P_2 */
10225 { "vucomisd", { XMScalar
, EXqScalar
}, 0 },
10228 /* VEX_W_0F2F_P_0 */
10229 { "vcomiss", { XMScalar
, EXdScalar
}, 0 },
10232 /* VEX_W_0F2F_P_2 */
10233 { "vcomisd", { XMScalar
, EXqScalar
}, 0 },
10236 /* VEX_W_0F41_P_0_LEN_1 */
10237 { MOD_TABLE (MOD_VEX_W_0_0F41_P_0_LEN_1
) },
10238 { MOD_TABLE (MOD_VEX_W_1_0F41_P_0_LEN_1
) },
10241 /* VEX_W_0F41_P_2_LEN_1 */
10242 { MOD_TABLE (MOD_VEX_W_0_0F41_P_2_LEN_1
) },
10243 { MOD_TABLE (MOD_VEX_W_1_0F41_P_2_LEN_1
) }
10246 /* VEX_W_0F42_P_0_LEN_1 */
10247 { MOD_TABLE (MOD_VEX_W_0_0F42_P_0_LEN_1
) },
10248 { MOD_TABLE (MOD_VEX_W_1_0F42_P_0_LEN_1
) },
10251 /* VEX_W_0F42_P_2_LEN_1 */
10252 { MOD_TABLE (MOD_VEX_W_0_0F42_P_2_LEN_1
) },
10253 { MOD_TABLE (MOD_VEX_W_1_0F42_P_2_LEN_1
) },
10256 /* VEX_W_0F44_P_0_LEN_0 */
10257 { MOD_TABLE (MOD_VEX_W_0_0F44_P_0_LEN_1
) },
10258 { MOD_TABLE (MOD_VEX_W_1_0F44_P_0_LEN_1
) },
10261 /* VEX_W_0F44_P_2_LEN_0 */
10262 { MOD_TABLE (MOD_VEX_W_0_0F44_P_2_LEN_1
) },
10263 { MOD_TABLE (MOD_VEX_W_1_0F44_P_2_LEN_1
) },
10266 /* VEX_W_0F45_P_0_LEN_1 */
10267 { MOD_TABLE (MOD_VEX_W_0_0F45_P_0_LEN_1
) },
10268 { MOD_TABLE (MOD_VEX_W_1_0F45_P_0_LEN_1
) },
10271 /* VEX_W_0F45_P_2_LEN_1 */
10272 { MOD_TABLE (MOD_VEX_W_0_0F45_P_2_LEN_1
) },
10273 { MOD_TABLE (MOD_VEX_W_1_0F45_P_2_LEN_1
) },
10276 /* VEX_W_0F46_P_0_LEN_1 */
10277 { MOD_TABLE (MOD_VEX_W_0_0F46_P_0_LEN_1
) },
10278 { MOD_TABLE (MOD_VEX_W_1_0F46_P_0_LEN_1
) },
10281 /* VEX_W_0F46_P_2_LEN_1 */
10282 { MOD_TABLE (MOD_VEX_W_0_0F46_P_2_LEN_1
) },
10283 { MOD_TABLE (MOD_VEX_W_1_0F46_P_2_LEN_1
) },
10286 /* VEX_W_0F47_P_0_LEN_1 */
10287 { MOD_TABLE (MOD_VEX_W_0_0F47_P_0_LEN_1
) },
10288 { MOD_TABLE (MOD_VEX_W_1_0F47_P_0_LEN_1
) },
10291 /* VEX_W_0F47_P_2_LEN_1 */
10292 { MOD_TABLE (MOD_VEX_W_0_0F47_P_2_LEN_1
) },
10293 { MOD_TABLE (MOD_VEX_W_1_0F47_P_2_LEN_1
) },
10296 /* VEX_W_0F4A_P_0_LEN_1 */
10297 { MOD_TABLE (MOD_VEX_W_0_0F4A_P_0_LEN_1
) },
10298 { MOD_TABLE (MOD_VEX_W_1_0F4A_P_0_LEN_1
) },
10301 /* VEX_W_0F4A_P_2_LEN_1 */
10302 { MOD_TABLE (MOD_VEX_W_0_0F4A_P_2_LEN_1
) },
10303 { MOD_TABLE (MOD_VEX_W_1_0F4A_P_2_LEN_1
) },
10306 /* VEX_W_0F4B_P_0_LEN_1 */
10307 { MOD_TABLE (MOD_VEX_W_0_0F4B_P_0_LEN_1
) },
10308 { MOD_TABLE (MOD_VEX_W_1_0F4B_P_0_LEN_1
) },
10311 /* VEX_W_0F4B_P_2_LEN_1 */
10312 { MOD_TABLE (MOD_VEX_W_0_0F4B_P_2_LEN_1
) },
10315 /* VEX_W_0F50_M_0 */
10316 { "vmovmskpX", { Gdq
, XS
}, 0 },
10319 /* VEX_W_0F51_P_0 */
10320 { "vsqrtps", { XM
, EXx
}, 0 },
10323 /* VEX_W_0F51_P_1 */
10324 { "vsqrtss", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10327 /* VEX_W_0F51_P_2 */
10328 { "vsqrtpd", { XM
, EXx
}, 0 },
10331 /* VEX_W_0F51_P_3 */
10332 { "vsqrtsd", { XMScalar
, VexScalar
, EXqScalar
}, 0 },
10335 /* VEX_W_0F52_P_0 */
10336 { "vrsqrtps", { XM
, EXx
}, 0 },
10339 /* VEX_W_0F52_P_1 */
10340 { "vrsqrtss", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10343 /* VEX_W_0F53_P_0 */
10344 { "vrcpps", { XM
, EXx
}, 0 },
10347 /* VEX_W_0F53_P_1 */
10348 { "vrcpss", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10351 /* VEX_W_0F58_P_0 */
10352 { "vaddps", { XM
, Vex
, EXx
}, 0 },
10355 /* VEX_W_0F58_P_1 */
10356 { "vaddss", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10359 /* VEX_W_0F58_P_2 */
10360 { "vaddpd", { XM
, Vex
, EXx
}, 0 },
10363 /* VEX_W_0F58_P_3 */
10364 { "vaddsd", { XMScalar
, VexScalar
, EXqScalar
}, 0 },
10367 /* VEX_W_0F59_P_0 */
10368 { "vmulps", { XM
, Vex
, EXx
}, 0 },
10371 /* VEX_W_0F59_P_1 */
10372 { "vmulss", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10375 /* VEX_W_0F59_P_2 */
10376 { "vmulpd", { XM
, Vex
, EXx
}, 0 },
10379 /* VEX_W_0F59_P_3 */
10380 { "vmulsd", { XMScalar
, VexScalar
, EXqScalar
}, 0 },
10383 /* VEX_W_0F5A_P_0 */
10384 { "vcvtps2pd", { XM
, EXxmmq
}, 0 },
10387 /* VEX_W_0F5A_P_1 */
10388 { "vcvtss2sd", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10391 /* VEX_W_0F5A_P_3 */
10392 { "vcvtsd2ss", { XMScalar
, VexScalar
, EXqScalar
}, 0 },
10395 /* VEX_W_0F5B_P_0 */
10396 { "vcvtdq2ps", { XM
, EXx
}, 0 },
10399 /* VEX_W_0F5B_P_1 */
10400 { "vcvttps2dq", { XM
, EXx
}, 0 },
10403 /* VEX_W_0F5B_P_2 */
10404 { "vcvtps2dq", { XM
, EXx
}, 0 },
10407 /* VEX_W_0F5C_P_0 */
10408 { "vsubps", { XM
, Vex
, EXx
}, 0 },
10411 /* VEX_W_0F5C_P_1 */
10412 { "vsubss", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10415 /* VEX_W_0F5C_P_2 */
10416 { "vsubpd", { XM
, Vex
, EXx
}, 0 },
10419 /* VEX_W_0F5C_P_3 */
10420 { "vsubsd", { XMScalar
, VexScalar
, EXqScalar
}, 0 },
10423 /* VEX_W_0F5D_P_0 */
10424 { "vminps", { XM
, Vex
, EXx
}, 0 },
10427 /* VEX_W_0F5D_P_1 */
10428 { "vminss", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10431 /* VEX_W_0F5D_P_2 */
10432 { "vminpd", { XM
, Vex
, EXx
}, 0 },
10435 /* VEX_W_0F5D_P_3 */
10436 { "vminsd", { XMScalar
, VexScalar
, EXqScalar
}, 0 },
10439 /* VEX_W_0F5E_P_0 */
10440 { "vdivps", { XM
, Vex
, EXx
}, 0 },
10443 /* VEX_W_0F5E_P_1 */
10444 { "vdivss", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10447 /* VEX_W_0F5E_P_2 */
10448 { "vdivpd", { XM
, Vex
, EXx
}, 0 },
10451 /* VEX_W_0F5E_P_3 */
10452 { "vdivsd", { XMScalar
, VexScalar
, EXqScalar
}, 0 },
10455 /* VEX_W_0F5F_P_0 */
10456 { "vmaxps", { XM
, Vex
, EXx
}, 0 },
10459 /* VEX_W_0F5F_P_1 */
10460 { "vmaxss", { XMScalar
, VexScalar
, EXdScalar
}, 0 },
10463 /* VEX_W_0F5F_P_2 */
10464 { "vmaxpd", { XM
, Vex
, EXx
}, 0 },
10467 /* VEX_W_0F5F_P_3 */
10468 { "vmaxsd", { XMScalar
, VexScalar
, EXqScalar
}, 0 },
10471 /* VEX_W_0F60_P_2 */
10472 { "vpunpcklbw", { XM
, Vex
, EXx
}, 0 },
10475 /* VEX_W_0F61_P_2 */
10476 { "vpunpcklwd", { XM
, Vex
, EXx
}, 0 },
10479 /* VEX_W_0F62_P_2 */
10480 { "vpunpckldq", { XM
, Vex
, EXx
}, 0 },
10483 /* VEX_W_0F63_P_2 */
10484 { "vpacksswb", { XM
, Vex
, EXx
}, 0 },
10487 /* VEX_W_0F64_P_2 */
10488 { "vpcmpgtb", { XM
, Vex
, EXx
}, 0 },
10491 /* VEX_W_0F65_P_2 */
10492 { "vpcmpgtw", { XM
, Vex
, EXx
}, 0 },
10495 /* VEX_W_0F66_P_2 */
10496 { "vpcmpgtd", { XM
, Vex
, EXx
}, 0 },
10499 /* VEX_W_0F67_P_2 */
10500 { "vpackuswb", { XM
, Vex
, EXx
}, 0 },
10503 /* VEX_W_0F68_P_2 */
10504 { "vpunpckhbw", { XM
, Vex
, EXx
}, 0 },
10507 /* VEX_W_0F69_P_2 */
10508 { "vpunpckhwd", { XM
, Vex
, EXx
}, 0 },
10511 /* VEX_W_0F6A_P_2 */
10512 { "vpunpckhdq", { XM
, Vex
, EXx
}, 0 },
10515 /* VEX_W_0F6B_P_2 */
10516 { "vpackssdw", { XM
, Vex
, EXx
}, 0 },
10519 /* VEX_W_0F6C_P_2 */
10520 { "vpunpcklqdq", { XM
, Vex
, EXx
}, 0 },
10523 /* VEX_W_0F6D_P_2 */
10524 { "vpunpckhqdq", { XM
, Vex
, EXx
}, 0 },
10527 /* VEX_W_0F6F_P_1 */
10528 { "vmovdqu", { XM
, EXx
}, 0 },
10531 /* VEX_W_0F6F_P_2 */
10532 { "vmovdqa", { XM
, EXx
}, 0 },
10535 /* VEX_W_0F70_P_1 */
10536 { "vpshufhw", { XM
, EXx
, Ib
}, 0 },
10539 /* VEX_W_0F70_P_2 */
10540 { "vpshufd", { XM
, EXx
, Ib
}, 0 },
10543 /* VEX_W_0F70_P_3 */
10544 { "vpshuflw", { XM
, EXx
, Ib
}, 0 },
10547 /* VEX_W_0F71_R_2_P_2 */
10548 { "vpsrlw", { Vex
, XS
, Ib
}, 0 },
10551 /* VEX_W_0F71_R_4_P_2 */
10552 { "vpsraw", { Vex
, XS
, Ib
}, 0 },
10555 /* VEX_W_0F71_R_6_P_2 */
10556 { "vpsllw", { Vex
, XS
, Ib
}, 0 },
10559 /* VEX_W_0F72_R_2_P_2 */
10560 { "vpsrld", { Vex
, XS
, Ib
}, 0 },
10563 /* VEX_W_0F72_R_4_P_2 */
10564 { "vpsrad", { Vex
, XS
, Ib
}, 0 },
10567 /* VEX_W_0F72_R_6_P_2 */
10568 { "vpslld", { Vex
, XS
, Ib
}, 0 },
10571 /* VEX_W_0F73_R_2_P_2 */
10572 { "vpsrlq", { Vex
, XS
, Ib
}, 0 },
10575 /* VEX_W_0F73_R_3_P_2 */
10576 { "vpsrldq", { Vex
, XS
, Ib
}, 0 },
10579 /* VEX_W_0F73_R_6_P_2 */
10580 { "vpsllq", { Vex
, XS
, Ib
}, 0 },
10583 /* VEX_W_0F73_R_7_P_2 */
10584 { "vpslldq", { Vex
, XS
, Ib
}, 0 },
10587 /* VEX_W_0F74_P_2 */
10588 { "vpcmpeqb", { XM
, Vex
, EXx
}, 0 },
10591 /* VEX_W_0F75_P_2 */
10592 { "vpcmpeqw", { XM
, Vex
, EXx
}, 0 },
10595 /* VEX_W_0F76_P_2 */
10596 { "vpcmpeqd", { XM
, Vex
, EXx
}, 0 },
10599 /* VEX_W_0F77_P_0 */
10600 { "", { VZERO
}, 0 },
10603 /* VEX_W_0F7C_P_2 */
10604 { "vhaddpd", { XM
, Vex
, EXx
}, 0 },
10607 /* VEX_W_0F7C_P_3 */
10608 { "vhaddps", { XM
, Vex
, EXx
}, 0 },
10611 /* VEX_W_0F7D_P_2 */
10612 { "vhsubpd", { XM
, Vex
, EXx
}, 0 },
10615 /* VEX_W_0F7D_P_3 */
10616 { "vhsubps", { XM
, Vex
, EXx
}, 0 },
10619 /* VEX_W_0F7E_P_1 */
10620 { "vmovq", { XMScalar
, EXqScalar
}, 0 },
10623 /* VEX_W_0F7F_P_1 */
10624 { "vmovdqu", { EXxS
, XM
}, 0 },
10627 /* VEX_W_0F7F_P_2 */
10628 { "vmovdqa", { EXxS
, XM
}, 0 },
10631 /* VEX_W_0F90_P_0_LEN_0 */
10632 { "kmovw", { MaskG
, MaskE
}, 0 },
10633 { "kmovq", { MaskG
, MaskE
}, 0 },
10636 /* VEX_W_0F90_P_2_LEN_0 */
10637 { "kmovb", { MaskG
, MaskBDE
}, 0 },
10638 { "kmovd", { MaskG
, MaskBDE
}, 0 },
10641 /* VEX_W_0F91_P_0_LEN_0 */
10642 { MOD_TABLE (MOD_VEX_W_0_0F91_P_0_LEN_0
) },
10643 { MOD_TABLE (MOD_VEX_W_1_0F91_P_0_LEN_0
) },
10646 /* VEX_W_0F91_P_2_LEN_0 */
10647 { MOD_TABLE (MOD_VEX_W_0_0F91_P_2_LEN_0
) },
10648 { MOD_TABLE (MOD_VEX_W_1_0F91_P_2_LEN_0
) },
10651 /* VEX_W_0F92_P_0_LEN_0 */
10652 { MOD_TABLE (MOD_VEX_W_0_0F92_P_0_LEN_0
) },
10655 /* VEX_W_0F92_P_2_LEN_0 */
10656 { MOD_TABLE (MOD_VEX_W_0_0F92_P_2_LEN_0
) },
10659 /* VEX_W_0F92_P_3_LEN_0 */
10660 { MOD_TABLE (MOD_VEX_W_0_0F92_P_3_LEN_0
) },
10661 { MOD_TABLE (MOD_VEX_W_1_0F92_P_3_LEN_0
) },
10664 /* VEX_W_0F93_P_0_LEN_0 */
10665 { MOD_TABLE (MOD_VEX_W_0_0F93_P_0_LEN_0
) },
10668 /* VEX_W_0F93_P_2_LEN_0 */
10669 { MOD_TABLE (MOD_VEX_W_0_0F93_P_2_LEN_0
) },
10672 /* VEX_W_0F93_P_3_LEN_0 */
10673 { MOD_TABLE (MOD_VEX_W_0_0F93_P_3_LEN_0
) },
10674 { MOD_TABLE (MOD_VEX_W_1_0F93_P_3_LEN_0
) },
10677 /* VEX_W_0F98_P_0_LEN_0 */
10678 { MOD_TABLE (MOD_VEX_W_0_0F98_P_0_LEN_0
) },
10679 { MOD_TABLE (MOD_VEX_W_1_0F98_P_0_LEN_0
) },
10682 /* VEX_W_0F98_P_2_LEN_0 */
10683 { MOD_TABLE (MOD_VEX_W_0_0F98_P_2_LEN_0
) },
10684 { MOD_TABLE (MOD_VEX_W_1_0F98_P_2_LEN_0
) },
10687 /* VEX_W_0F99_P_0_LEN_0 */
10688 { MOD_TABLE (MOD_VEX_W_0_0F99_P_0_LEN_0
) },
10689 { MOD_TABLE (MOD_VEX_W_1_0F99_P_0_LEN_0
) },
10692 /* VEX_W_0F99_P_2_LEN_0 */
10693 { MOD_TABLE (MOD_VEX_W_0_0F99_P_2_LEN_0
) },
10694 { MOD_TABLE (MOD_VEX_W_1_0F99_P_2_LEN_0
) },
10697 /* VEX_W_0FAE_R_2_M_0 */
10698 { "vldmxcsr", { Md
}, 0 },
10701 /* VEX_W_0FAE_R_3_M_0 */
10702 { "vstmxcsr", { Md
}, 0 },
10705 /* VEX_W_0FC2_P_0 */
10706 { "vcmpps", { XM
, Vex
, EXx
, VCMP
}, 0 },
10709 /* VEX_W_0FC2_P_1 */
10710 { "vcmpss", { XMScalar
, VexScalar
, EXdScalar
, VCMP
}, 0 },
10713 /* VEX_W_0FC2_P_2 */
10714 { "vcmppd", { XM
, Vex
, EXx
, VCMP
}, 0 },
10717 /* VEX_W_0FC2_P_3 */
10718 { "vcmpsd", { XMScalar
, VexScalar
, EXqScalar
, VCMP
}, 0 },
10721 /* VEX_W_0FC4_P_2 */
10722 { "vpinsrw", { XM
, Vex128
, Edqw
, Ib
}, 0 },
10725 /* VEX_W_0FC5_P_2 */
10726 { "vpextrw", { Gdq
, XS
, Ib
}, 0 },
10729 /* VEX_W_0FD0_P_2 */
10730 { "vaddsubpd", { XM
, Vex
, EXx
}, 0 },
10733 /* VEX_W_0FD0_P_3 */
10734 { "vaddsubps", { XM
, Vex
, EXx
}, 0 },
10737 /* VEX_W_0FD1_P_2 */
10738 { "vpsrlw", { XM
, Vex
, EXxmm
}, 0 },
10741 /* VEX_W_0FD2_P_2 */
10742 { "vpsrld", { XM
, Vex
, EXxmm
}, 0 },
10745 /* VEX_W_0FD3_P_2 */
10746 { "vpsrlq", { XM
, Vex
, EXxmm
}, 0 },
10749 /* VEX_W_0FD4_P_2 */
10750 { "vpaddq", { XM
, Vex
, EXx
}, 0 },
10753 /* VEX_W_0FD5_P_2 */
10754 { "vpmullw", { XM
, Vex
, EXx
}, 0 },
10757 /* VEX_W_0FD6_P_2 */
10758 { "vmovq", { EXqScalarS
, XMScalar
}, 0 },
10761 /* VEX_W_0FD7_P_2_M_1 */
10762 { "vpmovmskb", { Gdq
, XS
}, 0 },
10765 /* VEX_W_0FD8_P_2 */
10766 { "vpsubusb", { XM
, Vex
, EXx
}, 0 },
10769 /* VEX_W_0FD9_P_2 */
10770 { "vpsubusw", { XM
, Vex
, EXx
}, 0 },
10773 /* VEX_W_0FDA_P_2 */
10774 { "vpminub", { XM
, Vex
, EXx
}, 0 },
10777 /* VEX_W_0FDB_P_2 */
10778 { "vpand", { XM
, Vex
, EXx
}, 0 },
10781 /* VEX_W_0FDC_P_2 */
10782 { "vpaddusb", { XM
, Vex
, EXx
}, 0 },
10785 /* VEX_W_0FDD_P_2 */
10786 { "vpaddusw", { XM
, Vex
, EXx
}, 0 },
10789 /* VEX_W_0FDE_P_2 */
10790 { "vpmaxub", { XM
, Vex
, EXx
}, 0 },
10793 /* VEX_W_0FDF_P_2 */
10794 { "vpandn", { XM
, Vex
, EXx
}, 0 },
10797 /* VEX_W_0FE0_P_2 */
10798 { "vpavgb", { XM
, Vex
, EXx
}, 0 },
10801 /* VEX_W_0FE1_P_2 */
10802 { "vpsraw", { XM
, Vex
, EXxmm
}, 0 },
10805 /* VEX_W_0FE2_P_2 */
10806 { "vpsrad", { XM
, Vex
, EXxmm
}, 0 },
10809 /* VEX_W_0FE3_P_2 */
10810 { "vpavgw", { XM
, Vex
, EXx
}, 0 },
10813 /* VEX_W_0FE4_P_2 */
10814 { "vpmulhuw", { XM
, Vex
, EXx
}, 0 },
10817 /* VEX_W_0FE5_P_2 */
10818 { "vpmulhw", { XM
, Vex
, EXx
}, 0 },
10821 /* VEX_W_0FE6_P_1 */
10822 { "vcvtdq2pd", { XM
, EXxmmq
}, 0 },
10825 /* VEX_W_0FE6_P_2 */
10826 { "vcvttpd2dq%XY", { XMM
, EXx
}, 0 },
10829 /* VEX_W_0FE6_P_3 */
10830 { "vcvtpd2dq%XY", { XMM
, EXx
}, 0 },
10833 /* VEX_W_0FE7_P_2_M_0 */
10834 { "vmovntdq", { Mx
, XM
}, 0 },
10837 /* VEX_W_0FE8_P_2 */
10838 { "vpsubsb", { XM
, Vex
, EXx
}, 0 },
10841 /* VEX_W_0FE9_P_2 */
10842 { "vpsubsw", { XM
, Vex
, EXx
}, 0 },
10845 /* VEX_W_0FEA_P_2 */
10846 { "vpminsw", { XM
, Vex
, EXx
}, 0 },
10849 /* VEX_W_0FEB_P_2 */
10850 { "vpor", { XM
, Vex
, EXx
}, 0 },
10853 /* VEX_W_0FEC_P_2 */
10854 { "vpaddsb", { XM
, Vex
, EXx
}, 0 },
10857 /* VEX_W_0FED_P_2 */
10858 { "vpaddsw", { XM
, Vex
, EXx
}, 0 },
10861 /* VEX_W_0FEE_P_2 */
10862 { "vpmaxsw", { XM
, Vex
, EXx
}, 0 },
10865 /* VEX_W_0FEF_P_2 */
10866 { "vpxor", { XM
, Vex
, EXx
}, 0 },
10869 /* VEX_W_0FF0_P_3_M_0 */
10870 { "vlddqu", { XM
, M
}, 0 },
10873 /* VEX_W_0FF1_P_2 */
10874 { "vpsllw", { XM
, Vex
, EXxmm
}, 0 },
10877 /* VEX_W_0FF2_P_2 */
10878 { "vpslld", { XM
, Vex
, EXxmm
}, 0 },
10881 /* VEX_W_0FF3_P_2 */
10882 { "vpsllq", { XM
, Vex
, EXxmm
}, 0 },
10885 /* VEX_W_0FF4_P_2 */
10886 { "vpmuludq", { XM
, Vex
, EXx
}, 0 },
10889 /* VEX_W_0FF5_P_2 */
10890 { "vpmaddwd", { XM
, Vex
, EXx
}, 0 },
10893 /* VEX_W_0FF6_P_2 */
10894 { "vpsadbw", { XM
, Vex
, EXx
}, 0 },
10897 /* VEX_W_0FF7_P_2 */
10898 { "vmaskmovdqu", { XM
, XS
}, 0 },
10901 /* VEX_W_0FF8_P_2 */
10902 { "vpsubb", { XM
, Vex
, EXx
}, 0 },
10905 /* VEX_W_0FF9_P_2 */
10906 { "vpsubw", { XM
, Vex
, EXx
}, 0 },
10909 /* VEX_W_0FFA_P_2 */
10910 { "vpsubd", { XM
, Vex
, EXx
}, 0 },
10913 /* VEX_W_0FFB_P_2 */
10914 { "vpsubq", { XM
, Vex
, EXx
}, 0 },
10917 /* VEX_W_0FFC_P_2 */
10918 { "vpaddb", { XM
, Vex
, EXx
}, 0 },
10921 /* VEX_W_0FFD_P_2 */
10922 { "vpaddw", { XM
, Vex
, EXx
}, 0 },
10925 /* VEX_W_0FFE_P_2 */
10926 { "vpaddd", { XM
, Vex
, EXx
}, 0 },
10929 /* VEX_W_0F3800_P_2 */
10930 { "vpshufb", { XM
, Vex
, EXx
}, 0 },
10933 /* VEX_W_0F3801_P_2 */
10934 { "vphaddw", { XM
, Vex
, EXx
}, 0 },
10937 /* VEX_W_0F3802_P_2 */
10938 { "vphaddd", { XM
, Vex
, EXx
}, 0 },
10941 /* VEX_W_0F3803_P_2 */
10942 { "vphaddsw", { XM
, Vex
, EXx
}, 0 },
10945 /* VEX_W_0F3804_P_2 */
10946 { "vpmaddubsw", { XM
, Vex
, EXx
}, 0 },
10949 /* VEX_W_0F3805_P_2 */
10950 { "vphsubw", { XM
, Vex
, EXx
}, 0 },
10953 /* VEX_W_0F3806_P_2 */
10954 { "vphsubd", { XM
, Vex
, EXx
}, 0 },
10957 /* VEX_W_0F3807_P_2 */
10958 { "vphsubsw", { XM
, Vex
, EXx
}, 0 },
10961 /* VEX_W_0F3808_P_2 */
10962 { "vpsignb", { XM
, Vex
, EXx
}, 0 },
10965 /* VEX_W_0F3809_P_2 */
10966 { "vpsignw", { XM
, Vex
, EXx
}, 0 },
10969 /* VEX_W_0F380A_P_2 */
10970 { "vpsignd", { XM
, Vex
, EXx
}, 0 },
10973 /* VEX_W_0F380B_P_2 */
10974 { "vpmulhrsw", { XM
, Vex
, EXx
}, 0 },
10977 /* VEX_W_0F380C_P_2 */
10978 { "vpermilps", { XM
, Vex
, EXx
}, 0 },
10981 /* VEX_W_0F380D_P_2 */
10982 { "vpermilpd", { XM
, Vex
, EXx
}, 0 },
10985 /* VEX_W_0F380E_P_2 */
10986 { "vtestps", { XM
, EXx
}, 0 },
10989 /* VEX_W_0F380F_P_2 */
10990 { "vtestpd", { XM
, EXx
}, 0 },
10993 /* VEX_W_0F3816_P_2 */
10994 { "vpermps", { XM
, Vex
, EXx
}, 0 },
10997 /* VEX_W_0F3817_P_2 */
10998 { "vptest", { XM
, EXx
}, 0 },
11001 /* VEX_W_0F3818_P_2 */
11002 { "vbroadcastss", { XM
, EXxmm_md
}, 0 },
11005 /* VEX_W_0F3819_P_2 */
11006 { "vbroadcastsd", { XM
, EXxmm_mq
}, 0 },
11009 /* VEX_W_0F381A_P_2_M_0 */
11010 { "vbroadcastf128", { XM
, Mxmm
}, 0 },
11013 /* VEX_W_0F381C_P_2 */
11014 { "vpabsb", { XM
, EXx
}, 0 },
11017 /* VEX_W_0F381D_P_2 */
11018 { "vpabsw", { XM
, EXx
}, 0 },
11021 /* VEX_W_0F381E_P_2 */
11022 { "vpabsd", { XM
, EXx
}, 0 },
11025 /* VEX_W_0F3820_P_2 */
11026 { "vpmovsxbw", { XM
, EXxmmq
}, 0 },
11029 /* VEX_W_0F3821_P_2 */
11030 { "vpmovsxbd", { XM
, EXxmmqd
}, 0 },
11033 /* VEX_W_0F3822_P_2 */
11034 { "vpmovsxbq", { XM
, EXxmmdw
}, 0 },
11037 /* VEX_W_0F3823_P_2 */
11038 { "vpmovsxwd", { XM
, EXxmmq
}, 0 },
11041 /* VEX_W_0F3824_P_2 */
11042 { "vpmovsxwq", { XM
, EXxmmqd
}, 0 },
11045 /* VEX_W_0F3825_P_2 */
11046 { "vpmovsxdq", { XM
, EXxmmq
}, 0 },
11049 /* VEX_W_0F3828_P_2 */
11050 { "vpmuldq", { XM
, Vex
, EXx
}, 0 },
11053 /* VEX_W_0F3829_P_2 */
11054 { "vpcmpeqq", { XM
, Vex
, EXx
}, 0 },
11057 /* VEX_W_0F382A_P_2_M_0 */
11058 { "vmovntdqa", { XM
, Mx
}, 0 },
11061 /* VEX_W_0F382B_P_2 */
11062 { "vpackusdw", { XM
, Vex
, EXx
}, 0 },
11065 /* VEX_W_0F382C_P_2_M_0 */
11066 { "vmaskmovps", { XM
, Vex
, Mx
}, 0 },
11069 /* VEX_W_0F382D_P_2_M_0 */
11070 { "vmaskmovpd", { XM
, Vex
, Mx
}, 0 },
11073 /* VEX_W_0F382E_P_2_M_0 */
11074 { "vmaskmovps", { Mx
, Vex
, XM
}, 0 },
11077 /* VEX_W_0F382F_P_2_M_0 */
11078 { "vmaskmovpd", { Mx
, Vex
, XM
}, 0 },
11081 /* VEX_W_0F3830_P_2 */
11082 { "vpmovzxbw", { XM
, EXxmmq
}, 0 },
11085 /* VEX_W_0F3831_P_2 */
11086 { "vpmovzxbd", { XM
, EXxmmqd
}, 0 },
11089 /* VEX_W_0F3832_P_2 */
11090 { "vpmovzxbq", { XM
, EXxmmdw
}, 0 },
11093 /* VEX_W_0F3833_P_2 */
11094 { "vpmovzxwd", { XM
, EXxmmq
}, 0 },
11097 /* VEX_W_0F3834_P_2 */
11098 { "vpmovzxwq", { XM
, EXxmmqd
}, 0 },
11101 /* VEX_W_0F3835_P_2 */
11102 { "vpmovzxdq", { XM
, EXxmmq
}, 0 },
11105 /* VEX_W_0F3836_P_2 */
11106 { "vpermd", { XM
, Vex
, EXx
}, 0 },
11109 /* VEX_W_0F3837_P_2 */
11110 { "vpcmpgtq", { XM
, Vex
, EXx
}, 0 },
11113 /* VEX_W_0F3838_P_2 */
11114 { "vpminsb", { XM
, Vex
, EXx
}, 0 },
11117 /* VEX_W_0F3839_P_2 */
11118 { "vpminsd", { XM
, Vex
, EXx
}, 0 },
11121 /* VEX_W_0F383A_P_2 */
11122 { "vpminuw", { XM
, Vex
, EXx
}, 0 },
11125 /* VEX_W_0F383B_P_2 */
11126 { "vpminud", { XM
, Vex
, EXx
}, 0 },
11129 /* VEX_W_0F383C_P_2 */
11130 { "vpmaxsb", { XM
, Vex
, EXx
}, 0 },
11133 /* VEX_W_0F383D_P_2 */
11134 { "vpmaxsd", { XM
, Vex
, EXx
}, 0 },
11137 /* VEX_W_0F383E_P_2 */
11138 { "vpmaxuw", { XM
, Vex
, EXx
}, 0 },
11141 /* VEX_W_0F383F_P_2 */
11142 { "vpmaxud", { XM
, Vex
, EXx
}, 0 },
11145 /* VEX_W_0F3840_P_2 */
11146 { "vpmulld", { XM
, Vex
, EXx
}, 0 },
11149 /* VEX_W_0F3841_P_2 */
11150 { "vphminposuw", { XM
, EXx
}, 0 },
11153 /* VEX_W_0F3846_P_2 */
11154 { "vpsravd", { XM
, Vex
, EXx
}, 0 },
11157 /* VEX_W_0F3858_P_2 */
11158 { "vpbroadcastd", { XM
, EXxmm_md
}, 0 },
11161 /* VEX_W_0F3859_P_2 */
11162 { "vpbroadcastq", { XM
, EXxmm_mq
}, 0 },
11165 /* VEX_W_0F385A_P_2_M_0 */
11166 { "vbroadcasti128", { XM
, Mxmm
}, 0 },
11169 /* VEX_W_0F3878_P_2 */
11170 { "vpbroadcastb", { XM
, EXxmm_mb
}, 0 },
11173 /* VEX_W_0F3879_P_2 */
11174 { "vpbroadcastw", { XM
, EXxmm_mw
}, 0 },
11177 /* VEX_W_0F38DB_P_2 */
11178 { "vaesimc", { XM
, EXx
}, 0 },
11181 /* VEX_W_0F38DC_P_2 */
11182 { "vaesenc", { XM
, Vex128
, EXx
}, 0 },
11185 /* VEX_W_0F38DD_P_2 */
11186 { "vaesenclast", { XM
, Vex128
, EXx
}, 0 },
11189 /* VEX_W_0F38DE_P_2 */
11190 { "vaesdec", { XM
, Vex128
, EXx
}, 0 },
11193 /* VEX_W_0F38DF_P_2 */
11194 { "vaesdeclast", { XM
, Vex128
, EXx
}, 0 },
11197 /* VEX_W_0F3A00_P_2 */
11199 { "vpermq", { XM
, EXx
, Ib
}, 0 },
11202 /* VEX_W_0F3A01_P_2 */
11204 { "vpermpd", { XM
, EXx
, Ib
}, 0 },
11207 /* VEX_W_0F3A02_P_2 */
11208 { "vpblendd", { XM
, Vex
, EXx
, Ib
}, 0 },
11211 /* VEX_W_0F3A04_P_2 */
11212 { "vpermilps", { XM
, EXx
, Ib
}, 0 },
11215 /* VEX_W_0F3A05_P_2 */
11216 { "vpermilpd", { XM
, EXx
, Ib
}, 0 },
11219 /* VEX_W_0F3A06_P_2 */
11220 { "vperm2f128", { XM
, Vex256
, EXx
, Ib
}, 0 },
11223 /* VEX_W_0F3A08_P_2 */
11224 { "vroundps", { XM
, EXx
, Ib
}, 0 },
11227 /* VEX_W_0F3A09_P_2 */
11228 { "vroundpd", { XM
, EXx
, Ib
}, 0 },
11231 /* VEX_W_0F3A0A_P_2 */
11232 { "vroundss", { XMScalar
, VexScalar
, EXdScalar
, Ib
}, 0 },
11235 /* VEX_W_0F3A0B_P_2 */
11236 { "vroundsd", { XMScalar
, VexScalar
, EXqScalar
, Ib
}, 0 },
11239 /* VEX_W_0F3A0C_P_2 */
11240 { "vblendps", { XM
, Vex
, EXx
, Ib
}, 0 },
11243 /* VEX_W_0F3A0D_P_2 */
11244 { "vblendpd", { XM
, Vex
, EXx
, Ib
}, 0 },
11247 /* VEX_W_0F3A0E_P_2 */
11248 { "vpblendw", { XM
, Vex
, EXx
, Ib
}, 0 },
11251 /* VEX_W_0F3A0F_P_2 */
11252 { "vpalignr", { XM
, Vex
, EXx
, Ib
}, 0 },
11255 /* VEX_W_0F3A14_P_2 */
11256 { "vpextrb", { Edqb
, XM
, Ib
}, 0 },
11259 /* VEX_W_0F3A15_P_2 */
11260 { "vpextrw", { Edqw
, XM
, Ib
}, 0 },
11263 /* VEX_W_0F3A18_P_2 */
11264 { "vinsertf128", { XM
, Vex256
, EXxmm
, Ib
}, 0 },
11267 /* VEX_W_0F3A19_P_2 */
11268 { "vextractf128", { EXxmm
, XM
, Ib
}, 0 },
11271 /* VEX_W_0F3A20_P_2 */
11272 { "vpinsrb", { XM
, Vex128
, Edqb
, Ib
}, 0 },
11275 /* VEX_W_0F3A21_P_2 */
11276 { "vinsertps", { XM
, Vex128
, EXd
, Ib
}, 0 },
11279 /* VEX_W_0F3A30_P_2_LEN_0 */
11280 { MOD_TABLE (MOD_VEX_W_0_0F3A30_P_2_LEN_0
) },
11281 { MOD_TABLE (MOD_VEX_W_1_0F3A30_P_2_LEN_0
) },
11284 /* VEX_W_0F3A31_P_2_LEN_0 */
11285 { MOD_TABLE (MOD_VEX_W_0_0F3A31_P_2_LEN_0
) },
11286 { MOD_TABLE (MOD_VEX_W_1_0F3A31_P_2_LEN_0
) },
11289 /* VEX_W_0F3A32_P_2_LEN_0 */
11290 { MOD_TABLE (MOD_VEX_W_0_0F3A32_P_2_LEN_0
) },
11291 { MOD_TABLE (MOD_VEX_W_1_0F3A32_P_2_LEN_0
) },
11294 /* VEX_W_0F3A33_P_2_LEN_0 */
11295 { MOD_TABLE (MOD_VEX_W_0_0F3A33_P_2_LEN_0
) },
11296 { MOD_TABLE (MOD_VEX_W_1_0F3A33_P_2_LEN_0
) },
11299 /* VEX_W_0F3A38_P_2 */
11300 { "vinserti128", { XM
, Vex256
, EXxmm
, Ib
}, 0 },
11303 /* VEX_W_0F3A39_P_2 */
11304 { "vextracti128", { EXxmm
, XM
, Ib
}, 0 },
11307 /* VEX_W_0F3A40_P_2 */
11308 { "vdpps", { XM
, Vex
, EXx
, Ib
}, 0 },
11311 /* VEX_W_0F3A41_P_2 */
11312 { "vdppd", { XM
, Vex128
, EXx
, Ib
}, 0 },
11315 /* VEX_W_0F3A42_P_2 */
11316 { "vmpsadbw", { XM
, Vex
, EXx
, Ib
}, 0 },
11319 /* VEX_W_0F3A44_P_2 */
11320 { "vpclmulqdq", { XM
, Vex128
, EXx
, PCLMUL
}, 0 },
11323 /* VEX_W_0F3A46_P_2 */
11324 { "vperm2i128", { XM
, Vex256
, EXx
, Ib
}, 0 },
11327 /* VEX_W_0F3A48_P_2 */
11328 { "vpermil2ps", { XMVexW
, Vex
, EXVexImmW
, EXVexImmW
, EXVexImmW
}, 0 },
11329 { "vpermil2ps", { XMVexW
, Vex
, EXVexImmW
, EXVexImmW
, EXVexImmW
}, 0 },
11332 /* VEX_W_0F3A49_P_2 */
11333 { "vpermil2pd", { XMVexW
, Vex
, EXVexImmW
, EXVexImmW
, EXVexImmW
}, 0 },
11334 { "vpermil2pd", { XMVexW
, Vex
, EXVexImmW
, EXVexImmW
, EXVexImmW
}, 0 },
11337 /* VEX_W_0F3A4A_P_2 */
11338 { "vblendvps", { XM
, Vex
, EXx
, XMVexI4
}, 0 },
11341 /* VEX_W_0F3A4B_P_2 */
11342 { "vblendvpd", { XM
, Vex
, EXx
, XMVexI4
}, 0 },
11345 /* VEX_W_0F3A4C_P_2 */
11346 { "vpblendvb", { XM
, Vex
, EXx
, XMVexI4
}, 0 },
11349 /* VEX_W_0F3A60_P_2 */
11350 { "vpcmpestrm", { XM
, EXx
, Ib
}, 0 },
11353 /* VEX_W_0F3A61_P_2 */
11354 { "vpcmpestri", { XM
, EXx
, Ib
}, 0 },
11357 /* VEX_W_0F3A62_P_2 */
11358 { "vpcmpistrm", { XM
, EXx
, Ib
}, 0 },
11361 /* VEX_W_0F3A63_P_2 */
11362 { "vpcmpistri", { XM
, EXx
, Ib
}, 0 },
11365 /* VEX_W_0F3ADF_P_2 */
11366 { "vaeskeygenassist", { XM
, EXx
, Ib
}, 0 },
11368 #define NEED_VEX_W_TABLE
11369 #include "i386-dis-evex.h"
11370 #undef NEED_VEX_W_TABLE
11373 static const struct dis386 mod_table
[][2] = {
11376 { "leaS", { Gv
, M
}, 0 },
11381 { RM_TABLE (RM_C6_REG_7
) },
11386 { RM_TABLE (RM_C7_REG_7
) },
11390 { "Jcall^", { indirEp
}, 0 },
11394 { "Jjmp^", { indirEp
}, 0 },
11397 /* MOD_0F01_REG_0 */
11398 { X86_64_TABLE (X86_64_0F01_REG_0
) },
11399 { RM_TABLE (RM_0F01_REG_0
) },
11402 /* MOD_0F01_REG_1 */
11403 { X86_64_TABLE (X86_64_0F01_REG_1
) },
11404 { RM_TABLE (RM_0F01_REG_1
) },
11407 /* MOD_0F01_REG_2 */
11408 { X86_64_TABLE (X86_64_0F01_REG_2
) },
11409 { RM_TABLE (RM_0F01_REG_2
) },
11412 /* MOD_0F01_REG_3 */
11413 { X86_64_TABLE (X86_64_0F01_REG_3
) },
11414 { RM_TABLE (RM_0F01_REG_3
) },
11417 /* MOD_0F01_REG_5 */
11419 { RM_TABLE (RM_0F01_REG_5
) },
11422 /* MOD_0F01_REG_7 */
11423 { "invlpg", { Mb
}, 0 },
11424 { RM_TABLE (RM_0F01_REG_7
) },
11427 /* MOD_0F12_PREFIX_0 */
11428 { "movlps", { XM
, EXq
}, PREFIX_OPCODE
},
11429 { "movhlps", { XM
, EXq
}, PREFIX_OPCODE
},
11433 { "movlpX", { EXq
, XM
}, PREFIX_OPCODE
},
11436 /* MOD_0F16_PREFIX_0 */
11437 { "movhps", { XM
, EXq
}, 0 },
11438 { "movlhps", { XM
, EXq
}, 0 },
11442 { "movhpX", { EXq
, XM
}, PREFIX_OPCODE
},
11445 /* MOD_0F18_REG_0 */
11446 { "prefetchnta", { Mb
}, 0 },
11449 /* MOD_0F18_REG_1 */
11450 { "prefetcht0", { Mb
}, 0 },
11453 /* MOD_0F18_REG_2 */
11454 { "prefetcht1", { Mb
}, 0 },
11457 /* MOD_0F18_REG_3 */
11458 { "prefetcht2", { Mb
}, 0 },
11461 /* MOD_0F18_REG_4 */
11462 { "nop/reserved", { Mb
}, 0 },
11465 /* MOD_0F18_REG_5 */
11466 { "nop/reserved", { Mb
}, 0 },
11469 /* MOD_0F18_REG_6 */
11470 { "nop/reserved", { Mb
}, 0 },
11473 /* MOD_0F18_REG_7 */
11474 { "nop/reserved", { Mb
}, 0 },
11477 /* MOD_0F1A_PREFIX_0 */
11478 { "bndldx", { Gbnd
, Ev_bnd
}, 0 },
11479 { "nopQ", { Ev
}, 0 },
11482 /* MOD_0F1B_PREFIX_0 */
11483 { "bndstx", { Ev_bnd
, Gbnd
}, 0 },
11484 { "nopQ", { Ev
}, 0 },
11487 /* MOD_0F1B_PREFIX_1 */
11488 { "bndmk", { Gbnd
, Ev_bnd
}, 0 },
11489 { "nopQ", { Ev
}, 0 },
11494 { "movL", { Rd
, Td
}, 0 },
11499 { "movL", { Td
, Rd
}, 0 },
11502 /* MOD_0F2B_PREFIX_0 */
11503 {"movntps", { Mx
, XM
}, PREFIX_OPCODE
},
11506 /* MOD_0F2B_PREFIX_1 */
11507 {"movntss", { Md
, XM
}, PREFIX_OPCODE
},
11510 /* MOD_0F2B_PREFIX_2 */
11511 {"movntpd", { Mx
, XM
}, PREFIX_OPCODE
},
11514 /* MOD_0F2B_PREFIX_3 */
11515 {"movntsd", { Mq
, XM
}, PREFIX_OPCODE
},
11520 { "movmskpX", { Gdq
, XS
}, PREFIX_OPCODE
},
11523 /* MOD_0F71_REG_2 */
11525 { "psrlw", { MS
, Ib
}, 0 },
11528 /* MOD_0F71_REG_4 */
11530 { "psraw", { MS
, Ib
}, 0 },
11533 /* MOD_0F71_REG_6 */
11535 { "psllw", { MS
, Ib
}, 0 },
11538 /* MOD_0F72_REG_2 */
11540 { "psrld", { MS
, Ib
}, 0 },
11543 /* MOD_0F72_REG_4 */
11545 { "psrad", { MS
, Ib
}, 0 },
11548 /* MOD_0F72_REG_6 */
11550 { "pslld", { MS
, Ib
}, 0 },
11553 /* MOD_0F73_REG_2 */
11555 { "psrlq", { MS
, Ib
}, 0 },
11558 /* MOD_0F73_REG_3 */
11560 { PREFIX_TABLE (PREFIX_0F73_REG_3
) },
11563 /* MOD_0F73_REG_6 */
11565 { "psllq", { MS
, Ib
}, 0 },
11568 /* MOD_0F73_REG_7 */
11570 { PREFIX_TABLE (PREFIX_0F73_REG_7
) },
11573 /* MOD_0FAE_REG_0 */
11574 { "fxsave", { FXSAVE
}, 0 },
11575 { PREFIX_TABLE (PREFIX_0FAE_REG_0
) },
11578 /* MOD_0FAE_REG_1 */
11579 { "fxrstor", { FXSAVE
}, 0 },
11580 { PREFIX_TABLE (PREFIX_0FAE_REG_1
) },
11583 /* MOD_0FAE_REG_2 */
11584 { "ldmxcsr", { Md
}, 0 },
11585 { PREFIX_TABLE (PREFIX_0FAE_REG_2
) },
11588 /* MOD_0FAE_REG_3 */
11589 { "stmxcsr", { Md
}, 0 },
11590 { PREFIX_TABLE (PREFIX_0FAE_REG_3
) },
11593 /* MOD_0FAE_REG_4 */
11594 { PREFIX_TABLE (PREFIX_MOD_0_0FAE_REG_4
) },
11595 { PREFIX_TABLE (PREFIX_MOD_3_0FAE_REG_4
) },
11598 /* MOD_0FAE_REG_5 */
11599 { "xrstor", { FXSAVE
}, 0 },
11600 { RM_TABLE (RM_0FAE_REG_5
) },
11603 /* MOD_0FAE_REG_6 */
11604 { PREFIX_TABLE (PREFIX_0FAE_REG_6
) },
11605 { RM_TABLE (RM_0FAE_REG_6
) },
11608 /* MOD_0FAE_REG_7 */
11609 { PREFIX_TABLE (PREFIX_0FAE_REG_7
) },
11610 { RM_TABLE (RM_0FAE_REG_7
) },
11614 { "lssS", { Gv
, Mp
}, 0 },
11618 { "lfsS", { Gv
, Mp
}, 0 },
11622 { "lgsS", { Gv
, Mp
}, 0 },
11626 { PREFIX_TABLE (PREFIX_MOD_0_0FC3
) },
11629 /* MOD_0FC7_REG_3 */
11630 { "xrstors", { FXSAVE
}, 0 },
11633 /* MOD_0FC7_REG_4 */
11634 { "xsavec", { FXSAVE
}, 0 },
11637 /* MOD_0FC7_REG_5 */
11638 { "xsaves", { FXSAVE
}, 0 },
11641 /* MOD_0FC7_REG_6 */
11642 { PREFIX_TABLE (PREFIX_MOD_0_0FC7_REG_6
) },
11643 { PREFIX_TABLE (PREFIX_MOD_3_0FC7_REG_6
) }
11646 /* MOD_0FC7_REG_7 */
11647 { "vmptrst", { Mq
}, 0 },
11648 { PREFIX_TABLE (PREFIX_MOD_3_0FC7_REG_7
) }
11653 { "pmovmskb", { Gdq
, MS
}, 0 },
11656 /* MOD_0FE7_PREFIX_2 */
11657 { "movntdq", { Mx
, XM
}, 0 },
11660 /* MOD_0FF0_PREFIX_3 */
11661 { "lddqu", { XM
, M
}, 0 },
11664 /* MOD_0F382A_PREFIX_2 */
11665 { "movntdqa", { XM
, Mx
}, 0 },
11669 { "bound{S|}", { Gv
, Ma
}, 0 },
11670 { EVEX_TABLE (EVEX_0F
) },
11674 { "lesS", { Gv
, Mp
}, 0 },
11675 { VEX_C4_TABLE (VEX_0F
) },
11679 { "ldsS", { Gv
, Mp
}, 0 },
11680 { VEX_C5_TABLE (VEX_0F
) },
11683 /* MOD_VEX_0F12_PREFIX_0 */
11684 { VEX_LEN_TABLE (VEX_LEN_0F12_P_0_M_0
) },
11685 { VEX_LEN_TABLE (VEX_LEN_0F12_P_0_M_1
) },
11689 { VEX_LEN_TABLE (VEX_LEN_0F13_M_0
) },
11692 /* MOD_VEX_0F16_PREFIX_0 */
11693 { VEX_LEN_TABLE (VEX_LEN_0F16_P_0_M_0
) },
11694 { VEX_LEN_TABLE (VEX_LEN_0F16_P_0_M_1
) },
11698 { VEX_LEN_TABLE (VEX_LEN_0F17_M_0
) },
11702 { VEX_W_TABLE (VEX_W_0F2B_M_0
) },
11705 /* MOD_VEX_W_0_0F41_P_0_LEN_1 */
11707 { "kandw", { MaskG
, MaskVex
, MaskR
}, 0 },
11710 /* MOD_VEX_W_1_0F41_P_0_LEN_1 */
11712 { "kandq", { MaskG
, MaskVex
, MaskR
}, 0 },
11715 /* MOD_VEX_W_0_0F41_P_2_LEN_1 */
11717 { "kandb", { MaskG
, MaskVex
, MaskR
}, 0 },
11720 /* MOD_VEX_W_1_0F41_P_2_LEN_1 */
11722 { "kandd", { MaskG
, MaskVex
, MaskR
}, 0 },
11725 /* MOD_VEX_W_0_0F42_P_0_LEN_1 */
11727 { "kandnw", { MaskG
, MaskVex
, MaskR
}, 0 },
11730 /* MOD_VEX_W_1_0F42_P_0_LEN_1 */
11732 { "kandnq", { MaskG
, MaskVex
, MaskR
}, 0 },
11735 /* MOD_VEX_W_0_0F42_P_2_LEN_1 */
11737 { "kandnb", { MaskG
, MaskVex
, MaskR
}, 0 },
11740 /* MOD_VEX_W_1_0F42_P_2_LEN_1 */
11742 { "kandnd", { MaskG
, MaskVex
, MaskR
}, 0 },
11745 /* MOD_VEX_W_0_0F44_P_0_LEN_0 */
11747 { "knotw", { MaskG
, MaskR
}, 0 },
11750 /* MOD_VEX_W_1_0F44_P_0_LEN_0 */
11752 { "knotq", { MaskG
, MaskR
}, 0 },
11755 /* MOD_VEX_W_0_0F44_P_2_LEN_0 */
11757 { "knotb", { MaskG
, MaskR
}, 0 },
11760 /* MOD_VEX_W_1_0F44_P_2_LEN_0 */
11762 { "knotd", { MaskG
, MaskR
}, 0 },
11765 /* MOD_VEX_W_0_0F45_P_0_LEN_1 */
11767 { "korw", { MaskG
, MaskVex
, MaskR
}, 0 },
11770 /* MOD_VEX_W_1_0F45_P_0_LEN_1 */
11772 { "korq", { MaskG
, MaskVex
, MaskR
}, 0 },
11775 /* MOD_VEX_W_0_0F45_P_2_LEN_1 */
11777 { "korb", { MaskG
, MaskVex
, MaskR
}, 0 },
11780 /* MOD_VEX_W_1_0F45_P_2_LEN_1 */
11782 { "kord", { MaskG
, MaskVex
, MaskR
}, 0 },
11785 /* MOD_VEX_W_0_0F46_P_0_LEN_1 */
11787 { "kxnorw", { MaskG
, MaskVex
, MaskR
}, 0 },
11790 /* MOD_VEX_W_1_0F46_P_0_LEN_1 */
11792 { "kxnorq", { MaskG
, MaskVex
, MaskR
}, 0 },
11795 /* MOD_VEX_W_0_0F46_P_2_LEN_1 */
11797 { "kxnorb", { MaskG
, MaskVex
, MaskR
}, 0 },
11800 /* MOD_VEX_W_1_0F46_P_2_LEN_1 */
11802 { "kxnord", { MaskG
, MaskVex
, MaskR
}, 0 },
11805 /* MOD_VEX_W_0_0F47_P_0_LEN_1 */
11807 { "kxorw", { MaskG
, MaskVex
, MaskR
}, 0 },
11810 /* MOD_VEX_W_1_0F47_P_0_LEN_1 */
11812 { "kxorq", { MaskG
, MaskVex
, MaskR
}, 0 },
11815 /* MOD_VEX_W_0_0F47_P_2_LEN_1 */
11817 { "kxorb", { MaskG
, MaskVex
, MaskR
}, 0 },
11820 /* MOD_VEX_W_1_0F47_P_2_LEN_1 */
11822 { "kxord", { MaskG
, MaskVex
, MaskR
}, 0 },
11825 /* MOD_VEX_W_0_0F4A_P_0_LEN_1 */
11827 { "kaddw", { MaskG
, MaskVex
, MaskR
}, 0 },
11830 /* MOD_VEX_W_1_0F4A_P_0_LEN_1 */
11832 { "kaddq", { MaskG
, MaskVex
, MaskR
}, 0 },
11835 /* MOD_VEX_W_0_0F4A_P_2_LEN_1 */
11837 { "kaddb", { MaskG
, MaskVex
, MaskR
}, 0 },
11840 /* MOD_VEX_W_1_0F4A_P_2_LEN_1 */
11842 { "kaddd", { MaskG
, MaskVex
, MaskR
}, 0 },
11845 /* MOD_VEX_W_0_0F4B_P_0_LEN_1 */
11847 { "kunpckwd", { MaskG
, MaskVex
, MaskR
}, 0 },
11850 /* MOD_VEX_W_1_0F4B_P_0_LEN_1 */
11852 { "kunpckdq", { MaskG
, MaskVex
, MaskR
}, 0 },
11855 /* MOD_VEX_W_0_0F4B_P_2_LEN_1 */
11857 { "kunpckbw", { MaskG
, MaskVex
, MaskR
}, 0 },
11862 { VEX_W_TABLE (VEX_W_0F50_M_0
) },
11865 /* MOD_VEX_0F71_REG_2 */
11867 { PREFIX_TABLE (PREFIX_VEX_0F71_REG_2
) },
11870 /* MOD_VEX_0F71_REG_4 */
11872 { PREFIX_TABLE (PREFIX_VEX_0F71_REG_4
) },
11875 /* MOD_VEX_0F71_REG_6 */
11877 { PREFIX_TABLE (PREFIX_VEX_0F71_REG_6
) },
11880 /* MOD_VEX_0F72_REG_2 */
11882 { PREFIX_TABLE (PREFIX_VEX_0F72_REG_2
) },
11885 /* MOD_VEX_0F72_REG_4 */
11887 { PREFIX_TABLE (PREFIX_VEX_0F72_REG_4
) },
11890 /* MOD_VEX_0F72_REG_6 */
11892 { PREFIX_TABLE (PREFIX_VEX_0F72_REG_6
) },
11895 /* MOD_VEX_0F73_REG_2 */
11897 { PREFIX_TABLE (PREFIX_VEX_0F73_REG_2
) },
11900 /* MOD_VEX_0F73_REG_3 */
11902 { PREFIX_TABLE (PREFIX_VEX_0F73_REG_3
) },
11905 /* MOD_VEX_0F73_REG_6 */
11907 { PREFIX_TABLE (PREFIX_VEX_0F73_REG_6
) },
11910 /* MOD_VEX_0F73_REG_7 */
11912 { PREFIX_TABLE (PREFIX_VEX_0F73_REG_7
) },
11915 /* MOD_VEX_W_0_0F91_P_0_LEN_0 */
11916 { "kmovw", { Ew
, MaskG
}, 0 },
11920 /* MOD_VEX_W_0_0F91_P_0_LEN_0 */
11921 { "kmovq", { Eq
, MaskG
}, 0 },
11925 /* MOD_VEX_W_0_0F91_P_2_LEN_0 */
11926 { "kmovb", { Eb
, MaskG
}, 0 },
11930 /* MOD_VEX_W_0_0F91_P_2_LEN_0 */
11931 { "kmovd", { Ed
, MaskG
}, 0 },
11935 /* MOD_VEX_W_0_0F92_P_0_LEN_0 */
11937 { "kmovw", { MaskG
, Rdq
}, 0 },
11940 /* MOD_VEX_W_0_0F92_P_2_LEN_0 */
11942 { "kmovb", { MaskG
, Rdq
}, 0 },
11945 /* MOD_VEX_W_0_0F92_P_3_LEN_0 */
11947 { "kmovd", { MaskG
, Rdq
}, 0 },
11950 /* MOD_VEX_W_1_0F92_P_3_LEN_0 */
11952 { "kmovq", { MaskG
, Rdq
}, 0 },
11955 /* MOD_VEX_W_0_0F93_P_0_LEN_0 */
11957 { "kmovw", { Gdq
, MaskR
}, 0 },
11960 /* MOD_VEX_W_0_0F93_P_2_LEN_0 */
11962 { "kmovb", { Gdq
, MaskR
}, 0 },
11965 /* MOD_VEX_W_0_0F93_P_3_LEN_0 */
11967 { "kmovd", { Gdq
, MaskR
}, 0 },
11970 /* MOD_VEX_W_1_0F93_P_3_LEN_0 */
11972 { "kmovq", { Gdq
, MaskR
}, 0 },
11975 /* MOD_VEX_W_0_0F98_P_0_LEN_0 */
11977 { "kortestw", { MaskG
, MaskR
}, 0 },
11980 /* MOD_VEX_W_1_0F98_P_0_LEN_0 */
11982 { "kortestq", { MaskG
, MaskR
}, 0 },
11985 /* MOD_VEX_W_0_0F98_P_2_LEN_0 */
11987 { "kortestb", { MaskG
, MaskR
}, 0 },
11990 /* MOD_VEX_W_1_0F98_P_2_LEN_0 */
11992 { "kortestd", { MaskG
, MaskR
}, 0 },
11995 /* MOD_VEX_W_0_0F99_P_0_LEN_0 */
11997 { "ktestw", { MaskG
, MaskR
}, 0 },
12000 /* MOD_VEX_W_1_0F99_P_0_LEN_0 */
12002 { "ktestq", { MaskG
, MaskR
}, 0 },
12005 /* MOD_VEX_W_0_0F99_P_2_LEN_0 */
12007 { "ktestb", { MaskG
, MaskR
}, 0 },
12010 /* MOD_VEX_W_1_0F99_P_2_LEN_0 */
12012 { "ktestd", { MaskG
, MaskR
}, 0 },
12015 /* MOD_VEX_0FAE_REG_2 */
12016 { VEX_LEN_TABLE (VEX_LEN_0FAE_R_2_M_0
) },
12019 /* MOD_VEX_0FAE_REG_3 */
12020 { VEX_LEN_TABLE (VEX_LEN_0FAE_R_3_M_0
) },
12023 /* MOD_VEX_0FD7_PREFIX_2 */
12025 { VEX_W_TABLE (VEX_W_0FD7_P_2_M_1
) },
12028 /* MOD_VEX_0FE7_PREFIX_2 */
12029 { VEX_W_TABLE (VEX_W_0FE7_P_2_M_0
) },
12032 /* MOD_VEX_0FF0_PREFIX_3 */
12033 { VEX_W_TABLE (VEX_W_0FF0_P_3_M_0
) },
12036 /* MOD_VEX_0F381A_PREFIX_2 */
12037 { VEX_LEN_TABLE (VEX_LEN_0F381A_P_2_M_0
) },
12040 /* MOD_VEX_0F382A_PREFIX_2 */
12041 { VEX_W_TABLE (VEX_W_0F382A_P_2_M_0
) },
12044 /* MOD_VEX_0F382C_PREFIX_2 */
12045 { VEX_W_TABLE (VEX_W_0F382C_P_2_M_0
) },
12048 /* MOD_VEX_0F382D_PREFIX_2 */
12049 { VEX_W_TABLE (VEX_W_0F382D_P_2_M_0
) },
12052 /* MOD_VEX_0F382E_PREFIX_2 */
12053 { VEX_W_TABLE (VEX_W_0F382E_P_2_M_0
) },
12056 /* MOD_VEX_0F382F_PREFIX_2 */
12057 { VEX_W_TABLE (VEX_W_0F382F_P_2_M_0
) },
12060 /* MOD_VEX_0F385A_PREFIX_2 */
12061 { VEX_LEN_TABLE (VEX_LEN_0F385A_P_2_M_0
) },
12064 /* MOD_VEX_0F388C_PREFIX_2 */
12065 { "vpmaskmov%LW", { XM
, Vex
, Mx
}, 0 },
12068 /* MOD_VEX_0F388E_PREFIX_2 */
12069 { "vpmaskmov%LW", { Mx
, Vex
, XM
}, 0 },
12072 /* MOD_VEX_W_0_0F3A30_P_2_LEN_0 */
12074 { "kshiftrb", { MaskG
, MaskR
, Ib
}, 0 },
12077 /* MOD_VEX_W_1_0F3A30_P_2_LEN_0 */
12079 { "kshiftrw", { MaskG
, MaskR
, Ib
}, 0 },
12082 /* MOD_VEX_W_0_0F3A31_P_2_LEN_0 */
12084 { "kshiftrd", { MaskG
, MaskR
, Ib
}, 0 },
12087 /* MOD_VEX_W_1_0F3A31_P_2_LEN_0 */
12089 { "kshiftrq", { MaskG
, MaskR
, Ib
}, 0 },
12092 /* MOD_VEX_W_0_0F3A32_P_2_LEN_0 */
12094 { "kshiftlb", { MaskG
, MaskR
, Ib
}, 0 },
12097 /* MOD_VEX_W_1_0F3A32_P_2_LEN_0 */
12099 { "kshiftlw", { MaskG
, MaskR
, Ib
}, 0 },
12102 /* MOD_VEX_W_0_0F3A33_P_2_LEN_0 */
12104 { "kshiftld", { MaskG
, MaskR
, Ib
}, 0 },
12107 /* MOD_VEX_W_1_0F3A33_P_2_LEN_0 */
12109 { "kshiftlq", { MaskG
, MaskR
, Ib
}, 0 },
12111 #define NEED_MOD_TABLE
12112 #include "i386-dis-evex.h"
12113 #undef NEED_MOD_TABLE
12116 static const struct dis386 rm_table
[][8] = {
12119 { "xabort", { Skip_MODRM
, Ib
}, 0 },
12123 { "xbeginT", { Skip_MODRM
, Jv
}, 0 },
12126 /* RM_0F01_REG_0 */
12128 { "vmcall", { Skip_MODRM
}, 0 },
12129 { "vmlaunch", { Skip_MODRM
}, 0 },
12130 { "vmresume", { Skip_MODRM
}, 0 },
12131 { "vmxoff", { Skip_MODRM
}, 0 },
12134 /* RM_0F01_REG_1 */
12135 { "monitor", { { OP_Monitor
, 0 } }, 0 },
12136 { "mwait", { { OP_Mwait
, 0 } }, 0 },
12137 { "clac", { Skip_MODRM
}, 0 },
12138 { "stac", { Skip_MODRM
}, 0 },
12142 { "encls", { Skip_MODRM
}, 0 },
12145 /* RM_0F01_REG_2 */
12146 { "xgetbv", { Skip_MODRM
}, 0 },
12147 { "xsetbv", { Skip_MODRM
}, 0 },
12150 { "vmfunc", { Skip_MODRM
}, 0 },
12151 { "xend", { Skip_MODRM
}, 0 },
12152 { "xtest", { Skip_MODRM
}, 0 },
12153 { "enclu", { Skip_MODRM
}, 0 },
12156 /* RM_0F01_REG_3 */
12157 { "vmrun", { Skip_MODRM
}, 0 },
12158 { "vmmcall", { Skip_MODRM
}, 0 },
12159 { "vmload", { Skip_MODRM
}, 0 },
12160 { "vmsave", { Skip_MODRM
}, 0 },
12161 { "stgi", { Skip_MODRM
}, 0 },
12162 { "clgi", { Skip_MODRM
}, 0 },
12163 { "skinit", { Skip_MODRM
}, 0 },
12164 { "invlpga", { Skip_MODRM
}, 0 },
12167 /* RM_0F01_REG_5 */
12174 { "rdpkru", { Skip_MODRM
}, 0 },
12175 { "wrpkru", { Skip_MODRM
}, 0 },
12178 /* RM_0F01_REG_7 */
12179 { "swapgs", { Skip_MODRM
}, 0 },
12180 { "rdtscp", { Skip_MODRM
}, 0 },
12181 { "monitorx", { { OP_Monitor
, 0 } }, 0 },
12182 { "mwaitx", { { OP_Mwaitx
, 0 } }, 0 },
12183 { "clzero", { Skip_MODRM
}, 0 },
12186 /* RM_0FAE_REG_5 */
12187 { "lfence", { Skip_MODRM
}, 0 },
12190 /* RM_0FAE_REG_6 */
12191 { "mfence", { Skip_MODRM
}, 0 },
12194 /* RM_0FAE_REG_7 */
12195 { "sfence", { Skip_MODRM
}, 0 },
12200 #define INTERNAL_DISASSEMBLER_ERROR _("<internal disassembler error>")
12202 /* We use the high bit to indicate different name for the same
12204 #define REP_PREFIX (0xf3 | 0x100)
12205 #define XACQUIRE_PREFIX (0xf2 | 0x200)
12206 #define XRELEASE_PREFIX (0xf3 | 0x400)
12207 #define BND_PREFIX (0xf2 | 0x400)
12212 int newrex
, i
, length
;
12218 last_lock_prefix
= -1;
12219 last_repz_prefix
= -1;
12220 last_repnz_prefix
= -1;
12221 last_data_prefix
= -1;
12222 last_addr_prefix
= -1;
12223 last_rex_prefix
= -1;
12224 last_seg_prefix
= -1;
12226 active_seg_prefix
= 0;
12227 for (i
= 0; i
< (int) ARRAY_SIZE (all_prefixes
); i
++)
12228 all_prefixes
[i
] = 0;
12231 /* The maximum instruction length is 15bytes. */
12232 while (length
< MAX_CODE_LENGTH
- 1)
12234 FETCH_DATA (the_info
, codep
+ 1);
12238 /* REX prefixes family. */
12255 if (address_mode
== mode_64bit
)
12259 last_rex_prefix
= i
;
12262 prefixes
|= PREFIX_REPZ
;
12263 last_repz_prefix
= i
;
12266 prefixes
|= PREFIX_REPNZ
;
12267 last_repnz_prefix
= i
;
12270 prefixes
|= PREFIX_LOCK
;
12271 last_lock_prefix
= i
;
12274 prefixes
|= PREFIX_CS
;
12275 last_seg_prefix
= i
;
12276 active_seg_prefix
= PREFIX_CS
;
12279 prefixes
|= PREFIX_SS
;
12280 last_seg_prefix
= i
;
12281 active_seg_prefix
= PREFIX_SS
;
12284 prefixes
|= PREFIX_DS
;
12285 last_seg_prefix
= i
;
12286 active_seg_prefix
= PREFIX_DS
;
12289 prefixes
|= PREFIX_ES
;
12290 last_seg_prefix
= i
;
12291 active_seg_prefix
= PREFIX_ES
;
12294 prefixes
|= PREFIX_FS
;
12295 last_seg_prefix
= i
;
12296 active_seg_prefix
= PREFIX_FS
;
12299 prefixes
|= PREFIX_GS
;
12300 last_seg_prefix
= i
;
12301 active_seg_prefix
= PREFIX_GS
;
12304 prefixes
|= PREFIX_DATA
;
12305 last_data_prefix
= i
;
12308 prefixes
|= PREFIX_ADDR
;
12309 last_addr_prefix
= i
;
12312 /* fwait is really an instruction. If there are prefixes
12313 before the fwait, they belong to the fwait, *not* to the
12314 following instruction. */
12316 if (prefixes
|| rex
)
12318 prefixes
|= PREFIX_FWAIT
;
12320 /* This ensures that the previous REX prefixes are noticed
12321 as unused prefixes, as in the return case below. */
12325 prefixes
= PREFIX_FWAIT
;
12330 /* Rex is ignored when followed by another prefix. */
12336 if (*codep
!= FWAIT_OPCODE
)
12337 all_prefixes
[i
++] = *codep
;
12345 /* Return the name of the prefix byte PREF, or NULL if PREF is not a
12348 static const char *
12349 prefix_name (int pref
, int sizeflag
)
12351 static const char *rexes
[16] =
12354 "rex.B", /* 0x41 */
12355 "rex.X", /* 0x42 */
12356 "rex.XB", /* 0x43 */
12357 "rex.R", /* 0x44 */
12358 "rex.RB", /* 0x45 */
12359 "rex.RX", /* 0x46 */
12360 "rex.RXB", /* 0x47 */
12361 "rex.W", /* 0x48 */
12362 "rex.WB", /* 0x49 */
12363 "rex.WX", /* 0x4a */
12364 "rex.WXB", /* 0x4b */
12365 "rex.WR", /* 0x4c */
12366 "rex.WRB", /* 0x4d */
12367 "rex.WRX", /* 0x4e */
12368 "rex.WRXB", /* 0x4f */
12373 /* REX prefixes family. */
12390 return rexes
[pref
- 0x40];
12410 return (sizeflag
& DFLAG
) ? "data16" : "data32";
12412 if (address_mode
== mode_64bit
)
12413 return (sizeflag
& AFLAG
) ? "addr32" : "addr64";
12415 return (sizeflag
& AFLAG
) ? "addr16" : "addr32";
12420 case XACQUIRE_PREFIX
:
12422 case XRELEASE_PREFIX
:
12431 static char op_out
[MAX_OPERANDS
][100];
12432 static int op_ad
, op_index
[MAX_OPERANDS
];
12433 static int two_source_ops
;
12434 static bfd_vma op_address
[MAX_OPERANDS
];
12435 static bfd_vma op_riprel
[MAX_OPERANDS
];
12436 static bfd_vma start_pc
;
12439 * On the 386's of 1988, the maximum length of an instruction is 15 bytes.
12440 * (see topic "Redundant prefixes" in the "Differences from 8086"
12441 * section of the "Virtual 8086 Mode" chapter.)
12442 * 'pc' should be the address of this instruction, it will
12443 * be used to print the target address if this is a relative jump or call
12444 * The function returns the length of this instruction in bytes.
12447 static char intel_syntax
;
12448 static char intel_mnemonic
= !SYSV386_COMPAT
;
12449 static char open_char
;
12450 static char close_char
;
12451 static char separator_char
;
12452 static char scale_char
;
12460 static enum x86_64_isa isa64
;
12462 /* Here for backwards compatibility. When gdb stops using
12463 print_insn_i386_att and print_insn_i386_intel these functions can
12464 disappear, and print_insn_i386 be merged into print_insn. */
12466 print_insn_i386_att (bfd_vma pc
, disassemble_info
*info
)
12470 return print_insn (pc
, info
);
12474 print_insn_i386_intel (bfd_vma pc
, disassemble_info
*info
)
12478 return print_insn (pc
, info
);
12482 print_insn_i386 (bfd_vma pc
, disassemble_info
*info
)
12486 return print_insn (pc
, info
);
12490 print_i386_disassembler_options (FILE *stream
)
12492 fprintf (stream
, _("\n\
12493 The following i386/x86-64 specific disassembler options are supported for use\n\
12494 with the -M switch (multiple options should be separated by commas):\n"));
12496 fprintf (stream
, _(" x86-64 Disassemble in 64bit mode\n"));
12497 fprintf (stream
, _(" i386 Disassemble in 32bit mode\n"));
12498 fprintf (stream
, _(" i8086 Disassemble in 16bit mode\n"));
12499 fprintf (stream
, _(" att Display instruction in AT&T syntax\n"));
12500 fprintf (stream
, _(" intel Display instruction in Intel syntax\n"));
12501 fprintf (stream
, _(" att-mnemonic\n"
12502 " Display instruction in AT&T mnemonic\n"));
12503 fprintf (stream
, _(" intel-mnemonic\n"
12504 " Display instruction in Intel mnemonic\n"));
12505 fprintf (stream
, _(" addr64 Assume 64bit address size\n"));
12506 fprintf (stream
, _(" addr32 Assume 32bit address size\n"));
12507 fprintf (stream
, _(" addr16 Assume 16bit address size\n"));
12508 fprintf (stream
, _(" data32 Assume 32bit data size\n"));
12509 fprintf (stream
, _(" data16 Assume 16bit data size\n"));
12510 fprintf (stream
, _(" suffix Always display instruction suffix in AT&T syntax\n"));
12511 fprintf (stream
, _(" amd64 Display instruction in AMD64 ISA\n"));
12512 fprintf (stream
, _(" intel64 Display instruction in Intel64 ISA\n"));
12516 static const struct dis386 bad_opcode
= { "(bad)", { XX
}, 0 };
12518 /* Get a pointer to struct dis386 with a valid name. */
12520 static const struct dis386
*
12521 get_valid_dis386 (const struct dis386
*dp
, disassemble_info
*info
)
12523 int vindex
, vex_table_index
;
12525 if (dp
->name
!= NULL
)
12528 switch (dp
->op
[0].bytemode
)
12530 case USE_REG_TABLE
:
12531 dp
= ®_table
[dp
->op
[1].bytemode
][modrm
.reg
];
12534 case USE_MOD_TABLE
:
12535 vindex
= modrm
.mod
== 0x3 ? 1 : 0;
12536 dp
= &mod_table
[dp
->op
[1].bytemode
][vindex
];
12540 dp
= &rm_table
[dp
->op
[1].bytemode
][modrm
.rm
];
12543 case USE_PREFIX_TABLE
:
12546 /* The prefix in VEX is implicit. */
12547 switch (vex
.prefix
)
12552 case REPE_PREFIX_OPCODE
:
12555 case DATA_PREFIX_OPCODE
:
12558 case REPNE_PREFIX_OPCODE
:
12568 int last_prefix
= -1;
12571 /* We check PREFIX_REPNZ and PREFIX_REPZ before PREFIX_DATA.
12572 When there are multiple PREFIX_REPNZ and PREFIX_REPZ, the
12574 if ((prefixes
& (PREFIX_REPZ
| PREFIX_REPNZ
)) != 0)
12576 if (last_repz_prefix
> last_repnz_prefix
)
12579 prefix
= PREFIX_REPZ
;
12580 last_prefix
= last_repz_prefix
;
12585 prefix
= PREFIX_REPNZ
;
12586 last_prefix
= last_repnz_prefix
;
12589 /* Check if prefix should be ignored. */
12590 if ((((prefix_table
[dp
->op
[1].bytemode
][vindex
].prefix_requirement
12591 & PREFIX_IGNORED
) >> PREFIX_IGNORED_SHIFT
)
12596 if (vindex
== 0 && (prefixes
& PREFIX_DATA
) != 0)
12599 prefix
= PREFIX_DATA
;
12600 last_prefix
= last_data_prefix
;
12605 used_prefixes
|= prefix
;
12606 all_prefixes
[last_prefix
] = 0;
12609 dp
= &prefix_table
[dp
->op
[1].bytemode
][vindex
];
12612 case USE_X86_64_TABLE
:
12613 vindex
= address_mode
== mode_64bit
? 1 : 0;
12614 dp
= &x86_64_table
[dp
->op
[1].bytemode
][vindex
];
12617 case USE_3BYTE_TABLE
:
12618 FETCH_DATA (info
, codep
+ 2);
12620 dp
= &three_byte_table
[dp
->op
[1].bytemode
][vindex
];
12622 modrm
.mod
= (*codep
>> 6) & 3;
12623 modrm
.reg
= (*codep
>> 3) & 7;
12624 modrm
.rm
= *codep
& 7;
12627 case USE_VEX_LEN_TABLE
:
12631 switch (vex
.length
)
12644 dp
= &vex_len_table
[dp
->op
[1].bytemode
][vindex
];
12647 case USE_XOP_8F_TABLE
:
12648 FETCH_DATA (info
, codep
+ 3);
12649 /* All bits in the REX prefix are ignored. */
12651 rex
= ~(*codep
>> 5) & 0x7;
12653 /* VEX_TABLE_INDEX is the mmmmm part of the XOP byte 1 "RCB.mmmmm". */
12654 switch ((*codep
& 0x1f))
12660 vex_table_index
= XOP_08
;
12663 vex_table_index
= XOP_09
;
12666 vex_table_index
= XOP_0A
;
12670 vex
.w
= *codep
& 0x80;
12671 if (vex
.w
&& address_mode
== mode_64bit
)
12674 vex
.register_specifier
= (~(*codep
>> 3)) & 0xf;
12675 if (address_mode
!= mode_64bit
12676 && vex
.register_specifier
> 0x7)
12682 vex
.length
= (*codep
& 0x4) ? 256 : 128;
12683 switch ((*codep
& 0x3))
12689 vex
.prefix
= DATA_PREFIX_OPCODE
;
12692 vex
.prefix
= REPE_PREFIX_OPCODE
;
12695 vex
.prefix
= REPNE_PREFIX_OPCODE
;
12702 dp
= &xop_table
[vex_table_index
][vindex
];
12705 FETCH_DATA (info
, codep
+ 1);
12706 modrm
.mod
= (*codep
>> 6) & 3;
12707 modrm
.reg
= (*codep
>> 3) & 7;
12708 modrm
.rm
= *codep
& 7;
12711 case USE_VEX_C4_TABLE
:
12713 FETCH_DATA (info
, codep
+ 3);
12714 /* All bits in the REX prefix are ignored. */
12716 rex
= ~(*codep
>> 5) & 0x7;
12717 switch ((*codep
& 0x1f))
12723 vex_table_index
= VEX_0F
;
12726 vex_table_index
= VEX_0F38
;
12729 vex_table_index
= VEX_0F3A
;
12733 vex
.w
= *codep
& 0x80;
12734 if (address_mode
== mode_64bit
)
12738 vex
.register_specifier
= (~(*codep
>> 3)) & 0xf;
12742 /* For the 3-byte VEX prefix in 32-bit mode, the REX_B bit
12743 is ignored, other REX bits are 0 and the highest bit in
12744 VEX.vvvv is also ignored. */
12746 vex
.register_specifier
= (~(*codep
>> 3)) & 0x7;
12748 vex
.length
= (*codep
& 0x4) ? 256 : 128;
12749 switch ((*codep
& 0x3))
12755 vex
.prefix
= DATA_PREFIX_OPCODE
;
12758 vex
.prefix
= REPE_PREFIX_OPCODE
;
12761 vex
.prefix
= REPNE_PREFIX_OPCODE
;
12768 dp
= &vex_table
[vex_table_index
][vindex
];
12770 /* There is no MODRM byte for VEX [82|77]. */
12771 if (vindex
!= 0x77 && vindex
!= 0x82)
12773 FETCH_DATA (info
, codep
+ 1);
12774 modrm
.mod
= (*codep
>> 6) & 3;
12775 modrm
.reg
= (*codep
>> 3) & 7;
12776 modrm
.rm
= *codep
& 7;
12780 case USE_VEX_C5_TABLE
:
12782 FETCH_DATA (info
, codep
+ 2);
12783 /* All bits in the REX prefix are ignored. */
12785 rex
= (*codep
& 0x80) ? 0 : REX_R
;
12787 /* For the 2-byte VEX prefix in 32-bit mode, the highest bit in
12789 vex
.register_specifier
= (~(*codep
>> 3)) & 0xf;
12791 vex
.length
= (*codep
& 0x4) ? 256 : 128;
12792 switch ((*codep
& 0x3))
12798 vex
.prefix
= DATA_PREFIX_OPCODE
;
12801 vex
.prefix
= REPE_PREFIX_OPCODE
;
12804 vex
.prefix
= REPNE_PREFIX_OPCODE
;
12811 dp
= &vex_table
[dp
->op
[1].bytemode
][vindex
];
12813 /* There is no MODRM byte for VEX [82|77]. */
12814 if (vindex
!= 0x77 && vindex
!= 0x82)
12816 FETCH_DATA (info
, codep
+ 1);
12817 modrm
.mod
= (*codep
>> 6) & 3;
12818 modrm
.reg
= (*codep
>> 3) & 7;
12819 modrm
.rm
= *codep
& 7;
12823 case USE_VEX_W_TABLE
:
12827 dp
= &vex_w_table
[dp
->op
[1].bytemode
][vex
.w
? 1 : 0];
12830 case USE_EVEX_TABLE
:
12831 two_source_ops
= 0;
12834 FETCH_DATA (info
, codep
+ 4);
12835 /* All bits in the REX prefix are ignored. */
12837 /* The first byte after 0x62. */
12838 rex
= ~(*codep
>> 5) & 0x7;
12839 vex
.r
= *codep
& 0x10;
12840 switch ((*codep
& 0xf))
12843 return &bad_opcode
;
12845 vex_table_index
= EVEX_0F
;
12848 vex_table_index
= EVEX_0F38
;
12851 vex_table_index
= EVEX_0F3A
;
12855 /* The second byte after 0x62. */
12857 vex
.w
= *codep
& 0x80;
12858 if (vex
.w
&& address_mode
== mode_64bit
)
12861 vex
.register_specifier
= (~(*codep
>> 3)) & 0xf;
12862 if (address_mode
!= mode_64bit
)
12864 /* In 16/32-bit mode silently ignore following bits. */
12868 vex
.register_specifier
&= 0x7;
12872 if (!(*codep
& 0x4))
12873 return &bad_opcode
;
12875 switch ((*codep
& 0x3))
12881 vex
.prefix
= DATA_PREFIX_OPCODE
;
12884 vex
.prefix
= REPE_PREFIX_OPCODE
;
12887 vex
.prefix
= REPNE_PREFIX_OPCODE
;
12891 /* The third byte after 0x62. */
12894 /* Remember the static rounding bits. */
12895 vex
.ll
= (*codep
>> 5) & 3;
12896 vex
.b
= (*codep
& 0x10) != 0;
12898 vex
.v
= *codep
& 0x8;
12899 vex
.mask_register_specifier
= *codep
& 0x7;
12900 vex
.zeroing
= *codep
& 0x80;
12906 dp
= &evex_table
[vex_table_index
][vindex
];
12908 FETCH_DATA (info
, codep
+ 1);
12909 modrm
.mod
= (*codep
>> 6) & 3;
12910 modrm
.reg
= (*codep
>> 3) & 7;
12911 modrm
.rm
= *codep
& 7;
12913 /* Set vector length. */
12914 if (modrm
.mod
== 3 && vex
.b
)
12930 return &bad_opcode
;
12943 if (dp
->name
!= NULL
)
12946 return get_valid_dis386 (dp
, info
);
12950 get_sib (disassemble_info
*info
, int sizeflag
)
12952 /* If modrm.mod == 3, operand must be register. */
12954 && ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
12958 FETCH_DATA (info
, codep
+ 2);
12959 sib
.index
= (codep
[1] >> 3) & 7;
12960 sib
.scale
= (codep
[1] >> 6) & 3;
12961 sib
.base
= codep
[1] & 7;
12966 print_insn (bfd_vma pc
, disassemble_info
*info
)
12968 const struct dis386
*dp
;
12970 char *op_txt
[MAX_OPERANDS
];
12972 int sizeflag
, orig_sizeflag
;
12974 struct dis_private priv
;
12977 priv
.orig_sizeflag
= AFLAG
| DFLAG
;
12978 if ((info
->mach
& bfd_mach_i386_i386
) != 0)
12979 address_mode
= mode_32bit
;
12980 else if (info
->mach
== bfd_mach_i386_i8086
)
12982 address_mode
= mode_16bit
;
12983 priv
.orig_sizeflag
= 0;
12986 address_mode
= mode_64bit
;
12988 if (intel_syntax
== (char) -1)
12989 intel_syntax
= (info
->mach
& bfd_mach_i386_intel_syntax
) != 0;
12991 for (p
= info
->disassembler_options
; p
!= NULL
; )
12993 if (CONST_STRNEQ (p
, "amd64"))
12995 else if (CONST_STRNEQ (p
, "intel64"))
12997 else if (CONST_STRNEQ (p
, "x86-64"))
12999 address_mode
= mode_64bit
;
13000 priv
.orig_sizeflag
= AFLAG
| DFLAG
;
13002 else if (CONST_STRNEQ (p
, "i386"))
13004 address_mode
= mode_32bit
;
13005 priv
.orig_sizeflag
= AFLAG
| DFLAG
;
13007 else if (CONST_STRNEQ (p
, "i8086"))
13009 address_mode
= mode_16bit
;
13010 priv
.orig_sizeflag
= 0;
13012 else if (CONST_STRNEQ (p
, "intel"))
13015 if (CONST_STRNEQ (p
+ 5, "-mnemonic"))
13016 intel_mnemonic
= 1;
13018 else if (CONST_STRNEQ (p
, "att"))
13021 if (CONST_STRNEQ (p
+ 3, "-mnemonic"))
13022 intel_mnemonic
= 0;
13024 else if (CONST_STRNEQ (p
, "addr"))
13026 if (address_mode
== mode_64bit
)
13028 if (p
[4] == '3' && p
[5] == '2')
13029 priv
.orig_sizeflag
&= ~AFLAG
;
13030 else if (p
[4] == '6' && p
[5] == '4')
13031 priv
.orig_sizeflag
|= AFLAG
;
13035 if (p
[4] == '1' && p
[5] == '6')
13036 priv
.orig_sizeflag
&= ~AFLAG
;
13037 else if (p
[4] == '3' && p
[5] == '2')
13038 priv
.orig_sizeflag
|= AFLAG
;
13041 else if (CONST_STRNEQ (p
, "data"))
13043 if (p
[4] == '1' && p
[5] == '6')
13044 priv
.orig_sizeflag
&= ~DFLAG
;
13045 else if (p
[4] == '3' && p
[5] == '2')
13046 priv
.orig_sizeflag
|= DFLAG
;
13048 else if (CONST_STRNEQ (p
, "suffix"))
13049 priv
.orig_sizeflag
|= SUFFIX_ALWAYS
;
13051 p
= strchr (p
, ',');
13056 if (address_mode
== mode_64bit
&& sizeof (bfd_vma
) < 8)
13058 (*info
->fprintf_func
) (info
->stream
,
13059 _("64-bit address is disabled"));
13065 names64
= intel_names64
;
13066 names32
= intel_names32
;
13067 names16
= intel_names16
;
13068 names8
= intel_names8
;
13069 names8rex
= intel_names8rex
;
13070 names_seg
= intel_names_seg
;
13071 names_mm
= intel_names_mm
;
13072 names_bnd
= intel_names_bnd
;
13073 names_xmm
= intel_names_xmm
;
13074 names_ymm
= intel_names_ymm
;
13075 names_zmm
= intel_names_zmm
;
13076 index64
= intel_index64
;
13077 index32
= intel_index32
;
13078 names_mask
= intel_names_mask
;
13079 index16
= intel_index16
;
13082 separator_char
= '+';
13087 names64
= att_names64
;
13088 names32
= att_names32
;
13089 names16
= att_names16
;
13090 names8
= att_names8
;
13091 names8rex
= att_names8rex
;
13092 names_seg
= att_names_seg
;
13093 names_mm
= att_names_mm
;
13094 names_bnd
= att_names_bnd
;
13095 names_xmm
= att_names_xmm
;
13096 names_ymm
= att_names_ymm
;
13097 names_zmm
= att_names_zmm
;
13098 index64
= att_index64
;
13099 index32
= att_index32
;
13100 names_mask
= att_names_mask
;
13101 index16
= att_index16
;
13104 separator_char
= ',';
13108 /* The output looks better if we put 7 bytes on a line, since that
13109 puts most long word instructions on a single line. Use 8 bytes
13111 if ((info
->mach
& bfd_mach_l1om
) != 0)
13112 info
->bytes_per_line
= 8;
13114 info
->bytes_per_line
= 7;
13116 info
->private_data
= &priv
;
13117 priv
.max_fetched
= priv
.the_buffer
;
13118 priv
.insn_start
= pc
;
13121 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
13129 start_codep
= priv
.the_buffer
;
13130 codep
= priv
.the_buffer
;
13132 if (OPCODES_SIGSETJMP (priv
.bailout
) != 0)
13136 /* Getting here means we tried for data but didn't get it. That
13137 means we have an incomplete instruction of some sort. Just
13138 print the first byte as a prefix or a .byte pseudo-op. */
13139 if (codep
> priv
.the_buffer
)
13141 name
= prefix_name (priv
.the_buffer
[0], priv
.orig_sizeflag
);
13143 (*info
->fprintf_func
) (info
->stream
, "%s", name
);
13146 /* Just print the first byte as a .byte instruction. */
13147 (*info
->fprintf_func
) (info
->stream
, ".byte 0x%x",
13148 (unsigned int) priv
.the_buffer
[0]);
13158 sizeflag
= priv
.orig_sizeflag
;
13160 if (!ckprefix () || rex_used
)
13162 /* Too many prefixes or unused REX prefixes. */
13164 i
< (int) ARRAY_SIZE (all_prefixes
) && all_prefixes
[i
];
13166 (*info
->fprintf_func
) (info
->stream
, "%s%s",
13168 prefix_name (all_prefixes
[i
], sizeflag
));
13172 insn_codep
= codep
;
13174 FETCH_DATA (info
, codep
+ 1);
13175 two_source_ops
= (*codep
== 0x62) || (*codep
== 0xc8);
13177 if (((prefixes
& PREFIX_FWAIT
)
13178 && ((*codep
< 0xd8) || (*codep
> 0xdf))))
13180 /* Handle prefixes before fwait. */
13181 for (i
= 0; i
< fwait_prefix
&& all_prefixes
[i
];
13183 (*info
->fprintf_func
) (info
->stream
, "%s ",
13184 prefix_name (all_prefixes
[i
], sizeflag
));
13185 (*info
->fprintf_func
) (info
->stream
, "fwait");
13189 if (*codep
== 0x0f)
13191 unsigned char threebyte
;
13194 FETCH_DATA (info
, codep
+ 1);
13195 threebyte
= *codep
;
13196 dp
= &dis386_twobyte
[threebyte
];
13197 need_modrm
= twobyte_has_modrm
[*codep
];
13202 dp
= &dis386
[*codep
];
13203 need_modrm
= onebyte_has_modrm
[*codep
];
13207 /* Save sizeflag for printing the extra prefixes later before updating
13208 it for mnemonic and operand processing. The prefix names depend
13209 only on the address mode. */
13210 orig_sizeflag
= sizeflag
;
13211 if (prefixes
& PREFIX_ADDR
)
13213 if ((prefixes
& PREFIX_DATA
))
13219 FETCH_DATA (info
, codep
+ 1);
13220 modrm
.mod
= (*codep
>> 6) & 3;
13221 modrm
.reg
= (*codep
>> 3) & 7;
13222 modrm
.rm
= *codep
& 7;
13230 if (dp
->name
== NULL
&& dp
->op
[0].bytemode
== FLOATCODE
)
13232 get_sib (info
, sizeflag
);
13233 dofloat (sizeflag
);
13237 dp
= get_valid_dis386 (dp
, info
);
13238 if (dp
!= NULL
&& putop (dp
->name
, sizeflag
) == 0)
13240 get_sib (info
, sizeflag
);
13241 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
13244 op_ad
= MAX_OPERANDS
- 1 - i
;
13246 (*dp
->op
[i
].rtn
) (dp
->op
[i
].bytemode
, sizeflag
);
13247 /* For EVEX instruction after the last operand masking
13248 should be printed. */
13249 if (i
== 0 && vex
.evex
)
13251 /* Don't print {%k0}. */
13252 if (vex
.mask_register_specifier
)
13255 oappend (names_mask
[vex
.mask_register_specifier
]);
13265 /* Check if the REX prefix is used. */
13266 if (rex_ignored
== 0 && (rex
^ rex_used
) == 0 && last_rex_prefix
>= 0)
13267 all_prefixes
[last_rex_prefix
] = 0;
13269 /* Check if the SEG prefix is used. */
13270 if ((prefixes
& (PREFIX_CS
| PREFIX_SS
| PREFIX_DS
| PREFIX_ES
13271 | PREFIX_FS
| PREFIX_GS
)) != 0
13272 && (used_prefixes
& active_seg_prefix
) != 0)
13273 all_prefixes
[last_seg_prefix
] = 0;
13275 /* Check if the ADDR prefix is used. */
13276 if ((prefixes
& PREFIX_ADDR
) != 0
13277 && (used_prefixes
& PREFIX_ADDR
) != 0)
13278 all_prefixes
[last_addr_prefix
] = 0;
13280 /* Check if the DATA prefix is used. */
13281 if ((prefixes
& PREFIX_DATA
) != 0
13282 && (used_prefixes
& PREFIX_DATA
) != 0)
13283 all_prefixes
[last_data_prefix
] = 0;
13285 /* Print the extra prefixes. */
13287 for (i
= 0; i
< (int) ARRAY_SIZE (all_prefixes
); i
++)
13288 if (all_prefixes
[i
])
13291 name
= prefix_name (all_prefixes
[i
], orig_sizeflag
);
13294 prefix_length
+= strlen (name
) + 1;
13295 (*info
->fprintf_func
) (info
->stream
, "%s ", name
);
13298 /* If the mandatory PREFIX_REPZ/PREFIX_REPNZ/PREFIX_DATA prefix is
13299 unused, opcode is invalid. Since the PREFIX_DATA prefix may be
13300 used by putop and MMX/SSE operand and may be overriden by the
13301 PREFIX_REPZ/PREFIX_REPNZ fix, we check the PREFIX_DATA prefix
13303 if (dp
->prefix_requirement
== PREFIX_OPCODE
13304 && dp
!= &bad_opcode
13306 & (PREFIX_REPZ
| PREFIX_REPNZ
)) != 0
13308 & (PREFIX_REPZ
| PREFIX_REPNZ
)) == 0)
13310 & (PREFIX_REPZ
| PREFIX_REPNZ
| PREFIX_DATA
))
13312 && (used_prefixes
& PREFIX_DATA
) == 0))))
13314 (*info
->fprintf_func
) (info
->stream
, "(bad)");
13315 return end_codep
- priv
.the_buffer
;
13318 /* Check maximum code length. */
13319 if ((codep
- start_codep
) > MAX_CODE_LENGTH
)
13321 (*info
->fprintf_func
) (info
->stream
, "(bad)");
13322 return MAX_CODE_LENGTH
;
13325 obufp
= mnemonicendp
;
13326 for (i
= strlen (obuf
) + prefix_length
; i
< 6; i
++)
13329 (*info
->fprintf_func
) (info
->stream
, "%s", obuf
);
13331 /* The enter and bound instructions are printed with operands in the same
13332 order as the intel book; everything else is printed in reverse order. */
13333 if (intel_syntax
|| two_source_ops
)
13337 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
13338 op_txt
[i
] = op_out
[i
];
13340 if (intel_syntax
&& dp
&& dp
->op
[2].rtn
== OP_Rounding
13341 && dp
->op
[3].rtn
== OP_E
&& dp
->op
[4].rtn
== NULL
)
13343 op_txt
[2] = op_out
[3];
13344 op_txt
[3] = op_out
[2];
13347 for (i
= 0; i
< (MAX_OPERANDS
>> 1); ++i
)
13349 op_ad
= op_index
[i
];
13350 op_index
[i
] = op_index
[MAX_OPERANDS
- 1 - i
];
13351 op_index
[MAX_OPERANDS
- 1 - i
] = op_ad
;
13352 riprel
= op_riprel
[i
];
13353 op_riprel
[i
] = op_riprel
[MAX_OPERANDS
- 1 - i
];
13354 op_riprel
[MAX_OPERANDS
- 1 - i
] = riprel
;
13359 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
13360 op_txt
[MAX_OPERANDS
- 1 - i
] = op_out
[i
];
13364 for (i
= 0; i
< MAX_OPERANDS
; ++i
)
13368 (*info
->fprintf_func
) (info
->stream
, ",");
13369 if (op_index
[i
] != -1 && !op_riprel
[i
])
13370 (*info
->print_address_func
) ((bfd_vma
) op_address
[op_index
[i
]], info
);
13372 (*info
->fprintf_func
) (info
->stream
, "%s", op_txt
[i
]);
13376 for (i
= 0; i
< MAX_OPERANDS
; i
++)
13377 if (op_index
[i
] != -1 && op_riprel
[i
])
13379 (*info
->fprintf_func
) (info
->stream
, " # ");
13380 (*info
->print_address_func
) ((bfd_vma
) (start_pc
+ (codep
- start_codep
)
13381 + op_address
[op_index
[i
]]), info
);
13384 return codep
- priv
.the_buffer
;
13387 static const char *float_mem
[] = {
13462 static const unsigned char float_mem_mode
[] = {
13537 #define ST { OP_ST, 0 }
13538 #define STi { OP_STi, 0 }
13540 #define FGRPd9_2 NULL, { { NULL, 1 } }, 0
13541 #define FGRPd9_4 NULL, { { NULL, 2 } }, 0
13542 #define FGRPd9_5 NULL, { { NULL, 3 } }, 0
13543 #define FGRPd9_6 NULL, { { NULL, 4 } }, 0
13544 #define FGRPd9_7 NULL, { { NULL, 5 } }, 0
13545 #define FGRPda_5 NULL, { { NULL, 6 } }, 0
13546 #define FGRPdb_4 NULL, { { NULL, 7 } }, 0
13547 #define FGRPde_3 NULL, { { NULL, 8 } }, 0
13548 #define FGRPdf_4 NULL, { { NULL, 9 } }, 0
13550 static const struct dis386 float_reg
[][8] = {
13553 { "fadd", { ST
, STi
}, 0 },
13554 { "fmul", { ST
, STi
}, 0 },
13555 { "fcom", { STi
}, 0 },
13556 { "fcomp", { STi
}, 0 },
13557 { "fsub", { ST
, STi
}, 0 },
13558 { "fsubr", { ST
, STi
}, 0 },
13559 { "fdiv", { ST
, STi
}, 0 },
13560 { "fdivr", { ST
, STi
}, 0 },
13564 { "fld", { STi
}, 0 },
13565 { "fxch", { STi
}, 0 },
13575 { "fcmovb", { ST
, STi
}, 0 },
13576 { "fcmove", { ST
, STi
}, 0 },
13577 { "fcmovbe",{ ST
, STi
}, 0 },
13578 { "fcmovu", { ST
, STi
}, 0 },
13586 { "fcmovnb",{ ST
, STi
}, 0 },
13587 { "fcmovne",{ ST
, STi
}, 0 },
13588 { "fcmovnbe",{ ST
, STi
}, 0 },
13589 { "fcmovnu",{ ST
, STi
}, 0 },
13591 { "fucomi", { ST
, STi
}, 0 },
13592 { "fcomi", { ST
, STi
}, 0 },
13597 { "fadd", { STi
, ST
}, 0 },
13598 { "fmul", { STi
, ST
}, 0 },
13601 { "fsub!M", { STi
, ST
}, 0 },
13602 { "fsubM", { STi
, ST
}, 0 },
13603 { "fdiv!M", { STi
, ST
}, 0 },
13604 { "fdivM", { STi
, ST
}, 0 },
13608 { "ffree", { STi
}, 0 },
13610 { "fst", { STi
}, 0 },
13611 { "fstp", { STi
}, 0 },
13612 { "fucom", { STi
}, 0 },
13613 { "fucomp", { STi
}, 0 },
13619 { "faddp", { STi
, ST
}, 0 },
13620 { "fmulp", { STi
, ST
}, 0 },
13623 { "fsub!Mp", { STi
, ST
}, 0 },
13624 { "fsubMp", { STi
, ST
}, 0 },
13625 { "fdiv!Mp", { STi
, ST
}, 0 },
13626 { "fdivMp", { STi
, ST
}, 0 },
13630 { "ffreep", { STi
}, 0 },
13635 { "fucomip", { ST
, STi
}, 0 },
13636 { "fcomip", { ST
, STi
}, 0 },
13641 static char *fgrps
[][8] = {
13644 "(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
13649 "fnop","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
13654 "fchs","fabs","(bad)","(bad)","ftst","fxam","(bad)","(bad)",
13659 "fld1","fldl2t","fldl2e","fldpi","fldlg2","fldln2","fldz","(bad)",
13664 "f2xm1","fyl2x","fptan","fpatan","fxtract","fprem1","fdecstp","fincstp",
13669 "fprem","fyl2xp1","fsqrt","fsincos","frndint","fscale","fsin","fcos",
13674 "(bad)","fucompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
13679 "fNeni(8087 only)","fNdisi(8087 only)","fNclex","fNinit",
13680 "fNsetpm(287 only)","frstpm(287 only)","(bad)","(bad)",
13685 "(bad)","fcompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
13690 "fNstsw","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)",
13695 swap_operand (void)
13697 mnemonicendp
[0] = '.';
13698 mnemonicendp
[1] = 's';
13703 OP_Skip_MODRM (int bytemode ATTRIBUTE_UNUSED
,
13704 int sizeflag ATTRIBUTE_UNUSED
)
13706 /* Skip mod/rm byte. */
13712 dofloat (int sizeflag
)
13714 const struct dis386
*dp
;
13715 unsigned char floatop
;
13717 floatop
= codep
[-1];
13719 if (modrm
.mod
!= 3)
13721 int fp_indx
= (floatop
- 0xd8) * 8 + modrm
.reg
;
13723 putop (float_mem
[fp_indx
], sizeflag
);
13726 OP_E (float_mem_mode
[fp_indx
], sizeflag
);
13729 /* Skip mod/rm byte. */
13733 dp
= &float_reg
[floatop
- 0xd8][modrm
.reg
];
13734 if (dp
->name
== NULL
)
13736 putop (fgrps
[dp
->op
[0].bytemode
][modrm
.rm
], sizeflag
);
13738 /* Instruction fnstsw is only one with strange arg. */
13739 if (floatop
== 0xdf && codep
[-1] == 0xe0)
13740 strcpy (op_out
[0], names16
[0]);
13744 putop (dp
->name
, sizeflag
);
13749 (*dp
->op
[0].rtn
) (dp
->op
[0].bytemode
, sizeflag
);
13754 (*dp
->op
[1].rtn
) (dp
->op
[1].bytemode
, sizeflag
);
13758 /* Like oappend (below), but S is a string starting with '%'.
13759 In Intel syntax, the '%' is elided. */
13761 oappend_maybe_intel (const char *s
)
13763 oappend (s
+ intel_syntax
);
13767 OP_ST (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
13769 oappend_maybe_intel ("%st");
13773 OP_STi (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
13775 sprintf (scratchbuf
, "%%st(%d)", modrm
.rm
);
13776 oappend_maybe_intel (scratchbuf
);
13779 /* Capital letters in template are macros. */
13781 putop (const char *in_template
, int sizeflag
)
13786 unsigned int l
= 0, len
= 1;
13789 #define SAVE_LAST(c) \
13790 if (l < len && l < sizeof (last)) \
13795 for (p
= in_template
; *p
; p
++)
13811 while (*++p
!= '|')
13812 if (*p
== '}' || *p
== '\0')
13815 /* Fall through. */
13820 while (*++p
!= '}')
13831 if (modrm
.mod
!= 3 || (sizeflag
& SUFFIX_ALWAYS
))
13835 if (l
== 0 && len
== 1)
13840 if (sizeflag
& SUFFIX_ALWAYS
)
13853 if (address_mode
== mode_64bit
13854 && !(prefixes
& PREFIX_ADDR
))
13865 if (intel_syntax
&& !alt
)
13867 if ((prefixes
& PREFIX_DATA
) || (sizeflag
& SUFFIX_ALWAYS
))
13869 if (sizeflag
& DFLAG
)
13870 *obufp
++ = intel_syntax
? 'd' : 'l';
13872 *obufp
++ = intel_syntax
? 'w' : 's';
13873 used_prefixes
|= (prefixes
& PREFIX_DATA
);
13877 if (intel_syntax
|| !(sizeflag
& SUFFIX_ALWAYS
))
13880 if (modrm
.mod
== 3)
13886 if (sizeflag
& DFLAG
)
13887 *obufp
++ = intel_syntax
? 'd' : 'l';
13890 used_prefixes
|= (prefixes
& PREFIX_DATA
);
13896 case 'E': /* For jcxz/jecxz */
13897 if (address_mode
== mode_64bit
)
13899 if (sizeflag
& AFLAG
)
13905 if (sizeflag
& AFLAG
)
13907 used_prefixes
|= (prefixes
& PREFIX_ADDR
);
13912 if ((prefixes
& PREFIX_ADDR
) || (sizeflag
& SUFFIX_ALWAYS
))
13914 if (sizeflag
& AFLAG
)
13915 *obufp
++ = address_mode
== mode_64bit
? 'q' : 'l';
13917 *obufp
++ = address_mode
== mode_64bit
? 'l' : 'w';
13918 used_prefixes
|= (prefixes
& PREFIX_ADDR
);
13922 if (intel_syntax
|| (obufp
[-1] != 's' && !(sizeflag
& SUFFIX_ALWAYS
)))
13924 if ((rex
& REX_W
) || (sizeflag
& DFLAG
))
13928 if (!(rex
& REX_W
))
13929 used_prefixes
|= (prefixes
& PREFIX_DATA
);
13934 if ((prefixes
& (PREFIX_CS
| PREFIX_DS
)) == PREFIX_CS
13935 || (prefixes
& (PREFIX_CS
| PREFIX_DS
)) == PREFIX_DS
)
13937 used_prefixes
|= prefixes
& (PREFIX_CS
| PREFIX_DS
);
13940 if (prefixes
& PREFIX_DS
)
13959 if (l
!= 0 || len
!= 1)
13961 if (l
!= 1 || len
!= 2 || last
[0] != 'X')
13966 if (!need_vex
|| !vex
.evex
)
13969 || ((modrm
.mod
== 3 || vex
.b
) && !(sizeflag
& SUFFIX_ALWAYS
)))
13971 switch (vex
.length
)
13989 if (address_mode
== mode_64bit
&& (sizeflag
& SUFFIX_ALWAYS
))
13994 /* Fall through. */
13997 if (l
!= 0 || len
!= 1)
14005 if (sizeflag
& SUFFIX_ALWAYS
)
14009 if (intel_mnemonic
!= cond
)
14013 if ((prefixes
& PREFIX_FWAIT
) == 0)
14016 used_prefixes
|= PREFIX_FWAIT
;
14022 else if (intel_syntax
&& (sizeflag
& DFLAG
))
14026 if (!(rex
& REX_W
))
14027 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14031 && address_mode
== mode_64bit
14032 && isa64
== intel64
)
14037 /* Fall through. */
14040 && address_mode
== mode_64bit
14041 && ((sizeflag
& DFLAG
) || (rex
& REX_W
)))
14046 /* Fall through. */
14049 if (l
== 0 && len
== 1)
14054 if ((rex
& REX_W
) == 0
14055 && (prefixes
& PREFIX_DATA
))
14057 if ((sizeflag
& DFLAG
) == 0)
14059 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14063 if ((prefixes
& PREFIX_DATA
)
14065 || (sizeflag
& SUFFIX_ALWAYS
))
14072 if (sizeflag
& DFLAG
)
14076 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14082 if (l
!= 1 || len
!= 2 || last
[0] != 'L')
14088 if ((prefixes
& PREFIX_DATA
)
14090 || (sizeflag
& SUFFIX_ALWAYS
))
14097 if (sizeflag
& DFLAG
)
14098 *obufp
++ = intel_syntax
? 'd' : 'l';
14101 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14109 if (address_mode
== mode_64bit
14110 && ((sizeflag
& DFLAG
) || (rex
& REX_W
)))
14112 if (modrm
.mod
!= 3 || (sizeflag
& SUFFIX_ALWAYS
))
14116 /* Fall through. */
14119 if (l
== 0 && len
== 1)
14122 if (intel_syntax
&& !alt
)
14125 if (modrm
.mod
!= 3 || (sizeflag
& SUFFIX_ALWAYS
))
14131 if (sizeflag
& DFLAG
)
14132 *obufp
++ = intel_syntax
? 'd' : 'l';
14135 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14141 if (l
!= 1 || len
!= 2 || last
[0] != 'L')
14147 || (modrm
.mod
== 3 && !(sizeflag
& SUFFIX_ALWAYS
)))
14162 else if (sizeflag
& DFLAG
)
14171 if (intel_syntax
&& !p
[1]
14172 && ((rex
& REX_W
) || (sizeflag
& DFLAG
)))
14174 if (!(rex
& REX_W
))
14175 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14178 if (l
== 0 && len
== 1)
14182 if (address_mode
== mode_64bit
14183 && ((sizeflag
& DFLAG
) || (rex
& REX_W
)))
14185 if (sizeflag
& SUFFIX_ALWAYS
)
14207 /* Fall through. */
14210 if (l
== 0 && len
== 1)
14215 if (sizeflag
& SUFFIX_ALWAYS
)
14221 if (sizeflag
& DFLAG
)
14225 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14239 if (address_mode
== mode_64bit
14240 && !(prefixes
& PREFIX_ADDR
))
14251 if (l
!= 0 || len
!= 1)
14256 if (need_vex
&& vex
.prefix
)
14258 if (vex
.prefix
== DATA_PREFIX_OPCODE
)
14265 if (prefixes
& PREFIX_DATA
)
14269 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14273 if (l
== 0 && len
== 1)
14275 if (intel_syntax
|| !(sizeflag
& SUFFIX_ALWAYS
))
14286 if (l
!= 1 || len
!= 2 || last
[0] != 'X')
14294 || ((modrm
.mod
== 3 || vex
.b
) && !(sizeflag
& SUFFIX_ALWAYS
)))
14296 switch (vex
.length
)
14312 if (l
== 0 && len
== 1)
14314 /* operand size flag for cwtl, cbtw */
14323 else if (sizeflag
& DFLAG
)
14327 if (!(rex
& REX_W
))
14328 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14335 && last
[0] != 'L'))
14342 if (last
[0] == 'X')
14343 *obufp
++ = vex
.w
? 'd': 's';
14345 *obufp
++ = vex
.w
? 'q': 'd';
14351 if ((prefixes
& PREFIX_DATA
) || (sizeflag
& SUFFIX_ALWAYS
))
14353 if (sizeflag
& DFLAG
)
14357 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14363 if (address_mode
== mode_64bit
14364 && (isa64
== intel64
14365 || ((sizeflag
& DFLAG
) || (rex
& REX_W
))))
14367 else if ((prefixes
& PREFIX_DATA
))
14369 if (!(sizeflag
& DFLAG
))
14371 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14378 mnemonicendp
= obufp
;
14383 oappend (const char *s
)
14385 obufp
= stpcpy (obufp
, s
);
14391 /* Only print the active segment register. */
14392 if (!active_seg_prefix
)
14395 used_prefixes
|= active_seg_prefix
;
14396 switch (active_seg_prefix
)
14399 oappend_maybe_intel ("%cs:");
14402 oappend_maybe_intel ("%ds:");
14405 oappend_maybe_intel ("%ss:");
14408 oappend_maybe_intel ("%es:");
14411 oappend_maybe_intel ("%fs:");
14414 oappend_maybe_intel ("%gs:");
14422 OP_indirE (int bytemode
, int sizeflag
)
14426 OP_E (bytemode
, sizeflag
);
14430 print_operand_value (char *buf
, int hex
, bfd_vma disp
)
14432 if (address_mode
== mode_64bit
)
14440 sprintf_vma (tmp
, disp
);
14441 for (i
= 0; tmp
[i
] == '0' && tmp
[i
+ 1]; i
++);
14442 strcpy (buf
+ 2, tmp
+ i
);
14446 bfd_signed_vma v
= disp
;
14453 /* Check for possible overflow on 0x8000000000000000. */
14456 strcpy (buf
, "9223372036854775808");
14470 tmp
[28 - i
] = (v
% 10) + '0';
14474 strcpy (buf
, tmp
+ 29 - i
);
14480 sprintf (buf
, "0x%x", (unsigned int) disp
);
14482 sprintf (buf
, "%d", (int) disp
);
14486 /* Put DISP in BUF as signed hex number. */
14489 print_displacement (char *buf
, bfd_vma disp
)
14491 bfd_signed_vma val
= disp
;
14500 /* Check for possible overflow. */
14503 switch (address_mode
)
14506 strcpy (buf
+ j
, "0x8000000000000000");
14509 strcpy (buf
+ j
, "0x80000000");
14512 strcpy (buf
+ j
, "0x8000");
14522 sprintf_vma (tmp
, (bfd_vma
) val
);
14523 for (i
= 0; tmp
[i
] == '0'; i
++)
14525 if (tmp
[i
] == '\0')
14527 strcpy (buf
+ j
, tmp
+ i
);
14531 intel_operand_size (int bytemode
, int sizeflag
)
14535 && (bytemode
== x_mode
14536 || bytemode
== evex_half_bcst_xmmq_mode
))
14539 oappend ("QWORD PTR ");
14541 oappend ("DWORD PTR ");
14550 oappend ("BYTE PTR ");
14555 case dqw_swap_mode
:
14556 oappend ("WORD PTR ");
14559 if (address_mode
== mode_64bit
&& isa64
== intel64
)
14561 oappend ("QWORD PTR ");
14564 /* Fall through. */
14566 if (address_mode
== mode_64bit
&& ((sizeflag
& DFLAG
) || (rex
& REX_W
)))
14568 oappend ("QWORD PTR ");
14571 /* Fall through. */
14577 oappend ("QWORD PTR ");
14580 if ((sizeflag
& DFLAG
) || bytemode
== dq_mode
)
14581 oappend ("DWORD PTR ");
14583 oappend ("WORD PTR ");
14584 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14588 if ((rex
& REX_W
) || (sizeflag
& DFLAG
))
14590 oappend ("WORD PTR ");
14591 if (!(rex
& REX_W
))
14592 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14595 if (sizeflag
& DFLAG
)
14596 oappend ("QWORD PTR ");
14598 oappend ("DWORD PTR ");
14599 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14602 case d_scalar_mode
:
14603 case d_scalar_swap_mode
:
14606 oappend ("DWORD PTR ");
14609 case q_scalar_mode
:
14610 case q_scalar_swap_mode
:
14612 oappend ("QWORD PTR ");
14615 if (address_mode
== mode_64bit
)
14616 oappend ("QWORD PTR ");
14618 oappend ("DWORD PTR ");
14621 if (sizeflag
& DFLAG
)
14622 oappend ("FWORD PTR ");
14624 oappend ("DWORD PTR ");
14625 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14628 oappend ("TBYTE PTR ");
14632 case evex_x_gscat_mode
:
14633 case evex_x_nobcst_mode
:
14636 switch (vex
.length
)
14639 oappend ("XMMWORD PTR ");
14642 oappend ("YMMWORD PTR ");
14645 oappend ("ZMMWORD PTR ");
14652 oappend ("XMMWORD PTR ");
14655 oappend ("XMMWORD PTR ");
14658 oappend ("YMMWORD PTR ");
14661 case evex_half_bcst_xmmq_mode
:
14665 switch (vex
.length
)
14668 oappend ("QWORD PTR ");
14671 oappend ("XMMWORD PTR ");
14674 oappend ("YMMWORD PTR ");
14684 switch (vex
.length
)
14689 oappend ("BYTE PTR ");
14699 switch (vex
.length
)
14704 oappend ("WORD PTR ");
14714 switch (vex
.length
)
14719 oappend ("DWORD PTR ");
14729 switch (vex
.length
)
14734 oappend ("QWORD PTR ");
14744 switch (vex
.length
)
14747 oappend ("WORD PTR ");
14750 oappend ("DWORD PTR ");
14753 oappend ("QWORD PTR ");
14763 switch (vex
.length
)
14766 oappend ("DWORD PTR ");
14769 oappend ("QWORD PTR ");
14772 oappend ("XMMWORD PTR ");
14782 switch (vex
.length
)
14785 oappend ("QWORD PTR ");
14788 oappend ("YMMWORD PTR ");
14791 oappend ("ZMMWORD PTR ");
14801 switch (vex
.length
)
14805 oappend ("XMMWORD PTR ");
14812 oappend ("OWORD PTR ");
14815 case vex_w_dq_mode
:
14816 case vex_scalar_w_dq_mode
:
14821 oappend ("QWORD PTR ");
14823 oappend ("DWORD PTR ");
14825 case vex_vsib_d_w_dq_mode
:
14826 case vex_vsib_q_w_dq_mode
:
14833 oappend ("QWORD PTR ");
14835 oappend ("DWORD PTR ");
14839 switch (vex
.length
)
14842 oappend ("XMMWORD PTR ");
14845 oappend ("YMMWORD PTR ");
14848 oappend ("ZMMWORD PTR ");
14855 case vex_vsib_q_w_d_mode
:
14856 case vex_vsib_d_w_d_mode
:
14857 if (!need_vex
|| !vex
.evex
)
14860 switch (vex
.length
)
14863 oappend ("QWORD PTR ");
14866 oappend ("XMMWORD PTR ");
14869 oappend ("YMMWORD PTR ");
14877 if (!need_vex
|| vex
.length
!= 128)
14880 oappend ("DWORD PTR ");
14882 oappend ("BYTE PTR ");
14888 oappend ("QWORD PTR ");
14890 oappend ("WORD PTR ");
14899 OP_E_register (int bytemode
, int sizeflag
)
14901 int reg
= modrm
.rm
;
14902 const char **names
;
14908 if ((sizeflag
& SUFFIX_ALWAYS
)
14909 && (bytemode
== b_swap_mode
14910 || bytemode
== v_swap_mode
14911 || bytemode
== dqw_swap_mode
))
14937 names
= address_mode
== mode_64bit
? names64
: names32
;
14943 if (address_mode
== mode_64bit
&& isa64
== intel64
)
14948 /* Fall through. */
14950 if (address_mode
== mode_64bit
&& ((sizeflag
& DFLAG
) || (rex
& REX_W
)))
14956 /* Fall through. */
14963 case dqw_swap_mode
:
14969 if ((sizeflag
& DFLAG
)
14970 || (bytemode
!= v_mode
14971 && bytemode
!= v_swap_mode
))
14975 used_prefixes
|= (prefixes
& PREFIX_DATA
);
14985 names
= names_mask
;
14990 oappend (INTERNAL_DISASSEMBLER_ERROR
);
14993 oappend (names
[reg
]);
14997 OP_E_memory (int bytemode
, int sizeflag
)
15000 int add
= (rex
& REX_B
) ? 8 : 0;
15006 /* In EVEX, if operand doesn't allow broadcast, vex.b should be 0. */
15008 && bytemode
!= x_mode
15009 && bytemode
!= xmmq_mode
15010 && bytemode
!= evex_half_bcst_xmmq_mode
)
15019 case dqw_swap_mode
:
15026 case vex_vsib_d_w_dq_mode
:
15027 case vex_vsib_d_w_d_mode
:
15028 case vex_vsib_q_w_dq_mode
:
15029 case vex_vsib_q_w_d_mode
:
15030 case evex_x_gscat_mode
:
15032 shift
= vex
.w
? 3 : 2;
15035 case evex_half_bcst_xmmq_mode
:
15039 shift
= vex
.w
? 3 : 2;
15042 /* Fall through. */
15046 case evex_x_nobcst_mode
:
15048 switch (vex
.length
)
15071 case q_scalar_mode
:
15073 case q_scalar_swap_mode
:
15079 case d_scalar_mode
:
15081 case d_scalar_swap_mode
:
15093 /* Make necessary corrections to shift for modes that need it.
15094 For these modes we currently have shift 4, 5 or 6 depending on
15095 vex.length (it corresponds to xmmword, ymmword or zmmword
15096 operand). We might want to make it 3, 4 or 5 (e.g. for
15097 xmmq_mode). In case of broadcast enabled the corrections
15098 aren't needed, as element size is always 32 or 64 bits. */
15100 && (bytemode
== xmmq_mode
15101 || bytemode
== evex_half_bcst_xmmq_mode
))
15103 else if (bytemode
== xmmqd_mode
)
15105 else if (bytemode
== xmmdw_mode
)
15107 else if (bytemode
== ymmq_mode
&& vex
.length
== 128)
15115 intel_operand_size (bytemode
, sizeflag
);
15118 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
15120 /* 32/64 bit address mode */
15129 int addr32flag
= !((sizeflag
& AFLAG
)
15130 || bytemode
== v_bnd_mode
15131 || bytemode
== bnd_mode
);
15132 const char **indexes64
= names64
;
15133 const char **indexes32
= names32
;
15143 vindex
= sib
.index
;
15149 case vex_vsib_d_w_dq_mode
:
15150 case vex_vsib_d_w_d_mode
:
15151 case vex_vsib_q_w_dq_mode
:
15152 case vex_vsib_q_w_d_mode
:
15162 switch (vex
.length
)
15165 indexes64
= indexes32
= names_xmm
;
15169 || bytemode
== vex_vsib_q_w_dq_mode
15170 || bytemode
== vex_vsib_q_w_d_mode
)
15171 indexes64
= indexes32
= names_ymm
;
15173 indexes64
= indexes32
= names_xmm
;
15177 || bytemode
== vex_vsib_q_w_dq_mode
15178 || bytemode
== vex_vsib_q_w_d_mode
)
15179 indexes64
= indexes32
= names_zmm
;
15181 indexes64
= indexes32
= names_ymm
;
15188 haveindex
= vindex
!= 4;
15195 rbase
= base
+ add
;
15203 if (address_mode
== mode_64bit
&& !havesib
)
15209 FETCH_DATA (the_info
, codep
+ 1);
15211 if ((disp
& 0x80) != 0)
15213 if (vex
.evex
&& shift
> 0)
15221 /* In 32bit mode, we need index register to tell [offset] from
15222 [eiz*1 + offset]. */
15223 needindex
= (havesib
15226 && address_mode
== mode_32bit
);
15227 havedisp
= (havebase
15229 || (havesib
&& (haveindex
|| scale
!= 0)));
15232 if (modrm
.mod
!= 0 || base
== 5)
15234 if (havedisp
|| riprel
)
15235 print_displacement (scratchbuf
, disp
);
15237 print_operand_value (scratchbuf
, 1, disp
);
15238 oappend (scratchbuf
);
15242 oappend (!addr32flag
? "(%rip)" : "(%eip)");
15246 if ((havebase
|| haveindex
|| riprel
)
15247 && (bytemode
!= v_bnd_mode
)
15248 && (bytemode
!= bnd_mode
))
15249 used_prefixes
|= PREFIX_ADDR
;
15251 if (havedisp
|| (intel_syntax
&& riprel
))
15253 *obufp
++ = open_char
;
15254 if (intel_syntax
&& riprel
)
15257 oappend (!addr32flag
? "rip" : "eip");
15261 oappend (address_mode
== mode_64bit
&& !addr32flag
15262 ? names64
[rbase
] : names32
[rbase
]);
15265 /* ESP/RSP won't allow index. If base isn't ESP/RSP,
15266 print index to tell base + index from base. */
15270 || (havebase
&& base
!= ESP_REG_NUM
))
15272 if (!intel_syntax
|| havebase
)
15274 *obufp
++ = separator_char
;
15278 oappend (address_mode
== mode_64bit
&& !addr32flag
15279 ? indexes64
[vindex
] : indexes32
[vindex
]);
15281 oappend (address_mode
== mode_64bit
&& !addr32flag
15282 ? index64
: index32
);
15284 *obufp
++ = scale_char
;
15286 sprintf (scratchbuf
, "%d", 1 << scale
);
15287 oappend (scratchbuf
);
15291 && (disp
|| modrm
.mod
!= 0 || base
== 5))
15293 if (!havedisp
|| (bfd_signed_vma
) disp
>= 0)
15298 else if (modrm
.mod
!= 1 && disp
!= -disp
)
15302 disp
= - (bfd_signed_vma
) disp
;
15306 print_displacement (scratchbuf
, disp
);
15308 print_operand_value (scratchbuf
, 1, disp
);
15309 oappend (scratchbuf
);
15312 *obufp
++ = close_char
;
15315 else if (intel_syntax
)
15317 if (modrm
.mod
!= 0 || base
== 5)
15319 if (!active_seg_prefix
)
15321 oappend (names_seg
[ds_reg
- es_reg
]);
15324 print_operand_value (scratchbuf
, 1, disp
);
15325 oappend (scratchbuf
);
15331 /* 16 bit address mode */
15332 used_prefixes
|= prefixes
& PREFIX_ADDR
;
15339 if ((disp
& 0x8000) != 0)
15344 FETCH_DATA (the_info
, codep
+ 1);
15346 if ((disp
& 0x80) != 0)
15351 if ((disp
& 0x8000) != 0)
15357 if (modrm
.mod
!= 0 || modrm
.rm
== 6)
15359 print_displacement (scratchbuf
, disp
);
15360 oappend (scratchbuf
);
15363 if (modrm
.mod
!= 0 || modrm
.rm
!= 6)
15365 *obufp
++ = open_char
;
15367 oappend (index16
[modrm
.rm
]);
15369 && (disp
|| modrm
.mod
!= 0 || modrm
.rm
== 6))
15371 if ((bfd_signed_vma
) disp
>= 0)
15376 else if (modrm
.mod
!= 1)
15380 disp
= - (bfd_signed_vma
) disp
;
15383 print_displacement (scratchbuf
, disp
);
15384 oappend (scratchbuf
);
15387 *obufp
++ = close_char
;
15390 else if (intel_syntax
)
15392 if (!active_seg_prefix
)
15394 oappend (names_seg
[ds_reg
- es_reg
]);
15397 print_operand_value (scratchbuf
, 1, disp
& 0xffff);
15398 oappend (scratchbuf
);
15401 if (vex
.evex
&& vex
.b
15402 && (bytemode
== x_mode
15403 || bytemode
== xmmq_mode
15404 || bytemode
== evex_half_bcst_xmmq_mode
))
15407 || bytemode
== xmmq_mode
15408 || bytemode
== evex_half_bcst_xmmq_mode
)
15410 switch (vex
.length
)
15413 oappend ("{1to2}");
15416 oappend ("{1to4}");
15419 oappend ("{1to8}");
15427 switch (vex
.length
)
15430 oappend ("{1to4}");
15433 oappend ("{1to8}");
15436 oappend ("{1to16}");
15446 OP_E (int bytemode
, int sizeflag
)
15448 /* Skip mod/rm byte. */
15452 if (modrm
.mod
== 3)
15453 OP_E_register (bytemode
, sizeflag
);
15455 OP_E_memory (bytemode
, sizeflag
);
15459 OP_G (int bytemode
, int sizeflag
)
15470 oappend (names8rex
[modrm
.reg
+ add
]);
15472 oappend (names8
[modrm
.reg
+ add
]);
15475 oappend (names16
[modrm
.reg
+ add
]);
15480 oappend (names32
[modrm
.reg
+ add
]);
15483 oappend (names64
[modrm
.reg
+ add
]);
15486 oappend (names_bnd
[modrm
.reg
]);
15493 case dqw_swap_mode
:
15496 oappend (names64
[modrm
.reg
+ add
]);
15499 if ((sizeflag
& DFLAG
) || bytemode
!= v_mode
)
15500 oappend (names32
[modrm
.reg
+ add
]);
15502 oappend (names16
[modrm
.reg
+ add
]);
15503 used_prefixes
|= (prefixes
& PREFIX_DATA
);
15507 if (address_mode
== mode_64bit
)
15508 oappend (names64
[modrm
.reg
+ add
]);
15510 oappend (names32
[modrm
.reg
+ add
]);
15514 if ((modrm
.reg
+ add
) > 0x7)
15519 oappend (names_mask
[modrm
.reg
+ add
]);
15522 oappend (INTERNAL_DISASSEMBLER_ERROR
);
15535 FETCH_DATA (the_info
, codep
+ 8);
15536 a
= *codep
++ & 0xff;
15537 a
|= (*codep
++ & 0xff) << 8;
15538 a
|= (*codep
++ & 0xff) << 16;
15539 a
|= (*codep
++ & 0xffu
) << 24;
15540 b
= *codep
++ & 0xff;
15541 b
|= (*codep
++ & 0xff) << 8;
15542 b
|= (*codep
++ & 0xff) << 16;
15543 b
|= (*codep
++ & 0xffu
) << 24;
15544 x
= a
+ ((bfd_vma
) b
<< 32);
15552 static bfd_signed_vma
15555 bfd_signed_vma x
= 0;
15557 FETCH_DATA (the_info
, codep
+ 4);
15558 x
= *codep
++ & (bfd_signed_vma
) 0xff;
15559 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 8;
15560 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 16;
15561 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 24;
15565 static bfd_signed_vma
15568 bfd_signed_vma x
= 0;
15570 FETCH_DATA (the_info
, codep
+ 4);
15571 x
= *codep
++ & (bfd_signed_vma
) 0xff;
15572 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 8;
15573 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 16;
15574 x
|= (*codep
++ & (bfd_signed_vma
) 0xff) << 24;
15576 x
= (x
^ ((bfd_signed_vma
) 1 << 31)) - ((bfd_signed_vma
) 1 << 31);
15586 FETCH_DATA (the_info
, codep
+ 2);
15587 x
= *codep
++ & 0xff;
15588 x
|= (*codep
++ & 0xff) << 8;
15593 set_op (bfd_vma op
, int riprel
)
15595 op_index
[op_ad
] = op_ad
;
15596 if (address_mode
== mode_64bit
)
15598 op_address
[op_ad
] = op
;
15599 op_riprel
[op_ad
] = riprel
;
15603 /* Mask to get a 32-bit address. */
15604 op_address
[op_ad
] = op
& 0xffffffff;
15605 op_riprel
[op_ad
] = riprel
& 0xffffffff;
15610 OP_REG (int code
, int sizeflag
)
15617 case es_reg
: case ss_reg
: case cs_reg
:
15618 case ds_reg
: case fs_reg
: case gs_reg
:
15619 oappend (names_seg
[code
- es_reg
]);
15631 case ax_reg
: case cx_reg
: case dx_reg
: case bx_reg
:
15632 case sp_reg
: case bp_reg
: case si_reg
: case di_reg
:
15633 s
= names16
[code
- ax_reg
+ add
];
15635 case al_reg
: case ah_reg
: case cl_reg
: case ch_reg
:
15636 case dl_reg
: case dh_reg
: case bl_reg
: case bh_reg
:
15639 s
= names8rex
[code
- al_reg
+ add
];
15641 s
= names8
[code
- al_reg
];
15643 case rAX_reg
: case rCX_reg
: case rDX_reg
: case rBX_reg
:
15644 case rSP_reg
: case rBP_reg
: case rSI_reg
: case rDI_reg
:
15645 if (address_mode
== mode_64bit
15646 && ((sizeflag
& DFLAG
) || (rex
& REX_W
)))
15648 s
= names64
[code
- rAX_reg
+ add
];
15651 code
+= eAX_reg
- rAX_reg
;
15652 /* Fall through. */
15653 case eAX_reg
: case eCX_reg
: case eDX_reg
: case eBX_reg
:
15654 case eSP_reg
: case eBP_reg
: case eSI_reg
: case eDI_reg
:
15657 s
= names64
[code
- eAX_reg
+ add
];
15660 if (sizeflag
& DFLAG
)
15661 s
= names32
[code
- eAX_reg
+ add
];
15663 s
= names16
[code
- eAX_reg
+ add
];
15664 used_prefixes
|= (prefixes
& PREFIX_DATA
);
15668 s
= INTERNAL_DISASSEMBLER_ERROR
;
15675 OP_IMREG (int code
, int sizeflag
)
15687 case ax_reg
: case cx_reg
: case dx_reg
: case bx_reg
:
15688 case sp_reg
: case bp_reg
: case si_reg
: case di_reg
:
15689 s
= names16
[code
- ax_reg
];
15691 case es_reg
: case ss_reg
: case cs_reg
:
15692 case ds_reg
: case fs_reg
: case gs_reg
:
15693 s
= names_seg
[code
- es_reg
];
15695 case al_reg
: case ah_reg
: case cl_reg
: case ch_reg
:
15696 case dl_reg
: case dh_reg
: case bl_reg
: case bh_reg
:
15699 s
= names8rex
[code
- al_reg
];
15701 s
= names8
[code
- al_reg
];
15703 case eAX_reg
: case eCX_reg
: case eDX_reg
: case eBX_reg
:
15704 case eSP_reg
: case eBP_reg
: case eSI_reg
: case eDI_reg
:
15707 s
= names64
[code
- eAX_reg
];
15710 if (sizeflag
& DFLAG
)
15711 s
= names32
[code
- eAX_reg
];
15713 s
= names16
[code
- eAX_reg
];
15714 used_prefixes
|= (prefixes
& PREFIX_DATA
);
15717 case z_mode_ax_reg
:
15718 if ((rex
& REX_W
) || (sizeflag
& DFLAG
))
15722 if (!(rex
& REX_W
))
15723 used_prefixes
|= (prefixes
& PREFIX_DATA
);
15726 s
= INTERNAL_DISASSEMBLER_ERROR
;
15733 OP_I (int bytemode
, int sizeflag
)
15736 bfd_signed_vma mask
= -1;
15741 FETCH_DATA (the_info
, codep
+ 1);
15746 if (address_mode
== mode_64bit
)
15751 /* Fall through. */
15758 if (sizeflag
& DFLAG
)
15768 used_prefixes
|= (prefixes
& PREFIX_DATA
);
15780 oappend (INTERNAL_DISASSEMBLER_ERROR
);
15785 scratchbuf
[0] = '$';
15786 print_operand_value (scratchbuf
+ 1, 1, op
);
15787 oappend_maybe_intel (scratchbuf
);
15788 scratchbuf
[0] = '\0';
15792 OP_I64 (int bytemode
, int sizeflag
)
15795 bfd_signed_vma mask
= -1;
15797 if (address_mode
!= mode_64bit
)
15799 OP_I (bytemode
, sizeflag
);
15806 FETCH_DATA (the_info
, codep
+ 1);
15816 if (sizeflag
& DFLAG
)
15826 used_prefixes
|= (prefixes
& PREFIX_DATA
);
15834 oappend (INTERNAL_DISASSEMBLER_ERROR
);
15839 scratchbuf
[0] = '$';
15840 print_operand_value (scratchbuf
+ 1, 1, op
);
15841 oappend_maybe_intel (scratchbuf
);
15842 scratchbuf
[0] = '\0';
15846 OP_sI (int bytemode
, int sizeflag
)
15854 FETCH_DATA (the_info
, codep
+ 1);
15856 if ((op
& 0x80) != 0)
15858 if (bytemode
== b_T_mode
)
15860 if (address_mode
!= mode_64bit
15861 || !((sizeflag
& DFLAG
) || (rex
& REX_W
)))
15863 /* The operand-size prefix is overridden by a REX prefix. */
15864 if ((sizeflag
& DFLAG
) || (rex
& REX_W
))
15872 if (!(rex
& REX_W
))
15874 if (sizeflag
& DFLAG
)
15882 /* The operand-size prefix is overridden by a REX prefix. */
15883 if ((sizeflag
& DFLAG
) || (rex
& REX_W
))
15889 oappend (INTERNAL_DISASSEMBLER_ERROR
);
15893 scratchbuf
[0] = '$';
15894 print_operand_value (scratchbuf
+ 1, 1, op
);
15895 oappend_maybe_intel (scratchbuf
);
15899 OP_J (int bytemode
, int sizeflag
)
15903 bfd_vma segment
= 0;
15908 FETCH_DATA (the_info
, codep
+ 1);
15910 if ((disp
& 0x80) != 0)
15914 if (isa64
== amd64
)
15916 if ((sizeflag
& DFLAG
)
15917 || (address_mode
== mode_64bit
15918 && (isa64
!= amd64
|| (rex
& REX_W
))))
15923 if ((disp
& 0x8000) != 0)
15925 /* In 16bit mode, address is wrapped around at 64k within
15926 the same segment. Otherwise, a data16 prefix on a jump
15927 instruction means that the pc is masked to 16 bits after
15928 the displacement is added! */
15930 if ((prefixes
& PREFIX_DATA
) == 0)
15931 segment
= ((start_pc
+ (codep
- start_codep
))
15932 & ~((bfd_vma
) 0xffff));
15934 if (address_mode
!= mode_64bit
15935 || (isa64
== amd64
&& !(rex
& REX_W
)))
15936 used_prefixes
|= (prefixes
& PREFIX_DATA
);
15939 oappend (INTERNAL_DISASSEMBLER_ERROR
);
15942 disp
= ((start_pc
+ (codep
- start_codep
) + disp
) & mask
) | segment
;
15944 print_operand_value (scratchbuf
, 1, disp
);
15945 oappend (scratchbuf
);
15949 OP_SEG (int bytemode
, int sizeflag
)
15951 if (bytemode
== w_mode
)
15952 oappend (names_seg
[modrm
.reg
]);
15954 OP_E (modrm
.mod
== 3 ? bytemode
: w_mode
, sizeflag
);
15958 OP_DIR (int dummy ATTRIBUTE_UNUSED
, int sizeflag
)
15962 if (sizeflag
& DFLAG
)
15972 used_prefixes
|= (prefixes
& PREFIX_DATA
);
15974 sprintf (scratchbuf
, "0x%x:0x%x", seg
, offset
);
15976 sprintf (scratchbuf
, "$0x%x,$0x%x", seg
, offset
);
15977 oappend (scratchbuf
);
15981 OP_OFF (int bytemode
, int sizeflag
)
15985 if (intel_syntax
&& (sizeflag
& SUFFIX_ALWAYS
))
15986 intel_operand_size (bytemode
, sizeflag
);
15989 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
15996 if (!active_seg_prefix
)
15998 oappend (names_seg
[ds_reg
- es_reg
]);
16002 print_operand_value (scratchbuf
, 1, off
);
16003 oappend (scratchbuf
);
16007 OP_OFF64 (int bytemode
, int sizeflag
)
16011 if (address_mode
!= mode_64bit
16012 || (prefixes
& PREFIX_ADDR
))
16014 OP_OFF (bytemode
, sizeflag
);
16018 if (intel_syntax
&& (sizeflag
& SUFFIX_ALWAYS
))
16019 intel_operand_size (bytemode
, sizeflag
);
16026 if (!active_seg_prefix
)
16028 oappend (names_seg
[ds_reg
- es_reg
]);
16032 print_operand_value (scratchbuf
, 1, off
);
16033 oappend (scratchbuf
);
16037 ptr_reg (int code
, int sizeflag
)
16041 *obufp
++ = open_char
;
16042 used_prefixes
|= (prefixes
& PREFIX_ADDR
);
16043 if (address_mode
== mode_64bit
)
16045 if (!(sizeflag
& AFLAG
))
16046 s
= names32
[code
- eAX_reg
];
16048 s
= names64
[code
- eAX_reg
];
16050 else if (sizeflag
& AFLAG
)
16051 s
= names32
[code
- eAX_reg
];
16053 s
= names16
[code
- eAX_reg
];
16055 *obufp
++ = close_char
;
16060 OP_ESreg (int code
, int sizeflag
)
16066 case 0x6d: /* insw/insl */
16067 intel_operand_size (z_mode
, sizeflag
);
16069 case 0xa5: /* movsw/movsl/movsq */
16070 case 0xa7: /* cmpsw/cmpsl/cmpsq */
16071 case 0xab: /* stosw/stosl */
16072 case 0xaf: /* scasw/scasl */
16073 intel_operand_size (v_mode
, sizeflag
);
16076 intel_operand_size (b_mode
, sizeflag
);
16079 oappend_maybe_intel ("%es:");
16080 ptr_reg (code
, sizeflag
);
16084 OP_DSreg (int code
, int sizeflag
)
16090 case 0x6f: /* outsw/outsl */
16091 intel_operand_size (z_mode
, sizeflag
);
16093 case 0xa5: /* movsw/movsl/movsq */
16094 case 0xa7: /* cmpsw/cmpsl/cmpsq */
16095 case 0xad: /* lodsw/lodsl/lodsq */
16096 intel_operand_size (v_mode
, sizeflag
);
16099 intel_operand_size (b_mode
, sizeflag
);
16102 /* Set active_seg_prefix to PREFIX_DS if it is unset so that the
16103 default segment register DS is printed. */
16104 if (!active_seg_prefix
)
16105 active_seg_prefix
= PREFIX_DS
;
16107 ptr_reg (code
, sizeflag
);
16111 OP_C (int dummy ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
16119 else if (address_mode
!= mode_64bit
&& (prefixes
& PREFIX_LOCK
))
16121 all_prefixes
[last_lock_prefix
] = 0;
16122 used_prefixes
|= PREFIX_LOCK
;
16127 sprintf (scratchbuf
, "%%cr%d", modrm
.reg
+ add
);
16128 oappend_maybe_intel (scratchbuf
);
16132 OP_D (int dummy ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
16141 sprintf (scratchbuf
, "db%d", modrm
.reg
+ add
);
16143 sprintf (scratchbuf
, "%%db%d", modrm
.reg
+ add
);
16144 oappend (scratchbuf
);
16148 OP_T (int dummy ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
16150 sprintf (scratchbuf
, "%%tr%d", modrm
.reg
);
16151 oappend_maybe_intel (scratchbuf
);
16155 OP_R (int bytemode
, int sizeflag
)
16157 /* Skip mod/rm byte. */
16160 OP_E_register (bytemode
, sizeflag
);
16164 OP_MMX (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
16166 int reg
= modrm
.reg
;
16167 const char **names
;
16169 used_prefixes
|= (prefixes
& PREFIX_DATA
);
16170 if (prefixes
& PREFIX_DATA
)
16179 oappend (names
[reg
]);
16183 OP_XMM (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
16185 int reg
= modrm
.reg
;
16186 const char **names
;
16198 && bytemode
!= xmm_mode
16199 && bytemode
!= xmmq_mode
16200 && bytemode
!= evex_half_bcst_xmmq_mode
16201 && bytemode
!= ymm_mode
16202 && bytemode
!= scalar_mode
)
16204 switch (vex
.length
)
16211 || (bytemode
!= vex_vsib_q_w_dq_mode
16212 && bytemode
!= vex_vsib_q_w_d_mode
))
16224 else if (bytemode
== xmmq_mode
16225 || bytemode
== evex_half_bcst_xmmq_mode
)
16227 switch (vex
.length
)
16240 else if (bytemode
== ymm_mode
)
16244 oappend (names
[reg
]);
16248 OP_EM (int bytemode
, int sizeflag
)
16251 const char **names
;
16253 if (modrm
.mod
!= 3)
16256 && (bytemode
== v_mode
|| bytemode
== v_swap_mode
))
16258 bytemode
= (prefixes
& PREFIX_DATA
) ? x_mode
: q_mode
;
16259 used_prefixes
|= (prefixes
& PREFIX_DATA
);
16261 OP_E (bytemode
, sizeflag
);
16265 if ((sizeflag
& SUFFIX_ALWAYS
) && bytemode
== v_swap_mode
)
16268 /* Skip mod/rm byte. */
16271 used_prefixes
|= (prefixes
& PREFIX_DATA
);
16273 if (prefixes
& PREFIX_DATA
)
16282 oappend (names
[reg
]);
16285 /* cvt* are the only instructions in sse2 which have
16286 both SSE and MMX operands and also have 0x66 prefix
16287 in their opcode. 0x66 was originally used to differentiate
16288 between SSE and MMX instruction(operands). So we have to handle the
16289 cvt* separately using OP_EMC and OP_MXC */
16291 OP_EMC (int bytemode
, int sizeflag
)
16293 if (modrm
.mod
!= 3)
16295 if (intel_syntax
&& bytemode
== v_mode
)
16297 bytemode
= (prefixes
& PREFIX_DATA
) ? x_mode
: q_mode
;
16298 used_prefixes
|= (prefixes
& PREFIX_DATA
);
16300 OP_E (bytemode
, sizeflag
);
16304 /* Skip mod/rm byte. */
16307 used_prefixes
|= (prefixes
& PREFIX_DATA
);
16308 oappend (names_mm
[modrm
.rm
]);
16312 OP_MXC (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
16314 used_prefixes
|= (prefixes
& PREFIX_DATA
);
16315 oappend (names_mm
[modrm
.reg
]);
16319 OP_EX (int bytemode
, int sizeflag
)
16322 const char **names
;
16324 /* Skip mod/rm byte. */
16328 if (modrm
.mod
!= 3)
16330 OP_E_memory (bytemode
, sizeflag
);
16345 if ((sizeflag
& SUFFIX_ALWAYS
)
16346 && (bytemode
== x_swap_mode
16347 || bytemode
== d_swap_mode
16348 || bytemode
== dqw_swap_mode
16349 || bytemode
== d_scalar_swap_mode
16350 || bytemode
== q_swap_mode
16351 || bytemode
== q_scalar_swap_mode
))
16355 && bytemode
!= xmm_mode
16356 && bytemode
!= xmmdw_mode
16357 && bytemode
!= xmmqd_mode
16358 && bytemode
!= xmm_mb_mode
16359 && bytemode
!= xmm_mw_mode
16360 && bytemode
!= xmm_md_mode
16361 && bytemode
!= xmm_mq_mode
16362 && bytemode
!= xmm_mdq_mode
16363 && bytemode
!= xmmq_mode
16364 && bytemode
!= evex_half_bcst_xmmq_mode
16365 && bytemode
!= ymm_mode
16366 && bytemode
!= d_scalar_mode
16367 && bytemode
!= d_scalar_swap_mode
16368 && bytemode
!= q_scalar_mode
16369 && bytemode
!= q_scalar_swap_mode
16370 && bytemode
!= vex_scalar_w_dq_mode
)
16372 switch (vex
.length
)
16387 else if (bytemode
== xmmq_mode
16388 || bytemode
== evex_half_bcst_xmmq_mode
)
16390 switch (vex
.length
)
16403 else if (bytemode
== ymm_mode
)
16407 oappend (names
[reg
]);
16411 OP_MS (int bytemode
, int sizeflag
)
16413 if (modrm
.mod
== 3)
16414 OP_EM (bytemode
, sizeflag
);
16420 OP_XS (int bytemode
, int sizeflag
)
16422 if (modrm
.mod
== 3)
16423 OP_EX (bytemode
, sizeflag
);
16429 OP_M (int bytemode
, int sizeflag
)
16431 if (modrm
.mod
== 3)
16432 /* bad bound,lea,lds,les,lfs,lgs,lss,cmpxchg8b,vmptrst modrm */
16435 OP_E (bytemode
, sizeflag
);
16439 OP_0f07 (int bytemode
, int sizeflag
)
16441 if (modrm
.mod
!= 3 || modrm
.rm
!= 0)
16444 OP_E (bytemode
, sizeflag
);
16447 /* NOP is an alias of "xchg %ax,%ax" in 16bit mode, "xchg %eax,%eax" in
16448 32bit mode and "xchg %rax,%rax" in 64bit mode. */
16451 NOP_Fixup1 (int bytemode
, int sizeflag
)
16453 if ((prefixes
& PREFIX_DATA
) != 0
16456 && address_mode
== mode_64bit
))
16457 OP_REG (bytemode
, sizeflag
);
16459 strcpy (obuf
, "nop");
16463 NOP_Fixup2 (int bytemode
, int sizeflag
)
16465 if ((prefixes
& PREFIX_DATA
) != 0
16468 && address_mode
== mode_64bit
))
16469 OP_IMREG (bytemode
, sizeflag
);
16472 static const char *const Suffix3DNow
[] = {
16473 /* 00 */ NULL
, NULL
, NULL
, NULL
,
16474 /* 04 */ NULL
, NULL
, NULL
, NULL
,
16475 /* 08 */ NULL
, NULL
, NULL
, NULL
,
16476 /* 0C */ "pi2fw", "pi2fd", NULL
, NULL
,
16477 /* 10 */ NULL
, NULL
, NULL
, NULL
,
16478 /* 14 */ NULL
, NULL
, NULL
, NULL
,
16479 /* 18 */ NULL
, NULL
, NULL
, NULL
,
16480 /* 1C */ "pf2iw", "pf2id", NULL
, NULL
,
16481 /* 20 */ NULL
, NULL
, NULL
, NULL
,
16482 /* 24 */ NULL
, NULL
, NULL
, NULL
,
16483 /* 28 */ NULL
, NULL
, NULL
, NULL
,
16484 /* 2C */ NULL
, NULL
, NULL
, NULL
,
16485 /* 30 */ NULL
, NULL
, NULL
, NULL
,
16486 /* 34 */ NULL
, NULL
, NULL
, NULL
,
16487 /* 38 */ NULL
, NULL
, NULL
, NULL
,
16488 /* 3C */ NULL
, NULL
, NULL
, NULL
,
16489 /* 40 */ NULL
, NULL
, NULL
, NULL
,
16490 /* 44 */ NULL
, NULL
, NULL
, NULL
,
16491 /* 48 */ NULL
, NULL
, NULL
, NULL
,
16492 /* 4C */ NULL
, NULL
, NULL
, NULL
,
16493 /* 50 */ NULL
, NULL
, NULL
, NULL
,
16494 /* 54 */ NULL
, NULL
, NULL
, NULL
,
16495 /* 58 */ NULL
, NULL
, NULL
, NULL
,
16496 /* 5C */ NULL
, NULL
, NULL
, NULL
,
16497 /* 60 */ NULL
, NULL
, NULL
, NULL
,
16498 /* 64 */ NULL
, NULL
, NULL
, NULL
,
16499 /* 68 */ NULL
, NULL
, NULL
, NULL
,
16500 /* 6C */ NULL
, NULL
, NULL
, NULL
,
16501 /* 70 */ NULL
, NULL
, NULL
, NULL
,
16502 /* 74 */ NULL
, NULL
, NULL
, NULL
,
16503 /* 78 */ NULL
, NULL
, NULL
, NULL
,
16504 /* 7C */ NULL
, NULL
, NULL
, NULL
,
16505 /* 80 */ NULL
, NULL
, NULL
, NULL
,
16506 /* 84 */ NULL
, NULL
, NULL
, NULL
,
16507 /* 88 */ NULL
, NULL
, "pfnacc", NULL
,
16508 /* 8C */ NULL
, NULL
, "pfpnacc", NULL
,
16509 /* 90 */ "pfcmpge", NULL
, NULL
, NULL
,
16510 /* 94 */ "pfmin", NULL
, "pfrcp", "pfrsqrt",
16511 /* 98 */ NULL
, NULL
, "pfsub", NULL
,
16512 /* 9C */ NULL
, NULL
, "pfadd", NULL
,
16513 /* A0 */ "pfcmpgt", NULL
, NULL
, NULL
,
16514 /* A4 */ "pfmax", NULL
, "pfrcpit1", "pfrsqit1",
16515 /* A8 */ NULL
, NULL
, "pfsubr", NULL
,
16516 /* AC */ NULL
, NULL
, "pfacc", NULL
,
16517 /* B0 */ "pfcmpeq", NULL
, NULL
, NULL
,
16518 /* B4 */ "pfmul", NULL
, "pfrcpit2", "pmulhrw",
16519 /* B8 */ NULL
, NULL
, NULL
, "pswapd",
16520 /* BC */ NULL
, NULL
, NULL
, "pavgusb",
16521 /* C0 */ NULL
, NULL
, NULL
, NULL
,
16522 /* C4 */ NULL
, NULL
, NULL
, NULL
,
16523 /* C8 */ NULL
, NULL
, NULL
, NULL
,
16524 /* CC */ NULL
, NULL
, NULL
, NULL
,
16525 /* D0 */ NULL
, NULL
, NULL
, NULL
,
16526 /* D4 */ NULL
, NULL
, NULL
, NULL
,
16527 /* D8 */ NULL
, NULL
, NULL
, NULL
,
16528 /* DC */ NULL
, NULL
, NULL
, NULL
,
16529 /* E0 */ NULL
, NULL
, NULL
, NULL
,
16530 /* E4 */ NULL
, NULL
, NULL
, NULL
,
16531 /* E8 */ NULL
, NULL
, NULL
, NULL
,
16532 /* EC */ NULL
, NULL
, NULL
, NULL
,
16533 /* F0 */ NULL
, NULL
, NULL
, NULL
,
16534 /* F4 */ NULL
, NULL
, NULL
, NULL
,
16535 /* F8 */ NULL
, NULL
, NULL
, NULL
,
16536 /* FC */ NULL
, NULL
, NULL
, NULL
,
16540 OP_3DNowSuffix (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
16542 const char *mnemonic
;
16544 FETCH_DATA (the_info
, codep
+ 1);
16545 /* AMD 3DNow! instructions are specified by an opcode suffix in the
16546 place where an 8-bit immediate would normally go. ie. the last
16547 byte of the instruction. */
16548 obufp
= mnemonicendp
;
16549 mnemonic
= Suffix3DNow
[*codep
++ & 0xff];
16551 oappend (mnemonic
);
16554 /* Since a variable sized modrm/sib chunk is between the start
16555 of the opcode (0x0f0f) and the opcode suffix, we need to do
16556 all the modrm processing first, and don't know until now that
16557 we have a bad opcode. This necessitates some cleaning up. */
16558 op_out
[0][0] = '\0';
16559 op_out
[1][0] = '\0';
16562 mnemonicendp
= obufp
;
16565 static struct op simd_cmp_op
[] =
16567 { STRING_COMMA_LEN ("eq") },
16568 { STRING_COMMA_LEN ("lt") },
16569 { STRING_COMMA_LEN ("le") },
16570 { STRING_COMMA_LEN ("unord") },
16571 { STRING_COMMA_LEN ("neq") },
16572 { STRING_COMMA_LEN ("nlt") },
16573 { STRING_COMMA_LEN ("nle") },
16574 { STRING_COMMA_LEN ("ord") }
16578 CMP_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
16580 unsigned int cmp_type
;
16582 FETCH_DATA (the_info
, codep
+ 1);
16583 cmp_type
= *codep
++ & 0xff;
16584 if (cmp_type
< ARRAY_SIZE (simd_cmp_op
))
16587 char *p
= mnemonicendp
- 2;
16591 sprintf (p
, "%s%s", simd_cmp_op
[cmp_type
].name
, suffix
);
16592 mnemonicendp
+= simd_cmp_op
[cmp_type
].len
;
16596 /* We have a reserved extension byte. Output it directly. */
16597 scratchbuf
[0] = '$';
16598 print_operand_value (scratchbuf
+ 1, 1, cmp_type
);
16599 oappend_maybe_intel (scratchbuf
);
16600 scratchbuf
[0] = '\0';
16605 OP_Mwaitx (int bytemode ATTRIBUTE_UNUSED
,
16606 int sizeflag ATTRIBUTE_UNUSED
)
16608 /* mwaitx %eax,%ecx,%ebx */
16611 const char **names
= (address_mode
== mode_64bit
16612 ? names64
: names32
);
16613 strcpy (op_out
[0], names
[0]);
16614 strcpy (op_out
[1], names
[1]);
16615 strcpy (op_out
[2], names
[3]);
16616 two_source_ops
= 1;
16618 /* Skip mod/rm byte. */
16624 OP_Mwait (int bytemode ATTRIBUTE_UNUSED
,
16625 int sizeflag ATTRIBUTE_UNUSED
)
16627 /* mwait %eax,%ecx */
16630 const char **names
= (address_mode
== mode_64bit
16631 ? names64
: names32
);
16632 strcpy (op_out
[0], names
[0]);
16633 strcpy (op_out
[1], names
[1]);
16634 two_source_ops
= 1;
16636 /* Skip mod/rm byte. */
16642 OP_Monitor (int bytemode ATTRIBUTE_UNUSED
,
16643 int sizeflag ATTRIBUTE_UNUSED
)
16645 /* monitor %eax,%ecx,%edx" */
16648 const char **op1_names
;
16649 const char **names
= (address_mode
== mode_64bit
16650 ? names64
: names32
);
16652 if (!(prefixes
& PREFIX_ADDR
))
16653 op1_names
= (address_mode
== mode_16bit
16654 ? names16
: names
);
16657 /* Remove "addr16/addr32". */
16658 all_prefixes
[last_addr_prefix
] = 0;
16659 op1_names
= (address_mode
!= mode_32bit
16660 ? names32
: names16
);
16661 used_prefixes
|= PREFIX_ADDR
;
16663 strcpy (op_out
[0], op1_names
[0]);
16664 strcpy (op_out
[1], names
[1]);
16665 strcpy (op_out
[2], names
[2]);
16666 two_source_ops
= 1;
16668 /* Skip mod/rm byte. */
16676 /* Throw away prefixes and 1st. opcode byte. */
16677 codep
= insn_codep
+ 1;
16682 REP_Fixup (int bytemode
, int sizeflag
)
16684 /* The 0xf3 prefix should be displayed as "rep" for ins, outs, movs,
16686 if (prefixes
& PREFIX_REPZ
)
16687 all_prefixes
[last_repz_prefix
] = REP_PREFIX
;
16694 OP_IMREG (bytemode
, sizeflag
);
16697 OP_ESreg (bytemode
, sizeflag
);
16700 OP_DSreg (bytemode
, sizeflag
);
16708 /* For BND-prefixed instructions 0xF2 prefix should be displayed as
16712 BND_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
16714 if (prefixes
& PREFIX_REPNZ
)
16715 all_prefixes
[last_repnz_prefix
] = BND_PREFIX
;
16718 /* Similar to OP_E. But the 0xf2/0xf3 prefixes should be displayed as
16719 "xacquire"/"xrelease" for memory operand if there is a LOCK prefix.
16723 HLE_Fixup1 (int bytemode
, int sizeflag
)
16726 && (prefixes
& PREFIX_LOCK
) != 0)
16728 if (prefixes
& PREFIX_REPZ
)
16729 all_prefixes
[last_repz_prefix
] = XRELEASE_PREFIX
;
16730 if (prefixes
& PREFIX_REPNZ
)
16731 all_prefixes
[last_repnz_prefix
] = XACQUIRE_PREFIX
;
16734 OP_E (bytemode
, sizeflag
);
16737 /* Similar to OP_E. But the 0xf2/0xf3 prefixes should be displayed as
16738 "xacquire"/"xrelease" for memory operand. No check for LOCK prefix.
16742 HLE_Fixup2 (int bytemode
, int sizeflag
)
16744 if (modrm
.mod
!= 3)
16746 if (prefixes
& PREFIX_REPZ
)
16747 all_prefixes
[last_repz_prefix
] = XRELEASE_PREFIX
;
16748 if (prefixes
& PREFIX_REPNZ
)
16749 all_prefixes
[last_repnz_prefix
] = XACQUIRE_PREFIX
;
16752 OP_E (bytemode
, sizeflag
);
16755 /* Similar to OP_E. But the 0xf3 prefixes should be displayed as
16756 "xrelease" for memory operand. No check for LOCK prefix. */
16759 HLE_Fixup3 (int bytemode
, int sizeflag
)
16762 && last_repz_prefix
> last_repnz_prefix
16763 && (prefixes
& PREFIX_REPZ
) != 0)
16764 all_prefixes
[last_repz_prefix
] = XRELEASE_PREFIX
;
16766 OP_E (bytemode
, sizeflag
);
16770 CMPXCHG8B_Fixup (int bytemode
, int sizeflag
)
16775 /* Change cmpxchg8b to cmpxchg16b. */
16776 char *p
= mnemonicendp
- 2;
16777 mnemonicendp
= stpcpy (p
, "16b");
16780 else if ((prefixes
& PREFIX_LOCK
) != 0)
16782 if (prefixes
& PREFIX_REPZ
)
16783 all_prefixes
[last_repz_prefix
] = XRELEASE_PREFIX
;
16784 if (prefixes
& PREFIX_REPNZ
)
16785 all_prefixes
[last_repnz_prefix
] = XACQUIRE_PREFIX
;
16788 OP_M (bytemode
, sizeflag
);
16792 XMM_Fixup (int reg
, int sizeflag ATTRIBUTE_UNUSED
)
16794 const char **names
;
16798 switch (vex
.length
)
16812 oappend (names
[reg
]);
16816 CRC32_Fixup (int bytemode
, int sizeflag
)
16818 /* Add proper suffix to "crc32". */
16819 char *p
= mnemonicendp
;
16838 if (sizeflag
& DFLAG
)
16842 used_prefixes
|= (prefixes
& PREFIX_DATA
);
16846 oappend (INTERNAL_DISASSEMBLER_ERROR
);
16853 if (modrm
.mod
== 3)
16857 /* Skip mod/rm byte. */
16862 add
= (rex
& REX_B
) ? 8 : 0;
16863 if (bytemode
== b_mode
)
16867 oappend (names8rex
[modrm
.rm
+ add
]);
16869 oappend (names8
[modrm
.rm
+ add
]);
16875 oappend (names64
[modrm
.rm
+ add
]);
16876 else if ((prefixes
& PREFIX_DATA
))
16877 oappend (names16
[modrm
.rm
+ add
]);
16879 oappend (names32
[modrm
.rm
+ add
]);
16883 OP_E (bytemode
, sizeflag
);
16887 FXSAVE_Fixup (int bytemode
, int sizeflag
)
16889 /* Add proper suffix to "fxsave" and "fxrstor". */
16893 char *p
= mnemonicendp
;
16899 OP_M (bytemode
, sizeflag
);
16902 /* Display the destination register operand for instructions with
16906 OP_VEX (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
16909 const char **names
;
16917 reg
= vex
.register_specifier
;
16924 if (bytemode
== vex_scalar_mode
)
16926 oappend (names_xmm
[reg
]);
16930 switch (vex
.length
)
16937 case vex_vsib_q_w_dq_mode
:
16938 case vex_vsib_q_w_d_mode
:
16954 names
= names_mask
;
16968 case vex_vsib_q_w_dq_mode
:
16969 case vex_vsib_q_w_d_mode
:
16970 names
= vex
.w
? names_ymm
: names_xmm
;
16979 names
= names_mask
;
16993 oappend (names
[reg
]);
16996 /* Get the VEX immediate byte without moving codep. */
16998 static unsigned char
16999 get_vex_imm8 (int sizeflag
, int opnum
)
17001 int bytes_before_imm
= 0;
17003 if (modrm
.mod
!= 3)
17005 /* There are SIB/displacement bytes. */
17006 if ((sizeflag
& AFLAG
) || address_mode
== mode_64bit
)
17008 /* 32/64 bit address mode */
17009 int base
= modrm
.rm
;
17011 /* Check SIB byte. */
17014 FETCH_DATA (the_info
, codep
+ 1);
17016 /* When decoding the third source, don't increase
17017 bytes_before_imm as this has already been incremented
17018 by one in OP_E_memory while decoding the second
17021 bytes_before_imm
++;
17024 /* Don't increase bytes_before_imm when decoding the third source,
17025 it has already been incremented by OP_E_memory while decoding
17026 the second source operand. */
17032 /* When modrm.rm == 5 or modrm.rm == 4 and base in
17033 SIB == 5, there is a 4 byte displacement. */
17035 /* No displacement. */
17037 /* Fall through. */
17039 /* 4 byte displacement. */
17040 bytes_before_imm
+= 4;
17043 /* 1 byte displacement. */
17044 bytes_before_imm
++;
17051 /* 16 bit address mode */
17052 /* Don't increase bytes_before_imm when decoding the third source,
17053 it has already been incremented by OP_E_memory while decoding
17054 the second source operand. */
17060 /* When modrm.rm == 6, there is a 2 byte displacement. */
17062 /* No displacement. */
17064 /* Fall through. */
17066 /* 2 byte displacement. */
17067 bytes_before_imm
+= 2;
17070 /* 1 byte displacement: when decoding the third source,
17071 don't increase bytes_before_imm as this has already
17072 been incremented by one in OP_E_memory while decoding
17073 the second source operand. */
17075 bytes_before_imm
++;
17083 FETCH_DATA (the_info
, codep
+ bytes_before_imm
+ 1);
17084 return codep
[bytes_before_imm
];
17088 OP_EX_VexReg (int bytemode
, int sizeflag
, int reg
)
17090 const char **names
;
17092 if (reg
== -1 && modrm
.mod
!= 3)
17094 OP_E_memory (bytemode
, sizeflag
);
17106 else if (reg
> 7 && address_mode
!= mode_64bit
)
17110 switch (vex
.length
)
17121 oappend (names
[reg
]);
17125 OP_EX_VexImmW (int bytemode
, int sizeflag
)
17128 static unsigned char vex_imm8
;
17130 if (vex_w_done
== 0)
17134 /* Skip mod/rm byte. */
17138 vex_imm8
= get_vex_imm8 (sizeflag
, 0);
17141 reg
= vex_imm8
>> 4;
17143 OP_EX_VexReg (bytemode
, sizeflag
, reg
);
17145 else if (vex_w_done
== 1)
17150 reg
= vex_imm8
>> 4;
17152 OP_EX_VexReg (bytemode
, sizeflag
, reg
);
17156 /* Output the imm8 directly. */
17157 scratchbuf
[0] = '$';
17158 print_operand_value (scratchbuf
+ 1, 1, vex_imm8
& 0xf);
17159 oappend_maybe_intel (scratchbuf
);
17160 scratchbuf
[0] = '\0';
17166 OP_Vex_2src (int bytemode
, int sizeflag
)
17168 if (modrm
.mod
== 3)
17170 int reg
= modrm
.rm
;
17174 oappend (names_xmm
[reg
]);
17179 && (bytemode
== v_mode
|| bytemode
== v_swap_mode
))
17181 bytemode
= (prefixes
& PREFIX_DATA
) ? x_mode
: q_mode
;
17182 used_prefixes
|= (prefixes
& PREFIX_DATA
);
17184 OP_E (bytemode
, sizeflag
);
17189 OP_Vex_2src_1 (int bytemode
, int sizeflag
)
17191 if (modrm
.mod
== 3)
17193 /* Skip mod/rm byte. */
17199 oappend (names_xmm
[vex
.register_specifier
]);
17201 OP_Vex_2src (bytemode
, sizeflag
);
17205 OP_Vex_2src_2 (int bytemode
, int sizeflag
)
17208 OP_Vex_2src (bytemode
, sizeflag
);
17210 oappend (names_xmm
[vex
.register_specifier
]);
17214 OP_EX_VexW (int bytemode
, int sizeflag
)
17222 /* Skip mod/rm byte. */
17227 reg
= get_vex_imm8 (sizeflag
, 0) >> 4;
17232 reg
= get_vex_imm8 (sizeflag
, 1) >> 4;
17235 OP_EX_VexReg (bytemode
, sizeflag
, reg
);
17239 VEXI4_Fixup (int bytemode ATTRIBUTE_UNUSED
,
17240 int sizeflag ATTRIBUTE_UNUSED
)
17242 /* Skip the immediate byte and check for invalid bits. */
17243 FETCH_DATA (the_info
, codep
+ 1);
17244 if (*codep
++ & 0xf)
17249 OP_REG_VexI4 (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
17252 const char **names
;
17254 FETCH_DATA (the_info
, codep
+ 1);
17257 if (bytemode
!= x_mode
)
17264 if (reg
> 7 && address_mode
!= mode_64bit
)
17267 switch (vex
.length
)
17278 oappend (names
[reg
]);
17282 OP_XMM_VexW (int bytemode
, int sizeflag
)
17284 /* Turn off the REX.W bit since it is used for swapping operands
17287 OP_XMM (bytemode
, sizeflag
);
17291 OP_EX_Vex (int bytemode
, int sizeflag
)
17293 if (modrm
.mod
!= 3)
17295 if (vex
.register_specifier
!= 0)
17299 OP_EX (bytemode
, sizeflag
);
17303 OP_XMM_Vex (int bytemode
, int sizeflag
)
17305 if (modrm
.mod
!= 3)
17307 if (vex
.register_specifier
!= 0)
17311 OP_XMM (bytemode
, sizeflag
);
17315 VZERO_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
17317 switch (vex
.length
)
17320 mnemonicendp
= stpcpy (obuf
, "vzeroupper");
17323 mnemonicendp
= stpcpy (obuf
, "vzeroall");
17330 static struct op vex_cmp_op
[] =
17332 { STRING_COMMA_LEN ("eq") },
17333 { STRING_COMMA_LEN ("lt") },
17334 { STRING_COMMA_LEN ("le") },
17335 { STRING_COMMA_LEN ("unord") },
17336 { STRING_COMMA_LEN ("neq") },
17337 { STRING_COMMA_LEN ("nlt") },
17338 { STRING_COMMA_LEN ("nle") },
17339 { STRING_COMMA_LEN ("ord") },
17340 { STRING_COMMA_LEN ("eq_uq") },
17341 { STRING_COMMA_LEN ("nge") },
17342 { STRING_COMMA_LEN ("ngt") },
17343 { STRING_COMMA_LEN ("false") },
17344 { STRING_COMMA_LEN ("neq_oq") },
17345 { STRING_COMMA_LEN ("ge") },
17346 { STRING_COMMA_LEN ("gt") },
17347 { STRING_COMMA_LEN ("true") },
17348 { STRING_COMMA_LEN ("eq_os") },
17349 { STRING_COMMA_LEN ("lt_oq") },
17350 { STRING_COMMA_LEN ("le_oq") },
17351 { STRING_COMMA_LEN ("unord_s") },
17352 { STRING_COMMA_LEN ("neq_us") },
17353 { STRING_COMMA_LEN ("nlt_uq") },
17354 { STRING_COMMA_LEN ("nle_uq") },
17355 { STRING_COMMA_LEN ("ord_s") },
17356 { STRING_COMMA_LEN ("eq_us") },
17357 { STRING_COMMA_LEN ("nge_uq") },
17358 { STRING_COMMA_LEN ("ngt_uq") },
17359 { STRING_COMMA_LEN ("false_os") },
17360 { STRING_COMMA_LEN ("neq_os") },
17361 { STRING_COMMA_LEN ("ge_oq") },
17362 { STRING_COMMA_LEN ("gt_oq") },
17363 { STRING_COMMA_LEN ("true_us") },
17367 VCMP_Fixup (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
17369 unsigned int cmp_type
;
17371 FETCH_DATA (the_info
, codep
+ 1);
17372 cmp_type
= *codep
++ & 0xff;
17373 if (cmp_type
< ARRAY_SIZE (vex_cmp_op
))
17376 char *p
= mnemonicendp
- 2;
17380 sprintf (p
, "%s%s", vex_cmp_op
[cmp_type
].name
, suffix
);
17381 mnemonicendp
+= vex_cmp_op
[cmp_type
].len
;
17385 /* We have a reserved extension byte. Output it directly. */
17386 scratchbuf
[0] = '$';
17387 print_operand_value (scratchbuf
+ 1, 1, cmp_type
);
17388 oappend_maybe_intel (scratchbuf
);
17389 scratchbuf
[0] = '\0';
17394 VPCMP_Fixup (int bytemode ATTRIBUTE_UNUSED
,
17395 int sizeflag ATTRIBUTE_UNUSED
)
17397 unsigned int cmp_type
;
17402 FETCH_DATA (the_info
, codep
+ 1);
17403 cmp_type
= *codep
++ & 0xff;
17404 /* There are aliases for immediates 0, 1, 2, 4, 5, 6.
17405 If it's the case, print suffix, otherwise - print the immediate. */
17406 if (cmp_type
< ARRAY_SIZE (simd_cmp_op
)
17411 char *p
= mnemonicendp
- 2;
17413 /* vpcmp* can have both one- and two-lettered suffix. */
17427 sprintf (p
, "%s%s", simd_cmp_op
[cmp_type
].name
, suffix
);
17428 mnemonicendp
+= simd_cmp_op
[cmp_type
].len
;
17432 /* We have a reserved extension byte. Output it directly. */
17433 scratchbuf
[0] = '$';
17434 print_operand_value (scratchbuf
+ 1, 1, cmp_type
);
17435 oappend_maybe_intel (scratchbuf
);
17436 scratchbuf
[0] = '\0';
17440 static const struct op pclmul_op
[] =
17442 { STRING_COMMA_LEN ("lql") },
17443 { STRING_COMMA_LEN ("hql") },
17444 { STRING_COMMA_LEN ("lqh") },
17445 { STRING_COMMA_LEN ("hqh") }
17449 PCLMUL_Fixup (int bytemode ATTRIBUTE_UNUSED
,
17450 int sizeflag ATTRIBUTE_UNUSED
)
17452 unsigned int pclmul_type
;
17454 FETCH_DATA (the_info
, codep
+ 1);
17455 pclmul_type
= *codep
++ & 0xff;
17456 switch (pclmul_type
)
17467 if (pclmul_type
< ARRAY_SIZE (pclmul_op
))
17470 char *p
= mnemonicendp
- 3;
17475 sprintf (p
, "%s%s", pclmul_op
[pclmul_type
].name
, suffix
);
17476 mnemonicendp
+= pclmul_op
[pclmul_type
].len
;
17480 /* We have a reserved extension byte. Output it directly. */
17481 scratchbuf
[0] = '$';
17482 print_operand_value (scratchbuf
+ 1, 1, pclmul_type
);
17483 oappend_maybe_intel (scratchbuf
);
17484 scratchbuf
[0] = '\0';
17489 MOVBE_Fixup (int bytemode
, int sizeflag
)
17491 /* Add proper suffix to "movbe". */
17492 char *p
= mnemonicendp
;
17501 if (sizeflag
& SUFFIX_ALWAYS
)
17507 if (sizeflag
& DFLAG
)
17511 used_prefixes
|= (prefixes
& PREFIX_DATA
);
17516 oappend (INTERNAL_DISASSEMBLER_ERROR
);
17523 OP_M (bytemode
, sizeflag
);
17527 OP_LWPCB_E (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
17530 const char **names
;
17532 /* Skip mod/rm byte. */
17546 oappend (names
[reg
]);
17550 OP_LWP_E (int bytemode ATTRIBUTE_UNUSED
, int sizeflag ATTRIBUTE_UNUSED
)
17552 const char **names
;
17559 oappend (names
[vex
.register_specifier
]);
17563 OP_Mask (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
17566 || (bytemode
!= mask_mode
&& bytemode
!= mask_bd_mode
))
17570 if ((rex
& REX_R
) != 0 || !vex
.r
)
17576 oappend (names_mask
[modrm
.reg
]);
17580 OP_Rounding (int bytemode
, int sizeflag ATTRIBUTE_UNUSED
)
17583 || (bytemode
!= evex_rounding_mode
17584 && bytemode
!= evex_sae_mode
))
17586 if (modrm
.mod
== 3 && vex
.b
)
17589 case evex_rounding_mode
:
17590 oappend (names_rounding
[vex
.ll
]);
17592 case evex_sae_mode
: