Commit | Line | Data |
---|---|---|
252b5132 | 1 | /* Print i386 instructions for GDB, the GNU debugger. |
6f2750fe | 2 | Copyright (C) 1988-2016 Free Software Foundation, Inc. |
252b5132 | 3 | |
9b201bb5 | 4 | This file is part of the GNU opcodes library. |
20f0a1fc | 5 | |
9b201bb5 | 6 | This library is free software; you can redistribute it and/or modify |
20f0a1fc | 7 | it under the terms of the GNU General Public License as published by |
9b201bb5 NC |
8 | the Free Software Foundation; either version 3, or (at your option) |
9 | any later version. | |
20f0a1fc | 10 | |
9b201bb5 NC |
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. | |
20f0a1fc NC |
15 | |
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 | |
9b201bb5 NC |
18 | Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, |
19 | MA 02110-1301, USA. */ | |
20 | ||
20f0a1fc NC |
21 | |
22 | /* 80386 instruction printer by Pace Willisson (pace@prep.ai.mit.edu) | |
23 | July 1988 | |
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). */ | |
27 | ||
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. */ | |
252b5132 | 34 | |
252b5132 | 35 | #include "sysdep.h" |
dabbade6 | 36 | #include "dis-asm.h" |
252b5132 | 37 | #include "opintl.h" |
0b1cf022 | 38 | #include "opcode/i386.h" |
85f10a01 | 39 | #include "libiberty.h" |
252b5132 RH |
40 | |
41 | #include <setjmp.h> | |
42 | ||
26ca5450 AJ |
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); | |
c0f3af97 | 52 | static void OP_E_register (int, int); |
c1e679ec | 53 | static void OP_E_memory (int, int); |
5d669648 | 54 | static void print_displacement (char *, bfd_vma); |
26ca5450 AJ |
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); | |
b844680a | 62 | static void OP_Skip_MODRM (int, int); |
26ca5450 AJ |
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); | |
6f74c397 | 79 | static void OP_R (int, int); |
26ca5450 AJ |
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); | |
4d9567e0 MM |
84 | static void OP_EMC (int,int); |
85 | static void OP_MXC (int,int); | |
26ca5450 AJ |
86 | static void OP_MS (int, int); |
87 | static void OP_XS (int, int); | |
cc0ec051 | 88 | static void OP_M (int, int); |
c0f3af97 L |
89 | static void OP_VEX (int, int); |
90 | static void OP_EX_Vex (int, int); | |
922d8de8 | 91 | static void OP_EX_VexW (int, int); |
a683cc34 | 92 | static void OP_EX_VexImmW (int, int); |
c0f3af97 | 93 | static void OP_XMM_Vex (int, int); |
922d8de8 | 94 | static void OP_XMM_VexW (int, int); |
43234a1e | 95 | static void OP_Rounding (int, int); |
c0f3af97 L |
96 | static void OP_REG_VexI4 (int, int); |
97 | static void PCLMUL_Fixup (int, int); | |
922d8de8 | 98 | static void VEXI4_Fixup (int, int); |
c0f3af97 L |
99 | static void VZERO_Fixup (int, int); |
100 | static void VCMP_Fixup (int, int); | |
43234a1e | 101 | static void VPCMP_Fixup (int, int); |
cc0ec051 | 102 | static void OP_0f07 (int, int); |
b844680a L |
103 | static void OP_Monitor (int, int); |
104 | static void OP_Mwait (int, int); | |
9916071f | 105 | static void OP_Mwaitx (int, int); |
46e883c5 L |
106 | static void NOP_Fixup1 (int, int); |
107 | static void NOP_Fixup2 (int, int); | |
26ca5450 | 108 | static void OP_3DNowSuffix (int, int); |
ad19981d | 109 | static void CMP_Fixup (int, int); |
26ca5450 | 110 | static void BadOp (void); |
35c52694 | 111 | static void REP_Fixup (int, int); |
7e8b059b | 112 | static void BND_Fixup (int, int); |
42164a71 L |
113 | static void HLE_Fixup1 (int, int); |
114 | static void HLE_Fixup2 (int, int); | |
115 | static void HLE_Fixup3 (int, int); | |
f5804c90 | 116 | static void CMPXCHG8B_Fixup (int, int); |
42903f7f | 117 | static void XMM_Fixup (int, int); |
381d071f | 118 | static void CRC32_Fixup (int, int); |
eacc9c89 | 119 | static void FXSAVE_Fixup (int, int); |
f88c9eb0 SP |
120 | static void OP_LWPCB_E (int, int); |
121 | static void OP_LWP_E (int, int); | |
5dd85c99 SP |
122 | static void OP_Vex_2src_1 (int, int); |
123 | static void OP_Vex_2src_2 (int, int); | |
c1e679ec | 124 | |
f1f8f695 | 125 | static void MOVBE_Fixup (int, int); |
252b5132 | 126 | |
43234a1e L |
127 | static void OP_Mask (int, int); |
128 | ||
6608db57 | 129 | struct dis_private { |
252b5132 RH |
130 | /* Points to first byte not fetched. */ |
131 | bfd_byte *max_fetched; | |
0b1cf022 | 132 | bfd_byte the_buffer[MAX_MNEM_SIZE]; |
252b5132 | 133 | bfd_vma insn_start; |
e396998b | 134 | int orig_sizeflag; |
8df14d78 | 135 | OPCODES_SIGJMP_BUF bailout; |
252b5132 RH |
136 | }; |
137 | ||
cb712a9e L |
138 | enum address_mode |
139 | { | |
140 | mode_16bit, | |
141 | mode_32bit, | |
142 | mode_64bit | |
143 | }; | |
144 | ||
145 | enum address_mode address_mode; | |
52b15da3 | 146 | |
5076851f ILT |
147 | /* Flags for the prefixes for the current instruction. See below. */ |
148 | static int prefixes; | |
149 | ||
52b15da3 JH |
150 | /* REX prefix the current instruction. See below. */ |
151 | static int rex; | |
152 | /* Bits of REX we've already used. */ | |
153 | static int rex_used; | |
d869730d | 154 | /* REX bits in original REX prefix ignored. */ |
c0f3af97 | 155 | static int rex_ignored; |
52b15da3 JH |
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) \ | |
161 | { \ | |
162 | if (value) \ | |
161a04f6 L |
163 | { \ |
164 | if ((rex & value)) \ | |
165 | rex_used |= (value) | REX_OPCODE; \ | |
166 | } \ | |
52b15da3 | 167 | else \ |
161a04f6 | 168 | rex_used |= REX_OPCODE; \ |
52b15da3 JH |
169 | } |
170 | ||
7d421014 ILT |
171 | /* Flags for prefixes which we somehow handled when printing the |
172 | current instruction. */ | |
173 | static int used_prefixes; | |
174 | ||
5076851f ILT |
175 | /* Flags stored in PREFIXES. */ |
176 | #define PREFIX_REPZ 1 | |
177 | #define PREFIX_REPNZ 2 | |
178 | #define PREFIX_LOCK 4 | |
179 | #define PREFIX_CS 8 | |
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 | |
188 | ||
252b5132 RH |
189 | /* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive) |
190 | to ADDR (exclusive) are valid. Returns 1 for success, longjmps | |
191 | on error. */ | |
192 | #define FETCH_DATA(info, addr) \ | |
6608db57 | 193 | ((addr) <= ((struct dis_private *) (info->private_data))->max_fetched \ |
252b5132 RH |
194 | ? 1 : fetch_data ((info), (addr))) |
195 | ||
196 | static int | |
26ca5450 | 197 | fetch_data (struct disassemble_info *info, bfd_byte *addr) |
252b5132 RH |
198 | { |
199 | int status; | |
6608db57 | 200 | struct dis_private *priv = (struct dis_private *) info->private_data; |
252b5132 RH |
201 | bfd_vma start = priv->insn_start + (priv->max_fetched - priv->the_buffer); |
202 | ||
0b1cf022 | 203 | if (addr <= priv->the_buffer + MAX_MNEM_SIZE) |
272c9217 JB |
204 | status = (*info->read_memory_func) (start, |
205 | priv->max_fetched, | |
206 | addr - priv->max_fetched, | |
207 | info); | |
208 | else | |
209 | status = -1; | |
252b5132 RH |
210 | if (status != 0) |
211 | { | |
7d421014 | 212 | /* If we did manage to read at least one byte, then |
db6eb5be AM |
213 | print_insn_i386 will do something sensible. Otherwise, print |
214 | an error. We do that here because this is where we know | |
215 | STATUS. */ | |
7d421014 | 216 | if (priv->max_fetched == priv->the_buffer) |
5076851f | 217 | (*info->memory_error_func) (status, start, info); |
8df14d78 | 218 | OPCODES_SIGLONGJMP (priv->bailout, 1); |
252b5132 RH |
219 | } |
220 | else | |
221 | priv->max_fetched = addr; | |
222 | return 1; | |
223 | } | |
224 | ||
bf890a93 | 225 | /* Possible values for prefix requirement. */ |
507bd325 L |
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) | |
232 | ||
233 | /* Opcode prefixes. */ | |
234 | #define PREFIX_OPCODE (PREFIX_REPZ \ | |
235 | | PREFIX_REPNZ \ | |
236 | | PREFIX_DATA) | |
237 | ||
238 | /* Prefixes ignored. */ | |
239 | #define PREFIX_IGNORED (PREFIX_IGNORED_REPZ \ | |
240 | | PREFIX_IGNORED_REPNZ \ | |
241 | | PREFIX_IGNORED_DATA) | |
bf890a93 | 242 | |
ce518a5f | 243 | #define XX { NULL, 0 } |
507bd325 | 244 | #define Bad_Opcode NULL, { { NULL, 0 } }, 0 |
ce518a5f L |
245 | |
246 | #define Eb { OP_E, b_mode } | |
7e8b059b | 247 | #define Ebnd { OP_E, bnd_mode } |
b6169b20 | 248 | #define EbS { OP_E, b_swap_mode } |
ce518a5f | 249 | #define Ev { OP_E, v_mode } |
7e8b059b | 250 | #define Ev_bnd { OP_E, v_bnd_mode } |
b6169b20 | 251 | #define EvS { OP_E, v_swap_mode } |
ce518a5f L |
252 | #define Ed { OP_E, d_mode } |
253 | #define Edq { OP_E, dq_mode } | |
254 | #define Edqw { OP_E, dqw_mode } | |
42903f7f | 255 | #define Edqb { OP_E, dqb_mode } |
1ba585e8 IT |
256 | #define Edb { OP_E, db_mode } |
257 | #define Edw { OP_E, dw_mode } | |
42903f7f | 258 | #define Edqd { OP_E, dqd_mode } |
09335d05 | 259 | #define Eq { OP_E, q_mode } |
07f5af7d | 260 | #define indirEv { OP_indirE, indir_v_mode } |
ce518a5f L |
261 | #define indirEp { OP_indirE, f_mode } |
262 | #define stackEv { OP_E, stack_v_mode } | |
263 | #define Em { OP_E, m_mode } | |
264 | #define Ew { OP_E, w_mode } | |
265 | #define M { OP_M, 0 } /* lea, lgdt, etc. */ | |
34b772a6 | 266 | #define Ma { OP_M, a_mode } |
b844680a | 267 | #define Mb { OP_M, b_mode } |
d9a5e5e5 | 268 | #define Md { OP_M, d_mode } |
f1f8f695 | 269 | #define Mo { OP_M, o_mode } |
ce518a5f L |
270 | #define Mp { OP_M, f_mode } /* 32 or 48 bit memory operand for LDS, LES etc */ |
271 | #define Mq { OP_M, q_mode } | |
4ee52178 | 272 | #define Mx { OP_M, x_mode } |
c0f3af97 | 273 | #define Mxmm { OP_M, xmm_mode } |
ce518a5f | 274 | #define Gb { OP_G, b_mode } |
7e8b059b | 275 | #define Gbnd { OP_G, bnd_mode } |
ce518a5f L |
276 | #define Gv { OP_G, v_mode } |
277 | #define Gd { OP_G, d_mode } | |
278 | #define Gdq { OP_G, dq_mode } | |
279 | #define Gm { OP_G, m_mode } | |
280 | #define Gw { OP_G, w_mode } | |
6f74c397 | 281 | #define Rd { OP_R, d_mode } |
43234a1e | 282 | #define Rdq { OP_R, dq_mode } |
6f74c397 | 283 | #define Rm { OP_R, m_mode } |
ce518a5f L |
284 | #define Ib { OP_I, b_mode } |
285 | #define sIb { OP_sI, b_mode } /* sign extened byte */ | |
e3949f17 | 286 | #define sIbT { OP_sI, b_T_mode } /* sign extened byte like 'T' */ |
ce518a5f | 287 | #define Iv { OP_I, v_mode } |
7bb15c6f | 288 | #define sIv { OP_sI, v_mode } |
ce518a5f L |
289 | #define Iq { OP_I, q_mode } |
290 | #define Iv64 { OP_I64, v_mode } | |
291 | #define Iw { OP_I, w_mode } | |
292 | #define I1 { OP_I, const_1_mode } | |
293 | #define Jb { OP_J, b_mode } | |
294 | #define Jv { OP_J, v_mode } | |
295 | #define Cm { OP_C, m_mode } | |
296 | #define Dm { OP_D, m_mode } | |
297 | #define Td { OP_T, d_mode } | |
b844680a | 298 | #define Skip_MODRM { OP_Skip_MODRM, 0 } |
ce518a5f L |
299 | |
300 | #define RMeAX { OP_REG, eAX_reg } | |
301 | #define RMeBX { OP_REG, eBX_reg } | |
302 | #define RMeCX { OP_REG, eCX_reg } | |
303 | #define RMeDX { OP_REG, eDX_reg } | |
304 | #define RMeSP { OP_REG, eSP_reg } | |
305 | #define RMeBP { OP_REG, eBP_reg } | |
306 | #define RMeSI { OP_REG, eSI_reg } | |
307 | #define RMeDI { OP_REG, eDI_reg } | |
308 | #define RMrAX { OP_REG, rAX_reg } | |
309 | #define RMrBX { OP_REG, rBX_reg } | |
310 | #define RMrCX { OP_REG, rCX_reg } | |
311 | #define RMrDX { OP_REG, rDX_reg } | |
312 | #define RMrSP { OP_REG, rSP_reg } | |
313 | #define RMrBP { OP_REG, rBP_reg } | |
314 | #define RMrSI { OP_REG, rSI_reg } | |
315 | #define RMrDI { OP_REG, rDI_reg } | |
316 | #define RMAL { OP_REG, al_reg } | |
ce518a5f L |
317 | #define RMCL { OP_REG, cl_reg } |
318 | #define RMDL { OP_REG, dl_reg } | |
319 | #define RMBL { OP_REG, bl_reg } | |
320 | #define RMAH { OP_REG, ah_reg } | |
321 | #define RMCH { OP_REG, ch_reg } | |
322 | #define RMDH { OP_REG, dh_reg } | |
323 | #define RMBH { OP_REG, bh_reg } | |
324 | #define RMAX { OP_REG, ax_reg } | |
325 | #define RMDX { OP_REG, dx_reg } | |
326 | ||
327 | #define eAX { OP_IMREG, eAX_reg } | |
328 | #define eBX { OP_IMREG, eBX_reg } | |
329 | #define eCX { OP_IMREG, eCX_reg } | |
330 | #define eDX { OP_IMREG, eDX_reg } | |
331 | #define eSP { OP_IMREG, eSP_reg } | |
332 | #define eBP { OP_IMREG, eBP_reg } | |
333 | #define eSI { OP_IMREG, eSI_reg } | |
334 | #define eDI { OP_IMREG, eDI_reg } | |
335 | #define AL { OP_IMREG, al_reg } | |
336 | #define CL { OP_IMREG, cl_reg } | |
337 | #define DL { OP_IMREG, dl_reg } | |
338 | #define BL { OP_IMREG, bl_reg } | |
339 | #define AH { OP_IMREG, ah_reg } | |
340 | #define CH { OP_IMREG, ch_reg } | |
341 | #define DH { OP_IMREG, dh_reg } | |
342 | #define BH { OP_IMREG, bh_reg } | |
343 | #define AX { OP_IMREG, ax_reg } | |
344 | #define DX { OP_IMREG, dx_reg } | |
345 | #define zAX { OP_IMREG, z_mode_ax_reg } | |
346 | #define indirDX { OP_IMREG, indir_dx_reg } | |
347 | ||
348 | #define Sw { OP_SEG, w_mode } | |
349 | #define Sv { OP_SEG, v_mode } | |
350 | #define Ap { OP_DIR, 0 } | |
351 | #define Ob { OP_OFF64, b_mode } | |
352 | #define Ov { OP_OFF64, v_mode } | |
353 | #define Xb { OP_DSreg, eSI_reg } | |
354 | #define Xv { OP_DSreg, eSI_reg } | |
355 | #define Xz { OP_DSreg, eSI_reg } | |
356 | #define Yb { OP_ESreg, eDI_reg } | |
357 | #define Yv { OP_ESreg, eDI_reg } | |
358 | #define DSBX { OP_DSreg, eBX_reg } | |
359 | ||
360 | #define es { OP_REG, es_reg } | |
361 | #define ss { OP_REG, ss_reg } | |
362 | #define cs { OP_REG, cs_reg } | |
363 | #define ds { OP_REG, ds_reg } | |
364 | #define fs { OP_REG, fs_reg } | |
365 | #define gs { OP_REG, gs_reg } | |
366 | ||
367 | #define MX { OP_MMX, 0 } | |
368 | #define XM { OP_XMM, 0 } | |
539f890d | 369 | #define XMScalar { OP_XMM, scalar_mode } |
6c30d220 | 370 | #define XMGatherQ { OP_XMM, vex_vsib_q_w_dq_mode } |
c0f3af97 | 371 | #define XMM { OP_XMM, xmm_mode } |
43234a1e | 372 | #define XMxmmq { OP_XMM, xmmq_mode } |
ce518a5f | 373 | #define EM { OP_EM, v_mode } |
b6169b20 | 374 | #define EMS { OP_EM, v_swap_mode } |
09a2c6cf | 375 | #define EMd { OP_EM, d_mode } |
14051056 | 376 | #define EMx { OP_EM, x_mode } |
8976381e | 377 | #define EXw { OP_EX, w_mode } |
09a2c6cf | 378 | #define EXd { OP_EX, d_mode } |
539f890d | 379 | #define EXdScalar { OP_EX, d_scalar_mode } |
fa99fab2 | 380 | #define EXdS { OP_EX, d_swap_mode } |
43234a1e | 381 | #define EXdScalarS { OP_EX, d_scalar_swap_mode } |
09a2c6cf | 382 | #define EXq { OP_EX, q_mode } |
539f890d L |
383 | #define EXqScalar { OP_EX, q_scalar_mode } |
384 | #define EXqScalarS { OP_EX, q_scalar_swap_mode } | |
b6169b20 | 385 | #define EXqS { OP_EX, q_swap_mode } |
09a2c6cf | 386 | #define EXx { OP_EX, x_mode } |
b6169b20 | 387 | #define EXxS { OP_EX, x_swap_mode } |
c0f3af97 | 388 | #define EXxmm { OP_EX, xmm_mode } |
43234a1e | 389 | #define EXymm { OP_EX, ymm_mode } |
c0f3af97 | 390 | #define EXxmmq { OP_EX, xmmq_mode } |
43234a1e | 391 | #define EXEvexHalfBcstXmmq { OP_EX, evex_half_bcst_xmmq_mode } |
6c30d220 L |
392 | #define EXxmm_mb { OP_EX, xmm_mb_mode } |
393 | #define EXxmm_mw { OP_EX, xmm_mw_mode } | |
394 | #define EXxmm_md { OP_EX, xmm_md_mode } | |
395 | #define EXxmm_mq { OP_EX, xmm_mq_mode } | |
43234a1e | 396 | #define EXxmm_mdq { OP_EX, xmm_mdq_mode } |
6c30d220 L |
397 | #define EXxmmdw { OP_EX, xmmdw_mode } |
398 | #define EXxmmqd { OP_EX, xmmqd_mode } | |
c0f3af97 | 399 | #define EXymmq { OP_EX, ymmq_mode } |
0bfee649 | 400 | #define EXVexWdq { OP_EX, vex_w_dq_mode } |
1c480963 | 401 | #define EXVexWdqScalar { OP_EX, vex_scalar_w_dq_mode } |
43234a1e L |
402 | #define EXEvexXGscat { OP_EX, evex_x_gscat_mode } |
403 | #define EXEvexXNoBcst { OP_EX, evex_x_nobcst_mode } | |
ce518a5f L |
404 | #define MS { OP_MS, v_mode } |
405 | #define XS { OP_XS, v_mode } | |
09335d05 | 406 | #define EMCq { OP_EMC, q_mode } |
ce518a5f | 407 | #define MXC { OP_MXC, 0 } |
ce518a5f | 408 | #define OPSUF { OP_3DNowSuffix, 0 } |
ad19981d | 409 | #define CMP { CMP_Fixup, 0 } |
42903f7f | 410 | #define XMM0 { XMM_Fixup, 0 } |
eacc9c89 | 411 | #define FXSAVE { FXSAVE_Fixup, 0 } |
5dd85c99 SP |
412 | #define Vex_2src_1 { OP_Vex_2src_1, 0 } |
413 | #define Vex_2src_2 { OP_Vex_2src_2, 0 } | |
252b5132 | 414 | |
c0f3af97 | 415 | #define Vex { OP_VEX, vex_mode } |
539f890d | 416 | #define VexScalar { OP_VEX, vex_scalar_mode } |
6c30d220 | 417 | #define VexGatherQ { OP_VEX, vex_vsib_q_w_dq_mode } |
c0f3af97 L |
418 | #define Vex128 { OP_VEX, vex128_mode } |
419 | #define Vex256 { OP_VEX, vex256_mode } | |
cb21baef | 420 | #define VexGdq { OP_VEX, dq_mode } |
922d8de8 | 421 | #define VexI4 { VEXI4_Fixup, 0} |
c0f3af97 | 422 | #define EXdVex { OP_EX_Vex, d_mode } |
fa99fab2 | 423 | #define EXdVexS { OP_EX_Vex, d_swap_mode } |
539f890d | 424 | #define EXdVexScalarS { OP_EX_Vex, d_scalar_swap_mode } |
c0f3af97 | 425 | #define EXqVex { OP_EX_Vex, q_mode } |
fa99fab2 | 426 | #define EXqVexS { OP_EX_Vex, q_swap_mode } |
539f890d | 427 | #define EXqVexScalarS { OP_EX_Vex, q_scalar_swap_mode } |
922d8de8 DR |
428 | #define EXVexW { OP_EX_VexW, x_mode } |
429 | #define EXdVexW { OP_EX_VexW, d_mode } | |
430 | #define EXqVexW { OP_EX_VexW, q_mode } | |
a683cc34 | 431 | #define EXVexImmW { OP_EX_VexImmW, x_mode } |
c0f3af97 | 432 | #define XMVex { OP_XMM_Vex, 0 } |
539f890d | 433 | #define XMVexScalar { OP_XMM_Vex, scalar_mode } |
922d8de8 | 434 | #define XMVexW { OP_XMM_VexW, 0 } |
c0f3af97 L |
435 | #define XMVexI4 { OP_REG_VexI4, x_mode } |
436 | #define PCLMUL { PCLMUL_Fixup, 0 } | |
437 | #define VZERO { VZERO_Fixup, 0 } | |
438 | #define VCMP { VCMP_Fixup, 0 } | |
43234a1e L |
439 | #define VPCMP { VPCMP_Fixup, 0 } |
440 | ||
441 | #define EXxEVexR { OP_Rounding, evex_rounding_mode } | |
442 | #define EXxEVexS { OP_Rounding, evex_sae_mode } | |
443 | ||
444 | #define XMask { OP_Mask, mask_mode } | |
445 | #define MaskG { OP_G, mask_mode } | |
446 | #define MaskE { OP_E, mask_mode } | |
1ba585e8 | 447 | #define MaskBDE { OP_E, mask_bd_mode } |
43234a1e L |
448 | #define MaskR { OP_R, mask_mode } |
449 | #define MaskVex { OP_VEX, mask_mode } | |
c0f3af97 | 450 | |
6c30d220 | 451 | #define MVexVSIBDWpX { OP_M, vex_vsib_d_w_dq_mode } |
5fc35d96 | 452 | #define MVexVSIBDQWpX { OP_M, vex_vsib_d_w_d_mode } |
6c30d220 | 453 | #define MVexVSIBQWpX { OP_M, vex_vsib_q_w_dq_mode } |
5fc35d96 | 454 | #define MVexVSIBQDWpX { OP_M, vex_vsib_q_w_d_mode } |
6c30d220 | 455 | |
35c52694 | 456 | /* Used handle "rep" prefix for string instructions. */ |
ce518a5f L |
457 | #define Xbr { REP_Fixup, eSI_reg } |
458 | #define Xvr { REP_Fixup, eSI_reg } | |
459 | #define Ybr { REP_Fixup, eDI_reg } | |
460 | #define Yvr { REP_Fixup, eDI_reg } | |
461 | #define Yzr { REP_Fixup, eDI_reg } | |
462 | #define indirDXr { REP_Fixup, indir_dx_reg } | |
463 | #define ALr { REP_Fixup, al_reg } | |
464 | #define eAXr { REP_Fixup, eAX_reg } | |
465 | ||
42164a71 L |
466 | /* Used handle HLE prefix for lockable instructions. */ |
467 | #define Ebh1 { HLE_Fixup1, b_mode } | |
468 | #define Evh1 { HLE_Fixup1, v_mode } | |
469 | #define Ebh2 { HLE_Fixup2, b_mode } | |
470 | #define Evh2 { HLE_Fixup2, v_mode } | |
471 | #define Ebh3 { HLE_Fixup3, b_mode } | |
472 | #define Evh3 { HLE_Fixup3, v_mode } | |
473 | ||
7e8b059b L |
474 | #define BND { BND_Fixup, 0 } |
475 | ||
ce518a5f L |
476 | #define cond_jump_flag { NULL, cond_jump_mode } |
477 | #define loop_jcxz_flag { NULL, loop_jcxz_mode } | |
3ffd33cf | 478 | |
252b5132 | 479 | /* bits in sizeflag */ |
252b5132 | 480 | #define SUFFIX_ALWAYS 4 |
252b5132 RH |
481 | #define AFLAG 2 |
482 | #define DFLAG 1 | |
483 | ||
51e7da1b L |
484 | enum |
485 | { | |
486 | /* byte operand */ | |
487 | b_mode = 1, | |
488 | /* byte operand with operand swapped */ | |
3873ba12 | 489 | b_swap_mode, |
e3949f17 L |
490 | /* byte operand, sign extend like 'T' suffix */ |
491 | b_T_mode, | |
51e7da1b | 492 | /* operand size depends on prefixes */ |
3873ba12 | 493 | v_mode, |
51e7da1b | 494 | /* operand size depends on prefixes with operand swapped */ |
3873ba12 | 495 | v_swap_mode, |
51e7da1b | 496 | /* word operand */ |
3873ba12 | 497 | w_mode, |
51e7da1b | 498 | /* double word operand */ |
3873ba12 | 499 | d_mode, |
51e7da1b | 500 | /* double word operand with operand swapped */ |
3873ba12 | 501 | d_swap_mode, |
51e7da1b | 502 | /* quad word operand */ |
3873ba12 | 503 | q_mode, |
51e7da1b | 504 | /* quad word operand with operand swapped */ |
3873ba12 | 505 | q_swap_mode, |
51e7da1b | 506 | /* ten-byte operand */ |
3873ba12 | 507 | t_mode, |
43234a1e L |
508 | /* 16-byte XMM, 32-byte YMM or 64-byte ZMM operand. In EVEX with |
509 | broadcast enabled. */ | |
3873ba12 | 510 | x_mode, |
43234a1e L |
511 | /* Similar to x_mode, but with different EVEX mem shifts. */ |
512 | evex_x_gscat_mode, | |
513 | /* Similar to x_mode, but with disabled broadcast. */ | |
514 | evex_x_nobcst_mode, | |
515 | /* Similar to x_mode, but with operands swapped and disabled broadcast | |
516 | in EVEX. */ | |
3873ba12 | 517 | x_swap_mode, |
51e7da1b | 518 | /* 16-byte XMM operand */ |
3873ba12 | 519 | xmm_mode, |
43234a1e L |
520 | /* XMM, XMM or YMM register operand, or quad word, xmmword or ymmword |
521 | memory operand (depending on vector length). Broadcast isn't | |
522 | allowed. */ | |
3873ba12 | 523 | xmmq_mode, |
43234a1e L |
524 | /* Same as xmmq_mode, but broadcast is allowed. */ |
525 | evex_half_bcst_xmmq_mode, | |
6c30d220 L |
526 | /* XMM register or byte memory operand */ |
527 | xmm_mb_mode, | |
528 | /* XMM register or word memory operand */ | |
529 | xmm_mw_mode, | |
530 | /* XMM register or double word memory operand */ | |
531 | xmm_md_mode, | |
532 | /* XMM register or quad word memory operand */ | |
533 | xmm_mq_mode, | |
43234a1e L |
534 | /* XMM register or double/quad word memory operand, depending on |
535 | VEX.W. */ | |
536 | xmm_mdq_mode, | |
537 | /* 16-byte XMM, word, double word or quad word operand. */ | |
6c30d220 | 538 | xmmdw_mode, |
43234a1e | 539 | /* 16-byte XMM, double word, quad word operand or xmm word operand. */ |
6c30d220 | 540 | xmmqd_mode, |
43234a1e L |
541 | /* 32-byte YMM operand */ |
542 | ymm_mode, | |
543 | /* quad word, ymmword or zmmword memory operand. */ | |
3873ba12 | 544 | ymmq_mode, |
6c30d220 L |
545 | /* 32-byte YMM or 16-byte word operand */ |
546 | ymmxmm_mode, | |
51e7da1b | 547 | /* d_mode in 32bit, q_mode in 64bit mode. */ |
3873ba12 | 548 | m_mode, |
51e7da1b | 549 | /* pair of v_mode operands */ |
3873ba12 L |
550 | a_mode, |
551 | cond_jump_mode, | |
552 | loop_jcxz_mode, | |
7e8b059b | 553 | v_bnd_mode, |
51e7da1b | 554 | /* operand size depends on REX prefixes. */ |
3873ba12 | 555 | dq_mode, |
51e7da1b | 556 | /* registers like dq_mode, memory like w_mode. */ |
3873ba12 | 557 | dqw_mode, |
7e8b059b | 558 | bnd_mode, |
51e7da1b | 559 | /* 4- or 6-byte pointer operand */ |
3873ba12 L |
560 | f_mode, |
561 | const_1_mode, | |
07f5af7d L |
562 | /* v_mode for indirect branch opcodes. */ |
563 | indir_v_mode, | |
51e7da1b | 564 | /* v_mode for stack-related opcodes. */ |
3873ba12 | 565 | stack_v_mode, |
51e7da1b | 566 | /* non-quad operand size depends on prefixes */ |
3873ba12 | 567 | z_mode, |
51e7da1b | 568 | /* 16-byte operand */ |
3873ba12 | 569 | o_mode, |
51e7da1b | 570 | /* registers like dq_mode, memory like b_mode. */ |
3873ba12 | 571 | dqb_mode, |
1ba585e8 IT |
572 | /* registers like d_mode, memory like b_mode. */ |
573 | db_mode, | |
574 | /* registers like d_mode, memory like w_mode. */ | |
575 | dw_mode, | |
51e7da1b | 576 | /* registers like dq_mode, memory like d_mode. */ |
3873ba12 | 577 | dqd_mode, |
51e7da1b | 578 | /* normal vex mode */ |
3873ba12 | 579 | vex_mode, |
51e7da1b | 580 | /* 128bit vex mode */ |
3873ba12 | 581 | vex128_mode, |
51e7da1b | 582 | /* 256bit vex mode */ |
3873ba12 | 583 | vex256_mode, |
51e7da1b | 584 | /* operand size depends on the VEX.W bit. */ |
3873ba12 | 585 | vex_w_dq_mode, |
d55ee72f | 586 | |
6c30d220 L |
587 | /* Similar to vex_w_dq_mode, with VSIB dword indices. */ |
588 | vex_vsib_d_w_dq_mode, | |
5fc35d96 IT |
589 | /* Similar to vex_vsib_d_w_dq_mode, with smaller memory. */ |
590 | vex_vsib_d_w_d_mode, | |
6c30d220 L |
591 | /* Similar to vex_w_dq_mode, with VSIB qword indices. */ |
592 | vex_vsib_q_w_dq_mode, | |
5fc35d96 IT |
593 | /* Similar to vex_vsib_q_w_dq_mode, with smaller memory. */ |
594 | vex_vsib_q_w_d_mode, | |
6c30d220 | 595 | |
539f890d L |
596 | /* scalar, ignore vector length. */ |
597 | scalar_mode, | |
598 | /* like d_mode, ignore vector length. */ | |
599 | d_scalar_mode, | |
600 | /* like d_swap_mode, ignore vector length. */ | |
601 | d_scalar_swap_mode, | |
602 | /* like q_mode, ignore vector length. */ | |
603 | q_scalar_mode, | |
604 | /* like q_swap_mode, ignore vector length. */ | |
605 | q_scalar_swap_mode, | |
606 | /* like vex_mode, ignore vector length. */ | |
607 | vex_scalar_mode, | |
1c480963 L |
608 | /* like vex_w_dq_mode, ignore vector length. */ |
609 | vex_scalar_w_dq_mode, | |
539f890d | 610 | |
43234a1e L |
611 | /* Static rounding. */ |
612 | evex_rounding_mode, | |
613 | /* Supress all exceptions. */ | |
614 | evex_sae_mode, | |
615 | ||
616 | /* Mask register operand. */ | |
617 | mask_mode, | |
1ba585e8 IT |
618 | /* Mask register operand. */ |
619 | mask_bd_mode, | |
43234a1e | 620 | |
3873ba12 L |
621 | es_reg, |
622 | cs_reg, | |
623 | ss_reg, | |
624 | ds_reg, | |
625 | fs_reg, | |
626 | gs_reg, | |
d55ee72f | 627 | |
3873ba12 L |
628 | eAX_reg, |
629 | eCX_reg, | |
630 | eDX_reg, | |
631 | eBX_reg, | |
632 | eSP_reg, | |
633 | eBP_reg, | |
634 | eSI_reg, | |
635 | eDI_reg, | |
d55ee72f | 636 | |
3873ba12 L |
637 | al_reg, |
638 | cl_reg, | |
639 | dl_reg, | |
640 | bl_reg, | |
641 | ah_reg, | |
642 | ch_reg, | |
643 | dh_reg, | |
644 | bh_reg, | |
d55ee72f | 645 | |
3873ba12 L |
646 | ax_reg, |
647 | cx_reg, | |
648 | dx_reg, | |
649 | bx_reg, | |
650 | sp_reg, | |
651 | bp_reg, | |
652 | si_reg, | |
653 | di_reg, | |
d55ee72f | 654 | |
3873ba12 L |
655 | rAX_reg, |
656 | rCX_reg, | |
657 | rDX_reg, | |
658 | rBX_reg, | |
659 | rSP_reg, | |
660 | rBP_reg, | |
661 | rSI_reg, | |
662 | rDI_reg, | |
d55ee72f | 663 | |
3873ba12 L |
664 | z_mode_ax_reg, |
665 | indir_dx_reg | |
51e7da1b | 666 | }; |
252b5132 | 667 | |
51e7da1b L |
668 | enum |
669 | { | |
670 | FLOATCODE = 1, | |
3873ba12 L |
671 | USE_REG_TABLE, |
672 | USE_MOD_TABLE, | |
673 | USE_RM_TABLE, | |
674 | USE_PREFIX_TABLE, | |
675 | USE_X86_64_TABLE, | |
676 | USE_3BYTE_TABLE, | |
f88c9eb0 | 677 | USE_XOP_8F_TABLE, |
3873ba12 L |
678 | USE_VEX_C4_TABLE, |
679 | USE_VEX_C5_TABLE, | |
9e30b8e0 | 680 | USE_VEX_LEN_TABLE, |
43234a1e L |
681 | USE_VEX_W_TABLE, |
682 | USE_EVEX_TABLE | |
51e7da1b | 683 | }; |
6439fc28 | 684 | |
bf890a93 | 685 | #define FLOAT NULL, { { NULL, FLOATCODE } }, 0 |
4efba78c | 686 | |
bf890a93 IT |
687 | #define DIS386(T, I) NULL, { { NULL, (T)}, { NULL, (I) } }, 0 |
688 | #define DIS386_PREFIX(T, I, P) NULL, { { NULL, (T)}, { NULL, (I) } }, P | |
1ceb70f8 L |
689 | #define REG_TABLE(I) DIS386 (USE_REG_TABLE, (I)) |
690 | #define MOD_TABLE(I) DIS386 (USE_MOD_TABLE, (I)) | |
691 | #define RM_TABLE(I) DIS386 (USE_RM_TABLE, (I)) | |
692 | #define PREFIX_TABLE(I) DIS386 (USE_PREFIX_TABLE, (I)) | |
4e7d34a6 L |
693 | #define X86_64_TABLE(I) DIS386 (USE_X86_64_TABLE, (I)) |
694 | #define THREE_BYTE_TABLE(I) DIS386 (USE_3BYTE_TABLE, (I)) | |
bf890a93 | 695 | #define THREE_BYTE_TABLE_PREFIX(I, P) DIS386_PREFIX (USE_3BYTE_TABLE, (I), P) |
f88c9eb0 | 696 | #define XOP_8F_TABLE(I) DIS386 (USE_XOP_8F_TABLE, (I)) |
c0f3af97 L |
697 | #define VEX_C4_TABLE(I) DIS386 (USE_VEX_C4_TABLE, (I)) |
698 | #define VEX_C5_TABLE(I) DIS386 (USE_VEX_C5_TABLE, (I)) | |
699 | #define VEX_LEN_TABLE(I) DIS386 (USE_VEX_LEN_TABLE, (I)) | |
9e30b8e0 | 700 | #define VEX_W_TABLE(I) DIS386 (USE_VEX_W_TABLE, (I)) |
43234a1e | 701 | #define EVEX_TABLE(I) DIS386 (USE_EVEX_TABLE, (I)) |
1ceb70f8 | 702 | |
51e7da1b L |
703 | enum |
704 | { | |
705 | REG_80 = 0, | |
3873ba12 | 706 | REG_81, |
7148c369 | 707 | REG_83, |
3873ba12 L |
708 | REG_8F, |
709 | REG_C0, | |
710 | REG_C1, | |
711 | REG_C6, | |
712 | REG_C7, | |
713 | REG_D0, | |
714 | REG_D1, | |
715 | REG_D2, | |
716 | REG_D3, | |
717 | REG_F6, | |
718 | REG_F7, | |
719 | REG_FE, | |
720 | REG_FF, | |
721 | REG_0F00, | |
722 | REG_0F01, | |
723 | REG_0F0D, | |
724 | REG_0F18, | |
725 | REG_0F71, | |
726 | REG_0F72, | |
727 | REG_0F73, | |
728 | REG_0FA6, | |
729 | REG_0FA7, | |
730 | REG_0FAE, | |
731 | REG_0FBA, | |
732 | REG_0FC7, | |
592a252b L |
733 | REG_VEX_0F71, |
734 | REG_VEX_0F72, | |
735 | REG_VEX_0F73, | |
736 | REG_VEX_0FAE, | |
f12dc422 | 737 | REG_VEX_0F38F3, |
f88c9eb0 | 738 | REG_XOP_LWPCB, |
2a2a0f38 QN |
739 | REG_XOP_LWP, |
740 | REG_XOP_TBM_01, | |
43234a1e L |
741 | REG_XOP_TBM_02, |
742 | ||
1ba585e8 | 743 | REG_EVEX_0F71, |
43234a1e L |
744 | REG_EVEX_0F72, |
745 | REG_EVEX_0F73, | |
746 | REG_EVEX_0F38C6, | |
747 | REG_EVEX_0F38C7 | |
51e7da1b | 748 | }; |
1ceb70f8 | 749 | |
51e7da1b L |
750 | enum |
751 | { | |
752 | MOD_8D = 0, | |
42164a71 L |
753 | MOD_C6_REG_7, |
754 | MOD_C7_REG_7, | |
4a357820 MZ |
755 | MOD_FF_REG_3, |
756 | MOD_FF_REG_5, | |
3873ba12 L |
757 | MOD_0F01_REG_0, |
758 | MOD_0F01_REG_1, | |
759 | MOD_0F01_REG_2, | |
760 | MOD_0F01_REG_3, | |
8eab4136 | 761 | MOD_0F01_REG_5, |
3873ba12 L |
762 | MOD_0F01_REG_7, |
763 | MOD_0F12_PREFIX_0, | |
764 | MOD_0F13, | |
765 | MOD_0F16_PREFIX_0, | |
766 | MOD_0F17, | |
767 | MOD_0F18_REG_0, | |
768 | MOD_0F18_REG_1, | |
769 | MOD_0F18_REG_2, | |
770 | MOD_0F18_REG_3, | |
d7189fa5 RM |
771 | MOD_0F18_REG_4, |
772 | MOD_0F18_REG_5, | |
773 | MOD_0F18_REG_6, | |
774 | MOD_0F18_REG_7, | |
7e8b059b L |
775 | MOD_0F1A_PREFIX_0, |
776 | MOD_0F1B_PREFIX_0, | |
777 | MOD_0F1B_PREFIX_1, | |
3873ba12 L |
778 | MOD_0F24, |
779 | MOD_0F26, | |
780 | MOD_0F2B_PREFIX_0, | |
781 | MOD_0F2B_PREFIX_1, | |
782 | MOD_0F2B_PREFIX_2, | |
783 | MOD_0F2B_PREFIX_3, | |
784 | MOD_0F51, | |
785 | MOD_0F71_REG_2, | |
786 | MOD_0F71_REG_4, | |
787 | MOD_0F71_REG_6, | |
788 | MOD_0F72_REG_2, | |
789 | MOD_0F72_REG_4, | |
790 | MOD_0F72_REG_6, | |
791 | MOD_0F73_REG_2, | |
792 | MOD_0F73_REG_3, | |
793 | MOD_0F73_REG_6, | |
794 | MOD_0F73_REG_7, | |
795 | MOD_0FAE_REG_0, | |
796 | MOD_0FAE_REG_1, | |
797 | MOD_0FAE_REG_2, | |
798 | MOD_0FAE_REG_3, | |
799 | MOD_0FAE_REG_4, | |
800 | MOD_0FAE_REG_5, | |
801 | MOD_0FAE_REG_6, | |
802 | MOD_0FAE_REG_7, | |
803 | MOD_0FB2, | |
804 | MOD_0FB4, | |
805 | MOD_0FB5, | |
a8484f96 | 806 | MOD_0FC3, |
963f3586 IT |
807 | MOD_0FC7_REG_3, |
808 | MOD_0FC7_REG_4, | |
809 | MOD_0FC7_REG_5, | |
3873ba12 L |
810 | MOD_0FC7_REG_6, |
811 | MOD_0FC7_REG_7, | |
812 | MOD_0FD7, | |
813 | MOD_0FE7_PREFIX_2, | |
814 | MOD_0FF0_PREFIX_3, | |
815 | MOD_0F382A_PREFIX_2, | |
816 | MOD_62_32BIT, | |
817 | MOD_C4_32BIT, | |
818 | MOD_C5_32BIT, | |
592a252b L |
819 | MOD_VEX_0F12_PREFIX_0, |
820 | MOD_VEX_0F13, | |
821 | MOD_VEX_0F16_PREFIX_0, | |
822 | MOD_VEX_0F17, | |
823 | MOD_VEX_0F2B, | |
ab4e4ed5 AF |
824 | MOD_VEX_W_0_0F41_P_0_LEN_1, |
825 | MOD_VEX_W_1_0F41_P_0_LEN_1, | |
826 | MOD_VEX_W_0_0F41_P_2_LEN_1, | |
827 | MOD_VEX_W_1_0F41_P_2_LEN_1, | |
828 | MOD_VEX_W_0_0F42_P_0_LEN_1, | |
829 | MOD_VEX_W_1_0F42_P_0_LEN_1, | |
830 | MOD_VEX_W_0_0F42_P_2_LEN_1, | |
831 | MOD_VEX_W_1_0F42_P_2_LEN_1, | |
832 | MOD_VEX_W_0_0F44_P_0_LEN_1, | |
833 | MOD_VEX_W_1_0F44_P_0_LEN_1, | |
834 | MOD_VEX_W_0_0F44_P_2_LEN_1, | |
835 | MOD_VEX_W_1_0F44_P_2_LEN_1, | |
836 | MOD_VEX_W_0_0F45_P_0_LEN_1, | |
837 | MOD_VEX_W_1_0F45_P_0_LEN_1, | |
838 | MOD_VEX_W_0_0F45_P_2_LEN_1, | |
839 | MOD_VEX_W_1_0F45_P_2_LEN_1, | |
840 | MOD_VEX_W_0_0F46_P_0_LEN_1, | |
841 | MOD_VEX_W_1_0F46_P_0_LEN_1, | |
842 | MOD_VEX_W_0_0F46_P_2_LEN_1, | |
843 | MOD_VEX_W_1_0F46_P_2_LEN_1, | |
844 | MOD_VEX_W_0_0F47_P_0_LEN_1, | |
845 | MOD_VEX_W_1_0F47_P_0_LEN_1, | |
846 | MOD_VEX_W_0_0F47_P_2_LEN_1, | |
847 | MOD_VEX_W_1_0F47_P_2_LEN_1, | |
848 | MOD_VEX_W_0_0F4A_P_0_LEN_1, | |
849 | MOD_VEX_W_1_0F4A_P_0_LEN_1, | |
850 | MOD_VEX_W_0_0F4A_P_2_LEN_1, | |
851 | MOD_VEX_W_1_0F4A_P_2_LEN_1, | |
852 | MOD_VEX_W_0_0F4B_P_0_LEN_1, | |
853 | MOD_VEX_W_1_0F4B_P_0_LEN_1, | |
854 | MOD_VEX_W_0_0F4B_P_2_LEN_1, | |
592a252b L |
855 | MOD_VEX_0F50, |
856 | MOD_VEX_0F71_REG_2, | |
857 | MOD_VEX_0F71_REG_4, | |
858 | MOD_VEX_0F71_REG_6, | |
859 | MOD_VEX_0F72_REG_2, | |
860 | MOD_VEX_0F72_REG_4, | |
861 | MOD_VEX_0F72_REG_6, | |
862 | MOD_VEX_0F73_REG_2, | |
863 | MOD_VEX_0F73_REG_3, | |
864 | MOD_VEX_0F73_REG_6, | |
865 | MOD_VEX_0F73_REG_7, | |
ab4e4ed5 AF |
866 | MOD_VEX_W_0_0F91_P_0_LEN_0, |
867 | MOD_VEX_W_1_0F91_P_0_LEN_0, | |
868 | MOD_VEX_W_0_0F91_P_2_LEN_0, | |
869 | MOD_VEX_W_1_0F91_P_2_LEN_0, | |
870 | MOD_VEX_W_0_0F92_P_0_LEN_0, | |
871 | MOD_VEX_W_0_0F92_P_2_LEN_0, | |
872 | MOD_VEX_W_0_0F92_P_3_LEN_0, | |
873 | MOD_VEX_W_1_0F92_P_3_LEN_0, | |
874 | MOD_VEX_W_0_0F93_P_0_LEN_0, | |
875 | MOD_VEX_W_0_0F93_P_2_LEN_0, | |
876 | MOD_VEX_W_0_0F93_P_3_LEN_0, | |
877 | MOD_VEX_W_1_0F93_P_3_LEN_0, | |
878 | MOD_VEX_W_0_0F98_P_0_LEN_0, | |
879 | MOD_VEX_W_1_0F98_P_0_LEN_0, | |
880 | MOD_VEX_W_0_0F98_P_2_LEN_0, | |
881 | MOD_VEX_W_1_0F98_P_2_LEN_0, | |
882 | MOD_VEX_W_0_0F99_P_0_LEN_0, | |
883 | MOD_VEX_W_1_0F99_P_0_LEN_0, | |
884 | MOD_VEX_W_0_0F99_P_2_LEN_0, | |
885 | MOD_VEX_W_1_0F99_P_2_LEN_0, | |
592a252b L |
886 | MOD_VEX_0FAE_REG_2, |
887 | MOD_VEX_0FAE_REG_3, | |
888 | MOD_VEX_0FD7_PREFIX_2, | |
889 | MOD_VEX_0FE7_PREFIX_2, | |
890 | MOD_VEX_0FF0_PREFIX_3, | |
592a252b L |
891 | MOD_VEX_0F381A_PREFIX_2, |
892 | MOD_VEX_0F382A_PREFIX_2, | |
893 | MOD_VEX_0F382C_PREFIX_2, | |
894 | MOD_VEX_0F382D_PREFIX_2, | |
895 | MOD_VEX_0F382E_PREFIX_2, | |
6c30d220 L |
896 | MOD_VEX_0F382F_PREFIX_2, |
897 | MOD_VEX_0F385A_PREFIX_2, | |
898 | MOD_VEX_0F388C_PREFIX_2, | |
899 | MOD_VEX_0F388E_PREFIX_2, | |
ab4e4ed5 AF |
900 | MOD_VEX_W_0_0F3A30_P_2_LEN_0, |
901 | MOD_VEX_W_1_0F3A30_P_2_LEN_0, | |
902 | MOD_VEX_W_0_0F3A31_P_2_LEN_0, | |
903 | MOD_VEX_W_1_0F3A31_P_2_LEN_0, | |
904 | MOD_VEX_W_0_0F3A32_P_2_LEN_0, | |
905 | MOD_VEX_W_1_0F3A32_P_2_LEN_0, | |
906 | MOD_VEX_W_0_0F3A33_P_2_LEN_0, | |
907 | MOD_VEX_W_1_0F3A33_P_2_LEN_0, | |
43234a1e L |
908 | |
909 | MOD_EVEX_0F10_PREFIX_1, | |
910 | MOD_EVEX_0F10_PREFIX_3, | |
911 | MOD_EVEX_0F11_PREFIX_1, | |
912 | MOD_EVEX_0F11_PREFIX_3, | |
913 | MOD_EVEX_0F12_PREFIX_0, | |
914 | MOD_EVEX_0F16_PREFIX_0, | |
915 | MOD_EVEX_0F38C6_REG_1, | |
916 | MOD_EVEX_0F38C6_REG_2, | |
917 | MOD_EVEX_0F38C6_REG_5, | |
918 | MOD_EVEX_0F38C6_REG_6, | |
919 | MOD_EVEX_0F38C7_REG_1, | |
920 | MOD_EVEX_0F38C7_REG_2, | |
921 | MOD_EVEX_0F38C7_REG_5, | |
922 | MOD_EVEX_0F38C7_REG_6 | |
51e7da1b | 923 | }; |
1ceb70f8 | 924 | |
51e7da1b L |
925 | enum |
926 | { | |
42164a71 L |
927 | RM_C6_REG_7 = 0, |
928 | RM_C7_REG_7, | |
929 | RM_0F01_REG_0, | |
3873ba12 L |
930 | RM_0F01_REG_1, |
931 | RM_0F01_REG_2, | |
932 | RM_0F01_REG_3, | |
8eab4136 | 933 | RM_0F01_REG_5, |
3873ba12 L |
934 | RM_0F01_REG_7, |
935 | RM_0FAE_REG_5, | |
936 | RM_0FAE_REG_6, | |
937 | RM_0FAE_REG_7 | |
51e7da1b | 938 | }; |
1ceb70f8 | 939 | |
51e7da1b L |
940 | enum |
941 | { | |
942 | PREFIX_90 = 0, | |
3873ba12 L |
943 | PREFIX_0F10, |
944 | PREFIX_0F11, | |
945 | PREFIX_0F12, | |
946 | PREFIX_0F16, | |
7e8b059b L |
947 | PREFIX_0F1A, |
948 | PREFIX_0F1B, | |
3873ba12 L |
949 | PREFIX_0F2A, |
950 | PREFIX_0F2B, | |
951 | PREFIX_0F2C, | |
952 | PREFIX_0F2D, | |
953 | PREFIX_0F2E, | |
954 | PREFIX_0F2F, | |
955 | PREFIX_0F51, | |
956 | PREFIX_0F52, | |
957 | PREFIX_0F53, | |
958 | PREFIX_0F58, | |
959 | PREFIX_0F59, | |
960 | PREFIX_0F5A, | |
961 | PREFIX_0F5B, | |
962 | PREFIX_0F5C, | |
963 | PREFIX_0F5D, | |
964 | PREFIX_0F5E, | |
965 | PREFIX_0F5F, | |
966 | PREFIX_0F60, | |
967 | PREFIX_0F61, | |
968 | PREFIX_0F62, | |
969 | PREFIX_0F6C, | |
970 | PREFIX_0F6D, | |
971 | PREFIX_0F6F, | |
972 | PREFIX_0F70, | |
973 | PREFIX_0F73_REG_3, | |
974 | PREFIX_0F73_REG_7, | |
975 | PREFIX_0F78, | |
976 | PREFIX_0F79, | |
977 | PREFIX_0F7C, | |
978 | PREFIX_0F7D, | |
979 | PREFIX_0F7E, | |
980 | PREFIX_0F7F, | |
c7b8aa3a L |
981 | PREFIX_0FAE_REG_0, |
982 | PREFIX_0FAE_REG_1, | |
983 | PREFIX_0FAE_REG_2, | |
984 | PREFIX_0FAE_REG_3, | |
6b40c462 L |
985 | PREFIX_MOD_0_0FAE_REG_4, |
986 | PREFIX_MOD_3_0FAE_REG_4, | |
c5e7287a | 987 | PREFIX_0FAE_REG_6, |
963f3586 | 988 | PREFIX_0FAE_REG_7, |
3873ba12 | 989 | PREFIX_0FB8, |
f12dc422 | 990 | PREFIX_0FBC, |
3873ba12 L |
991 | PREFIX_0FBD, |
992 | PREFIX_0FC2, | |
a8484f96 | 993 | PREFIX_MOD_0_0FC3, |
f24bcbaa L |
994 | PREFIX_MOD_0_0FC7_REG_6, |
995 | PREFIX_MOD_3_0FC7_REG_6, | |
996 | PREFIX_MOD_3_0FC7_REG_7, | |
3873ba12 L |
997 | PREFIX_0FD0, |
998 | PREFIX_0FD6, | |
999 | PREFIX_0FE6, | |
1000 | PREFIX_0FE7, | |
1001 | PREFIX_0FF0, | |
1002 | PREFIX_0FF7, | |
1003 | PREFIX_0F3810, | |
1004 | PREFIX_0F3814, | |
1005 | PREFIX_0F3815, | |
1006 | PREFIX_0F3817, | |
1007 | PREFIX_0F3820, | |
1008 | PREFIX_0F3821, | |
1009 | PREFIX_0F3822, | |
1010 | PREFIX_0F3823, | |
1011 | PREFIX_0F3824, | |
1012 | PREFIX_0F3825, | |
1013 | PREFIX_0F3828, | |
1014 | PREFIX_0F3829, | |
1015 | PREFIX_0F382A, | |
1016 | PREFIX_0F382B, | |
1017 | PREFIX_0F3830, | |
1018 | PREFIX_0F3831, | |
1019 | PREFIX_0F3832, | |
1020 | PREFIX_0F3833, | |
1021 | PREFIX_0F3834, | |
1022 | PREFIX_0F3835, | |
1023 | PREFIX_0F3837, | |
1024 | PREFIX_0F3838, | |
1025 | PREFIX_0F3839, | |
1026 | PREFIX_0F383A, | |
1027 | PREFIX_0F383B, | |
1028 | PREFIX_0F383C, | |
1029 | PREFIX_0F383D, | |
1030 | PREFIX_0F383E, | |
1031 | PREFIX_0F383F, | |
1032 | PREFIX_0F3840, | |
1033 | PREFIX_0F3841, | |
1034 | PREFIX_0F3880, | |
1035 | PREFIX_0F3881, | |
6c30d220 | 1036 | PREFIX_0F3882, |
a0046408 L |
1037 | PREFIX_0F38C8, |
1038 | PREFIX_0F38C9, | |
1039 | PREFIX_0F38CA, | |
1040 | PREFIX_0F38CB, | |
1041 | PREFIX_0F38CC, | |
1042 | PREFIX_0F38CD, | |
3873ba12 L |
1043 | PREFIX_0F38DB, |
1044 | PREFIX_0F38DC, | |
1045 | PREFIX_0F38DD, | |
1046 | PREFIX_0F38DE, | |
1047 | PREFIX_0F38DF, | |
1048 | PREFIX_0F38F0, | |
1049 | PREFIX_0F38F1, | |
e2e1fcde | 1050 | PREFIX_0F38F6, |
3873ba12 L |
1051 | PREFIX_0F3A08, |
1052 | PREFIX_0F3A09, | |
1053 | PREFIX_0F3A0A, | |
1054 | PREFIX_0F3A0B, | |
1055 | PREFIX_0F3A0C, | |
1056 | PREFIX_0F3A0D, | |
1057 | PREFIX_0F3A0E, | |
1058 | PREFIX_0F3A14, | |
1059 | PREFIX_0F3A15, | |
1060 | PREFIX_0F3A16, | |
1061 | PREFIX_0F3A17, | |
1062 | PREFIX_0F3A20, | |
1063 | PREFIX_0F3A21, | |
1064 | PREFIX_0F3A22, | |
1065 | PREFIX_0F3A40, | |
1066 | PREFIX_0F3A41, | |
1067 | PREFIX_0F3A42, | |
1068 | PREFIX_0F3A44, | |
1069 | PREFIX_0F3A60, | |
1070 | PREFIX_0F3A61, | |
1071 | PREFIX_0F3A62, | |
1072 | PREFIX_0F3A63, | |
a0046408 | 1073 | PREFIX_0F3ACC, |
3873ba12 | 1074 | PREFIX_0F3ADF, |
592a252b L |
1075 | PREFIX_VEX_0F10, |
1076 | PREFIX_VEX_0F11, | |
1077 | PREFIX_VEX_0F12, | |
1078 | PREFIX_VEX_0F16, | |
1079 | PREFIX_VEX_0F2A, | |
1080 | PREFIX_VEX_0F2C, | |
1081 | PREFIX_VEX_0F2D, | |
1082 | PREFIX_VEX_0F2E, | |
1083 | PREFIX_VEX_0F2F, | |
43234a1e L |
1084 | PREFIX_VEX_0F41, |
1085 | PREFIX_VEX_0F42, | |
1086 | PREFIX_VEX_0F44, | |
1087 | PREFIX_VEX_0F45, | |
1088 | PREFIX_VEX_0F46, | |
1089 | PREFIX_VEX_0F47, | |
1ba585e8 | 1090 | PREFIX_VEX_0F4A, |
43234a1e | 1091 | PREFIX_VEX_0F4B, |
592a252b L |
1092 | PREFIX_VEX_0F51, |
1093 | PREFIX_VEX_0F52, | |
1094 | PREFIX_VEX_0F53, | |
1095 | PREFIX_VEX_0F58, | |
1096 | PREFIX_VEX_0F59, | |
1097 | PREFIX_VEX_0F5A, | |
1098 | PREFIX_VEX_0F5B, | |
1099 | PREFIX_VEX_0F5C, | |
1100 | PREFIX_VEX_0F5D, | |
1101 | PREFIX_VEX_0F5E, | |
1102 | PREFIX_VEX_0F5F, | |
1103 | PREFIX_VEX_0F60, | |
1104 | PREFIX_VEX_0F61, | |
1105 | PREFIX_VEX_0F62, | |
1106 | PREFIX_VEX_0F63, | |
1107 | PREFIX_VEX_0F64, | |
1108 | PREFIX_VEX_0F65, | |
1109 | PREFIX_VEX_0F66, | |
1110 | PREFIX_VEX_0F67, | |
1111 | PREFIX_VEX_0F68, | |
1112 | PREFIX_VEX_0F69, | |
1113 | PREFIX_VEX_0F6A, | |
1114 | PREFIX_VEX_0F6B, | |
1115 | PREFIX_VEX_0F6C, | |
1116 | PREFIX_VEX_0F6D, | |
1117 | PREFIX_VEX_0F6E, | |
1118 | PREFIX_VEX_0F6F, | |
1119 | PREFIX_VEX_0F70, | |
1120 | PREFIX_VEX_0F71_REG_2, | |
1121 | PREFIX_VEX_0F71_REG_4, | |
1122 | PREFIX_VEX_0F71_REG_6, | |
1123 | PREFIX_VEX_0F72_REG_2, | |
1124 | PREFIX_VEX_0F72_REG_4, | |
1125 | PREFIX_VEX_0F72_REG_6, | |
1126 | PREFIX_VEX_0F73_REG_2, | |
1127 | PREFIX_VEX_0F73_REG_3, | |
1128 | PREFIX_VEX_0F73_REG_6, | |
1129 | PREFIX_VEX_0F73_REG_7, | |
1130 | PREFIX_VEX_0F74, | |
1131 | PREFIX_VEX_0F75, | |
1132 | PREFIX_VEX_0F76, | |
1133 | PREFIX_VEX_0F77, | |
1134 | PREFIX_VEX_0F7C, | |
1135 | PREFIX_VEX_0F7D, | |
1136 | PREFIX_VEX_0F7E, | |
1137 | PREFIX_VEX_0F7F, | |
43234a1e L |
1138 | PREFIX_VEX_0F90, |
1139 | PREFIX_VEX_0F91, | |
1140 | PREFIX_VEX_0F92, | |
1141 | PREFIX_VEX_0F93, | |
1142 | PREFIX_VEX_0F98, | |
1ba585e8 | 1143 | PREFIX_VEX_0F99, |
592a252b L |
1144 | PREFIX_VEX_0FC2, |
1145 | PREFIX_VEX_0FC4, | |
1146 | PREFIX_VEX_0FC5, | |
1147 | PREFIX_VEX_0FD0, | |
1148 | PREFIX_VEX_0FD1, | |
1149 | PREFIX_VEX_0FD2, | |
1150 | PREFIX_VEX_0FD3, | |
1151 | PREFIX_VEX_0FD4, | |
1152 | PREFIX_VEX_0FD5, | |
1153 | PREFIX_VEX_0FD6, | |
1154 | PREFIX_VEX_0FD7, | |
1155 | PREFIX_VEX_0FD8, | |
1156 | PREFIX_VEX_0FD9, | |
1157 | PREFIX_VEX_0FDA, | |
1158 | PREFIX_VEX_0FDB, | |
1159 | PREFIX_VEX_0FDC, | |
1160 | PREFIX_VEX_0FDD, | |
1161 | PREFIX_VEX_0FDE, | |
1162 | PREFIX_VEX_0FDF, | |
1163 | PREFIX_VEX_0FE0, | |
1164 | PREFIX_VEX_0FE1, | |
1165 | PREFIX_VEX_0FE2, | |
1166 | PREFIX_VEX_0FE3, | |
1167 | PREFIX_VEX_0FE4, | |
1168 | PREFIX_VEX_0FE5, | |
1169 | PREFIX_VEX_0FE6, | |
1170 | PREFIX_VEX_0FE7, | |
1171 | PREFIX_VEX_0FE8, | |
1172 | PREFIX_VEX_0FE9, | |
1173 | PREFIX_VEX_0FEA, | |
1174 | PREFIX_VEX_0FEB, | |
1175 | PREFIX_VEX_0FEC, | |
1176 | PREFIX_VEX_0FED, | |
1177 | PREFIX_VEX_0FEE, | |
1178 | PREFIX_VEX_0FEF, | |
1179 | PREFIX_VEX_0FF0, | |
1180 | PREFIX_VEX_0FF1, | |
1181 | PREFIX_VEX_0FF2, | |
1182 | PREFIX_VEX_0FF3, | |
1183 | PREFIX_VEX_0FF4, | |
1184 | PREFIX_VEX_0FF5, | |
1185 | PREFIX_VEX_0FF6, | |
1186 | PREFIX_VEX_0FF7, | |
1187 | PREFIX_VEX_0FF8, | |
1188 | PREFIX_VEX_0FF9, | |
1189 | PREFIX_VEX_0FFA, | |
1190 | PREFIX_VEX_0FFB, | |
1191 | PREFIX_VEX_0FFC, | |
1192 | PREFIX_VEX_0FFD, | |
1193 | PREFIX_VEX_0FFE, | |
1194 | PREFIX_VEX_0F3800, | |
1195 | PREFIX_VEX_0F3801, | |
1196 | PREFIX_VEX_0F3802, | |
1197 | PREFIX_VEX_0F3803, | |
1198 | PREFIX_VEX_0F3804, | |
1199 | PREFIX_VEX_0F3805, | |
1200 | PREFIX_VEX_0F3806, | |
1201 | PREFIX_VEX_0F3807, | |
1202 | PREFIX_VEX_0F3808, | |
1203 | PREFIX_VEX_0F3809, | |
1204 | PREFIX_VEX_0F380A, | |
1205 | PREFIX_VEX_0F380B, | |
1206 | PREFIX_VEX_0F380C, | |
1207 | PREFIX_VEX_0F380D, | |
1208 | PREFIX_VEX_0F380E, | |
1209 | PREFIX_VEX_0F380F, | |
1210 | PREFIX_VEX_0F3813, | |
6c30d220 | 1211 | PREFIX_VEX_0F3816, |
592a252b L |
1212 | PREFIX_VEX_0F3817, |
1213 | PREFIX_VEX_0F3818, | |
1214 | PREFIX_VEX_0F3819, | |
1215 | PREFIX_VEX_0F381A, | |
1216 | PREFIX_VEX_0F381C, | |
1217 | PREFIX_VEX_0F381D, | |
1218 | PREFIX_VEX_0F381E, | |
1219 | PREFIX_VEX_0F3820, | |
1220 | PREFIX_VEX_0F3821, | |
1221 | PREFIX_VEX_0F3822, | |
1222 | PREFIX_VEX_0F3823, | |
1223 | PREFIX_VEX_0F3824, | |
1224 | PREFIX_VEX_0F3825, | |
1225 | PREFIX_VEX_0F3828, | |
1226 | PREFIX_VEX_0F3829, | |
1227 | PREFIX_VEX_0F382A, | |
1228 | PREFIX_VEX_0F382B, | |
1229 | PREFIX_VEX_0F382C, | |
1230 | PREFIX_VEX_0F382D, | |
1231 | PREFIX_VEX_0F382E, | |
1232 | PREFIX_VEX_0F382F, | |
1233 | PREFIX_VEX_0F3830, | |
1234 | PREFIX_VEX_0F3831, | |
1235 | PREFIX_VEX_0F3832, | |
1236 | PREFIX_VEX_0F3833, | |
1237 | PREFIX_VEX_0F3834, | |
1238 | PREFIX_VEX_0F3835, | |
6c30d220 | 1239 | PREFIX_VEX_0F3836, |
592a252b L |
1240 | PREFIX_VEX_0F3837, |
1241 | PREFIX_VEX_0F3838, | |
1242 | PREFIX_VEX_0F3839, | |
1243 | PREFIX_VEX_0F383A, | |
1244 | PREFIX_VEX_0F383B, | |
1245 | PREFIX_VEX_0F383C, | |
1246 | PREFIX_VEX_0F383D, | |
1247 | PREFIX_VEX_0F383E, | |
1248 | PREFIX_VEX_0F383F, | |
1249 | PREFIX_VEX_0F3840, | |
1250 | PREFIX_VEX_0F3841, | |
6c30d220 L |
1251 | PREFIX_VEX_0F3845, |
1252 | PREFIX_VEX_0F3846, | |
1253 | PREFIX_VEX_0F3847, | |
1254 | PREFIX_VEX_0F3858, | |
1255 | PREFIX_VEX_0F3859, | |
1256 | PREFIX_VEX_0F385A, | |
1257 | PREFIX_VEX_0F3878, | |
1258 | PREFIX_VEX_0F3879, | |
1259 | PREFIX_VEX_0F388C, | |
1260 | PREFIX_VEX_0F388E, | |
1261 | PREFIX_VEX_0F3890, | |
1262 | PREFIX_VEX_0F3891, | |
1263 | PREFIX_VEX_0F3892, | |
1264 | PREFIX_VEX_0F3893, | |
592a252b L |
1265 | PREFIX_VEX_0F3896, |
1266 | PREFIX_VEX_0F3897, | |
1267 | PREFIX_VEX_0F3898, | |
1268 | PREFIX_VEX_0F3899, | |
1269 | PREFIX_VEX_0F389A, | |
1270 | PREFIX_VEX_0F389B, | |
1271 | PREFIX_VEX_0F389C, | |
1272 | PREFIX_VEX_0F389D, | |
1273 | PREFIX_VEX_0F389E, | |
1274 | PREFIX_VEX_0F389F, | |
1275 | PREFIX_VEX_0F38A6, | |
1276 | PREFIX_VEX_0F38A7, | |
1277 | PREFIX_VEX_0F38A8, | |
1278 | PREFIX_VEX_0F38A9, | |
1279 | PREFIX_VEX_0F38AA, | |
1280 | PREFIX_VEX_0F38AB, | |
1281 | PREFIX_VEX_0F38AC, | |
1282 | PREFIX_VEX_0F38AD, | |
1283 | PREFIX_VEX_0F38AE, | |
1284 | PREFIX_VEX_0F38AF, | |
1285 | PREFIX_VEX_0F38B6, | |
1286 | PREFIX_VEX_0F38B7, | |
1287 | PREFIX_VEX_0F38B8, | |
1288 | PREFIX_VEX_0F38B9, | |
1289 | PREFIX_VEX_0F38BA, | |
1290 | PREFIX_VEX_0F38BB, | |
1291 | PREFIX_VEX_0F38BC, | |
1292 | PREFIX_VEX_0F38BD, | |
1293 | PREFIX_VEX_0F38BE, | |
1294 | PREFIX_VEX_0F38BF, | |
1295 | PREFIX_VEX_0F38DB, | |
1296 | PREFIX_VEX_0F38DC, | |
1297 | PREFIX_VEX_0F38DD, | |
1298 | PREFIX_VEX_0F38DE, | |
1299 | PREFIX_VEX_0F38DF, | |
f12dc422 L |
1300 | PREFIX_VEX_0F38F2, |
1301 | PREFIX_VEX_0F38F3_REG_1, | |
1302 | PREFIX_VEX_0F38F3_REG_2, | |
1303 | PREFIX_VEX_0F38F3_REG_3, | |
6c30d220 L |
1304 | PREFIX_VEX_0F38F5, |
1305 | PREFIX_VEX_0F38F6, | |
f12dc422 | 1306 | PREFIX_VEX_0F38F7, |
6c30d220 L |
1307 | PREFIX_VEX_0F3A00, |
1308 | PREFIX_VEX_0F3A01, | |
1309 | PREFIX_VEX_0F3A02, | |
592a252b L |
1310 | PREFIX_VEX_0F3A04, |
1311 | PREFIX_VEX_0F3A05, | |
1312 | PREFIX_VEX_0F3A06, | |
1313 | PREFIX_VEX_0F3A08, | |
1314 | PREFIX_VEX_0F3A09, | |
1315 | PREFIX_VEX_0F3A0A, | |
1316 | PREFIX_VEX_0F3A0B, | |
1317 | PREFIX_VEX_0F3A0C, | |
1318 | PREFIX_VEX_0F3A0D, | |
1319 | PREFIX_VEX_0F3A0E, | |
1320 | PREFIX_VEX_0F3A0F, | |
1321 | PREFIX_VEX_0F3A14, | |
1322 | PREFIX_VEX_0F3A15, | |
1323 | PREFIX_VEX_0F3A16, | |
1324 | PREFIX_VEX_0F3A17, | |
1325 | PREFIX_VEX_0F3A18, | |
1326 | PREFIX_VEX_0F3A19, | |
1327 | PREFIX_VEX_0F3A1D, | |
1328 | PREFIX_VEX_0F3A20, | |
1329 | PREFIX_VEX_0F3A21, | |
1330 | PREFIX_VEX_0F3A22, | |
43234a1e | 1331 | PREFIX_VEX_0F3A30, |
1ba585e8 | 1332 | PREFIX_VEX_0F3A31, |
43234a1e | 1333 | PREFIX_VEX_0F3A32, |
1ba585e8 | 1334 | PREFIX_VEX_0F3A33, |
6c30d220 L |
1335 | PREFIX_VEX_0F3A38, |
1336 | PREFIX_VEX_0F3A39, | |
592a252b L |
1337 | PREFIX_VEX_0F3A40, |
1338 | PREFIX_VEX_0F3A41, | |
1339 | PREFIX_VEX_0F3A42, | |
1340 | PREFIX_VEX_0F3A44, | |
6c30d220 | 1341 | PREFIX_VEX_0F3A46, |
592a252b L |
1342 | PREFIX_VEX_0F3A48, |
1343 | PREFIX_VEX_0F3A49, | |
1344 | PREFIX_VEX_0F3A4A, | |
1345 | PREFIX_VEX_0F3A4B, | |
1346 | PREFIX_VEX_0F3A4C, | |
1347 | PREFIX_VEX_0F3A5C, | |
1348 | PREFIX_VEX_0F3A5D, | |
1349 | PREFIX_VEX_0F3A5E, | |
1350 | PREFIX_VEX_0F3A5F, | |
1351 | PREFIX_VEX_0F3A60, | |
1352 | PREFIX_VEX_0F3A61, | |
1353 | PREFIX_VEX_0F3A62, | |
1354 | PREFIX_VEX_0F3A63, | |
1355 | PREFIX_VEX_0F3A68, | |
1356 | PREFIX_VEX_0F3A69, | |
1357 | PREFIX_VEX_0F3A6A, | |
1358 | PREFIX_VEX_0F3A6B, | |
1359 | PREFIX_VEX_0F3A6C, | |
1360 | PREFIX_VEX_0F3A6D, | |
1361 | PREFIX_VEX_0F3A6E, | |
1362 | PREFIX_VEX_0F3A6F, | |
1363 | PREFIX_VEX_0F3A78, | |
1364 | PREFIX_VEX_0F3A79, | |
1365 | PREFIX_VEX_0F3A7A, | |
1366 | PREFIX_VEX_0F3A7B, | |
1367 | PREFIX_VEX_0F3A7C, | |
1368 | PREFIX_VEX_0F3A7D, | |
1369 | PREFIX_VEX_0F3A7E, | |
1370 | PREFIX_VEX_0F3A7F, | |
6c30d220 | 1371 | PREFIX_VEX_0F3ADF, |
43234a1e L |
1372 | PREFIX_VEX_0F3AF0, |
1373 | ||
1374 | PREFIX_EVEX_0F10, | |
1375 | PREFIX_EVEX_0F11, | |
1376 | PREFIX_EVEX_0F12, | |
1377 | PREFIX_EVEX_0F13, | |
1378 | PREFIX_EVEX_0F14, | |
1379 | PREFIX_EVEX_0F15, | |
1380 | PREFIX_EVEX_0F16, | |
1381 | PREFIX_EVEX_0F17, | |
1382 | PREFIX_EVEX_0F28, | |
1383 | PREFIX_EVEX_0F29, | |
1384 | PREFIX_EVEX_0F2A, | |
1385 | PREFIX_EVEX_0F2B, | |
1386 | PREFIX_EVEX_0F2C, | |
1387 | PREFIX_EVEX_0F2D, | |
1388 | PREFIX_EVEX_0F2E, | |
1389 | PREFIX_EVEX_0F2F, | |
1390 | PREFIX_EVEX_0F51, | |
90a915bf IT |
1391 | PREFIX_EVEX_0F54, |
1392 | PREFIX_EVEX_0F55, | |
1393 | PREFIX_EVEX_0F56, | |
1394 | PREFIX_EVEX_0F57, | |
43234a1e L |
1395 | PREFIX_EVEX_0F58, |
1396 | PREFIX_EVEX_0F59, | |
1397 | PREFIX_EVEX_0F5A, | |
1398 | PREFIX_EVEX_0F5B, | |
1399 | PREFIX_EVEX_0F5C, | |
1400 | PREFIX_EVEX_0F5D, | |
1401 | PREFIX_EVEX_0F5E, | |
1402 | PREFIX_EVEX_0F5F, | |
1ba585e8 IT |
1403 | PREFIX_EVEX_0F60, |
1404 | PREFIX_EVEX_0F61, | |
43234a1e | 1405 | PREFIX_EVEX_0F62, |
1ba585e8 IT |
1406 | PREFIX_EVEX_0F63, |
1407 | PREFIX_EVEX_0F64, | |
1408 | PREFIX_EVEX_0F65, | |
43234a1e | 1409 | PREFIX_EVEX_0F66, |
1ba585e8 IT |
1410 | PREFIX_EVEX_0F67, |
1411 | PREFIX_EVEX_0F68, | |
1412 | PREFIX_EVEX_0F69, | |
43234a1e | 1413 | PREFIX_EVEX_0F6A, |
1ba585e8 | 1414 | PREFIX_EVEX_0F6B, |
43234a1e L |
1415 | PREFIX_EVEX_0F6C, |
1416 | PREFIX_EVEX_0F6D, | |
1417 | PREFIX_EVEX_0F6E, | |
1418 | PREFIX_EVEX_0F6F, | |
1419 | PREFIX_EVEX_0F70, | |
1ba585e8 IT |
1420 | PREFIX_EVEX_0F71_REG_2, |
1421 | PREFIX_EVEX_0F71_REG_4, | |
1422 | PREFIX_EVEX_0F71_REG_6, | |
43234a1e L |
1423 | PREFIX_EVEX_0F72_REG_0, |
1424 | PREFIX_EVEX_0F72_REG_1, | |
1425 | PREFIX_EVEX_0F72_REG_2, | |
1426 | PREFIX_EVEX_0F72_REG_4, | |
1427 | PREFIX_EVEX_0F72_REG_6, | |
1428 | PREFIX_EVEX_0F73_REG_2, | |
1ba585e8 | 1429 | PREFIX_EVEX_0F73_REG_3, |
43234a1e | 1430 | PREFIX_EVEX_0F73_REG_6, |
1ba585e8 IT |
1431 | PREFIX_EVEX_0F73_REG_7, |
1432 | PREFIX_EVEX_0F74, | |
1433 | PREFIX_EVEX_0F75, | |
43234a1e L |
1434 | PREFIX_EVEX_0F76, |
1435 | PREFIX_EVEX_0F78, | |
1436 | PREFIX_EVEX_0F79, | |
1437 | PREFIX_EVEX_0F7A, | |
1438 | PREFIX_EVEX_0F7B, | |
1439 | PREFIX_EVEX_0F7E, | |
1440 | PREFIX_EVEX_0F7F, | |
1441 | PREFIX_EVEX_0FC2, | |
1ba585e8 IT |
1442 | PREFIX_EVEX_0FC4, |
1443 | PREFIX_EVEX_0FC5, | |
43234a1e | 1444 | PREFIX_EVEX_0FC6, |
1ba585e8 | 1445 | PREFIX_EVEX_0FD1, |
43234a1e L |
1446 | PREFIX_EVEX_0FD2, |
1447 | PREFIX_EVEX_0FD3, | |
1448 | PREFIX_EVEX_0FD4, | |
1ba585e8 | 1449 | PREFIX_EVEX_0FD5, |
43234a1e | 1450 | PREFIX_EVEX_0FD6, |
1ba585e8 IT |
1451 | PREFIX_EVEX_0FD8, |
1452 | PREFIX_EVEX_0FD9, | |
1453 | PREFIX_EVEX_0FDA, | |
43234a1e | 1454 | PREFIX_EVEX_0FDB, |
1ba585e8 IT |
1455 | PREFIX_EVEX_0FDC, |
1456 | PREFIX_EVEX_0FDD, | |
1457 | PREFIX_EVEX_0FDE, | |
43234a1e | 1458 | PREFIX_EVEX_0FDF, |
1ba585e8 IT |
1459 | PREFIX_EVEX_0FE0, |
1460 | PREFIX_EVEX_0FE1, | |
43234a1e | 1461 | PREFIX_EVEX_0FE2, |
1ba585e8 IT |
1462 | PREFIX_EVEX_0FE3, |
1463 | PREFIX_EVEX_0FE4, | |
1464 | PREFIX_EVEX_0FE5, | |
43234a1e L |
1465 | PREFIX_EVEX_0FE6, |
1466 | PREFIX_EVEX_0FE7, | |
1ba585e8 IT |
1467 | PREFIX_EVEX_0FE8, |
1468 | PREFIX_EVEX_0FE9, | |
1469 | PREFIX_EVEX_0FEA, | |
43234a1e | 1470 | PREFIX_EVEX_0FEB, |
1ba585e8 IT |
1471 | PREFIX_EVEX_0FEC, |
1472 | PREFIX_EVEX_0FED, | |
1473 | PREFIX_EVEX_0FEE, | |
43234a1e | 1474 | PREFIX_EVEX_0FEF, |
1ba585e8 | 1475 | PREFIX_EVEX_0FF1, |
43234a1e L |
1476 | PREFIX_EVEX_0FF2, |
1477 | PREFIX_EVEX_0FF3, | |
1478 | PREFIX_EVEX_0FF4, | |
1ba585e8 IT |
1479 | PREFIX_EVEX_0FF5, |
1480 | PREFIX_EVEX_0FF6, | |
1481 | PREFIX_EVEX_0FF8, | |
1482 | PREFIX_EVEX_0FF9, | |
43234a1e L |
1483 | PREFIX_EVEX_0FFA, |
1484 | PREFIX_EVEX_0FFB, | |
1ba585e8 IT |
1485 | PREFIX_EVEX_0FFC, |
1486 | PREFIX_EVEX_0FFD, | |
43234a1e | 1487 | PREFIX_EVEX_0FFE, |
1ba585e8 IT |
1488 | PREFIX_EVEX_0F3800, |
1489 | PREFIX_EVEX_0F3804, | |
1490 | PREFIX_EVEX_0F380B, | |
43234a1e L |
1491 | PREFIX_EVEX_0F380C, |
1492 | PREFIX_EVEX_0F380D, | |
1ba585e8 | 1493 | PREFIX_EVEX_0F3810, |
43234a1e L |
1494 | PREFIX_EVEX_0F3811, |
1495 | PREFIX_EVEX_0F3812, | |
1496 | PREFIX_EVEX_0F3813, | |
1497 | PREFIX_EVEX_0F3814, | |
1498 | PREFIX_EVEX_0F3815, | |
1499 | PREFIX_EVEX_0F3816, | |
1500 | PREFIX_EVEX_0F3818, | |
1501 | PREFIX_EVEX_0F3819, | |
1502 | PREFIX_EVEX_0F381A, | |
1503 | PREFIX_EVEX_0F381B, | |
1ba585e8 IT |
1504 | PREFIX_EVEX_0F381C, |
1505 | PREFIX_EVEX_0F381D, | |
43234a1e L |
1506 | PREFIX_EVEX_0F381E, |
1507 | PREFIX_EVEX_0F381F, | |
1ba585e8 | 1508 | PREFIX_EVEX_0F3820, |
43234a1e L |
1509 | PREFIX_EVEX_0F3821, |
1510 | PREFIX_EVEX_0F3822, | |
1511 | PREFIX_EVEX_0F3823, | |
1512 | PREFIX_EVEX_0F3824, | |
1513 | PREFIX_EVEX_0F3825, | |
1ba585e8 | 1514 | PREFIX_EVEX_0F3826, |
43234a1e L |
1515 | PREFIX_EVEX_0F3827, |
1516 | PREFIX_EVEX_0F3828, | |
1517 | PREFIX_EVEX_0F3829, | |
1518 | PREFIX_EVEX_0F382A, | |
1ba585e8 | 1519 | PREFIX_EVEX_0F382B, |
43234a1e L |
1520 | PREFIX_EVEX_0F382C, |
1521 | PREFIX_EVEX_0F382D, | |
1ba585e8 | 1522 | PREFIX_EVEX_0F3830, |
43234a1e L |
1523 | PREFIX_EVEX_0F3831, |
1524 | PREFIX_EVEX_0F3832, | |
1525 | PREFIX_EVEX_0F3833, | |
1526 | PREFIX_EVEX_0F3834, | |
1527 | PREFIX_EVEX_0F3835, | |
1528 | PREFIX_EVEX_0F3836, | |
1529 | PREFIX_EVEX_0F3837, | |
1ba585e8 | 1530 | PREFIX_EVEX_0F3838, |
43234a1e L |
1531 | PREFIX_EVEX_0F3839, |
1532 | PREFIX_EVEX_0F383A, | |
1533 | PREFIX_EVEX_0F383B, | |
1ba585e8 | 1534 | PREFIX_EVEX_0F383C, |
43234a1e | 1535 | PREFIX_EVEX_0F383D, |
1ba585e8 | 1536 | PREFIX_EVEX_0F383E, |
43234a1e L |
1537 | PREFIX_EVEX_0F383F, |
1538 | PREFIX_EVEX_0F3840, | |
1539 | PREFIX_EVEX_0F3842, | |
1540 | PREFIX_EVEX_0F3843, | |
1541 | PREFIX_EVEX_0F3844, | |
1542 | PREFIX_EVEX_0F3845, | |
1543 | PREFIX_EVEX_0F3846, | |
1544 | PREFIX_EVEX_0F3847, | |
1545 | PREFIX_EVEX_0F384C, | |
1546 | PREFIX_EVEX_0F384D, | |
1547 | PREFIX_EVEX_0F384E, | |
1548 | PREFIX_EVEX_0F384F, | |
47acf0bd IT |
1549 | PREFIX_EVEX_0F3852, |
1550 | PREFIX_EVEX_0F3853, | |
43234a1e L |
1551 | PREFIX_EVEX_0F3858, |
1552 | PREFIX_EVEX_0F3859, | |
1553 | PREFIX_EVEX_0F385A, | |
1554 | PREFIX_EVEX_0F385B, | |
1555 | PREFIX_EVEX_0F3864, | |
1556 | PREFIX_EVEX_0F3865, | |
1ba585e8 IT |
1557 | PREFIX_EVEX_0F3866, |
1558 | PREFIX_EVEX_0F3875, | |
43234a1e L |
1559 | PREFIX_EVEX_0F3876, |
1560 | PREFIX_EVEX_0F3877, | |
1ba585e8 IT |
1561 | PREFIX_EVEX_0F3878, |
1562 | PREFIX_EVEX_0F3879, | |
1563 | PREFIX_EVEX_0F387A, | |
1564 | PREFIX_EVEX_0F387B, | |
43234a1e | 1565 | PREFIX_EVEX_0F387C, |
1ba585e8 | 1566 | PREFIX_EVEX_0F387D, |
43234a1e L |
1567 | PREFIX_EVEX_0F387E, |
1568 | PREFIX_EVEX_0F387F, | |
14f195c9 | 1569 | PREFIX_EVEX_0F3883, |
43234a1e L |
1570 | PREFIX_EVEX_0F3888, |
1571 | PREFIX_EVEX_0F3889, | |
1572 | PREFIX_EVEX_0F388A, | |
1573 | PREFIX_EVEX_0F388B, | |
1ba585e8 | 1574 | PREFIX_EVEX_0F388D, |
43234a1e L |
1575 | PREFIX_EVEX_0F3890, |
1576 | PREFIX_EVEX_0F3891, | |
1577 | PREFIX_EVEX_0F3892, | |
1578 | PREFIX_EVEX_0F3893, | |
1579 | PREFIX_EVEX_0F3896, | |
1580 | PREFIX_EVEX_0F3897, | |
1581 | PREFIX_EVEX_0F3898, | |
1582 | PREFIX_EVEX_0F3899, | |
1583 | PREFIX_EVEX_0F389A, | |
1584 | PREFIX_EVEX_0F389B, | |
1585 | PREFIX_EVEX_0F389C, | |
1586 | PREFIX_EVEX_0F389D, | |
1587 | PREFIX_EVEX_0F389E, | |
1588 | PREFIX_EVEX_0F389F, | |
1589 | PREFIX_EVEX_0F38A0, | |
1590 | PREFIX_EVEX_0F38A1, | |
1591 | PREFIX_EVEX_0F38A2, | |
1592 | PREFIX_EVEX_0F38A3, | |
1593 | PREFIX_EVEX_0F38A6, | |
1594 | PREFIX_EVEX_0F38A7, | |
1595 | PREFIX_EVEX_0F38A8, | |
1596 | PREFIX_EVEX_0F38A9, | |
1597 | PREFIX_EVEX_0F38AA, | |
1598 | PREFIX_EVEX_0F38AB, | |
1599 | PREFIX_EVEX_0F38AC, | |
1600 | PREFIX_EVEX_0F38AD, | |
1601 | PREFIX_EVEX_0F38AE, | |
1602 | PREFIX_EVEX_0F38AF, | |
2cc1b5aa IT |
1603 | PREFIX_EVEX_0F38B4, |
1604 | PREFIX_EVEX_0F38B5, | |
43234a1e L |
1605 | PREFIX_EVEX_0F38B6, |
1606 | PREFIX_EVEX_0F38B7, | |
1607 | PREFIX_EVEX_0F38B8, | |
1608 | PREFIX_EVEX_0F38B9, | |
1609 | PREFIX_EVEX_0F38BA, | |
1610 | PREFIX_EVEX_0F38BB, | |
1611 | PREFIX_EVEX_0F38BC, | |
1612 | PREFIX_EVEX_0F38BD, | |
1613 | PREFIX_EVEX_0F38BE, | |
1614 | PREFIX_EVEX_0F38BF, | |
1615 | PREFIX_EVEX_0F38C4, | |
1616 | PREFIX_EVEX_0F38C6_REG_1, | |
1617 | PREFIX_EVEX_0F38C6_REG_2, | |
1618 | PREFIX_EVEX_0F38C6_REG_5, | |
1619 | PREFIX_EVEX_0F38C6_REG_6, | |
1620 | PREFIX_EVEX_0F38C7_REG_1, | |
1621 | PREFIX_EVEX_0F38C7_REG_2, | |
1622 | PREFIX_EVEX_0F38C7_REG_5, | |
1623 | PREFIX_EVEX_0F38C7_REG_6, | |
1624 | PREFIX_EVEX_0F38C8, | |
1625 | PREFIX_EVEX_0F38CA, | |
1626 | PREFIX_EVEX_0F38CB, | |
1627 | PREFIX_EVEX_0F38CC, | |
1628 | PREFIX_EVEX_0F38CD, | |
1629 | ||
1630 | PREFIX_EVEX_0F3A00, | |
1631 | PREFIX_EVEX_0F3A01, | |
1632 | PREFIX_EVEX_0F3A03, | |
1633 | PREFIX_EVEX_0F3A04, | |
1634 | PREFIX_EVEX_0F3A05, | |
1635 | PREFIX_EVEX_0F3A08, | |
1636 | PREFIX_EVEX_0F3A09, | |
1637 | PREFIX_EVEX_0F3A0A, | |
1638 | PREFIX_EVEX_0F3A0B, | |
1ba585e8 IT |
1639 | PREFIX_EVEX_0F3A0F, |
1640 | PREFIX_EVEX_0F3A14, | |
1641 | PREFIX_EVEX_0F3A15, | |
90a915bf | 1642 | PREFIX_EVEX_0F3A16, |
43234a1e L |
1643 | PREFIX_EVEX_0F3A17, |
1644 | PREFIX_EVEX_0F3A18, | |
1645 | PREFIX_EVEX_0F3A19, | |
1646 | PREFIX_EVEX_0F3A1A, | |
1647 | PREFIX_EVEX_0F3A1B, | |
1648 | PREFIX_EVEX_0F3A1D, | |
1649 | PREFIX_EVEX_0F3A1E, | |
1650 | PREFIX_EVEX_0F3A1F, | |
1ba585e8 | 1651 | PREFIX_EVEX_0F3A20, |
43234a1e | 1652 | PREFIX_EVEX_0F3A21, |
90a915bf | 1653 | PREFIX_EVEX_0F3A22, |
43234a1e L |
1654 | PREFIX_EVEX_0F3A23, |
1655 | PREFIX_EVEX_0F3A25, | |
1656 | PREFIX_EVEX_0F3A26, | |
1657 | PREFIX_EVEX_0F3A27, | |
1658 | PREFIX_EVEX_0F3A38, | |
1659 | PREFIX_EVEX_0F3A39, | |
1660 | PREFIX_EVEX_0F3A3A, | |
1661 | PREFIX_EVEX_0F3A3B, | |
1ba585e8 IT |
1662 | PREFIX_EVEX_0F3A3E, |
1663 | PREFIX_EVEX_0F3A3F, | |
1664 | PREFIX_EVEX_0F3A42, | |
43234a1e | 1665 | PREFIX_EVEX_0F3A43, |
90a915bf IT |
1666 | PREFIX_EVEX_0F3A50, |
1667 | PREFIX_EVEX_0F3A51, | |
43234a1e | 1668 | PREFIX_EVEX_0F3A54, |
90a915bf IT |
1669 | PREFIX_EVEX_0F3A55, |
1670 | PREFIX_EVEX_0F3A56, | |
1671 | PREFIX_EVEX_0F3A57, | |
1672 | PREFIX_EVEX_0F3A66, | |
1673 | PREFIX_EVEX_0F3A67 | |
51e7da1b | 1674 | }; |
4e7d34a6 | 1675 | |
51e7da1b L |
1676 | enum |
1677 | { | |
1678 | X86_64_06 = 0, | |
3873ba12 L |
1679 | X86_64_07, |
1680 | X86_64_0D, | |
1681 | X86_64_16, | |
1682 | X86_64_17, | |
1683 | X86_64_1E, | |
1684 | X86_64_1F, | |
1685 | X86_64_27, | |
1686 | X86_64_2F, | |
1687 | X86_64_37, | |
1688 | X86_64_3F, | |
1689 | X86_64_60, | |
1690 | X86_64_61, | |
1691 | X86_64_62, | |
1692 | X86_64_63, | |
1693 | X86_64_6D, | |
1694 | X86_64_6F, | |
d039fef3 | 1695 | X86_64_82, |
3873ba12 L |
1696 | X86_64_9A, |
1697 | X86_64_C4, | |
1698 | X86_64_C5, | |
1699 | X86_64_CE, | |
1700 | X86_64_D4, | |
1701 | X86_64_D5, | |
a72d2af2 L |
1702 | X86_64_E8, |
1703 | X86_64_E9, | |
3873ba12 L |
1704 | X86_64_EA, |
1705 | X86_64_0F01_REG_0, | |
1706 | X86_64_0F01_REG_1, | |
1707 | X86_64_0F01_REG_2, | |
1708 | X86_64_0F01_REG_3 | |
51e7da1b | 1709 | }; |
4e7d34a6 | 1710 | |
51e7da1b L |
1711 | enum |
1712 | { | |
1713 | THREE_BYTE_0F38 = 0, | |
1f334aeb | 1714 | THREE_BYTE_0F3A |
51e7da1b | 1715 | }; |
4e7d34a6 | 1716 | |
f88c9eb0 SP |
1717 | enum |
1718 | { | |
5dd85c99 SP |
1719 | XOP_08 = 0, |
1720 | XOP_09, | |
f88c9eb0 SP |
1721 | XOP_0A |
1722 | }; | |
1723 | ||
51e7da1b L |
1724 | enum |
1725 | { | |
1726 | VEX_0F = 0, | |
3873ba12 L |
1727 | VEX_0F38, |
1728 | VEX_0F3A | |
51e7da1b | 1729 | }; |
c0f3af97 | 1730 | |
43234a1e L |
1731 | enum |
1732 | { | |
1733 | EVEX_0F = 0, | |
1734 | EVEX_0F38, | |
1735 | EVEX_0F3A | |
1736 | }; | |
1737 | ||
51e7da1b L |
1738 | enum |
1739 | { | |
592a252b L |
1740 | VEX_LEN_0F10_P_1 = 0, |
1741 | VEX_LEN_0F10_P_3, | |
1742 | VEX_LEN_0F11_P_1, | |
1743 | VEX_LEN_0F11_P_3, | |
1744 | VEX_LEN_0F12_P_0_M_0, | |
1745 | VEX_LEN_0F12_P_0_M_1, | |
1746 | VEX_LEN_0F12_P_2, | |
1747 | VEX_LEN_0F13_M_0, | |
1748 | VEX_LEN_0F16_P_0_M_0, | |
1749 | VEX_LEN_0F16_P_0_M_1, | |
1750 | VEX_LEN_0F16_P_2, | |
1751 | VEX_LEN_0F17_M_0, | |
1752 | VEX_LEN_0F2A_P_1, | |
1753 | VEX_LEN_0F2A_P_3, | |
1754 | VEX_LEN_0F2C_P_1, | |
1755 | VEX_LEN_0F2C_P_3, | |
1756 | VEX_LEN_0F2D_P_1, | |
1757 | VEX_LEN_0F2D_P_3, | |
1758 | VEX_LEN_0F2E_P_0, | |
1759 | VEX_LEN_0F2E_P_2, | |
1760 | VEX_LEN_0F2F_P_0, | |
1761 | VEX_LEN_0F2F_P_2, | |
43234a1e | 1762 | VEX_LEN_0F41_P_0, |
1ba585e8 | 1763 | VEX_LEN_0F41_P_2, |
43234a1e | 1764 | VEX_LEN_0F42_P_0, |
1ba585e8 | 1765 | VEX_LEN_0F42_P_2, |
43234a1e | 1766 | VEX_LEN_0F44_P_0, |
1ba585e8 | 1767 | VEX_LEN_0F44_P_2, |
43234a1e | 1768 | VEX_LEN_0F45_P_0, |
1ba585e8 | 1769 | VEX_LEN_0F45_P_2, |
43234a1e | 1770 | VEX_LEN_0F46_P_0, |
1ba585e8 | 1771 | VEX_LEN_0F46_P_2, |
43234a1e | 1772 | VEX_LEN_0F47_P_0, |
1ba585e8 IT |
1773 | VEX_LEN_0F47_P_2, |
1774 | VEX_LEN_0F4A_P_0, | |
1775 | VEX_LEN_0F4A_P_2, | |
1776 | VEX_LEN_0F4B_P_0, | |
43234a1e | 1777 | VEX_LEN_0F4B_P_2, |
592a252b L |
1778 | VEX_LEN_0F51_P_1, |
1779 | VEX_LEN_0F51_P_3, | |
1780 | VEX_LEN_0F52_P_1, | |
1781 | VEX_LEN_0F53_P_1, | |
1782 | VEX_LEN_0F58_P_1, | |
1783 | VEX_LEN_0F58_P_3, | |
1784 | VEX_LEN_0F59_P_1, | |
1785 | VEX_LEN_0F59_P_3, | |
1786 | VEX_LEN_0F5A_P_1, | |
1787 | VEX_LEN_0F5A_P_3, | |
1788 | VEX_LEN_0F5C_P_1, | |
1789 | VEX_LEN_0F5C_P_3, | |
1790 | VEX_LEN_0F5D_P_1, | |
1791 | VEX_LEN_0F5D_P_3, | |
1792 | VEX_LEN_0F5E_P_1, | |
1793 | VEX_LEN_0F5E_P_3, | |
1794 | VEX_LEN_0F5F_P_1, | |
1795 | VEX_LEN_0F5F_P_3, | |
592a252b | 1796 | VEX_LEN_0F6E_P_2, |
592a252b L |
1797 | VEX_LEN_0F7E_P_1, |
1798 | VEX_LEN_0F7E_P_2, | |
43234a1e | 1799 | VEX_LEN_0F90_P_0, |
1ba585e8 | 1800 | VEX_LEN_0F90_P_2, |
43234a1e | 1801 | VEX_LEN_0F91_P_0, |
1ba585e8 | 1802 | VEX_LEN_0F91_P_2, |
43234a1e | 1803 | VEX_LEN_0F92_P_0, |
90a915bf | 1804 | VEX_LEN_0F92_P_2, |
1ba585e8 | 1805 | VEX_LEN_0F92_P_3, |
43234a1e | 1806 | VEX_LEN_0F93_P_0, |
90a915bf | 1807 | VEX_LEN_0F93_P_2, |
1ba585e8 | 1808 | VEX_LEN_0F93_P_3, |
43234a1e | 1809 | VEX_LEN_0F98_P_0, |
1ba585e8 IT |
1810 | VEX_LEN_0F98_P_2, |
1811 | VEX_LEN_0F99_P_0, | |
1812 | VEX_LEN_0F99_P_2, | |
592a252b L |
1813 | VEX_LEN_0FAE_R_2_M_0, |
1814 | VEX_LEN_0FAE_R_3_M_0, | |
1815 | VEX_LEN_0FC2_P_1, | |
1816 | VEX_LEN_0FC2_P_3, | |
1817 | VEX_LEN_0FC4_P_2, | |
1818 | VEX_LEN_0FC5_P_2, | |
592a252b | 1819 | VEX_LEN_0FD6_P_2, |
592a252b | 1820 | VEX_LEN_0FF7_P_2, |
6c30d220 L |
1821 | VEX_LEN_0F3816_P_2, |
1822 | VEX_LEN_0F3819_P_2, | |
592a252b | 1823 | VEX_LEN_0F381A_P_2_M_0, |
6c30d220 | 1824 | VEX_LEN_0F3836_P_2, |
592a252b | 1825 | VEX_LEN_0F3841_P_2, |
6c30d220 | 1826 | VEX_LEN_0F385A_P_2_M_0, |
592a252b L |
1827 | VEX_LEN_0F38DB_P_2, |
1828 | VEX_LEN_0F38DC_P_2, | |
1829 | VEX_LEN_0F38DD_P_2, | |
1830 | VEX_LEN_0F38DE_P_2, | |
1831 | VEX_LEN_0F38DF_P_2, | |
f12dc422 L |
1832 | VEX_LEN_0F38F2_P_0, |
1833 | VEX_LEN_0F38F3_R_1_P_0, | |
1834 | VEX_LEN_0F38F3_R_2_P_0, | |
1835 | VEX_LEN_0F38F3_R_3_P_0, | |
6c30d220 L |
1836 | VEX_LEN_0F38F5_P_0, |
1837 | VEX_LEN_0F38F5_P_1, | |
1838 | VEX_LEN_0F38F5_P_3, | |
1839 | VEX_LEN_0F38F6_P_3, | |
f12dc422 | 1840 | VEX_LEN_0F38F7_P_0, |
6c30d220 L |
1841 | VEX_LEN_0F38F7_P_1, |
1842 | VEX_LEN_0F38F7_P_2, | |
1843 | VEX_LEN_0F38F7_P_3, | |
1844 | VEX_LEN_0F3A00_P_2, | |
1845 | VEX_LEN_0F3A01_P_2, | |
592a252b L |
1846 | VEX_LEN_0F3A06_P_2, |
1847 | VEX_LEN_0F3A0A_P_2, | |
1848 | VEX_LEN_0F3A0B_P_2, | |
592a252b L |
1849 | VEX_LEN_0F3A14_P_2, |
1850 | VEX_LEN_0F3A15_P_2, | |
1851 | VEX_LEN_0F3A16_P_2, | |
1852 | VEX_LEN_0F3A17_P_2, | |
1853 | VEX_LEN_0F3A18_P_2, | |
1854 | VEX_LEN_0F3A19_P_2, | |
1855 | VEX_LEN_0F3A20_P_2, | |
1856 | VEX_LEN_0F3A21_P_2, | |
1857 | VEX_LEN_0F3A22_P_2, | |
43234a1e | 1858 | VEX_LEN_0F3A30_P_2, |
1ba585e8 | 1859 | VEX_LEN_0F3A31_P_2, |
43234a1e | 1860 | VEX_LEN_0F3A32_P_2, |
1ba585e8 | 1861 | VEX_LEN_0F3A33_P_2, |
6c30d220 L |
1862 | VEX_LEN_0F3A38_P_2, |
1863 | VEX_LEN_0F3A39_P_2, | |
592a252b | 1864 | VEX_LEN_0F3A41_P_2, |
592a252b | 1865 | VEX_LEN_0F3A44_P_2, |
6c30d220 | 1866 | VEX_LEN_0F3A46_P_2, |
592a252b L |
1867 | VEX_LEN_0F3A60_P_2, |
1868 | VEX_LEN_0F3A61_P_2, | |
1869 | VEX_LEN_0F3A62_P_2, | |
1870 | VEX_LEN_0F3A63_P_2, | |
1871 | VEX_LEN_0F3A6A_P_2, | |
1872 | VEX_LEN_0F3A6B_P_2, | |
1873 | VEX_LEN_0F3A6E_P_2, | |
1874 | VEX_LEN_0F3A6F_P_2, | |
1875 | VEX_LEN_0F3A7A_P_2, | |
1876 | VEX_LEN_0F3A7B_P_2, | |
1877 | VEX_LEN_0F3A7E_P_2, | |
1878 | VEX_LEN_0F3A7F_P_2, | |
1879 | VEX_LEN_0F3ADF_P_2, | |
6c30d220 | 1880 | VEX_LEN_0F3AF0_P_3, |
ff688e1f L |
1881 | VEX_LEN_0FXOP_08_CC, |
1882 | VEX_LEN_0FXOP_08_CD, | |
1883 | VEX_LEN_0FXOP_08_CE, | |
1884 | VEX_LEN_0FXOP_08_CF, | |
1885 | VEX_LEN_0FXOP_08_EC, | |
1886 | VEX_LEN_0FXOP_08_ED, | |
1887 | VEX_LEN_0FXOP_08_EE, | |
1888 | VEX_LEN_0FXOP_08_EF, | |
592a252b L |
1889 | VEX_LEN_0FXOP_09_80, |
1890 | VEX_LEN_0FXOP_09_81 | |
51e7da1b | 1891 | }; |
c0f3af97 | 1892 | |
9e30b8e0 L |
1893 | enum |
1894 | { | |
592a252b L |
1895 | VEX_W_0F10_P_0 = 0, |
1896 | VEX_W_0F10_P_1, | |
1897 | VEX_W_0F10_P_2, | |
1898 | VEX_W_0F10_P_3, | |
1899 | VEX_W_0F11_P_0, | |
1900 | VEX_W_0F11_P_1, | |
1901 | VEX_W_0F11_P_2, | |
1902 | VEX_W_0F11_P_3, | |
1903 | VEX_W_0F12_P_0_M_0, | |
1904 | VEX_W_0F12_P_0_M_1, | |
1905 | VEX_W_0F12_P_1, | |
1906 | VEX_W_0F12_P_2, | |
1907 | VEX_W_0F12_P_3, | |
1908 | VEX_W_0F13_M_0, | |
1909 | VEX_W_0F14, | |
1910 | VEX_W_0F15, | |
1911 | VEX_W_0F16_P_0_M_0, | |
1912 | VEX_W_0F16_P_0_M_1, | |
1913 | VEX_W_0F16_P_1, | |
1914 | VEX_W_0F16_P_2, | |
1915 | VEX_W_0F17_M_0, | |
1916 | VEX_W_0F28, | |
1917 | VEX_W_0F29, | |
1918 | VEX_W_0F2B_M_0, | |
1919 | VEX_W_0F2E_P_0, | |
1920 | VEX_W_0F2E_P_2, | |
1921 | VEX_W_0F2F_P_0, | |
1922 | VEX_W_0F2F_P_2, | |
43234a1e | 1923 | VEX_W_0F41_P_0_LEN_1, |
1ba585e8 | 1924 | VEX_W_0F41_P_2_LEN_1, |
43234a1e | 1925 | VEX_W_0F42_P_0_LEN_1, |
1ba585e8 | 1926 | VEX_W_0F42_P_2_LEN_1, |
43234a1e | 1927 | VEX_W_0F44_P_0_LEN_0, |
1ba585e8 | 1928 | VEX_W_0F44_P_2_LEN_0, |
43234a1e | 1929 | VEX_W_0F45_P_0_LEN_1, |
1ba585e8 | 1930 | VEX_W_0F45_P_2_LEN_1, |
43234a1e | 1931 | VEX_W_0F46_P_0_LEN_1, |
1ba585e8 | 1932 | VEX_W_0F46_P_2_LEN_1, |
43234a1e | 1933 | VEX_W_0F47_P_0_LEN_1, |
1ba585e8 IT |
1934 | VEX_W_0F47_P_2_LEN_1, |
1935 | VEX_W_0F4A_P_0_LEN_1, | |
1936 | VEX_W_0F4A_P_2_LEN_1, | |
1937 | VEX_W_0F4B_P_0_LEN_1, | |
43234a1e | 1938 | VEX_W_0F4B_P_2_LEN_1, |
592a252b L |
1939 | VEX_W_0F50_M_0, |
1940 | VEX_W_0F51_P_0, | |
1941 | VEX_W_0F51_P_1, | |
1942 | VEX_W_0F51_P_2, | |
1943 | VEX_W_0F51_P_3, | |
1944 | VEX_W_0F52_P_0, | |
1945 | VEX_W_0F52_P_1, | |
1946 | VEX_W_0F53_P_0, | |
1947 | VEX_W_0F53_P_1, | |
1948 | VEX_W_0F58_P_0, | |
1949 | VEX_W_0F58_P_1, | |
1950 | VEX_W_0F58_P_2, | |
1951 | VEX_W_0F58_P_3, | |
1952 | VEX_W_0F59_P_0, | |
1953 | VEX_W_0F59_P_1, | |
1954 | VEX_W_0F59_P_2, | |
1955 | VEX_W_0F59_P_3, | |
1956 | VEX_W_0F5A_P_0, | |
1957 | VEX_W_0F5A_P_1, | |
1958 | VEX_W_0F5A_P_3, | |
1959 | VEX_W_0F5B_P_0, | |
1960 | VEX_W_0F5B_P_1, | |
1961 | VEX_W_0F5B_P_2, | |
1962 | VEX_W_0F5C_P_0, | |
1963 | VEX_W_0F5C_P_1, | |
1964 | VEX_W_0F5C_P_2, | |
1965 | VEX_W_0F5C_P_3, | |
1966 | VEX_W_0F5D_P_0, | |
1967 | VEX_W_0F5D_P_1, | |
1968 | VEX_W_0F5D_P_2, | |
1969 | VEX_W_0F5D_P_3, | |
1970 | VEX_W_0F5E_P_0, | |
1971 | VEX_W_0F5E_P_1, | |
1972 | VEX_W_0F5E_P_2, | |
1973 | VEX_W_0F5E_P_3, | |
1974 | VEX_W_0F5F_P_0, | |
1975 | VEX_W_0F5F_P_1, | |
1976 | VEX_W_0F5F_P_2, | |
1977 | VEX_W_0F5F_P_3, | |
1978 | VEX_W_0F60_P_2, | |
1979 | VEX_W_0F61_P_2, | |
1980 | VEX_W_0F62_P_2, | |
1981 | VEX_W_0F63_P_2, | |
1982 | VEX_W_0F64_P_2, | |
1983 | VEX_W_0F65_P_2, | |
1984 | VEX_W_0F66_P_2, | |
1985 | VEX_W_0F67_P_2, | |
1986 | VEX_W_0F68_P_2, | |
1987 | VEX_W_0F69_P_2, | |
1988 | VEX_W_0F6A_P_2, | |
1989 | VEX_W_0F6B_P_2, | |
1990 | VEX_W_0F6C_P_2, | |
1991 | VEX_W_0F6D_P_2, | |
1992 | VEX_W_0F6F_P_1, | |
1993 | VEX_W_0F6F_P_2, | |
1994 | VEX_W_0F70_P_1, | |
1995 | VEX_W_0F70_P_2, | |
1996 | VEX_W_0F70_P_3, | |
1997 | VEX_W_0F71_R_2_P_2, | |
1998 | VEX_W_0F71_R_4_P_2, | |
1999 | VEX_W_0F71_R_6_P_2, | |
2000 | VEX_W_0F72_R_2_P_2, | |
2001 | VEX_W_0F72_R_4_P_2, | |
2002 | VEX_W_0F72_R_6_P_2, | |
2003 | VEX_W_0F73_R_2_P_2, | |
2004 | VEX_W_0F73_R_3_P_2, | |
2005 | VEX_W_0F73_R_6_P_2, | |
2006 | VEX_W_0F73_R_7_P_2, | |
2007 | VEX_W_0F74_P_2, | |
2008 | VEX_W_0F75_P_2, | |
2009 | VEX_W_0F76_P_2, | |
2010 | VEX_W_0F77_P_0, | |
2011 | VEX_W_0F7C_P_2, | |
2012 | VEX_W_0F7C_P_3, | |
2013 | VEX_W_0F7D_P_2, | |
2014 | VEX_W_0F7D_P_3, | |
2015 | VEX_W_0F7E_P_1, | |
2016 | VEX_W_0F7F_P_1, | |
2017 | VEX_W_0F7F_P_2, | |
43234a1e | 2018 | VEX_W_0F90_P_0_LEN_0, |
1ba585e8 | 2019 | VEX_W_0F90_P_2_LEN_0, |
43234a1e | 2020 | VEX_W_0F91_P_0_LEN_0, |
1ba585e8 | 2021 | VEX_W_0F91_P_2_LEN_0, |
43234a1e | 2022 | VEX_W_0F92_P_0_LEN_0, |
90a915bf | 2023 | VEX_W_0F92_P_2_LEN_0, |
1ba585e8 | 2024 | VEX_W_0F92_P_3_LEN_0, |
43234a1e | 2025 | VEX_W_0F93_P_0_LEN_0, |
90a915bf | 2026 | VEX_W_0F93_P_2_LEN_0, |
1ba585e8 | 2027 | VEX_W_0F93_P_3_LEN_0, |
43234a1e | 2028 | VEX_W_0F98_P_0_LEN_0, |
1ba585e8 IT |
2029 | VEX_W_0F98_P_2_LEN_0, |
2030 | VEX_W_0F99_P_0_LEN_0, | |
2031 | VEX_W_0F99_P_2_LEN_0, | |
592a252b L |
2032 | VEX_W_0FAE_R_2_M_0, |
2033 | VEX_W_0FAE_R_3_M_0, | |
2034 | VEX_W_0FC2_P_0, | |
2035 | VEX_W_0FC2_P_1, | |
2036 | VEX_W_0FC2_P_2, | |
2037 | VEX_W_0FC2_P_3, | |
2038 | VEX_W_0FC4_P_2, | |
2039 | VEX_W_0FC5_P_2, | |
2040 | VEX_W_0FD0_P_2, | |
2041 | VEX_W_0FD0_P_3, | |
2042 | VEX_W_0FD1_P_2, | |
2043 | VEX_W_0FD2_P_2, | |
2044 | VEX_W_0FD3_P_2, | |
2045 | VEX_W_0FD4_P_2, | |
2046 | VEX_W_0FD5_P_2, | |
2047 | VEX_W_0FD6_P_2, | |
2048 | VEX_W_0FD7_P_2_M_1, | |
2049 | VEX_W_0FD8_P_2, | |
2050 | VEX_W_0FD9_P_2, | |
2051 | VEX_W_0FDA_P_2, | |
2052 | VEX_W_0FDB_P_2, | |
2053 | VEX_W_0FDC_P_2, | |
2054 | VEX_W_0FDD_P_2, | |
2055 | VEX_W_0FDE_P_2, | |
2056 | VEX_W_0FDF_P_2, | |
2057 | VEX_W_0FE0_P_2, | |
2058 | VEX_W_0FE1_P_2, | |
2059 | VEX_W_0FE2_P_2, | |
2060 | VEX_W_0FE3_P_2, | |
2061 | VEX_W_0FE4_P_2, | |
2062 | VEX_W_0FE5_P_2, | |
2063 | VEX_W_0FE6_P_1, | |
2064 | VEX_W_0FE6_P_2, | |
2065 | VEX_W_0FE6_P_3, | |
2066 | VEX_W_0FE7_P_2_M_0, | |
2067 | VEX_W_0FE8_P_2, | |
2068 | VEX_W_0FE9_P_2, | |
2069 | VEX_W_0FEA_P_2, | |
2070 | VEX_W_0FEB_P_2, | |
2071 | VEX_W_0FEC_P_2, | |
2072 | VEX_W_0FED_P_2, | |
2073 | VEX_W_0FEE_P_2, | |
2074 | VEX_W_0FEF_P_2, | |
2075 | VEX_W_0FF0_P_3_M_0, | |
2076 | VEX_W_0FF1_P_2, | |
2077 | VEX_W_0FF2_P_2, | |
2078 | VEX_W_0FF3_P_2, | |
2079 | VEX_W_0FF4_P_2, | |
2080 | VEX_W_0FF5_P_2, | |
2081 | VEX_W_0FF6_P_2, | |
2082 | VEX_W_0FF7_P_2, | |
2083 | VEX_W_0FF8_P_2, | |
2084 | VEX_W_0FF9_P_2, | |
2085 | VEX_W_0FFA_P_2, | |
2086 | VEX_W_0FFB_P_2, | |
2087 | VEX_W_0FFC_P_2, | |
2088 | VEX_W_0FFD_P_2, | |
2089 | VEX_W_0FFE_P_2, | |
2090 | VEX_W_0F3800_P_2, | |
2091 | VEX_W_0F3801_P_2, | |
2092 | VEX_W_0F3802_P_2, | |
2093 | VEX_W_0F3803_P_2, | |
2094 | VEX_W_0F3804_P_2, | |
2095 | VEX_W_0F3805_P_2, | |
2096 | VEX_W_0F3806_P_2, | |
2097 | VEX_W_0F3807_P_2, | |
2098 | VEX_W_0F3808_P_2, | |
2099 | VEX_W_0F3809_P_2, | |
2100 | VEX_W_0F380A_P_2, | |
2101 | VEX_W_0F380B_P_2, | |
2102 | VEX_W_0F380C_P_2, | |
2103 | VEX_W_0F380D_P_2, | |
2104 | VEX_W_0F380E_P_2, | |
2105 | VEX_W_0F380F_P_2, | |
6c30d220 | 2106 | VEX_W_0F3816_P_2, |
592a252b | 2107 | VEX_W_0F3817_P_2, |
6c30d220 L |
2108 | VEX_W_0F3818_P_2, |
2109 | VEX_W_0F3819_P_2, | |
592a252b L |
2110 | VEX_W_0F381A_P_2_M_0, |
2111 | VEX_W_0F381C_P_2, | |
2112 | VEX_W_0F381D_P_2, | |
2113 | VEX_W_0F381E_P_2, | |
2114 | VEX_W_0F3820_P_2, | |
2115 | VEX_W_0F3821_P_2, | |
2116 | VEX_W_0F3822_P_2, | |
2117 | VEX_W_0F3823_P_2, | |
2118 | VEX_W_0F3824_P_2, | |
2119 | VEX_W_0F3825_P_2, | |
2120 | VEX_W_0F3828_P_2, | |
2121 | VEX_W_0F3829_P_2, | |
2122 | VEX_W_0F382A_P_2_M_0, | |
2123 | VEX_W_0F382B_P_2, | |
2124 | VEX_W_0F382C_P_2_M_0, | |
2125 | VEX_W_0F382D_P_2_M_0, | |
2126 | VEX_W_0F382E_P_2_M_0, | |
2127 | VEX_W_0F382F_P_2_M_0, | |
2128 | VEX_W_0F3830_P_2, | |
2129 | VEX_W_0F3831_P_2, | |
2130 | VEX_W_0F3832_P_2, | |
2131 | VEX_W_0F3833_P_2, | |
2132 | VEX_W_0F3834_P_2, | |
2133 | VEX_W_0F3835_P_2, | |
6c30d220 | 2134 | VEX_W_0F3836_P_2, |
592a252b L |
2135 | VEX_W_0F3837_P_2, |
2136 | VEX_W_0F3838_P_2, | |
2137 | VEX_W_0F3839_P_2, | |
2138 | VEX_W_0F383A_P_2, | |
2139 | VEX_W_0F383B_P_2, | |
2140 | VEX_W_0F383C_P_2, | |
2141 | VEX_W_0F383D_P_2, | |
2142 | VEX_W_0F383E_P_2, | |
2143 | VEX_W_0F383F_P_2, | |
2144 | VEX_W_0F3840_P_2, | |
2145 | VEX_W_0F3841_P_2, | |
6c30d220 L |
2146 | VEX_W_0F3846_P_2, |
2147 | VEX_W_0F3858_P_2, | |
2148 | VEX_W_0F3859_P_2, | |
2149 | VEX_W_0F385A_P_2_M_0, | |
2150 | VEX_W_0F3878_P_2, | |
2151 | VEX_W_0F3879_P_2, | |
592a252b L |
2152 | VEX_W_0F38DB_P_2, |
2153 | VEX_W_0F38DC_P_2, | |
2154 | VEX_W_0F38DD_P_2, | |
2155 | VEX_W_0F38DE_P_2, | |
2156 | VEX_W_0F38DF_P_2, | |
6c30d220 L |
2157 | VEX_W_0F3A00_P_2, |
2158 | VEX_W_0F3A01_P_2, | |
2159 | VEX_W_0F3A02_P_2, | |
592a252b L |
2160 | VEX_W_0F3A04_P_2, |
2161 | VEX_W_0F3A05_P_2, | |
2162 | VEX_W_0F3A06_P_2, | |
2163 | VEX_W_0F3A08_P_2, | |
2164 | VEX_W_0F3A09_P_2, | |
2165 | VEX_W_0F3A0A_P_2, | |
2166 | VEX_W_0F3A0B_P_2, | |
2167 | VEX_W_0F3A0C_P_2, | |
2168 | VEX_W_0F3A0D_P_2, | |
2169 | VEX_W_0F3A0E_P_2, | |
2170 | VEX_W_0F3A0F_P_2, | |
2171 | VEX_W_0F3A14_P_2, | |
2172 | VEX_W_0F3A15_P_2, | |
2173 | VEX_W_0F3A18_P_2, | |
2174 | VEX_W_0F3A19_P_2, | |
2175 | VEX_W_0F3A20_P_2, | |
2176 | VEX_W_0F3A21_P_2, | |
43234a1e | 2177 | VEX_W_0F3A30_P_2_LEN_0, |
1ba585e8 | 2178 | VEX_W_0F3A31_P_2_LEN_0, |
43234a1e | 2179 | VEX_W_0F3A32_P_2_LEN_0, |
1ba585e8 | 2180 | VEX_W_0F3A33_P_2_LEN_0, |
6c30d220 L |
2181 | VEX_W_0F3A38_P_2, |
2182 | VEX_W_0F3A39_P_2, | |
592a252b L |
2183 | VEX_W_0F3A40_P_2, |
2184 | VEX_W_0F3A41_P_2, | |
2185 | VEX_W_0F3A42_P_2, | |
2186 | VEX_W_0F3A44_P_2, | |
6c30d220 | 2187 | VEX_W_0F3A46_P_2, |
592a252b L |
2188 | VEX_W_0F3A48_P_2, |
2189 | VEX_W_0F3A49_P_2, | |
2190 | VEX_W_0F3A4A_P_2, | |
2191 | VEX_W_0F3A4B_P_2, | |
2192 | VEX_W_0F3A4C_P_2, | |
2193 | VEX_W_0F3A60_P_2, | |
2194 | VEX_W_0F3A61_P_2, | |
2195 | VEX_W_0F3A62_P_2, | |
2196 | VEX_W_0F3A63_P_2, | |
43234a1e L |
2197 | VEX_W_0F3ADF_P_2, |
2198 | ||
2199 | EVEX_W_0F10_P_0, | |
2200 | EVEX_W_0F10_P_1_M_0, | |
2201 | EVEX_W_0F10_P_1_M_1, | |
2202 | EVEX_W_0F10_P_2, | |
2203 | EVEX_W_0F10_P_3_M_0, | |
2204 | EVEX_W_0F10_P_3_M_1, | |
2205 | EVEX_W_0F11_P_0, | |
2206 | EVEX_W_0F11_P_1_M_0, | |
2207 | EVEX_W_0F11_P_1_M_1, | |
2208 | EVEX_W_0F11_P_2, | |
2209 | EVEX_W_0F11_P_3_M_0, | |
2210 | EVEX_W_0F11_P_3_M_1, | |
2211 | EVEX_W_0F12_P_0_M_0, | |
2212 | EVEX_W_0F12_P_0_M_1, | |
2213 | EVEX_W_0F12_P_1, | |
2214 | EVEX_W_0F12_P_2, | |
2215 | EVEX_W_0F12_P_3, | |
2216 | EVEX_W_0F13_P_0, | |
2217 | EVEX_W_0F13_P_2, | |
2218 | EVEX_W_0F14_P_0, | |
2219 | EVEX_W_0F14_P_2, | |
2220 | EVEX_W_0F15_P_0, | |
2221 | EVEX_W_0F15_P_2, | |
2222 | EVEX_W_0F16_P_0_M_0, | |
2223 | EVEX_W_0F16_P_0_M_1, | |
2224 | EVEX_W_0F16_P_1, | |
2225 | EVEX_W_0F16_P_2, | |
2226 | EVEX_W_0F17_P_0, | |
2227 | EVEX_W_0F17_P_2, | |
2228 | EVEX_W_0F28_P_0, | |
2229 | EVEX_W_0F28_P_2, | |
2230 | EVEX_W_0F29_P_0, | |
2231 | EVEX_W_0F29_P_2, | |
2232 | EVEX_W_0F2A_P_1, | |
2233 | EVEX_W_0F2A_P_3, | |
2234 | EVEX_W_0F2B_P_0, | |
2235 | EVEX_W_0F2B_P_2, | |
2236 | EVEX_W_0F2E_P_0, | |
2237 | EVEX_W_0F2E_P_2, | |
2238 | EVEX_W_0F2F_P_0, | |
2239 | EVEX_W_0F2F_P_2, | |
2240 | EVEX_W_0F51_P_0, | |
2241 | EVEX_W_0F51_P_1, | |
2242 | EVEX_W_0F51_P_2, | |
2243 | EVEX_W_0F51_P_3, | |
90a915bf IT |
2244 | EVEX_W_0F54_P_0, |
2245 | EVEX_W_0F54_P_2, | |
2246 | EVEX_W_0F55_P_0, | |
2247 | EVEX_W_0F55_P_2, | |
2248 | EVEX_W_0F56_P_0, | |
2249 | EVEX_W_0F56_P_2, | |
2250 | EVEX_W_0F57_P_0, | |
2251 | EVEX_W_0F57_P_2, | |
43234a1e L |
2252 | EVEX_W_0F58_P_0, |
2253 | EVEX_W_0F58_P_1, | |
2254 | EVEX_W_0F58_P_2, | |
2255 | EVEX_W_0F58_P_3, | |
2256 | EVEX_W_0F59_P_0, | |
2257 | EVEX_W_0F59_P_1, | |
2258 | EVEX_W_0F59_P_2, | |
2259 | EVEX_W_0F59_P_3, | |
2260 | EVEX_W_0F5A_P_0, | |
2261 | EVEX_W_0F5A_P_1, | |
2262 | EVEX_W_0F5A_P_2, | |
2263 | EVEX_W_0F5A_P_3, | |
2264 | EVEX_W_0F5B_P_0, | |
2265 | EVEX_W_0F5B_P_1, | |
2266 | EVEX_W_0F5B_P_2, | |
2267 | EVEX_W_0F5C_P_0, | |
2268 | EVEX_W_0F5C_P_1, | |
2269 | EVEX_W_0F5C_P_2, | |
2270 | EVEX_W_0F5C_P_3, | |
2271 | EVEX_W_0F5D_P_0, | |
2272 | EVEX_W_0F5D_P_1, | |
2273 | EVEX_W_0F5D_P_2, | |
2274 | EVEX_W_0F5D_P_3, | |
2275 | EVEX_W_0F5E_P_0, | |
2276 | EVEX_W_0F5E_P_1, | |
2277 | EVEX_W_0F5E_P_2, | |
2278 | EVEX_W_0F5E_P_3, | |
2279 | EVEX_W_0F5F_P_0, | |
2280 | EVEX_W_0F5F_P_1, | |
2281 | EVEX_W_0F5F_P_2, | |
2282 | EVEX_W_0F5F_P_3, | |
2283 | EVEX_W_0F62_P_2, | |
2284 | EVEX_W_0F66_P_2, | |
2285 | EVEX_W_0F6A_P_2, | |
1ba585e8 | 2286 | EVEX_W_0F6B_P_2, |
43234a1e L |
2287 | EVEX_W_0F6C_P_2, |
2288 | EVEX_W_0F6D_P_2, | |
2289 | EVEX_W_0F6E_P_2, | |
2290 | EVEX_W_0F6F_P_1, | |
2291 | EVEX_W_0F6F_P_2, | |
1ba585e8 | 2292 | EVEX_W_0F6F_P_3, |
43234a1e L |
2293 | EVEX_W_0F70_P_2, |
2294 | EVEX_W_0F72_R_2_P_2, | |
2295 | EVEX_W_0F72_R_6_P_2, | |
2296 | EVEX_W_0F73_R_2_P_2, | |
2297 | EVEX_W_0F73_R_6_P_2, | |
2298 | EVEX_W_0F76_P_2, | |
2299 | EVEX_W_0F78_P_0, | |
90a915bf | 2300 | EVEX_W_0F78_P_2, |
43234a1e | 2301 | EVEX_W_0F79_P_0, |
90a915bf | 2302 | EVEX_W_0F79_P_2, |
43234a1e | 2303 | EVEX_W_0F7A_P_1, |
90a915bf | 2304 | EVEX_W_0F7A_P_2, |
43234a1e L |
2305 | EVEX_W_0F7A_P_3, |
2306 | EVEX_W_0F7B_P_1, | |
90a915bf | 2307 | EVEX_W_0F7B_P_2, |
43234a1e L |
2308 | EVEX_W_0F7B_P_3, |
2309 | EVEX_W_0F7E_P_1, | |
2310 | EVEX_W_0F7E_P_2, | |
2311 | EVEX_W_0F7F_P_1, | |
2312 | EVEX_W_0F7F_P_2, | |
1ba585e8 | 2313 | EVEX_W_0F7F_P_3, |
43234a1e L |
2314 | EVEX_W_0FC2_P_0, |
2315 | EVEX_W_0FC2_P_1, | |
2316 | EVEX_W_0FC2_P_2, | |
2317 | EVEX_W_0FC2_P_3, | |
2318 | EVEX_W_0FC6_P_0, | |
2319 | EVEX_W_0FC6_P_2, | |
2320 | EVEX_W_0FD2_P_2, | |
2321 | EVEX_W_0FD3_P_2, | |
2322 | EVEX_W_0FD4_P_2, | |
2323 | EVEX_W_0FD6_P_2, | |
2324 | EVEX_W_0FE6_P_1, | |
2325 | EVEX_W_0FE6_P_2, | |
2326 | EVEX_W_0FE6_P_3, | |
2327 | EVEX_W_0FE7_P_2, | |
2328 | EVEX_W_0FF2_P_2, | |
2329 | EVEX_W_0FF3_P_2, | |
2330 | EVEX_W_0FF4_P_2, | |
2331 | EVEX_W_0FFA_P_2, | |
2332 | EVEX_W_0FFB_P_2, | |
2333 | EVEX_W_0FFE_P_2, | |
2334 | EVEX_W_0F380C_P_2, | |
2335 | EVEX_W_0F380D_P_2, | |
1ba585e8 IT |
2336 | EVEX_W_0F3810_P_1, |
2337 | EVEX_W_0F3810_P_2, | |
43234a1e | 2338 | EVEX_W_0F3811_P_1, |
1ba585e8 | 2339 | EVEX_W_0F3811_P_2, |
43234a1e | 2340 | EVEX_W_0F3812_P_1, |
1ba585e8 | 2341 | EVEX_W_0F3812_P_2, |
43234a1e L |
2342 | EVEX_W_0F3813_P_1, |
2343 | EVEX_W_0F3813_P_2, | |
2344 | EVEX_W_0F3814_P_1, | |
2345 | EVEX_W_0F3815_P_1, | |
2346 | EVEX_W_0F3818_P_2, | |
2347 | EVEX_W_0F3819_P_2, | |
2348 | EVEX_W_0F381A_P_2, | |
2349 | EVEX_W_0F381B_P_2, | |
2350 | EVEX_W_0F381E_P_2, | |
2351 | EVEX_W_0F381F_P_2, | |
1ba585e8 | 2352 | EVEX_W_0F3820_P_1, |
43234a1e L |
2353 | EVEX_W_0F3821_P_1, |
2354 | EVEX_W_0F3822_P_1, | |
2355 | EVEX_W_0F3823_P_1, | |
2356 | EVEX_W_0F3824_P_1, | |
2357 | EVEX_W_0F3825_P_1, | |
2358 | EVEX_W_0F3825_P_2, | |
1ba585e8 IT |
2359 | EVEX_W_0F3826_P_1, |
2360 | EVEX_W_0F3826_P_2, | |
2361 | EVEX_W_0F3828_P_1, | |
43234a1e | 2362 | EVEX_W_0F3828_P_2, |
1ba585e8 | 2363 | EVEX_W_0F3829_P_1, |
43234a1e L |
2364 | EVEX_W_0F3829_P_2, |
2365 | EVEX_W_0F382A_P_1, | |
2366 | EVEX_W_0F382A_P_2, | |
1ba585e8 IT |
2367 | EVEX_W_0F382B_P_2, |
2368 | EVEX_W_0F3830_P_1, | |
43234a1e L |
2369 | EVEX_W_0F3831_P_1, |
2370 | EVEX_W_0F3832_P_1, | |
2371 | EVEX_W_0F3833_P_1, | |
2372 | EVEX_W_0F3834_P_1, | |
2373 | EVEX_W_0F3835_P_1, | |
2374 | EVEX_W_0F3835_P_2, | |
2375 | EVEX_W_0F3837_P_2, | |
90a915bf IT |
2376 | EVEX_W_0F3838_P_1, |
2377 | EVEX_W_0F3839_P_1, | |
43234a1e L |
2378 | EVEX_W_0F383A_P_1, |
2379 | EVEX_W_0F3840_P_2, | |
2380 | EVEX_W_0F3858_P_2, | |
2381 | EVEX_W_0F3859_P_2, | |
2382 | EVEX_W_0F385A_P_2, | |
2383 | EVEX_W_0F385B_P_2, | |
1ba585e8 IT |
2384 | EVEX_W_0F3866_P_2, |
2385 | EVEX_W_0F3875_P_2, | |
2386 | EVEX_W_0F3878_P_2, | |
2387 | EVEX_W_0F3879_P_2, | |
2388 | EVEX_W_0F387A_P_2, | |
2389 | EVEX_W_0F387B_P_2, | |
2390 | EVEX_W_0F387D_P_2, | |
14f195c9 | 2391 | EVEX_W_0F3883_P_2, |
1ba585e8 | 2392 | EVEX_W_0F388D_P_2, |
43234a1e L |
2393 | EVEX_W_0F3891_P_2, |
2394 | EVEX_W_0F3893_P_2, | |
2395 | EVEX_W_0F38A1_P_2, | |
2396 | EVEX_W_0F38A3_P_2, | |
2397 | EVEX_W_0F38C7_R_1_P_2, | |
2398 | EVEX_W_0F38C7_R_2_P_2, | |
2399 | EVEX_W_0F38C7_R_5_P_2, | |
2400 | EVEX_W_0F38C7_R_6_P_2, | |
2401 | ||
2402 | EVEX_W_0F3A00_P_2, | |
2403 | EVEX_W_0F3A01_P_2, | |
2404 | EVEX_W_0F3A04_P_2, | |
2405 | EVEX_W_0F3A05_P_2, | |
2406 | EVEX_W_0F3A08_P_2, | |
2407 | EVEX_W_0F3A09_P_2, | |
2408 | EVEX_W_0F3A0A_P_2, | |
2409 | EVEX_W_0F3A0B_P_2, | |
90a915bf | 2410 | EVEX_W_0F3A16_P_2, |
43234a1e L |
2411 | EVEX_W_0F3A18_P_2, |
2412 | EVEX_W_0F3A19_P_2, | |
2413 | EVEX_W_0F3A1A_P_2, | |
2414 | EVEX_W_0F3A1B_P_2, | |
2415 | EVEX_W_0F3A1D_P_2, | |
2416 | EVEX_W_0F3A21_P_2, | |
90a915bf | 2417 | EVEX_W_0F3A22_P_2, |
43234a1e L |
2418 | EVEX_W_0F3A23_P_2, |
2419 | EVEX_W_0F3A38_P_2, | |
2420 | EVEX_W_0F3A39_P_2, | |
2421 | EVEX_W_0F3A3A_P_2, | |
2422 | EVEX_W_0F3A3B_P_2, | |
1ba585e8 IT |
2423 | EVEX_W_0F3A3E_P_2, |
2424 | EVEX_W_0F3A3F_P_2, | |
2425 | EVEX_W_0F3A42_P_2, | |
90a915bf IT |
2426 | EVEX_W_0F3A43_P_2, |
2427 | EVEX_W_0F3A50_P_2, | |
2428 | EVEX_W_0F3A51_P_2, | |
2429 | EVEX_W_0F3A56_P_2, | |
2430 | EVEX_W_0F3A57_P_2, | |
2431 | EVEX_W_0F3A66_P_2, | |
2432 | EVEX_W_0F3A67_P_2 | |
9e30b8e0 L |
2433 | }; |
2434 | ||
26ca5450 | 2435 | typedef void (*op_rtn) (int bytemode, int sizeflag); |
252b5132 RH |
2436 | |
2437 | struct dis386 { | |
2da11e11 | 2438 | const char *name; |
ce518a5f L |
2439 | struct |
2440 | { | |
2441 | op_rtn rtn; | |
2442 | int bytemode; | |
2443 | } op[MAX_OPERANDS]; | |
bf890a93 | 2444 | unsigned int prefix_requirement; |
252b5132 RH |
2445 | }; |
2446 | ||
2447 | /* Upper case letters in the instruction names here are macros. | |
2448 | 'A' => print 'b' if no register operands or suffix_always is true | |
2449 | 'B' => print 'b' if suffix_always is true | |
9306ca4a | 2450 | 'C' => print 's' or 'l' ('w' or 'd' in Intel mode) depending on operand |
98b528ac | 2451 | size prefix |
ed7841b3 | 2452 | 'D' => print 'w' if no register operands or 'w', 'l' or 'q', if |
98b528ac | 2453 | suffix_always is true |
252b5132 | 2454 | 'E' => print 'e' if 32-bit form of jcxz |
3ffd33cf | 2455 | 'F' => print 'w' or 'l' depending on address size prefix (loop insns) |
52fd6d94 | 2456 | 'G' => print 'w' or 'l' depending on operand size prefix (i/o insns) |
5dd0794d | 2457 | 'H' => print ",pt" or ",pn" branch hint |
9306ca4a | 2458 | 'I' => honor following macro letter even in Intel mode (implemented only |
98b528ac | 2459 | for some of the macro letters) |
9306ca4a | 2460 | 'J' => print 'l' |
42903f7f | 2461 | 'K' => print 'd' or 'q' if rex prefix is present. |
252b5132 | 2462 | 'L' => print 'l' if suffix_always is true |
9d141669 | 2463 | 'M' => print 'r' if intel_mnemonic is false. |
252b5132 | 2464 | 'N' => print 'n' if instruction has no wait "prefix" |
a35ca55a | 2465 | 'O' => print 'd' or 'o' (or 'q' in Intel mode) |
52b15da3 | 2466 | 'P' => print 'w', 'l' or 'q' if instruction has an operand size prefix, |
98b528ac L |
2467 | or suffix_always is true. print 'q' if rex prefix is present. |
2468 | 'Q' => print 'w', 'l' or 'q' for memory operand or suffix_always | |
2469 | is true | |
a35ca55a | 2470 | 'R' => print 'w', 'l' or 'q' ('d' for 'l' and 'e' in Intel mode) |
52b15da3 | 2471 | 'S' => print 'w', 'l' or 'q' if suffix_always is true |
a72d2af2 L |
2472 | 'T' => print 'q' in 64bit mode if instruction has no operand size |
2473 | prefix and behave as 'P' otherwise | |
2474 | 'U' => print 'q' in 64bit mode if instruction has no operand size | |
2475 | prefix and behave as 'Q' otherwise | |
2476 | 'V' => print 'q' in 64bit mode if instruction has no operand size | |
2477 | prefix and behave as 'S' otherwise | |
a35ca55a | 2478 | 'W' => print 'b', 'w' or 'l' ('d' in Intel mode) |
9306ca4a | 2479 | 'X' => print 's', 'd' depending on data16 prefix (for XMM) |
8a72226a L |
2480 | 'Y' => 'q' if instruction has an REX 64bit overwrite prefix and |
2481 | suffix_always is true. | |
6dd5059a | 2482 | 'Z' => print 'q' in 64bit mode and behave as 'L' otherwise |
9d141669 | 2483 | '!' => change condition from true to false or from false to true. |
98b528ac | 2484 | '%' => add 1 upper case letter to the macro. |
a72d2af2 L |
2485 | '^' => print 'w' or 'l' depending on operand size prefix or |
2486 | suffix_always is true (lcall/ljmp). | |
5db04b09 L |
2487 | '@' => print 'q' for Intel64 ISA, 'w' or 'q' for AMD64 ISA depending |
2488 | on operand size prefix. | |
07f5af7d L |
2489 | '&' => print 'q' in 64bit mode for Intel64 ISA or if instruction |
2490 | has no operand size prefix for AMD64 ISA, behave as 'P' | |
2491 | otherwise | |
98b528ac L |
2492 | |
2493 | 2 upper case letter macros: | |
04d824a4 JB |
2494 | "XY" => print 'x' or 'y' if suffix_always is true or no register |
2495 | operands and no broadcast. | |
2496 | "XZ" => print 'x', 'y', or 'z' if suffix_always is true or no | |
2497 | register operands and no broadcast. | |
4b06377f L |
2498 | "XW" => print 's', 'd' depending on the VEX.W bit (for FMA) |
2499 | "LQ" => print 'l' ('d' in Intel mode) or 'q' for memory operand | |
98b528ac | 2500 | or suffix_always is true |
4b06377f L |
2501 | "LB" => print "abs" in 64bit mode and behave as 'B' otherwise |
2502 | "LS" => print "abs" in 64bit mode and behave as 'S' otherwise | |
2503 | "LV" => print "abs" for 64bit operand and behave as 'S' otherwise | |
6c30d220 | 2504 | "LW" => print 'd', 'q' depending on the VEX.W bit |
4b4c407a L |
2505 | "LP" => print 'w' or 'l' ('d' in Intel mode) if instruction has |
2506 | an operand size prefix, or suffix_always is true. print | |
2507 | 'q' if rex prefix is present. | |
52b15da3 | 2508 | |
6439fc28 AM |
2509 | Many of the above letters print nothing in Intel mode. See "putop" |
2510 | for the details. | |
52b15da3 | 2511 | |
6439fc28 | 2512 | Braces '{' and '}', and vertical bars '|', indicate alternative |
7c52e0e8 | 2513 | mnemonic strings for AT&T and Intel. */ |
252b5132 | 2514 | |
6439fc28 | 2515 | static const struct dis386 dis386[] = { |
252b5132 | 2516 | /* 00 */ |
bf890a93 IT |
2517 | { "addB", { Ebh1, Gb }, 0 }, |
2518 | { "addS", { Evh1, Gv }, 0 }, | |
2519 | { "addB", { Gb, EbS }, 0 }, | |
2520 | { "addS", { Gv, EvS }, 0 }, | |
2521 | { "addB", { AL, Ib }, 0 }, | |
2522 | { "addS", { eAX, Iv }, 0 }, | |
4e7d34a6 L |
2523 | { X86_64_TABLE (X86_64_06) }, |
2524 | { X86_64_TABLE (X86_64_07) }, | |
252b5132 | 2525 | /* 08 */ |
bf890a93 IT |
2526 | { "orB", { Ebh1, Gb }, 0 }, |
2527 | { "orS", { Evh1, Gv }, 0 }, | |
2528 | { "orB", { Gb, EbS }, 0 }, | |
2529 | { "orS", { Gv, EvS }, 0 }, | |
2530 | { "orB", { AL, Ib }, 0 }, | |
2531 | { "orS", { eAX, Iv }, 0 }, | |
4e7d34a6 | 2532 | { X86_64_TABLE (X86_64_0D) }, |
592d1631 | 2533 | { Bad_Opcode }, /* 0x0f extended opcode escape */ |
252b5132 | 2534 | /* 10 */ |
bf890a93 IT |
2535 | { "adcB", { Ebh1, Gb }, 0 }, |
2536 | { "adcS", { Evh1, Gv }, 0 }, | |
2537 | { "adcB", { Gb, EbS }, 0 }, | |
2538 | { "adcS", { Gv, EvS }, 0 }, | |
2539 | { "adcB", { AL, Ib }, 0 }, | |
2540 | { "adcS", { eAX, Iv }, 0 }, | |
4e7d34a6 L |
2541 | { X86_64_TABLE (X86_64_16) }, |
2542 | { X86_64_TABLE (X86_64_17) }, | |
252b5132 | 2543 | /* 18 */ |
bf890a93 IT |
2544 | { "sbbB", { Ebh1, Gb }, 0 }, |
2545 | { "sbbS", { Evh1, Gv }, 0 }, | |
2546 | { "sbbB", { Gb, EbS }, 0 }, | |
2547 | { "sbbS", { Gv, EvS }, 0 }, | |
2548 | { "sbbB", { AL, Ib }, 0 }, | |
2549 | { "sbbS", { eAX, Iv }, 0 }, | |
4e7d34a6 L |
2550 | { X86_64_TABLE (X86_64_1E) }, |
2551 | { X86_64_TABLE (X86_64_1F) }, | |
252b5132 | 2552 | /* 20 */ |
bf890a93 IT |
2553 | { "andB", { Ebh1, Gb }, 0 }, |
2554 | { "andS", { Evh1, Gv }, 0 }, | |
2555 | { "andB", { Gb, EbS }, 0 }, | |
2556 | { "andS", { Gv, EvS }, 0 }, | |
2557 | { "andB", { AL, Ib }, 0 }, | |
2558 | { "andS", { eAX, Iv }, 0 }, | |
592d1631 | 2559 | { Bad_Opcode }, /* SEG ES prefix */ |
4e7d34a6 | 2560 | { X86_64_TABLE (X86_64_27) }, |
252b5132 | 2561 | /* 28 */ |
bf890a93 IT |
2562 | { "subB", { Ebh1, Gb }, 0 }, |
2563 | { "subS", { Evh1, Gv }, 0 }, | |
2564 | { "subB", { Gb, EbS }, 0 }, | |
2565 | { "subS", { Gv, EvS }, 0 }, | |
2566 | { "subB", { AL, Ib }, 0 }, | |
2567 | { "subS", { eAX, Iv }, 0 }, | |
592d1631 | 2568 | { Bad_Opcode }, /* SEG CS prefix */ |
4e7d34a6 | 2569 | { X86_64_TABLE (X86_64_2F) }, |
252b5132 | 2570 | /* 30 */ |
bf890a93 IT |
2571 | { "xorB", { Ebh1, Gb }, 0 }, |
2572 | { "xorS", { Evh1, Gv }, 0 }, | |
2573 | { "xorB", { Gb, EbS }, 0 }, | |
2574 | { "xorS", { Gv, EvS }, 0 }, | |
2575 | { "xorB", { AL, Ib }, 0 }, | |
2576 | { "xorS", { eAX, Iv }, 0 }, | |
592d1631 | 2577 | { Bad_Opcode }, /* SEG SS prefix */ |
4e7d34a6 | 2578 | { X86_64_TABLE (X86_64_37) }, |
252b5132 | 2579 | /* 38 */ |
bf890a93 IT |
2580 | { "cmpB", { Eb, Gb }, 0 }, |
2581 | { "cmpS", { Ev, Gv }, 0 }, | |
2582 | { "cmpB", { Gb, EbS }, 0 }, | |
2583 | { "cmpS", { Gv, EvS }, 0 }, | |
2584 | { "cmpB", { AL, Ib }, 0 }, | |
2585 | { "cmpS", { eAX, Iv }, 0 }, | |
592d1631 | 2586 | { Bad_Opcode }, /* SEG DS prefix */ |
4e7d34a6 | 2587 | { X86_64_TABLE (X86_64_3F) }, |
252b5132 | 2588 | /* 40 */ |
bf890a93 IT |
2589 | { "inc{S|}", { RMeAX }, 0 }, |
2590 | { "inc{S|}", { RMeCX }, 0 }, | |
2591 | { "inc{S|}", { RMeDX }, 0 }, | |
2592 | { "inc{S|}", { RMeBX }, 0 }, | |
2593 | { "inc{S|}", { RMeSP }, 0 }, | |
2594 | { "inc{S|}", { RMeBP }, 0 }, | |
2595 | { "inc{S|}", { RMeSI }, 0 }, | |
2596 | { "inc{S|}", { RMeDI }, 0 }, | |
252b5132 | 2597 | /* 48 */ |
bf890a93 IT |
2598 | { "dec{S|}", { RMeAX }, 0 }, |
2599 | { "dec{S|}", { RMeCX }, 0 }, | |
2600 | { "dec{S|}", { RMeDX }, 0 }, | |
2601 | { "dec{S|}", { RMeBX }, 0 }, | |
2602 | { "dec{S|}", { RMeSP }, 0 }, | |
2603 | { "dec{S|}", { RMeBP }, 0 }, | |
2604 | { "dec{S|}", { RMeSI }, 0 }, | |
2605 | { "dec{S|}", { RMeDI }, 0 }, | |
252b5132 | 2606 | /* 50 */ |
bf890a93 IT |
2607 | { "pushV", { RMrAX }, 0 }, |
2608 | { "pushV", { RMrCX }, 0 }, | |
2609 | { "pushV", { RMrDX }, 0 }, | |
2610 | { "pushV", { RMrBX }, 0 }, | |
2611 | { "pushV", { RMrSP }, 0 }, | |
2612 | { "pushV", { RMrBP }, 0 }, | |
2613 | { "pushV", { RMrSI }, 0 }, | |
2614 | { "pushV", { RMrDI }, 0 }, | |
252b5132 | 2615 | /* 58 */ |
bf890a93 IT |
2616 | { "popV", { RMrAX }, 0 }, |
2617 | { "popV", { RMrCX }, 0 }, | |
2618 | { "popV", { RMrDX }, 0 }, | |
2619 | { "popV", { RMrBX }, 0 }, | |
2620 | { "popV", { RMrSP }, 0 }, | |
2621 | { "popV", { RMrBP }, 0 }, | |
2622 | { "popV", { RMrSI }, 0 }, | |
2623 | { "popV", { RMrDI }, 0 }, | |
252b5132 | 2624 | /* 60 */ |
4e7d34a6 L |
2625 | { X86_64_TABLE (X86_64_60) }, |
2626 | { X86_64_TABLE (X86_64_61) }, | |
2627 | { X86_64_TABLE (X86_64_62) }, | |
2628 | { X86_64_TABLE (X86_64_63) }, | |
592d1631 L |
2629 | { Bad_Opcode }, /* seg fs */ |
2630 | { Bad_Opcode }, /* seg gs */ | |
2631 | { Bad_Opcode }, /* op size prefix */ | |
2632 | { Bad_Opcode }, /* adr size prefix */ | |
252b5132 | 2633 | /* 68 */ |
bf890a93 IT |
2634 | { "pushT", { sIv }, 0 }, |
2635 | { "imulS", { Gv, Ev, Iv }, 0 }, | |
2636 | { "pushT", { sIbT }, 0 }, | |
2637 | { "imulS", { Gv, Ev, sIb }, 0 }, | |
2638 | { "ins{b|}", { Ybr, indirDX }, 0 }, | |
4e7d34a6 | 2639 | { X86_64_TABLE (X86_64_6D) }, |
bf890a93 | 2640 | { "outs{b|}", { indirDXr, Xb }, 0 }, |
4e7d34a6 | 2641 | { X86_64_TABLE (X86_64_6F) }, |
252b5132 | 2642 | /* 70 */ |
bf890a93 IT |
2643 | { "joH", { Jb, BND, cond_jump_flag }, 0 }, |
2644 | { "jnoH", { Jb, BND, cond_jump_flag }, 0 }, | |
2645 | { "jbH", { Jb, BND, cond_jump_flag }, 0 }, | |
2646 | { "jaeH", { Jb, BND, cond_jump_flag }, 0 }, | |
2647 | { "jeH", { Jb, BND, cond_jump_flag }, 0 }, | |
2648 | { "jneH", { Jb, BND, cond_jump_flag }, 0 }, | |
2649 | { "jbeH", { Jb, BND, cond_jump_flag }, 0 }, | |
2650 | { "jaH", { Jb, BND, cond_jump_flag }, 0 }, | |
252b5132 | 2651 | /* 78 */ |
bf890a93 IT |
2652 | { "jsH", { Jb, BND, cond_jump_flag }, 0 }, |
2653 | { "jnsH", { Jb, BND, cond_jump_flag }, 0 }, | |
2654 | { "jpH", { Jb, BND, cond_jump_flag }, 0 }, | |
2655 | { "jnpH", { Jb, BND, cond_jump_flag }, 0 }, | |
2656 | { "jlH", { Jb, BND, cond_jump_flag }, 0 }, | |
2657 | { "jgeH", { Jb, BND, cond_jump_flag }, 0 }, | |
2658 | { "jleH", { Jb, BND, cond_jump_flag }, 0 }, | |
2659 | { "jgH", { Jb, BND, cond_jump_flag }, 0 }, | |
252b5132 | 2660 | /* 80 */ |
1ceb70f8 L |
2661 | { REG_TABLE (REG_80) }, |
2662 | { REG_TABLE (REG_81) }, | |
d039fef3 | 2663 | { X86_64_TABLE (X86_64_82) }, |
7148c369 | 2664 | { REG_TABLE (REG_83) }, |
bf890a93 IT |
2665 | { "testB", { Eb, Gb }, 0 }, |
2666 | { "testS", { Ev, Gv }, 0 }, | |
2667 | { "xchgB", { Ebh2, Gb }, 0 }, | |
2668 | { "xchgS", { Evh2, Gv }, 0 }, | |
252b5132 | 2669 | /* 88 */ |
bf890a93 IT |
2670 | { "movB", { Ebh3, Gb }, 0 }, |
2671 | { "movS", { Evh3, Gv }, 0 }, | |
2672 | { "movB", { Gb, EbS }, 0 }, | |
2673 | { "movS", { Gv, EvS }, 0 }, | |
2674 | { "movD", { Sv, Sw }, 0 }, | |
1ceb70f8 | 2675 | { MOD_TABLE (MOD_8D) }, |
bf890a93 | 2676 | { "movD", { Sw, Sv }, 0 }, |
1ceb70f8 | 2677 | { REG_TABLE (REG_8F) }, |
252b5132 | 2678 | /* 90 */ |
1ceb70f8 | 2679 | { PREFIX_TABLE (PREFIX_90) }, |
bf890a93 IT |
2680 | { "xchgS", { RMeCX, eAX }, 0 }, |
2681 | { "xchgS", { RMeDX, eAX }, 0 }, | |
2682 | { "xchgS", { RMeBX, eAX }, 0 }, | |
2683 | { "xchgS", { RMeSP, eAX }, 0 }, | |
2684 | { "xchgS", { RMeBP, eAX }, 0 }, | |
2685 | { "xchgS", { RMeSI, eAX }, 0 }, | |
2686 | { "xchgS", { RMeDI, eAX }, 0 }, | |
252b5132 | 2687 | /* 98 */ |
bf890a93 IT |
2688 | { "cW{t|}R", { XX }, 0 }, |
2689 | { "cR{t|}O", { XX }, 0 }, | |
4e7d34a6 | 2690 | { X86_64_TABLE (X86_64_9A) }, |
592d1631 | 2691 | { Bad_Opcode }, /* fwait */ |
bf890a93 IT |
2692 | { "pushfT", { XX }, 0 }, |
2693 | { "popfT", { XX }, 0 }, | |
2694 | { "sahf", { XX }, 0 }, | |
2695 | { "lahf", { XX }, 0 }, | |
252b5132 | 2696 | /* a0 */ |
bf890a93 IT |
2697 | { "mov%LB", { AL, Ob }, 0 }, |
2698 | { "mov%LS", { eAX, Ov }, 0 }, | |
2699 | { "mov%LB", { Ob, AL }, 0 }, | |
2700 | { "mov%LS", { Ov, eAX }, 0 }, | |
2701 | { "movs{b|}", { Ybr, Xb }, 0 }, | |
2702 | { "movs{R|}", { Yvr, Xv }, 0 }, | |
2703 | { "cmps{b|}", { Xb, Yb }, 0 }, | |
2704 | { "cmps{R|}", { Xv, Yv }, 0 }, | |
252b5132 | 2705 | /* a8 */ |
bf890a93 IT |
2706 | { "testB", { AL, Ib }, 0 }, |
2707 | { "testS", { eAX, Iv }, 0 }, | |
2708 | { "stosB", { Ybr, AL }, 0 }, | |
2709 | { "stosS", { Yvr, eAX }, 0 }, | |
2710 | { "lodsB", { ALr, Xb }, 0 }, | |
2711 | { "lodsS", { eAXr, Xv }, 0 }, | |
2712 | { "scasB", { AL, Yb }, 0 }, | |
2713 | { "scasS", { eAX, Yv }, 0 }, | |
252b5132 | 2714 | /* b0 */ |
bf890a93 IT |
2715 | { "movB", { RMAL, Ib }, 0 }, |
2716 | { "movB", { RMCL, Ib }, 0 }, | |
2717 | { "movB", { RMDL, Ib }, 0 }, | |
2718 | { "movB", { RMBL, Ib }, 0 }, | |
2719 | { "movB", { RMAH, Ib }, 0 }, | |
2720 | { "movB", { RMCH, Ib }, 0 }, | |
2721 | { "movB", { RMDH, Ib }, 0 }, | |
2722 | { "movB", { RMBH, Ib }, 0 }, | |
252b5132 | 2723 | /* b8 */ |
bf890a93 IT |
2724 | { "mov%LV", { RMeAX, Iv64 }, 0 }, |
2725 | { "mov%LV", { RMeCX, Iv64 }, 0 }, | |
2726 | { "mov%LV", { RMeDX, Iv64 }, 0 }, | |
2727 | { "mov%LV", { RMeBX, Iv64 }, 0 }, | |
2728 | { "mov%LV", { RMeSP, Iv64 }, 0 }, | |
2729 | { "mov%LV", { RMeBP, Iv64 }, 0 }, | |
2730 | { "mov%LV", { RMeSI, Iv64 }, 0 }, | |
2731 | { "mov%LV", { RMeDI, Iv64 }, 0 }, | |
252b5132 | 2732 | /* c0 */ |
1ceb70f8 L |
2733 | { REG_TABLE (REG_C0) }, |
2734 | { REG_TABLE (REG_C1) }, | |
bf890a93 IT |
2735 | { "retT", { Iw, BND }, 0 }, |
2736 | { "retT", { BND }, 0 }, | |
4e7d34a6 L |
2737 | { X86_64_TABLE (X86_64_C4) }, |
2738 | { X86_64_TABLE (X86_64_C5) }, | |
1ceb70f8 L |
2739 | { REG_TABLE (REG_C6) }, |
2740 | { REG_TABLE (REG_C7) }, | |
252b5132 | 2741 | /* c8 */ |
bf890a93 IT |
2742 | { "enterT", { Iw, Ib }, 0 }, |
2743 | { "leaveT", { XX }, 0 }, | |
2744 | { "Jret{|f}P", { Iw }, 0 }, | |
2745 | { "Jret{|f}P", { XX }, 0 }, | |
2746 | { "int3", { XX }, 0 }, | |
2747 | { "int", { Ib }, 0 }, | |
4e7d34a6 | 2748 | { X86_64_TABLE (X86_64_CE) }, |
bf890a93 | 2749 | { "iret%LP", { XX }, 0 }, |
252b5132 | 2750 | /* d0 */ |
1ceb70f8 L |
2751 | { REG_TABLE (REG_D0) }, |
2752 | { REG_TABLE (REG_D1) }, | |
2753 | { REG_TABLE (REG_D2) }, | |
2754 | { REG_TABLE (REG_D3) }, | |
4e7d34a6 L |
2755 | { X86_64_TABLE (X86_64_D4) }, |
2756 | { X86_64_TABLE (X86_64_D5) }, | |
592d1631 | 2757 | { Bad_Opcode }, |
bf890a93 | 2758 | { "xlat", { DSBX }, 0 }, |
252b5132 RH |
2759 | /* d8 */ |
2760 | { FLOAT }, | |
2761 | { FLOAT }, | |
2762 | { FLOAT }, | |
2763 | { FLOAT }, | |
2764 | { FLOAT }, | |
2765 | { FLOAT }, | |
2766 | { FLOAT }, | |
2767 | { FLOAT }, | |
2768 | /* e0 */ | |
bf890a93 IT |
2769 | { "loopneFH", { Jb, XX, loop_jcxz_flag }, 0 }, |
2770 | { "loopeFH", { Jb, XX, loop_jcxz_flag }, 0 }, | |
2771 | { "loopFH", { Jb, XX, loop_jcxz_flag }, 0 }, | |
2772 | { "jEcxzH", { Jb, XX, loop_jcxz_flag }, 0 }, | |
2773 | { "inB", { AL, Ib }, 0 }, | |
2774 | { "inG", { zAX, Ib }, 0 }, | |
2775 | { "outB", { Ib, AL }, 0 }, | |
2776 | { "outG", { Ib, zAX }, 0 }, | |
252b5132 | 2777 | /* e8 */ |
a72d2af2 L |
2778 | { X86_64_TABLE (X86_64_E8) }, |
2779 | { X86_64_TABLE (X86_64_E9) }, | |
4e7d34a6 | 2780 | { X86_64_TABLE (X86_64_EA) }, |
bf890a93 IT |
2781 | { "jmp", { Jb, BND }, 0 }, |
2782 | { "inB", { AL, indirDX }, 0 }, | |
2783 | { "inG", { zAX, indirDX }, 0 }, | |
2784 | { "outB", { indirDX, AL }, 0 }, | |
2785 | { "outG", { indirDX, zAX }, 0 }, | |
252b5132 | 2786 | /* f0 */ |
592d1631 | 2787 | { Bad_Opcode }, /* lock prefix */ |
bf890a93 | 2788 | { "icebp", { XX }, 0 }, |
592d1631 L |
2789 | { Bad_Opcode }, /* repne */ |
2790 | { Bad_Opcode }, /* repz */ | |
bf890a93 IT |
2791 | { "hlt", { XX }, 0 }, |
2792 | { "cmc", { XX }, 0 }, | |
1ceb70f8 L |
2793 | { REG_TABLE (REG_F6) }, |
2794 | { REG_TABLE (REG_F7) }, | |
252b5132 | 2795 | /* f8 */ |
bf890a93 IT |
2796 | { "clc", { XX }, 0 }, |
2797 | { "stc", { XX }, 0 }, | |
2798 | { "cli", { XX }, 0 }, | |
2799 | { "sti", { XX }, 0 }, | |
2800 | { "cld", { XX }, 0 }, | |
2801 | { "std", { XX }, 0 }, | |
1ceb70f8 L |
2802 | { REG_TABLE (REG_FE) }, |
2803 | { REG_TABLE (REG_FF) }, | |
252b5132 RH |
2804 | }; |
2805 | ||
6439fc28 | 2806 | static const struct dis386 dis386_twobyte[] = { |
252b5132 | 2807 | /* 00 */ |
1ceb70f8 L |
2808 | { REG_TABLE (REG_0F00 ) }, |
2809 | { REG_TABLE (REG_0F01 ) }, | |
bf890a93 IT |
2810 | { "larS", { Gv, Ew }, 0 }, |
2811 | { "lslS", { Gv, Ew }, 0 }, | |
592d1631 | 2812 | { Bad_Opcode }, |
bf890a93 IT |
2813 | { "syscall", { XX }, 0 }, |
2814 | { "clts", { XX }, 0 }, | |
2815 | { "sysret%LP", { XX }, 0 }, | |
252b5132 | 2816 | /* 08 */ |
bf890a93 IT |
2817 | { "invd", { XX }, 0 }, |
2818 | { "wbinvd", { XX }, 0 }, | |
592d1631 | 2819 | { Bad_Opcode }, |
bf890a93 | 2820 | { "ud2", { XX }, 0 }, |
592d1631 | 2821 | { Bad_Opcode }, |
b5b1fc4f | 2822 | { REG_TABLE (REG_0F0D) }, |
bf890a93 IT |
2823 | { "femms", { XX }, 0 }, |
2824 | { "", { MX, EM, OPSUF }, 0 }, /* See OP_3DNowSuffix. */ | |
252b5132 | 2825 | /* 10 */ |
1ceb70f8 L |
2826 | { PREFIX_TABLE (PREFIX_0F10) }, |
2827 | { PREFIX_TABLE (PREFIX_0F11) }, | |
2828 | { PREFIX_TABLE (PREFIX_0F12) }, | |
2829 | { MOD_TABLE (MOD_0F13) }, | |
507bd325 L |
2830 | { "unpcklpX", { XM, EXx }, PREFIX_OPCODE }, |
2831 | { "unpckhpX", { XM, EXx }, PREFIX_OPCODE }, | |
1ceb70f8 L |
2832 | { PREFIX_TABLE (PREFIX_0F16) }, |
2833 | { MOD_TABLE (MOD_0F17) }, | |
252b5132 | 2834 | /* 18 */ |
1ceb70f8 | 2835 | { REG_TABLE (REG_0F18) }, |
bf890a93 | 2836 | { "nopQ", { Ev }, 0 }, |
7e8b059b L |
2837 | { PREFIX_TABLE (PREFIX_0F1A) }, |
2838 | { PREFIX_TABLE (PREFIX_0F1B) }, | |
bf890a93 IT |
2839 | { "nopQ", { Ev }, 0 }, |
2840 | { "nopQ", { Ev }, 0 }, | |
2841 | { "nopQ", { Ev }, 0 }, | |
2842 | { "nopQ", { Ev }, 0 }, | |
252b5132 | 2843 | /* 20 */ |
bf890a93 IT |
2844 | { "movZ", { Rm, Cm }, 0 }, |
2845 | { "movZ", { Rm, Dm }, 0 }, | |
2846 | { "movZ", { Cm, Rm }, 0 }, | |
2847 | { "movZ", { Dm, Rm }, 0 }, | |
1ceb70f8 | 2848 | { MOD_TABLE (MOD_0F24) }, |
592d1631 | 2849 | { Bad_Opcode }, |
1ceb70f8 | 2850 | { MOD_TABLE (MOD_0F26) }, |
592d1631 | 2851 | { Bad_Opcode }, |
252b5132 | 2852 | /* 28 */ |
507bd325 L |
2853 | { "movapX", { XM, EXx }, PREFIX_OPCODE }, |
2854 | { "movapX", { EXxS, XM }, PREFIX_OPCODE }, | |
1ceb70f8 L |
2855 | { PREFIX_TABLE (PREFIX_0F2A) }, |
2856 | { PREFIX_TABLE (PREFIX_0F2B) }, | |
2857 | { PREFIX_TABLE (PREFIX_0F2C) }, | |
2858 | { PREFIX_TABLE (PREFIX_0F2D) }, | |
2859 | { PREFIX_TABLE (PREFIX_0F2E) }, | |
2860 | { PREFIX_TABLE (PREFIX_0F2F) }, | |
252b5132 | 2861 | /* 30 */ |
bf890a93 IT |
2862 | { "wrmsr", { XX }, 0 }, |
2863 | { "rdtsc", { XX }, 0 }, | |
2864 | { "rdmsr", { XX }, 0 }, | |
2865 | { "rdpmc", { XX }, 0 }, | |
2866 | { "sysenter", { XX }, 0 }, | |
2867 | { "sysexit", { XX }, 0 }, | |
592d1631 | 2868 | { Bad_Opcode }, |
bf890a93 | 2869 | { "getsec", { XX }, 0 }, |
252b5132 | 2870 | /* 38 */ |
507bd325 | 2871 | { THREE_BYTE_TABLE_PREFIX (THREE_BYTE_0F38, PREFIX_OPCODE) }, |
592d1631 | 2872 | { Bad_Opcode }, |
507bd325 | 2873 | { THREE_BYTE_TABLE_PREFIX (THREE_BYTE_0F3A, PREFIX_OPCODE) }, |
592d1631 L |
2874 | { Bad_Opcode }, |
2875 | { Bad_Opcode }, | |
2876 | { Bad_Opcode }, | |
2877 | { Bad_Opcode }, | |
2878 | { Bad_Opcode }, | |
252b5132 | 2879 | /* 40 */ |
bf890a93 IT |
2880 | { "cmovoS", { Gv, Ev }, 0 }, |
2881 | { "cmovnoS", { Gv, Ev }, 0 }, | |
2882 | { "cmovbS", { Gv, Ev }, 0 }, | |
2883 | { "cmovaeS", { Gv, Ev }, 0 }, | |
2884 | { "cmoveS", { Gv, Ev }, 0 }, | |
2885 | { "cmovneS", { Gv, Ev }, 0 }, | |
2886 | { "cmovbeS", { Gv, Ev }, 0 }, | |
2887 | { "cmovaS", { Gv, Ev }, 0 }, | |
252b5132 | 2888 | /* 48 */ |
bf890a93 IT |
2889 | { "cmovsS", { Gv, Ev }, 0 }, |
2890 | { "cmovnsS", { Gv, Ev }, 0 }, | |
2891 | { "cmovpS", { Gv, Ev }, 0 }, | |
2892 | { "cmovnpS", { Gv, Ev }, 0 }, | |
2893 | { "cmovlS", { Gv, Ev }, 0 }, | |
2894 | { "cmovgeS", { Gv, Ev }, 0 }, | |
2895 | { "cmovleS", { Gv, Ev }, 0 }, | |
2896 | { "cmovgS", { Gv, Ev }, 0 }, | |
252b5132 | 2897 | /* 50 */ |
75c135a8 | 2898 | { MOD_TABLE (MOD_0F51) }, |
1ceb70f8 L |
2899 | { PREFIX_TABLE (PREFIX_0F51) }, |
2900 | { PREFIX_TABLE (PREFIX_0F52) }, | |
2901 | { PREFIX_TABLE (PREFIX_0F53) }, | |
507bd325 L |
2902 | { "andpX", { XM, EXx }, PREFIX_OPCODE }, |
2903 | { "andnpX", { XM, EXx }, PREFIX_OPCODE }, | |
2904 | { "orpX", { XM, EXx }, PREFIX_OPCODE }, | |
2905 | { "xorpX", { XM, EXx }, PREFIX_OPCODE }, | |
252b5132 | 2906 | /* 58 */ |
1ceb70f8 L |
2907 | { PREFIX_TABLE (PREFIX_0F58) }, |
2908 | { PREFIX_TABLE (PREFIX_0F59) }, | |
2909 | { PREFIX_TABLE (PREFIX_0F5A) }, | |
2910 | { PREFIX_TABLE (PREFIX_0F5B) }, | |
2911 | { PREFIX_TABLE (PREFIX_0F5C) }, | |
2912 | { PREFIX_TABLE (PREFIX_0F5D) }, | |
2913 | { PREFIX_TABLE (PREFIX_0F5E) }, | |
2914 | { PREFIX_TABLE (PREFIX_0F5F) }, | |
252b5132 | 2915 | /* 60 */ |
1ceb70f8 L |
2916 | { PREFIX_TABLE (PREFIX_0F60) }, |
2917 | { PREFIX_TABLE (PREFIX_0F61) }, | |
2918 | { PREFIX_TABLE (PREFIX_0F62) }, | |
507bd325 L |
2919 | { "packsswb", { MX, EM }, PREFIX_OPCODE }, |
2920 | { "pcmpgtb", { MX, EM }, PREFIX_OPCODE }, | |
2921 | { "pcmpgtw", { MX, EM }, PREFIX_OPCODE }, | |
2922 | { "pcmpgtd", { MX, EM }, PREFIX_OPCODE }, | |
2923 | { "packuswb", { MX, EM }, PREFIX_OPCODE }, | |
252b5132 | 2924 | /* 68 */ |
507bd325 L |
2925 | { "punpckhbw", { MX, EM }, PREFIX_OPCODE }, |
2926 | { "punpckhwd", { MX, EM }, PREFIX_OPCODE }, | |
2927 | { "punpckhdq", { MX, EM }, PREFIX_OPCODE }, | |
2928 | { "packssdw", { MX, EM }, PREFIX_OPCODE }, | |
1ceb70f8 L |
2929 | { PREFIX_TABLE (PREFIX_0F6C) }, |
2930 | { PREFIX_TABLE (PREFIX_0F6D) }, | |
507bd325 | 2931 | { "movK", { MX, Edq }, PREFIX_OPCODE }, |
1ceb70f8 | 2932 | { PREFIX_TABLE (PREFIX_0F6F) }, |
252b5132 | 2933 | /* 70 */ |
1ceb70f8 L |
2934 | { PREFIX_TABLE (PREFIX_0F70) }, |
2935 | { REG_TABLE (REG_0F71) }, | |
2936 | { REG_TABLE (REG_0F72) }, | |
2937 | { REG_TABLE (REG_0F73) }, | |
507bd325 L |
2938 | { "pcmpeqb", { MX, EM }, PREFIX_OPCODE }, |
2939 | { "pcmpeqw", { MX, EM }, PREFIX_OPCODE }, | |
2940 | { "pcmpeqd", { MX, EM }, PREFIX_OPCODE }, | |
2941 | { "emms", { XX }, PREFIX_OPCODE }, | |
252b5132 | 2942 | /* 78 */ |
1ceb70f8 L |
2943 | { PREFIX_TABLE (PREFIX_0F78) }, |
2944 | { PREFIX_TABLE (PREFIX_0F79) }, | |
1f334aeb | 2945 | { Bad_Opcode }, |
592d1631 | 2946 | { Bad_Opcode }, |
1ceb70f8 L |
2947 | { PREFIX_TABLE (PREFIX_0F7C) }, |
2948 | { PREFIX_TABLE (PREFIX_0F7D) }, | |
2949 | { PREFIX_TABLE (PREFIX_0F7E) }, | |
2950 | { PREFIX_TABLE (PREFIX_0F7F) }, | |
252b5132 | 2951 | /* 80 */ |
bf890a93 IT |
2952 | { "joH", { Jv, BND, cond_jump_flag }, 0 }, |
2953 | { "jnoH", { Jv, BND, cond_jump_flag }, 0 }, | |
2954 | { "jbH", { Jv, BND, cond_jump_flag }, 0 }, | |
2955 | { "jaeH", { Jv, BND, cond_jump_flag }, 0 }, | |
2956 | { "jeH", { Jv, BND, cond_jump_flag }, 0 }, | |
2957 | { "jneH", { Jv, BND, cond_jump_flag }, 0 }, | |
2958 | { "jbeH", { Jv, BND, cond_jump_flag }, 0 }, | |
2959 | { "jaH", { Jv, BND, cond_jump_flag }, 0 }, | |
252b5132 | 2960 | /* 88 */ |
bf890a93 IT |
2961 | { "jsH", { Jv, BND, cond_jump_flag }, 0 }, |
2962 | { "jnsH", { Jv, BND, cond_jump_flag }, 0 }, | |
2963 | { "jpH", { Jv, BND, cond_jump_flag }, 0 }, | |
2964 | { "jnpH", { Jv, BND, cond_jump_flag }, 0 }, | |
2965 | { "jlH", { Jv, BND, cond_jump_flag }, 0 }, | |
2966 | { "jgeH", { Jv, BND, cond_jump_flag }, 0 }, | |
2967 | { "jleH", { Jv, BND, cond_jump_flag }, 0 }, | |
2968 | { "jgH", { Jv, BND, cond_jump_flag }, 0 }, | |
252b5132 | 2969 | /* 90 */ |
bf890a93 IT |
2970 | { "seto", { Eb }, 0 }, |
2971 | { "setno", { Eb }, 0 }, | |
2972 | { "setb", { Eb }, 0 }, | |
2973 | { "setae", { Eb }, 0 }, | |
2974 | { "sete", { Eb }, 0 }, | |
2975 | { "setne", { Eb }, 0 }, | |
2976 | { "setbe", { Eb }, 0 }, | |
2977 | { "seta", { Eb }, 0 }, | |
252b5132 | 2978 | /* 98 */ |
bf890a93 IT |
2979 | { "sets", { Eb }, 0 }, |
2980 | { "setns", { Eb }, 0 }, | |
2981 | { "setp", { Eb }, 0 }, | |
2982 | { "setnp", { Eb }, 0 }, | |
2983 | { "setl", { Eb }, 0 }, | |
2984 | { "setge", { Eb }, 0 }, | |
2985 | { "setle", { Eb }, 0 }, | |
2986 | { "setg", { Eb }, 0 }, | |
252b5132 | 2987 | /* a0 */ |
bf890a93 IT |
2988 | { "pushT", { fs }, 0 }, |
2989 | { "popT", { fs }, 0 }, | |
2990 | { "cpuid", { XX }, 0 }, | |
2991 | { "btS", { Ev, Gv }, 0 }, | |
2992 | { "shldS", { Ev, Gv, Ib }, 0 }, | |
2993 | { "shldS", { Ev, Gv, CL }, 0 }, | |
1ceb70f8 L |
2994 | { REG_TABLE (REG_0FA6) }, |
2995 | { REG_TABLE (REG_0FA7) }, | |
252b5132 | 2996 | /* a8 */ |
bf890a93 IT |
2997 | { "pushT", { gs }, 0 }, |
2998 | { "popT", { gs }, 0 }, | |
2999 | { "rsm", { XX }, 0 }, | |
3000 | { "btsS", { Evh1, Gv }, 0 }, | |
3001 | { "shrdS", { Ev, Gv, Ib }, 0 }, | |
3002 | { "shrdS", { Ev, Gv, CL }, 0 }, | |
1ceb70f8 | 3003 | { REG_TABLE (REG_0FAE) }, |
bf890a93 | 3004 | { "imulS", { Gv, Ev }, 0 }, |
252b5132 | 3005 | /* b0 */ |
bf890a93 IT |
3006 | { "cmpxchgB", { Ebh1, Gb }, 0 }, |
3007 | { "cmpxchgS", { Evh1, Gv }, 0 }, | |
1ceb70f8 | 3008 | { MOD_TABLE (MOD_0FB2) }, |
bf890a93 | 3009 | { "btrS", { Evh1, Gv }, 0 }, |
1ceb70f8 L |
3010 | { MOD_TABLE (MOD_0FB4) }, |
3011 | { MOD_TABLE (MOD_0FB5) }, | |
bf890a93 IT |
3012 | { "movz{bR|x}", { Gv, Eb }, 0 }, |
3013 | { "movz{wR|x}", { Gv, Ew }, 0 }, /* yes, there really is movzww ! */ | |
252b5132 | 3014 | /* b8 */ |
1ceb70f8 | 3015 | { PREFIX_TABLE (PREFIX_0FB8) }, |
bf890a93 | 3016 | { "ud1", { XX }, 0 }, |
1ceb70f8 | 3017 | { REG_TABLE (REG_0FBA) }, |
bf890a93 | 3018 | { "btcS", { Evh1, Gv }, 0 }, |
f12dc422 | 3019 | { PREFIX_TABLE (PREFIX_0FBC) }, |
1ceb70f8 | 3020 | { PREFIX_TABLE (PREFIX_0FBD) }, |
bf890a93 IT |
3021 | { "movs{bR|x}", { Gv, Eb }, 0 }, |
3022 | { "movs{wR|x}", { Gv, Ew }, 0 }, /* yes, there really is movsww ! */ | |
252b5132 | 3023 | /* c0 */ |
bf890a93 IT |
3024 | { "xaddB", { Ebh1, Gb }, 0 }, |
3025 | { "xaddS", { Evh1, Gv }, 0 }, | |
1ceb70f8 | 3026 | { PREFIX_TABLE (PREFIX_0FC2) }, |
a8484f96 | 3027 | { MOD_TABLE (MOD_0FC3) }, |
507bd325 L |
3028 | { "pinsrw", { MX, Edqw, Ib }, PREFIX_OPCODE }, |
3029 | { "pextrw", { Gdq, MS, Ib }, PREFIX_OPCODE }, | |
3030 | { "shufpX", { XM, EXx, Ib }, PREFIX_OPCODE }, | |
1ceb70f8 | 3031 | { REG_TABLE (REG_0FC7) }, |
252b5132 | 3032 | /* c8 */ |
bf890a93 IT |
3033 | { "bswap", { RMeAX }, 0 }, |
3034 | { "bswap", { RMeCX }, 0 }, | |
3035 | { "bswap", { RMeDX }, 0 }, | |
3036 | { "bswap", { RMeBX }, 0 }, | |
3037 | { "bswap", { RMeSP }, 0 }, | |
3038 | { "bswap", { RMeBP }, 0 }, | |
3039 | { "bswap", { RMeSI }, 0 }, | |
3040 | { "bswap", { RMeDI }, 0 }, | |
252b5132 | 3041 | /* d0 */ |
1ceb70f8 | 3042 | { PREFIX_TABLE (PREFIX_0FD0) }, |
507bd325 L |
3043 | { "psrlw", { MX, EM }, PREFIX_OPCODE }, |
3044 | { "psrld", { MX, EM }, PREFIX_OPCODE }, | |
3045 | { "psrlq", { MX, EM }, PREFIX_OPCODE }, | |
3046 | { "paddq", { MX, EM }, PREFIX_OPCODE }, | |
3047 | { "pmullw", { MX, EM }, PREFIX_OPCODE }, | |
1ceb70f8 | 3048 | { PREFIX_TABLE (PREFIX_0FD6) }, |
75c135a8 | 3049 | { MOD_TABLE (MOD_0FD7) }, |
252b5132 | 3050 | /* d8 */ |
507bd325 L |
3051 | { "psubusb", { MX, EM }, PREFIX_OPCODE }, |
3052 | { "psubusw", { MX, EM }, PREFIX_OPCODE }, | |
3053 | { "pminub", { MX, EM }, PREFIX_OPCODE }, | |
3054 | { "pand", { MX, EM }, PREFIX_OPCODE }, | |
3055 | { "paddusb", { MX, EM }, PREFIX_OPCODE }, | |
3056 | { "paddusw", { MX, EM }, PREFIX_OPCODE }, | |
3057 | { "pmaxub", { MX, EM }, PREFIX_OPCODE }, | |
3058 | { "pandn", { MX, EM }, PREFIX_OPCODE }, | |
252b5132 | 3059 | /* e0 */ |
507bd325 L |
3060 | { "pavgb", { MX, EM }, PREFIX_OPCODE }, |
3061 | { "psraw", { MX, EM }, PREFIX_OPCODE }, | |
3062 | { "psrad", { MX, EM }, PREFIX_OPCODE }, | |
3063 | { "pavgw", { MX, EM }, PREFIX_OPCODE }, | |
3064 | { "pmulhuw", { MX, EM }, PREFIX_OPCODE }, | |
3065 | { "pmulhw", { MX, EM }, PREFIX_OPCODE }, | |
1ceb70f8 L |
3066 | { PREFIX_TABLE (PREFIX_0FE6) }, |
3067 | { PREFIX_TABLE (PREFIX_0FE7) }, | |
252b5132 | 3068 | /* e8 */ |
507bd325 L |
3069 | { "psubsb", { MX, EM }, PREFIX_OPCODE }, |
3070 | { "psubsw", { MX, EM }, PREFIX_OPCODE }, | |
3071 | { "pminsw", { MX, EM }, PREFIX_OPCODE }, | |
3072 | { "por", { MX, EM }, PREFIX_OPCODE }, | |
3073 | { "paddsb", { MX, EM }, PREFIX_OPCODE }, | |
3074 | { "paddsw", { MX, EM }, PREFIX_OPCODE }, | |
3075 | { "pmaxsw", { MX, EM }, PREFIX_OPCODE }, | |
3076 | { "pxor", { MX, EM }, PREFIX_OPCODE }, | |
252b5132 | 3077 | /* f0 */ |
1ceb70f8 | 3078 | { PREFIX_TABLE (PREFIX_0FF0) }, |
507bd325 L |
3079 | { "psllw", { MX, EM }, PREFIX_OPCODE }, |
3080 | { "pslld", { MX, EM }, PREFIX_OPCODE }, | |
3081 | { "psllq", { MX, EM }, PREFIX_OPCODE }, | |
3082 | { "pmuludq", { MX, EM }, PREFIX_OPCODE }, | |
3083 | { "pmaddwd", { MX, EM }, PREFIX_OPCODE }, | |
3084 | { "psadbw", { MX, EM }, PREFIX_OPCODE }, | |
1ceb70f8 | 3085 | { PREFIX_TABLE (PREFIX_0FF7) }, |
252b5132 | 3086 | /* f8 */ |
507bd325 L |
3087 | { "psubb", { MX, EM }, PREFIX_OPCODE }, |
3088 | { "psubw", { MX, EM }, PREFIX_OPCODE }, | |
3089 | { "psubd", { MX, EM }, PREFIX_OPCODE }, | |
3090 | { "psubq", { MX, EM }, PREFIX_OPCODE }, | |
3091 | { "paddb", { MX, EM }, PREFIX_OPCODE }, | |
3092 | { "paddw", { MX, EM }, PREFIX_OPCODE }, | |
3093 | { "paddd", { MX, EM }, PREFIX_OPCODE }, | |
592d1631 | 3094 | { Bad_Opcode }, |
252b5132 RH |
3095 | }; |
3096 | ||
3097 | static const unsigned char onebyte_has_modrm[256] = { | |
c608c12e AM |
3098 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ |
3099 | /* ------------------------------- */ | |
3100 | /* 00 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 00 */ | |
3101 | /* 10 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 10 */ | |
3102 | /* 20 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 20 */ | |
3103 | /* 30 */ 1,1,1,1,0,0,0,0,1,1,1,1,0,0,0,0, /* 30 */ | |
3104 | /* 40 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 40 */ | |
3105 | /* 50 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 50 */ | |
3106 | /* 60 */ 0,0,1,1,0,0,0,0,0,1,0,1,0,0,0,0, /* 60 */ | |
3107 | /* 70 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 70 */ | |
3108 | /* 80 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 80 */ | |
3109 | /* 90 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 90 */ | |
3110 | /* a0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* a0 */ | |
3111 | /* b0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* b0 */ | |
3112 | /* c0 */ 1,1,0,0,1,1,1,1,0,0,0,0,0,0,0,0, /* c0 */ | |
3113 | /* d0 */ 1,1,1,1,0,0,0,0,1,1,1,1,1,1,1,1, /* d0 */ | |
3114 | /* e0 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* e0 */ | |
3115 | /* f0 */ 0,0,0,0,0,0,1,1,0,0,0,0,0,0,1,1 /* f0 */ | |
3116 | /* ------------------------------- */ | |
3117 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ | |
252b5132 RH |
3118 | }; |
3119 | ||
3120 | static const unsigned char twobyte_has_modrm[256] = { | |
c608c12e AM |
3121 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ |
3122 | /* ------------------------------- */ | |
252b5132 | 3123 | /* 00 */ 1,1,1,1,0,0,0,0,0,0,0,0,0,1,0,1, /* 0f */ |
b5b1fc4f | 3124 | /* 10 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 1f */ |
85f10a01 | 3125 | /* 20 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 2f */ |
331d2d0d | 3126 | /* 30 */ 0,0,0,0,0,0,0,0,1,0,1,0,0,0,0,0, /* 3f */ |
252b5132 | 3127 | /* 40 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 4f */ |
4bba6815 AM |
3128 | /* 50 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 5f */ |
3129 | /* 60 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 6f */ | |
85f10a01 | 3130 | /* 70 */ 1,1,1,1,1,1,1,0,1,1,1,1,1,1,1,1, /* 7f */ |
252b5132 RH |
3131 | /* 80 */ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 8f */ |
3132 | /* 90 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* 9f */ | |
30d1c836 | 3133 | /* a0 */ 0,0,0,1,1,1,1,1,0,0,0,1,1,1,1,1, /* af */ |
050dfa73 | 3134 | /* b0 */ 1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1, /* bf */ |
252b5132 | 3135 | /* c0 */ 1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, /* cf */ |
ca164297 | 3136 | /* d0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* df */ |
4bba6815 | 3137 | /* e0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, /* ef */ |
ca164297 | 3138 | /* f0 */ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0 /* ff */ |
c608c12e AM |
3139 | /* ------------------------------- */ |
3140 | /* 0 1 2 3 4 5 6 7 8 9 a b c d e f */ | |
3141 | }; | |
3142 | ||
252b5132 RH |
3143 | static char obuf[100]; |
3144 | static char *obufp; | |
ea397f5b | 3145 | static char *mnemonicendp; |
252b5132 RH |
3146 | static char scratchbuf[100]; |
3147 | static unsigned char *start_codep; | |
3148 | static unsigned char *insn_codep; | |
3149 | static unsigned char *codep; | |
285ca992 | 3150 | static unsigned char *end_codep; |
f16cd0d5 L |
3151 | static int last_lock_prefix; |
3152 | static int last_repz_prefix; | |
3153 | static int last_repnz_prefix; | |
3154 | static int last_data_prefix; | |
3155 | static int last_addr_prefix; | |
3156 | static int last_rex_prefix; | |
3157 | static int last_seg_prefix; | |
d9949a36 | 3158 | static int fwait_prefix; |
285ca992 L |
3159 | /* The active segment register prefix. */ |
3160 | static int active_seg_prefix; | |
f16cd0d5 L |
3161 | #define MAX_CODE_LENGTH 15 |
3162 | /* We can up to 14 prefixes since the maximum instruction length is | |
3163 | 15bytes. */ | |
3164 | static int all_prefixes[MAX_CODE_LENGTH - 1]; | |
252b5132 | 3165 | static disassemble_info *the_info; |
7967e09e L |
3166 | static struct |
3167 | { | |
3168 | int mod; | |
7967e09e | 3169 | int reg; |
484c222e | 3170 | int rm; |
7967e09e L |
3171 | } |
3172 | modrm; | |
4bba6815 | 3173 | static unsigned char need_modrm; |
dfc8cf43 L |
3174 | static struct |
3175 | { | |
3176 | int scale; | |
3177 | int index; | |
3178 | int base; | |
3179 | } | |
3180 | sib; | |
c0f3af97 L |
3181 | static struct |
3182 | { | |
3183 | int register_specifier; | |
3184 | int length; | |
3185 | int prefix; | |
3186 | int w; | |
43234a1e L |
3187 | int evex; |
3188 | int r; | |
3189 | int v; | |
3190 | int mask_register_specifier; | |
3191 | int zeroing; | |
3192 | int ll; | |
3193 | int b; | |
c0f3af97 L |
3194 | } |
3195 | vex; | |
3196 | static unsigned char need_vex; | |
3197 | static unsigned char need_vex_reg; | |
dae39acc | 3198 | static unsigned char vex_w_done; |
252b5132 | 3199 | |
ea397f5b L |
3200 | struct op |
3201 | { | |
3202 | const char *name; | |
3203 | unsigned int len; | |
3204 | }; | |
3205 | ||
4bba6815 AM |
3206 | /* If we are accessing mod/rm/reg without need_modrm set, then the |
3207 | values are stale. Hitting this abort likely indicates that you | |
3208 | need to update onebyte_has_modrm or twobyte_has_modrm. */ | |
3209 | #define MODRM_CHECK if (!need_modrm) abort () | |
3210 | ||
d708bcba AM |
3211 | static const char **names64; |
3212 | static const char **names32; | |
3213 | static const char **names16; | |
3214 | static const char **names8; | |
3215 | static const char **names8rex; | |
3216 | static const char **names_seg; | |
db51cc60 L |
3217 | static const char *index64; |
3218 | static const char *index32; | |
d708bcba | 3219 | static const char **index16; |
7e8b059b | 3220 | static const char **names_bnd; |
d708bcba AM |
3221 | |
3222 | static const char *intel_names64[] = { | |
3223 | "rax", "rcx", "rdx", "rbx", "rsp", "rbp", "rsi", "rdi", | |
3224 | "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15" | |
3225 | }; | |
3226 | static const char *intel_names32[] = { | |
3227 | "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi", | |
3228 | "r8d", "r9d", "r10d", "r11d", "r12d", "r13d", "r14d", "r15d" | |
3229 | }; | |
3230 | static const char *intel_names16[] = { | |
3231 | "ax", "cx", "dx", "bx", "sp", "bp", "si", "di", | |
3232 | "r8w", "r9w", "r10w", "r11w", "r12w", "r13w", "r14w", "r15w" | |
3233 | }; | |
3234 | static const char *intel_names8[] = { | |
3235 | "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh", | |
3236 | }; | |
3237 | static const char *intel_names8rex[] = { | |
3238 | "al", "cl", "dl", "bl", "spl", "bpl", "sil", "dil", | |
3239 | "r8b", "r9b", "r10b", "r11b", "r12b", "r13b", "r14b", "r15b" | |
3240 | }; | |
3241 | static const char *intel_names_seg[] = { | |
3242 | "es", "cs", "ss", "ds", "fs", "gs", "?", "?", | |
3243 | }; | |
db51cc60 L |
3244 | static const char *intel_index64 = "riz"; |
3245 | static const char *intel_index32 = "eiz"; | |
d708bcba AM |
3246 | static const char *intel_index16[] = { |
3247 | "bx+si", "bx+di", "bp+si", "bp+di", "si", "di", "bp", "bx" | |
3248 | }; | |
3249 | ||
3250 | static const char *att_names64[] = { | |
3251 | "%rax", "%rcx", "%rdx", "%rbx", "%rsp", "%rbp", "%rsi", "%rdi", | |
52b15da3 JH |
3252 | "%r8", "%r9", "%r10", "%r11", "%r12", "%r13", "%r14", "%r15" |
3253 | }; | |
d708bcba AM |
3254 | static const char *att_names32[] = { |
3255 | "%eax", "%ecx", "%edx", "%ebx", "%esp", "%ebp", "%esi", "%edi", | |
52b15da3 | 3256 | "%r8d", "%r9d", "%r10d", "%r11d", "%r12d", "%r13d", "%r14d", "%r15d" |
252b5132 | 3257 | }; |
d708bcba AM |
3258 | static const char *att_names16[] = { |
3259 | "%ax", "%cx", "%dx", "%bx", "%sp", "%bp", "%si", "%di", | |
52b15da3 | 3260 | "%r8w", "%r9w", "%r10w", "%r11w", "%r12w", "%r13w", "%r14w", "%r15w" |
252b5132 | 3261 | }; |
d708bcba AM |
3262 | static const char *att_names8[] = { |
3263 | "%al", "%cl", "%dl", "%bl", "%ah", "%ch", "%dh", "%bh", | |
252b5132 | 3264 | }; |
d708bcba AM |
3265 | static const char *att_names8rex[] = { |
3266 | "%al", "%cl", "%dl", "%bl", "%spl", "%bpl", "%sil", "%dil", | |
52b15da3 JH |
3267 | "%r8b", "%r9b", "%r10b", "%r11b", "%r12b", "%r13b", "%r14b", "%r15b" |
3268 | }; | |
d708bcba AM |
3269 | static const char *att_names_seg[] = { |
3270 | "%es", "%cs", "%ss", "%ds", "%fs", "%gs", "%?", "%?", | |
252b5132 | 3271 | }; |
db51cc60 L |
3272 | static const char *att_index64 = "%riz"; |
3273 | static const char *att_index32 = "%eiz"; | |
d708bcba AM |
3274 | static const char *att_index16[] = { |
3275 | "%bx,%si", "%bx,%di", "%bp,%si", "%bp,%di", "%si", "%di", "%bp", "%bx" | |
252b5132 RH |
3276 | }; |
3277 | ||
b9733481 L |
3278 | static const char **names_mm; |
3279 | static const char *intel_names_mm[] = { | |
3280 | "mm0", "mm1", "mm2", "mm3", | |
3281 | "mm4", "mm5", "mm6", "mm7" | |
3282 | }; | |
3283 | static const char *att_names_mm[] = { | |
3284 | "%mm0", "%mm1", "%mm2", "%mm3", | |
3285 | "%mm4", "%mm5", "%mm6", "%mm7" | |
3286 | }; | |
3287 | ||
7e8b059b L |
3288 | static const char *intel_names_bnd[] = { |
3289 | "bnd0", "bnd1", "bnd2", "bnd3" | |
3290 | }; | |
3291 | ||
3292 | static const char *att_names_bnd[] = { | |
3293 | "%bnd0", "%bnd1", "%bnd2", "%bnd3" | |
3294 | }; | |
3295 | ||
b9733481 L |
3296 | static const char **names_xmm; |
3297 | static const char *intel_names_xmm[] = { | |
3298 | "xmm0", "xmm1", "xmm2", "xmm3", | |
3299 | "xmm4", "xmm5", "xmm6", "xmm7", | |
3300 | "xmm8", "xmm9", "xmm10", "xmm11", | |
43234a1e L |
3301 | "xmm12", "xmm13", "xmm14", "xmm15", |
3302 | "xmm16", "xmm17", "xmm18", "xmm19", | |
3303 | "xmm20", "xmm21", "xmm22", "xmm23", | |
3304 | "xmm24", "xmm25", "xmm26", "xmm27", | |
3305 | "xmm28", "xmm29", "xmm30", "xmm31" | |
b9733481 L |
3306 | }; |
3307 | static const char *att_names_xmm[] = { | |
3308 | "%xmm0", "%xmm1", "%xmm2", "%xmm3", | |
3309 | "%xmm4", "%xmm5", "%xmm6", "%xmm7", | |
3310 | "%xmm8", "%xmm9", "%xmm10", "%xmm11", | |
43234a1e L |
3311 | "%xmm12", "%xmm13", "%xmm14", "%xmm15", |
3312 | "%xmm16", "%xmm17", "%xmm18", "%xmm19", | |
3313 | "%xmm20", "%xmm21", "%xmm22", "%xmm23", | |
3314 | "%xmm24", "%xmm25", "%xmm26", "%xmm27", | |
3315 | "%xmm28", "%xmm29", "%xmm30", "%xmm31" | |
b9733481 L |
3316 | }; |
3317 | ||
3318 | static const char **names_ymm; | |
3319 | static const char *intel_names_ymm[] = { | |
3320 | "ymm0", "ymm1", "ymm2", "ymm3", | |
3321 | "ymm4", "ymm5", "ymm6", "ymm7", | |
3322 | "ymm8", "ymm9", "ymm10", "ymm11", | |
43234a1e L |
3323 | "ymm12", "ymm13", "ymm14", "ymm15", |
3324 | "ymm16", "ymm17", "ymm18", "ymm19", | |
3325 | "ymm20", "ymm21", "ymm22", "ymm23", | |
3326 | "ymm24", "ymm25", "ymm26", "ymm27", | |
3327 | "ymm28", "ymm29", "ymm30", "ymm31" | |
b9733481 L |
3328 | }; |
3329 | static const char *att_names_ymm[] = { | |
3330 | "%ymm0", "%ymm1", "%ymm2", "%ymm3", | |
3331 | "%ymm4", "%ymm5", "%ymm6", "%ymm7", | |
3332 | "%ymm8", "%ymm9", "%ymm10", "%ymm11", | |
43234a1e L |
3333 | "%ymm12", "%ymm13", "%ymm14", "%ymm15", |
3334 | "%ymm16", "%ymm17", "%ymm18", "%ymm19", | |
3335 | "%ymm20", "%ymm21", "%ymm22", "%ymm23", | |
3336 | "%ymm24", "%ymm25", "%ymm26", "%ymm27", | |
3337 | "%ymm28", "%ymm29", "%ymm30", "%ymm31" | |
3338 | }; | |
3339 | ||
3340 | static const char **names_zmm; | |
3341 | static const char *intel_names_zmm[] = { | |
3342 | "zmm0", "zmm1", "zmm2", "zmm3", | |
3343 | "zmm4", "zmm5", "zmm6", "zmm7", | |
3344 | "zmm8", "zmm9", "zmm10", "zmm11", | |
3345 | "zmm12", "zmm13", "zmm14", "zmm15", | |
3346 | "zmm16", "zmm17", "zmm18", "zmm19", | |
3347 | "zmm20", "zmm21", "zmm22", "zmm23", | |
3348 | "zmm24", "zmm25", "zmm26", "zmm27", | |
3349 | "zmm28", "zmm29", "zmm30", "zmm31" | |
3350 | }; | |
3351 | static const char *att_names_zmm[] = { | |
3352 | "%zmm0", "%zmm1", "%zmm2", "%zmm3", | |
3353 | "%zmm4", "%zmm5", "%zmm6", "%zmm7", | |
3354 | "%zmm8", "%zmm9", "%zmm10", "%zmm11", | |
3355 | "%zmm12", "%zmm13", "%zmm14", "%zmm15", | |
3356 | "%zmm16", "%zmm17", "%zmm18", "%zmm19", | |
3357 | "%zmm20", "%zmm21", "%zmm22", "%zmm23", | |
3358 | "%zmm24", "%zmm25", "%zmm26", "%zmm27", | |
3359 | "%zmm28", "%zmm29", "%zmm30", "%zmm31" | |
3360 | }; | |
3361 | ||
3362 | static const char **names_mask; | |
3363 | static const char *intel_names_mask[] = { | |
3364 | "k0", "k1", "k2", "k3", "k4", "k5", "k6", "k7" | |
3365 | }; | |
3366 | static const char *att_names_mask[] = { | |
3367 | "%k0", "%k1", "%k2", "%k3", "%k4", "%k5", "%k6", "%k7" | |
3368 | }; | |
3369 | ||
3370 | static const char *names_rounding[] = | |
3371 | { | |
3372 | "{rn-sae}", | |
3373 | "{rd-sae}", | |
3374 | "{ru-sae}", | |
3375 | "{rz-sae}" | |
b9733481 L |
3376 | }; |
3377 | ||
1ceb70f8 L |
3378 | static const struct dis386 reg_table[][8] = { |
3379 | /* REG_80 */ | |
252b5132 | 3380 | { |
bf890a93 IT |
3381 | { "addA", { Ebh1, Ib }, 0 }, |
3382 | { "orA", { Ebh1, Ib }, 0 }, | |
3383 | { "adcA", { Ebh1, Ib }, 0 }, | |
3384 | { "sbbA", { Ebh1, Ib }, 0 }, | |
3385 | { "andA", { Ebh1, Ib }, 0 }, | |
3386 | { "subA", { Ebh1, Ib }, 0 }, | |
3387 | { "xorA", { Ebh1, Ib }, 0 }, | |
3388 | { "cmpA", { Eb, Ib }, 0 }, | |
252b5132 | 3389 | }, |
1ceb70f8 | 3390 | /* REG_81 */ |
252b5132 | 3391 | { |
bf890a93 IT |
3392 | { "addQ", { Evh1, Iv }, 0 }, |
3393 | { "orQ", { Evh1, Iv }, 0 }, | |
3394 | { "adcQ", { Evh1, Iv }, 0 }, | |
3395 | { "sbbQ", { Evh1, Iv }, 0 }, | |
3396 | { "andQ", { Evh1, Iv }, 0 }, | |
3397 | { "subQ", { Evh1, Iv }, 0 }, | |
3398 | { "xorQ", { Evh1, Iv }, 0 }, | |
3399 | { "cmpQ", { Ev, Iv }, 0 }, | |
252b5132 | 3400 | }, |
7148c369 | 3401 | /* REG_83 */ |
252b5132 | 3402 | { |
bf890a93 IT |
3403 | { "addQ", { Evh1, sIb }, 0 }, |
3404 | { "orQ", { Evh1, sIb }, 0 }, | |
3405 | { "adcQ", { Evh1, sIb }, 0 }, | |
3406 | { "sbbQ", { Evh1, sIb }, 0 }, | |
3407 | { "andQ", { Evh1, sIb }, 0 }, | |
3408 | { "subQ", { Evh1, sIb }, 0 }, | |
3409 | { "xorQ", { Evh1, sIb }, 0 }, | |
3410 | { "cmpQ", { Ev, sIb }, 0 }, | |
252b5132 | 3411 | }, |
1ceb70f8 | 3412 | /* REG_8F */ |
4e7d34a6 | 3413 | { |
bf890a93 | 3414 | { "popU", { stackEv }, 0 }, |
c48244a5 | 3415 | { XOP_8F_TABLE (XOP_09) }, |
592d1631 L |
3416 | { Bad_Opcode }, |
3417 | { Bad_Opcode }, | |
3418 | { Bad_Opcode }, | |
f88c9eb0 | 3419 | { XOP_8F_TABLE (XOP_09) }, |
4e7d34a6 | 3420 | }, |
1ceb70f8 | 3421 | /* REG_C0 */ |
252b5132 | 3422 | { |
bf890a93 IT |
3423 | { "rolA", { Eb, Ib }, 0 }, |
3424 | { "rorA", { Eb, Ib }, 0 }, | |
3425 | { "rclA", { Eb, Ib }, 0 }, | |
3426 | { "rcrA", { Eb, Ib }, 0 }, | |
3427 | { "shlA", { Eb, Ib }, 0 }, | |
3428 | { "shrA", { Eb, Ib }, 0 }, | |
592d1631 | 3429 | { Bad_Opcode }, |
bf890a93 | 3430 | { "sarA", { Eb, Ib }, 0 }, |
252b5132 | 3431 | }, |
1ceb70f8 | 3432 | /* REG_C1 */ |
252b5132 | 3433 | { |
bf890a93 IT |
3434 | { "rolQ", { Ev, Ib }, 0 }, |
3435 | { "rorQ", { Ev, Ib }, 0 }, | |
3436 | { "rclQ", { Ev, Ib }, 0 }, | |
3437 | { "rcrQ", { Ev, Ib }, 0 }, | |
3438 | { "shlQ", { Ev, Ib }, 0 }, | |
3439 | { "shrQ", { Ev, Ib }, 0 }, | |
592d1631 | 3440 | { Bad_Opcode }, |
bf890a93 | 3441 | { "sarQ", { Ev, Ib }, 0 }, |
252b5132 | 3442 | }, |
1ceb70f8 | 3443 | /* REG_C6 */ |
4e7d34a6 | 3444 | { |
bf890a93 | 3445 | { "movA", { Ebh3, Ib }, 0 }, |
42164a71 L |
3446 | { Bad_Opcode }, |
3447 | { Bad_Opcode }, | |
3448 | { Bad_Opcode }, | |
3449 | { Bad_Opcode }, | |
3450 | { Bad_Opcode }, | |
3451 | { Bad_Opcode }, | |
3452 | { MOD_TABLE (MOD_C6_REG_7) }, | |
4e7d34a6 | 3453 | }, |
1ceb70f8 | 3454 | /* REG_C7 */ |
4e7d34a6 | 3455 | { |
bf890a93 | 3456 | { "movQ", { Evh3, Iv }, 0 }, |
42164a71 L |
3457 | { Bad_Opcode }, |
3458 | { Bad_Opcode }, | |
3459 | { Bad_Opcode }, | |
3460 | { Bad_Opcode }, | |
3461 | { Bad_Opcode }, | |
3462 | { Bad_Opcode }, | |
3463 | { MOD_TABLE (MOD_C7_REG_7) }, | |
4e7d34a6 | 3464 | }, |
1ceb70f8 | 3465 | /* REG_D0 */ |
252b5132 | 3466 | { |
bf890a93 IT |
3467 | { "rolA", { Eb, I1 }, 0 }, |
3468 | { "rorA", { Eb, I1 }, 0 }, | |
3469 | { "rclA", { Eb, I1 }, 0 }, | |
3470 | { "rcrA", { Eb, I1 }, 0 }, | |
3471 | { "shlA", { Eb, I1 }, 0 }, | |
3472 | { "shrA", { Eb, I1 }, 0 }, | |
592d1631 | 3473 | { Bad_Opcode }, |
bf890a93 | 3474 | { "sarA", { Eb, I1 }, 0 }, |
252b5132 | 3475 | }, |
1ceb70f8 | 3476 | /* REG_D1 */ |
252b5132 | 3477 | { |
bf890a93 IT |
3478 | { "rolQ", { Ev, I1 }, 0 }, |
3479 | { "rorQ", { Ev, I1 }, 0 }, | |
3480 | { "rclQ", { Ev, I1 }, 0 }, | |
3481 | { "rcrQ", { Ev, I1 }, 0 }, | |
3482 | { "shlQ", { Ev, I1 }, 0 }, | |
3483 | { "shrQ", { Ev, I1 }, 0 }, | |
592d1631 | 3484 | { Bad_Opcode }, |
bf890a93 | 3485 | { "sarQ", { Ev, I1 }, 0 }, |
252b5132 | 3486 | }, |
1ceb70f8 | 3487 | /* REG_D2 */ |
252b5132 | 3488 | { |
bf890a93 IT |
3489 | { "rolA", { Eb, CL }, 0 }, |
3490 | { "rorA", { Eb, CL }, 0 }, | |
3491 | { "rclA", { Eb, CL }, 0 }, | |
3492 | { "rcrA", { Eb, CL }, 0 }, | |
3493 | { "shlA", { Eb, CL }, 0 }, | |
3494 | { "shrA", { Eb, CL }, 0 }, | |
592d1631 | 3495 | { Bad_Opcode }, |
bf890a93 | 3496 | { "sarA", { Eb, CL }, 0 }, |
252b5132 | 3497 | }, |
1ceb70f8 | 3498 | /* REG_D3 */ |
252b5132 | 3499 | { |
bf890a93 IT |
3500 | { "rolQ", { Ev, CL }, 0 }, |
3501 | { "rorQ", { Ev, CL }, 0 }, | |
3502 | { "rclQ", { Ev, CL }, 0 }, | |
3503 | { "rcrQ", { Ev, CL }, 0 }, | |
3504 | { "shlQ", { Ev, CL }, 0 }, | |
3505 | { "shrQ", { Ev, CL }, 0 }, | |
592d1631 | 3506 | { Bad_Opcode }, |
bf890a93 | 3507 | { "sarQ", { Ev, CL }, 0 }, |
252b5132 | 3508 | }, |
1ceb70f8 | 3509 | /* REG_F6 */ |
252b5132 | 3510 | { |
bf890a93 | 3511 | { "testA", { Eb, Ib }, 0 }, |
592d1631 | 3512 | { Bad_Opcode }, |
bf890a93 IT |
3513 | { "notA", { Ebh1 }, 0 }, |
3514 | { "negA", { Ebh1 }, 0 }, | |
3515 | { "mulA", { Eb }, 0 }, /* Don't print the implicit %al register, */ | |
3516 | { "imulA", { Eb }, 0 }, /* to distinguish these opcodes from other */ | |
3517 | { "divA", { Eb }, 0 }, /* mul/imul opcodes. Do the same for div */ | |
3518 | { "idivA", { Eb }, 0 }, /* and idiv for consistency. */ | |
252b5132 | 3519 | }, |
1ceb70f8 | 3520 | /* REG_F7 */ |
252b5132 | 3521 | { |
bf890a93 | 3522 | { "testQ", { Ev, Iv }, 0 }, |
592d1631 | 3523 | { Bad_Opcode }, |
bf890a93 IT |
3524 | { "notQ", { Evh1 }, 0 }, |
3525 | { "negQ", { Evh1 }, 0 }, | |
3526 | { "mulQ", { Ev }, 0 }, /* Don't print the implicit register. */ | |
3527 | { "imulQ", { Ev }, 0 }, | |
3528 | { "divQ", { Ev }, 0 }, | |
3529 | { "idivQ", { Ev }, 0 }, | |
252b5132 | 3530 | }, |
1ceb70f8 | 3531 | /* REG_FE */ |
252b5132 | 3532 | { |
bf890a93 IT |
3533 | { "incA", { Ebh1 }, 0 }, |
3534 | { "decA", { Ebh1 }, 0 }, | |
252b5132 | 3535 | }, |
1ceb70f8 | 3536 | /* REG_FF */ |
252b5132 | 3537 | { |
bf890a93 IT |
3538 | { "incQ", { Evh1 }, 0 }, |
3539 | { "decQ", { Evh1 }, 0 }, | |
07f5af7d | 3540 | { "call{&|}", { indirEv, BND }, 0 }, |
4a357820 | 3541 | { MOD_TABLE (MOD_FF_REG_3) }, |
07f5af7d | 3542 | { "jmp{&|}", { indirEv, BND }, 0 }, |
4a357820 | 3543 | { MOD_TABLE (MOD_FF_REG_5) }, |
bf890a93 | 3544 | { "pushU", { stackEv }, 0 }, |
592d1631 | 3545 | { Bad_Opcode }, |
252b5132 | 3546 | }, |
1ceb70f8 | 3547 | /* REG_0F00 */ |
252b5132 | 3548 | { |
bf890a93 IT |
3549 | { "sldtD", { Sv }, 0 }, |
3550 | { "strD", { Sv }, 0 }, | |
3551 | { "lldt", { Ew }, 0 }, | |
3552 | { "ltr", { Ew }, 0 }, | |
3553 | { "verr", { Ew }, 0 }, | |
3554 | { "verw", { Ew }, 0 }, | |
592d1631 L |
3555 | { Bad_Opcode }, |
3556 | { Bad_Opcode }, | |
252b5132 | 3557 | }, |
1ceb70f8 | 3558 | /* REG_0F01 */ |
252b5132 | 3559 | { |
1ceb70f8 L |
3560 | { MOD_TABLE (MOD_0F01_REG_0) }, |
3561 | { MOD_TABLE (MOD_0F01_REG_1) }, | |
3562 | { MOD_TABLE (MOD_0F01_REG_2) }, | |
3563 | { MOD_TABLE (MOD_0F01_REG_3) }, | |
bf890a93 | 3564 | { "smswD", { Sv }, 0 }, |
8eab4136 | 3565 | { MOD_TABLE (MOD_0F01_REG_5) }, |
bf890a93 | 3566 | { "lmsw", { Ew }, 0 }, |
1ceb70f8 | 3567 | { MOD_TABLE (MOD_0F01_REG_7) }, |
252b5132 | 3568 | }, |
b5b1fc4f | 3569 | /* REG_0F0D */ |
252b5132 | 3570 | { |
bf890a93 IT |
3571 | { "prefetch", { Mb }, 0 }, |
3572 | { "prefetchw", { Mb }, 0 }, | |
3573 | { "prefetchwt1", { Mb }, 0 }, | |
3574 | { "prefetch", { Mb }, 0 }, | |
3575 | { "prefetch", { Mb }, 0 }, | |
3576 | { "prefetch", { Mb }, 0 }, | |
3577 | { "prefetch", { Mb }, 0 }, | |
3578 | { "prefetch", { Mb }, 0 }, | |
252b5132 | 3579 | }, |
1ceb70f8 | 3580 | /* REG_0F18 */ |
252b5132 | 3581 | { |
1ceb70f8 L |
3582 | { MOD_TABLE (MOD_0F18_REG_0) }, |
3583 | { MOD_TABLE (MOD_0F18_REG_1) }, | |
3584 | { MOD_TABLE (MOD_0F18_REG_2) }, | |
3585 | { MOD_TABLE (MOD_0F18_REG_3) }, | |
d7189fa5 RM |
3586 | { MOD_TABLE (MOD_0F18_REG_4) }, |
3587 | { MOD_TABLE (MOD_0F18_REG_5) }, | |
3588 | { MOD_TABLE (MOD_0F18_REG_6) }, | |
3589 | { MOD_TABLE (MOD_0F18_REG_7) }, | |
252b5132 | 3590 | }, |
1ceb70f8 | 3591 | /* REG_0F71 */ |
a6bd098c | 3592 | { |
592d1631 L |
3593 | { Bad_Opcode }, |
3594 | { Bad_Opcode }, | |
1ceb70f8 | 3595 | { MOD_TABLE (MOD_0F71_REG_2) }, |
592d1631 | 3596 | { Bad_Opcode }, |
1ceb70f8 | 3597 | { MOD_TABLE (MOD_0F71_REG_4) }, |
592d1631 | 3598 | { Bad_Opcode }, |
1ceb70f8 | 3599 | { MOD_TABLE (MOD_0F71_REG_6) }, |
a6bd098c | 3600 | }, |
1ceb70f8 | 3601 | /* REG_0F72 */ |
a6bd098c | 3602 | { |
592d1631 L |
3603 | { Bad_Opcode }, |
3604 | { Bad_Opcode }, | |
1ceb70f8 | 3605 | { MOD_TABLE (MOD_0F72_REG_2) }, |
592d1631 | 3606 | { Bad_Opcode }, |
1ceb70f8 | 3607 | { MOD_TABLE (MOD_0F72_REG_4) }, |
592d1631 | 3608 | { Bad_Opcode }, |
1ceb70f8 | 3609 | { MOD_TABLE (MOD_0F72_REG_6) }, |
a6bd098c | 3610 | }, |
1ceb70f8 | 3611 | /* REG_0F73 */ |
252b5132 | 3612 | { |
592d1631 L |
3613 | { Bad_Opcode }, |
3614 | { Bad_Opcode }, | |
1ceb70f8 L |
3615 | { MOD_TABLE (MOD_0F73_REG_2) }, |
3616 | { MOD_TABLE (MOD_0F73_REG_3) }, | |
592d1631 L |
3617 | { Bad_Opcode }, |
3618 | { Bad_Opcode }, | |
1ceb70f8 L |
3619 | { MOD_TABLE (MOD_0F73_REG_6) }, |
3620 | { MOD_TABLE (MOD_0F73_REG_7) }, | |
252b5132 | 3621 | }, |
1ceb70f8 | 3622 | /* REG_0FA6 */ |
252b5132 | 3623 | { |
bf890a93 IT |
3624 | { "montmul", { { OP_0f07, 0 } }, 0 }, |
3625 | { "xsha1", { { OP_0f07, 0 } }, 0 }, | |
3626 | { "xsha256", { { OP_0f07, 0 } }, 0 }, | |
4e7d34a6 | 3627 | }, |
1ceb70f8 | 3628 | /* REG_0FA7 */ |
4e7d34a6 | 3629 | { |
bf890a93 IT |
3630 | { "xstore-rng", { { OP_0f07, 0 } }, 0 }, |
3631 | { "xcrypt-ecb", { { OP_0f07, 0 } }, 0 }, | |
3632 | { "xcrypt-cbc", { { OP_0f07, 0 } }, 0 }, | |
3633 | { "xcrypt-ctr", { { OP_0f07, 0 } }, 0 }, | |
3634 | { "xcrypt-cfb", { { OP_0f07, 0 } }, 0 }, | |
3635 | { "xcrypt-ofb", { { OP_0f07, 0 } }, 0 }, | |
4e7d34a6 | 3636 | }, |
1ceb70f8 | 3637 | /* REG_0FAE */ |
4e7d34a6 | 3638 | { |
1ceb70f8 L |
3639 | { MOD_TABLE (MOD_0FAE_REG_0) }, |
3640 | { MOD_TABLE (MOD_0FAE_REG_1) }, | |
3641 | { MOD_TABLE (MOD_0FAE_REG_2) }, | |
3642 | { MOD_TABLE (MOD_0FAE_REG_3) }, | |
475a2301 | 3643 | { MOD_TABLE (MOD_0FAE_REG_4) }, |
1ceb70f8 L |
3644 | { MOD_TABLE (MOD_0FAE_REG_5) }, |
3645 | { MOD_TABLE (MOD_0FAE_REG_6) }, | |
3646 | { MOD_TABLE (MOD_0FAE_REG_7) }, | |
252b5132 | 3647 | }, |
1ceb70f8 | 3648 | /* REG_0FBA */ |
252b5132 | 3649 | { |
592d1631 L |
3650 | { Bad_Opcode }, |
3651 | { Bad_Opcode }, | |
3652 | { Bad_Opcode }, | |
3653 | { Bad_Opcode }, | |
bf890a93 IT |
3654 | { "btQ", { Ev, Ib }, 0 }, |
3655 | { "btsQ", { Evh1, Ib }, 0 }, | |
3656 | { "btrQ", { Evh1, Ib }, 0 }, | |
3657 | { "btcQ", { Evh1, Ib }, 0 }, | |
c608c12e | 3658 | }, |
1ceb70f8 | 3659 | /* REG_0FC7 */ |
c608c12e | 3660 | { |
592d1631 | 3661 | { Bad_Opcode }, |
bf890a93 | 3662 | { "cmpxchg8b", { { CMPXCHG8B_Fixup, q_mode } }, 0 }, |
592d1631 | 3663 | { Bad_Opcode }, |
963f3586 IT |
3664 | { MOD_TABLE (MOD_0FC7_REG_3) }, |
3665 | { MOD_TABLE (MOD_0FC7_REG_4) }, | |
3666 | { MOD_TABLE (MOD_0FC7_REG_5) }, | |
1ceb70f8 L |
3667 | { MOD_TABLE (MOD_0FC7_REG_6) }, |
3668 | { MOD_TABLE (MOD_0FC7_REG_7) }, | |
252b5132 | 3669 | }, |
592a252b | 3670 | /* REG_VEX_0F71 */ |
c0f3af97 | 3671 | { |
592d1631 L |
3672 | { Bad_Opcode }, |
3673 | { Bad_Opcode }, | |
592a252b | 3674 | { MOD_TABLE (MOD_VEX_0F71_REG_2) }, |
592d1631 | 3675 | { Bad_Opcode }, |
592a252b | 3676 | { MOD_TABLE (MOD_VEX_0F71_REG_4) }, |
592d1631 | 3677 | { Bad_Opcode }, |
592a252b | 3678 | { MOD_TABLE (MOD_VEX_0F71_REG_6) }, |
c0f3af97 | 3679 | }, |
592a252b | 3680 | /* REG_VEX_0F72 */ |
c0f3af97 | 3681 | { |
592d1631 L |
3682 | { Bad_Opcode }, |
3683 | { Bad_Opcode }, | |
592a252b | 3684 | { MOD_TABLE (MOD_VEX_0F72_REG_2) }, |
592d1631 | 3685 | { Bad_Opcode }, |
592a252b | 3686 | { MOD_TABLE (MOD_VEX_0F72_REG_4) }, |
592d1631 | 3687 | { Bad_Opcode }, |
592a252b | 3688 | { MOD_TABLE (MOD_VEX_0F72_REG_6) }, |
c0f3af97 | 3689 | }, |
592a252b | 3690 | /* REG_VEX_0F73 */ |
c0f3af97 | 3691 | { |
592d1631 L |
3692 | { Bad_Opcode }, |
3693 | { Bad_Opcode }, | |
592a252b L |
3694 | { MOD_TABLE (MOD_VEX_0F73_REG_2) }, |
3695 | { MOD_TABLE (MOD_VEX_0F73_REG_3) }, | |
592d1631 L |
3696 | { Bad_Opcode }, |
3697 | { Bad_Opcode }, | |
592a252b L |
3698 | { MOD_TABLE (MOD_VEX_0F73_REG_6) }, |
3699 | { MOD_TABLE (MOD_VEX_0F73_REG_7) }, | |
c0f3af97 | 3700 | }, |
592a252b | 3701 | /* REG_VEX_0FAE */ |
c0f3af97 | 3702 | { |
592d1631 L |
3703 | { Bad_Opcode }, |
3704 | { Bad_Opcode }, | |
592a252b L |
3705 | { MOD_TABLE (MOD_VEX_0FAE_REG_2) }, |
3706 | { MOD_TABLE (MOD_VEX_0FAE_REG_3) }, | |
c0f3af97 | 3707 | }, |
f12dc422 L |
3708 | /* REG_VEX_0F38F3 */ |
3709 | { | |
3710 | { Bad_Opcode }, | |
3711 | { PREFIX_TABLE (PREFIX_VEX_0F38F3_REG_1) }, | |
3712 | { PREFIX_TABLE (PREFIX_VEX_0F38F3_REG_2) }, | |
3713 | { PREFIX_TABLE (PREFIX_VEX_0F38F3_REG_3) }, | |
3714 | }, | |
f88c9eb0 SP |
3715 | /* REG_XOP_LWPCB */ |
3716 | { | |
bf890a93 IT |
3717 | { "llwpcb", { { OP_LWPCB_E, 0 } }, 0 }, |
3718 | { "slwpcb", { { OP_LWPCB_E, 0 } }, 0 }, | |
f88c9eb0 SP |
3719 | }, |
3720 | /* REG_XOP_LWP */ | |
3721 | { | |
bf890a93 IT |
3722 | { "lwpins", { { OP_LWP_E, 0 }, Ed, Iq }, 0 }, |
3723 | { "lwpval", { { OP_LWP_E, 0 }, Ed, Iq }, 0 }, | |
f88c9eb0 | 3724 | }, |
2a2a0f38 QN |
3725 | /* REG_XOP_TBM_01 */ |
3726 | { | |
3727 | { Bad_Opcode }, | |
bf890a93 IT |
3728 | { "blcfill", { { OP_LWP_E, 0 }, Ev }, 0 }, |
3729 | { "blsfill", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3730 | { "blcs", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3731 | { "tzmsk", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3732 | { "blcic", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3733 | { "blsic", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
3734 | { "t1mskc", { { OP_LWP_E, 0 }, Ev }, 0 }, | |
2a2a0f38 QN |
3735 | }, |
3736 | /* REG_XOP_TBM_02 */ | |
3737 | { | |
3738 | { Bad_Opcode }, | |
bf890a93 | 3739 | { "blcmsk", { { OP_LWP_E, 0 }, Ev }, 0 }, |
2a2a0f38 QN |
3740 | { Bad_Opcode }, |
3741 | { Bad_Opcode }, | |
3742 | { Bad_Opcode }, | |
3743 | { Bad_Opcode }, | |
bf890a93 | 3744 | { "blci", { { OP_LWP_E, 0 }, Ev }, 0 }, |
2a2a0f38 | 3745 | }, |
43234a1e L |
3746 | #define NEED_REG_TABLE |
3747 | #include "i386-dis-evex.h" | |
3748 | #undef NEED_REG_TABLE | |
4e7d34a6 L |
3749 | }; |
3750 | ||
1ceb70f8 L |
3751 | static const struct dis386 prefix_table[][4] = { |
3752 | /* PREFIX_90 */ | |
252b5132 | 3753 | { |
bf890a93 IT |
3754 | { "xchgS", { { NOP_Fixup1, eAX_reg }, { NOP_Fixup2, eAX_reg } }, 0 }, |
3755 | { "pause", { XX }, 0 }, | |
3756 | { "xchgS", { { NOP_Fixup1, eAX_reg }, { NOP_Fixup2, eAX_reg } }, 0 }, | |
507bd325 | 3757 | { NULL, { { NULL, 0 } }, PREFIX_IGNORED } |
0f10071e | 3758 | }, |
4e7d34a6 | 3759 | |
1ceb70f8 | 3760 | /* PREFIX_0F10 */ |
cc0ec051 | 3761 | { |
507bd325 L |
3762 | { "movups", { XM, EXx }, PREFIX_OPCODE }, |
3763 | { "movss", { XM, EXd }, PREFIX_OPCODE }, | |
3764 | { "movupd", { XM, EXx }, PREFIX_OPCODE }, | |
3765 | { "movsd", { XM, EXq }, PREFIX_OPCODE }, | |
30d1c836 | 3766 | }, |
4e7d34a6 | 3767 | |
1ceb70f8 | 3768 | /* PREFIX_0F11 */ |
30d1c836 | 3769 | { |
507bd325 L |
3770 | { "movups", { EXxS, XM }, PREFIX_OPCODE }, |
3771 | { "movss", { EXdS, XM }, PREFIX_OPCODE }, | |
3772 | { "movupd", { EXxS, XM }, PREFIX_OPCODE }, | |
3773 | { "movsd", { EXqS, XM }, PREFIX_OPCODE }, | |
4e7d34a6 | 3774 | }, |
252b5132 | 3775 | |
1ceb70f8 | 3776 | /* PREFIX_0F12 */ |
c608c12e | 3777 | { |
1ceb70f8 | 3778 | { MOD_TABLE (MOD_0F12_PREFIX_0) }, |
507bd325 L |
3779 | { "movsldup", { XM, EXx }, PREFIX_OPCODE }, |
3780 | { "movlpd", { XM, EXq }, PREFIX_OPCODE }, | |
3781 | { "movddup", { XM, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3782 | }, |
4e7d34a6 | 3783 | |
1ceb70f8 | 3784 | /* PREFIX_0F16 */ |
c608c12e | 3785 | { |
1ceb70f8 | 3786 | { MOD_TABLE (MOD_0F16_PREFIX_0) }, |
507bd325 L |
3787 | { "movshdup", { XM, EXx }, PREFIX_OPCODE }, |
3788 | { "movhpd", { XM, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3789 | }, |
4e7d34a6 | 3790 | |
7e8b059b L |
3791 | /* PREFIX_0F1A */ |
3792 | { | |
3793 | { MOD_TABLE (MOD_0F1A_PREFIX_0) }, | |
bf890a93 IT |
3794 | { "bndcl", { Gbnd, Ev_bnd }, 0 }, |
3795 | { "bndmov", { Gbnd, Ebnd }, 0 }, | |
3796 | { "bndcu", { Gbnd, Ev_bnd }, 0 }, | |
7e8b059b L |
3797 | }, |
3798 | ||
3799 | /* PREFIX_0F1B */ | |
3800 | { | |
3801 | { MOD_TABLE (MOD_0F1B_PREFIX_0) }, | |
3802 | { MOD_TABLE (MOD_0F1B_PREFIX_1) }, | |
bf890a93 IT |
3803 | { "bndmov", { Ebnd, Gbnd }, 0 }, |
3804 | { "bndcn", { Gbnd, Ev_bnd }, 0 }, | |
7e8b059b L |
3805 | }, |
3806 | ||
1ceb70f8 | 3807 | /* PREFIX_0F2A */ |
c608c12e | 3808 | { |
507bd325 L |
3809 | { "cvtpi2ps", { XM, EMCq }, PREFIX_OPCODE }, |
3810 | { "cvtsi2ss%LQ", { XM, Ev }, PREFIX_OPCODE }, | |
3811 | { "cvtpi2pd", { XM, EMCq }, PREFIX_OPCODE }, | |
bf890a93 | 3812 | { "cvtsi2sd%LQ", { XM, Ev }, 0 }, |
c608c12e | 3813 | }, |
4e7d34a6 | 3814 | |
1ceb70f8 | 3815 | /* PREFIX_0F2B */ |
c608c12e | 3816 | { |
75c135a8 L |
3817 | { MOD_TABLE (MOD_0F2B_PREFIX_0) }, |
3818 | { MOD_TABLE (MOD_0F2B_PREFIX_1) }, | |
3819 | { MOD_TABLE (MOD_0F2B_PREFIX_2) }, | |
3820 | { MOD_TABLE (MOD_0F2B_PREFIX_3) }, | |
c608c12e | 3821 | }, |
4e7d34a6 | 3822 | |
1ceb70f8 | 3823 | /* PREFIX_0F2C */ |
c608c12e | 3824 | { |
507bd325 L |
3825 | { "cvttps2pi", { MXC, EXq }, PREFIX_OPCODE }, |
3826 | { "cvttss2siY", { Gv, EXd }, PREFIX_OPCODE }, | |
3827 | { "cvttpd2pi", { MXC, EXx }, PREFIX_OPCODE }, | |
3828 | { "cvttsd2siY", { Gv, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3829 | }, |
4e7d34a6 | 3830 | |
1ceb70f8 | 3831 | /* PREFIX_0F2D */ |
c608c12e | 3832 | { |
507bd325 L |
3833 | { "cvtps2pi", { MXC, EXq }, PREFIX_OPCODE }, |
3834 | { "cvtss2siY", { Gv, EXd }, PREFIX_OPCODE }, | |
3835 | { "cvtpd2pi", { MXC, EXx }, PREFIX_OPCODE }, | |
3836 | { "cvtsd2siY", { Gv, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3837 | }, |
4e7d34a6 | 3838 | |
1ceb70f8 | 3839 | /* PREFIX_0F2E */ |
c608c12e | 3840 | { |
bf890a93 | 3841 | { "ucomiss",{ XM, EXd }, 0 }, |
592d1631 | 3842 | { Bad_Opcode }, |
bf890a93 | 3843 | { "ucomisd",{ XM, EXq }, 0 }, |
c608c12e | 3844 | }, |
4e7d34a6 | 3845 | |
1ceb70f8 | 3846 | /* PREFIX_0F2F */ |
c608c12e | 3847 | { |
bf890a93 | 3848 | { "comiss", { XM, EXd }, 0 }, |
592d1631 | 3849 | { Bad_Opcode }, |
bf890a93 | 3850 | { "comisd", { XM, EXq }, 0 }, |
c608c12e | 3851 | }, |
4e7d34a6 | 3852 | |
1ceb70f8 | 3853 | /* PREFIX_0F51 */ |
c608c12e | 3854 | { |
507bd325 L |
3855 | { "sqrtps", { XM, EXx }, PREFIX_OPCODE }, |
3856 | { "sqrtss", { XM, EXd }, PREFIX_OPCODE }, | |
3857 | { "sqrtpd", { XM, EXx }, PREFIX_OPCODE }, | |
3858 | { "sqrtsd", { XM, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3859 | }, |
4e7d34a6 | 3860 | |
1ceb70f8 | 3861 | /* PREFIX_0F52 */ |
c608c12e | 3862 | { |
507bd325 L |
3863 | { "rsqrtps",{ XM, EXx }, PREFIX_OPCODE }, |
3864 | { "rsqrtss",{ XM, EXd }, PREFIX_OPCODE }, | |
c608c12e | 3865 | }, |
4e7d34a6 | 3866 | |
1ceb70f8 | 3867 | /* PREFIX_0F53 */ |
c608c12e | 3868 | { |
507bd325 L |
3869 | { "rcpps", { XM, EXx }, PREFIX_OPCODE }, |
3870 | { "rcpss", { XM, EXd }, PREFIX_OPCODE }, | |
c608c12e | 3871 | }, |
4e7d34a6 | 3872 | |
1ceb70f8 | 3873 | /* PREFIX_0F58 */ |
c608c12e | 3874 | { |
507bd325 L |
3875 | { "addps", { XM, EXx }, PREFIX_OPCODE }, |
3876 | { "addss", { XM, EXd }, PREFIX_OPCODE }, | |
3877 | { "addpd", { XM, EXx }, PREFIX_OPCODE }, | |
3878 | { "addsd", { XM, EXq }, PREFIX_OPCODE }, | |
c608c12e | 3879 | }, |
4e7d34a6 | 3880 | |
1ceb70f8 | 3881 | /* PREFIX_0F59 */ |
c608c12e | 3882 | { |
507bd325 L |
3883 | { "mulps", { XM, EXx }, PREFIX_OPCODE }, |
3884 | { "mulss", { XM, EXd }, PREFIX_OPCODE }, | |
3885 | { "mulpd", { XM, EXx }, PREFIX_OPCODE }, | |
3886 | { "mulsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 3887 | }, |
4e7d34a6 | 3888 | |
1ceb70f8 | 3889 | /* PREFIX_0F5A */ |
041bd2e0 | 3890 | { |
507bd325 L |
3891 | { "cvtps2pd", { XM, EXq }, PREFIX_OPCODE }, |
3892 | { "cvtss2sd", { XM, EXd }, PREFIX_OPCODE }, | |
3893 | { "cvtpd2ps", { XM, EXx }, PREFIX_OPCODE }, | |
3894 | { "cvtsd2ss", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 3895 | }, |
4e7d34a6 | 3896 | |
1ceb70f8 | 3897 | /* PREFIX_0F5B */ |
041bd2e0 | 3898 | { |
507bd325 L |
3899 | { "cvtdq2ps", { XM, EXx }, PREFIX_OPCODE }, |
3900 | { "cvttps2dq", { XM, EXx }, PREFIX_OPCODE }, | |
3901 | { "cvtps2dq", { XM, EXx }, PREFIX_OPCODE }, | |
041bd2e0 | 3902 | }, |
4e7d34a6 | 3903 | |
1ceb70f8 | 3904 | /* PREFIX_0F5C */ |
041bd2e0 | 3905 | { |
507bd325 L |
3906 | { "subps", { XM, EXx }, PREFIX_OPCODE }, |
3907 | { "subss", { XM, EXd }, PREFIX_OPCODE }, | |
3908 | { "subpd", { XM, EXx }, PREFIX_OPCODE }, | |
3909 | { "subsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 3910 | }, |
4e7d34a6 | 3911 | |
1ceb70f8 | 3912 | /* PREFIX_0F5D */ |
041bd2e0 | 3913 | { |
507bd325 L |
3914 | { "minps", { XM, EXx }, PREFIX_OPCODE }, |
3915 | { "minss", { XM, EXd }, PREFIX_OPCODE }, | |
3916 | { "minpd", { XM, EXx }, PREFIX_OPCODE }, | |
3917 | { "minsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 3918 | }, |
4e7d34a6 | 3919 | |
1ceb70f8 | 3920 | /* PREFIX_0F5E */ |
041bd2e0 | 3921 | { |
507bd325 L |
3922 | { "divps", { XM, EXx }, PREFIX_OPCODE }, |
3923 | { "divss", { XM, EXd }, PREFIX_OPCODE }, | |
3924 | { "divpd", { XM, EXx }, PREFIX_OPCODE }, | |
3925 | { "divsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 3926 | }, |
4e7d34a6 | 3927 | |
1ceb70f8 | 3928 | /* PREFIX_0F5F */ |
041bd2e0 | 3929 | { |
507bd325 L |
3930 | { "maxps", { XM, EXx }, PREFIX_OPCODE }, |
3931 | { "maxss", { XM, EXd }, PREFIX_OPCODE }, | |
3932 | { "maxpd", { XM, EXx }, PREFIX_OPCODE }, | |
3933 | { "maxsd", { XM, EXq }, PREFIX_OPCODE }, | |
041bd2e0 | 3934 | }, |
4e7d34a6 | 3935 | |
1ceb70f8 | 3936 | /* PREFIX_0F60 */ |
041bd2e0 | 3937 | { |
507bd325 | 3938 | { "punpcklbw",{ MX, EMd }, PREFIX_OPCODE }, |
592d1631 | 3939 | { Bad_Opcode }, |
507bd325 | 3940 | { "punpcklbw",{ MX, EMx }, PREFIX_OPCODE }, |
041bd2e0 | 3941 | }, |
4e7d34a6 | 3942 | |
1ceb70f8 | 3943 | /* PREFIX_0F61 */ |
041bd2e0 | 3944 | { |
507bd325 | 3945 | { "punpcklwd",{ MX, EMd }, PREFIX_OPCODE }, |
592d1631 | 3946 | { Bad_Opcode }, |
507bd325 | 3947 | { "punpcklwd",{ MX, EMx }, PREFIX_OPCODE }, |
041bd2e0 | 3948 | }, |
4e7d34a6 | 3949 | |
1ceb70f8 | 3950 | /* PREFIX_0F62 */ |
041bd2e0 | 3951 | { |
507bd325 | 3952 | { "punpckldq",{ MX, EMd }, PREFIX_OPCODE }, |
592d1631 | 3953 | { Bad_Opcode }, |
507bd325 | 3954 | { "punpckldq",{ MX, EMx }, PREFIX_OPCODE }, |
041bd2e0 | 3955 | }, |
4e7d34a6 | 3956 | |
1ceb70f8 | 3957 | /* PREFIX_0F6C */ |
041bd2e0 | 3958 | { |
592d1631 L |
3959 | { Bad_Opcode }, |
3960 | { Bad_Opcode }, | |
507bd325 | 3961 | { "punpcklqdq", { XM, EXx }, PREFIX_OPCODE }, |
0f17484f | 3962 | }, |
4e7d34a6 | 3963 | |
1ceb70f8 | 3964 | /* PREFIX_0F6D */ |
0f17484f | 3965 | { |
592d1631 L |
3966 | { Bad_Opcode }, |
3967 | { Bad_Opcode }, | |
507bd325 | 3968 | { "punpckhqdq", { XM, EXx }, PREFIX_OPCODE }, |
041bd2e0 | 3969 | }, |
4e7d34a6 | 3970 | |
1ceb70f8 | 3971 | /* PREFIX_0F6F */ |
ca164297 | 3972 | { |
507bd325 L |
3973 | { "movq", { MX, EM }, PREFIX_OPCODE }, |
3974 | { "movdqu", { XM, EXx }, PREFIX_OPCODE }, | |
3975 | { "movdqa", { XM, EXx }, PREFIX_OPCODE }, | |
ca164297 | 3976 | }, |
4e7d34a6 | 3977 | |
1ceb70f8 | 3978 | /* PREFIX_0F70 */ |
4e7d34a6 | 3979 | { |
507bd325 L |
3980 | { "pshufw", { MX, EM, Ib }, PREFIX_OPCODE }, |
3981 | { "pshufhw",{ XM, EXx, Ib }, PREFIX_OPCODE }, | |
3982 | { "pshufd", { XM, EXx, Ib }, PREFIX_OPCODE }, | |
3983 | { "pshuflw",{ XM, EXx, Ib }, PREFIX_OPCODE }, | |
4e7d34a6 L |
3984 | }, |
3985 | ||
92fddf8e L |
3986 | /* PREFIX_0F73_REG_3 */ |
3987 | { | |
592d1631 L |
3988 | { Bad_Opcode }, |
3989 | { Bad_Opcode }, | |
bf890a93 | 3990 | { "psrldq", { XS, Ib }, 0 }, |
92fddf8e L |
3991 | }, |
3992 | ||
3993 | /* PREFIX_0F73_REG_7 */ | |
3994 | { | |
592d1631 L |
3995 | { Bad_Opcode }, |
3996 | { Bad_Opcode }, | |
bf890a93 | 3997 | { "pslldq", { XS, Ib }, 0 }, |
92fddf8e L |
3998 | }, |
3999 | ||
1ceb70f8 | 4000 | /* PREFIX_0F78 */ |
4e7d34a6 | 4001 | { |
bf890a93 | 4002 | {"vmread", { Em, Gm }, 0 }, |
592d1631 | 4003 | { Bad_Opcode }, |
bf890a93 IT |
4004 | {"extrq", { XS, Ib, Ib }, 0 }, |
4005 | {"insertq", { XM, XS, Ib, Ib }, 0 }, | |
4e7d34a6 L |
4006 | }, |
4007 | ||
1ceb70f8 | 4008 | /* PREFIX_0F79 */ |
4e7d34a6 | 4009 | { |
bf890a93 | 4010 | {"vmwrite", { Gm, Em }, 0 }, |
592d1631 | 4011 | { Bad_Opcode }, |
bf890a93 IT |
4012 | {"extrq", { XM, XS }, 0 }, |
4013 | {"insertq", { XM, XS }, 0 }, | |
4e7d34a6 L |
4014 | }, |
4015 | ||
1ceb70f8 | 4016 | /* PREFIX_0F7C */ |
ca164297 | 4017 | { |
592d1631 L |
4018 | { Bad_Opcode }, |
4019 | { Bad_Opcode }, | |
507bd325 L |
4020 | { "haddpd", { XM, EXx }, PREFIX_OPCODE }, |
4021 | { "haddps", { XM, EXx }, PREFIX_OPCODE }, | |
ca164297 | 4022 | }, |
4e7d34a6 | 4023 | |
1ceb70f8 | 4024 | /* PREFIX_0F7D */ |
ca164297 | 4025 | { |
592d1631 L |
4026 | { Bad_Opcode }, |
4027 | { Bad_Opcode }, | |
507bd325 L |
4028 | { "hsubpd", { XM, EXx }, PREFIX_OPCODE }, |
4029 | { "hsubps", { XM, EXx }, PREFIX_OPCODE }, | |
ca164297 | 4030 | }, |
4e7d34a6 | 4031 | |
1ceb70f8 | 4032 | /* PREFIX_0F7E */ |
ca164297 | 4033 | { |
507bd325 L |
4034 | { "movK", { Edq, MX }, PREFIX_OPCODE }, |
4035 | { "movq", { XM, EXq }, PREFIX_OPCODE }, | |
4036 | { "movK", { Edq, XM }, PREFIX_OPCODE }, | |
ca164297 | 4037 | }, |
4e7d34a6 | 4038 | |
1ceb70f8 | 4039 | /* PREFIX_0F7F */ |
ca164297 | 4040 | { |
507bd325 L |
4041 | { "movq", { EMS, MX }, PREFIX_OPCODE }, |
4042 | { "movdqu", { EXxS, XM }, PREFIX_OPCODE }, | |
4043 | { "movdqa", { EXxS, XM }, PREFIX_OPCODE }, | |
ca164297 | 4044 | }, |
4e7d34a6 | 4045 | |
c7b8aa3a L |
4046 | /* PREFIX_0FAE_REG_0 */ |
4047 | { | |
4048 | { Bad_Opcode }, | |
bf890a93 | 4049 | { "rdfsbase", { Ev }, 0 }, |
c7b8aa3a L |
4050 | }, |
4051 | ||
4052 | /* PREFIX_0FAE_REG_1 */ | |
4053 | { | |
4054 | { Bad_Opcode }, | |
bf890a93 | 4055 | { "rdgsbase", { Ev }, 0 }, |
c7b8aa3a L |
4056 | }, |
4057 | ||
4058 | /* PREFIX_0FAE_REG_2 */ | |
4059 | { | |
4060 | { Bad_Opcode }, | |
bf890a93 | 4061 | { "wrfsbase", { Ev }, 0 }, |
c7b8aa3a L |
4062 | }, |
4063 | ||
4064 | /* PREFIX_0FAE_REG_3 */ | |
4065 | { | |
4066 | { Bad_Opcode }, | |
bf890a93 | 4067 | { "wrgsbase", { Ev }, 0 }, |
c7b8aa3a L |
4068 | }, |
4069 | ||
6b40c462 L |
4070 | /* PREFIX_MOD_0_0FAE_REG_4 */ |
4071 | { | |
4072 | { "xsave", { FXSAVE }, 0 }, | |
4073 | { "ptwrite%LQ", { Edq }, 0 }, | |
4074 | }, | |
4075 | ||
4076 | /* PREFIX_MOD_3_0FAE_REG_4 */ | |
4077 | { | |
4078 | { Bad_Opcode }, | |
4079 | { "ptwrite%LQ", { Edq }, 0 }, | |
4080 | }, | |
4081 | ||
c5e7287a IT |
4082 | /* PREFIX_0FAE_REG_6 */ |
4083 | { | |
bf890a93 | 4084 | { "xsaveopt", { FXSAVE }, 0 }, |
c5e7287a | 4085 | { Bad_Opcode }, |
bf890a93 | 4086 | { "clwb", { Mb }, 0 }, |
c5e7287a IT |
4087 | }, |
4088 | ||
963f3586 IT |
4089 | /* PREFIX_0FAE_REG_7 */ |
4090 | { | |
bf890a93 | 4091 | { "clflush", { Mb }, 0 }, |
963f3586 | 4092 | { Bad_Opcode }, |
bf890a93 | 4093 | { "clflushopt", { Mb }, 0 }, |
963f3586 IT |
4094 | }, |
4095 | ||
1ceb70f8 | 4096 | /* PREFIX_0FB8 */ |
ca164297 | 4097 | { |
592d1631 | 4098 | { Bad_Opcode }, |
bf890a93 | 4099 | { "popcntS", { Gv, Ev }, 0 }, |
ca164297 | 4100 | }, |
4e7d34a6 | 4101 | |
f12dc422 L |
4102 | /* PREFIX_0FBC */ |
4103 | { | |
bf890a93 IT |
4104 | { "bsfS", { Gv, Ev }, 0 }, |
4105 | { "tzcntS", { Gv, Ev }, 0 }, | |
4106 | { "bsfS", { Gv, Ev }, 0 }, | |
f12dc422 L |
4107 | }, |
4108 | ||
1ceb70f8 | 4109 | /* PREFIX_0FBD */ |
050dfa73 | 4110 | { |
bf890a93 IT |
4111 | { "bsrS", { Gv, Ev }, 0 }, |
4112 | { "lzcntS", { Gv, Ev }, 0 }, | |
4113 | { "bsrS", { Gv, Ev }, 0 }, | |
050dfa73 MM |
4114 | }, |
4115 | ||
1ceb70f8 | 4116 | /* PREFIX_0FC2 */ |
050dfa73 | 4117 | { |
507bd325 L |
4118 | { "cmpps", { XM, EXx, CMP }, PREFIX_OPCODE }, |
4119 | { "cmpss", { XM, EXd, CMP }, PREFIX_OPCODE }, | |
4120 | { "cmppd", { XM, EXx, CMP }, PREFIX_OPCODE }, | |
4121 | { "cmpsd", { XM, EXq, CMP }, PREFIX_OPCODE }, | |
050dfa73 | 4122 | }, |
246c51aa | 4123 | |
a8484f96 | 4124 | /* PREFIX_MOD_0_0FC3 */ |
4ee52178 | 4125 | { |
a8484f96 | 4126 | { "movntiS", { Ev, Gv }, PREFIX_OPCODE }, |
4ee52178 L |
4127 | }, |
4128 | ||
f24bcbaa | 4129 | /* PREFIX_MOD_0_0FC7_REG_6 */ |
92fddf8e | 4130 | { |
bf890a93 IT |
4131 | { "vmptrld",{ Mq }, 0 }, |
4132 | { "vmxon", { Mq }, 0 }, | |
4133 | { "vmclear",{ Mq }, 0 }, | |
92fddf8e L |
4134 | }, |
4135 | ||
f24bcbaa L |
4136 | /* PREFIX_MOD_3_0FC7_REG_6 */ |
4137 | { | |
4138 | { "rdrand", { Ev }, 0 }, | |
4139 | { Bad_Opcode }, | |
4140 | { "rdrand", { Ev }, 0 } | |
4141 | }, | |
4142 | ||
4143 | /* PREFIX_MOD_3_0FC7_REG_7 */ | |
4144 | { | |
4145 | { "rdseed", { Ev }, 0 }, | |
8bc52696 | 4146 | { "rdpid", { Em }, 0 }, |
f24bcbaa L |
4147 | { "rdseed", { Ev }, 0 }, |
4148 | }, | |
4149 | ||
1ceb70f8 | 4150 | /* PREFIX_0FD0 */ |
050dfa73 | 4151 | { |
592d1631 L |
4152 | { Bad_Opcode }, |
4153 | { Bad_Opcode }, | |
bf890a93 IT |
4154 | { "addsubpd", { XM, EXx }, 0 }, |
4155 | { "addsubps", { XM, EXx }, 0 }, | |
246c51aa | 4156 | }, |
050dfa73 | 4157 | |
1ceb70f8 | 4158 | /* PREFIX_0FD6 */ |
050dfa73 | 4159 | { |
592d1631 | 4160 | { Bad_Opcode }, |
bf890a93 IT |
4161 | { "movq2dq",{ XM, MS }, 0 }, |
4162 | { "movq", { EXqS, XM }, 0 }, | |
4163 | { "movdq2q",{ MX, XS }, 0 }, | |
050dfa73 MM |
4164 | }, |
4165 | ||
1ceb70f8 | 4166 | /* PREFIX_0FE6 */ |
7918206c | 4167 | { |
592d1631 | 4168 | { Bad_Opcode }, |
507bd325 L |
4169 | { "cvtdq2pd", { XM, EXq }, PREFIX_OPCODE }, |
4170 | { "cvttpd2dq", { XM, EXx }, PREFIX_OPCODE }, | |
4171 | { "cvtpd2dq", { XM, EXx }, PREFIX_OPCODE }, | |
7918206c | 4172 | }, |
8b38ad71 | 4173 | |
1ceb70f8 | 4174 | /* PREFIX_0FE7 */ |
8b38ad71 | 4175 | { |
507bd325 | 4176 | { "movntq", { Mq, MX }, PREFIX_OPCODE }, |
592d1631 | 4177 | { Bad_Opcode }, |
75c135a8 | 4178 | { MOD_TABLE (MOD_0FE7_PREFIX_2) }, |
4e7d34a6 L |
4179 | }, |
4180 | ||
1ceb70f8 | 4181 | /* PREFIX_0FF0 */ |
4e7d34a6 | 4182 | { |
592d1631 L |
4183 | { Bad_Opcode }, |
4184 | { Bad_Opcode }, | |
4185 | { Bad_Opcode }, | |
1ceb70f8 | 4186 | { MOD_TABLE (MOD_0FF0_PREFIX_3) }, |
4e7d34a6 L |
4187 | }, |
4188 | ||
1ceb70f8 | 4189 | /* PREFIX_0FF7 */ |
4e7d34a6 | 4190 | { |
507bd325 | 4191 | { "maskmovq", { MX, MS }, PREFIX_OPCODE }, |
592d1631 | 4192 | { Bad_Opcode }, |
507bd325 | 4193 | { "maskmovdqu", { XM, XS }, PREFIX_OPCODE }, |
8b38ad71 | 4194 | }, |
42903f7f | 4195 | |
1ceb70f8 | 4196 | /* PREFIX_0F3810 */ |
42903f7f | 4197 | { |
592d1631 L |
4198 | { Bad_Opcode }, |
4199 | { Bad_Opcode }, | |
507bd325 | 4200 | { "pblendvb", { XM, EXx, XMM0 }, PREFIX_OPCODE }, |
42903f7f L |
4201 | }, |
4202 | ||
1ceb70f8 | 4203 | /* PREFIX_0F3814 */ |
42903f7f | 4204 | { |
592d1631 L |
4205 | { Bad_Opcode }, |
4206 | { Bad_Opcode }, | |
507bd325 | 4207 | { "blendvps", { XM, EXx, XMM0 }, PREFIX_OPCODE }, |
42903f7f L |
4208 | }, |
4209 | ||
1ceb70f8 | 4210 | /* PREFIX_0F3815 */ |
42903f7f | 4211 | { |
592d1631 L |
4212 | { Bad_Opcode }, |
4213 | { Bad_Opcode }, | |
507bd325 | 4214 | { "blendvpd", { XM, EXx, XMM0 }, PREFIX_OPCODE }, |
42903f7f L |
4215 | }, |
4216 | ||
1ceb70f8 | 4217 | /* PREFIX_0F3817 */ |
42903f7f | 4218 | { |
592d1631 L |
4219 | { Bad_Opcode }, |
4220 | { Bad_Opcode }, | |
507bd325 | 4221 | { "ptest", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4222 | }, |
4223 | ||
1ceb70f8 | 4224 | /* PREFIX_0F3820 */ |
42903f7f | 4225 | { |
592d1631 L |
4226 | { Bad_Opcode }, |
4227 | { Bad_Opcode }, | |
507bd325 | 4228 | { "pmovsxbw", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4229 | }, |
4230 | ||
1ceb70f8 | 4231 | /* PREFIX_0F3821 */ |
42903f7f | 4232 | { |
592d1631 L |
4233 | { Bad_Opcode }, |
4234 | { Bad_Opcode }, | |
507bd325 | 4235 | { "pmovsxbd", { XM, EXd }, PREFIX_OPCODE }, |
42903f7f L |
4236 | }, |
4237 | ||
1ceb70f8 | 4238 | /* PREFIX_0F3822 */ |
42903f7f | 4239 | { |
592d1631 L |
4240 | { Bad_Opcode }, |
4241 | { Bad_Opcode }, | |
507bd325 | 4242 | { "pmovsxbq", { XM, EXw }, PREFIX_OPCODE }, |
42903f7f L |
4243 | }, |
4244 | ||
1ceb70f8 | 4245 | /* PREFIX_0F3823 */ |
42903f7f | 4246 | { |
592d1631 L |
4247 | { Bad_Opcode }, |
4248 | { Bad_Opcode }, | |
507bd325 | 4249 | { "pmovsxwd", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4250 | }, |
4251 | ||
1ceb70f8 | 4252 | /* PREFIX_0F3824 */ |
42903f7f | 4253 | { |
592d1631 L |
4254 | { Bad_Opcode }, |
4255 | { Bad_Opcode }, | |
507bd325 | 4256 | { "pmovsxwq", { XM, EXd }, PREFIX_OPCODE }, |
42903f7f L |
4257 | }, |
4258 | ||
1ceb70f8 | 4259 | /* PREFIX_0F3825 */ |
42903f7f | 4260 | { |
592d1631 L |
4261 | { Bad_Opcode }, |
4262 | { Bad_Opcode }, | |
507bd325 | 4263 | { "pmovsxdq", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4264 | }, |
4265 | ||
1ceb70f8 | 4266 | /* PREFIX_0F3828 */ |
42903f7f | 4267 | { |
592d1631 L |
4268 | { Bad_Opcode }, |
4269 | { Bad_Opcode }, | |
507bd325 | 4270 | { "pmuldq", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4271 | }, |
4272 | ||
1ceb70f8 | 4273 | /* PREFIX_0F3829 */ |
42903f7f | 4274 | { |
592d1631 L |
4275 | { Bad_Opcode }, |
4276 | { Bad_Opcode }, | |
507bd325 | 4277 | { "pcmpeqq", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4278 | }, |
4279 | ||
1ceb70f8 | 4280 | /* PREFIX_0F382A */ |
42903f7f | 4281 | { |
592d1631 L |
4282 | { Bad_Opcode }, |
4283 | { Bad_Opcode }, | |
75c135a8 | 4284 | { MOD_TABLE (MOD_0F382A_PREFIX_2) }, |
42903f7f L |
4285 | }, |
4286 | ||
1ceb70f8 | 4287 | /* PREFIX_0F382B */ |
42903f7f | 4288 | { |
592d1631 L |
4289 | { Bad_Opcode }, |
4290 | { Bad_Opcode }, | |
507bd325 | 4291 | { "packusdw", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4292 | }, |
4293 | ||
1ceb70f8 | 4294 | /* PREFIX_0F3830 */ |
42903f7f | 4295 | { |
592d1631 L |
4296 | { Bad_Opcode }, |
4297 | { Bad_Opcode }, | |
507bd325 | 4298 | { "pmovzxbw", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4299 | }, |
4300 | ||
1ceb70f8 | 4301 | /* PREFIX_0F3831 */ |
42903f7f | 4302 | { |
592d1631 L |
4303 | { Bad_Opcode }, |
4304 | { Bad_Opcode }, | |
507bd325 | 4305 | { "pmovzxbd", { XM, EXd }, PREFIX_OPCODE }, |
42903f7f L |
4306 | }, |
4307 | ||
1ceb70f8 | 4308 | /* PREFIX_0F3832 */ |
42903f7f | 4309 | { |
592d1631 L |
4310 | { Bad_Opcode }, |
4311 | { Bad_Opcode }, | |
507bd325 | 4312 | { "pmovzxbq", { XM, EXw }, PREFIX_OPCODE }, |
42903f7f L |
4313 | }, |
4314 | ||
1ceb70f8 | 4315 | /* PREFIX_0F3833 */ |
42903f7f | 4316 | { |
592d1631 L |
4317 | { Bad_Opcode }, |
4318 | { Bad_Opcode }, | |
507bd325 | 4319 | { "pmovzxwd", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4320 | }, |
4321 | ||
1ceb70f8 | 4322 | /* PREFIX_0F3834 */ |
42903f7f | 4323 | { |
592d1631 L |
4324 | { Bad_Opcode }, |
4325 | { Bad_Opcode }, | |
507bd325 | 4326 | { "pmovzxwq", { XM, EXd }, PREFIX_OPCODE }, |
42903f7f L |
4327 | }, |
4328 | ||
1ceb70f8 | 4329 | /* PREFIX_0F3835 */ |
42903f7f | 4330 | { |
592d1631 L |
4331 | { Bad_Opcode }, |
4332 | { Bad_Opcode }, | |
507bd325 | 4333 | { "pmovzxdq", { XM, EXq }, PREFIX_OPCODE }, |
42903f7f L |
4334 | }, |
4335 | ||
1ceb70f8 | 4336 | /* PREFIX_0F3837 */ |
4e7d34a6 | 4337 | { |
592d1631 L |
4338 | { Bad_Opcode }, |
4339 | { Bad_Opcode }, | |
507bd325 | 4340 | { "pcmpgtq", { XM, EXx }, PREFIX_OPCODE }, |
4e7d34a6 L |
4341 | }, |
4342 | ||
1ceb70f8 | 4343 | /* PREFIX_0F3838 */ |
42903f7f | 4344 | { |
592d1631 L |
4345 | { Bad_Opcode }, |
4346 | { Bad_Opcode }, | |
507bd325 | 4347 | { "pminsb", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4348 | }, |
4349 | ||
1ceb70f8 | 4350 | /* PREFIX_0F3839 */ |
42903f7f | 4351 | { |
592d1631 L |
4352 | { Bad_Opcode }, |
4353 | { Bad_Opcode }, | |
507bd325 | 4354 | { "pminsd", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4355 | }, |
4356 | ||
1ceb70f8 | 4357 | /* PREFIX_0F383A */ |
42903f7f | 4358 | { |
592d1631 L |
4359 | { Bad_Opcode }, |
4360 | { Bad_Opcode }, | |
507bd325 | 4361 | { "pminuw", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4362 | }, |
4363 | ||
1ceb70f8 | 4364 | /* PREFIX_0F383B */ |
42903f7f | 4365 | { |
592d1631 L |
4366 | { Bad_Opcode }, |
4367 | { Bad_Opcode }, | |
507bd325 | 4368 | { "pminud", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4369 | }, |
4370 | ||
1ceb70f8 | 4371 | /* PREFIX_0F383C */ |
42903f7f | 4372 | { |
592d1631 L |
4373 | { Bad_Opcode }, |
4374 | { Bad_Opcode }, | |
507bd325 | 4375 | { "pmaxsb", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4376 | }, |
4377 | ||
1ceb70f8 | 4378 | /* PREFIX_0F383D */ |
42903f7f | 4379 | { |
592d1631 L |
4380 | { Bad_Opcode }, |
4381 | { Bad_Opcode }, | |
507bd325 | 4382 | { "pmaxsd", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4383 | }, |
4384 | ||
1ceb70f8 | 4385 | /* PREFIX_0F383E */ |
42903f7f | 4386 | { |
592d1631 L |
4387 | { Bad_Opcode }, |
4388 | { Bad_Opcode }, | |
507bd325 | 4389 | { "pmaxuw", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4390 | }, |
4391 | ||
1ceb70f8 | 4392 | /* PREFIX_0F383F */ |
42903f7f | 4393 | { |
592d1631 L |
4394 | { Bad_Opcode }, |
4395 | { Bad_Opcode }, | |
507bd325 | 4396 | { "pmaxud", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4397 | }, |
4398 | ||
1ceb70f8 | 4399 | /* PREFIX_0F3840 */ |
42903f7f | 4400 | { |
592d1631 L |
4401 | { Bad_Opcode }, |
4402 | { Bad_Opcode }, | |
507bd325 | 4403 | { "pmulld", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4404 | }, |
4405 | ||
1ceb70f8 | 4406 | /* PREFIX_0F3841 */ |
42903f7f | 4407 | { |
592d1631 L |
4408 | { Bad_Opcode }, |
4409 | { Bad_Opcode }, | |
507bd325 | 4410 | { "phminposuw", { XM, EXx }, PREFIX_OPCODE }, |
42903f7f L |
4411 | }, |
4412 | ||
f1f8f695 L |
4413 | /* PREFIX_0F3880 */ |
4414 | { | |
592d1631 L |
4415 | { Bad_Opcode }, |
4416 | { Bad_Opcode }, | |
507bd325 | 4417 | { "invept", { Gm, Mo }, PREFIX_OPCODE }, |
f1f8f695 L |
4418 | }, |
4419 | ||
4420 | /* PREFIX_0F3881 */ | |
4421 | { | |
592d1631 L |
4422 | { Bad_Opcode }, |
4423 | { Bad_Opcode }, | |
507bd325 | 4424 | { "invvpid", { Gm, Mo }, PREFIX_OPCODE }, |
f1f8f695 L |
4425 | }, |
4426 | ||
6c30d220 L |
4427 | /* PREFIX_0F3882 */ |
4428 | { | |
4429 | { Bad_Opcode }, | |
4430 | { Bad_Opcode }, | |
507bd325 | 4431 | { "invpcid", { Gm, M }, PREFIX_OPCODE }, |
6c30d220 L |
4432 | }, |
4433 | ||
a0046408 L |
4434 | /* PREFIX_0F38C8 */ |
4435 | { | |
507bd325 | 4436 | { "sha1nexte", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4437 | }, |
4438 | ||
4439 | /* PREFIX_0F38C9 */ | |
4440 | { | |
507bd325 | 4441 | { "sha1msg1", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4442 | }, |
4443 | ||
4444 | /* PREFIX_0F38CA */ | |
4445 | { | |
507bd325 | 4446 | { "sha1msg2", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4447 | }, |
4448 | ||
4449 | /* PREFIX_0F38CB */ | |
4450 | { | |
507bd325 | 4451 | { "sha256rnds2", { XM, EXxmm, XMM0 }, PREFIX_OPCODE }, |
a0046408 L |
4452 | }, |
4453 | ||
4454 | /* PREFIX_0F38CC */ | |
4455 | { | |
507bd325 | 4456 | { "sha256msg1", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4457 | }, |
4458 | ||
4459 | /* PREFIX_0F38CD */ | |
4460 | { | |
507bd325 | 4461 | { "sha256msg2", { XM, EXxmm }, PREFIX_OPCODE }, |
a0046408 L |
4462 | }, |
4463 | ||
c0f3af97 L |
4464 | /* PREFIX_0F38DB */ |
4465 | { | |
592d1631 L |
4466 | { Bad_Opcode }, |
4467 | { Bad_Opcode }, | |
507bd325 | 4468 | { "aesimc", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4469 | }, |
4470 | ||
4471 | /* PREFIX_0F38DC */ | |
4472 | { | |
592d1631 L |
4473 | { Bad_Opcode }, |
4474 | { Bad_Opcode }, | |
507bd325 | 4475 | { "aesenc", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4476 | }, |
4477 | ||
4478 | /* PREFIX_0F38DD */ | |
4479 | { | |
592d1631 L |
4480 | { Bad_Opcode }, |
4481 | { Bad_Opcode }, | |
507bd325 | 4482 | { "aesenclast", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4483 | }, |
4484 | ||
4485 | /* PREFIX_0F38DE */ | |
4486 | { | |
592d1631 L |
4487 | { Bad_Opcode }, |
4488 | { Bad_Opcode }, | |
507bd325 | 4489 | { "aesdec", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4490 | }, |
4491 | ||
4492 | /* PREFIX_0F38DF */ | |
4493 | { | |
592d1631 L |
4494 | { Bad_Opcode }, |
4495 | { Bad_Opcode }, | |
507bd325 | 4496 | { "aesdeclast", { XM, EXx }, PREFIX_OPCODE }, |
c0f3af97 L |
4497 | }, |
4498 | ||
1ceb70f8 | 4499 | /* PREFIX_0F38F0 */ |
4e7d34a6 | 4500 | { |
507bd325 | 4501 | { "movbeS", { Gv, { MOVBE_Fixup, v_mode } }, PREFIX_OPCODE }, |
592d1631 | 4502 | { Bad_Opcode }, |
507bd325 L |
4503 | { "movbeS", { Gv, { MOVBE_Fixup, v_mode } }, PREFIX_OPCODE }, |
4504 | { "crc32", { Gdq, { CRC32_Fixup, b_mode } }, PREFIX_OPCODE }, | |
4e7d34a6 L |
4505 | }, |
4506 | ||
1ceb70f8 | 4507 | /* PREFIX_0F38F1 */ |
4e7d34a6 | 4508 | { |
507bd325 | 4509 | { "movbeS", { { MOVBE_Fixup, v_mode }, Gv }, PREFIX_OPCODE }, |
592d1631 | 4510 | { Bad_Opcode }, |
507bd325 L |
4511 | { "movbeS", { { MOVBE_Fixup, v_mode }, Gv }, PREFIX_OPCODE }, |
4512 | { "crc32", { Gdq, { CRC32_Fixup, v_mode } }, PREFIX_OPCODE }, | |
4e7d34a6 L |
4513 | }, |
4514 | ||
e2e1fcde L |
4515 | /* PREFIX_0F38F6 */ |
4516 | { | |
4517 | { Bad_Opcode }, | |
507bd325 L |
4518 | { "adoxS", { Gdq, Edq}, PREFIX_OPCODE }, |
4519 | { "adcxS", { Gdq, Edq}, PREFIX_OPCODE }, | |
e2e1fcde L |
4520 | { Bad_Opcode }, |
4521 | }, | |
4522 | ||
1ceb70f8 | 4523 | /* PREFIX_0F3A08 */ |
42903f7f | 4524 | { |
592d1631 L |
4525 | { Bad_Opcode }, |
4526 | { Bad_Opcode }, | |
507bd325 | 4527 | { "roundps", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4528 | }, |
4529 | ||
1ceb70f8 | 4530 | /* PREFIX_0F3A09 */ |
42903f7f | 4531 | { |
592d1631 L |
4532 | { Bad_Opcode }, |
4533 | { Bad_Opcode }, | |
507bd325 | 4534 | { "roundpd", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4535 | }, |
4536 | ||
1ceb70f8 | 4537 | /* PREFIX_0F3A0A */ |
42903f7f | 4538 | { |
592d1631 L |
4539 | { Bad_Opcode }, |
4540 | { Bad_Opcode }, | |
507bd325 | 4541 | { "roundss", { XM, EXd, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4542 | }, |
4543 | ||
1ceb70f8 | 4544 | /* PREFIX_0F3A0B */ |
42903f7f | 4545 | { |
592d1631 L |
4546 | { Bad_Opcode }, |
4547 | { Bad_Opcode }, | |
507bd325 | 4548 | { "roundsd", { XM, EXq, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4549 | }, |
4550 | ||
1ceb70f8 | 4551 | /* PREFIX_0F3A0C */ |
42903f7f | 4552 | { |
592d1631 L |
4553 | { Bad_Opcode }, |
4554 | { Bad_Opcode }, | |
507bd325 | 4555 | { "blendps", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4556 | }, |
4557 | ||
1ceb70f8 | 4558 | /* PREFIX_0F3A0D */ |
42903f7f | 4559 | { |
592d1631 L |
4560 | { Bad_Opcode }, |
4561 | { Bad_Opcode }, | |
507bd325 | 4562 | { "blendpd", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4563 | }, |
4564 | ||
1ceb70f8 | 4565 | /* PREFIX_0F3A0E */ |
42903f7f | 4566 | { |
592d1631 L |
4567 | { Bad_Opcode }, |
4568 | { Bad_Opcode }, | |
507bd325 | 4569 | { "pblendw", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4570 | }, |
4571 | ||
1ceb70f8 | 4572 | /* PREFIX_0F3A14 */ |
42903f7f | 4573 | { |
592d1631 L |
4574 | { Bad_Opcode }, |
4575 | { Bad_Opcode }, | |
507bd325 | 4576 | { "pextrb", { Edqb, XM, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4577 | }, |
4578 | ||
1ceb70f8 | 4579 | /* PREFIX_0F3A15 */ |
42903f7f | 4580 | { |
592d1631 L |
4581 | { Bad_Opcode }, |
4582 | { Bad_Opcode }, | |
507bd325 | 4583 | { "pextrw", { Edqw, XM, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4584 | }, |
4585 | ||
1ceb70f8 | 4586 | /* PREFIX_0F3A16 */ |
42903f7f | 4587 | { |
592d1631 L |
4588 | { Bad_Opcode }, |
4589 | { Bad_Opcode }, | |
507bd325 | 4590 | { "pextrK", { Edq, XM, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4591 | }, |
4592 | ||
1ceb70f8 | 4593 | /* PREFIX_0F3A17 */ |
42903f7f | 4594 | { |
592d1631 L |
4595 | { Bad_Opcode }, |
4596 | { Bad_Opcode }, | |
507bd325 | 4597 | { "extractps", { Edqd, XM, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4598 | }, |
4599 | ||
1ceb70f8 | 4600 | /* PREFIX_0F3A20 */ |
42903f7f | 4601 | { |
592d1631 L |
4602 | { Bad_Opcode }, |
4603 | { Bad_Opcode }, | |
507bd325 | 4604 | { "pinsrb", { XM, Edqb, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4605 | }, |
4606 | ||
1ceb70f8 | 4607 | /* PREFIX_0F3A21 */ |
42903f7f | 4608 | { |
592d1631 L |
4609 | { Bad_Opcode }, |
4610 | { Bad_Opcode }, | |
507bd325 | 4611 | { "insertps", { XM, EXd, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4612 | }, |
4613 | ||
1ceb70f8 | 4614 | /* PREFIX_0F3A22 */ |
42903f7f | 4615 | { |
592d1631 L |
4616 | { Bad_Opcode }, |
4617 | { Bad_Opcode }, | |
507bd325 | 4618 | { "pinsrK", { XM, Edq, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4619 | }, |
4620 | ||
1ceb70f8 | 4621 | /* PREFIX_0F3A40 */ |
42903f7f | 4622 | { |
592d1631 L |
4623 | { Bad_Opcode }, |
4624 | { Bad_Opcode }, | |
507bd325 | 4625 | { "dpps", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4626 | }, |
4627 | ||
1ceb70f8 | 4628 | /* PREFIX_0F3A41 */ |
42903f7f | 4629 | { |
592d1631 L |
4630 | { Bad_Opcode }, |
4631 | { Bad_Opcode }, | |
507bd325 | 4632 | { "dppd", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f L |
4633 | }, |
4634 | ||
1ceb70f8 | 4635 | /* PREFIX_0F3A42 */ |
42903f7f | 4636 | { |
592d1631 L |
4637 | { Bad_Opcode }, |
4638 | { Bad_Opcode }, | |
507bd325 | 4639 | { "mpsadbw", { XM, EXx, Ib }, PREFIX_OPCODE }, |
42903f7f | 4640 | }, |
381d071f | 4641 | |
c0f3af97 L |
4642 | /* PREFIX_0F3A44 */ |
4643 | { | |
592d1631 L |
4644 | { Bad_Opcode }, |
4645 | { Bad_Opcode }, | |
507bd325 | 4646 | { "pclmulqdq", { XM, EXx, PCLMUL }, PREFIX_OPCODE }, |
c0f3af97 L |
4647 | }, |
4648 | ||
1ceb70f8 | 4649 | /* PREFIX_0F3A60 */ |
381d071f | 4650 | { |
592d1631 L |
4651 | { Bad_Opcode }, |
4652 | { Bad_Opcode }, | |
507bd325 | 4653 | { "pcmpestrm", { XM, EXx, Ib }, PREFIX_OPCODE }, |
381d071f L |
4654 | }, |
4655 | ||
1ceb70f8 | 4656 | /* PREFIX_0F3A61 */ |
381d071f | 4657 | { |
592d1631 L |
4658 | { Bad_Opcode }, |
4659 | { Bad_Opcode }, | |
507bd325 | 4660 | { "pcmpestri", { XM, EXx, Ib }, PREFIX_OPCODE }, |
381d071f L |
4661 | }, |
4662 | ||
1ceb70f8 | 4663 | /* PREFIX_0F3A62 */ |
381d071f | 4664 | { |
592d1631 L |
4665 | { Bad_Opcode }, |
4666 | { Bad_Opcode }, | |
507bd325 | 4667 | { "pcmpistrm", { XM, EXx, Ib }, PREFIX_OPCODE }, |
381d071f L |
4668 | }, |
4669 | ||
1ceb70f8 | 4670 | /* PREFIX_0F3A63 */ |
381d071f | 4671 | { |
592d1631 L |
4672 | { Bad_Opcode }, |
4673 | { Bad_Opcode }, | |
507bd325 | 4674 | { "pcmpistri", { XM, EXx, Ib }, PREFIX_OPCODE }, |
381d071f | 4675 | }, |
09a2c6cf | 4676 | |
a0046408 L |
4677 | /* PREFIX_0F3ACC */ |
4678 | { | |
507bd325 | 4679 | { "sha1rnds4", { XM, EXxmm, Ib }, PREFIX_OPCODE }, |
a0046408 L |
4680 | }, |
4681 | ||
c0f3af97 | 4682 | /* PREFIX_0F3ADF */ |
09a2c6cf | 4683 | { |
592d1631 L |
4684 | { Bad_Opcode }, |
4685 | { Bad_Opcode }, | |
507bd325 | 4686 | { "aeskeygenassist", { XM, EXx, Ib }, PREFIX_OPCODE }, |
09a2c6cf L |
4687 | }, |
4688 | ||
592a252b | 4689 | /* PREFIX_VEX_0F10 */ |
09a2c6cf | 4690 | { |
592a252b L |
4691 | { VEX_W_TABLE (VEX_W_0F10_P_0) }, |
4692 | { VEX_LEN_TABLE (VEX_LEN_0F10_P_1) }, | |
4693 | { VEX_W_TABLE (VEX_W_0F10_P_2) }, | |
4694 | { VEX_LEN_TABLE (VEX_LEN_0F10_P_3) }, | |
09a2c6cf L |
4695 | }, |
4696 | ||
592a252b | 4697 | /* PREFIX_VEX_0F11 */ |
09a2c6cf | 4698 | { |
592a252b L |
4699 | { VEX_W_TABLE (VEX_W_0F11_P_0) }, |
4700 | { VEX_LEN_TABLE (VEX_LEN_0F11_P_1) }, | |
4701 | { VEX_W_TABLE (VEX_W_0F11_P_2) }, | |
4702 | { VEX_LEN_TABLE (VEX_LEN_0F11_P_3) }, | |
09a2c6cf L |
4703 | }, |
4704 | ||
592a252b | 4705 | /* PREFIX_VEX_0F12 */ |
09a2c6cf | 4706 | { |
592a252b L |
4707 | { MOD_TABLE (MOD_VEX_0F12_PREFIX_0) }, |
4708 | { VEX_W_TABLE (VEX_W_0F12_P_1) }, | |
4709 | { VEX_LEN_TABLE (VEX_LEN_0F12_P_2) }, | |
4710 | { VEX_W_TABLE (VEX_W_0F12_P_3) }, | |
09a2c6cf L |
4711 | }, |
4712 | ||
592a252b | 4713 | /* PREFIX_VEX_0F16 */ |
09a2c6cf | 4714 | { |
592a252b L |
4715 | { MOD_TABLE (MOD_VEX_0F16_PREFIX_0) }, |
4716 | { VEX_W_TABLE (VEX_W_0F16_P_1) }, | |
4717 | { VEX_LEN_TABLE (VEX_LEN_0F16_P_2) }, | |
5f754f58 | 4718 | }, |
7c52e0e8 | 4719 | |
592a252b | 4720 | /* PREFIX_VEX_0F2A */ |
5f754f58 | 4721 | { |
592d1631 | 4722 | { Bad_Opcode }, |
592a252b | 4723 | { VEX_LEN_TABLE (VEX_LEN_0F2A_P_1) }, |
592d1631 | 4724 | { Bad_Opcode }, |
592a252b | 4725 | { VEX_LEN_TABLE (VEX_LEN_0F2A_P_3) }, |
5f754f58 | 4726 | }, |
7c52e0e8 | 4727 | |
592a252b | 4728 | /* PREFIX_VEX_0F2C */ |
5f754f58 | 4729 | { |
592d1631 | 4730 | { Bad_Opcode }, |
592a252b | 4731 | { VEX_LEN_TABLE (VEX_LEN_0F2C_P_1) }, |
592d1631 | 4732 | { Bad_Opcode }, |
592a252b | 4733 | { VEX_LEN_TABLE (VEX_LEN_0F2C_P_3) }, |
5f754f58 | 4734 | }, |
7c52e0e8 | 4735 | |
592a252b | 4736 | /* PREFIX_VEX_0F2D */ |
7c52e0e8 | 4737 | { |
592d1631 | 4738 | { Bad_Opcode }, |
592a252b | 4739 | { VEX_LEN_TABLE (VEX_LEN_0F2D_P_1) }, |
592d1631 | 4740 | { Bad_Opcode }, |
592a252b | 4741 | { VEX_LEN_TABLE (VEX_LEN_0F2D_P_3) }, |
7c52e0e8 L |
4742 | }, |
4743 | ||
592a252b | 4744 | /* PREFIX_VEX_0F2E */ |
7c52e0e8 | 4745 | { |
592a252b | 4746 | { VEX_LEN_TABLE (VEX_LEN_0F2E_P_0) }, |
592d1631 | 4747 | { Bad_Opcode }, |
592a252b | 4748 | { VEX_LEN_TABLE (VEX_LEN_0F2E_P_2) }, |
7c52e0e8 L |
4749 | }, |
4750 | ||
592a252b | 4751 | /* PREFIX_VEX_0F2F */ |
7c52e0e8 | 4752 | { |
592a252b | 4753 | { VEX_LEN_TABLE (VEX_LEN_0F2F_P_0) }, |
592d1631 | 4754 | { Bad_Opcode }, |
592a252b | 4755 | { VEX_LEN_TABLE (VEX_LEN_0F2F_P_2) }, |
7c52e0e8 L |
4756 | }, |
4757 | ||
43234a1e L |
4758 | /* PREFIX_VEX_0F41 */ |
4759 | { | |
4760 | { VEX_LEN_TABLE (VEX_LEN_0F41_P_0) }, | |
1ba585e8 IT |
4761 | { Bad_Opcode }, |
4762 | { VEX_LEN_TABLE (VEX_LEN_0F41_P_2) }, | |
43234a1e L |
4763 | }, |
4764 | ||
4765 | /* PREFIX_VEX_0F42 */ | |
4766 | { | |
4767 | { VEX_LEN_TABLE (VEX_LEN_0F42_P_0) }, | |
1ba585e8 IT |
4768 | { Bad_Opcode }, |
4769 | { VEX_LEN_TABLE (VEX_LEN_0F42_P_2) }, | |
43234a1e L |
4770 | }, |
4771 | ||
4772 | /* PREFIX_VEX_0F44 */ | |
4773 | { | |
4774 | { VEX_LEN_TABLE (VEX_LEN_0F44_P_0) }, | |
1ba585e8 IT |
4775 | { Bad_Opcode }, |
4776 | { VEX_LEN_TABLE (VEX_LEN_0F44_P_2) }, | |
43234a1e L |
4777 | }, |
4778 | ||
4779 | /* PREFIX_VEX_0F45 */ | |
4780 | { | |
4781 | { VEX_LEN_TABLE (VEX_LEN_0F45_P_0) }, | |
1ba585e8 IT |
4782 | { Bad_Opcode }, |
4783 | { VEX_LEN_TABLE (VEX_LEN_0F45_P_2) }, | |
43234a1e L |
4784 | }, |
4785 | ||
4786 | /* PREFIX_VEX_0F46 */ | |
4787 | { | |
4788 | { VEX_LEN_TABLE (VEX_LEN_0F46_P_0) }, | |
1ba585e8 IT |
4789 | { Bad_Opcode }, |
4790 | { VEX_LEN_TABLE (VEX_LEN_0F46_P_2) }, | |
43234a1e L |
4791 | }, |
4792 | ||
4793 | /* PREFIX_VEX_0F47 */ | |
4794 | { | |
4795 | { VEX_LEN_TABLE (VEX_LEN_0F47_P_0) }, | |
1ba585e8 IT |
4796 | { Bad_Opcode }, |
4797 | { VEX_LEN_TABLE (VEX_LEN_0F47_P_2) }, | |
43234a1e L |
4798 | }, |
4799 | ||
1ba585e8 | 4800 | /* PREFIX_VEX_0F4A */ |
43234a1e | 4801 | { |
1ba585e8 | 4802 | { VEX_LEN_TABLE (VEX_LEN_0F4A_P_0) }, |
43234a1e | 4803 | { Bad_Opcode }, |
1ba585e8 IT |
4804 | { VEX_LEN_TABLE (VEX_LEN_0F4A_P_2) }, |
4805 | }, | |
4806 | ||
4807 | /* PREFIX_VEX_0F4B */ | |
4808 | { | |
4809 | { VEX_LEN_TABLE (VEX_LEN_0F4B_P_0) }, | |
43234a1e L |
4810 | { Bad_Opcode }, |
4811 | { VEX_LEN_TABLE (VEX_LEN_0F4B_P_2) }, | |
4812 | }, | |
4813 | ||
592a252b | 4814 | /* PREFIX_VEX_0F51 */ |
7c52e0e8 | 4815 | { |
592a252b L |
4816 | { VEX_W_TABLE (VEX_W_0F51_P_0) }, |
4817 | { VEX_LEN_TABLE (VEX_LEN_0F51_P_1) }, | |
4818 | { VEX_W_TABLE (VEX_W_0F51_P_2) }, | |
4819 | { VEX_LEN_TABLE (VEX_LEN_0F51_P_3) }, | |
7c52e0e8 L |
4820 | }, |
4821 | ||
592a252b | 4822 | /* PREFIX_VEX_0F52 */ |
7c52e0e8 | 4823 | { |
592a252b L |
4824 | { VEX_W_TABLE (VEX_W_0F52_P_0) }, |
4825 | { VEX_LEN_TABLE (VEX_LEN_0F52_P_1) }, | |
7c52e0e8 L |
4826 | }, |
4827 | ||
592a252b | 4828 | /* PREFIX_VEX_0F53 */ |
7c52e0e8 | 4829 | { |
592a252b L |
4830 | { VEX_W_TABLE (VEX_W_0F53_P_0) }, |
4831 | { VEX_LEN_TABLE (VEX_LEN_0F53_P_1) }, | |
7c52e0e8 L |
4832 | }, |
4833 | ||
592a252b | 4834 | /* PREFIX_VEX_0F58 */ |
7c52e0e8 | 4835 | { |
592a252b L |
4836 | { VEX_W_TABLE (VEX_W_0F58_P_0) }, |
4837 | { VEX_LEN_TABLE (VEX_LEN_0F58_P_1) }, | |
4838 | { VEX_W_TABLE (VEX_W_0F58_P_2) }, | |
4839 | { VEX_LEN_TABLE (VEX_LEN_0F58_P_3) }, | |
7c52e0e8 L |
4840 | }, |
4841 | ||
592a252b | 4842 | /* PREFIX_VEX_0F59 */ |
7c52e0e8 | 4843 | { |
592a252b L |
4844 | { VEX_W_TABLE (VEX_W_0F59_P_0) }, |
4845 | { VEX_LEN_TABLE (VEX_LEN_0F59_P_1) }, | |
4846 | { VEX_W_TABLE (VEX_W_0F59_P_2) }, | |
4847 | { VEX_LEN_TABLE (VEX_LEN_0F59_P_3) }, | |
7c52e0e8 L |
4848 | }, |
4849 | ||
592a252b | 4850 | /* PREFIX_VEX_0F5A */ |
7c52e0e8 | 4851 | { |
592a252b L |
4852 | { VEX_W_TABLE (VEX_W_0F5A_P_0) }, |
4853 | { VEX_LEN_TABLE (VEX_LEN_0F5A_P_1) }, | |
bf890a93 | 4854 | { "vcvtpd2ps%XY", { XMM, EXx }, 0 }, |
592a252b | 4855 | { VEX_LEN_TABLE (VEX_LEN_0F5A_P_3) }, |
7c52e0e8 L |
4856 | }, |
4857 | ||
592a252b | 4858 | /* PREFIX_VEX_0F5B */ |
7c52e0e8 | 4859 | { |
592a252b L |
4860 | { VEX_W_TABLE (VEX_W_0F5B_P_0) }, |
4861 | { VEX_W_TABLE (VEX_W_0F5B_P_1) }, | |
4862 | { VEX_W_TABLE (VEX_W_0F5B_P_2) }, | |
7c52e0e8 L |
4863 | }, |
4864 | ||
592a252b | 4865 | /* PREFIX_VEX_0F5C */ |
7c52e0e8 | 4866 | { |
592a252b L |
4867 | { VEX_W_TABLE (VEX_W_0F5C_P_0) }, |
4868 | { VEX_LEN_TABLE (VEX_LEN_0F5C_P_1) }, | |
4869 | { VEX_W_TABLE (VEX_W_0F5C_P_2) }, | |
4870 | { VEX_LEN_TABLE (VEX_LEN_0F5C_P_3) }, | |
7c52e0e8 L |
4871 | }, |
4872 | ||
592a252b | 4873 | /* PREFIX_VEX_0F5D */ |
7c52e0e8 | 4874 | { |
592a252b L |
4875 | { VEX_W_TABLE (VEX_W_0F5D_P_0) }, |
4876 | { VEX_LEN_TABLE (VEX_LEN_0F5D_P_1) }, | |
4877 | { VEX_W_TABLE (VEX_W_0F5D_P_2) }, | |
4878 | { VEX_LEN_TABLE (VEX_LEN_0F5D_P_3) }, | |
7c52e0e8 L |
4879 | }, |
4880 | ||
592a252b | 4881 | /* PREFIX_VEX_0F5E */ |
7c52e0e8 | 4882 | { |
592a252b L |
4883 | { VEX_W_TABLE (VEX_W_0F5E_P_0) }, |
4884 | { VEX_LEN_TABLE (VEX_LEN_0F5E_P_1) }, | |
4885 | { VEX_W_TABLE (VEX_W_0F5E_P_2) }, | |
4886 | { VEX_LEN_TABLE (VEX_LEN_0F5E_P_3) }, | |
7c52e0e8 L |
4887 | }, |
4888 | ||
592a252b | 4889 | /* PREFIX_VEX_0F5F */ |
7c52e0e8 | 4890 | { |
592a252b L |
4891 | { VEX_W_TABLE (VEX_W_0F5F_P_0) }, |
4892 | { VEX_LEN_TABLE (VEX_LEN_0F5F_P_1) }, | |
4893 | { VEX_W_TABLE (VEX_W_0F5F_P_2) }, | |
4894 | { VEX_LEN_TABLE (VEX_LEN_0F5F_P_3) }, | |
7c52e0e8 L |
4895 | }, |
4896 | ||
592a252b | 4897 | /* PREFIX_VEX_0F60 */ |
7c52e0e8 | 4898 | { |
592d1631 L |
4899 | { Bad_Opcode }, |
4900 | { Bad_Opcode }, | |
6c30d220 | 4901 | { VEX_W_TABLE (VEX_W_0F60_P_2) }, |
7c52e0e8 L |
4902 | }, |
4903 | ||
592a252b | 4904 | /* PREFIX_VEX_0F61 */ |
7c52e0e8 | 4905 | { |
592d1631 L |
4906 | { Bad_Opcode }, |
4907 | { Bad_Opcode }, | |
6c30d220 | 4908 | { VEX_W_TABLE (VEX_W_0F61_P_2) }, |
7c52e0e8 L |
4909 | }, |
4910 | ||
592a252b | 4911 | /* PREFIX_VEX_0F62 */ |
7c52e0e8 | 4912 | { |
592d1631 L |
4913 | { Bad_Opcode }, |
4914 | { Bad_Opcode }, | |
6c30d220 | 4915 | { VEX_W_TABLE (VEX_W_0F62_P_2) }, |
7c52e0e8 L |
4916 | }, |
4917 | ||
592a252b | 4918 | /* PREFIX_VEX_0F63 */ |
7c52e0e8 | 4919 | { |
592d1631 L |
4920 | { Bad_Opcode }, |
4921 | { Bad_Opcode }, | |
6c30d220 | 4922 | { VEX_W_TABLE (VEX_W_0F63_P_2) }, |
7c52e0e8 L |
4923 | }, |
4924 | ||
592a252b | 4925 | /* PREFIX_VEX_0F64 */ |
7c52e0e8 | 4926 | { |
592d1631 L |
4927 | { Bad_Opcode }, |
4928 | { Bad_Opcode }, | |
6c30d220 | 4929 | { VEX_W_TABLE (VEX_W_0F64_P_2) }, |
7c52e0e8 L |
4930 | }, |
4931 | ||
592a252b | 4932 | /* PREFIX_VEX_0F65 */ |
7c52e0e8 | 4933 | { |
592d1631 L |
4934 | { Bad_Opcode }, |
4935 | { Bad_Opcode }, | |
6c30d220 | 4936 | { VEX_W_TABLE (VEX_W_0F65_P_2) }, |
7c52e0e8 L |
4937 | }, |
4938 | ||
592a252b | 4939 | /* PREFIX_VEX_0F66 */ |
7c52e0e8 | 4940 | { |
592d1631 L |
4941 | { Bad_Opcode }, |
4942 | { Bad_Opcode }, | |
6c30d220 | 4943 | { VEX_W_TABLE (VEX_W_0F66_P_2) }, |
7c52e0e8 | 4944 | }, |
6439fc28 | 4945 | |
592a252b | 4946 | /* PREFIX_VEX_0F67 */ |
331d2d0d | 4947 | { |
592d1631 L |
4948 | { Bad_Opcode }, |
4949 | { Bad_Opcode }, | |
6c30d220 | 4950 | { VEX_W_TABLE (VEX_W_0F67_P_2) }, |
c0f3af97 L |
4951 | }, |
4952 | ||
592a252b | 4953 | /* PREFIX_VEX_0F68 */ |
c0f3af97 | 4954 | { |
592d1631 L |
4955 | { Bad_Opcode }, |
4956 | { Bad_Opcode }, | |
6c30d220 | 4957 | { VEX_W_TABLE (VEX_W_0F68_P_2) }, |
c0f3af97 L |
4958 | }, |
4959 | ||
592a252b | 4960 | /* PREFIX_VEX_0F69 */ |
c0f3af97 | 4961 | { |
592d1631 L |
4962 | { Bad_Opcode }, |
4963 | { Bad_Opcode }, | |
6c30d220 | 4964 | { VEX_W_TABLE (VEX_W_0F69_P_2) }, |
c0f3af97 L |
4965 | }, |
4966 | ||
592a252b | 4967 | /* PREFIX_VEX_0F6A */ |
c0f3af97 | 4968 | { |
592d1631 L |
4969 | { Bad_Opcode }, |
4970 | { Bad_Opcode }, | |
6c30d220 | 4971 | { VEX_W_TABLE (VEX_W_0F6A_P_2) }, |
c0f3af97 L |
4972 | }, |
4973 | ||
592a252b | 4974 | /* PREFIX_VEX_0F6B */ |
c0f3af97 | 4975 | { |
592d1631 L |
4976 | { Bad_Opcode }, |
4977 | { Bad_Opcode }, | |
6c30d220 | 4978 | { VEX_W_TABLE (VEX_W_0F6B_P_2) }, |
c0f3af97 L |
4979 | }, |
4980 | ||
592a252b | 4981 | /* PREFIX_VEX_0F6C */ |
c0f3af97 | 4982 | { |
592d1631 L |
4983 | { Bad_Opcode }, |
4984 | { Bad_Opcode }, | |
6c30d220 | 4985 | { VEX_W_TABLE (VEX_W_0F6C_P_2) }, |
c0f3af97 L |
4986 | }, |
4987 | ||
592a252b | 4988 | /* PREFIX_VEX_0F6D */ |
c0f3af97 | 4989 | { |
592d1631 L |
4990 | { Bad_Opcode }, |
4991 | { Bad_Opcode }, | |
6c30d220 | 4992 | { VEX_W_TABLE (VEX_W_0F6D_P_2) }, |
c0f3af97 L |
4993 | }, |
4994 | ||
592a252b | 4995 | /* PREFIX_VEX_0F6E */ |
c0f3af97 | 4996 | { |
592d1631 L |
4997 | { Bad_Opcode }, |
4998 | { Bad_Opcode }, | |
592a252b | 4999 | { VEX_LEN_TABLE (VEX_LEN_0F6E_P_2) }, |
c0f3af97 L |
5000 | }, |
5001 | ||
592a252b | 5002 | /* PREFIX_VEX_0F6F */ |
c0f3af97 | 5003 | { |
592d1631 | 5004 | { Bad_Opcode }, |
592a252b L |
5005 | { VEX_W_TABLE (VEX_W_0F6F_P_1) }, |
5006 | { VEX_W_TABLE (VEX_W_0F6F_P_2) }, | |
c0f3af97 L |
5007 | }, |
5008 | ||
592a252b | 5009 | /* PREFIX_VEX_0F70 */ |
c0f3af97 | 5010 | { |
592d1631 | 5011 | { Bad_Opcode }, |
6c30d220 L |
5012 | { VEX_W_TABLE (VEX_W_0F70_P_1) }, |
5013 | { VEX_W_TABLE (VEX_W_0F70_P_2) }, | |
5014 | { VEX_W_TABLE (VEX_W_0F70_P_3) }, | |
c0f3af97 L |
5015 | }, |
5016 | ||
592a252b | 5017 | /* PREFIX_VEX_0F71_REG_2 */ |
c0f3af97 | 5018 | { |
592d1631 L |
5019 | { Bad_Opcode }, |
5020 | { Bad_Opcode }, | |
6c30d220 | 5021 | { VEX_W_TABLE (VEX_W_0F71_R_2_P_2) }, |
c0f3af97 L |
5022 | }, |
5023 | ||
592a252b | 5024 | /* PREFIX_VEX_0F71_REG_4 */ |
c0f3af97 | 5025 | { |
592d1631 L |
5026 | { Bad_Opcode }, |
5027 | { Bad_Opcode }, | |
6c30d220 | 5028 | { VEX_W_TABLE (VEX_W_0F71_R_4_P_2) }, |
c0f3af97 L |
5029 | }, |
5030 | ||
592a252b | 5031 | /* PREFIX_VEX_0F71_REG_6 */ |
c0f3af97 | 5032 | { |
592d1631 L |
5033 | { Bad_Opcode }, |
5034 | { Bad_Opcode }, | |
6c30d220 | 5035 | { VEX_W_TABLE (VEX_W_0F71_R_6_P_2) }, |
c0f3af97 L |
5036 | }, |
5037 | ||
592a252b | 5038 | /* PREFIX_VEX_0F72_REG_2 */ |
c0f3af97 | 5039 | { |
592d1631 L |
5040 | { Bad_Opcode }, |
5041 | { Bad_Opcode }, | |
6c30d220 | 5042 | { VEX_W_TABLE (VEX_W_0F72_R_2_P_2) }, |
c0f3af97 L |
5043 | }, |
5044 | ||
592a252b | 5045 | /* PREFIX_VEX_0F72_REG_4 */ |
c0f3af97 | 5046 | { |
592d1631 L |
5047 | { Bad_Opcode }, |
5048 | { Bad_Opcode }, | |
6c30d220 | 5049 | { VEX_W_TABLE (VEX_W_0F72_R_4_P_2) }, |
c0f3af97 L |
5050 | }, |
5051 | ||
592a252b | 5052 | /* PREFIX_VEX_0F72_REG_6 */ |
c0f3af97 | 5053 | { |
592d1631 L |
5054 | { Bad_Opcode }, |
5055 | { Bad_Opcode }, | |
6c30d220 | 5056 | { VEX_W_TABLE (VEX_W_0F72_R_6_P_2) }, |
c0f3af97 L |
5057 | }, |
5058 | ||
592a252b | 5059 | /* PREFIX_VEX_0F73_REG_2 */ |
c0f3af97 | 5060 | { |
592d1631 L |
5061 | { Bad_Opcode }, |
5062 | { Bad_Opcode }, | |
6c30d220 | 5063 | { VEX_W_TABLE (VEX_W_0F73_R_2_P_2) }, |
c0f3af97 L |
5064 | }, |
5065 | ||
592a252b | 5066 | /* PREFIX_VEX_0F73_REG_3 */ |
c0f3af97 | 5067 | { |
592d1631 L |
5068 | { Bad_Opcode }, |
5069 | { Bad_Opcode }, | |
6c30d220 | 5070 | { VEX_W_TABLE (VEX_W_0F73_R_3_P_2) }, |
c0f3af97 L |
5071 | }, |
5072 | ||
592a252b | 5073 | /* PREFIX_VEX_0F73_REG_6 */ |
c0f3af97 | 5074 | { |
592d1631 L |
5075 | { Bad_Opcode }, |
5076 | { Bad_Opcode }, | |
6c30d220 | 5077 | { VEX_W_TABLE (VEX_W_0F73_R_6_P_2) }, |
c0f3af97 L |
5078 | }, |
5079 | ||
592a252b | 5080 | /* PREFIX_VEX_0F73_REG_7 */ |
c0f3af97 | 5081 | { |
592d1631 L |
5082 | { Bad_Opcode }, |
5083 | { Bad_Opcode }, | |
6c30d220 | 5084 | { VEX_W_TABLE (VEX_W_0F73_R_7_P_2) }, |
c0f3af97 L |
5085 | }, |
5086 | ||
592a252b | 5087 | /* PREFIX_VEX_0F74 */ |
c0f3af97 | 5088 | { |
592d1631 L |
5089 | { Bad_Opcode }, |
5090 | { Bad_Opcode }, | |
6c30d220 | 5091 | { VEX_W_TABLE (VEX_W_0F74_P_2) }, |
c0f3af97 L |
5092 | }, |
5093 | ||
592a252b | 5094 | /* PREFIX_VEX_0F75 */ |
c0f3af97 | 5095 | { |
592d1631 L |
5096 | { Bad_Opcode }, |
5097 | { Bad_Opcode }, | |
6c30d220 | 5098 | { VEX_W_TABLE (VEX_W_0F75_P_2) }, |
c0f3af97 L |
5099 | }, |
5100 | ||
592a252b | 5101 | /* PREFIX_VEX_0F76 */ |
c0f3af97 | 5102 | { |
592d1631 L |
5103 | { Bad_Opcode }, |
5104 | { Bad_Opcode }, | |
6c30d220 | 5105 | { VEX_W_TABLE (VEX_W_0F76_P_2) }, |
c0f3af97 L |
5106 | }, |
5107 | ||
592a252b | 5108 | /* PREFIX_VEX_0F77 */ |
c0f3af97 | 5109 | { |
592a252b | 5110 | { VEX_W_TABLE (VEX_W_0F77_P_0) }, |
c0f3af97 L |
5111 | }, |
5112 | ||
592a252b | 5113 | /* PREFIX_VEX_0F7C */ |
c0f3af97 | 5114 | { |
592d1631 L |
5115 | { Bad_Opcode }, |
5116 | { Bad_Opcode }, | |
592a252b L |
5117 | { VEX_W_TABLE (VEX_W_0F7C_P_2) }, |
5118 | { VEX_W_TABLE (VEX_W_0F7C_P_3) }, | |
c0f3af97 L |
5119 | }, |
5120 | ||
592a252b | 5121 | /* PREFIX_VEX_0F7D */ |
c0f3af97 | 5122 | { |
592d1631 L |
5123 | { Bad_Opcode }, |
5124 | { Bad_Opcode }, | |
592a252b L |
5125 | { VEX_W_TABLE (VEX_W_0F7D_P_2) }, |
5126 | { VEX_W_TABLE (VEX_W_0F7D_P_3) }, | |
c0f3af97 L |
5127 | }, |
5128 | ||
592a252b | 5129 | /* PREFIX_VEX_0F7E */ |
c0f3af97 | 5130 | { |
592d1631 | 5131 | { Bad_Opcode }, |
592a252b L |
5132 | { VEX_LEN_TABLE (VEX_LEN_0F7E_P_1) }, |
5133 | { VEX_LEN_TABLE (VEX_LEN_0F7E_P_2) }, | |
c0f3af97 L |
5134 | }, |
5135 | ||
592a252b | 5136 | /* PREFIX_VEX_0F7F */ |
c0f3af97 | 5137 | { |
592d1631 | 5138 | { Bad_Opcode }, |
592a252b L |
5139 | { VEX_W_TABLE (VEX_W_0F7F_P_1) }, |
5140 | { VEX_W_TABLE (VEX_W_0F7F_P_2) }, | |
c0f3af97 L |
5141 | }, |
5142 | ||
43234a1e L |
5143 | /* PREFIX_VEX_0F90 */ |
5144 | { | |
5145 | { VEX_LEN_TABLE (VEX_LEN_0F90_P_0) }, | |
1ba585e8 IT |
5146 | { Bad_Opcode }, |
5147 | { VEX_LEN_TABLE (VEX_LEN_0F90_P_2) }, | |
43234a1e L |
5148 | }, |
5149 | ||
5150 | /* PREFIX_VEX_0F91 */ | |
5151 | { | |
5152 | { VEX_LEN_TABLE (VEX_LEN_0F91_P_0) }, | |
1ba585e8 IT |
5153 | { Bad_Opcode }, |
5154 | { VEX_LEN_TABLE (VEX_LEN_0F91_P_2) }, | |
43234a1e L |
5155 | }, |
5156 | ||
5157 | /* PREFIX_VEX_0F92 */ | |
5158 | { | |
5159 | { VEX_LEN_TABLE (VEX_LEN_0F92_P_0) }, | |
1ba585e8 | 5160 | { Bad_Opcode }, |
90a915bf | 5161 | { VEX_LEN_TABLE (VEX_LEN_0F92_P_2) }, |
1ba585e8 | 5162 | { VEX_LEN_TABLE (VEX_LEN_0F92_P_3) }, |
43234a1e L |
5163 | }, |
5164 | ||
5165 | /* PREFIX_VEX_0F93 */ | |
5166 | { | |
5167 | { VEX_LEN_TABLE (VEX_LEN_0F93_P_0) }, | |
1ba585e8 | 5168 | { Bad_Opcode }, |
90a915bf | 5169 | { VEX_LEN_TABLE (VEX_LEN_0F93_P_2) }, |
1ba585e8 | 5170 | { VEX_LEN_TABLE (VEX_LEN_0F93_P_3) }, |
43234a1e L |
5171 | }, |
5172 | ||
5173 | /* PREFIX_VEX_0F98 */ | |
5174 | { | |
5175 | { VEX_LEN_TABLE (VEX_LEN_0F98_P_0) }, | |
1ba585e8 IT |
5176 | { Bad_Opcode }, |
5177 | { VEX_LEN_TABLE (VEX_LEN_0F98_P_2) }, | |
5178 | }, | |
5179 | ||
5180 | /* PREFIX_VEX_0F99 */ | |
5181 | { | |
5182 | { VEX_LEN_TABLE (VEX_LEN_0F99_P_0) }, | |
5183 | { Bad_Opcode }, | |
5184 | { VEX_LEN_TABLE (VEX_LEN_0F99_P_2) }, | |
43234a1e L |
5185 | }, |
5186 | ||
592a252b | 5187 | /* PREFIX_VEX_0FC2 */ |
c0f3af97 | 5188 | { |
592a252b L |
5189 | { VEX_W_TABLE (VEX_W_0FC2_P_0) }, |
5190 | { VEX_LEN_TABLE (VEX_LEN_0FC2_P_1) }, | |
5191 | { VEX_W_TABLE (VEX_W_0FC2_P_2) }, | |
5192 | { VEX_LEN_TABLE (VEX_LEN_0FC2_P_3) }, | |
c0f3af97 L |
5193 | }, |
5194 | ||
592a252b | 5195 | /* PREFIX_VEX_0FC4 */ |
c0f3af97 | 5196 | { |
592d1631 L |
5197 | { Bad_Opcode }, |
5198 | { Bad_Opcode }, | |
592a252b | 5199 | { VEX_LEN_TABLE (VEX_LEN_0FC4_P_2) }, |
c0f3af97 L |
5200 | }, |
5201 | ||
592a252b | 5202 | /* PREFIX_VEX_0FC5 */ |
c0f3af97 | 5203 | { |
592d1631 L |
5204 | { Bad_Opcode }, |
5205 | { Bad_Opcode }, | |
592a252b | 5206 | { VEX_LEN_TABLE (VEX_LEN_0FC5_P_2) }, |
c0f3af97 L |
5207 | }, |
5208 | ||
592a252b | 5209 | /* PREFIX_VEX_0FD0 */ |
c0f3af97 | 5210 | { |
592d1631 L |
5211 | { Bad_Opcode }, |
5212 | { Bad_Opcode }, | |
592a252b L |
5213 | { VEX_W_TABLE (VEX_W_0FD0_P_2) }, |
5214 | { VEX_W_TABLE (VEX_W_0FD0_P_3) }, | |
c0f3af97 L |
5215 | }, |
5216 | ||
592a252b | 5217 | /* PREFIX_VEX_0FD1 */ |
c0f3af97 | 5218 | { |
592d1631 L |
5219 | { Bad_Opcode }, |
5220 | { Bad_Opcode }, | |
6c30d220 | 5221 | { VEX_W_TABLE (VEX_W_0FD1_P_2) }, |
c0f3af97 L |
5222 | }, |
5223 | ||
592a252b | 5224 | /* PREFIX_VEX_0FD2 */ |
c0f3af97 | 5225 | { |
592d1631 L |
5226 | { Bad_Opcode }, |
5227 | { Bad_Opcode }, | |
6c30d220 | 5228 | { VEX_W_TABLE (VEX_W_0FD2_P_2) }, |
c0f3af97 L |
5229 | }, |
5230 | ||
592a252b | 5231 | /* PREFIX_VEX_0FD3 */ |
c0f3af97 | 5232 | { |
592d1631 L |
5233 | { Bad_Opcode }, |
5234 | { Bad_Opcode }, | |
6c30d220 | 5235 | { VEX_W_TABLE (VEX_W_0FD3_P_2) }, |
c0f3af97 L |
5236 | }, |
5237 | ||
592a252b | 5238 | /* PREFIX_VEX_0FD4 */ |
c0f3af97 | 5239 | { |
592d1631 L |
5240 | { Bad_Opcode }, |
5241 | { Bad_Opcode }, | |
6c30d220 | 5242 | { VEX_W_TABLE (VEX_W_0FD4_P_2) }, |
c0f3af97 L |
5243 | }, |
5244 | ||
592a252b | 5245 | /* PREFIX_VEX_0FD5 */ |
c0f3af97 | 5246 | { |
592d1631 L |
5247 | { Bad_Opcode }, |
5248 | { Bad_Opcode }, | |
6c30d220 | 5249 | { VEX_W_TABLE (VEX_W_0FD5_P_2) }, |
c0f3af97 L |
5250 | }, |
5251 | ||
592a252b | 5252 | /* PREFIX_VEX_0FD6 */ |
c0f3af97 | 5253 | { |
592d1631 L |
5254 | { Bad_Opcode }, |
5255 | { Bad_Opcode }, | |
592a252b | 5256 | { VEX_LEN_TABLE (VEX_LEN_0FD6_P_2) }, |
c0f3af97 L |
5257 | }, |
5258 | ||
592a252b | 5259 | /* PREFIX_VEX_0FD7 */ |
c0f3af97 | 5260 | { |
592d1631 L |
5261 | { Bad_Opcode }, |
5262 | { Bad_Opcode }, | |
592a252b | 5263 | { MOD_TABLE (MOD_VEX_0FD7_PREFIX_2) }, |
c0f3af97 L |
5264 | }, |
5265 | ||
592a252b | 5266 | /* PREFIX_VEX_0FD8 */ |
c0f3af97 | 5267 | { |
592d1631 L |
5268 | { Bad_Opcode }, |
5269 | { Bad_Opcode }, | |
6c30d220 | 5270 | { VEX_W_TABLE (VEX_W_0FD8_P_2) }, |
c0f3af97 L |
5271 | }, |
5272 | ||
592a252b | 5273 | /* PREFIX_VEX_0FD9 */ |
c0f3af97 | 5274 | { |
592d1631 L |
5275 | { Bad_Opcode }, |
5276 | { Bad_Opcode }, | |
6c30d220 | 5277 | { VEX_W_TABLE (VEX_W_0FD9_P_2) }, |
c0f3af97 L |
5278 | }, |
5279 | ||
592a252b | 5280 | /* PREFIX_VEX_0FDA */ |
c0f3af97 | 5281 | { |
592d1631 L |
5282 | { Bad_Opcode }, |
5283 | { Bad_Opcode }, | |
6c30d220 | 5284 | { VEX_W_TABLE (VEX_W_0FDA_P_2) }, |
c0f3af97 L |
5285 | }, |
5286 | ||
592a252b | 5287 | /* PREFIX_VEX_0FDB */ |
c0f3af97 | 5288 | { |
592d1631 L |
5289 | { Bad_Opcode }, |
5290 | { Bad_Opcode }, | |
6c30d220 | 5291 | { VEX_W_TABLE (VEX_W_0FDB_P_2) }, |
c0f3af97 L |
5292 | }, |
5293 | ||
592a252b | 5294 | /* PREFIX_VEX_0FDC */ |
c0f3af97 | 5295 | { |
592d1631 L |
5296 | { Bad_Opcode }, |
5297 | { Bad_Opcode }, | |
6c30d220 | 5298 | { VEX_W_TABLE (VEX_W_0FDC_P_2) }, |
c0f3af97 L |
5299 | }, |
5300 | ||
592a252b | 5301 | /* PREFIX_VEX_0FDD */ |
c0f3af97 | 5302 | { |
592d1631 L |
5303 | { Bad_Opcode }, |
5304 | { Bad_Opcode }, | |
6c30d220 | 5305 | { VEX_W_TABLE (VEX_W_0FDD_P_2) }, |
c0f3af97 L |
5306 | }, |
5307 | ||
592a252b | 5308 | /* PREFIX_VEX_0FDE */ |
c0f3af97 | 5309 | { |
592d1631 L |
5310 | { Bad_Opcode }, |
5311 | { Bad_Opcode }, | |
6c30d220 | 5312 | { VEX_W_TABLE (VEX_W_0FDE_P_2) }, |
c0f3af97 L |
5313 | }, |
5314 | ||
592a252b | 5315 | /* PREFIX_VEX_0FDF */ |
c0f3af97 | 5316 | { |
592d1631 L |
5317 | { Bad_Opcode }, |
5318 | { Bad_Opcode }, | |
6c30d220 | 5319 | { VEX_W_TABLE (VEX_W_0FDF_P_2) }, |
c0f3af97 L |
5320 | }, |
5321 | ||
592a252b | 5322 | /* PREFIX_VEX_0FE0 */ |
c0f3af97 | 5323 | { |
592d1631 L |
5324 | { Bad_Opcode }, |
5325 | { Bad_Opcode }, | |
6c30d220 | 5326 | { VEX_W_TABLE (VEX_W_0FE0_P_2) }, |
c0f3af97 L |
5327 | }, |
5328 | ||
592a252b | 5329 | /* PREFIX_VEX_0FE1 */ |
c0f3af97 | 5330 | { |
592d1631 L |
5331 | { Bad_Opcode }, |
5332 | { Bad_Opcode }, | |
6c30d220 | 5333 | { VEX_W_TABLE (VEX_W_0FE1_P_2) }, |
c0f3af97 L |
5334 | }, |
5335 | ||
592a252b | 5336 | /* PREFIX_VEX_0FE2 */ |
c0f3af97 | 5337 | { |
592d1631 L |
5338 | { Bad_Opcode }, |
5339 | { Bad_Opcode }, | |
6c30d220 | 5340 | { VEX_W_TABLE (VEX_W_0FE2_P_2) }, |
c0f3af97 L |
5341 | }, |
5342 | ||
592a252b | 5343 | /* PREFIX_VEX_0FE3 */ |
c0f3af97 | 5344 | { |
592d1631 L |
5345 | { Bad_Opcode }, |
5346 | { Bad_Opcode }, | |
6c30d220 | 5347 | { VEX_W_TABLE (VEX_W_0FE3_P_2) }, |
c0f3af97 L |
5348 | }, |
5349 | ||
592a252b | 5350 | /* PREFIX_VEX_0FE4 */ |
c0f3af97 | 5351 | { |
592d1631 L |
5352 | { Bad_Opcode }, |
5353 | { Bad_Opcode }, | |
6c30d220 | 5354 | { VEX_W_TABLE (VEX_W_0FE4_P_2) }, |
c0f3af97 L |
5355 | }, |
5356 | ||
592a252b | 5357 | /* PREFIX_VEX_0FE5 */ |
c0f3af97 | 5358 | { |
592d1631 L |
5359 | { Bad_Opcode }, |
5360 | { Bad_Opcode }, | |
6c30d220 | 5361 | { VEX_W_TABLE (VEX_W_0FE5_P_2) }, |
c0f3af97 L |
5362 | }, |
5363 | ||
592a252b | 5364 | /* PREFIX_VEX_0FE6 */ |
c0f3af97 | 5365 | { |
592d1631 | 5366 | { Bad_Opcode }, |
592a252b L |
5367 | { VEX_W_TABLE (VEX_W_0FE6_P_1) }, |
5368 | { VEX_W_TABLE (VEX_W_0FE6_P_2) }, | |
5369 | { VEX_W_TABLE (VEX_W_0FE6_P_3) }, | |
c0f3af97 L |
5370 | }, |
5371 | ||
592a252b | 5372 | /* PREFIX_VEX_0FE7 */ |
c0f3af97 | 5373 | { |
592d1631 L |
5374 | { Bad_Opcode }, |
5375 | { Bad_Opcode }, | |
592a252b | 5376 | { MOD_TABLE (MOD_VEX_0FE7_PREFIX_2) }, |
c0f3af97 L |
5377 | }, |
5378 | ||
592a252b | 5379 | /* PREFIX_VEX_0FE8 */ |
c0f3af97 | 5380 | { |
592d1631 L |
5381 | { Bad_Opcode }, |
5382 | { Bad_Opcode }, | |
6c30d220 | 5383 | { VEX_W_TABLE (VEX_W_0FE8_P_2) }, |
c0f3af97 L |
5384 | }, |
5385 | ||
592a252b | 5386 | /* PREFIX_VEX_0FE9 */ |
c0f3af97 | 5387 | { |
592d1631 L |
5388 | { Bad_Opcode }, |
5389 | { Bad_Opcode }, | |
6c30d220 | 5390 | { VEX_W_TABLE (VEX_W_0FE9_P_2) }, |
c0f3af97 L |
5391 | }, |
5392 | ||
592a252b | 5393 | /* PREFIX_VEX_0FEA */ |
c0f3af97 | 5394 | { |
592d1631 L |
5395 | { Bad_Opcode }, |
5396 | { Bad_Opcode }, | |
6c30d220 | 5397 | { VEX_W_TABLE (VEX_W_0FEA_P_2) }, |
c0f3af97 L |
5398 | }, |
5399 | ||
592a252b | 5400 | /* PREFIX_VEX_0FEB */ |
c0f3af97 | 5401 | { |
592d1631 L |
5402 | { Bad_Opcode }, |
5403 | { Bad_Opcode }, | |
6c30d220 | 5404 | { VEX_W_TABLE (VEX_W_0FEB_P_2) }, |
c0f3af97 L |
5405 | }, |
5406 | ||
592a252b | 5407 | /* PREFIX_VEX_0FEC */ |
c0f3af97 | 5408 | { |
592d1631 L |
5409 | { Bad_Opcode }, |
5410 | { Bad_Opcode }, | |
6c30d220 | 5411 | { VEX_W_TABLE (VEX_W_0FEC_P_2) }, |
c0f3af97 L |
5412 | }, |
5413 | ||
592a252b | 5414 | /* PREFIX_VEX_0FED */ |
c0f3af97 | 5415 | { |
592d1631 L |
5416 | { Bad_Opcode }, |
5417 | { Bad_Opcode }, | |
6c30d220 | 5418 | { VEX_W_TABLE (VEX_W_0FED_P_2) }, |
c0f3af97 L |
5419 | }, |
5420 | ||
592a252b | 5421 | /* PREFIX_VEX_0FEE */ |
c0f3af97 | 5422 | { |
592d1631 L |
5423 | { Bad_Opcode }, |
5424 | { Bad_Opcode }, | |
6c30d220 | 5425 | { VEX_W_TABLE (VEX_W_0FEE_P_2) }, |
c0f3af97 L |
5426 | }, |
5427 | ||
592a252b | 5428 | /* PREFIX_VEX_0FEF */ |
c0f3af97 | 5429 | { |
592d1631 L |
5430 | { Bad_Opcode }, |
5431 | { Bad_Opcode }, | |
6c30d220 | 5432 | { VEX_W_TABLE (VEX_W_0FEF_P_2) }, |
c0f3af97 L |
5433 | }, |
5434 | ||
592a252b | 5435 | /* PREFIX_VEX_0FF0 */ |
c0f3af97 | 5436 | { |
592d1631 L |
5437 | { Bad_Opcode }, |
5438 | { Bad_Opcode }, | |
5439 | { Bad_Opcode }, | |
592a252b | 5440 | { MOD_TABLE (MOD_VEX_0FF0_PREFIX_3) }, |
c0f3af97 L |
5441 | }, |
5442 | ||
592a252b | 5443 | /* PREFIX_VEX_0FF1 */ |
c0f3af97 | 5444 | { |
592d1631 L |
5445 | { Bad_Opcode }, |
5446 | { Bad_Opcode }, | |
6c30d220 | 5447 | { VEX_W_TABLE (VEX_W_0FF1_P_2) }, |
c0f3af97 L |
5448 | }, |
5449 | ||
592a252b | 5450 | /* PREFIX_VEX_0FF2 */ |
c0f3af97 | 5451 | { |
592d1631 L |
5452 | { Bad_Opcode }, |
5453 | { Bad_Opcode }, | |
6c30d220 | 5454 | { VEX_W_TABLE (VEX_W_0FF2_P_2) }, |
c0f3af97 L |
5455 | }, |
5456 | ||
592a252b | 5457 | /* PREFIX_VEX_0FF3 */ |
c0f3af97 | 5458 | { |
592d1631 L |
5459 | { Bad_Opcode }, |
5460 | { Bad_Opcode }, | |
6c30d220 | 5461 | { VEX_W_TABLE (VEX_W_0FF3_P_2) }, |
c0f3af97 L |
5462 | }, |
5463 | ||
592a252b | 5464 | /* PREFIX_VEX_0FF4 */ |
c0f3af97 | 5465 | { |
592d1631 L |
5466 | { Bad_Opcode }, |
5467 | { Bad_Opcode }, | |
6c30d220 | 5468 | { VEX_W_TABLE (VEX_W_0FF4_P_2) }, |
c0f3af97 L |
5469 | }, |
5470 | ||
592a252b | 5471 | /* PREFIX_VEX_0FF5 */ |
c0f3af97 | 5472 | { |
592d1631 L |
5473 | { Bad_Opcode }, |
5474 | { Bad_Opcode }, | |
6c30d220 | 5475 | { VEX_W_TABLE (VEX_W_0FF5_P_2) }, |
c0f3af97 L |
5476 | }, |
5477 | ||
592a252b | 5478 | /* PREFIX_VEX_0FF6 */ |
c0f3af97 | 5479 | { |
592d1631 L |
5480 | { Bad_Opcode }, |
5481 | { Bad_Opcode }, | |
6c30d220 | 5482 | { VEX_W_TABLE (VEX_W_0FF6_P_2) }, |
c0f3af97 L |
5483 | }, |
5484 | ||
592a252b | 5485 | /* PREFIX_VEX_0FF7 */ |
c0f3af97 | 5486 | { |
592d1631 L |
5487 | { Bad_Opcode }, |
5488 | { Bad_Opcode }, | |
592a252b | 5489 | { VEX_LEN_TABLE (VEX_LEN_0FF7_P_2) }, |
c0f3af97 L |
5490 | }, |
5491 | ||
592a252b | 5492 | /* PREFIX_VEX_0FF8 */ |
c0f3af97 | 5493 | { |
592d1631 L |
5494 | { Bad_Opcode }, |
5495 | { Bad_Opcode }, | |
6c30d220 | 5496 | { VEX_W_TABLE (VEX_W_0FF8_P_2) }, |
c0f3af97 L |
5497 | }, |
5498 | ||
592a252b | 5499 | /* PREFIX_VEX_0FF9 */ |
c0f3af97 | 5500 | { |
592d1631 L |
5501 | { Bad_Opcode }, |
5502 | { Bad_Opcode }, | |
6c30d220 | 5503 | { VEX_W_TABLE (VEX_W_0FF9_P_2) }, |
c0f3af97 L |
5504 | }, |
5505 | ||
592a252b | 5506 | /* PREFIX_VEX_0FFA */ |
c0f3af97 | 5507 | { |
592d1631 L |
5508 | { Bad_Opcode }, |
5509 | { Bad_Opcode }, | |
6c30d220 | 5510 | { VEX_W_TABLE (VEX_W_0FFA_P_2) }, |
c0f3af97 L |
5511 | }, |
5512 | ||
592a252b | 5513 | /* PREFIX_VEX_0FFB */ |
c0f3af97 | 5514 | { |
592d1631 L |
5515 | { Bad_Opcode }, |
5516 | { Bad_Opcode }, | |
6c30d220 | 5517 | { VEX_W_TABLE (VEX_W_0FFB_P_2) }, |
c0f3af97 L |
5518 | }, |
5519 | ||
592a252b | 5520 | /* PREFIX_VEX_0FFC */ |
c0f3af97 | 5521 | { |
592d1631 L |
5522 | { Bad_Opcode }, |
5523 | { Bad_Opcode }, | |
6c30d220 | 5524 | { VEX_W_TABLE (VEX_W_0FFC_P_2) }, |
c0f3af97 L |
5525 | }, |
5526 | ||
592a252b | 5527 | /* PREFIX_VEX_0FFD */ |
c0f3af97 | 5528 | { |
592d1631 L |
5529 | { Bad_Opcode }, |
5530 | { Bad_Opcode }, | |
6c30d220 | 5531 | { VEX_W_TABLE (VEX_W_0FFD_P_2) }, |
c0f3af97 L |
5532 | }, |
5533 | ||
592a252b | 5534 | /* PREFIX_VEX_0FFE */ |
c0f3af97 | 5535 | { |
592d1631 L |
5536 | { Bad_Opcode }, |
5537 | { Bad_Opcode }, | |
6c30d220 | 5538 | { VEX_W_TABLE (VEX_W_0FFE_P_2) }, |
c0f3af97 L |
5539 | }, |
5540 | ||
592a252b | 5541 | /* PREFIX_VEX_0F3800 */ |
c0f3af97 | 5542 | { |
592d1631 L |
5543 | { Bad_Opcode }, |
5544 | { Bad_Opcode }, | |
6c30d220 | 5545 | { VEX_W_TABLE (VEX_W_0F3800_P_2) }, |
c0f3af97 L |
5546 | }, |
5547 | ||
592a252b | 5548 | /* PREFIX_VEX_0F3801 */ |
c0f3af97 | 5549 | { |
592d1631 L |
5550 | { Bad_Opcode }, |
5551 | { Bad_Opcode }, | |
6c30d220 | 5552 | { VEX_W_TABLE (VEX_W_0F3801_P_2) }, |
c0f3af97 L |
5553 | }, |
5554 | ||
592a252b | 5555 | /* PREFIX_VEX_0F3802 */ |
c0f3af97 | 5556 | { |
592d1631 L |
5557 | { Bad_Opcode }, |
5558 | { Bad_Opcode }, | |
6c30d220 | 5559 | { VEX_W_TABLE (VEX_W_0F3802_P_2) }, |
c0f3af97 L |
5560 | }, |
5561 | ||
592a252b | 5562 | /* PREFIX_VEX_0F3803 */ |
c0f3af97 | 5563 | { |
592d1631 L |
5564 | { Bad_Opcode }, |
5565 | { Bad_Opcode }, | |
6c30d220 | 5566 | { VEX_W_TABLE (VEX_W_0F3803_P_2) }, |
c0f3af97 L |
5567 | }, |
5568 | ||
592a252b | 5569 | /* PREFIX_VEX_0F3804 */ |
c0f3af97 | 5570 | { |
592d1631 L |
5571 | { Bad_Opcode }, |
5572 | { Bad_Opcode }, | |
6c30d220 | 5573 | { VEX_W_TABLE (VEX_W_0F3804_P_2) }, |
c0f3af97 L |
5574 | }, |
5575 | ||
592a252b | 5576 | /* PREFIX_VEX_0F3805 */ |
c0f3af97 | 5577 | { |
592d1631 L |
5578 | { Bad_Opcode }, |
5579 | { Bad_Opcode }, | |
6c30d220 | 5580 | { VEX_W_TABLE (VEX_W_0F3805_P_2) }, |
c0f3af97 L |
5581 | }, |
5582 | ||
592a252b | 5583 | /* PREFIX_VEX_0F3806 */ |
c0f3af97 | 5584 | { |
592d1631 L |
5585 | { Bad_Opcode }, |
5586 | { Bad_Opcode }, | |
6c30d220 | 5587 | { VEX_W_TABLE (VEX_W_0F3806_P_2) }, |
c0f3af97 L |
5588 | }, |
5589 | ||
592a252b | 5590 | /* PREFIX_VEX_0F3807 */ |
c0f3af97 | 5591 | { |
592d1631 L |
5592 | { Bad_Opcode }, |
5593 | { Bad_Opcode }, | |
6c30d220 | 5594 | { VEX_W_TABLE (VEX_W_0F3807_P_2) }, |
c0f3af97 L |
5595 | }, |
5596 | ||
592a252b | 5597 | /* PREFIX_VEX_0F3808 */ |
c0f3af97 | 5598 | { |
592d1631 L |
5599 | { Bad_Opcode }, |
5600 | { Bad_Opcode }, | |
6c30d220 | 5601 | { VEX_W_TABLE (VEX_W_0F3808_P_2) }, |
c0f3af97 L |
5602 | }, |
5603 | ||
592a252b | 5604 | /* PREFIX_VEX_0F3809 */ |
c0f3af97 | 5605 | { |
592d1631 L |
5606 | { Bad_Opcode }, |
5607 | { Bad_Opcode }, | |
6c30d220 | 5608 | { VEX_W_TABLE (VEX_W_0F3809_P_2) }, |
c0f3af97 L |
5609 | }, |
5610 | ||
592a252b | 5611 | /* PREFIX_VEX_0F380A */ |
c0f3af97 | 5612 | { |
592d1631 L |
5613 | { Bad_Opcode }, |
5614 | { Bad_Opcode }, | |
6c30d220 | 5615 | { VEX_W_TABLE (VEX_W_0F380A_P_2) }, |
c0f3af97 L |
5616 | }, |
5617 | ||
592a252b | 5618 | /* PREFIX_VEX_0F380B */ |
c0f3af97 | 5619 | { |
592d1631 L |
5620 | { Bad_Opcode }, |
5621 | { Bad_Opcode }, | |
6c30d220 | 5622 | { VEX_W_TABLE (VEX_W_0F380B_P_2) }, |
c0f3af97 L |
5623 | }, |
5624 | ||
592a252b | 5625 | /* PREFIX_VEX_0F380C */ |
c0f3af97 | 5626 | { |
592d1631 L |
5627 | { Bad_Opcode }, |
5628 | { Bad_Opcode }, | |
592a252b | 5629 | { VEX_W_TABLE (VEX_W_0F380C_P_2) }, |
c0f3af97 L |
5630 | }, |
5631 | ||
592a252b | 5632 | /* PREFIX_VEX_0F380D */ |
c0f3af97 | 5633 | { |
592d1631 L |
5634 | { Bad_Opcode }, |
5635 | { Bad_Opcode }, | |
592a252b | 5636 | { VEX_W_TABLE (VEX_W_0F380D_P_2) }, |
c0f3af97 L |
5637 | }, |
5638 | ||
592a252b | 5639 | /* PREFIX_VEX_0F380E */ |
c0f3af97 | 5640 | { |
592d1631 L |
5641 | { Bad_Opcode }, |
5642 | { Bad_Opcode }, | |
592a252b | 5643 | { VEX_W_TABLE (VEX_W_0F380E_P_2) }, |
c0f3af97 L |
5644 | }, |
5645 | ||
592a252b | 5646 | /* PREFIX_VEX_0F380F */ |
c0f3af97 | 5647 | { |
592d1631 L |
5648 | { Bad_Opcode }, |
5649 | { Bad_Opcode }, | |
592a252b | 5650 | { VEX_W_TABLE (VEX_W_0F380F_P_2) }, |
c0f3af97 L |
5651 | }, |
5652 | ||
592a252b | 5653 | /* PREFIX_VEX_0F3813 */ |
c7b8aa3a L |
5654 | { |
5655 | { Bad_Opcode }, | |
5656 | { Bad_Opcode }, | |
bf890a93 | 5657 | { "vcvtph2ps", { XM, EXxmmq }, 0 }, |
c7b8aa3a L |
5658 | }, |
5659 | ||
6c30d220 L |
5660 | /* PREFIX_VEX_0F3816 */ |
5661 | { | |
5662 | { Bad_Opcode }, | |
5663 | { Bad_Opcode }, | |
5664 | { VEX_LEN_TABLE (VEX_LEN_0F3816_P_2) }, | |
5665 | }, | |
5666 | ||
592a252b | 5667 | /* PREFIX_VEX_0F3817 */ |
c0f3af97 | 5668 | { |
592d1631 L |
5669 | { Bad_Opcode }, |
5670 | { Bad_Opcode }, | |
592a252b | 5671 | { VEX_W_TABLE (VEX_W_0F3817_P_2) }, |
c0f3af97 L |
5672 | }, |
5673 | ||
592a252b | 5674 | /* PREFIX_VEX_0F3818 */ |
c0f3af97 | 5675 | { |
592d1631 L |
5676 | { Bad_Opcode }, |
5677 | { Bad_Opcode }, | |
6c30d220 | 5678 | { VEX_W_TABLE (VEX_W_0F3818_P_2) }, |
c0f3af97 L |
5679 | }, |
5680 | ||
592a252b | 5681 | /* PREFIX_VEX_0F3819 */ |
c0f3af97 | 5682 | { |
592d1631 L |
5683 | { Bad_Opcode }, |
5684 | { Bad_Opcode }, | |
6c30d220 | 5685 | { VEX_LEN_TABLE (VEX_LEN_0F3819_P_2) }, |
c0f3af97 L |
5686 | }, |
5687 | ||
592a252b | 5688 | /* PREFIX_VEX_0F381A */ |
c0f3af97 | 5689 | { |
592d1631 L |
5690 | { Bad_Opcode }, |
5691 | { Bad_Opcode }, | |
592a252b | 5692 | { MOD_TABLE (MOD_VEX_0F381A_PREFIX_2) }, |
c0f3af97 L |
5693 | }, |
5694 | ||
592a252b | 5695 | /* PREFIX_VEX_0F381C */ |
c0f3af97 | 5696 | { |
592d1631 L |
5697 | { Bad_Opcode }, |
5698 | { Bad_Opcode }, | |
6c30d220 | 5699 | { VEX_W_TABLE (VEX_W_0F381C_P_2) }, |
c0f3af97 L |
5700 | }, |
5701 | ||
592a252b | 5702 | /* PREFIX_VEX_0F381D */ |
c0f3af97 | 5703 | { |
592d1631 L |
5704 | { Bad_Opcode }, |
5705 | { Bad_Opcode }, | |
6c30d220 | 5706 | { VEX_W_TABLE (VEX_W_0F381D_P_2) }, |
c0f3af97 L |
5707 | }, |
5708 | ||
592a252b | 5709 | /* PREFIX_VEX_0F381E */ |
c0f3af97 | 5710 | { |
592d1631 L |
5711 | { Bad_Opcode }, |
5712 | { Bad_Opcode }, | |
6c30d220 | 5713 | { VEX_W_TABLE (VEX_W_0F381E_P_2) }, |
c0f3af97 L |
5714 | }, |
5715 | ||
592a252b | 5716 | /* PREFIX_VEX_0F3820 */ |
c0f3af97 | 5717 | { |
592d1631 L |
5718 | { Bad_Opcode }, |
5719 | { Bad_Opcode }, | |
6c30d220 | 5720 | { VEX_W_TABLE (VEX_W_0F3820_P_2) }, |
c0f3af97 L |
5721 | }, |
5722 | ||
592a252b | 5723 | /* PREFIX_VEX_0F3821 */ |
c0f3af97 | 5724 | { |
592d1631 L |
5725 | { Bad_Opcode }, |
5726 | { Bad_Opcode }, | |
6c30d220 | 5727 | { VEX_W_TABLE (VEX_W_0F3821_P_2) }, |
c0f3af97 L |
5728 | }, |
5729 | ||
592a252b | 5730 | /* PREFIX_VEX_0F3822 */ |
c0f3af97 | 5731 | { |
592d1631 L |
5732 | { Bad_Opcode }, |
5733 | { Bad_Opcode }, | |
6c30d220 | 5734 | { VEX_W_TABLE (VEX_W_0F3822_P_2) }, |
c0f3af97 L |
5735 | }, |
5736 | ||
592a252b | 5737 | /* PREFIX_VEX_0F3823 */ |
c0f3af97 | 5738 | { |
592d1631 L |
5739 | { Bad_Opcode }, |
5740 | { Bad_Opcode }, | |
6c30d220 | 5741 | { VEX_W_TABLE (VEX_W_0F3823_P_2) }, |
c0f3af97 L |
5742 | }, |
5743 | ||
592a252b | 5744 | /* PREFIX_VEX_0F3824 */ |
c0f3af97 | 5745 | { |
592d1631 L |
5746 | { Bad_Opcode }, |
5747 | { Bad_Opcode }, | |
6c30d220 | 5748 | { VEX_W_TABLE (VEX_W_0F3824_P_2) }, |
c0f3af97 L |
5749 | }, |
5750 | ||
592a252b | 5751 | /* PREFIX_VEX_0F3825 */ |
c0f3af97 | 5752 | { |
592d1631 L |
5753 | { Bad_Opcode }, |
5754 | { Bad_Opcode }, | |
6c30d220 | 5755 | { VEX_W_TABLE (VEX_W_0F3825_P_2) }, |
c0f3af97 L |
5756 | }, |
5757 | ||
592a252b | 5758 | /* PREFIX_VEX_0F3828 */ |
c0f3af97 | 5759 | { |
592d1631 L |
5760 | { Bad_Opcode }, |
5761 | { Bad_Opcode }, | |
6c30d220 | 5762 | { VEX_W_TABLE (VEX_W_0F3828_P_2) }, |
c0f3af97 L |
5763 | }, |
5764 | ||
592a252b | 5765 | /* PREFIX_VEX_0F3829 */ |
c0f3af97 | 5766 | { |
592d1631 L |
5767 | { Bad_Opcode }, |
5768 | { Bad_Opcode }, | |
6c30d220 | 5769 | { VEX_W_TABLE (VEX_W_0F3829_P_2) }, |
c0f3af97 L |
5770 | }, |
5771 | ||
592a252b | 5772 | /* PREFIX_VEX_0F382A */ |
c0f3af97 | 5773 | { |
592d1631 L |
5774 | { Bad_Opcode }, |
5775 | { Bad_Opcode }, | |
592a252b | 5776 | { MOD_TABLE (MOD_VEX_0F382A_PREFIX_2) }, |
c0f3af97 L |
5777 | }, |
5778 | ||
592a252b | 5779 | /* PREFIX_VEX_0F382B */ |
c0f3af97 | 5780 | { |
592d1631 L |
5781 | { Bad_Opcode }, |
5782 | { Bad_Opcode }, | |
6c30d220 | 5783 | { VEX_W_TABLE (VEX_W_0F382B_P_2) }, |
c0f3af97 L |
5784 | }, |
5785 | ||
592a252b | 5786 | /* PREFIX_VEX_0F382C */ |
c0f3af97 | 5787 | { |
592d1631 L |
5788 | { Bad_Opcode }, |
5789 | { Bad_Opcode }, | |
592a252b | 5790 | { MOD_TABLE (MOD_VEX_0F382C_PREFIX_2) }, |
c0f3af97 L |
5791 | }, |
5792 | ||
592a252b | 5793 | /* PREFIX_VEX_0F382D */ |
c0f3af97 | 5794 | { |
592d1631 L |
5795 | { Bad_Opcode }, |
5796 | { Bad_Opcode }, | |
592a252b | 5797 | { MOD_TABLE (MOD_VEX_0F382D_PREFIX_2) }, |
c0f3af97 L |
5798 | }, |
5799 | ||
592a252b | 5800 | /* PREFIX_VEX_0F382E */ |
c0f3af97 | 5801 | { |
592d1631 L |
5802 | { Bad_Opcode }, |
5803 | { Bad_Opcode }, | |
592a252b | 5804 | { MOD_TABLE (MOD_VEX_0F382E_PREFIX_2) }, |
c0f3af97 L |
5805 | }, |
5806 | ||
592a252b | 5807 | /* PREFIX_VEX_0F382F */ |
c0f3af97 | 5808 | { |
592d1631 L |
5809 | { Bad_Opcode }, |
5810 | { Bad_Opcode }, | |
592a252b | 5811 | { MOD_TABLE (MOD_VEX_0F382F_PREFIX_2) }, |
c0f3af97 L |
5812 | }, |
5813 | ||
592a252b | 5814 | /* PREFIX_VEX_0F3830 */ |
c0f3af97 | 5815 | { |
592d1631 L |
5816 | { Bad_Opcode }, |
5817 | { Bad_Opcode }, | |
6c30d220 | 5818 | { VEX_W_TABLE (VEX_W_0F3830_P_2) }, |
c0f3af97 L |
5819 | }, |
5820 | ||
592a252b | 5821 | /* PREFIX_VEX_0F3831 */ |
c0f3af97 | 5822 | { |
592d1631 L |
5823 | { Bad_Opcode }, |
5824 | { Bad_Opcode }, | |
6c30d220 | 5825 | { VEX_W_TABLE (VEX_W_0F3831_P_2) }, |
c0f3af97 L |
5826 | }, |
5827 | ||
592a252b | 5828 | /* PREFIX_VEX_0F3832 */ |
c0f3af97 | 5829 | { |
592d1631 L |
5830 | { Bad_Opcode }, |
5831 | { Bad_Opcode }, | |
6c30d220 | 5832 | { VEX_W_TABLE (VEX_W_0F3832_P_2) }, |
c0f3af97 L |
5833 | }, |
5834 | ||
592a252b | 5835 | /* PREFIX_VEX_0F3833 */ |
c0f3af97 | 5836 | { |
592d1631 L |
5837 | { Bad_Opcode }, |
5838 | { Bad_Opcode }, | |
6c30d220 | 5839 | { VEX_W_TABLE (VEX_W_0F3833_P_2) }, |
c0f3af97 L |
5840 | }, |
5841 | ||
592a252b | 5842 | /* PREFIX_VEX_0F3834 */ |
c0f3af97 | 5843 | { |
592d1631 L |
5844 | { Bad_Opcode }, |
5845 | { Bad_Opcode }, | |
6c30d220 | 5846 | { VEX_W_TABLE (VEX_W_0F3834_P_2) }, |
c0f3af97 L |
5847 | }, |
5848 | ||
592a252b | 5849 | /* PREFIX_VEX_0F3835 */ |
c0f3af97 | 5850 | { |
592d1631 L |
5851 | { Bad_Opcode }, |
5852 | { Bad_Opcode }, | |
6c30d220 L |
5853 | { VEX_W_TABLE (VEX_W_0F3835_P_2) }, |
5854 | }, | |
5855 | ||
5856 | /* PREFIX_VEX_0F3836 */ | |
5857 | { | |
5858 | { Bad_Opcode }, | |
5859 | { Bad_Opcode }, | |
5860 | { VEX_LEN_TABLE (VEX_LEN_0F3836_P_2) }, | |
c0f3af97 L |
5861 | }, |
5862 | ||
592a252b | 5863 | /* PREFIX_VEX_0F3837 */ |
c0f3af97 | 5864 | { |
592d1631 L |
5865 | { Bad_Opcode }, |
5866 | { Bad_Opcode }, | |
6c30d220 | 5867 | { VEX_W_TABLE (VEX_W_0F3837_P_2) }, |
c0f3af97 L |
5868 | }, |
5869 | ||
592a252b | 5870 | /* PREFIX_VEX_0F3838 */ |
c0f3af97 | 5871 | { |
592d1631 L |
5872 | { Bad_Opcode }, |
5873 | { Bad_Opcode }, | |
6c30d220 | 5874 | { VEX_W_TABLE (VEX_W_0F3838_P_2) }, |
c0f3af97 L |
5875 | }, |
5876 | ||
592a252b | 5877 | /* PREFIX_VEX_0F3839 */ |
c0f3af97 | 5878 | { |
592d1631 L |
5879 | { Bad_Opcode }, |
5880 | { Bad_Opcode }, | |
6c30d220 | 5881 | { VEX_W_TABLE (VEX_W_0F3839_P_2) }, |
c0f3af97 L |
5882 | }, |
5883 | ||
592a252b | 5884 | /* PREFIX_VEX_0F383A */ |
c0f3af97 | 5885 | { |
592d1631 L |
5886 | { Bad_Opcode }, |
5887 | { Bad_Opcode }, | |
6c30d220 | 5888 | { VEX_W_TABLE (VEX_W_0F383A_P_2) }, |
c0f3af97 L |
5889 | }, |
5890 | ||
592a252b | 5891 | /* PREFIX_VEX_0F383B */ |
c0f3af97 | 5892 | { |
592d1631 L |
5893 | { Bad_Opcode }, |
5894 | { Bad_Opcode }, | |
6c30d220 | 5895 | { VEX_W_TABLE (VEX_W_0F383B_P_2) }, |
c0f3af97 L |
5896 | }, |
5897 | ||
592a252b | 5898 | /* PREFIX_VEX_0F383C */ |
c0f3af97 | 5899 | { |
592d1631 L |
5900 | { Bad_Opcode }, |
5901 | { Bad_Opcode }, | |
6c30d220 | 5902 | { VEX_W_TABLE (VEX_W_0F383C_P_2) }, |
c0f3af97 L |
5903 | }, |
5904 | ||
592a252b | 5905 | /* PREFIX_VEX_0F383D */ |
c0f3af97 | 5906 | { |
592d1631 L |
5907 | { Bad_Opcode }, |
5908 | { Bad_Opcode }, | |
6c30d220 | 5909 | { VEX_W_TABLE (VEX_W_0F383D_P_2) }, |
c0f3af97 L |
5910 | }, |
5911 | ||
592a252b | 5912 | /* PREFIX_VEX_0F383E */ |
c0f3af97 | 5913 | { |
592d1631 L |
5914 | { Bad_Opcode }, |
5915 | { Bad_Opcode }, | |
6c30d220 | 5916 | { VEX_W_TABLE (VEX_W_0F383E_P_2) }, |
c0f3af97 L |
5917 | }, |
5918 | ||
592a252b | 5919 | /* PREFIX_VEX_0F383F */ |
c0f3af97 | 5920 | { |
592d1631 L |
5921 | { Bad_Opcode }, |
5922 | { Bad_Opcode }, | |
6c30d220 | 5923 | { VEX_W_TABLE (VEX_W_0F383F_P_2) }, |
c0f3af97 L |
5924 | }, |
5925 | ||
592a252b | 5926 | /* PREFIX_VEX_0F3840 */ |
c0f3af97 | 5927 | { |
592d1631 L |
5928 | { Bad_Opcode }, |
5929 | { Bad_Opcode }, | |
6c30d220 | 5930 | { VEX_W_TABLE (VEX_W_0F3840_P_2) }, |
c0f3af97 L |
5931 | }, |
5932 | ||
592a252b | 5933 | /* PREFIX_VEX_0F3841 */ |
c0f3af97 | 5934 | { |
592d1631 L |
5935 | { Bad_Opcode }, |
5936 | { Bad_Opcode }, | |
592a252b | 5937 | { VEX_LEN_TABLE (VEX_LEN_0F3841_P_2) }, |
c0f3af97 L |
5938 | }, |
5939 | ||
6c30d220 L |
5940 | /* PREFIX_VEX_0F3845 */ |
5941 | { | |
5942 | { Bad_Opcode }, | |
5943 | { Bad_Opcode }, | |
bf890a93 | 5944 | { "vpsrlv%LW", { XM, Vex, EXx }, 0 }, |
6c30d220 L |
5945 | }, |
5946 | ||
5947 | /* PREFIX_VEX_0F3846 */ | |
5948 | { | |
5949 | { Bad_Opcode }, | |
5950 | { Bad_Opcode }, | |
5951 | { VEX_W_TABLE (VEX_W_0F3846_P_2) }, | |
5952 | }, | |
5953 | ||
5954 | /* PREFIX_VEX_0F3847 */ | |
5955 | { | |
5956 | { Bad_Opcode }, | |
5957 | { Bad_Opcode }, | |
bf890a93 | 5958 | { "vpsllv%LW", { XM, Vex, EXx }, 0 }, |
6c30d220 L |
5959 | }, |
5960 | ||
5961 | /* PREFIX_VEX_0F3858 */ | |
5962 | { | |
5963 | { Bad_Opcode }, | |
5964 | { Bad_Opcode }, | |
5965 | { VEX_W_TABLE (VEX_W_0F3858_P_2) }, | |
5966 | }, | |
5967 | ||
5968 | /* PREFIX_VEX_0F3859 */ | |
5969 | { | |
5970 | { Bad_Opcode }, | |
5971 | { Bad_Opcode }, | |
5972 | { VEX_W_TABLE (VEX_W_0F3859_P_2) }, | |
5973 | }, | |
5974 | ||
5975 | /* PREFIX_VEX_0F385A */ | |
5976 | { | |
5977 | { Bad_Opcode }, | |
5978 | { Bad_Opcode }, | |
5979 | { MOD_TABLE (MOD_VEX_0F385A_PREFIX_2) }, | |
5980 | }, | |
5981 | ||
5982 | /* PREFIX_VEX_0F3878 */ | |
5983 | { | |
5984 | { Bad_Opcode }, | |
5985 | { Bad_Opcode }, | |
5986 | { VEX_W_TABLE (VEX_W_0F3878_P_2) }, | |
5987 | }, | |
5988 | ||
5989 | /* PREFIX_VEX_0F3879 */ | |
5990 | { | |
5991 | { Bad_Opcode }, | |
5992 | { Bad_Opcode }, | |
5993 | { VEX_W_TABLE (VEX_W_0F3879_P_2) }, | |
5994 | }, | |
5995 | ||
5996 | /* PREFIX_VEX_0F388C */ | |
5997 | { | |
5998 | { Bad_Opcode }, | |
5999 | { Bad_Opcode }, | |
f7002f42 | 6000 | { MOD_TABLE (MOD_VEX_0F388C_PREFIX_2) }, |
6c30d220 L |
6001 | }, |
6002 | ||
6003 | /* PREFIX_VEX_0F388E */ | |
6004 | { | |
6005 | { Bad_Opcode }, | |
6006 | { Bad_Opcode }, | |
f7002f42 | 6007 | { MOD_TABLE (MOD_VEX_0F388E_PREFIX_2) }, |
6c30d220 L |
6008 | }, |
6009 | ||
6010 | /* PREFIX_VEX_0F3890 */ | |
6011 | { | |
6012 | { Bad_Opcode }, | |
6013 | { Bad_Opcode }, | |
bf890a93 | 6014 | { "vpgatherd%LW", { XM, MVexVSIBDWpX, Vex }, 0 }, |
6c30d220 L |
6015 | }, |
6016 | ||
6017 | /* PREFIX_VEX_0F3891 */ | |
6018 | { | |
6019 | { Bad_Opcode }, | |
6020 | { Bad_Opcode }, | |
bf890a93 | 6021 | { "vpgatherq%LW", { XMGatherQ, MVexVSIBQWpX, VexGatherQ }, 0 }, |
6c30d220 L |
6022 | }, |
6023 | ||
6024 | /* PREFIX_VEX_0F3892 */ | |
6025 | { | |
6026 | { Bad_Opcode }, | |
6027 | { Bad_Opcode }, | |
bf890a93 | 6028 | { "vgatherdp%XW", { XM, MVexVSIBDWpX, Vex }, 0 }, |
6c30d220 L |
6029 | }, |
6030 | ||
6031 | /* PREFIX_VEX_0F3893 */ | |
6032 | { | |
6033 | { Bad_Opcode }, | |
6034 | { Bad_Opcode }, | |
bf890a93 | 6035 | { "vgatherqp%XW", { XMGatherQ, MVexVSIBQWpX, VexGatherQ }, 0 }, |
6c30d220 L |
6036 | }, |
6037 | ||
592a252b | 6038 | /* PREFIX_VEX_0F3896 */ |
a5ff0eb2 | 6039 | { |
592d1631 L |
6040 | { Bad_Opcode }, |
6041 | { Bad_Opcode }, | |
bf890a93 | 6042 | { "vfmaddsub132p%XW", { XM, Vex, EXx }, 0 }, |
a5ff0eb2 L |
6043 | }, |
6044 | ||
592a252b | 6045 | /* PREFIX_VEX_0F3897 */ |
a5ff0eb2 | 6046 | { |
592d1631 L |
6047 | { Bad_Opcode }, |
6048 | { Bad_Opcode }, | |
bf890a93 | 6049 | { "vfmsubadd132p%XW", { XM, Vex, EXx }, 0 }, |
a5ff0eb2 L |
6050 | }, |
6051 | ||
592a252b | 6052 | /* PREFIX_VEX_0F3898 */ |
a5ff0eb2 | 6053 | { |
592d1631 L |
6054 | { Bad_Opcode }, |
6055 | { Bad_Opcode }, | |
bf890a93 | 6056 | { "vfmadd132p%XW", { XM, Vex, EXx }, 0 }, |
a5ff0eb2 L |
6057 | }, |
6058 | ||
592a252b | 6059 | /* PREFIX_VEX_0F3899 */ |
a5ff0eb2 | 6060 | { |
592d1631 L |
6061 | { Bad_Opcode }, |
6062 | { Bad_Opcode }, | |
bf890a93 | 6063 | { "vfmadd132s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
a5ff0eb2 L |
6064 | }, |
6065 | ||
592a252b | 6066 | /* PREFIX_VEX_0F389A */ |
a5ff0eb2 | 6067 | { |
592d1631 L |
6068 | { Bad_Opcode }, |
6069 | { Bad_Opcode }, | |
bf890a93 | 6070 | { "vfmsub132p%XW", { XM, Vex, EXx }, 0 }, |
a5ff0eb2 L |
6071 | }, |
6072 | ||
592a252b | 6073 | /* PREFIX_VEX_0F389B */ |
c0f3af97 | 6074 | { |
592d1631 L |
6075 | { Bad_Opcode }, |
6076 | { Bad_Opcode }, | |
bf890a93 | 6077 | { "vfmsub132s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6078 | }, |
6079 | ||
592a252b | 6080 | /* PREFIX_VEX_0F389C */ |
c0f3af97 | 6081 | { |
592d1631 L |
6082 | { Bad_Opcode }, |
6083 | { Bad_Opcode }, | |
bf890a93 | 6084 | { "vfnmadd132p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6085 | }, |
6086 | ||
592a252b | 6087 | /* PREFIX_VEX_0F389D */ |
c0f3af97 | 6088 | { |
592d1631 L |
6089 | { Bad_Opcode }, |
6090 | { Bad_Opcode }, | |
bf890a93 | 6091 | { "vfnmadd132s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6092 | }, |
6093 | ||
592a252b | 6094 | /* PREFIX_VEX_0F389E */ |
c0f3af97 | 6095 | { |
592d1631 L |
6096 | { Bad_Opcode }, |
6097 | { Bad_Opcode }, | |
bf890a93 | 6098 | { "vfnmsub132p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6099 | }, |
6100 | ||
592a252b | 6101 | /* PREFIX_VEX_0F389F */ |
c0f3af97 | 6102 | { |
592d1631 L |
6103 | { Bad_Opcode }, |
6104 | { Bad_Opcode }, | |
bf890a93 | 6105 | { "vfnmsub132s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6106 | }, |
6107 | ||
592a252b | 6108 | /* PREFIX_VEX_0F38A6 */ |
c0f3af97 | 6109 | { |
592d1631 L |
6110 | { Bad_Opcode }, |
6111 | { Bad_Opcode }, | |
bf890a93 | 6112 | { "vfmaddsub213p%XW", { XM, Vex, EXx }, 0 }, |
592d1631 | 6113 | { Bad_Opcode }, |
c0f3af97 L |
6114 | }, |
6115 | ||
592a252b | 6116 | /* PREFIX_VEX_0F38A7 */ |
c0f3af97 | 6117 | { |
592d1631 L |
6118 | { Bad_Opcode }, |
6119 | { Bad_Opcode }, | |
bf890a93 | 6120 | { "vfmsubadd213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6121 | }, |
6122 | ||
592a252b | 6123 | /* PREFIX_VEX_0F38A8 */ |
c0f3af97 | 6124 | { |
592d1631 L |
6125 | { Bad_Opcode }, |
6126 | { Bad_Opcode }, | |
bf890a93 | 6127 | { "vfmadd213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6128 | }, |
6129 | ||
592a252b | 6130 | /* PREFIX_VEX_0F38A9 */ |
c0f3af97 | 6131 | { |
592d1631 L |
6132 | { Bad_Opcode }, |
6133 | { Bad_Opcode }, | |
bf890a93 | 6134 | { "vfmadd213s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6135 | }, |
6136 | ||
592a252b | 6137 | /* PREFIX_VEX_0F38AA */ |
c0f3af97 | 6138 | { |
592d1631 L |
6139 | { Bad_Opcode }, |
6140 | { Bad_Opcode }, | |
bf890a93 | 6141 | { "vfmsub213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6142 | }, |
6143 | ||
592a252b | 6144 | /* PREFIX_VEX_0F38AB */ |
c0f3af97 | 6145 | { |
592d1631 L |
6146 | { Bad_Opcode }, |
6147 | { Bad_Opcode }, | |
bf890a93 | 6148 | { "vfmsub213s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6149 | }, |
6150 | ||
592a252b | 6151 | /* PREFIX_VEX_0F38AC */ |
c0f3af97 | 6152 | { |
592d1631 L |
6153 | { Bad_Opcode }, |
6154 | { Bad_Opcode }, | |
bf890a93 | 6155 | { "vfnmadd213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6156 | }, |
6157 | ||
592a252b | 6158 | /* PREFIX_VEX_0F38AD */ |
c0f3af97 | 6159 | { |
592d1631 L |
6160 | { Bad_Opcode }, |
6161 | { Bad_Opcode }, | |
bf890a93 | 6162 | { "vfnmadd213s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6163 | }, |
6164 | ||
592a252b | 6165 | /* PREFIX_VEX_0F38AE */ |
c0f3af97 | 6166 | { |
592d1631 L |
6167 | { Bad_Opcode }, |
6168 | { Bad_Opcode }, | |
bf890a93 | 6169 | { "vfnmsub213p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6170 | }, |
6171 | ||
592a252b | 6172 | /* PREFIX_VEX_0F38AF */ |
c0f3af97 | 6173 | { |
592d1631 L |
6174 | { Bad_Opcode }, |
6175 | { Bad_Opcode }, | |
bf890a93 | 6176 | { "vfnmsub213s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6177 | }, |
6178 | ||
592a252b | 6179 | /* PREFIX_VEX_0F38B6 */ |
c0f3af97 | 6180 | { |
592d1631 L |
6181 | { Bad_Opcode }, |
6182 | { Bad_Opcode }, | |
bf890a93 | 6183 | { "vfmaddsub231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6184 | }, |
6185 | ||
592a252b | 6186 | /* PREFIX_VEX_0F38B7 */ |
c0f3af97 | 6187 | { |
592d1631 L |
6188 | { Bad_Opcode }, |
6189 | { Bad_Opcode }, | |
bf890a93 | 6190 | { "vfmsubadd231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6191 | }, |
6192 | ||
592a252b | 6193 | /* PREFIX_VEX_0F38B8 */ |
c0f3af97 | 6194 | { |
592d1631 L |
6195 | { Bad_Opcode }, |
6196 | { Bad_Opcode }, | |
bf890a93 | 6197 | { "vfmadd231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6198 | }, |
6199 | ||
592a252b | 6200 | /* PREFIX_VEX_0F38B9 */ |
c0f3af97 | 6201 | { |
592d1631 L |
6202 | { Bad_Opcode }, |
6203 | { Bad_Opcode }, | |
bf890a93 | 6204 | { "vfmadd231s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6205 | }, |
6206 | ||
592a252b | 6207 | /* PREFIX_VEX_0F38BA */ |
c0f3af97 | 6208 | { |
592d1631 L |
6209 | { Bad_Opcode }, |
6210 | { Bad_Opcode }, | |
bf890a93 | 6211 | { "vfmsub231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6212 | }, |
6213 | ||
592a252b | 6214 | /* PREFIX_VEX_0F38BB */ |
c0f3af97 | 6215 | { |
592d1631 L |
6216 | { Bad_Opcode }, |
6217 | { Bad_Opcode }, | |
bf890a93 | 6218 | { "vfmsub231s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6219 | }, |
6220 | ||
592a252b | 6221 | /* PREFIX_VEX_0F38BC */ |
c0f3af97 | 6222 | { |
592d1631 L |
6223 | { Bad_Opcode }, |
6224 | { Bad_Opcode }, | |
bf890a93 | 6225 | { "vfnmadd231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6226 | }, |
6227 | ||
592a252b | 6228 | /* PREFIX_VEX_0F38BD */ |
c0f3af97 | 6229 | { |
592d1631 L |
6230 | { Bad_Opcode }, |
6231 | { Bad_Opcode }, | |
bf890a93 | 6232 | { "vfnmadd231s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6233 | }, |
6234 | ||
592a252b | 6235 | /* PREFIX_VEX_0F38BE */ |
c0f3af97 | 6236 | { |
592d1631 L |
6237 | { Bad_Opcode }, |
6238 | { Bad_Opcode }, | |
bf890a93 | 6239 | { "vfnmsub231p%XW", { XM, Vex, EXx }, 0 }, |
c0f3af97 L |
6240 | }, |
6241 | ||
592a252b | 6242 | /* PREFIX_VEX_0F38BF */ |
c0f3af97 | 6243 | { |
592d1631 L |
6244 | { Bad_Opcode }, |
6245 | { Bad_Opcode }, | |
bf890a93 | 6246 | { "vfnmsub231s%XW", { XMScalar, VexScalar, EXVexWdqScalar }, 0 }, |
c0f3af97 L |
6247 | }, |
6248 | ||
592a252b | 6249 | /* PREFIX_VEX_0F38DB */ |
c0f3af97 | 6250 | { |
592d1631 L |
6251 | { Bad_Opcode }, |
6252 | { Bad_Opcode }, | |
592a252b | 6253 | { VEX_LEN_TABLE (VEX_LEN_0F38DB_P_2) }, |
c0f3af97 L |
6254 | }, |
6255 | ||
592a252b | 6256 | /* PREFIX_VEX_0F38DC */ |
c0f3af97 | 6257 | { |
592d1631 L |
6258 | { Bad_Opcode }, |
6259 | { Bad_Opcode }, | |
592a252b | 6260 | { VEX_LEN_TABLE (VEX_LEN_0F38DC_P_2) }, |
c0f3af97 L |
6261 | }, |
6262 | ||
592a252b | 6263 | /* PREFIX_VEX_0F38DD */ |
c0f3af97 | 6264 | { |
592d1631 L |
6265 | { Bad_Opcode }, |
6266 | { Bad_Opcode }, | |
592a252b | 6267 | { VEX_LEN_TABLE (VEX_LEN_0F38DD_P_2) }, |
c0f3af97 L |
6268 | }, |
6269 | ||
592a252b | 6270 | /* PREFIX_VEX_0F38DE */ |
c0f3af97 | 6271 | { |
592d1631 L |
6272 | { Bad_Opcode }, |
6273 | { Bad_Opcode }, | |
592a252b | 6274 | { VEX_LEN_TABLE (VEX_LEN_0F38DE_P_2) }, |
c0f3af97 L |
6275 | }, |
6276 | ||
592a252b | 6277 | /* PREFIX_VEX_0F38DF */ |
c0f3af97 | 6278 | { |
592d1631 L |
6279 | { Bad_Opcode }, |
6280 | { Bad_Opcode }, | |
592a252b | 6281 | { VEX_LEN_TABLE (VEX_LEN_0F38DF_P_2) }, |
c0f3af97 L |
6282 | }, |
6283 | ||
f12dc422 L |
6284 | /* PREFIX_VEX_0F38F2 */ |
6285 | { | |
6286 | { VEX_LEN_TABLE (VEX_LEN_0F38F2_P_0) }, | |
6287 | }, | |
6288 | ||
6289 | /* PREFIX_VEX_0F38F3_REG_1 */ | |
6290 | { | |
6291 | { VEX_LEN_TABLE (VEX_LEN_0F38F3_R_1_P_0) }, | |
6292 | }, | |
6293 | ||
6294 | /* PREFIX_VEX_0F38F3_REG_2 */ | |
6295 | { | |
6296 | { VEX_LEN_TABLE (VEX_LEN_0F38F3_R_2_P_0) }, | |
6297 | }, | |
6298 | ||
6299 | /* PREFIX_VEX_0F38F3_REG_3 */ | |
6300 | { | |
6301 | { VEX_LEN_TABLE (VEX_LEN_0F38F3_R_3_P_0) }, | |
6302 | }, | |
6303 | ||
6c30d220 L |
6304 | /* PREFIX_VEX_0F38F5 */ |
6305 | { | |
6306 | { VEX_LEN_TABLE (VEX_LEN_0F38F5_P_0) }, | |
6307 | { VEX_LEN_TABLE (VEX_LEN_0F38F5_P_1) }, | |
6308 | { Bad_Opcode }, | |
6309 | { VEX_LEN_TABLE (VEX_LEN_0F38F5_P_3) }, | |
6310 | }, | |
6311 | ||
6312 | /* PREFIX_VEX_0F38F6 */ | |
6313 | { | |
6314 | { Bad_Opcode }, | |
6315 | { Bad_Opcode }, | |
6316 | { Bad_Opcode }, | |
6317 | { VEX_LEN_TABLE (VEX_LEN_0F38F6_P_3) }, | |
6318 | }, | |
6319 | ||
f12dc422 L |
6320 | /* PREFIX_VEX_0F38F7 */ |
6321 | { | |
6322 | { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_0) }, | |
6c30d220 L |
6323 | { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_1) }, |
6324 | { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_2) }, | |
6325 | { VEX_LEN_TABLE (VEX_LEN_0F38F7_P_3) }, | |
6326 | }, | |
6327 | ||
6328 | /* PREFIX_VEX_0F3A00 */ | |
6329 | { | |
6330 | { Bad_Opcode }, | |
6331 | { Bad_Opcode }, | |
6332 | { VEX_LEN_TABLE (VEX_LEN_0F3A00_P_2) }, | |
6333 | }, | |
6334 | ||
6335 | /* PREFIX_VEX_0F3A01 */ | |
6336 | { | |
6337 | { Bad_Opcode }, | |
6338 | { Bad_Opcode }, | |
6339 | { VEX_LEN_TABLE (VEX_LEN_0F3A01_P_2) }, | |
6340 | }, | |
6341 | ||
6342 | /* PREFIX_VEX_0F3A02 */ | |
6343 | { | |
6344 | { Bad_Opcode }, | |
6345 | { Bad_Opcode }, | |
6346 | { VEX_W_TABLE (VEX_W_0F3A02_P_2) }, | |
f12dc422 L |
6347 | }, |
6348 | ||
592a252b | 6349 | /* PREFIX_VEX_0F3A04 */ |
c0f3af97 | 6350 | { |
592d1631 L |
6351 | { Bad_Opcode }, |
6352 | { Bad_Opcode }, | |
592a252b | 6353 | { VEX_W_TABLE (VEX_W_0F3A04_P_2) }, |
c0f3af97 L |
6354 | }, |
6355 | ||
592a252b | 6356 | /* PREFIX_VEX_0F3A05 */ |
c0f3af97 | 6357 | { |
592d1631 L |
6358 | { Bad_Opcode }, |
6359 | { Bad_Opcode }, | |
592a252b | 6360 | { VEX_W_TABLE (VEX_W_0F3A05_P_2) }, |
c0f3af97 L |
6361 | }, |
6362 | ||
592a252b | 6363 | /* PREFIX_VEX_0F3A06 */ |
c0f3af97 | 6364 | { |
592d1631 L |
6365 | { Bad_Opcode }, |
6366 | { Bad_Opcode }, | |
592a252b | 6367 | { VEX_LEN_TABLE (VEX_LEN_0F3A06_P_2) }, |
c0f3af97 L |
6368 | }, |
6369 | ||
592a252b | 6370 | /* PREFIX_VEX_0F3A08 */ |
c0f3af97 | 6371 | { |
592d1631 L |
6372 | { Bad_Opcode }, |
6373 | { Bad_Opcode }, | |
592a252b | 6374 | { VEX_W_TABLE (VEX_W_0F3A08_P_2) }, |
c0f3af97 L |
6375 | }, |
6376 | ||
592a252b | 6377 | /* PREFIX_VEX_0F3A09 */ |
c0f3af97 | 6378 | { |
592d1631 L |
6379 | { Bad_Opcode }, |
6380 | { Bad_Opcode }, | |
592a252b | 6381 | { VEX_W_TABLE (VEX_W_0F3A09_P_2) }, |
c0f3af97 L |
6382 | }, |
6383 | ||
592a252b | 6384 | /* PREFIX_VEX_0F3A0A */ |
c0f3af97 | 6385 | { |
592d1631 L |
6386 | { Bad_Opcode }, |
6387 | { Bad_Opcode }, | |
592a252b | 6388 | { VEX_LEN_TABLE (VEX_LEN_0F3A0A_P_2) }, |
0bfee649 L |
6389 | }, |
6390 | ||
592a252b | 6391 | /* PREFIX_VEX_0F3A0B */ |
0bfee649 | 6392 | { |
592d1631 L |
6393 | { Bad_Opcode }, |
6394 | { Bad_Opcode }, | |
592a252b | 6395 | { VEX_LEN_TABLE (VEX_LEN_0F3A0B_P_2) }, |
0bfee649 L |
6396 | }, |
6397 | ||
592a252b | 6398 | /* PREFIX_VEX_0F3A0C */ |
0bfee649 | 6399 | { |
592d1631 L |
6400 | { Bad_Opcode }, |
6401 | { Bad_Opcode }, | |
592a252b | 6402 | { VEX_W_TABLE (VEX_W_0F3A0C_P_2) }, |
0bfee649 L |
6403 | }, |
6404 | ||
592a252b | 6405 | /* PREFIX_VEX_0F3A0D */ |
0bfee649 | 6406 | { |
592d1631 L |
6407 | { Bad_Opcode }, |
6408 | { Bad_Opcode }, | |
592a252b | 6409 | { VEX_W_TABLE (VEX_W_0F3A0D_P_2) }, |
c0f3af97 L |
6410 | }, |
6411 | ||
592a252b | 6412 | /* PREFIX_VEX_0F3A0E */ |
0bfee649 | 6413 | { |
592d1631 L |
6414 | { Bad_Opcode }, |
6415 | { Bad_Opcode }, | |
6c30d220 | 6416 | { VEX_W_TABLE (VEX_W_0F3A0E_P_2) }, |
0bfee649 L |
6417 | }, |
6418 | ||
592a252b | 6419 | /* PREFIX_VEX_0F3A0F */ |
0bfee649 | 6420 | { |
592d1631 L |
6421 | { Bad_Opcode }, |
6422 | { Bad_Opcode }, | |
6c30d220 | 6423 | { VEX_W_TABLE (VEX_W_0F3A0F_P_2) }, |
0bfee649 L |
6424 | }, |
6425 | ||
592a252b | 6426 | /* PREFIX_VEX_0F3A14 */ |
0bfee649 | 6427 | { |
592d1631 L |
6428 | { Bad_Opcode }, |
6429 | { Bad_Opcode }, | |
592a252b | 6430 | { VEX_LEN_TABLE (VEX_LEN_0F3A14_P_2) }, |
0bfee649 L |
6431 | }, |
6432 | ||
592a252b | 6433 | /* PREFIX_VEX_0F3A15 */ |
0bfee649 | 6434 | { |
592d1631 L |
6435 | { Bad_Opcode }, |
6436 | { Bad_Opcode }, | |
592a252b | 6437 | { VEX_LEN_TABLE (VEX_LEN_0F3A15_P_2) }, |
0bfee649 L |
6438 | }, |
6439 | ||
592a252b | 6440 | /* PREFIX_VEX_0F3A16 */ |
c0f3af97 | 6441 | { |
592d1631 L |
6442 | { Bad_Opcode }, |
6443 | { Bad_Opcode }, | |
592a252b | 6444 | { VEX_LEN_TABLE (VEX_LEN_0F3A16_P_2) }, |
c0f3af97 L |
6445 | }, |
6446 | ||
592a252b | 6447 | /* PREFIX_VEX_0F3A17 */ |
c0f3af97 | 6448 | { |
592d1631 L |
6449 | { Bad_Opcode }, |
6450 | { Bad_Opcode }, | |
592a252b | 6451 | { VEX_LEN_TABLE (VEX_LEN_0F3A17_P_2) }, |
c0f3af97 L |
6452 | }, |
6453 | ||
592a252b | 6454 | /* PREFIX_VEX_0F3A18 */ |
c0f3af97 | 6455 | { |
592d1631 L |
6456 | { Bad_Opcode }, |
6457 | { Bad_Opcode }, | |
592a252b | 6458 | { VEX_LEN_TABLE (VEX_LEN_0F3A18_P_2) }, |
c0f3af97 L |
6459 | }, |
6460 | ||
592a252b | 6461 | /* PREFIX_VEX_0F3A19 */ |
c0f3af97 | 6462 | { |
592d1631 L |
6463 | { Bad_Opcode }, |
6464 | { Bad_Opcode }, | |
592a252b | 6465 | { VEX_LEN_TABLE (VEX_LEN_0F3A19_P_2) }, |
c0f3af97 L |
6466 | }, |
6467 | ||
592a252b | 6468 | /* PREFIX_VEX_0F3A1D */ |
c7b8aa3a L |
6469 | { |
6470 | { Bad_Opcode }, | |
6471 | { Bad_Opcode }, | |
bf890a93 | 6472 | { "vcvtps2ph", { EXxmmq, XM, Ib }, 0 }, |
c7b8aa3a L |
6473 | }, |
6474 | ||
592a252b | 6475 | /* PREFIX_VEX_0F3A20 */ |
c0f3af97 | 6476 | { |
592d1631 L |
6477 | { Bad_Opcode }, |
6478 | { Bad_Opcode }, | |
592a252b | 6479 | { VEX_LEN_TABLE (VEX_LEN_0F3A20_P_2) }, |
c0f3af97 L |
6480 | }, |
6481 | ||
592a252b | 6482 | /* PREFIX_VEX_0F3A21 */ |
c0f3af97 | 6483 | { |
592d1631 L |
6484 | { Bad_Opcode }, |
6485 | { Bad_Opcode }, | |
592a252b | 6486 | { VEX_LEN_TABLE (VEX_LEN_0F3A21_P_2) }, |
c0f3af97 L |
6487 | }, |
6488 | ||
592a252b | 6489 | /* PREFIX_VEX_0F3A22 */ |
0bfee649 | 6490 | { |
592d1631 L |
6491 | { Bad_Opcode }, |
6492 | { Bad_Opcode }, | |
592a252b | 6493 | { VEX_LEN_TABLE (VEX_LEN_0F3A22_P_2) }, |
0bfee649 L |
6494 | }, |
6495 | ||
43234a1e L |
6496 | /* PREFIX_VEX_0F3A30 */ |
6497 | { | |
6498 | { Bad_Opcode }, | |
6499 | { Bad_Opcode }, | |
6500 | { VEX_LEN_TABLE (VEX_LEN_0F3A30_P_2) }, | |
6501 | }, | |
6502 | ||
1ba585e8 IT |
6503 | /* PREFIX_VEX_0F3A31 */ |
6504 | { | |
6505 | { Bad_Opcode }, | |
6506 | { Bad_Opcode }, | |
6507 | { VEX_LEN_TABLE (VEX_LEN_0F3A31_P_2) }, | |
6508 | }, | |
6509 | ||
43234a1e L |
6510 | /* PREFIX_VEX_0F3A32 */ |
6511 | { | |
6512 | { Bad_Opcode }, | |
6513 | { Bad_Opcode }, | |
6514 | { VEX_LEN_TABLE (VEX_LEN_0F3A32_P_2) }, | |
6515 | }, | |
6516 | ||
1ba585e8 IT |
6517 | /* PREFIX_VEX_0F3A33 */ |
6518 | { | |
6519 | { Bad_Opcode }, | |
6520 | { Bad_Opcode }, | |
6521 | { VEX_LEN_TABLE (VEX_LEN_0F3A33_P_2) }, | |
6522 | }, | |
6523 | ||
6c30d220 L |
6524 | /* PREFIX_VEX_0F3A38 */ |
6525 | { | |
6526 | { Bad_Opcode }, | |
6527 | { Bad_Opcode }, | |
6528 | { VEX_LEN_TABLE (VEX_LEN_0F3A38_P_2) }, | |
6529 | }, | |
6530 | ||
6531 | /* PREFIX_VEX_0F3A39 */ | |
6532 | { | |
6533 | { Bad_Opcode }, | |
6534 | { Bad_Opcode }, | |
6535 | { VEX_LEN_TABLE (VEX_LEN_0F3A39_P_2) }, | |
6536 | }, | |
6537 | ||
592a252b | 6538 | /* PREFIX_VEX_0F3A40 */ |
c0f3af97 | 6539 | { |
592d1631 L |
6540 | { Bad_Opcode }, |
6541 | { Bad_Opcode }, | |
592a252b | 6542 | { VEX_W_TABLE (VEX_W_0F3A40_P_2) }, |
c0f3af97 L |
6543 | }, |
6544 | ||
592a252b | 6545 | /* PREFIX_VEX_0F3A41 */ |
c0f3af97 | 6546 | { |
592d1631 L |
6547 | { Bad_Opcode }, |
6548 | { Bad_Opcode }, | |
592a252b | 6549 | { VEX_LEN_TABLE (VEX_LEN_0F3A41_P_2) }, |
c0f3af97 L |
6550 | }, |
6551 | ||
592a252b | 6552 | /* PREFIX_VEX_0F3A42 */ |
c0f3af97 | 6553 | { |
592d1631 L |
6554 | { Bad_Opcode }, |
6555 | { Bad_Opcode }, | |
6c30d220 | 6556 | { VEX_W_TABLE (VEX_W_0F3A42_P_2) }, |
c0f3af97 L |
6557 | }, |
6558 | ||
592a252b | 6559 | /* PREFIX_VEX_0F3A44 */ |
ce2f5b3c | 6560 | { |
592d1631 L |
6561 | { Bad_Opcode }, |
6562 | { Bad_Opcode }, | |
592a252b | 6563 | { VEX_LEN_TABLE (VEX_LEN_0F3A44_P_2) }, |
ce2f5b3c L |
6564 | }, |
6565 | ||
6c30d220 L |
6566 | /* PREFIX_VEX_0F3A46 */ |
6567 | { | |
6568 | { Bad_Opcode }, | |
6569 | { Bad_Opcode }, | |
6570 | { VEX_LEN_TABLE (VEX_LEN_0F3A46_P_2) }, | |
6571 | }, | |
6572 | ||
592a252b | 6573 | /* PREFIX_VEX_0F3A48 */ |
a683cc34 SP |
6574 | { |
6575 | { Bad_Opcode }, | |
6576 | { Bad_Opcode }, | |
592a252b | 6577 | { VEX_W_TABLE (VEX_W_0F3A48_P_2) }, |
a683cc34 SP |
6578 | }, |
6579 | ||
592a252b | 6580 | /* PREFIX_VEX_0F3A49 */ |
a683cc34 SP |
6581 | { |
6582 | { Bad_Opcode }, | |
6583 | { Bad_Opcode }, | |
592a252b | 6584 | { VEX_W_TABLE (VEX_W_0F3A49_P_2) }, |
a683cc34 SP |
6585 | }, |
6586 | ||
592a252b | 6587 | /* PREFIX_VEX_0F3A4A */ |
c0f3af97 | 6588 | { |
592d1631 L |
6589 | { Bad_Opcode }, |
6590 | { Bad_Opcode }, | |
592a252b | 6591 | { VEX_W_TABLE (VEX_W_0F3A4A_P_2) }, |
c0f3af97 L |
6592 | }, |
6593 | ||
592a252b | 6594 | /* PREFIX_VEX_0F3A4B */ |
c0f3af97 | 6595 | { |
592d1631 L |
6596 | { Bad_Opcode }, |
6597 | { Bad_Opcode }, | |
592a252b | 6598 | { VEX_W_TABLE (VEX_W_0F3A4B_P_2) }, |
c0f3af97 L |
6599 | }, |
6600 | ||
592a252b | 6601 | /* PREFIX_VEX_0F3A4C */ |
c0f3af97 | 6602 | { |
592d1631 L |
6603 | { Bad_Opcode }, |
6604 | { Bad_Opcode }, | |
6c30d220 | 6605 | { VEX_W_TABLE (VEX_W_0F3A4C_P_2) }, |
c0f3af97 L |
6606 | }, |
6607 | ||
592a252b | 6608 | /* PREFIX_VEX_0F3A5C */ |
922d8de8 | 6609 | { |
592d1631 L |
6610 | { Bad_Opcode }, |
6611 | { Bad_Opcode }, | |
bf890a93 | 6612 | { "vfmaddsubps", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6613 | }, |
6614 | ||
592a252b | 6615 | /* PREFIX_VEX_0F3A5D */ |
922d8de8 | 6616 | { |
592d1631 L |
6617 | { Bad_Opcode }, |
6618 | { Bad_Opcode }, | |
bf890a93 | 6619 | { "vfmaddsubpd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6620 | }, |
6621 | ||
592a252b | 6622 | /* PREFIX_VEX_0F3A5E */ |
922d8de8 | 6623 | { |
592d1631 L |
6624 | { Bad_Opcode }, |
6625 | { Bad_Opcode }, | |
bf890a93 | 6626 | { "vfmsubaddps", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6627 | }, |
6628 | ||
592a252b | 6629 | /* PREFIX_VEX_0F3A5F */ |
922d8de8 | 6630 | { |
592d1631 L |
6631 | { Bad_Opcode }, |
6632 | { Bad_Opcode }, | |
bf890a93 | 6633 | { "vfmsubaddpd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6634 | }, |
6635 | ||
592a252b | 6636 | /* PREFIX_VEX_0F3A60 */ |
c0f3af97 | 6637 | { |
592d1631 L |
6638 | { Bad_Opcode }, |
6639 | { Bad_Opcode }, | |
592a252b | 6640 | { VEX_LEN_TABLE (VEX_LEN_0F3A60_P_2) }, |
592d1631 | 6641 | { Bad_Opcode }, |
c0f3af97 L |
6642 | }, |
6643 | ||
592a252b | 6644 | /* PREFIX_VEX_0F3A61 */ |
c0f3af97 | 6645 | { |
592d1631 L |
6646 | { Bad_Opcode }, |
6647 | { Bad_Opcode }, | |
592a252b | 6648 | { VEX_LEN_TABLE (VEX_LEN_0F3A61_P_2) }, |
c0f3af97 L |
6649 | }, |
6650 | ||
592a252b | 6651 | /* PREFIX_VEX_0F3A62 */ |
c0f3af97 | 6652 | { |
592d1631 L |
6653 | { Bad_Opcode }, |
6654 | { Bad_Opcode }, | |
592a252b | 6655 | { VEX_LEN_TABLE (VEX_LEN_0F3A62_P_2) }, |
c0f3af97 L |
6656 | }, |
6657 | ||
592a252b | 6658 | /* PREFIX_VEX_0F3A63 */ |
c0f3af97 | 6659 | { |
592d1631 L |
6660 | { Bad_Opcode }, |
6661 | { Bad_Opcode }, | |
592a252b | 6662 | { VEX_LEN_TABLE (VEX_LEN_0F3A63_P_2) }, |
c0f3af97 | 6663 | }, |
a5ff0eb2 | 6664 | |
592a252b | 6665 | /* PREFIX_VEX_0F3A68 */ |
922d8de8 | 6666 | { |
592d1631 L |
6667 | { Bad_Opcode }, |
6668 | { Bad_Opcode }, | |
bf890a93 | 6669 | { "vfmaddps", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6670 | }, |
6671 | ||
592a252b | 6672 | /* PREFIX_VEX_0F3A69 */ |
922d8de8 | 6673 | { |
592d1631 L |
6674 | { Bad_Opcode }, |
6675 | { Bad_Opcode }, | |
bf890a93 | 6676 | { "vfmaddpd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6677 | }, |
6678 | ||
592a252b | 6679 | /* PREFIX_VEX_0F3A6A */ |
922d8de8 | 6680 | { |
592d1631 L |
6681 | { Bad_Opcode }, |
6682 | { Bad_Opcode }, | |
592a252b | 6683 | { VEX_LEN_TABLE (VEX_LEN_0F3A6A_P_2) }, |
922d8de8 DR |
6684 | }, |
6685 | ||
592a252b | 6686 | /* PREFIX_VEX_0F3A6B */ |
922d8de8 | 6687 | { |
592d1631 L |
6688 | { Bad_Opcode }, |
6689 | { Bad_Opcode }, | |
592a252b | 6690 | { VEX_LEN_TABLE (VEX_LEN_0F3A6B_P_2) }, |
922d8de8 DR |
6691 | }, |
6692 | ||
592a252b | 6693 | /* PREFIX_VEX_0F3A6C */ |
922d8de8 | 6694 | { |
592d1631 L |
6695 | { Bad_Opcode }, |
6696 | { Bad_Opcode }, | |
bf890a93 | 6697 | { "vfmsubps", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6698 | }, |
6699 | ||
592a252b | 6700 | /* PREFIX_VEX_0F3A6D */ |
922d8de8 | 6701 | { |
592d1631 L |
6702 | { Bad_Opcode }, |
6703 | { Bad_Opcode }, | |
bf890a93 | 6704 | { "vfmsubpd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6705 | }, |
6706 | ||
592a252b | 6707 | /* PREFIX_VEX_0F3A6E */ |
922d8de8 | 6708 | { |
592d1631 L |
6709 | { Bad_Opcode }, |
6710 | { Bad_Opcode }, | |
592a252b | 6711 | { VEX_LEN_TABLE (VEX_LEN_0F3A6E_P_2) }, |
922d8de8 DR |
6712 | }, |
6713 | ||
592a252b | 6714 | /* PREFIX_VEX_0F3A6F */ |
922d8de8 | 6715 | { |
592d1631 L |
6716 | { Bad_Opcode }, |
6717 | { Bad_Opcode }, | |
592a252b | 6718 | { VEX_LEN_TABLE (VEX_LEN_0F3A6F_P_2) }, |
922d8de8 DR |
6719 | }, |
6720 | ||
592a252b | 6721 | /* PREFIX_VEX_0F3A78 */ |
922d8de8 | 6722 | { |
592d1631 L |
6723 | { Bad_Opcode }, |
6724 | { Bad_Opcode }, | |
bf890a93 | 6725 | { "vfnmaddps", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6726 | }, |
6727 | ||
592a252b | 6728 | /* PREFIX_VEX_0F3A79 */ |
922d8de8 | 6729 | { |
592d1631 L |
6730 | { Bad_Opcode }, |
6731 | { Bad_Opcode }, | |
bf890a93 | 6732 | { "vfnmaddpd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6733 | }, |
6734 | ||
592a252b | 6735 | /* PREFIX_VEX_0F3A7A */ |
922d8de8 | 6736 | { |
592d1631 L |
6737 | { Bad_Opcode }, |
6738 | { Bad_Opcode }, | |
592a252b | 6739 | { VEX_LEN_TABLE (VEX_LEN_0F3A7A_P_2) }, |
922d8de8 DR |
6740 | }, |
6741 | ||
592a252b | 6742 | /* PREFIX_VEX_0F3A7B */ |
922d8de8 | 6743 | { |
592d1631 L |
6744 | { Bad_Opcode }, |
6745 | { Bad_Opcode }, | |
592a252b | 6746 | { VEX_LEN_TABLE (VEX_LEN_0F3A7B_P_2) }, |
922d8de8 DR |
6747 | }, |
6748 | ||
592a252b | 6749 | /* PREFIX_VEX_0F3A7C */ |
922d8de8 | 6750 | { |
592d1631 L |
6751 | { Bad_Opcode }, |
6752 | { Bad_Opcode }, | |
bf890a93 | 6753 | { "vfnmsubps", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
592d1631 | 6754 | { Bad_Opcode }, |
922d8de8 DR |
6755 | }, |
6756 | ||
592a252b | 6757 | /* PREFIX_VEX_0F3A7D */ |
922d8de8 | 6758 | { |
592d1631 L |
6759 | { Bad_Opcode }, |
6760 | { Bad_Opcode }, | |
bf890a93 | 6761 | { "vfnmsubpd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
922d8de8 DR |
6762 | }, |
6763 | ||
592a252b | 6764 | /* PREFIX_VEX_0F3A7E */ |
922d8de8 | 6765 | { |
592d1631 L |
6766 | { Bad_Opcode }, |
6767 | { Bad_Opcode }, | |
592a252b | 6768 | { VEX_LEN_TABLE (VEX_LEN_0F3A7E_P_2) }, |
922d8de8 DR |
6769 | }, |
6770 | ||
592a252b | 6771 | /* PREFIX_VEX_0F3A7F */ |
922d8de8 | 6772 | { |
592d1631 L |
6773 | { Bad_Opcode }, |
6774 | { Bad_Opcode }, | |
592a252b | 6775 | { VEX_LEN_TABLE (VEX_LEN_0F3A7F_P_2) }, |
922d8de8 DR |
6776 | }, |
6777 | ||
592a252b | 6778 | /* PREFIX_VEX_0F3ADF */ |
a5ff0eb2 | 6779 | { |
592d1631 L |
6780 | { Bad_Opcode }, |
6781 | { Bad_Opcode }, | |
592a252b | 6782 | { VEX_LEN_TABLE (VEX_LEN_0F3ADF_P_2) }, |
a5ff0eb2 | 6783 | }, |
6c30d220 L |
6784 | |
6785 | /* PREFIX_VEX_0F3AF0 */ | |
6786 | { | |
6787 | { Bad_Opcode }, | |
6788 | { Bad_Opcode }, | |
6789 | { Bad_Opcode }, | |
6790 | { VEX_LEN_TABLE (VEX_LEN_0F3AF0_P_3) }, | |
6791 | }, | |
43234a1e L |
6792 | |
6793 | #define NEED_PREFIX_TABLE | |
6794 | #include "i386-dis-evex.h" | |
6795 | #undef NEED_PREFIX_TABLE | |
c0f3af97 L |
6796 | }; |
6797 | ||
6798 | static const struct dis386 x86_64_table[][2] = { | |
6799 | /* X86_64_06 */ | |
6800 | { | |
bf890a93 | 6801 | { "pushP", { es }, 0 }, |
c0f3af97 L |
6802 | }, |
6803 | ||
6804 | /* X86_64_07 */ | |
6805 | { | |
bf890a93 | 6806 | { "popP", { es }, 0 }, |
c0f3af97 L |
6807 | }, |
6808 | ||
6809 | /* X86_64_0D */ | |
6810 | { | |
bf890a93 | 6811 | { "pushP", { cs }, 0 }, |
c0f3af97 L |
6812 | }, |
6813 | ||
6814 | /* X86_64_16 */ | |
6815 | { | |
bf890a93 | 6816 | { "pushP", { ss }, 0 }, |
c0f3af97 L |
6817 | }, |
6818 | ||
6819 | /* X86_64_17 */ | |
6820 | { | |
bf890a93 | 6821 | { "popP", { ss }, 0 }, |
c0f3af97 L |
6822 | }, |
6823 | ||
6824 | /* X86_64_1E */ | |
6825 | { | |
bf890a93 | 6826 | { "pushP", { ds }, 0 }, |
c0f3af97 L |
6827 | }, |
6828 | ||
6829 | /* X86_64_1F */ | |
6830 | { | |
bf890a93 | 6831 | { "popP", { ds }, 0 }, |
c0f3af97 L |
6832 | }, |
6833 | ||
6834 | /* X86_64_27 */ | |
6835 | { | |
bf890a93 | 6836 | { "daa", { XX }, 0 }, |
c0f3af97 L |
6837 | }, |
6838 | ||
6839 | /* X86_64_2F */ | |
6840 | { | |
bf890a93 | 6841 | { "das", { XX }, 0 }, |
c0f3af97 L |
6842 | }, |
6843 | ||
6844 | /* X86_64_37 */ | |
6845 | { | |
bf890a93 | 6846 | { "aaa", { XX }, 0 }, |
c0f3af97 L |
6847 | }, |
6848 | ||
6849 | /* X86_64_3F */ | |
6850 | { | |
bf890a93 | 6851 | { "aas", { XX }, 0 }, |
c0f3af97 L |
6852 | }, |
6853 | ||
6854 | /* X86_64_60 */ | |
6855 | { | |
bf890a93 | 6856 | { "pushaP", { XX }, 0 }, |
c0f3af97 L |
6857 | }, |
6858 | ||
6859 | /* X86_64_61 */ | |
6860 | { | |
bf890a93 | 6861 | { "popaP", { XX }, 0 }, |
c0f3af97 L |
6862 | }, |
6863 | ||
6864 | /* X86_64_62 */ | |
6865 | { | |
6866 | { MOD_TABLE (MOD_62_32BIT) }, | |
43234a1e | 6867 | { EVEX_TABLE (EVEX_0F) }, |
c0f3af97 L |
6868 | }, |
6869 | ||
6870 | /* X86_64_63 */ | |
6871 | { | |
bf890a93 IT |
6872 | { "arpl", { Ew, Gw }, 0 }, |
6873 | { "movs{lq|xd}", { Gv, Ed }, 0 }, | |
c0f3af97 L |
6874 | }, |
6875 | ||
6876 | /* X86_64_6D */ | |
6877 | { | |
bf890a93 IT |
6878 | { "ins{R|}", { Yzr, indirDX }, 0 }, |
6879 | { "ins{G|}", { Yzr, indirDX }, 0 }, | |
c0f3af97 L |
6880 | }, |
6881 | ||
6882 | /* X86_64_6F */ | |
6883 | { | |
bf890a93 IT |
6884 | { "outs{R|}", { indirDXr, Xz }, 0 }, |
6885 | { "outs{G|}", { indirDXr, Xz }, 0 }, | |
c0f3af97 L |
6886 | }, |
6887 | ||
d039fef3 | 6888 | /* X86_64_82 */ |
8b89fe14 | 6889 | { |
d039fef3 L |
6890 | /* Opcode 0x82 is an alias of of opcode 0x80 in 32-bit mode. */ |
6891 | { REG_TABLE (REG_80) }, | |
8b89fe14 L |
6892 | }, |
6893 | ||
c0f3af97 L |
6894 | /* X86_64_9A */ |
6895 | { | |
bf890a93 | 6896 | { "Jcall{T|}", { Ap }, 0 }, |
c0f3af97 L |
6897 | }, |
6898 | ||
6899 | /* X86_64_C4 */ | |
6900 | { | |
6901 | { MOD_TABLE (MOD_C4_32BIT) }, | |
6902 | { VEX_C4_TABLE (VEX_0F) }, | |
6903 | }, | |
6904 | ||
6905 | /* X86_64_C5 */ | |
6906 | { | |
6907 | { MOD_TABLE (MOD_C5_32BIT) }, | |
6908 | { VEX_C5_TABLE (VEX_0F) }, | |
6909 | }, | |
6910 | ||
6911 | /* X86_64_CE */ | |
6912 | { | |
bf890a93 | 6913 | { "into", { XX }, 0 }, |
c0f3af97 L |
6914 | }, |
6915 | ||
6916 | /* X86_64_D4 */ | |
6917 | { | |
bf890a93 | 6918 | { "aam", { Ib }, 0 }, |
c0f3af97 L |
6919 | }, |
6920 | ||
6921 | /* X86_64_D5 */ | |
6922 | { | |
bf890a93 | 6923 | { "aad", { Ib }, 0 }, |
c0f3af97 L |
6924 | }, |
6925 | ||
a72d2af2 L |
6926 | /* X86_64_E8 */ |
6927 | { | |
6928 | { "callP", { Jv, BND }, 0 }, | |
5db04b09 | 6929 | { "call@", { Jv, BND }, 0 } |
a72d2af2 L |
6930 | }, |
6931 | ||
6932 | /* X86_64_E9 */ | |
6933 | { | |
6934 | { "jmpP", { Jv, BND }, 0 }, | |
5db04b09 | 6935 | { "jmp@", { Jv, BND }, 0 } |
a72d2af2 L |
6936 | }, |
6937 | ||
c0f3af97 L |
6938 | /* X86_64_EA */ |
6939 | { | |
bf890a93 | 6940 | { "Jjmp{T|}", { Ap }, 0 }, |
c0f3af97 L |
6941 | }, |
6942 | ||
6943 | /* X86_64_0F01_REG_0 */ | |
6944 | { | |
bf890a93 IT |
6945 | { "sgdt{Q|IQ}", { M }, 0 }, |
6946 | { "sgdt", { M }, 0 }, | |
c0f3af97 L |
6947 | }, |
6948 | ||
6949 | /* X86_64_0F01_REG_1 */ | |
6950 | { | |
bf890a93 IT |
6951 | { "sidt{Q|IQ}", { M }, 0 }, |
6952 | { "sidt", { M }, 0 }, | |
c0f3af97 L |
6953 | }, |
6954 | ||
6955 | /* X86_64_0F01_REG_2 */ | |
6956 | { | |
bf890a93 IT |
6957 | { "lgdt{Q|Q}", { M }, 0 }, |
6958 | { "lgdt", { M }, 0 }, | |
c0f3af97 L |
6959 | }, |
6960 | ||
6961 | /* X86_64_0F01_REG_3 */ | |
6962 | { | |
bf890a93 IT |
6963 | { "lidt{Q|Q}", { M }, 0 }, |
6964 | { "lidt", { M }, 0 }, | |
c0f3af97 L |
6965 | }, |
6966 | }; | |
6967 | ||
6968 | static const struct dis386 three_byte_table[][256] = { | |
c1e679ec DR |
6969 | |
6970 | /* THREE_BYTE_0F38 */ | |
c0f3af97 L |
6971 | { |
6972 | /* 00 */ | |
507bd325 L |
6973 | { "pshufb", { MX, EM }, PREFIX_OPCODE }, |
6974 | { "phaddw", { MX, EM }, PREFIX_OPCODE }, | |
6975 | { "phaddd", { MX, EM }, PREFIX_OPCODE }, | |
6976 | { "phaddsw", { MX, EM }, PREFIX_OPCODE }, | |
6977 | { "pmaddubsw", { MX, EM }, PREFIX_OPCODE }, | |
6978 | { "phsubw", { MX, EM }, PREFIX_OPCODE }, | |
6979 | { "phsubd", { MX, EM }, PREFIX_OPCODE }, | |
6980 | { "phsubsw", { MX, EM }, PREFIX_OPCODE }, | |
c0f3af97 | 6981 | /* 08 */ |
507bd325 L |
6982 | { "psignb", { MX, EM }, PREFIX_OPCODE }, |
6983 | { "psignw", { MX, EM }, PREFIX_OPCODE }, | |
6984 | { "psignd", { MX, EM }, PREFIX_OPCODE }, | |
6985 | { "pmulhrsw", { MX, EM }, PREFIX_OPCODE }, | |
592d1631 L |
6986 | { Bad_Opcode }, |
6987 | { Bad_Opcode }, | |
6988 | { Bad_Opcode }, | |
6989 | { Bad_Opcode }, | |
f88c9eb0 SP |
6990 | /* 10 */ |
6991 | { PREFIX_TABLE (PREFIX_0F3810) }, | |
592d1631 L |
6992 | { Bad_Opcode }, |
6993 | { Bad_Opcode }, | |
6994 | { Bad_Opcode }, | |
f88c9eb0 SP |
6995 | { PREFIX_TABLE (PREFIX_0F3814) }, |
6996 | { PREFIX_TABLE (PREFIX_0F3815) }, | |
592d1631 | 6997 | { Bad_Opcode }, |
f88c9eb0 SP |
6998 | { PREFIX_TABLE (PREFIX_0F3817) }, |
6999 | /* 18 */ | |
592d1631 L |
7000 | { Bad_Opcode }, |
7001 | { Bad_Opcode }, | |
7002 | { Bad_Opcode }, | |
7003 | { Bad_Opcode }, | |
507bd325 L |
7004 | { "pabsb", { MX, EM }, PREFIX_OPCODE }, |
7005 | { "pabsw", { MX, EM }, PREFIX_OPCODE }, | |
7006 | { "pabsd", { MX, EM }, PREFIX_OPCODE }, | |
592d1631 | 7007 | { Bad_Opcode }, |
f88c9eb0 SP |
7008 | /* 20 */ |
7009 | { PREFIX_TABLE (PREFIX_0F3820) }, | |
7010 | { PREFIX_TABLE (PREFIX_0F3821) }, | |
7011 | { PREFIX_TABLE (PREFIX_0F3822) }, | |
7012 | { PREFIX_TABLE (PREFIX_0F3823) }, | |
7013 | { PREFIX_TABLE (PREFIX_0F3824) }, | |
7014 | { PREFIX_TABLE (PREFIX_0F3825) }, | |
592d1631 L |
7015 | { Bad_Opcode }, |
7016 | { Bad_Opcode }, | |
f88c9eb0 SP |
7017 | /* 28 */ |
7018 | { PREFIX_TABLE (PREFIX_0F3828) }, | |
7019 | { PREFIX_TABLE (PREFIX_0F3829) }, | |
7020 | { PREFIX_TABLE (PREFIX_0F382A) }, | |
7021 | { PREFIX_TABLE (PREFIX_0F382B) }, | |
592d1631 L |
7022 | { Bad_Opcode }, |
7023 | { Bad_Opcode }, | |
7024 | { Bad_Opcode }, | |
7025 | { Bad_Opcode }, | |
f88c9eb0 SP |
7026 | /* 30 */ |
7027 | { PREFIX_TABLE (PREFIX_0F3830) }, | |
7028 | { PREFIX_TABLE (PREFIX_0F3831) }, | |
7029 | { PREFIX_TABLE (PREFIX_0F3832) }, | |
7030 | { PREFIX_TABLE (PREFIX_0F3833) }, | |
7031 | { PREFIX_TABLE (PREFIX_0F3834) }, | |
7032 | { PREFIX_TABLE (PREFIX_0F3835) }, | |
592d1631 | 7033 | { Bad_Opcode }, |
f88c9eb0 SP |
7034 | { PREFIX_TABLE (PREFIX_0F3837) }, |
7035 | /* 38 */ | |
7036 | { PREFIX_TABLE (PREFIX_0F3838) }, | |
7037 | { PREFIX_TABLE (PREFIX_0F3839) }, | |
7038 | { PREFIX_TABLE (PREFIX_0F383A) }, | |
7039 | { PREFIX_TABLE (PREFIX_0F383B) }, | |
7040 | { PREFIX_TABLE (PREFIX_0F383C) }, | |
7041 | { PREFIX_TABLE (PREFIX_0F383D) }, | |
7042 | { PREFIX_TABLE (PREFIX_0F383E) }, | |
7043 | { PREFIX_TABLE (PREFIX_0F383F) }, | |
7044 | /* 40 */ | |
7045 | { PREFIX_TABLE (PREFIX_0F3840) }, | |
7046 | { PREFIX_TABLE (PREFIX_0F3841) }, | |
592d1631 L |
7047 | { Bad_Opcode }, |
7048 | { Bad_Opcode }, | |
7049 | { Bad_Opcode }, | |
7050 | { Bad_Opcode }, | |
7051 | { Bad_Opcode }, | |
7052 | { Bad_Opcode }, | |
f88c9eb0 | 7053 | /* 48 */ |
592d1631 L |
7054 | { Bad_Opcode }, |
7055 | { Bad_Opcode }, | |
7056 | { Bad_Opcode }, | |
7057 | { Bad_Opcode }, | |
7058 | { Bad_Opcode }, | |
7059 | { Bad_Opcode }, | |
7060 | { Bad_Opcode }, | |
7061 | { Bad_Opcode }, | |
f88c9eb0 | 7062 | /* 50 */ |
592d1631 L |
7063 | { Bad_Opcode }, |
7064 | { Bad_Opcode }, | |
7065 | { Bad_Opcode }, | |
7066 | { Bad_Opcode }, | |
7067 | { Bad_Opcode }, | |
7068 | { Bad_Opcode }, | |
7069 | { Bad_Opcode }, | |
7070 | { Bad_Opcode }, | |
f88c9eb0 | 7071 | /* 58 */ |
592d1631 L |
7072 | { Bad_Opcode }, |
7073 | { Bad_Opcode }, | |
7074 | { Bad_Opcode }, | |
7075 | { Bad_Opcode }, | |
7076 | { Bad_Opcode }, | |
7077 | { Bad_Opcode }, | |
7078 | { Bad_Opcode }, | |
7079 | { Bad_Opcode }, | |
f88c9eb0 | 7080 | /* 60 */ |
592d1631 L |
7081 | { Bad_Opcode }, |
7082 | { Bad_Opcode }, | |
7083 | { Bad_Opcode }, | |
7084 | { Bad_Opcode }, | |
7085 | { Bad_Opcode }, | |
7086 | { Bad_Opcode }, | |
7087 | { Bad_Opcode }, | |
7088 | { Bad_Opcode }, | |
f88c9eb0 | 7089 | /* 68 */ |
592d1631 L |
7090 | { Bad_Opcode }, |
7091 | { Bad_Opcode }, | |
7092 | { Bad_Opcode }, | |
7093 | { Bad_Opcode }, | |
7094 | { Bad_Opcode }, | |
7095 | { Bad_Opcode }, | |
7096 | { Bad_Opcode }, | |
7097 | { Bad_Opcode }, | |
f88c9eb0 | 7098 | /* 70 */ |
592d1631 L |
7099 | { Bad_Opcode }, |
7100 | { Bad_Opcode }, | |
7101 | { Bad_Opcode }, | |
7102 | { Bad_Opcode }, | |
7103 | { Bad_Opcode }, | |
7104 | { Bad_Opcode }, | |
7105 | { Bad_Opcode }, | |
7106 | { Bad_Opcode }, | |
f88c9eb0 | 7107 | /* 78 */ |
592d1631 L |
7108 | { Bad_Opcode }, |
7109 | { Bad_Opcode }, | |
7110 | { Bad_Opcode }, | |
7111 | { Bad_Opcode }, | |
7112 | { Bad_Opcode }, | |
7113 | { Bad_Opcode }, | |
7114 | { Bad_Opcode }, | |
7115 | { Bad_Opcode }, | |
f88c9eb0 SP |
7116 | /* 80 */ |
7117 | { PREFIX_TABLE (PREFIX_0F3880) }, | |
7118 | { PREFIX_TABLE (PREFIX_0F3881) }, | |
6c30d220 | 7119 | { PREFIX_TABLE (PREFIX_0F3882) }, |
592d1631 L |
7120 | { Bad_Opcode }, |
7121 | { Bad_Opcode }, | |
7122 | { Bad_Opcode }, | |
7123 | { Bad_Opcode }, | |
7124 | { Bad_Opcode }, | |
f88c9eb0 | 7125 | /* 88 */ |
592d1631 L |
7126 | { Bad_Opcode }, |
7127 | { Bad_Opcode }, | |
7128 | { Bad_Opcode }, | |
7129 | { Bad_Opcode }, | |
7130 | { Bad_Opcode }, | |
7131 | { Bad_Opcode }, | |
7132 | { Bad_Opcode }, | |
7133 | { Bad_Opcode }, | |
f88c9eb0 | 7134 | /* 90 */ |
592d1631 L |
7135 | { Bad_Opcode }, |
7136 | { Bad_Opcode }, | |
7137 | { Bad_Opcode }, | |
7138 | { Bad_Opcode }, | |
7139 | { Bad_Opcode }, | |
7140 | { Bad_Opcode }, | |
7141 | { Bad_Opcode }, | |
7142 | { Bad_Opcode }, | |
f88c9eb0 | 7143 | /* 98 */ |
592d1631 L |
7144 | { Bad_Opcode }, |
7145 | { Bad_Opcode }, | |
7146 | { Bad_Opcode }, | |
7147 | { Bad_Opcode }, | |
7148 | { Bad_Opcode }, | |
7149 | { Bad_Opcode }, | |
7150 | { Bad_Opcode }, | |
7151 | { Bad_Opcode }, | |
f88c9eb0 | 7152 | /* a0 */ |
592d1631 L |
7153 | { Bad_Opcode }, |
7154 | { Bad_Opcode }, | |
7155 | { Bad_Opcode }, | |
7156 | { Bad_Opcode }, | |
7157 | { Bad_Opcode }, | |
7158 | { Bad_Opcode }, | |
7159 | { Bad_Opcode }, | |
7160 | { Bad_Opcode }, | |
f88c9eb0 | 7161 | /* a8 */ |
592d1631 L |
7162 | { Bad_Opcode }, |
7163 | { Bad_Opcode }, | |
7164 | { Bad_Opcode }, | |
7165 | { Bad_Opcode }, | |
7166 | { Bad_Opcode }, | |
7167 | { Bad_Opcode }, | |
7168 | { Bad_Opcode }, | |
7169 | { Bad_Opcode }, | |
f88c9eb0 | 7170 | /* b0 */ |
592d1631 L |
7171 | { Bad_Opcode }, |
7172 | { Bad_Opcode }, | |
7173 | { Bad_Opcode }, | |
7174 | { Bad_Opcode }, | |
7175 | { Bad_Opcode }, | |
7176 | { Bad_Opcode }, | |
7177 | { Bad_Opcode }, | |
7178 | { Bad_Opcode }, | |
f88c9eb0 | 7179 | /* b8 */ |
592d1631 L |
7180 | { Bad_Opcode }, |
7181 | { Bad_Opcode }, | |
7182 | { Bad_Opcode }, | |
7183 | { Bad_Opcode }, | |
7184 | { Bad_Opcode }, | |
7185 | { Bad_Opcode }, | |
7186 | { Bad_Opcode }, | |
7187 | { Bad_Opcode }, | |
f88c9eb0 | 7188 | /* c0 */ |
592d1631 L |
7189 | { Bad_Opcode }, |
7190 | { Bad_Opcode }, | |
7191 | { Bad_Opcode }, | |
7192 | { Bad_Opcode }, | |
7193 | { Bad_Opcode }, | |
7194 | { Bad_Opcode }, | |
7195 | { Bad_Opcode }, | |
7196 | { Bad_Opcode }, | |
f88c9eb0 | 7197 | /* c8 */ |
a0046408 L |
7198 | { PREFIX_TABLE (PREFIX_0F38C8) }, |
7199 | { PREFIX_TABLE (PREFIX_0F38C9) }, | |
7200 | { PREFIX_TABLE (PREFIX_0F38CA) }, | |
7201 | { PREFIX_TABLE (PREFIX_0F38CB) }, | |
7202 | { PREFIX_TABLE (PREFIX_0F38CC) }, | |
7203 | { PREFIX_TABLE (PREFIX_0F38CD) }, | |
592d1631 L |
7204 | { Bad_Opcode }, |
7205 | { Bad_Opcode }, | |
f88c9eb0 | 7206 | /* d0 */ |
592d1631 L |
7207 | { Bad_Opcode }, |
7208 | { Bad_Opcode }, | |
7209 | { Bad_Opcode }, | |
7210 | { Bad_Opcode }, | |
7211 | { Bad_Opcode }, | |
7212 | { Bad_Opcode }, | |
7213 | { Bad_Opcode }, | |
7214 | { Bad_Opcode }, | |
f88c9eb0 | 7215 | /* d8 */ |
592d1631 L |
7216 | { Bad_Opcode }, |
7217 | { Bad_Opcode }, | |
7218 | { Bad_Opcode }, | |
f88c9eb0 SP |
7219 | { PREFIX_TABLE (PREFIX_0F38DB) }, |
7220 | { PREFIX_TABLE (PREFIX_0F38DC) }, | |
7221 | { PREFIX_TABLE (PREFIX_0F38DD) }, | |
7222 | { PREFIX_TABLE (PREFIX_0F38DE) }, | |
7223 | { PREFIX_TABLE (PREFIX_0F38DF) }, | |
7224 | /* e0 */ | |
592d1631 L |
7225 | { Bad_Opcode }, |
7226 | { Bad_Opcode }, | |
7227 | { Bad_Opcode }, | |
7228 | { Bad_Opcode }, | |
7229 | { Bad_Opcode }, | |
7230 | { Bad_Opcode }, | |
7231 | { Bad_Opcode }, | |
7232 | { Bad_Opcode }, | |
f88c9eb0 | 7233 | /* e8 */ |
592d1631 L |
7234 | { Bad_Opcode }, |
7235 | { Bad_Opcode }, | |
7236 | { Bad_Opcode }, | |
7237 | { Bad_Opcode }, | |
7238 | { Bad_Opcode }, | |
7239 | { Bad_Opcode }, | |
7240 | { Bad_Opcode }, | |
7241 | { Bad_Opcode }, | |
f88c9eb0 SP |
7242 | /* f0 */ |
7243 | { PREFIX_TABLE (PREFIX_0F38F0) }, | |
7244 | { PREFIX_TABLE (PREFIX_0F38F1) }, | |
592d1631 L |
7245 | { Bad_Opcode }, |
7246 | { Bad_Opcode }, | |
7247 | { Bad_Opcode }, | |
7248 | { Bad_Opcode }, | |
e2e1fcde | 7249 | { PREFIX_TABLE (PREFIX_0F38F6) }, |
592d1631 | 7250 | { Bad_Opcode }, |
f88c9eb0 | 7251 | /* f8 */ |
592d1631 L |
7252 | { Bad_Opcode }, |
7253 | { Bad_Opcode }, | |
7254 | { Bad_Opcode }, | |
7255 | { Bad_Opcode }, | |
7256 | { Bad_Opcode }, | |
7257 | { Bad_Opcode }, | |
7258 | { Bad_Opcode }, | |
7259 | { Bad_Opcode }, | |
f88c9eb0 SP |
7260 | }, |
7261 | /* THREE_BYTE_0F3A */ | |
7262 | { | |
7263 | /* 00 */ | |
592d1631 L |
7264 | { Bad_Opcode }, |
7265 | { Bad_Opcode }, | |
7266 | { Bad_Opcode }, | |
7267 | { Bad_Opcode }, | |
7268 | { Bad_Opcode }, | |
7269 | { Bad_Opcode }, | |
7270 | { Bad_Opcode }, | |
7271 | { Bad_Opcode }, | |
f88c9eb0 SP |
7272 | /* 08 */ |
7273 | { PREFIX_TABLE (PREFIX_0F3A08) }, | |
7274 | { PREFIX_TABLE (PREFIX_0F3A09) }, | |
7275 | { PREFIX_TABLE (PREFIX_0F3A0A) }, | |
7276 | { PREFIX_TABLE (PREFIX_0F3A0B) }, | |
7277 | { PREFIX_TABLE (PREFIX_0F3A0C) }, | |
7278 | { PREFIX_TABLE (PREFIX_0F3A0D) }, | |
7279 | { PREFIX_TABLE (PREFIX_0F3A0E) }, | |
507bd325 | 7280 | { "palignr", { MX, EM, Ib }, PREFIX_OPCODE }, |
f88c9eb0 | 7281 | /* 10 */ |
592d1631 L |
7282 | { Bad_Opcode }, |
7283 | { Bad_Opcode }, | |
7284 | { Bad_Opcode }, | |
7285 | { Bad_Opcode }, | |
f88c9eb0 SP |
7286 | { PREFIX_TABLE (PREFIX_0F3A14) }, |
7287 | { PREFIX_TABLE (PREFIX_0F3A15) }, | |
7288 | { PREFIX_TABLE (PREFIX_0F3A16) }, | |
7289 | { PREFIX_TABLE (PREFIX_0F3A17) }, | |
7290 | /* 18 */ | |
592d1631 L |
7291 | { Bad_Opcode }, |
7292 | { Bad_Opcode }, | |
7293 | { Bad_Opcode }, | |
7294 | { Bad_Opcode }, | |
7295 | { Bad_Opcode }, | |
7296 | { Bad_Opcode }, | |
7297 | { Bad_Opcode }, | |
7298 | { Bad_Opcode }, | |
f88c9eb0 SP |
7299 | /* 20 */ |
7300 | { PREFIX_TABLE (PREFIX_0F3A20) }, | |
7301 | { PREFIX_TABLE (PREFIX_0F3A21) }, | |
7302 | { PREFIX_TABLE (PREFIX_0F3A22) }, | |
592d1631 L |
7303 | { Bad_Opcode }, |
7304 | { Bad_Opcode }, | |
7305 | { Bad_Opcode }, | |
7306 | { Bad_Opcode }, | |
7307 | { Bad_Opcode }, | |
f88c9eb0 | 7308 | /* 28 */ |
592d1631 L |
7309 | { Bad_Opcode }, |
7310 | { Bad_Opcode }, | |
7311 | { Bad_Opcode }, | |
7312 | { Bad_Opcode }, | |
7313 | { Bad_Opcode }, | |
7314 | { Bad_Opcode }, | |
7315 | { Bad_Opcode }, | |
7316 | { Bad_Opcode }, | |
f88c9eb0 | 7317 | /* 30 */ |
592d1631 L |
7318 | { Bad_Opcode }, |
7319 | { Bad_Opcode }, | |
7320 | { Bad_Opcode }, | |
7321 | { Bad_Opcode }, | |
7322 | { Bad_Opcode }, | |
7323 | { Bad_Opcode }, | |
7324 | { Bad_Opcode }, | |
7325 | { Bad_Opcode }, | |
f88c9eb0 | 7326 | /* 38 */ |
592d1631 L |
7327 | { Bad_Opcode }, |
7328 | { Bad_Opcode }, | |
7329 | { Bad_Opcode }, | |
7330 | { Bad_Opcode }, | |
7331 | { Bad_Opcode }, | |
7332 | { Bad_Opcode }, | |
7333 | { Bad_Opcode }, | |
7334 | { Bad_Opcode }, | |
f88c9eb0 SP |
7335 | /* 40 */ |
7336 | { PREFIX_TABLE (PREFIX_0F3A40) }, | |
7337 | { PREFIX_TABLE (PREFIX_0F3A41) }, | |
7338 | { PREFIX_TABLE (PREFIX_0F3A42) }, | |
592d1631 | 7339 | { Bad_Opcode }, |
f88c9eb0 | 7340 | { PREFIX_TABLE (PREFIX_0F3A44) }, |
592d1631 L |
7341 | { Bad_Opcode }, |
7342 | { Bad_Opcode }, | |
7343 | { Bad_Opcode }, | |
f88c9eb0 | 7344 | /* 48 */ |
592d1631 L |
7345 | { Bad_Opcode }, |
7346 | { Bad_Opcode }, | |
7347 | { Bad_Opcode }, | |
7348 | { Bad_Opcode }, | |
7349 | { Bad_Opcode }, | |
7350 | { Bad_Opcode }, | |
7351 | { Bad_Opcode }, | |
7352 | { Bad_Opcode }, | |
f88c9eb0 | 7353 | /* 50 */ |
592d1631 L |
7354 | { Bad_Opcode }, |
7355 | { Bad_Opcode }, | |
7356 | { Bad_Opcode }, | |
7357 | { Bad_Opcode }, | |
7358 | { Bad_Opcode }, | |
7359 | { Bad_Opcode }, | |
7360 | { Bad_Opcode }, | |
7361 | { Bad_Opcode }, | |
f88c9eb0 | 7362 | /* 58 */ |
592d1631 L |
7363 | { Bad_Opcode }, |
7364 | { Bad_Opcode }, | |
7365 | { Bad_Opcode }, | |
7366 | { Bad_Opcode }, | |
7367 | { Bad_Opcode }, | |
7368 | { Bad_Opcode }, | |
7369 | { Bad_Opcode }, | |
7370 | { Bad_Opcode }, | |
f88c9eb0 SP |
7371 | /* 60 */ |
7372 | { PREFIX_TABLE (PREFIX_0F3A60) }, | |
7373 | { PREFIX_TABLE (PREFIX_0F3A61) }, | |
7374 | { PREFIX_TABLE (PREFIX_0F3A62) }, | |
7375 | { PREFIX_TABLE (PREFIX_0F3A63) }, | |
592d1631 L |
7376 | { Bad_Opcode }, |
7377 | { Bad_Opcode }, | |
7378 | { Bad_Opcode }, | |
7379 | { Bad_Opcode }, | |
f88c9eb0 | 7380 | /* 68 */ |
592d1631 L |
7381 | { Bad_Opcode }, |
7382 | { Bad_Opcode }, | |
7383 | { Bad_Opcode }, | |
7384 | { Bad_Opcode }, | |
7385 | { Bad_Opcode }, | |
7386 | { Bad_Opcode }, | |
7387 | { Bad_Opcode }, | |
7388 | { Bad_Opcode }, | |
f88c9eb0 | 7389 | /* 70 */ |
592d1631 L |
7390 | { Bad_Opcode }, |
7391 | { Bad_Opcode }, | |
7392 | { Bad_Opcode }, | |
7393 | { Bad_Opcode }, | |
7394 | { Bad_Opcode }, | |
7395 | { Bad_Opcode }, | |
7396 | { Bad_Opcode }, | |
7397 | { Bad_Opcode }, | |
f88c9eb0 | 7398 | /* 78 */ |
592d1631 L |
7399 | { Bad_Opcode }, |
7400 | { Bad_Opcode }, | |
7401 | { Bad_Opcode }, | |
7402 | { Bad_Opcode }, | |
7403 | { Bad_Opcode }, | |
7404 | { Bad_Opcode }, | |
7405 | { Bad_Opcode }, | |
7406 | { Bad_Opcode }, | |
f88c9eb0 | 7407 | /* 80 */ |
592d1631 L |
7408 | { Bad_Opcode }, |
7409 | { Bad_Opcode }, | |
7410 | { Bad_Opcode }, | |
7411 | { Bad_Opcode }, | |
7412 | { Bad_Opcode }, | |
7413 | { Bad_Opcode }, | |
7414 | { Bad_Opcode }, | |
7415 | { Bad_Opcode }, | |
f88c9eb0 | 7416 | /* 88 */ |
592d1631 L |
7417 | { Bad_Opcode }, |
7418 | { Bad_Opcode }, | |
7419 | { Bad_Opcode }, | |
7420 | { Bad_Opcode }, | |
7421 | { Bad_Opcode }, | |
7422 | { Bad_Opcode }, | |
7423 | { Bad_Opcode }, | |
7424 | { Bad_Opcode }, | |
f88c9eb0 | 7425 | /* 90 */ |
592d1631 L |
7426 | { Bad_Opcode }, |
7427 | { Bad_Opcode }, | |
7428 | { Bad_Opcode }, | |
7429 | { Bad_Opcode }, | |
7430 | { Bad_Opcode }, | |
7431 | { Bad_Opcode }, | |
7432 | { Bad_Opcode }, | |
7433 | { Bad_Opcode }, | |
f88c9eb0 | 7434 | /* 98 */ |
592d1631 L |
7435 | { Bad_Opcode }, |
7436 | { Bad_Opcode }, | |
7437 | { Bad_Opcode }, | |
7438 | { Bad_Opcode }, | |
7439 | { Bad_Opcode }, | |
7440 | { Bad_Opcode }, | |
7441 | { Bad_Opcode }, | |
7442 | { Bad_Opcode }, | |
f88c9eb0 | 7443 | /* a0 */ |
592d1631 L |
7444 | { Bad_Opcode }, |
7445 | { Bad_Opcode }, | |
7446 | { Bad_Opcode }, | |
7447 | { Bad_Opcode }, | |
7448 | { Bad_Opcode }, | |
7449 | { Bad_Opcode }, | |
7450 | { Bad_Opcode }, | |
7451 | { Bad_Opcode }, | |
f88c9eb0 | 7452 | /* a8 */ |
592d1631 L |
7453 | { Bad_Opcode }, |
7454 | { Bad_Opcode }, | |
7455 | { Bad_Opcode }, | |
7456 | { Bad_Opcode }, | |
7457 | { Bad_Opcode }, | |
7458 | { Bad_Opcode }, | |
7459 | { Bad_Opcode }, | |
7460 | { Bad_Opcode }, | |
f88c9eb0 | 7461 | /* b0 */ |
592d1631 L |
7462 | { Bad_Opcode }, |
7463 | { Bad_Opcode }, | |
7464 | { Bad_Opcode }, | |
7465 | { Bad_Opcode }, | |
7466 | { Bad_Opcode }, | |
7467 | { Bad_Opcode }, | |
7468 | { Bad_Opcode }, | |
7469 | { Bad_Opcode }, | |
f88c9eb0 | 7470 | /* b8 */ |
592d1631 L |
7471 | { Bad_Opcode }, |
7472 | { Bad_Opcode }, | |
7473 | { Bad_Opcode }, | |
7474 | { Bad_Opcode }, | |
7475 | { Bad_Opcode }, | |
7476 | { Bad_Opcode }, | |
7477 | { Bad_Opcode }, | |
7478 | { Bad_Opcode }, | |
f88c9eb0 | 7479 | /* c0 */ |
592d1631 L |
7480 | { Bad_Opcode }, |
7481 | { Bad_Opcode }, | |
7482 | { Bad_Opcode }, | |
7483 | { Bad_Opcode }, | |
7484 | { Bad_Opcode }, | |
7485 | { Bad_Opcode }, | |
7486 | { Bad_Opcode }, | |
7487 | { Bad_Opcode }, | |
f88c9eb0 | 7488 | /* c8 */ |
592d1631 L |
7489 | { Bad_Opcode }, |
7490 | { Bad_Opcode }, | |
7491 | { Bad_Opcode }, | |
7492 | { Bad_Opcode }, | |
a0046408 | 7493 | { PREFIX_TABLE (PREFIX_0F3ACC) }, |
592d1631 L |
7494 | { Bad_Opcode }, |
7495 | { Bad_Opcode }, | |
7496 | { Bad_Opcode }, | |
f88c9eb0 | 7497 | /* d0 */ |
592d1631 L |
7498 | { Bad_Opcode }, |
7499 | { Bad_Opcode }, | |
7500 | { Bad_Opcode }, | |
7501 | { Bad_Opcode }, | |
7502 | { Bad_Opcode }, | |
7503 | { Bad_Opcode }, | |
7504 | { Bad_Opcode }, | |
7505 | { Bad_Opcode }, | |
f88c9eb0 | 7506 | /* d8 */ |
592d1631 L |
7507 | { Bad_Opcode }, |
7508 | { Bad_Opcode }, | |
7509 | { Bad_Opcode }, | |
7510 | { Bad_Opcode }, | |
7511 | { Bad_Opcode }, | |
7512 | { Bad_Opcode }, | |
7513 | { Bad_Opcode }, | |
f88c9eb0 SP |
7514 | { PREFIX_TABLE (PREFIX_0F3ADF) }, |
7515 | /* e0 */ | |
592d1631 L |
7516 | { Bad_Opcode }, |
7517 | { Bad_Opcode }, | |
7518 | { Bad_Opcode }, | |
7519 | { Bad_Opcode }, | |
7520 | { Bad_Opcode }, | |
592d1631 L |
7521 | { Bad_Opcode }, |
7522 | { Bad_Opcode }, | |
7523 | { Bad_Opcode }, | |
85f10a01 | 7524 | /* e8 */ |
592d1631 L |
7525 | { Bad_Opcode }, |
7526 | { Bad_Opcode }, | |
7527 | { Bad_Opcode }, | |
7528 | { Bad_Opcode }, | |
7529 | { Bad_Opcode }, | |
7530 | { Bad_Opcode }, | |
7531 | { Bad_Opcode }, | |
7532 | { Bad_Opcode }, | |
85f10a01 | 7533 | /* f0 */ |
592d1631 L |
7534 | { Bad_Opcode }, |
7535 | { Bad_Opcode }, | |
7536 | { Bad_Opcode }, | |
7537 | { Bad_Opcode }, | |
7538 | { Bad_Opcode }, | |
7539 | { Bad_Opcode }, | |
7540 | { Bad_Opcode }, | |
7541 | { Bad_Opcode }, | |
85f10a01 | 7542 | /* f8 */ |
592d1631 L |
7543 | { Bad_Opcode }, |
7544 | { Bad_Opcode }, | |
7545 | { Bad_Opcode }, | |
7546 | { Bad_Opcode }, | |
7547 | { Bad_Opcode }, | |
7548 | { Bad_Opcode }, | |
7549 | { Bad_Opcode }, | |
7550 | { Bad_Opcode }, | |
85f10a01 | 7551 | }, |
f88c9eb0 SP |
7552 | }; |
7553 | ||
7554 | static const struct dis386 xop_table[][256] = { | |
5dd85c99 | 7555 | /* XOP_08 */ |
85f10a01 MM |
7556 | { |
7557 | /* 00 */ | |
592d1631 L |
7558 | { Bad_Opcode }, |
7559 | { Bad_Opcode }, | |
7560 | { Bad_Opcode }, | |
7561 | { Bad_Opcode }, | |
7562 | { Bad_Opcode }, | |
7563 | { Bad_Opcode }, | |
7564 | { Bad_Opcode }, | |
7565 | { Bad_Opcode }, | |
85f10a01 | 7566 | /* 08 */ |
592d1631 L |
7567 | { Bad_Opcode }, |
7568 | { Bad_Opcode }, | |
7569 | { Bad_Opcode }, | |
7570 | { Bad_Opcode }, | |
7571 | { Bad_Opcode }, | |
7572 | { Bad_Opcode }, | |
7573 | { Bad_Opcode }, | |
7574 | { Bad_Opcode }, | |
85f10a01 | 7575 | /* 10 */ |
3929df09 | 7576 | { Bad_Opcode }, |
592d1631 L |
7577 | { Bad_Opcode }, |
7578 | { Bad_Opcode }, | |
7579 | { Bad_Opcode }, | |
7580 | { Bad_Opcode }, | |
7581 | { Bad_Opcode }, | |
7582 | { Bad_Opcode }, | |
7583 | { Bad_Opcode }, | |
85f10a01 | 7584 | /* 18 */ |
592d1631 L |
7585 | { Bad_Opcode }, |
7586 | { Bad_Opcode }, | |
7587 | { Bad_Opcode }, | |
7588 | { Bad_Opcode }, | |
7589 | { Bad_Opcode }, | |
7590 | { Bad_Opcode }, | |
7591 | { Bad_Opcode }, | |
7592 | { Bad_Opcode }, | |
85f10a01 | 7593 | /* 20 */ |
592d1631 L |
7594 | { Bad_Opcode }, |
7595 | { Bad_Opcode }, | |
7596 | { Bad_Opcode }, | |
7597 | { Bad_Opcode }, | |
7598 | { Bad_Opcode }, | |
7599 | { Bad_Opcode }, | |
7600 | { Bad_Opcode }, | |
7601 | { Bad_Opcode }, | |
85f10a01 | 7602 | /* 28 */ |
592d1631 L |
7603 | { Bad_Opcode }, |
7604 | { Bad_Opcode }, | |
7605 | { Bad_Opcode }, | |
7606 | { Bad_Opcode }, | |
7607 | { Bad_Opcode }, | |
7608 | { Bad_Opcode }, | |
7609 | { Bad_Opcode }, | |
7610 | { Bad_Opcode }, | |
c0f3af97 | 7611 | /* 30 */ |
592d1631 L |
7612 | { Bad_Opcode }, |
7613 | { Bad_Opcode }, | |
7614 | { Bad_Opcode }, | |
7615 | { Bad_Opcode }, | |
7616 | { Bad_Opcode }, | |
7617 | { Bad_Opcode }, | |
7618 | { Bad_Opcode }, | |
7619 | { Bad_Opcode }, | |
c0f3af97 | 7620 | /* 38 */ |
592d1631 L |
7621 | { Bad_Opcode }, |
7622 | { Bad_Opcode }, | |
7623 | { Bad_Opcode }, | |
7624 | { Bad_Opcode }, | |
7625 | { Bad_Opcode }, | |
7626 | { Bad_Opcode }, | |
7627 | { Bad_Opcode }, | |
7628 | { Bad_Opcode }, | |
c0f3af97 | 7629 | /* 40 */ |
592d1631 L |
7630 | { Bad_Opcode }, |
7631 | { Bad_Opcode }, | |
7632 | { Bad_Opcode }, | |
7633 | { Bad_Opcode }, | |
7634 | { Bad_Opcode }, | |
7635 | { Bad_Opcode }, | |
7636 | { Bad_Opcode }, | |
7637 | { Bad_Opcode }, | |
85f10a01 | 7638 | /* 48 */ |
592d1631 L |
7639 | { Bad_Opcode }, |
7640 | { Bad_Opcode }, | |
7641 | { Bad_Opcode }, | |
7642 | { Bad_Opcode }, | |
7643 | { Bad_Opcode }, | |
7644 | { Bad_Opcode }, | |
7645 | { Bad_Opcode }, | |
7646 | { Bad_Opcode }, | |
c0f3af97 | 7647 | /* 50 */ |
592d1631 L |
7648 | { Bad_Opcode }, |
7649 | { Bad_Opcode }, | |
7650 | { Bad_Opcode }, | |
7651 | { Bad_Opcode }, | |
7652 | { Bad_Opcode }, | |
7653 | { Bad_Opcode }, | |
7654 | { Bad_Opcode }, | |
7655 | { Bad_Opcode }, | |
85f10a01 | 7656 | /* 58 */ |
592d1631 L |
7657 | { Bad_Opcode }, |
7658 | { Bad_Opcode }, | |
7659 | { Bad_Opcode }, | |
7660 | { Bad_Opcode }, | |
7661 | { Bad_Opcode }, | |
7662 | { Bad_Opcode }, | |
7663 | { Bad_Opcode }, | |
7664 | { Bad_Opcode }, | |
c1e679ec | 7665 | /* 60 */ |
592d1631 L |
7666 | { Bad_Opcode }, |
7667 | { Bad_Opcode }, | |
7668 | { Bad_Opcode }, | |
7669 | { Bad_Opcode }, | |
7670 | { Bad_Opcode }, | |
7671 | { Bad_Opcode }, | |
7672 | { Bad_Opcode }, | |
7673 | { Bad_Opcode }, | |
c0f3af97 | 7674 | /* 68 */ |
592d1631 L |
7675 | { Bad_Opcode }, |
7676 | { Bad_Opcode }, | |
7677 | { Bad_Opcode }, | |
7678 | { Bad_Opcode }, | |
7679 | { Bad_Opcode }, | |
7680 | { Bad_Opcode }, | |
7681 | { Bad_Opcode }, | |
7682 | { Bad_Opcode }, | |
85f10a01 | 7683 | /* 70 */ |
592d1631 L |
7684 | { Bad_Opcode }, |
7685 | { Bad_Opcode }, | |
7686 | { Bad_Opcode }, | |
7687 | { Bad_Opcode }, | |
7688 | { Bad_Opcode }, | |
7689 | { Bad_Opcode }, | |
7690 | { Bad_Opcode }, | |
7691 | { Bad_Opcode }, | |
85f10a01 | 7692 | /* 78 */ |
592d1631 L |
7693 | { Bad_Opcode }, |
7694 | { Bad_Opcode }, | |
7695 | { Bad_Opcode }, | |
7696 | { Bad_Opcode }, | |
7697 | { Bad_Opcode }, | |
7698 | { Bad_Opcode }, | |
7699 | { Bad_Opcode }, | |
7700 | { Bad_Opcode }, | |
85f10a01 | 7701 | /* 80 */ |
592d1631 L |
7702 | { Bad_Opcode }, |
7703 | { Bad_Opcode }, | |
7704 | { Bad_Opcode }, | |
7705 | { Bad_Opcode }, | |
7706 | { Bad_Opcode }, | |
bf890a93 IT |
7707 | { "vpmacssww", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
7708 | { "vpmacsswd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, | |
7709 | { "vpmacssdql", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, | |
5dd85c99 | 7710 | /* 88 */ |
592d1631 L |
7711 | { Bad_Opcode }, |
7712 | { Bad_Opcode }, | |
7713 | { Bad_Opcode }, | |
7714 | { Bad_Opcode }, | |
7715 | { Bad_Opcode }, | |
7716 | { Bad_Opcode }, | |
bf890a93 IT |
7717 | { "vpmacssdd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
7718 | { "vpmacssdqh", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, | |
5dd85c99 | 7719 | /* 90 */ |
592d1631 L |
7720 | { Bad_Opcode }, |
7721 | { Bad_Opcode }, | |
7722 | { Bad_Opcode }, | |
7723 | { Bad_Opcode }, | |
7724 | { Bad_Opcode }, | |
bf890a93 IT |
7725 | { "vpmacsww", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
7726 | { "vpmacswd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, | |
7727 | { "vpmacsdql", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, | |
5dd85c99 | 7728 | /* 98 */ |
592d1631 L |
7729 | { Bad_Opcode }, |
7730 | { Bad_Opcode }, | |
7731 | { Bad_Opcode }, | |
7732 | { Bad_Opcode }, | |
7733 | { Bad_Opcode }, | |
7734 | { Bad_Opcode }, | |
bf890a93 IT |
7735 | { "vpmacsdd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
7736 | { "vpmacsdqh", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, | |
5dd85c99 | 7737 | /* a0 */ |
592d1631 L |
7738 | { Bad_Opcode }, |
7739 | { Bad_Opcode }, | |
bf890a93 IT |
7740 | { "vpcmov", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
7741 | { "vpperm", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, | |
592d1631 L |
7742 | { Bad_Opcode }, |
7743 | { Bad_Opcode }, | |
bf890a93 | 7744 | { "vpmadcsswd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
592d1631 | 7745 | { Bad_Opcode }, |
5dd85c99 | 7746 | /* a8 */ |
592d1631 L |
7747 | { Bad_Opcode }, |
7748 | { Bad_Opcode }, | |
7749 | { Bad_Opcode }, | |
7750 | { Bad_Opcode }, | |
7751 | { Bad_Opcode }, | |
7752 | { Bad_Opcode }, | |
7753 | { Bad_Opcode }, | |
7754 | { Bad_Opcode }, | |
5dd85c99 | 7755 | /* b0 */ |
592d1631 L |
7756 | { Bad_Opcode }, |
7757 | { Bad_Opcode }, | |
7758 | { Bad_Opcode }, | |
7759 | { Bad_Opcode }, | |
7760 | { Bad_Opcode }, | |
7761 | { Bad_Opcode }, | |
bf890a93 | 7762 | { "vpmadcswd", { XMVexW, Vex, EXVexW, EXVexW, VexI4 }, 0 }, |
592d1631 | 7763 | { Bad_Opcode }, |
5dd85c99 | 7764 | /* b8 */ |
592d1631 L |
7765 | { Bad_Opcode }, |
7766 | { Bad_Opcode }, | |
7767 | { Bad_Opcode }, | |
7768 | { Bad_Opcode }, | |
7769 | { Bad_Opcode }, | |
7770 | { Bad_Opcode }, | |
7771 | { Bad_Opcode }, | |
7772 | { Bad_Opcode }, | |
5dd85c99 | 7773 | /* c0 */ |
bf890a93 IT |
7774 | { "vprotb", { XM, Vex_2src_1, Ib }, 0 }, |
7775 | { "vprotw", { XM, Vex_2src_1, Ib }, 0 }, | |
7776 | { "vprotd", { XM, Vex_2src_1, Ib }, 0 }, | |
7777 | { "vprotq", { XM, Vex_2src_1, Ib }, 0 }, | |
592d1631 L |
7778 | { Bad_Opcode }, |
7779 | { Bad_Opcode }, | |
7780 | { Bad_Opcode }, | |
7781 | { Bad_Opcode }, | |
5dd85c99 | 7782 | /* c8 */ |
592d1631 L |
7783 | { Bad_Opcode }, |
7784 | { Bad_Opcode }, | |
7785 | { Bad_Opcode }, | |
7786 | { Bad_Opcode }, | |
ff688e1f L |
7787 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CC) }, |
7788 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CD) }, | |
7789 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CE) }, | |
7790 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_CF) }, | |
5dd85c99 | 7791 | /* d0 */ |
592d1631 L |
7792 | { Bad_Opcode }, |
7793 | { Bad_Opcode }, | |
7794 | { Bad_Opcode }, | |
7795 | { Bad_Opcode }, | |
7796 | { Bad_Opcode }, | |
7797 | { Bad_Opcode }, | |
7798 | { Bad_Opcode }, | |
7799 | { Bad_Opcode }, | |
5dd85c99 | 7800 | /* d8 */ |
592d1631 L |
7801 | { Bad_Opcode }, |
7802 | { Bad_Opcode }, | |
7803 | { Bad_Opcode }, | |
7804 | { Bad_Opcode }, | |
7805 | { Bad_Opcode }, | |
7806 | { Bad_Opcode }, | |
7807 | { Bad_Opcode }, | |
7808 | { Bad_Opcode }, | |
5dd85c99 | 7809 | /* e0 */ |
592d1631 L |
7810 | { Bad_Opcode }, |
7811 | { Bad_Opcode }, | |
7812 | { Bad_Opcode }, | |
7813 | { Bad_Opcode }, | |
7814 | { Bad_Opcode }, | |
7815 | { Bad_Opcode }, | |
7816 | { Bad_Opcode }, | |
7817 | { Bad_Opcode }, | |
5dd85c99 | 7818 | /* e8 */ |
592d1631 L |
7819 | { Bad_Opcode }, |
7820 | { Bad_Opcode }, | |
7821 | { Bad_Opcode }, | |
7822 | { Bad_Opcode }, | |
ff688e1f L |
7823 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_EC) }, |
7824 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_ED) }, | |
7825 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_EE) }, | |
7826 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_08_EF) }, | |
5dd85c99 | 7827 | /* f0 */ |
592d1631 L |
7828 | { Bad_Opcode }, |
7829 | { Bad_Opcode }, | |
7830 | { Bad_Opcode }, | |
7831 | { Bad_Opcode }, | |
7832 | { Bad_Opcode }, | |
7833 | { Bad_Opcode }, | |
7834 | { Bad_Opcode }, | |
7835 | { Bad_Opcode }, | |
5dd85c99 | 7836 | /* f8 */ |
592d1631 L |
7837 | { Bad_Opcode }, |
7838 | { Bad_Opcode }, | |
7839 | { Bad_Opcode }, | |
7840 | { Bad_Opcode }, | |
7841 | { Bad_Opcode }, | |
7842 | { Bad_Opcode }, | |
7843 | { Bad_Opcode }, | |
7844 | { Bad_Opcode }, | |
5dd85c99 SP |
7845 | }, |
7846 | /* XOP_09 */ | |
7847 | { | |
7848 | /* 00 */ | |
592d1631 | 7849 | { Bad_Opcode }, |
2a2a0f38 QN |
7850 | { REG_TABLE (REG_XOP_TBM_01) }, |
7851 | { REG_TABLE (REG_XOP_TBM_02) }, | |
592d1631 L |
7852 | { Bad_Opcode }, |
7853 | { Bad_Opcode }, | |
7854 | { Bad_Opcode }, | |
7855 | { Bad_Opcode }, | |
7856 | { Bad_Opcode }, | |
5dd85c99 | 7857 | /* 08 */ |
592d1631 L |
7858 | { Bad_Opcode }, |
7859 | { Bad_Opcode }, | |
7860 | { Bad_Opcode }, | |
7861 | { Bad_Opcode }, | |
7862 | { Bad_Opcode }, | |
7863 | { Bad_Opcode }, | |
7864 | { Bad_Opcode }, | |
7865 | { Bad_Opcode }, | |
5dd85c99 | 7866 | /* 10 */ |
592d1631 L |
7867 | { Bad_Opcode }, |
7868 | { Bad_Opcode }, | |
5dd85c99 | 7869 | { REG_TABLE (REG_XOP_LWPCB) }, |
592d1631 L |
7870 | { Bad_Opcode }, |
7871 | { Bad_Opcode }, | |
7872 | { Bad_Opcode }, | |
7873 | { Bad_Opcode }, | |
7874 | { Bad_Opcode }, | |
5dd85c99 | 7875 | /* 18 */ |
592d1631 L |
7876 | { Bad_Opcode }, |
7877 | { Bad_Opcode }, | |
7878 | { Bad_Opcode }, | |
7879 | { Bad_Opcode }, | |
7880 | { Bad_Opcode }, | |
7881 | { Bad_Opcode }, | |
7882 | { Bad_Opcode }, | |
7883 | { Bad_Opcode }, | |
5dd85c99 | 7884 | /* 20 */ |
592d1631 L |
7885 | { Bad_Opcode }, |
7886 | { Bad_Opcode }, | |
7887 | { Bad_Opcode }, | |
7888 | { Bad_Opcode }, | |
7889 | { Bad_Opcode }, | |
7890 | { Bad_Opcode }, | |
7891 | { Bad_Opcode }, | |
7892 | { Bad_Opcode }, | |
5dd85c99 | 7893 | /* 28 */ |
592d1631 L |
7894 | { Bad_Opcode }, |
7895 | { Bad_Opcode }, | |
7896 | { Bad_Opcode }, | |
7897 | { Bad_Opcode }, | |
7898 | { Bad_Opcode }, | |
7899 | { Bad_Opcode }, | |
7900 | { Bad_Opcode }, | |
7901 | { Bad_Opcode }, | |
5dd85c99 | 7902 | /* 30 */ |
592d1631 L |
7903 | { Bad_Opcode }, |
7904 | { Bad_Opcode }, | |
7905 | { Bad_Opcode }, | |
7906 | { Bad_Opcode }, | |
7907 | { Bad_Opcode }, | |
7908 | { Bad_Opcode }, | |
7909 | { Bad_Opcode }, | |
7910 | { Bad_Opcode }, | |
5dd85c99 | 7911 | /* 38 */ |
592d1631 L |
7912 | { Bad_Opcode }, |
7913 | { Bad_Opcode }, | |
7914 | { Bad_Opcode }, | |
7915 | { Bad_Opcode }, | |
7916 | { Bad_Opcode }, | |
7917 | { Bad_Opcode }, | |
7918 | { Bad_Opcode }, | |
7919 | { Bad_Opcode }, | |
5dd85c99 | 7920 | /* 40 */ |
592d1631 L |
7921 | { Bad_Opcode }, |
7922 | { Bad_Opcode }, | |
7923 | { Bad_Opcode }, | |
7924 | { Bad_Opcode }, | |
7925 | { Bad_Opcode }, | |
7926 | { Bad_Opcode }, | |
7927 | { Bad_Opcode }, | |
7928 | { Bad_Opcode }, | |
5dd85c99 | 7929 | /* 48 */ |
592d1631 L |
7930 | { Bad_Opcode }, |
7931 | { Bad_Opcode }, | |
7932 | { Bad_Opcode }, | |
7933 | { Bad_Opcode }, | |
7934 | { Bad_Opcode }, | |
7935 | { Bad_Opcode }, | |
7936 | { Bad_Opcode }, | |
7937 | { Bad_Opcode }, | |
5dd85c99 | 7938 | /* 50 */ |
592d1631 L |
7939 | { Bad_Opcode }, |
7940 | { Bad_Opcode }, | |
7941 | { Bad_Opcode }, | |
7942 | { Bad_Opcode }, | |
7943 | { Bad_Opcode }, | |
7944 | { Bad_Opcode }, | |
7945 | { Bad_Opcode }, | |
7946 | { Bad_Opcode }, | |
5dd85c99 | 7947 | /* 58 */ |
592d1631 L |
7948 | { Bad_Opcode }, |
7949 | { Bad_Opcode }, | |
7950 | { Bad_Opcode }, | |
7951 | { Bad_Opcode }, | |
7952 | { Bad_Opcode }, | |
7953 | { Bad_Opcode }, | |
7954 | { Bad_Opcode }, | |
7955 | { Bad_Opcode }, | |
5dd85c99 | 7956 | /* 60 */ |
592d1631 L |
7957 | { Bad_Opcode }, |
7958 | { Bad_Opcode }, | |
7959 | { Bad_Opcode }, | |
7960 | { Bad_Opcode }, | |
7961 | { Bad_Opcode }, | |
7962 | { Bad_Opcode }, | |
7963 | { Bad_Opcode }, | |
7964 | { Bad_Opcode }, | |
5dd85c99 | 7965 | /* 68 */ |
592d1631 L |
7966 | { Bad_Opcode }, |
7967 | { Bad_Opcode }, | |
7968 | { Bad_Opcode }, | |
7969 | { Bad_Opcode }, | |
7970 | { Bad_Opcode }, | |
7971 | { Bad_Opcode }, | |
7972 | { Bad_Opcode }, | |
7973 | { Bad_Opcode }, | |
5dd85c99 | 7974 | /* 70 */ |
592d1631 L |
7975 | { Bad_Opcode }, |
7976 | { Bad_Opcode }, | |
7977 | { Bad_Opcode }, | |
7978 | { Bad_Opcode }, | |
7979 | { Bad_Opcode }, | |
7980 | { Bad_Opcode }, | |
7981 | { Bad_Opcode }, | |
7982 | { Bad_Opcode }, | |
5dd85c99 | 7983 | /* 78 */ |
592d1631 L |
7984 | { Bad_Opcode }, |
7985 | { Bad_Opcode }, | |
7986 | { Bad_Opcode }, | |
7987 | { Bad_Opcode }, | |
7988 | { Bad_Opcode }, | |
7989 | { Bad_Opcode }, | |
7990 | { Bad_Opcode }, | |
7991 | { Bad_Opcode }, | |
5dd85c99 | 7992 | /* 80 */ |
592a252b L |
7993 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_09_80) }, |
7994 | { VEX_LEN_TABLE (VEX_LEN_0FXOP_09_81) }, | |
bf890a93 IT |
7995 | { "vfrczss", { XM, EXd }, 0 }, |
7996 | { "vfrczsd", { XM, EXq }, 0 }, | |
592d1631 L |
7997 | { Bad_Opcode }, |
7998 | { Bad_Opcode }, | |
7999 | { Bad_Opcode }, | |
8000 | { Bad_Opcode }, | |
5dd85c99 | 8001 | /* 88 */ |
592d1631 L |
8002 | { Bad_Opcode }, |
8003 | { Bad_Opcode }, | |
8004 | { Bad_Opcode }, | |
8005 | { Bad_Opcode }, | |
8006 | { Bad_Opcode }, | |
8007 | { Bad_Opcode }, | |
8008 | { Bad_Opcode }, | |
8009 | { Bad_Opcode }, | |
5dd85c99 | 8010 | /* 90 */ |
bf890a93 IT |
8011 | { "vprotb", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, |
8012 | { "vprotw", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8013 | { "vprotd", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8014 | { "vprotq", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8015 | { "vpshlb", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8016 | { "vpshlw", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8017 | { "vpshld", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8018 | { "vpshlq", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
5dd85c99 | 8019 | /* 98 */ |
bf890a93 IT |
8020 | { "vpshab", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, |
8021 | { "vpshaw", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8022 | { "vpshad", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
8023 | { "vpshaq", { XM, Vex_2src_1, Vex_2src_2 }, 0 }, | |
592d1631 L |
8024 | { Bad_Opcode }, |
8025 | { Bad_Opcode }, | |
8026 | { Bad_Opcode }, | |
8027 | { Bad_Opcode }, | |
5dd85c99 | 8028 | /* a0 */ |
592d1631 L |
8029 | { Bad_Opcode }, |
8030 | { Bad_Opcode }, | |
8031 | { Bad_Opcode }, | |
8032 | { Bad_Opcode }, | |
8033 | { Bad_Opcode }, | |
8034 | { Bad_Opcode }, | |
8035 | { Bad_Opcode }, | |
8036 | { Bad_Opcode }, | |
5dd85c99 | 8037 | /* a8 */ |
592d1631 L |
8038 | { Bad_Opcode }, |
8039 | { Bad_Opcode }, | |
8040 | { Bad_Opcode }, | |
8041 | { Bad_Opcode }, | |
8042 | { Bad_Opcode }, | |
8043 | { Bad_Opcode }, | |
8044 | { Bad_Opcode }, | |
8045 | { Bad_Opcode }, | |
5dd85c99 | 8046 | /* b0 */ |
592d1631 L |
8047 | { Bad_Opcode }, |
8048 | { Bad_Opcode }, | |
8049 | { Bad_Opcode }, | |
8050 | { Bad_Opcode }, | |
8051 | { Bad_Opcode }, | |
8052 | { Bad_Opcode }, | |
8053 | { Bad_Opcode }, | |
8054 | { Bad_Opcode }, | |
5dd85c99 | 8055 | /* b8 */ |
592d1631 L |
8056 | { Bad_Opcode }, |
8057 | { Bad_Opcode }, | |
8058 | { Bad_Opcode }, | |
8059 | { Bad_Opcode }, | |
8060 | { Bad_Opcode }, | |
8061 | { Bad_Opcode }, | |
8062 | { Bad_Opcode }, | |
8063 | { Bad_Opcode }, | |
5dd85c99 | 8064 | /* c0 */ |
592d1631 | 8065 | { Bad_Opcode }, |
bf890a93 IT |
8066 | { "vphaddbw", { XM, EXxmm }, 0 }, |
8067 | { "vphaddbd", { XM, EXxmm }, 0 }, | |
8068 | { "vphaddbq", { XM, EXxmm }, 0 }, | |
592d1631 L |
8069 | { Bad_Opcode }, |
8070 | { Bad_Opcode }, | |
bf890a93 IT |
8071 | { "vphaddwd", { XM, EXxmm }, 0 }, |
8072 | { "vphaddwq", { XM, EXxmm }, 0 }, | |
5dd85c99 | 8073 | /* c8 */ |
592d1631 L |
8074 | { Bad_Opcode }, |
8075 | { Bad_Opcode }, | |
8076 | { Bad_Opcode }, | |
bf890a93 | 8077 | { "vphadddq", { XM, EXxmm }, 0 }, |
592d1631 L |
8078 | { Bad_Opcode }, |
8079 | { Bad_Opcode }, | |
8080 | { Bad_Opcode }, | |
8081 | { Bad_Opcode }, | |
5dd85c99 | 8082 | /* d0 */ |
592d1631 | 8083 | { Bad_Opcode }, |
bf890a93 IT |
8084 | { "vphaddubw", { XM, EXxmm }, 0 }, |
8085 | { "vphaddubd", { XM, EXxmm }, 0 }, | |
8086 | { "vphaddubq", { XM, EXxmm }, 0 }, | |
592d1631 L |
8087 | { Bad_Opcode }, |
8088 | { Bad_Opcode }, | |
bf890a93 IT |
8089 | { "vphadduwd", { XM, EXxmm }, 0 }, |
8090 | { "vphadduwq", { XM, EXxmm }, 0 }, | |
5dd85c99 | 8091 | /* d8 */ |
592d1631 L |
8092 | { Bad_Opcode }, |
8093 | { Bad_Opcode }, | |
8094 | { Bad_Opcode }, | |
bf890a93 | 8095 | { "vphaddudq", { XM, EXxmm }, 0 }, |
592d1631 L |
8096 | { Bad_Opcode }, |
8097 | { Bad_Opcode }, | |
8098 | { Bad_Opcode }, | |
8099 | { Bad_Opcode }, | |
5dd85c99 | 8100 | /* e0 */ |
592d1631 | 8101 | { Bad_Opcode }, |
bf890a93 IT |
8102 | { "vphsubbw", { XM, EXxmm }, 0 }, |
8103 | { "vphsubwd", { XM, EXxmm }, 0 }, | |
8104 | { "vphsubdq", { XM, EXxmm }, 0 }, | |
592d1631 L |
8105 | { Bad_Opcode }, |
8106 | { Bad_Opcode }, | |
8107 | { Bad_Opcode }, | |
8108 | { Bad_Opcode }, | |
4e7d34a6 | 8109 | /* e8 */ |
592d1631 L |
8110 | { Bad_Opcode }, |
8111 | { Bad_Opcode }, | |
8112 | { Bad_Opcode }, | |
8113 | { Bad_Opcode }, | |
8114 | { Bad_Opcode }, | |
8115 | { Bad_Opcode }, | |
8116 | { Bad_Opcode }, | |
8117 | { Bad_Opcode }, | |
4e7d34a6 | 8118 | /* f0 */ |
592d1631 L |
8119 | { Bad_Opcode }, |
8120 | { Bad_Opcode }, | |
8121 | { Bad_Opcode }, | |
8122 | { Bad_Opcode }, | |
8123 | { Bad_Opcode }, | |
8124 | { Bad_Opcode }, | |
8125 | { Bad_Opcode }, | |
8126 | { Bad_Opcode }, | |
4e7d34a6 | 8127 | /* f8 */ |
592d1631 L |
8128 | { Bad_Opcode }, |
8129 | { Bad_Opcode }, | |
8130 | { Bad_Opcode }, | |
8131 | { Bad_Opcode }, | |
8132 | { Bad_Opcode }, | |
8133 | { Bad_Opcode }, | |
8134 | { Bad_Opcode }, | |
8135 | { Bad_Opcode }, | |
4e7d34a6 | 8136 | }, |
f88c9eb0 | 8137 | /* XOP_0A */ |
4e7d34a6 L |
8138 | { |
8139 | /* 00 */ | |
592d1631 L |
8140 | { Bad_Opcode }, |
8141 | { Bad_Opcode }, | |
8142 | { Bad_Opcode }, | |
8143 | { Bad_Opcode }, | |
8144 | { Bad_Opcode }, | |
8145 | { Bad_Opcode }, | |
8146 | { Bad_Opcode }, | |
8147 | { Bad_Opcode }, | |
4e7d34a6 | 8148 | /* 08 */ |
592d1631 L |
8149 | { Bad_Opcode }, |
8150 | { Bad_Opcode }, | |
8151 | { Bad_Opcode }, | |
8152 | { Bad_Opcode }, | |
8153 | { Bad_Opcode }, | |
8154 | { Bad_Opcode }, | |
8155 | { Bad_Opcode }, | |
8156 | { Bad_Opcode }, | |
4e7d34a6 | 8157 | /* 10 */ |
bf890a93 | 8158 | { "bextr", { Gv, Ev, Iq }, 0 }, |
592d1631 | 8159 | { Bad_Opcode }, |
f88c9eb0 | 8160 | { REG_TABLE (REG_XOP_LWP) }, |
592d1631 L |
8161 | { Bad_Opcode }, |
8162 | { Bad_Opcode }, | |
8163 | { Bad_Opcode }, | |
8164 | { Bad_Opcode }, | |
8165 | { Bad_Opcode }, | |
4e7d34a6 | 8166 | /* 18 */ |
592d1631 L |
8167 | { Bad_Opcode }, |
8168 | { Bad_Opcode }, | |
8169 | { Bad_Opcode }, | |
8170 | { Bad_Opcode }, | |
8171 | { Bad_Opcode }, | |
8172 | { Bad_Opcode }, | |
8173 | { Bad_Opcode }, | |
8174 | { Bad_Opcode }, | |
4e7d34a6 | 8175 | /* 20 */ |
592d1631 L |
8176 | { Bad_Opcode }, |
8177 | { Bad_Opcode }, | |
8178 | { Bad_Opcode }, | |
8179 | { Bad_Opcode }, | |
8180 | { Bad_Opcode }, | |
8181 | { Bad_Opcode }, | |
8182 | { Bad_Opcode }, | |
8183 | { Bad_Opcode }, | |
4e7d34a6 | 8184 | /* 28 */ |
592d1631 L |
8185 | { Bad_Opcode }, |
8186 | { Bad_Opcode }, | |
8187 | { Bad_Opcode }, | |
8188 | { Bad_Opcode }, | |
8189 | { Bad_Opcode }, | |
8190 | { Bad_Opcode }, | |
8191 | { Bad_Opcode }, | |
8192 | { Bad_Opcode }, | |
4e7d34a6 | 8193 | /* 30 */ |
592d1631 L |
8194 | { Bad_Opcode }, |
8195 | { Bad_Opcode }, | |
8196 | { Bad_Opcode }, | |
8197 | { Bad_Opcode }, | |
8198 | { Bad_Opcode }, | |
8199 | { Bad_Opcode }, | |
8200 | { Bad_Opcode }, | |
8201 | { Bad_Opcode }, | |
c0f3af97 | 8202 | /* 38 */ |
592d1631 L |
8203 | { Bad_Opcode }, |
8204 | { Bad_Opcode }, | |
8205 | { Bad_Opcode }, | |
8206 | { Bad_Opcode }, | |
8207 | { Bad_Opcode }, | |
8208 | { Bad_Opcode }, | |
8209 | { Bad_Opcode }, | |
8210 | { Bad_Opcode }, | |
c0f3af97 | 8211 | /* 40 */ |
592d1631 L |
8212 | { Bad_Opcode }, |
8213 | { Bad_Opcode }, | |
8214 | { Bad_Opcode }, | |
8215 | { Bad_Opcode }, | |
8216 | { Bad_Opcode }, | |
8217 | { Bad_Opcode }, | |
8218 | { Bad_Opcode }, | |
8219 | { Bad_Opcode }, | |
c1e679ec | 8220 | /* 48 */ |
592d1631 L |
8221 | { Bad_Opcode }, |
8222 | { Bad_Opcode }, | |
8223 | { Bad_Opcode }, | |
8224 | { Bad_Opcode }, | |
8225 | { Bad_Opcode }, | |
8226 | { Bad_Opcode }, | |
8227 | { Bad_Opcode }, | |
8228 | { Bad_Opcode }, | |
c1e679ec | 8229 | /* 50 */ |
592d1631 L |
8230 | { Bad_Opcode }, |
8231 | { Bad_Opcode }, | |
8232 | { Bad_Opcode }, | |
8233 | { Bad_Opcode }, | |
8234 | { Bad_Opcode }, | |
8235 | { Bad_Opcode }, | |
8236 | { Bad_Opcode }, | |
8237 | { Bad_Opcode }, | |
4e7d34a6 | 8238 | /* 58 */ |
592d1631 L |
8239 | { Bad_Opcode }, |
8240 | { Bad_Opcode }, | |
8241 | { Bad_Opcode }, | |
8242 | { Bad_Opcode }, | |
8243 | { Bad_Opcode }, | |
8244 | { Bad_Opcode }, | |
8245 | { Bad_Opcode }, | |
8246 | { Bad_Opcode }, | |
4e7d34a6 | 8247 | /* 60 */ |
592d1631 L |
8248 | { Bad_Opcode }, |
8249 | { Bad_Opcode }, | |
8250 | { Bad_Opcode }, | |
8251 | { Bad_Opcode }, | |
8252 | { Bad_Opcode }, | |
8253 | { Bad_Opcode }, | |
8254 | { Bad_Opcode }, | |
8255 | { Bad_Opcode }, | |
4e7d34a6 | 8256 | /* 68 */ |
592d1631 L |
8257 | { Bad_Opcode }, |
8258 | { Bad_Opcode }, | |
8259 | { Bad_Opcode }, | |
8260 | { Bad_Opcode }, | |
8261 | { Bad_Opcode }, | |
8262 | { Bad_Opcode }, | |
8263 | { Bad_Opcode }, | |
8264 | { Bad_Opcode }, | |
4e7d34a6 | 8265 | /* 70 */ |
592d1631 L |
8266 | { Bad_Opcode }, |
8267 | { Bad_Opcode }, | |
8268 | { Bad_Opcode }, | |
8269 | { Bad_Opcode }, | |
8270 | { Bad_Opcode }, | |
8271 | { Bad_Opcode }, | |
8272 | { Bad_Opcode }, | |
8273 | { Bad_Opcode }, | |
4e7d34a6 | 8274 | /* 78 */ |
592d1631 L |
8275 | { Bad_Opcode }, |
8276 | { Bad_Opcode }, | |
8277 | { Bad_Opcode }, | |
8278 | { Bad_Opcode }, | |
8279 | { Bad_Opcode }, | |
8280 | { Bad_Opcode }, | |
8281 | { Bad_Opcode }, | |
8282 | { Bad_Opcode }, | |
4e7d34a6 | 8283 | /* 80 */ |
592d1631 L |
8284 | { Bad_Opcode }, |
8285 | { Bad_Opcode }, | |
8286 | { Bad_Opcode }, | |
8287 | { Bad_Opcode }, | |
8288 | { Bad_Opcode }, | |
8289 | { Bad_Opcode }, | |
8290 | { Bad_Opcode }, | |
8291 | { Bad_Opcode }, | |
4e7d34a6 | 8292 | /* 88 */ |
592d1631 L |
8293 | { Bad_Opcode }, |
8294 | { Bad_Opcode }, | |
8295 | { Bad_Opcode }, | |
8296 | { Bad_Opcode }, | |
8297 | { Bad_Opcode }, | |
8298 | { Bad_Opcode }, | |
8299 | { Bad_Opcode }, | |
8300 | { Bad_Opcode }, | |
4e7d34a6 | 8301 | /* 90 */ |
592d1631 L |
8302 | { Bad_Opcode }, |
8303 | { Bad_Opcode }, | |
8304 | { Bad_Opcode }, | |
8305 | { Bad_Opcode }, | |
8306 | { Bad_Opcode }, | |
8307 | { Bad_Opcode }, | |
8308 | { Bad_Opcode }, | |
8309 | { Bad_Opcode }, | |
4e7d34a6 | 8310 | /* 98 */ |
592d1631 L |
8311 | { Bad_Opcode }, |
8312 | { Bad_Opcode }, | |
8313 | { Bad_Opcode }, | |
8314 | { Bad_Opcode }, | |
8315 | { Bad_Opcode }, | |
8316 | { Bad_Opcode }, | |
8317 | { Bad_Opcode }, | |
8318 | { Bad_Opcode }, | |
4e7d34a6 | 8319 | /* a0 */ |
592d1631 L |
8320 | { Bad_Opcode }, |
8321 | { Bad_Opcode }, | |
8322 | { Bad_Opcode }, | |
8323 | { Bad_Opcode }, | |
8324 | { Bad_Opcode }, | |
8325 | { Bad_Opcode }, | |
8326 | { Bad_Opcode }, | |
8327 | { Bad_Opcode }, | |
4e7d34a6 | 8328 | /* a8 */ |
592d1631 L |
8329 | { Bad_Opcode }, |
8330 | { Bad_Opcode }, | |
8331 | { Bad_Opcode }, | |
8332 | { Bad_Opcode }, | |
8333 | { Bad_Opcode }, | |
8334 | { Bad_Opcode }, | |
8335 | { Bad_Opcode }, | |
8336 | { Bad_Opcode }, | |
d5d7db8e | 8337 | /* b0 */ |
592d1631 L |
8338 | { Bad_Opcode }, |
8339 | { Bad_Opcode }, | |
8340 | { Bad_Opcode }, | |
8341 | { Bad_Opcode }, | |
8342 | { Bad_Opcode }, | |
8343 | { Bad_Opcode }, | |
8344 | { Bad_Opcode }, | |
8345 | { Bad_Opcode }, | |
85f10a01 | 8346 | /* b8 */ |
592d1631 L |
8347 | { Bad_Opcode }, |
8348 | { Bad_Opcode }, | |
8349 | { Bad_Opcode }, | |
8350 | { Bad_Opcode }, | |
8351 | { Bad_Opcode }, | |
8352 | { Bad_Opcode }, | |
8353 | { Bad_Opcode }, | |
8354 | { Bad_Opcode }, | |
85f10a01 | 8355 | /* c0 */ |
592d1631 L |
8356 | { Bad_Opcode }, |
8357 | { Bad_Opcode }, | |
8358 | { Bad_Opcode }, | |
8359 | { Bad_Opcode }, | |
8360 | { Bad_Opcode }, | |
8361 | { Bad_Opcode }, | |
8362 | { Bad_Opcode }, | |
8363 | { Bad_Opcode }, | |
85f10a01 | 8364 | /* c8 */ |
592d1631 L |
8365 | { Bad_Opcode }, |
8366 | { Bad_Opcode }, | |
8367 | { Bad_Opcode }, | |
8368 | { Bad_Opcode }, | |
8369 | { Bad_Opcode }, | |
8370 | { Bad_Opcode }, | |
8371 | { Bad_Opcode }, | |
8372 | { Bad_Opcode }, | |
85f10a01 | 8373 | /* d0 */ |
592d1631 L |
8374 | { Bad_Opcode }, |
8375 | { Bad_Opcode }, | |
8376 | { Bad_Opcode }, | |
8377 | { Bad_Opcode }, | |
8378 | { Bad_Opcode }, | |
8379 | { Bad_Opcode }, | |
8380 | { Bad_Opcode }, | |
8381 | { Bad_Opcode }, | |
85f10a01 | 8382 | /* d8 */ |
592d1631 L |
8383 | { Bad_Opcode }, |
8384 | { Bad_Opcode }, | |
8385 | { Bad_Opcode }, | |
8386 | { Bad_Opcode }, | |
8387 | { Bad_Opcode }, | |
8388 | { Bad_Opcode }, | |
8389 | { Bad_Opcode }, | |
8390 | { Bad_Opcode }, | |
85f10a01 | 8391 | /* e0 */ |
592d1631 L |
8392 | { Bad_Opcode }, |
8393 | { Bad_Opcode }, | |
8394 | { Bad_Opcode }, | |
8395 | { Bad_Opcode }, | |
8396 | { Bad_Opcode }, | |
8397 | { Bad_Opcode }, | |
8398 | { Bad_Opcode }, | |
8399 | { Bad_Opcode }, | |
85f10a01 | 8400 | /* e8 */ |
592d1631 L |
8401 | { Bad_Opcode }, |
8402 | { Bad_Opcode }, | |
8403 | { Bad_Opcode }, | |
8404 | { Bad_Opcode }, | |
8405 | { Bad_Opcode }, | |
8406 | { Bad_Opcode }, | |
8407 | { Bad_Opcode }, | |
8408 | { Bad_Opcode }, | |
85f10a01 | 8409 | /* f0 */ |
592d1631 L |
8410 | { Bad_Opcode }, |
8411 | { Bad_Opcode }, | |
8412 | { Bad_Opcode }, | |
8413 | { Bad_Opcode }, | |
8414 | { Bad_Opcode }, | |
8415 | { Bad_Opcode }, | |
8416 | { Bad_Opcode }, | |
8417 | { Bad_Opcode }, | |
85f10a01 | 8418 | /* f8 */ |
592d1631 L |
8419 | { Bad_Opcode }, |
8420 | { Bad_Opcode }, | |
8421 | { Bad_Opcode }, | |
8422 | { Bad_Opcode }, | |
8423 | { Bad_Opcode }, | |
8424 | { Bad_Opcode }, | |
8425 | { Bad_Opcode }, | |
8426 | { Bad_Opcode }, | |
85f10a01 | 8427 | }, |
c0f3af97 L |
8428 | }; |
8429 | ||
8430 | static const struct dis386 vex_table[][256] = { | |
8431 | /* VEX_0F */ | |
85f10a01 MM |
8432 | { |
8433 | /* 00 */ | |
592d1631 L |
8434 | { Bad_Opcode }, |
8435 | { Bad_Opcode }, | |
8436 | { Bad_Opcode }, | |
8437 | { Bad_Opcode }, | |
8438 | { Bad_Opcode }, | |
8439 | { Bad_Opcode }, | |
8440 | { Bad_Opcode }, | |
8441 | { Bad_Opcode }, | |
85f10a01 | 8442 | /* 08 */ |
592d1631 L |
8443 | { Bad_Opcode }, |
8444 | { Bad_Opcode }, | |
8445 | { Bad_Opcode }, | |
8446 | { Bad_Opcode }, | |
8447 | { Bad_Opcode }, | |
8448 | { Bad_Opcode }, | |
8449 | { Bad_Opcode }, | |
8450 | { Bad_Opcode }, | |
c0f3af97 | 8451 | /* 10 */ |
592a252b L |
8452 | { PREFIX_TABLE (PREFIX_VEX_0F10) }, |
8453 | { PREFIX_TABLE (PREFIX_VEX_0F11) }, | |
8454 | { PREFIX_TABLE (PREFIX_VEX_0F12) }, | |
8455 | { MOD_TABLE (MOD_VEX_0F13) }, | |
8456 | { VEX_W_TABLE (VEX_W_0F14) }, | |
8457 | { VEX_W_TABLE (VEX_W_0F15) }, | |
8458 | { PREFIX_TABLE (PREFIX_VEX_0F16) }, | |
8459 | { MOD_TABLE (MOD_VEX_0F17) }, | |
c0f3af97 | 8460 | /* 18 */ |
592d1631 L |
8461 | { Bad_Opcode }, |
8462 | { Bad_Opcode }, | |
8463 | { Bad_Opcode }, | |
8464 | { Bad_Opcode }, | |
8465 | { Bad_Opcode }, | |
8466 | { Bad_Opcode }, | |
8467 | { Bad_Opcode }, | |
8468 | { Bad_Opcode }, | |
c0f3af97 | 8469 | /* 20 */ |
592d1631 L |
8470 | { Bad_Opcode }, |
8471 | { Bad_Opcode }, | |
8472 | { Bad_Opcode }, | |
8473 | { Bad_Opcode }, | |
8474 | { Bad_Opcode }, | |
8475 | { Bad_Opcode }, | |
8476 | { Bad_Opcode }, | |
8477 | { Bad_Opcode }, | |
c0f3af97 | 8478 | /* 28 */ |
592a252b L |
8479 | { VEX_W_TABLE (VEX_W_0F28) }, |
8480 | { VEX_W_TABLE (VEX_W_0F29) }, | |
8481 | { PREFIX_TABLE (PREFIX_VEX_0F2A) }, | |
8482 | { MOD_TABLE (MOD_VEX_0F2B) }, | |
8483 | { PREFIX_TABLE (PREFIX_VEX_0F2C) }, | |
8484 | { PREFIX_TABLE (PREFIX_VEX_0F2D) }, | |
8485 | { PREFIX_TABLE (PREFIX_VEX_0F2E) }, | |
8486 | { PREFIX_TABLE (PREFIX_VEX_0F2F) }, | |
85f10a01 | 8487 | /* 30 */ |
592d1631 L |
8488 | { Bad_Opcode }, |
8489 | { Bad_Opcode }, | |
8490 | { Bad_Opcode }, | |
8491 | { Bad_Opcode }, | |
8492 | { Bad_Opcode }, | |
8493 | { Bad_Opcode }, | |
8494 | { Bad_Opcode }, | |
8495 | { Bad_Opcode }, | |
4e7d34a6 | 8496 | /* 38 */ |
592d1631 L |
8497 | { Bad_Opcode }, |
8498 | { Bad_Opcode }, | |
8499 | { Bad_Opcode }, | |
8500 | { Bad_Opcode }, | |
8501 | { Bad_Opcode }, | |
8502 | { Bad_Opcode }, | |
8503 | { Bad_Opcode }, | |
8504 | { Bad_Opcode }, | |
d5d7db8e | 8505 | /* 40 */ |
592d1631 | 8506 | { Bad_Opcode }, |
43234a1e L |
8507 | { PREFIX_TABLE (PREFIX_VEX_0F41) }, |
8508 | { PREFIX_TABLE (PREFIX_VEX_0F42) }, | |
592d1631 | 8509 | { Bad_Opcode }, |
43234a1e L |
8510 | { PREFIX_TABLE (PREFIX_VEX_0F44) }, |
8511 | { PREFIX_TABLE (PREFIX_VEX_0F45) }, | |
8512 | { PREFIX_TABLE (PREFIX_VEX_0F46) }, | |
8513 | { PREFIX_TABLE (PREFIX_VEX_0F47) }, | |
85f10a01 | 8514 | /* 48 */ |
592d1631 L |
8515 | { Bad_Opcode }, |
8516 | { Bad_Opcode }, | |
1ba585e8 | 8517 | { PREFIX_TABLE (PREFIX_VEX_0F4A) }, |
43234a1e | 8518 | { PREFIX_TABLE (PREFIX_VEX_0F4B) }, |
592d1631 L |
8519 | { Bad_Opcode }, |
8520 | { Bad_Opcode }, | |
8521 | { Bad_Opcode }, | |
8522 | { Bad_Opcode }, | |
d5d7db8e | 8523 | /* 50 */ |
592a252b L |
8524 | { MOD_TABLE (MOD_VEX_0F50) }, |
8525 | { PREFIX_TABLE (PREFIX_VEX_0F51) }, | |
8526 | { PREFIX_TABLE (PREFIX_VEX_0F52) }, | |
8527 | { PREFIX_TABLE (PREFIX_VEX_0F53) }, | |
bf890a93 IT |
8528 | { "vandpX", { XM, Vex, EXx }, 0 }, |
8529 | { "vandnpX", { XM, Vex, EXx }, 0 }, | |
8530 | { "vorpX", { XM, Vex, EXx }, 0 }, | |
8531 | { "vxorpX", { XM, Vex, EXx }, 0 }, | |
c0f3af97 | 8532 | /* 58 */ |
592a252b L |
8533 | { PREFIX_TABLE (PREFIX_VEX_0F58) }, |
8534 | { PREFIX_TABLE (PREFIX_VEX_0F59) }, | |
8535 | { PREFIX_TABLE (PREFIX_VEX_0F5A) }, | |
8536 | { PREFIX_TABLE (PREFIX_VEX_0F5B) }, | |
8537 | { PREFIX_TABLE (PREFIX_VEX_0F5C) }, | |
8538 | { PREFIX_TABLE (PREFIX_VEX_0F5D) }, | |
8539 | { PREFIX_TABLE (PREFIX_VEX_0F5E) }, | |
8540 | { PREFIX_TABLE (PREFIX_VEX_0F5F) }, | |
c0f3af97 | 8541 | /* 60 */ |
592a252b L |
8542 | { PREFIX_TABLE (PREFIX_VEX_0F60) }, |
8543 | { PREFIX_TABLE (PREFIX_VEX_0F61) }, | |
8544 | { PREFIX_TABLE (PREFIX_VEX_0F62) }, | |
8545 | { PREFIX_TABLE (PREFIX_VEX_0F63) }, | |
8546 | { PREFIX_TABLE (PREFIX_VEX_0F64) }, | |
8547 | { PREFIX_TABLE (PREFIX_VEX_0F65) }, | |
8548 | { PREFIX_TABLE (PREFIX_VEX_0F66) }, | |
8549 | { PREFIX_TABLE (PREFIX_VEX_0F67) }, | |
c0f3af97 | 8550 | /* 68 */ |
592a252b L |
8551 | { PREFIX_TABLE (PREFIX_VEX_0F68) }, |
8552 | { PREFIX_TABLE (PREFIX_VEX_0F69) }, | |
8553 | { PREFIX_TABLE (PREFIX_VEX_0F6A) }, | |
8554 | { PREFIX_TABLE (PREFIX_VEX_0F6B) }, | |
8555 | { PREFIX_TABLE (PREFIX_VEX_0F6C) }, | |
8556 | { PREFIX_TABLE (PREFIX_VEX_0F6D) }, | |
8557 | { PREFIX_TABLE (PREFIX_VEX_0F6E) }, | |
8558 | { PREFIX_TABLE (PREFIX_VEX_0F6F) }, | |
c0f3af97 | 8559 | /* 70 */ |
592a252b L |
8560 | { PREFIX_TABLE (PREFIX_VEX_0F70) }, |
8561 | { REG_TABLE (REG_VEX_0F71) }, | |
8562 | { REG_TABLE (REG_VEX_0F72) }, | |
8563 | { REG_TABLE (REG_VEX_0F73) }, | |
8564 | { PREFIX_TABLE (PREFIX_VEX_0F74) }, | |
8565 | { PREFIX_TABLE (PREFIX_VEX_0F75) }, | |
8566 | { PREFIX_TABLE (PREFIX_VEX_0F76) }, | |
8567 | { PREFIX_TABLE (PREFIX_VEX_0F77) }, | |
c0f3af97 | 8568 | /* 78 */ |
592d1631 L |
8569 | { Bad_Opcode }, |
8570 | { Bad_Opcode }, | |
8571 | { Bad_Opcode }, | |
8572 | { Bad_Opcode }, | |
592a252b L |
8573 | { PREFIX_TABLE (PREFIX_VEX_0F7C) }, |
8574 | { PREFIX_TABLE (PREFIX_VEX_0F7D) }, | |
8575 | { PREFIX_TABLE (PREFIX_VEX_0F7E) }, | |
8576 | { PREFIX_TABLE (PREFIX_VEX_0F7F) }, | |
c0f3af97 | 8577 | /* 80 */ |
592d1631 L |
8578 | { Bad_Opcode }, |
8579 | { Bad_Opcode }, | |
8580 | { Bad_Opcode }, | |
8581 | { Bad_Opcode }, | |
8582 | { Bad_Opcode }, | |
8583 | { Bad_Opcode }, | |
8584 | { Bad_Opcode }, | |
8585 | { Bad_Opcode }, | |
c0f3af97 | 8586 | /* 88 */ |
592d1631 L |
8587 | { Bad_Opcode }, |
8588 | { Bad_Opcode }, | |
8589 | { Bad_Opcode }, | |
8590 | { Bad_Opcode }, | |
8591 | { Bad_Opcode }, | |
8592 | { Bad_Opcode }, | |
8593 | { Bad_Opcode }, | |
8594 | { Bad_Opcode }, | |
c0f3af97 | 8595 | /* 90 */ |
43234a1e L |
8596 | { PREFIX_TABLE (PREFIX_VEX_0F90) }, |
8597 | { PREFIX_TABLE (PREFIX_VEX_0F91) }, | |
8598 | { PREFIX_TABLE (PREFIX_VEX_0F92) }, | |
8599 | { PREFIX_TABLE (PREFIX_VEX_0F93) }, | |
592d1631 L |
8600 | { Bad_Opcode }, |
8601 | { Bad_Opcode }, | |
8602 | { Bad_Opcode }, | |
8603 | { Bad_Opcode }, | |
c0f3af97 | 8604 | /* 98 */ |
43234a1e | 8605 | { PREFIX_TABLE (PREFIX_VEX_0F98) }, |
1ba585e8 | 8606 | { PREFIX_TABLE (PREFIX_VEX_0F99) }, |
592d1631 L |
8607 | { Bad_Opcode }, |
8608 | { Bad_Opcode }, | |
8609 | { Bad_Opcode }, | |
8610 | { Bad_Opcode }, | |
8611 | { Bad_Opcode }, | |
8612 | { Bad_Opcode }, | |
c0f3af97 | 8613 | /* a0 */ |
592d1631 L |
8614 | { Bad_Opcode }, |
8615 | { Bad_Opcode }, | |
8616 | { Bad_Opcode }, | |
8617 | { Bad_Opcode }, | |
8618 | { Bad_Opcode }, | |
8619 | { Bad_Opcode }, | |
8620 | { Bad_Opcode }, | |
8621 | { Bad_Opcode }, | |
c0f3af97 | 8622 | /* a8 */ |
592d1631 L |
8623 | { Bad_Opcode }, |
8624 | { Bad_Opcode }, | |
8625 | { Bad_Opcode }, | |
8626 | { Bad_Opcode }, | |
8627 | { Bad_Opcode }, | |
8628 | { Bad_Opcode }, | |
592a252b | 8629 | { REG_TABLE (REG_VEX_0FAE) }, |
592d1631 | 8630 | { Bad_Opcode }, |
c0f3af97 | 8631 | /* b0 */ |
592d1631 L |
8632 | { Bad_Opcode }, |
8633 | { Bad_Opcode }, | |
8634 | { Bad_Opcode }, | |
8635 | { Bad_Opcode }, | |
8636 | { Bad_Opcode }, | |
8637 | { Bad_Opcode }, | |
8638 | { Bad_Opcode }, | |
8639 | { Bad_Opcode }, | |
c0f3af97 | 8640 | /* b8 */ |
592d1631 L |
8641 | { Bad_Opcode }, |
8642 | { Bad_Opcode }, | |
8643 | { Bad_Opcode }, | |
8644 | { Bad_Opcode }, | |
8645 | { Bad_Opcode }, | |
8646 | { Bad_Opcode }, | |
8647 | { Bad_Opcode }, | |
8648 | { Bad_Opcode }, | |
c0f3af97 | 8649 | /* c0 */ |
592d1631 L |
8650 | { Bad_Opcode }, |
8651 | { Bad_Opcode }, | |
592a252b | 8652 | { PREFIX_TABLE (PREFIX_VEX_0FC2) }, |
592d1631 | 8653 | { Bad_Opcode }, |
592a252b L |
8654 | { PREFIX_TABLE (PREFIX_VEX_0FC4) }, |
8655 | { PREFIX_TABLE (PREFIX_VEX_0FC5) }, | |
bf890a93 | 8656 | { "vshufpX", { XM, Vex, EXx, Ib }, 0 }, |
592d1631 | 8657 | { Bad_Opcode }, |
c0f3af97 | 8658 | /* c8 */ |
592d1631 L |
8659 | { Bad_Opcode }, |
8660 | { Bad_Opcode }, | |
8661 | { Bad_Opcode }, | |
8662 | { Bad_Opcode }, | |
8663 | { Bad_Opcode }, | |
8664 | { Bad_Opcode }, | |
8665 | { Bad_Opcode }, | |
8666 | { Bad_Opcode }, | |
c0f3af97 | 8667 | /* d0 */ |
592a252b L |
8668 | { PREFIX_TABLE (PREFIX_VEX_0FD0) }, |
8669 | { PREFIX_TABLE (PREFIX_VEX_0FD1) }, | |
8670 | { PREFIX_TABLE (PREFIX_VEX_0FD2) }, | |
8671 | { PREFIX_TABLE (PREFIX_VEX_0FD3) }, | |
8672 | { PREFIX_TABLE (PREFIX_VEX_0FD4) }, | |
8673 | { PREFIX_TABLE (PREFIX_VEX_0FD5) }, | |
8674 | { PREFIX_TABLE (PREFIX_VEX_0FD6) }, | |
8675 | { PREFIX_TABLE (PREFIX_VEX_0FD7) }, | |
c0f3af97 | 8676 | /* d8 */ |
592a252b L |
8677 | { PREFIX_TABLE (PREFIX_VEX_0FD8) }, |
8678 | { PREFIX_TABLE (PREFIX_VEX_0FD9) }, | |
8679 | { PREFIX_TABLE (PREFIX_VEX_0FDA) }, | |
8680 | { PREFIX_TABLE (PREFIX_VEX_0FDB) }, | |
8681 | { PREFIX_TABLE (PREFIX_VEX_0FDC) }, | |
8682 | { PREFIX_TABLE (PREFIX_VEX_0FDD) }, | |
8683 | { PREFIX_TABLE (PREFIX_VEX_0FDE) }, | |
8684 | { PREFIX_TABLE (PREFIX_VEX_0FDF) }, | |
c0f3af97 | 8685 | /* e0 */ |
592a252b L |
8686 | { PREFIX_TABLE (PREFIX_VEX_0FE0) }, |
8687 | { PREFIX_TABLE (PREFIX_VEX_0FE1) }, | |
8688 | { PREFIX_TABLE (PREFIX_VEX_0FE2) }, | |
8689 | { PREFIX_TABLE (PREFIX_VEX_0FE3) }, | |
8690 | { PREFIX_TABLE (PREFIX_VEX_0FE4) }, | |
8691 | { PREFIX_TABLE (PREFIX_VEX_0FE5) }, | |
8692 | { PREFIX_TABLE (PREFIX_VEX_0FE6) }, | |
8693 | { PREFIX_TABLE (PREFIX_VEX_0FE7) }, | |
c0f3af97 | 8694 | /* e8 */ |
592a252b L |
8695 | { PREFIX_TABLE (PREFIX_VEX_0FE8) }, |
8696 | { PREFIX_TABLE (PREFIX_VEX_0FE9) }, | |
8697 | { PREFIX_TABLE (PREFIX_VEX_0FEA) }, | |
8698 | { PREFIX_TABLE (PREFIX_VEX_0FEB) }, | |
8699 | { PREFIX_TABLE (PREFIX_VEX_0FEC) }, | |
8700 | { PREFIX_TABLE (PREFIX_VEX_0FED) }, | |
8701 | { PREFIX_TABLE (PREFIX_VEX_0FEE) }, | |
8702 | { PREFIX_TABLE (PREFIX_VEX_0FEF) }, | |
c0f3af97 | 8703 | /* f0 */ |
592a252b L |
8704 | { PREFIX_TABLE (PREFIX_VEX_0FF0) }, |
8705 | { PREFIX_TABLE (PREFIX_VEX_0FF1) }, | |
8706 | { PREFIX_TABLE (PREFIX_VEX_0FF2) }, | |
8707 | { PREFIX_TABLE (PREFIX_VEX_0FF3) }, | |
8708 | { PREFIX_TABLE (PREFIX_VEX_0FF4) }, | |
8709 | { PREFIX_TABLE (PREFIX_VEX_0FF5) }, | |
8710 | { PREFIX_TABLE (PREFIX_VEX_0FF6) }, | |
8711 | { PREFIX_TABLE (PREFIX_VEX_0FF7) }, | |
c0f3af97 | 8712 | /* f8 */ |
592a252b L |
8713 | { PREFIX_TABLE (PREFIX_VEX_0FF8) }, |
8714 | { PREFIX_TABLE (PREFIX_VEX_0FF9) }, | |
8715 | { PREFIX_TABLE (PREFIX_VEX_0FFA) }, | |
8716 | { PREFIX_TABLE (PREFIX_VEX_0FFB) }, | |
8717 | { PREFIX_TABLE (PREFIX_VEX_0FFC) }, | |
8718 | { PREFIX_TABLE (PREFIX_VEX_0FFD) }, | |
8719 | { PREFIX_TABLE (PREFIX_VEX_0FFE) }, | |
592d1631 | 8720 | { Bad_Opcode }, |
c0f3af97 L |
8721 | }, |
8722 | /* VEX_0F38 */ | |
8723 | { | |
8724 | /* 00 */ | |
592a252b L |
8725 | { PREFIX_TABLE (PREFIX_VEX_0F3800) }, |
8726 | { PREFIX_TABLE (PREFIX_VEX_0F3801) }, | |
8727 | { PREFIX_TABLE (PREFIX_VEX_0F3802) }, | |
8728 | { PREFIX_TABLE (PREFIX_VEX_0F3803) }, | |
8729 | { PREFIX_TABLE (PREFIX_VEX_0F3804) }, | |
8730 | { PREFIX_TABLE (PREFIX_VEX_0F3805) }, | |
8731 | { PREFIX_TABLE (PREFIX_VEX_0F3806) }, | |
8732 | { PREFIX_TABLE (PREFIX_VEX_0F3807) }, | |
c0f3af97 | 8733 | /* 08 */ |
592a252b L |
8734 | { PREFIX_TABLE (PREFIX_VEX_0F3808) }, |
8735 | { PREFIX_TABLE (PREFIX_VEX_0F3809) }, | |
8736 | { PREFIX_TABLE (PREFIX_VEX_0F380A) }, | |
8737 | { PREFIX_TABLE (PREFIX_VEX_0F380B) }, | |
8738 | { PREFIX_TABLE (PREFIX_VEX_0F380C) }, | |
8739 | { PREFIX_TABLE (PREFIX_VEX_0F380D) }, | |
8740 | { PREFIX_TABLE (PREFIX_VEX_0F380E) }, | |
8741 | { PREFIX_TABLE (PREFIX_VEX_0F380F) }, | |
c0f3af97 | 8742 | /* 10 */ |
592d1631 L |
8743 | { Bad_Opcode }, |
8744 | { Bad_Opcode }, | |
8745 | { Bad_Opcode }, | |
592a252b | 8746 | { PREFIX_TABLE (PREFIX_VEX_0F3813) }, |
592d1631 L |
8747 | { Bad_Opcode }, |
8748 | { Bad_Opcode }, | |
6c30d220 | 8749 | { PREFIX_TABLE (PREFIX_VEX_0F3816) }, |
592a252b | 8750 | { PREFIX_TABLE (PREFIX_VEX_0F3817) }, |
c0f3af97 | 8751 | /* 18 */ |
592a252b L |
8752 | { PREFIX_TABLE (PREFIX_VEX_0F3818) }, |
8753 | { PREFIX_TABLE (PREFIX_VEX_0F3819) }, | |
8754 | { PREFIX_TABLE (PREFIX_VEX_0F381A) }, | |
592d1631 | 8755 | { Bad_Opcode }, |
592a252b L |
8756 | { PREFIX_TABLE (PREFIX_VEX_0F381C) }, |
8757 | { PREFIX_TABLE (PREFIX_VEX_0F381D) }, | |
8758 | { PREFIX_TABLE (PREFIX_VEX_0F381E) }, | |
592d1631 | 8759 | { Bad_Opcode }, |
c0f3af97 | 8760 | /* 20 */ |
592a252b L |
8761 | { PREFIX_TABLE (PREFIX_VEX_0F3820) }, |
8762 | { PREFIX_TABLE (PREFIX_VEX_0F3821) }, | |
8763 | { PREFIX_TABLE (PREFIX_VEX_0F3822) }, | |
8764 | { PREFIX_TABLE (PREFIX_VEX_0F3823) }, | |
8765 | { PREFIX_TABLE (PREFIX_VEX_0F3824) }, | |
8766 | { PREFIX_TABLE (PREFIX_VEX_0F3825) }, | |
592d1631 L |
8767 | { Bad_Opcode }, |
8768 | { Bad_Opcode }, | |
c0f3af97 | 8769 | /* 28 */ |
592a252b L |
8770 | { PREFIX_TABLE (PREFIX_VEX_0F3828) }, |
8771 | { PREFIX_TABLE (PREFIX_VEX_0F3829) }, | |
8772 | { PREFIX_TABLE (PREFIX_VEX_0F382A) }, | |
8773 | { PREFIX_TABLE (PREFIX_VEX_0F382B) }, | |
8774 | { PREFIX_TABLE (PREFIX_VEX_0F382C) }, | |
8775 | { PREFIX_TABLE (PREFIX_VEX_0F382D) }, | |
8776 | { PREFIX_TABLE (PREFIX_VEX_0F382E) }, | |
8777 | { PREFIX_TABLE (PREFIX_VEX_0F382F) }, | |
c0f3af97 | 8778 | /* 30 */ |
592a252b L |
8779 | { PREFIX_TABLE (PREFIX_VEX_0F3830) }, |
8780 | { PREFIX_TABLE (PREFIX_VEX_0F3831) }, | |
8781 | { PREFIX_TABLE (PREFIX_VEX_0F3832) }, | |
8782 | { PREFIX_TABLE (PREFIX_VEX_0F3833) }, | |
8783 | { PREFIX_TABLE (PREFIX_VEX_0F3834) }, | |
8784 | { PREFIX_TABLE (PREFIX_VEX_0F3835) }, | |
6c30d220 | 8785 | { PREFIX_TABLE (PREFIX_VEX_0F3836) }, |
592a252b | 8786 | { PREFIX_TABLE (PREFIX_VEX_0F3837) }, |
c0f3af97 | 8787 | /* 38 */ |
592a252b L |
8788 | { PREFIX_TABLE (PREFIX_VEX_0F3838) }, |
8789 | { PREFIX_TABLE (PREFIX_VEX_0F3839) }, | |
8790 | { PREFIX_TABLE (PREFIX_VEX_0F383A) }, | |
8791 | { PREFIX_TABLE (PREFIX_VEX_0F383B) }, | |
8792 | { PREFIX_TABLE (PREFIX_VEX_0F383C) }, | |
8793 | { PREFIX_TABLE (PREFIX_VEX_0F383D) }, | |
8794 | { PREFIX_TABLE (PREFIX_VEX_0F383E) }, | |
8795 | { PREFIX_TABLE (PREFIX_VEX_0F383F) }, | |
c0f3af97 | 8796 | /* 40 */ |
592a252b L |
8797 | { PREFIX_TABLE (PREFIX_VEX_0F3840) }, |
8798 | { PREFIX_TABLE (PREFIX_VEX_0F3841) }, | |
592d1631 L |
8799 | { Bad_Opcode }, |
8800 | { Bad_Opcode }, | |
8801 | { Bad_Opcode }, | |
6c30d220 L |
8802 | { PREFIX_TABLE (PREFIX_VEX_0F3845) }, |
8803 | { PREFIX_TABLE (PREFIX_VEX_0F3846) }, | |
8804 | { PREFIX_TABLE (PREFIX_VEX_0F3847) }, | |
c0f3af97 | 8805 | /* 48 */ |
592d1631 L |
8806 | { Bad_Opcode }, |
8807 | { Bad_Opcode }, | |
8808 | { Bad_Opcode }, | |
8809 | { Bad_Opcode }, | |
8810 | { Bad_Opcode }, | |
8811 | { Bad_Opcode }, | |
8812 | { Bad_Opcode }, | |
8813 | { Bad_Opcode }, | |
c0f3af97 | 8814 | /* 50 */ |
592d1631 L |
8815 | { Bad_Opcode }, |
8816 | { Bad_Opcode }, | |
8817 | { Bad_Opcode }, | |
8818 | { Bad_Opcode }, | |
8819 | { Bad_Opcode }, | |
8820 | { Bad_Opcode }, | |
8821 | { Bad_Opcode }, | |
8822 | { Bad_Opcode }, | |
c0f3af97 | 8823 | /* 58 */ |
6c30d220 L |
8824 | { PREFIX_TABLE (PREFIX_VEX_0F3858) }, |
8825 | { PREFIX_TABLE (PREFIX_VEX_0F3859) }, | |
8826 | { PREFIX_TABLE (PREFIX_VEX_0F385A) }, | |
592d1631 L |
8827 | { Bad_Opcode }, |
8828 | { Bad_Opcode }, | |
8829 | { Bad_Opcode }, | |
8830 | { Bad_Opcode }, | |
8831 | { Bad_Opcode }, | |
c0f3af97 | 8832 | /* 60 */ |
592d1631 L |
8833 | { Bad_Opcode }, |
8834 | { Bad_Opcode }, | |
8835 | { Bad_Opcode }, | |
8836 | { Bad_Opcode }, | |
8837 | { Bad_Opcode }, | |
8838 | { Bad_Opcode }, | |
8839 | { Bad_Opcode }, | |
8840 | { Bad_Opcode }, | |
c0f3af97 | 8841 | /* 68 */ |
592d1631 L |
8842 | { Bad_Opcode }, |
8843 | { Bad_Opcode }, | |
8844 | { Bad_Opcode }, | |
8845 | { Bad_Opcode }, | |
8846 | { Bad_Opcode }, | |
8847 | { Bad_Opcode }, | |
8848 | { Bad_Opcode }, | |
8849 | { Bad_Opcode }, | |
c0f3af97 | 8850 | /* 70 */ |
592d1631 L |
8851 | { Bad_Opcode }, |
8852 | { Bad_Opcode }, | |
8853 | { Bad_Opcode }, | |
8854 | { Bad_Opcode }, | |
8855 | { Bad_Opcode }, | |
8856 | { Bad_Opcode }, | |
8857 | { Bad_Opcode }, | |
8858 | { Bad_Opcode }, | |
c0f3af97 | 8859 | /* 78 */ |
6c30d220 L |
8860 | { PREFIX_TABLE (PREFIX_VEX_0F3878) }, |
8861 | { PREFIX_TABLE (PREFIX_VEX_0F3879) }, | |
592d1631 L |
8862 | { Bad_Opcode }, |
8863 | { Bad_Opcode }, | |
8864 | { Bad_Opcode }, | |
8865 | { Bad_Opcode }, | |
8866 | { Bad_Opcode }, | |
8867 | { Bad_Opcode }, | |
c0f3af97 | 8868 | /* 80 */ |
592d1631 L |
8869 | { Bad_Opcode }, |
8870 | { Bad_Opcode }, | |
8871 | { Bad_Opcode }, | |
8872 | { Bad_Opcode }, | |
8873 | { Bad_Opcode }, | |
8874 | { Bad_Opcode }, | |
8875 | { Bad_Opcode }, | |
8876 | { Bad_Opcode }, | |
c0f3af97 | 8877 | /* 88 */ |
592d1631 L |
8878 | { Bad_Opcode }, |
8879 | { Bad_Opcode }, | |
8880 | { Bad_Opcode }, | |
8881 | { Bad_Opcode }, | |
6c30d220 | 8882 | { PREFIX_TABLE (PREFIX_VEX_0F388C) }, |
592d1631 | 8883 | { Bad_Opcode }, |
6c30d220 | 8884 | { PREFIX_TABLE (PREFIX_VEX_0F388E) }, |
592d1631 | 8885 | { Bad_Opcode }, |
c0f3af97 | 8886 | /* 90 */ |
6c30d220 L |
8887 | { PREFIX_TABLE (PREFIX_VEX_0F3890) }, |
8888 | { PREFIX_TABLE (PREFIX_VEX_0F3891) }, | |
8889 | { PREFIX_TABLE (PREFIX_VEX_0F3892) }, | |
8890 | { PREFIX_TABLE (PREFIX_VEX_0F3893) }, | |
592d1631 L |
8891 | { Bad_Opcode }, |
8892 | { Bad_Opcode }, | |
592a252b L |
8893 | { PREFIX_TABLE (PREFIX_VEX_0F3896) }, |
8894 | { PREFIX_TABLE (PREFIX_VEX_0F3897) }, | |
c0f3af97 | 8895 | /* 98 */ |
592a252b L |
8896 | { PREFIX_TABLE (PREFIX_VEX_0F3898) }, |
8897 | { PREFIX_TABLE (PREFIX_VEX_0F3899) }, | |
8898 | { PREFIX_TABLE (PREFIX_VEX_0F389A) }, | |
8899 | { PREFIX_TABLE (PREFIX_VEX_0F389B) }, | |
8900 | { PREFIX_TABLE (PREFIX_VEX_0F389C) }, | |
8901 | { PREFIX_TABLE (PREFIX_VEX_0F389D) }, | |
8902 | { PREFIX_TABLE (PREFIX_VEX_0F389E) }, | |
8903 | { PREFIX_TABLE (PREFIX_VEX_0F389F) }, | |
c0f3af97 | 8904 | /* a0 */ |
592d1631 L |
8905 | { Bad_Opcode }, |
8906 | { Bad_Opcode }, | |
8907 | { Bad_Opcode }, | |
8908 | { Bad_Opcode }, | |
8909 | { Bad_Opcode }, | |
8910 | { Bad_Opcode }, | |
592a252b L |
8911 | { PREFIX_TABLE (PREFIX_VEX_0F38A6) }, |
8912 | { PREFIX_TABLE (PREFIX_VEX_0F38A7) }, | |
c0f3af97 | 8913 | /* a8 */ |
592a252b L |
8914 | { PREFIX_TABLE (PREFIX_VEX_0F38A8) }, |
8915 | { PREFIX_TABLE (PREFIX_VEX_0F38A9) }, | |
8916 | { PREFIX_TABLE (PREFIX_VEX_0F38AA) }, | |
8917 | { PREFIX_TABLE (PREFIX_VEX_0F38AB) }, | |
8918 | { PREFIX_TABLE (PREFIX_VEX_0F38AC) }, | |
8919 | { PREFIX_TABLE (PREFIX_VEX_0F38AD) }, | |
8920 | { PREFIX_TABLE (PREFIX_VEX_0F38AE) }, | |
8921 | { PREFIX_TABLE (PREFIX_VEX_0F38AF) }, | |
c0f3af97 | 8922 | /* b0 */ |
592d1631 L |
8923 | { Bad_Opcode }, |
8924 | { Bad_Opcode }, | |
8925 | { Bad_Opcode }, | |
8926 | { Bad_Opcode }, | |
8927 | { Bad_Opcode }, | |
8928 | { Bad_Opcode }, | |
592a252b L |
8929 | { PREFIX_TABLE (PREFIX_VEX_0F38B6) }, |
8930 | { PREFIX_TABLE (PREFIX_VEX_0F38B7) }, | |
c0f3af97 | 8931 | /* b8 */ |
592a252b L |
8932 | { PREFIX_TABLE (PREFIX_VEX_0F38B8) }, |
8933 | { PREFIX_TABLE (PREFIX_VEX_0F38B9) }, | |
8934 | { PREFIX_TABLE (PREFIX_VEX_0F38BA) }, | |
8935 | { PREFIX_TABLE (PREFIX_VEX_0F38BB) }, | |
8936 | { PREFIX_TABLE (PREFIX_VEX_0F38BC) }, | |
8937 | { PREFIX_TABLE (PREFIX_VEX_0F38BD) }, | |
8938 | { PREFIX_TABLE (PREFIX_VEX_0F38BE) }, | |
8939 | { PREFIX_TABLE (PREFIX_VEX_0F38BF) }, | |
c0f3af97 | 8940 | /* c0 */ |
592d1631 L |
8941 | { Bad_Opcode }, |
8942 | { Bad_Opcode }, | |
8943 | { Bad_Opcode }, | |
8944 | { Bad_Opcode }, | |
8945 | { Bad_Opcode }, | |
8946 | { Bad_Opcode }, | |
8947 | { Bad_Opcode }, | |
8948 | { Bad_Opcode }, | |
c0f3af97 | 8949 | /* c8 */ |
592d1631 L |
8950 | { Bad_Opcode }, |
8951 | { Bad_Opcode }, | |
8952 | { Bad_Opcode }, | |
8953 | { Bad_Opcode }, | |
8954 | { Bad_Opcode }, | |
8955 | { Bad_Opcode }, | |
8956 | { Bad_Opcode }, | |
8957 | { Bad_Opcode }, | |
c0f3af97 | 8958 | /* d0 */ |
592d1631 L |
8959 | { Bad_Opcode }, |
8960 | { Bad_Opcode }, | |
8961 | { Bad_Opcode }, | |
8962 | { Bad_Opcode }, | |
8963 | { Bad_Opcode }, | |
8964 | { Bad_Opcode }, | |
8965 | { Bad_Opcode }, | |
8966 | { Bad_Opcode }, | |
c0f3af97 | 8967 | /* d8 */ |
592d1631 L |
8968 | { Bad_Opcode }, |
8969 | { Bad_Opcode }, | |
8970 | { Bad_Opcode }, | |
592a252b L |
8971 | { PREFIX_TABLE (PREFIX_VEX_0F38DB) }, |
8972 | { PREFIX_TABLE (PREFIX_VEX_0F38DC) }, | |
8973 | { PREFIX_TABLE (PREFIX_VEX_0F38DD) }, | |
8974 | { PREFIX_TABLE (PREFIX_VEX_0F38DE) }, | |
8975 | { PREFIX_TABLE (PREFIX_VEX_0F38DF) }, | |
c0f3af97 | 8976 | /* e0 */ |
592d1631 L |
8977 | { Bad_Opcode }, |
8978 | { Bad_Opcode }, | |
8979 | { Bad_Opcode }, | |
8980 | { Bad_Opcode }, | |
8981 | { Bad_Opcode }, | |
8982 | { Bad_Opcode }, | |
8983 | { Bad_Opcode }, | |
8984 | { Bad_Opcode }, | |
c0f3af97 | 8985 | /* e8 */ |
592d1631 L |
8986 | { Bad_Opcode }, |
8987 | { Bad_Opcode }, | |
8988 | { Bad_Opcode }, | |
8989 | { Bad_Opcode }, | |
8990 | { Bad_Opcode }, | |
8991 | { Bad_Opcode }, | |
8992 | { Bad_Opcode }, | |
8993 | { Bad_Opcode }, | |
c0f3af97 | 8994 | /* f0 */ |
592d1631 L |
8995 | { Bad_Opcode }, |
8996 | { Bad_Opcode }, | |
f12dc422 L |
8997 | { PREFIX_TABLE (PREFIX_VEX_0F38F2) }, |
8998 | { REG_TABLE (REG_VEX_0F38F3) }, | |
592d1631 | 8999 | { Bad_Opcode }, |
6c30d220 L |
9000 | { PREFIX_TABLE (PREFIX_VEX_0F38F5) }, |
9001 | { PREFIX_TABLE (PREFIX_VEX_0F38F6) }, | |
f12dc422 | 9002 | { PREFIX_TABLE (PREFIX_VEX_0F38F7) }, |
c0f3af97 | 9003 | /* f8 */ |
592d1631 L |
9004 | { Bad_Opcode }, |
9005 | { Bad_Opcode }, | |
9006 | { Bad_Opcode }, | |
9007 | { Bad_Opcode }, | |
9008 | { Bad_Opcode }, | |
9009 | { Bad_Opcode }, | |
9010 | { Bad_Opcode }, | |
9011 | { Bad_Opcode }, | |
c0f3af97 L |
9012 | }, |
9013 | /* VEX_0F3A */ | |
9014 | { | |
9015 | /* 00 */ | |
6c30d220 L |
9016 | { PREFIX_TABLE (PREFIX_VEX_0F3A00) }, |
9017 | { PREFIX_TABLE (PREFIX_VEX_0F3A01) }, | |
9018 | { PREFIX_TABLE (PREFIX_VEX_0F3A02) }, | |
592d1631 | 9019 | { Bad_Opcode }, |
592a252b L |
9020 | { PREFIX_TABLE (PREFIX_VEX_0F3A04) }, |
9021 | { PREFIX_TABLE (PREFIX_VEX_0F3A05) }, | |
9022 | { PREFIX_TABLE (PREFIX_VEX_0F3A06) }, | |
592d1631 | 9023 | { Bad_Opcode }, |
c0f3af97 | 9024 | /* 08 */ |
592a252b L |
9025 | { PREFIX_TABLE (PREFIX_VEX_0F3A08) }, |
9026 | { PREFIX_TABLE (PREFIX_VEX_0F3A09) }, | |
9027 | { PREFIX_TABLE (PREFIX_VEX_0F3A0A) }, | |
9028 | { PREFIX_TABLE (PREFIX_VEX_0F3A0B) }, | |
9029 | { PREFIX_TABLE (PREFIX_VEX_0F3A0C) }, | |
9030 | { PREFIX_TABLE (PREFIX_VEX_0F3A0D) }, | |
9031 | { PREFIX_TABLE (PREFIX_VEX_0F3A0E) }, | |
9032 | { PREFIX_TABLE (PREFIX_VEX_0F3A0F) }, | |
c0f3af97 | 9033 | /* 10 */ |
592d1631 L |
9034 | { Bad_Opcode }, |
9035 | { Bad_Opcode }, | |
9036 | { Bad_Opcode }, | |
9037 | { Bad_Opcode }, | |
592a252b L |
9038 | { PREFIX_TABLE (PREFIX_VEX_0F3A14) }, |
9039 | { PREFIX_TABLE (PREFIX_VEX_0F3A15) }, | |
9040 | { PREFIX_TABLE (PREFIX_VEX_0F3A16) }, | |
9041 | { PREFIX_TABLE (PREFIX_VEX_0F3A17) }, | |
c0f3af97 | 9042 | /* 18 */ |
592a252b L |
9043 | { PREFIX_TABLE (PREFIX_VEX_0F3A18) }, |
9044 | { PREFIX_TABLE (PREFIX_VEX_0F3A19) }, | |
592d1631 L |
9045 | { Bad_Opcode }, |
9046 | { Bad_Opcode }, | |
9047 | { Bad_Opcode }, | |
592a252b | 9048 | { PREFIX_TABLE (PREFIX_VEX_0F3A1D) }, |
592d1631 L |
9049 | { Bad_Opcode }, |
9050 | { Bad_Opcode }, | |
c0f3af97 | 9051 | /* 20 */ |
592a252b L |
9052 | { PREFIX_TABLE (PREFIX_VEX_0F3A20) }, |
9053 | { PREFIX_TABLE (PREFIX_VEX_0F3A21) }, | |
9054 | { PREFIX_TABLE (PREFIX_VEX_0F3A22) }, | |
592d1631 L |
9055 | { Bad_Opcode }, |
9056 | { Bad_Opcode }, | |
9057 | { Bad_Opcode }, | |
9058 | { Bad_Opcode }, | |
9059 | { Bad_Opcode }, | |
c0f3af97 | 9060 | /* 28 */ |
592d1631 L |
9061 | { Bad_Opcode }, |
9062 | { Bad_Opcode }, | |
9063 | { Bad_Opcode }, | |
9064 | { Bad_Opcode }, | |
9065 | { Bad_Opcode }, | |
9066 | { Bad_Opcode }, | |
9067 | { Bad_Opcode }, | |
9068 | { Bad_Opcode }, | |
c0f3af97 | 9069 | /* 30 */ |
43234a1e | 9070 | { PREFIX_TABLE (PREFIX_VEX_0F3A30) }, |
1ba585e8 | 9071 | { PREFIX_TABLE (PREFIX_VEX_0F3A31) }, |
43234a1e | 9072 | { PREFIX_TABLE (PREFIX_VEX_0F3A32) }, |
1ba585e8 | 9073 | { PREFIX_TABLE (PREFIX_VEX_0F3A33) }, |
592d1631 L |
9074 | { Bad_Opcode }, |
9075 | { Bad_Opcode }, | |
9076 | { Bad_Opcode }, | |
9077 | { Bad_Opcode }, | |
c0f3af97 | 9078 | /* 38 */ |
6c30d220 L |
9079 | { PREFIX_TABLE (PREFIX_VEX_0F3A38) }, |
9080 | { PREFIX_TABLE (PREFIX_VEX_0F3A39) }, | |
592d1631 L |
9081 | { Bad_Opcode }, |
9082 | { Bad_Opcode }, | |
9083 | { Bad_Opcode }, | |
9084 | { Bad_Opcode }, | |
9085 | { Bad_Opcode }, | |
9086 | { Bad_Opcode }, | |
c0f3af97 | 9087 | /* 40 */ |
592a252b L |
9088 | { PREFIX_TABLE (PREFIX_VEX_0F3A40) }, |
9089 | { PREFIX_TABLE (PREFIX_VEX_0F3A41) }, | |
9090 | { PREFIX_TABLE (PREFIX_VEX_0F3A42) }, | |
592d1631 | 9091 | { Bad_Opcode }, |
592a252b | 9092 | { PREFIX_TABLE (PREFIX_VEX_0F3A44) }, |
592d1631 | 9093 | { Bad_Opcode }, |
6c30d220 | 9094 | { PREFIX_TABLE (PREFIX_VEX_0F3A46) }, |
592d1631 | 9095 | { Bad_Opcode }, |
c0f3af97 | 9096 | /* 48 */ |
592a252b L |
9097 | { PREFIX_TABLE (PREFIX_VEX_0F3A48) }, |
9098 | { PREFIX_TABLE (PREFIX_VEX_0F3A49) }, | |
9099 | { PREFIX_TABLE (PREFIX_VEX_0F3A4A) }, | |
9100 | { PREFIX_TABLE (PREFIX_VEX_0F3A4B) }, | |
9101 | { PREFIX_TABLE (PREFIX_VEX_0F3A4C) }, | |
592d1631 L |
9102 | { Bad_Opcode }, |
9103 | { Bad_Opcode }, | |
9104 | { Bad_Opcode }, | |
c0f3af97 | 9105 | /* 50 */ |
592d1631 L |
9106 | { Bad_Opcode }, |
9107 | { Bad_Opcode }, | |
9108 | { Bad_Opcode }, | |
9109 | { Bad_Opcode }, | |
9110 | { Bad_Opcode }, | |
9111 | { Bad_Opcode }, | |
9112 | { Bad_Opcode }, | |
9113 | { Bad_Opcode }, | |
c0f3af97 | 9114 | /* 58 */ |
592d1631 L |
9115 | { Bad_Opcode }, |
9116 | { Bad_Opcode }, | |
9117 | { Bad_Opcode }, | |
9118 | { Bad_Opcode }, | |
592a252b L |
9119 | { PREFIX_TABLE (PREFIX_VEX_0F3A5C) }, |
9120 | { PREFIX_TABLE (PREFIX_VEX_0F3A5D) }, | |
9121 | { PREFIX_TABLE (PREFIX_VEX_0F3A5E) }, | |
9122 | { PREFIX_TABLE (PREFIX_VEX_0F3A5F) }, | |
c0f3af97 | 9123 | /* 60 */ |
592a252b L |
9124 | { PREFIX_TABLE (PREFIX_VEX_0F3A60) }, |
9125 | { PREFIX_TABLE (PREFIX_VEX_0F3A61) }, | |
9126 | { PREFIX_TABLE (PREFIX_VEX_0F3A62) }, | |
9127 | { PREFIX_TABLE (PREFIX_VEX_0F3A63) }, | |
592d1631 L |
9128 | { Bad_Opcode }, |
9129 | { Bad_Opcode }, | |
9130 | { Bad_Opcode }, | |
9131 | { Bad_Opcode }, | |
c0f3af97 | 9132 | /* 68 */ |
592a252b L |
9133 | { PREFIX_TABLE (PREFIX_VEX_0F3A68) }, |
9134 | { PREFIX_TABLE (PREFIX_VEX_0F3A69) }, | |
9135 | { PREFIX_TABLE (PREFIX_VEX_0F3A6A) }, | |
9136 | { PREFIX_TABLE (PREFIX_VEX_0F3A6B) }, | |
9137 | { PREFIX_TABLE (PREFIX_VEX_0F3A6C) }, | |
9138 | { PREFIX_TABLE (PREFIX_VEX_0F3A6D) }, | |
9139 | { PREFIX_TABLE (PREFIX_VEX_0F3A6E) }, | |
9140 | { PREFIX_TABLE (PREFIX_VEX_0F3A6F) }, | |
c0f3af97 | 9141 | /* 70 */ |
592d1631 L |
9142 | { Bad_Opcode }, |
9143 | { Bad_Opcode }, | |
9144 | { Bad_Opcode }, | |
9145 | { Bad_Opcode }, | |
9146 | { Bad_Opcode }, | |
9147 | { Bad_Opcode }, | |
9148 | { Bad_Opcode }, | |
9149 | { Bad_Opcode }, | |
c0f3af97 | 9150 | /* 78 */ |
592a252b L |
9151 | { PREFIX_TABLE (PREFIX_VEX_0F3A78) }, |
9152 | { PREFIX_TABLE (PREFIX_VEX_0F3A79) }, | |
9153 | { PREFIX_TABLE (PREFIX_VEX_0F3A7A) }, | |
9154 | { PREFIX_TABLE (PREFIX_VEX_0F3A7B) }, | |
9155 | { PREFIX_TABLE (PREFIX_VEX_0F3A7C) }, | |
9156 | { PREFIX_TABLE (PREFIX_VEX_0F3A7D) }, | |
9157 | { PREFIX_TABLE (PREFIX_VEX_0F3A7E) }, | |
9158 | { PREFIX_TABLE (PREFIX_VEX_0F3A7F) }, | |
c0f3af97 | 9159 | /* 80 */ |
592d1631 L |
9160 | { Bad_Opcode }, |
9161 | { Bad_Opcode }, | |
9162 | { Bad_Opcode }, | |
9163 | { Bad_Opcode }, | |
9164 | { Bad_Opcode }, | |
9165 | { Bad_Opcode }, | |
9166 | { Bad_Opcode }, | |
9167 | { Bad_Opcode }, | |
c0f3af97 | 9168 | /* 88 */ |
592d1631 L |
9169 | { Bad_Opcode }, |
9170 | { Bad_Opcode }, | |
9171 | { Bad_Opcode }, | |
9172 | { Bad_Opcode }, | |
9173 | { Bad_Opcode }, | |
9174 | { Bad_Opcode }, | |
9175 | { Bad_Opcode }, | |
9176 | { Bad_Opcode }, | |
c0f3af97 | 9177 | /* 90 */ |
592d1631 L |
9178 | { Bad_Opcode }, |
9179 | { Bad_Opcode }, | |
9180 | { Bad_Opcode }, | |
9181 | { Bad_Opcode }, | |
9182 | { Bad_Opcode }, | |
9183 | { Bad_Opcode }, | |
9184 | { Bad_Opcode }, | |
9185 | { Bad_Opcode }, | |
c0f3af97 | 9186 | /* 98 */ |
592d1631 L |
9187 | { Bad_Opcode }, |
9188 | { Bad_Opcode }, | |
9189 | { Bad_Opcode }, | |
9190 | { Bad_Opcode }, | |
9191 | { Bad_Opcode }, | |
9192 | { Bad_Opcode }, | |
9193 | { Bad_Opcode }, | |
9194 | { Bad_Opcode }, | |
c0f3af97 | 9195 | /* a0 */ |
592d1631 L |
9196 | { Bad_Opcode }, |
9197 | { Bad_Opcode }, | |
9198 | { Bad_Opcode }, | |
9199 | { Bad_Opcode }, | |
9200 | { Bad_Opcode }, | |
9201 | { Bad_Opcode }, | |
9202 | { Bad_Opcode }, | |
9203 | { Bad_Opcode }, | |
c0f3af97 | 9204 | /* a8 */ |
592d1631 L |
9205 | { Bad_Opcode }, |
9206 | { Bad_Opcode }, | |
9207 | { Bad_Opcode }, | |
9208 | { Bad_Opcode }, | |
9209 | { Bad_Opcode }, | |
9210 | { Bad_Opcode }, | |
9211 | { Bad_Opcode }, | |
9212 | { Bad_Opcode }, | |
c0f3af97 | 9213 | /* b0 */ |
592d1631 L |
9214 | { Bad_Opcode }, |
9215 | { Bad_Opcode }, | |
9216 | { Bad_Opcode }, | |
9217 | { Bad_Opcode }, | |
9218 | { Bad_Opcode }, | |
9219 | { Bad_Opcode }, | |
9220 | { Bad_Opcode }, | |
9221 | { Bad_Opcode }, | |
c0f3af97 | 9222 | /* b8 */ |
592d1631 L |
9223 | { Bad_Opcode }, |
9224 | { Bad_Opcode }, | |
9225 | { Bad_Opcode }, | |
9226 | { Bad_Opcode }, | |
9227 | { Bad_Opcode }, | |
9228 | { Bad_Opcode }, | |
9229 | { Bad_Opcode }, | |
9230 | { Bad_Opcode }, | |
c0f3af97 | 9231 | /* c0 */ |
592d1631 L |
9232 | { Bad_Opcode }, |
9233 | { Bad_Opcode }, | |
9234 | { Bad_Opcode }, | |
9235 | { Bad_Opcode }, | |
9236 | { Bad_Opcode }, | |
9237 | { Bad_Opcode }, | |
9238 | { Bad_Opcode }, | |
9239 | { Bad_Opcode }, | |
c0f3af97 | 9240 | /* c8 */ |
592d1631 L |
9241 | { Bad_Opcode }, |
9242 | { Bad_Opcode }, | |
9243 | { Bad_Opcode }, | |
9244 | { Bad_Opcode }, | |
9245 | { Bad_Opcode }, | |
9246 | { Bad_Opcode }, | |
9247 | { Bad_Opcode }, | |
9248 | { Bad_Opcode }, | |
c0f3af97 | 9249 | /* d0 */ |
592d1631 L |
9250 | { Bad_Opcode }, |
9251 | { Bad_Opcode }, | |
9252 | { Bad_Opcode }, | |
9253 | { Bad_Opcode }, | |
9254 | { Bad_Opcode }, | |
9255 | { Bad_Opcode }, | |
9256 | { Bad_Opcode }, | |
9257 | { Bad_Opcode }, | |
c0f3af97 | 9258 | /* d8 */ |
592d1631 L |
9259 | { Bad_Opcode }, |
9260 | { Bad_Opcode }, | |
9261 | { Bad_Opcode }, | |
9262 | { Bad_Opcode }, | |
9263 | { Bad_Opcode }, | |
9264 | { Bad_Opcode }, | |
9265 | { Bad_Opcode }, | |
592a252b | 9266 | { PREFIX_TABLE (PREFIX_VEX_0F3ADF) }, |
c0f3af97 | 9267 | /* e0 */ |
592d1631 L |
9268 | { Bad_Opcode }, |
9269 | { Bad_Opcode }, | |
9270 | { Bad_Opcode }, | |
9271 | { Bad_Opcode }, | |
9272 | { Bad_Opcode }, | |
9273 | { Bad_Opcode }, | |
9274 | { Bad_Opcode }, | |
9275 | { Bad_Opcode }, | |
c0f3af97 | 9276 | /* e8 */ |
592d1631 L |
9277 | { Bad_Opcode }, |
9278 | { Bad_Opcode }, | |
9279 | { Bad_Opcode }, | |
9280 | { Bad_Opcode }, | |
9281 | { Bad_Opcode }, | |
9282 | { Bad_Opcode }, | |
9283 | { Bad_Opcode }, | |
9284 | { Bad_Opcode }, | |
c0f3af97 | 9285 | /* f0 */ |
6c30d220 | 9286 | { PREFIX_TABLE (PREFIX_VEX_0F3AF0) }, |
592d1631 L |
9287 | { Bad_Opcode }, |
9288 | { Bad_Opcode }, | |
9289 | { Bad_Opcode }, | |
9290 | { Bad_Opcode }, | |
9291 | { Bad_Opcode }, | |
9292 | { Bad_Opcode }, | |
9293 | { Bad_Opcode }, | |
c0f3af97 | 9294 | /* f8 */ |
592d1631 L |
9295 | { Bad_Opcode }, |
9296 | { Bad_Opcode }, | |
9297 | { Bad_Opcode }, | |
9298 | { Bad_Opcode }, | |
9299 | { Bad_Opcode }, | |
9300 | { Bad_Opcode }, | |
9301 | { Bad_Opcode }, | |
9302 | { Bad_Opcode }, | |
c0f3af97 L |
9303 | }, |
9304 | }; | |
9305 | ||
43234a1e L |
9306 | #define NEED_OPCODE_TABLE |
9307 | #include "i386-dis-evex.h" | |
9308 | #undef NEED_OPCODE_TABLE | |
c0f3af97 | 9309 | static const struct dis386 vex_len_table[][2] = { |
592a252b | 9310 | /* VEX_LEN_0F10_P_1 */ |
c0f3af97 | 9311 | { |
592a252b L |
9312 | { VEX_W_TABLE (VEX_W_0F10_P_1) }, |
9313 | { VEX_W_TABLE (VEX_W_0F10_P_1) }, | |
c0f3af97 L |
9314 | }, |
9315 | ||
592a252b | 9316 | /* VEX_LEN_0F10_P_3 */ |
c0f3af97 | 9317 | { |
592a252b L |
9318 | { VEX_W_TABLE (VEX_W_0F10_P_3) }, |
9319 | { VEX_W_TABLE (VEX_W_0F10_P_3) }, | |
c0f3af97 L |
9320 | }, |
9321 | ||
592a252b | 9322 | /* VEX_LEN_0F11_P_1 */ |
c0f3af97 | 9323 | { |
592a252b L |
9324 | { VEX_W_TABLE (VEX_W_0F11_P_1) }, |
9325 | { VEX_W_TABLE (VEX_W_0F11_P_1) }, | |
c0f3af97 L |
9326 | }, |
9327 | ||
592a252b | 9328 | /* VEX_LEN_0F11_P_3 */ |
c0f3af97 | 9329 | { |
592a252b L |
9330 | { VEX_W_TABLE (VEX_W_0F11_P_3) }, |
9331 | { VEX_W_TABLE (VEX_W_0F11_P_3) }, | |
c0f3af97 L |
9332 | }, |
9333 | ||
592a252b | 9334 | /* VEX_LEN_0F12_P_0_M_0 */ |
c0f3af97 | 9335 | { |
592a252b | 9336 | { VEX_W_TABLE (VEX_W_0F12_P_0_M_0) }, |
c0f3af97 L |
9337 | }, |
9338 | ||
592a252b | 9339 | /* VEX_LEN_0F12_P_0_M_1 */ |
c0f3af97 | 9340 | { |
592a252b | 9341 | { VEX_W_TABLE (VEX_W_0F12_P_0_M_1) }, |
c0f3af97 L |
9342 | }, |
9343 | ||
592a252b | 9344 | /* VEX_LEN_0F12_P_2 */ |
c0f3af97 | 9345 | { |
592a252b | 9346 | { VEX_W_TABLE (VEX_W_0F12_P_2) }, |
c0f3af97 L |
9347 | }, |
9348 | ||
592a252b | 9349 | /* VEX_LEN_0F13_M_0 */ |
c0f3af97 | 9350 | { |
592a252b | 9351 | { VEX_W_TABLE (VEX_W_0F13_M_0) }, |
c0f3af97 L |
9352 | }, |
9353 | ||
592a252b | 9354 | /* VEX_LEN_0F16_P_0_M_0 */ |
c0f3af97 | 9355 | { |
592a252b | 9356 | { VEX_W_TABLE (VEX_W_0F16_P_0_M_0) }, |
c0f3af97 L |
9357 | }, |
9358 | ||
592a252b | 9359 | /* VEX_LEN_0F16_P_0_M_1 */ |
c0f3af97 | 9360 | { |
592a252b | 9361 | { VEX_W_TABLE (VEX_W_0F16_P_0_M_1) }, |
c0f3af97 L |
9362 | }, |
9363 | ||
592a252b | 9364 | /* VEX_LEN_0F16_P_2 */ |
c0f3af97 | 9365 | { |
592a252b | 9366 | { VEX_W_TABLE (VEX_W_0F16_P_2) }, |
c0f3af97 L |
9367 | }, |
9368 | ||
592a252b | 9369 | /* VEX_LEN_0F17_M_0 */ |
c0f3af97 | 9370 | { |
592a252b | 9371 | { VEX_W_TABLE (VEX_W_0F17_M_0) }, |
c0f3af97 L |
9372 | }, |
9373 | ||
592a252b | 9374 | /* VEX_LEN_0F2A_P_1 */ |
c0f3af97 | 9375 | { |
bf890a93 IT |
9376 | { "vcvtsi2ss%LQ", { XMScalar, VexScalar, Ev }, 0 }, |
9377 | { "vcvtsi2ss%LQ", { XMScalar, VexScalar, Ev }, 0 }, | |
c0f3af97 L |
9378 | }, |
9379 | ||
592a252b | 9380 | /* VEX_LEN_0F2A_P_3 */ |
c0f3af97 | 9381 | { |
bf890a93 IT |
9382 | { "vcvtsi2sd%LQ", { XMScalar, VexScalar, Ev }, 0 }, |
9383 | { "vcvtsi2sd%LQ", { XMScalar, VexScalar, Ev }, 0 }, | |
c0f3af97 L |
9384 | }, |
9385 | ||
592a252b | 9386 | /* VEX_LEN_0F2C_P_1 */ |
c0f3af97 | 9387 | { |
bf890a93 IT |
9388 | { "vcvttss2siY", { Gv, EXdScalar }, 0 }, |
9389 | { "vcvttss2siY", { Gv, EXdScalar }, 0 }, | |
c0f3af97 L |
9390 | }, |
9391 | ||
592a252b | 9392 | /* VEX_LEN_0F2C_P_3 */ |
c0f3af97 | 9393 | { |
bf890a93 IT |
9394 | { "vcvttsd2siY", { Gv, EXqScalar }, 0 }, |
9395 | { "vcvttsd2siY", { Gv, EXqScalar }, 0 }, | |
c0f3af97 L |
9396 | }, |
9397 | ||
592a252b | 9398 | /* VEX_LEN_0F2D_P_1 */ |
c0f3af97 | 9399 | { |
bf890a93 IT |
9400 | { "vcvtss2siY", { Gv, EXdScalar }, 0 }, |
9401 | { "vcvtss2siY", { Gv, EXdScalar }, 0 }, | |
c0f3af97 L |
9402 | }, |
9403 | ||
592a252b | 9404 | /* VEX_LEN_0F2D_P_3 */ |
c0f3af97 | 9405 | { |
bf890a93 IT |
9406 | { "vcvtsd2siY", { Gv, EXqScalar }, 0 }, |
9407 | { "vcvtsd2siY", { Gv, EXqScalar }, 0 }, | |
c0f3af97 L |
9408 | }, |
9409 | ||
592a252b | 9410 | /* VEX_LEN_0F2E_P_0 */ |
c0f3af97 | 9411 | { |
592a252b L |
9412 | { VEX_W_TABLE (VEX_W_0F2E_P_0) }, |
9413 | { VEX_W_TABLE (VEX_W_0F2E_P_0) }, | |
c0f3af97 L |
9414 | }, |
9415 | ||
592a252b | 9416 | /* VEX_LEN_0F2E_P_2 */ |
c0f3af97 | 9417 | { |
592a252b L |
9418 | { VEX_W_TABLE (VEX_W_0F2E_P_2) }, |
9419 | { VEX_W_TABLE (VEX_W_0F2E_P_2) }, | |
c0f3af97 L |
9420 | }, |
9421 | ||
592a252b | 9422 | /* VEX_LEN_0F2F_P_0 */ |
c0f3af97 | 9423 | { |
592a252b L |
9424 | { VEX_W_TABLE (VEX_W_0F2F_P_0) }, |
9425 | { VEX_W_TABLE (VEX_W_0F2F_P_0) }, | |
c0f3af97 L |
9426 | }, |
9427 | ||
592a252b | 9428 | /* VEX_LEN_0F2F_P_2 */ |
c0f3af97 | 9429 | { |
592a252b L |
9430 | { VEX_W_TABLE (VEX_W_0F2F_P_2) }, |
9431 | { VEX_W_TABLE (VEX_W_0F2F_P_2) }, | |
c0f3af97 L |
9432 | }, |
9433 | ||
43234a1e L |
9434 | /* VEX_LEN_0F41_P_0 */ |
9435 | { | |
9436 | { Bad_Opcode }, | |
9437 | { VEX_W_TABLE (VEX_W_0F41_P_0_LEN_1) }, | |
9438 | }, | |
1ba585e8 IT |
9439 | /* VEX_LEN_0F41_P_2 */ |
9440 | { | |
9441 | { Bad_Opcode }, | |
9442 | { VEX_W_TABLE (VEX_W_0F41_P_2_LEN_1) }, | |
9443 | }, | |
43234a1e L |
9444 | /* VEX_LEN_0F42_P_0 */ |
9445 | { | |
9446 | { Bad_Opcode }, | |
9447 | { VEX_W_TABLE (VEX_W_0F42_P_0_LEN_1) }, | |
9448 | }, | |
1ba585e8 IT |
9449 | /* VEX_LEN_0F42_P_2 */ |
9450 | { | |
9451 | { Bad_Opcode }, | |
9452 | { VEX_W_TABLE (VEX_W_0F42_P_2_LEN_1) }, | |
9453 | }, | |
43234a1e L |
9454 | /* VEX_LEN_0F44_P_0 */ |
9455 | { | |
9456 | { VEX_W_TABLE (VEX_W_0F44_P_0_LEN_0) }, | |
9457 | }, | |
1ba585e8 IT |
9458 | /* VEX_LEN_0F44_P_2 */ |
9459 | { | |
9460 | { VEX_W_TABLE (VEX_W_0F44_P_2_LEN_0) }, | |
9461 | }, | |
43234a1e L |
9462 | /* VEX_LEN_0F45_P_0 */ |
9463 | { | |
9464 | { Bad_Opcode }, | |
9465 | { VEX_W_TABLE (VEX_W_0F45_P_0_LEN_1) }, | |
9466 | }, | |
1ba585e8 IT |
9467 | /* VEX_LEN_0F45_P_2 */ |
9468 | { | |
9469 | { Bad_Opcode }, | |
9470 | { VEX_W_TABLE (VEX_W_0F45_P_2_LEN_1) }, | |
9471 | }, | |
43234a1e L |
9472 | /* VEX_LEN_0F46_P_0 */ |
9473 | { | |
9474 | { Bad_Opcode }, | |
9475 | { VEX_W_TABLE (VEX_W_0F46_P_0_LEN_1) }, | |
9476 | }, | |
1ba585e8 IT |
9477 | /* VEX_LEN_0F46_P_2 */ |
9478 | { | |
9479 | { Bad_Opcode }, | |
9480 | { VEX_W_TABLE (VEX_W_0F46_P_2_LEN_1) }, | |
9481 | }, | |
43234a1e L |
9482 | /* VEX_LEN_0F47_P_0 */ |
9483 | { | |
9484 | { Bad_Opcode }, | |
9485 | { VEX_W_TABLE (VEX_W_0F47_P_0_LEN_1) }, | |
9486 | }, | |
1ba585e8 IT |
9487 | /* VEX_LEN_0F47_P_2 */ |
9488 | { | |
9489 | { Bad_Opcode }, | |
9490 | { VEX_W_TABLE (VEX_W_0F47_P_2_LEN_1) }, | |
9491 | }, | |
9492 | /* VEX_LEN_0F4A_P_0 */ | |
9493 | { | |
9494 | { Bad_Opcode }, | |
9495 | { VEX_W_TABLE (VEX_W_0F4A_P_0_LEN_1) }, | |
9496 | }, | |
9497 | /* VEX_LEN_0F4A_P_2 */ | |
9498 | { | |
9499 | { Bad_Opcode }, | |
9500 | { VEX_W_TABLE (VEX_W_0F4A_P_2_LEN_1) }, | |
9501 | }, | |
9502 | /* VEX_LEN_0F4B_P_0 */ | |
9503 | { | |
9504 | { Bad_Opcode }, | |
9505 | { VEX_W_TABLE (VEX_W_0F4B_P_0_LEN_1) }, | |
9506 | }, | |
43234a1e L |
9507 | /* VEX_LEN_0F4B_P_2 */ |
9508 | { | |
9509 | { Bad_Opcode }, | |
9510 | { VEX_W_TABLE (VEX_W_0F4B_P_2_LEN_1) }, | |
9511 | }, | |
9512 | ||
592a252b | 9513 | /* VEX_LEN_0F51_P_1 */ |
c0f3af97 | 9514 | { |
592a252b L |
9515 | { VEX_W_TABLE (VEX_W_0F51_P_1) }, |
9516 | { VEX_W_TABLE (VEX_W_0F51_P_1) }, | |
c0f3af97 L |
9517 | }, |
9518 | ||
592a252b | 9519 | /* VEX_LEN_0F51_P_3 */ |
c0f3af97 | 9520 | { |
592a252b L |
9521 | { VEX_W_TABLE (VEX_W_0F51_P_3) }, |
9522 | { VEX_W_TABLE (VEX_W_0F51_P_3) }, | |
c0f3af97 L |
9523 | }, |
9524 | ||
592a252b | 9525 | /* VEX_LEN_0F52_P_1 */ |
c0f3af97 | 9526 | { |
592a252b L |
9527 | { VEX_W_TABLE (VEX_W_0F52_P_1) }, |
9528 | { VEX_W_TABLE (VEX_W_0F52_P_1) }, | |
c0f3af97 L |
9529 | }, |
9530 | ||
592a252b | 9531 | /* VEX_LEN_0F53_P_1 */ |
c0f3af97 | 9532 | { |
592a252b L |
9533 | { VEX_W_TABLE (VEX_W_0F53_P_1) }, |
9534 | { VEX_W_TABLE (VEX_W_0F53_P_1) }, | |
c0f3af97 L |
9535 | }, |
9536 | ||
592a252b | 9537 | /* VEX_LEN_0F58_P_1 */ |
c0f3af97 | 9538 | { |
592a252b L |
9539 | { VEX_W_TABLE (VEX_W_0F58_P_1) }, |
9540 | { VEX_W_TABLE (VEX_W_0F58_P_1) }, | |
c0f3af97 L |
9541 | }, |
9542 | ||
592a252b | 9543 | /* VEX_LEN_0F58_P_3 */ |
c0f3af97 | 9544 | { |
592a252b L |
9545 | { VEX_W_TABLE (VEX_W_0F58_P_3) }, |
9546 | { VEX_W_TABLE (VEX_W_0F58_P_3) }, | |
c0f3af97 L |
9547 | }, |
9548 | ||
592a252b | 9549 | /* VEX_LEN_0F59_P_1 */ |
c0f3af97 | 9550 | { |
592a252b L |
9551 | { VEX_W_TABLE (VEX_W_0F59_P_1) }, |
9552 | { VEX_W_TABLE (VEX_W_0F59_P_1) }, | |
c0f3af97 L |
9553 | }, |
9554 | ||
592a252b | 9555 | /* VEX_LEN_0F59_P_3 */ |
c0f3af97 | 9556 | { |
592a252b L |
9557 | { VEX_W_TABLE (VEX_W_0F59_P_3) }, |
9558 | { VEX_W_TABLE (VEX_W_0F59_P_3) }, | |
c0f3af97 L |
9559 | }, |
9560 | ||
592a252b | 9561 | /* VEX_LEN_0F5A_P_1 */ |
c0f3af97 | 9562 | { |
592a252b L |
9563 | { VEX_W_TABLE (VEX_W_0F5A_P_1) }, |
9564 | { VEX_W_TABLE (VEX_W_0F5A_P_1) }, | |
c0f3af97 L |
9565 | }, |
9566 | ||
592a252b | 9567 | /* VEX_LEN_0F5A_P_3 */ |
c0f3af97 | 9568 | { |
592a252b L |
9569 | { VEX_W_TABLE (VEX_W_0F5A_P_3) }, |
9570 | { VEX_W_TABLE (VEX_W_0F5A_P_3) }, | |
c0f3af97 L |
9571 | }, |
9572 | ||
592a252b | 9573 | /* VEX_LEN_0F5C_P_1 */ |
c0f3af97 | 9574 | { |
592a252b L |
9575 | { VEX_W_TABLE (VEX_W_0F5C_P_1) }, |
9576 | { VEX_W_TABLE (VEX_W_0F5C_P_1) }, | |
c0f3af97 L |
9577 | }, |
9578 | ||
592a252b | 9579 | /* VEX_LEN_0F5C_P_3 */ |
c0f3af97 | 9580 | { |
592a252b L |
9581 | { VEX_W_TABLE (VEX_W_0F5C_P_3) }, |
9582 | { VEX_W_TABLE (VEX_W_0F5C_P_3) }, | |
c0f3af97 L |
9583 | }, |
9584 | ||
592a252b | 9585 | /* VEX_LEN_0F5D_P_1 */ |
c0f3af97 | 9586 | { |
592a252b L |
9587 | { VEX_W_TABLE (VEX_W_0F5D_P_1) }, |
9588 | { VEX_W_TABLE (VEX_W_0F5D_P_1) }, | |
c0f3af97 L |
9589 | }, |
9590 | ||
592a252b | 9591 | /* VEX_LEN_0F5D_P_3 */ |
c0f3af97 | 9592 | { |
592a252b L |
9593 | { VEX_W_TABLE (VEX_W_0F5D_P_3) }, |
9594 | { VEX_W_TABLE (VEX_W_0F5D_P_3) }, | |
c0f3af97 L |
9595 | }, |
9596 | ||
592a252b | 9597 | /* VEX_LEN_0F5E_P_1 */ |
c0f3af97 | 9598 | { |
592a252b L |
9599 | { VEX_W_TABLE (VEX_W_0F5E_P_1) }, |
9600 | { VEX_W_TABLE (VEX_W_0F5E_P_1) }, | |
c0f3af97 L |
9601 | }, |
9602 | ||
592a252b | 9603 | /* VEX_LEN_0F5E_P_3 */ |
c0f3af97 | 9604 | { |
592a252b L |
9605 | { VEX_W_TABLE (VEX_W_0F5E_P_3) }, |
9606 | { VEX_W_TABLE (VEX_W_0F5E_P_3) }, | |
c0f3af97 L |
9607 | }, |
9608 | ||
592a252b | 9609 | /* VEX_LEN_0F5F_P_1 */ |
c0f3af97 | 9610 | { |
592a252b L |
9611 | { VEX_W_TABLE (VEX_W_0F5F_P_1) }, |
9612 | { VEX_W_TABLE (VEX_W_0F5F_P_1) }, | |
c0f3af97 L |
9613 | }, |
9614 | ||
592a252b | 9615 | /* VEX_LEN_0F5F_P_3 */ |
c0f3af97 | 9616 | { |
592a252b L |
9617 | { VEX_W_TABLE (VEX_W_0F5F_P_3) }, |
9618 | { VEX_W_TABLE (VEX_W_0F5F_P_3) }, | |
c0f3af97 L |
9619 | }, |
9620 | ||
592a252b | 9621 | /* VEX_LEN_0F6E_P_2 */ |
c0f3af97 | 9622 | { |
bf890a93 IT |
9623 | { "vmovK", { XMScalar, Edq }, 0 }, |
9624 | { "vmovK", { XMScalar, Edq }, 0 }, | |
c0f3af97 L |
9625 | }, |
9626 | ||
592a252b | 9627 | /* VEX_LEN_0F7E_P_1 */ |
c0f3af97 | 9628 | { |
592a252b L |
9629 | { VEX_W_TABLE (VEX_W_0F7E_P_1) }, |
9630 | { VEX_W_TABLE (VEX_W_0F7E_P_1) }, | |
c0f3af97 L |
9631 | }, |
9632 | ||
592a252b | 9633 | /* VEX_LEN_0F7E_P_2 */ |
c0f3af97 | 9634 | { |
bf890a93 IT |
9635 | { "vmovK", { Edq, XMScalar }, 0 }, |
9636 | { "vmovK", { Edq, XMScalar }, 0 }, | |
c0f3af97 L |
9637 | }, |
9638 | ||
43234a1e L |
9639 | /* VEX_LEN_0F90_P_0 */ |
9640 | { | |
9641 | { VEX_W_TABLE (VEX_W_0F90_P_0_LEN_0) }, | |
9642 | }, | |
9643 | ||
1ba585e8 IT |
9644 | /* VEX_LEN_0F90_P_2 */ |
9645 | { | |
9646 | { VEX_W_TABLE (VEX_W_0F90_P_2_LEN_0) }, | |
9647 | }, | |
9648 | ||
43234a1e L |
9649 | /* VEX_LEN_0F91_P_0 */ |
9650 | { | |
9651 | { VEX_W_TABLE (VEX_W_0F91_P_0_LEN_0) }, | |
9652 | }, | |
9653 | ||
1ba585e8 IT |
9654 | /* VEX_LEN_0F91_P_2 */ |
9655 | { | |
9656 | { VEX_W_TABLE (VEX_W_0F91_P_2_LEN_0) }, | |
9657 | }, | |
9658 | ||
43234a1e L |
9659 | /* VEX_LEN_0F92_P_0 */ |
9660 | { | |
9661 | { VEX_W_TABLE (VEX_W_0F92_P_0_LEN_0) }, | |
9662 | }, | |
9663 | ||
90a915bf IT |
9664 | /* VEX_LEN_0F92_P_2 */ |
9665 | { | |
9666 | { VEX_W_TABLE (VEX_W_0F92_P_2_LEN_0) }, | |
9667 | }, | |
9668 | ||
1ba585e8 IT |
9669 | /* VEX_LEN_0F92_P_3 */ |
9670 | { | |
9671 | { VEX_W_TABLE (VEX_W_0F92_P_3_LEN_0) }, | |
9672 | }, | |
9673 | ||
43234a1e L |
9674 | /* VEX_LEN_0F93_P_0 */ |
9675 | { | |
9676 | { VEX_W_TABLE (VEX_W_0F93_P_0_LEN_0) }, | |
9677 | }, | |
9678 | ||
90a915bf IT |
9679 | /* VEX_LEN_0F93_P_2 */ |
9680 | { | |
9681 | { VEX_W_TABLE (VEX_W_0F93_P_2_LEN_0) }, | |
9682 | }, | |
9683 | ||
1ba585e8 IT |
9684 | /* VEX_LEN_0F93_P_3 */ |
9685 | { | |
9686 | { VEX_W_TABLE (VEX_W_0F93_P_3_LEN_0) }, | |
9687 | }, | |
9688 | ||
43234a1e L |
9689 | /* VEX_LEN_0F98_P_0 */ |
9690 | { | |
9691 | { VEX_W_TABLE (VEX_W_0F98_P_0_LEN_0) }, | |
9692 | }, | |
9693 | ||
1ba585e8 IT |
9694 | /* VEX_LEN_0F98_P_2 */ |
9695 | { | |
9696 | { VEX_W_TABLE (VEX_W_0F98_P_2_LEN_0) }, | |
9697 | }, | |
9698 | ||
9699 | /* VEX_LEN_0F99_P_0 */ | |
9700 | { | |
9701 | { VEX_W_TABLE (VEX_W_0F99_P_0_LEN_0) }, | |
9702 | }, | |
9703 | ||
9704 | /* VEX_LEN_0F99_P_2 */ | |
9705 | { | |
9706 | { VEX_W_TABLE (VEX_W_0F99_P_2_LEN_0) }, | |
9707 | }, | |
9708 | ||
6c30d220 | 9709 | /* VEX_LEN_0FAE_R_2_M_0 */ |
c0f3af97 | 9710 | { |
6c30d220 | 9711 | { VEX_W_TABLE (VEX_W_0FAE_R_2_M_0) }, |
c0f3af97 L |
9712 | }, |
9713 | ||
6c30d220 | 9714 | /* VEX_LEN_0FAE_R_3_M_0 */ |
c0f3af97 | 9715 | { |
6c30d220 | 9716 | { VEX_W_TABLE (VEX_W_0FAE_R_3_M_0) }, |
c0f3af97 L |
9717 | }, |
9718 | ||
6c30d220 | 9719 | /* VEX_LEN_0FC2_P_1 */ |
c0f3af97 | 9720 | { |
6c30d220 L |
9721 | { VEX_W_TABLE (VEX_W_0FC2_P_1) }, |
9722 | { VEX_W_TABLE (VEX_W_0FC2_P_1) }, | |
c0f3af97 L |
9723 | }, |
9724 | ||
6c30d220 | 9725 | /* VEX_LEN_0FC2_P_3 */ |
c0f3af97 | 9726 | { |
6c30d220 L |
9727 | { VEX_W_TABLE (VEX_W_0FC2_P_3) }, |
9728 | { VEX_W_TABLE (VEX_W_0FC2_P_3) }, | |
c0f3af97 L |
9729 | }, |
9730 | ||
6c30d220 | 9731 | /* VEX_LEN_0FC4_P_2 */ |
c0f3af97 | 9732 | { |
6c30d220 | 9733 | { VEX_W_TABLE (VEX_W_0FC4_P_2) }, |
c0f3af97 L |
9734 | }, |
9735 | ||
6c30d220 | 9736 | /* VEX_LEN_0FC5_P_2 */ |
c0f3af97 | 9737 | { |
6c30d220 | 9738 | { VEX_W_TABLE (VEX_W_0FC5_P_2) }, |
c0f3af97 L |
9739 | }, |
9740 | ||
6c30d220 | 9741 | /* VEX_LEN_0FD6_P_2 */ |
c0f3af97 | 9742 | { |
6c30d220 L |
9743 | { VEX_W_TABLE (VEX_W_0FD6_P_2) }, |
9744 | { VEX_W_TABLE (VEX_W_0FD6_P_2) }, | |
c0f3af97 L |
9745 | }, |
9746 | ||
6c30d220 | 9747 | /* VEX_LEN_0FF7_P_2 */ |
c0f3af97 | 9748 | { |
6c30d220 | 9749 | { VEX_W_TABLE (VEX_W_0FF7_P_2) }, |
c0f3af97 L |
9750 | }, |
9751 | ||
6c30d220 | 9752 | /* VEX_LEN_0F3816_P_2 */ |
c0f3af97 | 9753 | { |
6c30d220 L |
9754 | { Bad_Opcode }, |
9755 | { VEX_W_TABLE (VEX_W_0F3816_P_2) }, | |
c0f3af97 L |
9756 | }, |
9757 | ||
6c30d220 | 9758 | /* VEX_LEN_0F3819_P_2 */ |
c0f3af97 | 9759 | { |
6c30d220 L |
9760 | { Bad_Opcode }, |
9761 | { VEX_W_TABLE (VEX_W_0F3819_P_2) }, | |
c0f3af97 L |
9762 | }, |
9763 | ||
6c30d220 | 9764 | /* VEX_LEN_0F381A_P_2_M_0 */ |
c0f3af97 | 9765 | { |
6c30d220 L |
9766 | { Bad_Opcode }, |
9767 | { VEX_W_TABLE (VEX_W_0F381A_P_2_M_0) }, | |
c0f3af97 L |
9768 | }, |
9769 | ||
6c30d220 | 9770 | /* VEX_LEN_0F3836_P_2 */ |
c0f3af97 | 9771 | { |
6c30d220 L |
9772 | { Bad_Opcode }, |
9773 | { VEX_W_TABLE (VEX_W_0F3836_P_2) }, | |
c0f3af97 L |
9774 | }, |
9775 | ||
592a252b | 9776 | /* VEX_LEN_0F3841_P_2 */ |
c0f3af97 | 9777 | { |
592a252b | 9778 | { VEX_W_TABLE (VEX_W_0F3841_P_2) }, |
c0f3af97 L |
9779 | }, |
9780 | ||
6c30d220 L |
9781 | /* VEX_LEN_0F385A_P_2_M_0 */ |
9782 | { | |
9783 | { Bad_Opcode }, | |
9784 | { VEX_W_TABLE (VEX_W_0F385A_P_2_M_0) }, | |
9785 | }, | |
9786 | ||
592a252b | 9787 | /* VEX_LEN_0F38DB_P_2 */ |
a5ff0eb2 | 9788 | { |
592a252b | 9789 | { VEX_W_TABLE (VEX_W_0F38DB_P_2) }, |
a5ff0eb2 L |
9790 | }, |
9791 | ||
592a252b | 9792 | /* VEX_LEN_0F38DC_P_2 */ |
a5ff0eb2 | 9793 | { |
592a252b | 9794 | { VEX_W_TABLE (VEX_W_0F38DC_P_2) }, |
a5ff0eb2 L |
9795 | }, |
9796 | ||
592a252b | 9797 | /* VEX_LEN_0F38DD_P_2 */ |
a5ff0eb2 | 9798 | { |
592a252b | 9799 | { VEX_W_TABLE (VEX_W_0F38DD_P_2) }, |
a5ff0eb2 L |
9800 | }, |
9801 | ||
592a252b | 9802 | /* VEX_LEN_0F38DE_P_2 */ |
a5ff0eb2 | 9803 | { |
592a252b | 9804 | { VEX_W_TABLE (VEX_W_0F38DE_P_2) }, |
a5ff0eb2 L |
9805 | }, |
9806 | ||
592a252b | 9807 | /* VEX_LEN_0F38DF_P_2 */ |
a5ff0eb2 | 9808 | { |
592a252b | 9809 | { VEX_W_TABLE (VEX_W_0F38DF_P_2) }, |
a5ff0eb2 L |
9810 | }, |
9811 | ||
f12dc422 L |
9812 | /* VEX_LEN_0F38F2_P_0 */ |
9813 | { | |
bf890a93 | 9814 | { "andnS", { Gdq, VexGdq, Edq }, 0 }, |
f12dc422 L |
9815 | }, |
9816 | ||
9817 | /* VEX_LEN_0F38F3_R_1_P_0 */ | |
9818 | { | |
bf890a93 | 9819 | { "blsrS", { VexGdq, Edq }, 0 }, |
f12dc422 L |
9820 | }, |
9821 | ||
9822 | /* VEX_LEN_0F38F3_R_2_P_0 */ | |
9823 | { | |
bf890a93 | 9824 | { "blsmskS", { VexGdq, Edq }, 0 }, |
f12dc422 L |
9825 | }, |
9826 | ||
9827 | /* VEX_LEN_0F38F3_R_3_P_0 */ | |
9828 | { | |
bf890a93 | 9829 | { "blsiS", { VexGdq, Edq }, 0 }, |
f12dc422 L |
9830 | }, |
9831 | ||
6c30d220 L |
9832 | /* VEX_LEN_0F38F5_P_0 */ |
9833 | { | |
bf890a93 | 9834 | { "bzhiS", { Gdq, Edq, VexGdq }, 0 }, |
6c30d220 L |
9835 | }, |
9836 | ||
9837 | /* VEX_LEN_0F38F5_P_1 */ | |
9838 | { | |
bf890a93 | 9839 | { "pextS", { Gdq, VexGdq, Edq }, 0 }, |
6c30d220 L |
9840 | }, |
9841 | ||
9842 | /* VEX_LEN_0F38F5_P_3 */ | |
9843 | { | |
bf890a93 | 9844 | { "pdepS", { Gdq, VexGdq, Edq }, 0 }, |
6c30d220 L |
9845 | }, |
9846 | ||
9847 | /* VEX_LEN_0F38F6_P_3 */ | |
9848 | { | |
bf890a93 | 9849 | { "mulxS", { Gdq, VexGdq, Edq }, 0 }, |
6c30d220 L |
9850 | }, |
9851 | ||
f12dc422 L |
9852 | /* VEX_LEN_0F38F7_P_0 */ |
9853 | { | |
bf890a93 | 9854 | { "bextrS", { Gdq, Edq, VexGdq }, 0 }, |
f12dc422 L |
9855 | }, |
9856 | ||
6c30d220 L |
9857 | /* VEX_LEN_0F38F7_P_1 */ |
9858 | { | |
bf890a93 | 9859 | { "sarxS", { Gdq, Edq, VexGdq }, 0 }, |
6c30d220 L |
9860 | }, |
9861 | ||
9862 | /* VEX_LEN_0F38F7_P_2 */ | |
9863 | { | |
bf890a93 | 9864 | { "shlxS", { Gdq, Edq, VexGdq }, 0 }, |
6c30d220 L |
9865 | }, |
9866 | ||
9867 | /* VEX_LEN_0F38F7_P_3 */ | |
9868 | { | |
bf890a93 | 9869 | { "shrxS", { Gdq, Edq, VexGdq }, 0 }, |
6c30d220 L |
9870 | }, |
9871 | ||
9872 | /* VEX_LEN_0F3A00_P_2 */ | |
9873 | { | |
9874 | { Bad_Opcode }, | |
9875 | { VEX_W_TABLE (VEX_W_0F3A00_P_2) }, | |
9876 | }, | |
9877 | ||
9878 | /* VEX_LEN_0F3A01_P_2 */ | |
9879 | { | |
9880 | { Bad_Opcode }, | |
9881 | { VEX_W_TABLE (VEX_W_0F3A01_P_2) }, | |
9882 | }, | |
9883 | ||
592a252b | 9884 | /* VEX_LEN_0F3A06_P_2 */ |
c0f3af97 | 9885 | { |
592d1631 | 9886 | { Bad_Opcode }, |
592a252b | 9887 | { VEX_W_TABLE (VEX_W_0F3A06_P_2) }, |
c0f3af97 L |
9888 | }, |
9889 | ||
592a252b | 9890 | /* VEX_LEN_0F3A0A_P_2 */ |
c0f3af97 | 9891 | { |
592a252b L |
9892 | { VEX_W_TABLE (VEX_W_0F3A0A_P_2) }, |
9893 | { VEX_W_TABLE (VEX_W_0F3A0A_P_2) }, | |
c0f3af97 L |
9894 | }, |
9895 | ||
592a252b | 9896 | /* VEX_LEN_0F3A0B_P_2 */ |
c0f3af97 | 9897 | { |
592a252b L |
9898 | { VEX_W_TABLE (VEX_W_0F3A0B_P_2) }, |
9899 | { VEX_W_TABLE (VEX_W_0F3A0B_P_2) }, | |
c0f3af97 L |
9900 | }, |
9901 | ||
592a252b | 9902 | /* VEX_LEN_0F3A14_P_2 */ |
c0f3af97 | 9903 | { |
592a252b | 9904 | { VEX_W_TABLE (VEX_W_0F3A14_P_2) }, |
c0f3af97 L |
9905 | }, |
9906 | ||
592a252b | 9907 | /* VEX_LEN_0F3A15_P_2 */ |
c0f3af97 | 9908 | { |
592a252b | 9909 | { VEX_W_TABLE (VEX_W_0F3A15_P_2) }, |
c0f3af97 L |
9910 | }, |
9911 | ||
592a252b | 9912 | /* VEX_LEN_0F3A16_P_2 */ |
c0f3af97 | 9913 | { |
bf890a93 | 9914 | { "vpextrK", { Edq, XM, Ib }, 0 }, |
c0f3af97 L |
9915 | }, |
9916 | ||
592a252b | 9917 | /* VEX_LEN_0F3A17_P_2 */ |
c0f3af97 | 9918 | { |
bf890a93 | 9919 | { "vextractps", { Edqd, XM, Ib }, 0 }, |
c0f3af97 L |
9920 | }, |
9921 | ||
592a252b | 9922 | /* VEX_LEN_0F3A18_P_2 */ |
c0f3af97 | 9923 | { |
592d1631 | 9924 | { Bad_Opcode }, |
592a252b | 9925 | { VEX_W_TABLE (VEX_W_0F3A18_P_2) }, |
c0f3af97 L |
9926 | }, |
9927 | ||
592a252b | 9928 | /* VEX_LEN_0F3A19_P_2 */ |
c0f3af97 | 9929 | { |
592d1631 | 9930 | { Bad_Opcode }, |
592a252b | 9931 | { VEX_W_TABLE (VEX_W_0F3A19_P_2) }, |
c0f3af97 L |
9932 | }, |
9933 | ||
592a252b | 9934 | /* VEX_LEN_0F3A20_P_2 */ |
c0f3af97 | 9935 | { |
592a252b | 9936 | { VEX_W_TABLE (VEX_W_0F3A20_P_2) }, |
c0f3af97 L |
9937 | }, |
9938 | ||
592a252b | 9939 | /* VEX_LEN_0F3A21_P_2 */ |
c0f3af97 | 9940 | { |
592a252b | 9941 | { VEX_W_TABLE (VEX_W_0F3A21_P_2) }, |
c0f3af97 L |
9942 | }, |
9943 | ||
592a252b | 9944 | /* VEX_LEN_0F3A22_P_2 */ |
c0f3af97 | 9945 | { |
bf890a93 | 9946 | { "vpinsrK", { XM, Vex128, Edq, Ib }, 0 }, |
c0f3af97 L |
9947 | }, |
9948 | ||
43234a1e L |
9949 | /* VEX_LEN_0F3A30_P_2 */ |
9950 | { | |
9951 | { VEX_W_TABLE (VEX_W_0F3A30_P_2_LEN_0) }, | |
9952 | }, | |
9953 | ||
1ba585e8 IT |
9954 | /* VEX_LEN_0F3A31_P_2 */ |
9955 | { | |
9956 | { VEX_W_TABLE (VEX_W_0F3A31_P_2_LEN_0) }, | |
9957 | }, | |
9958 | ||
43234a1e L |
9959 | /* VEX_LEN_0F3A32_P_2 */ |
9960 | { | |
9961 | { VEX_W_TABLE (VEX_W_0F3A32_P_2_LEN_0) }, | |
9962 | }, | |
9963 | ||
1ba585e8 IT |
9964 | /* VEX_LEN_0F3A33_P_2 */ |
9965 | { | |
9966 | { VEX_W_TABLE (VEX_W_0F3A33_P_2_LEN_0) }, | |
9967 | }, | |
9968 | ||
6c30d220 | 9969 | /* VEX_LEN_0F3A38_P_2 */ |
c0f3af97 | 9970 | { |
6c30d220 L |
9971 | { Bad_Opcode }, |
9972 | { VEX_W_TABLE (VEX_W_0F3A38_P_2) }, | |
c0f3af97 L |
9973 | }, |
9974 | ||
6c30d220 | 9975 | /* VEX_LEN_0F3A39_P_2 */ |
c0f3af97 | 9976 | { |
6c30d220 L |
9977 | { Bad_Opcode }, |
9978 | { VEX_W_TABLE (VEX_W_0F3A39_P_2) }, | |
9979 | }, | |
9980 | ||
9981 | /* VEX_LEN_0F3A41_P_2 */ | |
9982 | { | |
9983 | { VEX_W_TABLE (VEX_W_0F3A41_P_2) }, | |
c0f3af97 L |
9984 | }, |
9985 | ||
592a252b | 9986 | /* VEX_LEN_0F3A44_P_2 */ |
ce2f5b3c | 9987 | { |
592a252b | 9988 | { VEX_W_TABLE (VEX_W_0F3A44_P_2) }, |
ce2f5b3c L |
9989 | }, |
9990 | ||
6c30d220 | 9991 | /* VEX_LEN_0F3A46_P_2 */ |
c0f3af97 | 9992 | { |
6c30d220 L |
9993 | { Bad_Opcode }, |
9994 | { VEX_W_TABLE (VEX_W_0F3A46_P_2) }, | |
c0f3af97 L |
9995 | }, |
9996 | ||
592a252b | 9997 | /* VEX_LEN_0F3A60_P_2 */ |
c0f3af97 | 9998 | { |
592a252b | 9999 | { VEX_W_TABLE (VEX_W_0F3A60_P_2) }, |
c0f3af97 L |
10000 | }, |
10001 | ||
592a252b | 10002 | /* VEX_LEN_0F3A61_P_2 */ |
c0f3af97 | 10003 | { |
592a252b | 10004 | { VEX_W_TABLE (VEX_W_0F3A61_P_2) }, |
c0f3af97 L |
10005 | }, |
10006 | ||
592a252b | 10007 | /* VEX_LEN_0F3A62_P_2 */ |
c0f3af97 | 10008 | { |
592a252b | 10009 | { VEX_W_TABLE (VEX_W_0F3A62_P_2) }, |
c0f3af97 L |
10010 | }, |
10011 | ||
592a252b | 10012 | /* VEX_LEN_0F3A63_P_2 */ |
c0f3af97 | 10013 | { |
592a252b | 10014 | { VEX_W_TABLE (VEX_W_0F3A63_P_2) }, |
c0f3af97 L |
10015 | }, |
10016 | ||
592a252b | 10017 | /* VEX_LEN_0F3A6A_P_2 */ |
922d8de8 | 10018 | { |
bf890a93 | 10019 | { "vfmaddss", { XMVexW, Vex128, EXdVexW, EXdVexW, VexI4 }, 0 }, |
922d8de8 DR |
10020 | }, |
10021 | ||
592a252b | 10022 | /* VEX_LEN_0F3A6B_P_2 */ |
922d8de8 | 10023 | { |
bf890a93 | 10024 | { "vfmaddsd", { XMVexW, Vex128, EXqVexW, EXqVexW, VexI4 }, 0 }, |
922d8de8 DR |
10025 | }, |
10026 | ||
592a252b | 10027 | /* VEX_LEN_0F3A6E_P_2 */ |
922d8de8 | 10028 | { |
bf890a93 | 10029 | { "vfmsubss", { XMVexW, Vex128, EXdVexW, EXdVexW, VexI4 }, 0 }, |
922d8de8 DR |
10030 | }, |
10031 | ||
592a252b | 10032 | /* VEX_LEN_0F3A6F_P_2 */ |
922d8de8 | 10033 | { |
bf890a93 | 10034 | { "vfmsubsd", { XMVexW, Vex128, EXqVexW, EXqVexW, VexI4 }, 0 }, |
922d8de8 DR |
10035 | }, |
10036 | ||
592a252b | 10037 | /* VEX_LEN_0F3A7A_P_2 */ |
922d8de8 | 10038 | { |
bf890a93 | 10039 | { "vfnmaddss", { XMVexW, Vex128, EXdVexW, EXdVexW, VexI4 }, 0 }, |
922d8de8 DR |
10040 | }, |
10041 | ||
592a252b | 10042 | /* VEX_LEN_0F3A7B_P_2 */ |
922d8de8 | 10043 | { |
bf890a93 | 10044 | { "vfnmaddsd", { XMVexW, Vex128, EXqVexW, EXqVexW, VexI4 }, 0 }, |
922d8de8 DR |
10045 | }, |
10046 | ||
592a252b | 10047 | /* VEX_LEN_0F3A7E_P_2 */ |
922d8de8 | 10048 | { |
bf890a93 | 10049 | { "vfnmsubss", { XMVexW, Vex128, EXdVexW, EXdVexW, VexI4 }, 0 }, |
922d8de8 DR |
10050 | }, |
10051 | ||
592a252b | 10052 | /* VEX_LEN_0F3A7F_P_2 */ |
922d8de8 | 10053 | { |
bf890a93 | 10054 | { "vfnmsubsd", { XMVexW, Vex128, EXqVexW, EXqVexW, VexI4 }, 0 }, |
922d8de8 DR |
10055 | }, |
10056 | ||
592a252b | 10057 | /* VEX_LEN_0F3ADF_P_2 */ |
a5ff0eb2 | 10058 | { |
592a252b | 10059 | { VEX_W_TABLE (VEX_W_0F3ADF_P_2) }, |
a5ff0eb2 | 10060 | }, |
4c807e72 | 10061 | |
6c30d220 L |
10062 | /* VEX_LEN_0F3AF0_P_3 */ |
10063 | { | |
bf890a93 | 10064 | { "rorxS", { Gdq, Edq, Ib }, 0 }, |
6c30d220 L |
10065 | }, |
10066 | ||
ff688e1f L |
10067 | /* VEX_LEN_0FXOP_08_CC */ |
10068 | { | |
bf890a93 | 10069 | { "vpcomb", { XM, Vex128, EXx, Ib }, 0 }, |
ff688e1f L |
10070 | }, |
10071 | ||
10072 | /* VEX_LEN_0FXOP_08_CD */ | |
10073 | { | |
bf890a93 | 10074 | { "vpcomw", { XM, Vex128, EXx, Ib }, 0 }, |
ff688e1f L |
10075 | }, |
10076 | ||
10077 | /* VEX_LEN_0FXOP_08_CE */ | |
10078 | { | |
bf890a93 | 10079 | { "vpcomd", { XM, Vex128, EXx, Ib }, 0 }, |
ff688e1f L |
10080 | }, |
10081 | ||
10082 | /* VEX_LEN_0FXOP_08_CF */ | |
10083 | { | |
bf890a93 | 10084 | { "vpcomq", { XM, Vex128, EXx, Ib }, 0 }, |
ff688e1f L |
10085 | }, |
10086 | ||
10087 | /* VEX_LEN_0FXOP_08_EC */ | |
10088 | { | |
bf890a93 | 10089 | { "vpcomub", { XM, Vex128, EXx, Ib }, 0 }, |
ff688e1f L |
10090 | }, |
10091 | ||
10092 | /* VEX_LEN_0FXOP_08_ED */ | |
10093 | { | |
bf890a93 | 10094 | { "vpcomuw", { XM, Vex128, EXx, Ib }, 0 }, |
ff688e1f L |
10095 | }, |
10096 | ||
10097 | /* VEX_LEN_0FXOP_08_EE */ | |
10098 | { | |
bf890a93 | 10099 | { "vpcomud", { XM, Vex128, EXx, Ib }, 0 }, |
ff688e1f L |
10100 | }, |
10101 | ||
10102 | /* VEX_LEN_0FXOP_08_EF */ | |
10103 | { | |
bf890a93 | 10104 | { "vpcomuq", { XM, Vex128, EXx, Ib }, 0 }, |
ff688e1f L |
10105 | }, |
10106 | ||
592a252b | 10107 | /* VEX_LEN_0FXOP_09_80 */ |
5dd85c99 | 10108 | { |
bf890a93 IT |
10109 | { "vfrczps", { XM, EXxmm }, 0 }, |
10110 | { "vfrczps", { XM, EXymmq }, 0 }, | |
5dd85c99 | 10111 | }, |
4c807e72 | 10112 | |
592a252b | 10113 | /* VEX_LEN_0FXOP_09_81 */ |
5dd85c99 | 10114 | { |
bf890a93 IT |
10115 | { "vfrczpd", { XM, EXxmm }, 0 }, |
10116 | { "vfrczpd", { XM, EXymmq }, 0 }, | |
5dd85c99 | 10117 | }, |
331d2d0d L |
10118 | }; |
10119 | ||
9e30b8e0 | 10120 | static const struct dis386 vex_w_table[][2] = { |
b844680a | 10121 | { |
592a252b | 10122 | /* VEX_W_0F10_P_0 */ |
bf890a93 | 10123 | { "vmovups", { XM, EXx }, 0 }, |
d8faab4e L |
10124 | }, |
10125 | { | |
592a252b | 10126 | /* VEX_W_0F10_P_1 */ |
bf890a93 | 10127 | { "vmovss", { XMVexScalar, VexScalar, EXdScalar }, 0 }, |
d8faab4e L |
10128 | }, |
10129 | { | |
592a252b | 10130 | /* VEX_W_0F10_P_2 */ |
bf890a93 | 10131 | { "vmovupd", { XM, EXx }, 0 }, |
d8faab4e L |
10132 | }, |
10133 | { | |
592a252b | 10134 | /* VEX_W_0F10_P_3 */ |
bf890a93 | 10135 | { "vmovsd", { XMVexScalar, VexScalar, EXqScalar }, 0 }, |
d8faab4e L |
10136 | }, |
10137 | { | |
592a252b | 10138 | /* VEX_W_0F11_P_0 */ |
bf890a93 | 10139 | { "vmovups", { EXxS, XM }, 0 }, |
d8faab4e L |
10140 | }, |
10141 | { | |
592a252b | 10142 | /* VEX_W_0F11_P_1 */ |
bf890a93 | 10143 | { "vmovss", { EXdVexScalarS, VexScalar, XMScalar }, 0 }, |
b844680a L |
10144 | }, |
10145 | { | |
592a252b | 10146 | /* VEX_W_0F11_P_2 */ |
bf890a93 | 10147 | { "vmovupd", { EXxS, XM }, 0 }, |
b844680a L |
10148 | }, |
10149 | { | |
592a252b | 10150 | /* VEX_W_0F11_P_3 */ |
bf890a93 | 10151 | { "vmovsd", { EXqVexScalarS, VexScalar, XMScalar }, 0 }, |
d8faab4e L |
10152 | }, |
10153 | { | |
592a252b | 10154 | /* VEX_W_0F12_P_0_M_0 */ |
bf890a93 | 10155 | { "vmovlps", { XM, Vex128, EXq }, 0 }, |
b844680a L |
10156 | }, |
10157 | { | |
592a252b | 10158 | /* VEX_W_0F12_P_0_M_1 */ |
bf890a93 | 10159 | { "vmovhlps", { XM, Vex128, EXq }, 0 }, |
b844680a L |
10160 | }, |
10161 | { | |
592a252b | 10162 | /* VEX_W_0F12_P_1 */ |
bf890a93 | 10163 | { "vmovsldup", { XM, EXx }, 0 }, |
b844680a L |
10164 | }, |
10165 | { | |
592a252b | 10166 | /* VEX_W_0F12_P_2 */ |
bf890a93 | 10167 | { "vmovlpd", { XM, Vex128, EXq }, 0 }, |
b844680a L |
10168 | }, |
10169 | { | |
592a252b | 10170 | /* VEX_W_0F12_P_3 */ |
bf890a93 | 10171 | { "vmovddup", { XM, EXymmq }, 0 }, |
b844680a L |
10172 | }, |
10173 | { | |
592a252b | 10174 | /* VEX_W_0F13_M_0 */ |
bf890a93 | 10175 | { "vmovlpX", { EXq, XM }, 0 }, |
b844680a L |
10176 | }, |
10177 | { | |
592a252b | 10178 | /* VEX_W_0F14 */ |
bf890a93 | 10179 | { "vunpcklpX", { XM, Vex, EXx }, 0 }, |
b844680a L |
10180 | }, |
10181 | { | |
592a252b | 10182 | /* VEX_W_0F15 */ |
bf890a93 | 10183 | { "vunpckhpX", { XM, Vex, EXx }, 0 }, |
b844680a L |
10184 | }, |
10185 | { | |
592a252b | 10186 | /* VEX_W_0F16_P_0_M_0 */ |
bf890a93 | 10187 | { "vmovhps", { XM, Vex128, EXq }, 0 }, |
9e30b8e0 L |
10188 | }, |
10189 | { | |
592a252b | 10190 | /* VEX_W_0F16_P_0_M_1 */ |
bf890a93 | 10191 | { "vmovlhps", { XM, Vex128, EXq }, 0 }, |
9e30b8e0 L |
10192 | }, |
10193 | { | |
592a252b | 10194 | /* VEX_W_0F16_P_1 */ |
bf890a93 | 10195 | { "vmovshdup", { XM, EXx }, 0 }, |
9e30b8e0 L |
10196 | }, |
10197 | { | |
592a252b | 10198 | /* VEX_W_0F16_P_2 */ |
bf890a93 | 10199 | { "vmovhpd", { XM, Vex128, EXq }, 0 }, |
9e30b8e0 L |
10200 | }, |
10201 | { | |
592a252b | 10202 | /* VEX_W_0F17_M_0 */ |
bf890a93 | 10203 | { "vmovhpX", { EXq, XM }, 0 }, |
9e30b8e0 L |
10204 | }, |
10205 | { | |
592a252b | 10206 | /* VEX_W_0F28 */ |
bf890a93 | 10207 | { "vmovapX", { XM, EXx }, 0 }, |
9e30b8e0 L |
10208 | }, |
10209 | { | |
592a252b | 10210 | /* VEX_W_0F29 */ |
bf890a93 | 10211 | { "vmovapX", { EXxS, XM }, 0 }, |
9e30b8e0 L |
10212 | }, |
10213 | { | |
592a252b | 10214 | /* VEX_W_0F2B_M_0 */ |
bf890a93 | 10215 | { "vmovntpX", { Mx, XM }, 0 }, |
9e30b8e0 L |
10216 | }, |
10217 | { | |
592a252b | 10218 | /* VEX_W_0F2E_P_0 */ |
bf890a93 | 10219 | { "vucomiss", { XMScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10220 | }, |
10221 | { | |
592a252b | 10222 | /* VEX_W_0F2E_P_2 */ |
bf890a93 | 10223 | { "vucomisd", { XMScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10224 | }, |
10225 | { | |
592a252b | 10226 | /* VEX_W_0F2F_P_0 */ |
bf890a93 | 10227 | { "vcomiss", { XMScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10228 | }, |
10229 | { | |
592a252b | 10230 | /* VEX_W_0F2F_P_2 */ |
bf890a93 | 10231 | { "vcomisd", { XMScalar, EXqScalar }, 0 }, |
9e30b8e0 | 10232 | }, |
43234a1e L |
10233 | { |
10234 | /* VEX_W_0F41_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10235 | { MOD_TABLE (MOD_VEX_W_0_0F41_P_0_LEN_1) }, |
10236 | { MOD_TABLE (MOD_VEX_W_1_0F41_P_0_LEN_1) }, | |
1ba585e8 IT |
10237 | }, |
10238 | { | |
10239 | /* VEX_W_0F41_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10240 | { MOD_TABLE (MOD_VEX_W_0_0F41_P_2_LEN_1) }, |
10241 | { MOD_TABLE (MOD_VEX_W_1_0F41_P_2_LEN_1) } | |
43234a1e L |
10242 | }, |
10243 | { | |
10244 | /* VEX_W_0F42_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10245 | { MOD_TABLE (MOD_VEX_W_0_0F42_P_0_LEN_1) }, |
10246 | { MOD_TABLE (MOD_VEX_W_1_0F42_P_0_LEN_1) }, | |
1ba585e8 IT |
10247 | }, |
10248 | { | |
10249 | /* VEX_W_0F42_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10250 | { MOD_TABLE (MOD_VEX_W_0_0F42_P_2_LEN_1) }, |
10251 | { MOD_TABLE (MOD_VEX_W_1_0F42_P_2_LEN_1) }, | |
43234a1e L |
10252 | }, |
10253 | { | |
10254 | /* VEX_W_0F44_P_0_LEN_0 */ | |
ab4e4ed5 AF |
10255 | { MOD_TABLE (MOD_VEX_W_0_0F44_P_0_LEN_1) }, |
10256 | { MOD_TABLE (MOD_VEX_W_1_0F44_P_0_LEN_1) }, | |
1ba585e8 IT |
10257 | }, |
10258 | { | |
10259 | /* VEX_W_0F44_P_2_LEN_0 */ | |
ab4e4ed5 AF |
10260 | { MOD_TABLE (MOD_VEX_W_0_0F44_P_2_LEN_1) }, |
10261 | { MOD_TABLE (MOD_VEX_W_1_0F44_P_2_LEN_1) }, | |
43234a1e L |
10262 | }, |
10263 | { | |
10264 | /* VEX_W_0F45_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10265 | { MOD_TABLE (MOD_VEX_W_0_0F45_P_0_LEN_1) }, |
10266 | { MOD_TABLE (MOD_VEX_W_1_0F45_P_0_LEN_1) }, | |
1ba585e8 IT |
10267 | }, |
10268 | { | |
10269 | /* VEX_W_0F45_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10270 | { MOD_TABLE (MOD_VEX_W_0_0F45_P_2_LEN_1) }, |
10271 | { MOD_TABLE (MOD_VEX_W_1_0F45_P_2_LEN_1) }, | |
43234a1e L |
10272 | }, |
10273 | { | |
10274 | /* VEX_W_0F46_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10275 | { MOD_TABLE (MOD_VEX_W_0_0F46_P_0_LEN_1) }, |
10276 | { MOD_TABLE (MOD_VEX_W_1_0F46_P_0_LEN_1) }, | |
1ba585e8 IT |
10277 | }, |
10278 | { | |
10279 | /* VEX_W_0F46_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10280 | { MOD_TABLE (MOD_VEX_W_0_0F46_P_2_LEN_1) }, |
10281 | { MOD_TABLE (MOD_VEX_W_1_0F46_P_2_LEN_1) }, | |
43234a1e L |
10282 | }, |
10283 | { | |
10284 | /* VEX_W_0F47_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10285 | { MOD_TABLE (MOD_VEX_W_0_0F47_P_0_LEN_1) }, |
10286 | { MOD_TABLE (MOD_VEX_W_1_0F47_P_0_LEN_1) }, | |
1ba585e8 IT |
10287 | }, |
10288 | { | |
10289 | /* VEX_W_0F47_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10290 | { MOD_TABLE (MOD_VEX_W_0_0F47_P_2_LEN_1) }, |
10291 | { MOD_TABLE (MOD_VEX_W_1_0F47_P_2_LEN_1) }, | |
1ba585e8 IT |
10292 | }, |
10293 | { | |
10294 | /* VEX_W_0F4A_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10295 | { MOD_TABLE (MOD_VEX_W_0_0F4A_P_0_LEN_1) }, |
10296 | { MOD_TABLE (MOD_VEX_W_1_0F4A_P_0_LEN_1) }, | |
1ba585e8 IT |
10297 | }, |
10298 | { | |
10299 | /* VEX_W_0F4A_P_2_LEN_1 */ | |
ab4e4ed5 AF |
10300 | { MOD_TABLE (MOD_VEX_W_0_0F4A_P_2_LEN_1) }, |
10301 | { MOD_TABLE (MOD_VEX_W_1_0F4A_P_2_LEN_1) }, | |
1ba585e8 IT |
10302 | }, |
10303 | { | |
10304 | /* VEX_W_0F4B_P_0_LEN_1 */ | |
ab4e4ed5 AF |
10305 | { MOD_TABLE (MOD_VEX_W_0_0F4B_P_0_LEN_1) }, |
10306 | { MOD_TABLE (MOD_VEX_W_1_0F4B_P_0_LEN_1) }, | |
43234a1e L |
10307 | }, |
10308 | { | |
10309 | /* VEX_W_0F4B_P_2_LEN_1 */ | |
ab4e4ed5 | 10310 | { MOD_TABLE (MOD_VEX_W_0_0F4B_P_2_LEN_1) }, |
43234a1e | 10311 | }, |
9e30b8e0 | 10312 | { |
592a252b | 10313 | /* VEX_W_0F50_M_0 */ |
bf890a93 | 10314 | { "vmovmskpX", { Gdq, XS }, 0 }, |
9e30b8e0 L |
10315 | }, |
10316 | { | |
592a252b | 10317 | /* VEX_W_0F51_P_0 */ |
bf890a93 | 10318 | { "vsqrtps", { XM, EXx }, 0 }, |
9e30b8e0 L |
10319 | }, |
10320 | { | |
592a252b | 10321 | /* VEX_W_0F51_P_1 */ |
bf890a93 | 10322 | { "vsqrtss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10323 | }, |
10324 | { | |
592a252b | 10325 | /* VEX_W_0F51_P_2 */ |
bf890a93 | 10326 | { "vsqrtpd", { XM, EXx }, 0 }, |
9e30b8e0 L |
10327 | }, |
10328 | { | |
592a252b | 10329 | /* VEX_W_0F51_P_3 */ |
bf890a93 | 10330 | { "vsqrtsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10331 | }, |
10332 | { | |
592a252b | 10333 | /* VEX_W_0F52_P_0 */ |
bf890a93 | 10334 | { "vrsqrtps", { XM, EXx }, 0 }, |
9e30b8e0 L |
10335 | }, |
10336 | { | |
592a252b | 10337 | /* VEX_W_0F52_P_1 */ |
bf890a93 | 10338 | { "vrsqrtss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10339 | }, |
10340 | { | |
592a252b | 10341 | /* VEX_W_0F53_P_0 */ |
bf890a93 | 10342 | { "vrcpps", { XM, EXx }, 0 }, |
9e30b8e0 L |
10343 | }, |
10344 | { | |
592a252b | 10345 | /* VEX_W_0F53_P_1 */ |
bf890a93 | 10346 | { "vrcpss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10347 | }, |
10348 | { | |
592a252b | 10349 | /* VEX_W_0F58_P_0 */ |
bf890a93 | 10350 | { "vaddps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10351 | }, |
10352 | { | |
592a252b | 10353 | /* VEX_W_0F58_P_1 */ |
bf890a93 | 10354 | { "vaddss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10355 | }, |
10356 | { | |
592a252b | 10357 | /* VEX_W_0F58_P_2 */ |
bf890a93 | 10358 | { "vaddpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10359 | }, |
10360 | { | |
592a252b | 10361 | /* VEX_W_0F58_P_3 */ |
bf890a93 | 10362 | { "vaddsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10363 | }, |
10364 | { | |
592a252b | 10365 | /* VEX_W_0F59_P_0 */ |
bf890a93 | 10366 | { "vmulps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10367 | }, |
10368 | { | |
592a252b | 10369 | /* VEX_W_0F59_P_1 */ |
bf890a93 | 10370 | { "vmulss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10371 | }, |
10372 | { | |
592a252b | 10373 | /* VEX_W_0F59_P_2 */ |
bf890a93 | 10374 | { "vmulpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10375 | }, |
10376 | { | |
592a252b | 10377 | /* VEX_W_0F59_P_3 */ |
bf890a93 | 10378 | { "vmulsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10379 | }, |
10380 | { | |
592a252b | 10381 | /* VEX_W_0F5A_P_0 */ |
bf890a93 | 10382 | { "vcvtps2pd", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
10383 | }, |
10384 | { | |
592a252b | 10385 | /* VEX_W_0F5A_P_1 */ |
bf890a93 | 10386 | { "vcvtss2sd", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10387 | }, |
10388 | { | |
592a252b | 10389 | /* VEX_W_0F5A_P_3 */ |
bf890a93 | 10390 | { "vcvtsd2ss", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10391 | }, |
10392 | { | |
592a252b | 10393 | /* VEX_W_0F5B_P_0 */ |
bf890a93 | 10394 | { "vcvtdq2ps", { XM, EXx }, 0 }, |
9e30b8e0 L |
10395 | }, |
10396 | { | |
592a252b | 10397 | /* VEX_W_0F5B_P_1 */ |
bf890a93 | 10398 | { "vcvttps2dq", { XM, EXx }, 0 }, |
9e30b8e0 L |
10399 | }, |
10400 | { | |
592a252b | 10401 | /* VEX_W_0F5B_P_2 */ |
bf890a93 | 10402 | { "vcvtps2dq", { XM, EXx }, 0 }, |
9e30b8e0 L |
10403 | }, |
10404 | { | |
592a252b | 10405 | /* VEX_W_0F5C_P_0 */ |
bf890a93 | 10406 | { "vsubps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10407 | }, |
10408 | { | |
592a252b | 10409 | /* VEX_W_0F5C_P_1 */ |
bf890a93 | 10410 | { "vsubss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10411 | }, |
10412 | { | |
592a252b | 10413 | /* VEX_W_0F5C_P_2 */ |
bf890a93 | 10414 | { "vsubpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10415 | }, |
10416 | { | |
592a252b | 10417 | /* VEX_W_0F5C_P_3 */ |
bf890a93 | 10418 | { "vsubsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10419 | }, |
10420 | { | |
592a252b | 10421 | /* VEX_W_0F5D_P_0 */ |
bf890a93 | 10422 | { "vminps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10423 | }, |
10424 | { | |
592a252b | 10425 | /* VEX_W_0F5D_P_1 */ |
bf890a93 | 10426 | { "vminss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10427 | }, |
10428 | { | |
592a252b | 10429 | /* VEX_W_0F5D_P_2 */ |
bf890a93 | 10430 | { "vminpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10431 | }, |
10432 | { | |
592a252b | 10433 | /* VEX_W_0F5D_P_3 */ |
bf890a93 | 10434 | { "vminsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10435 | }, |
10436 | { | |
592a252b | 10437 | /* VEX_W_0F5E_P_0 */ |
bf890a93 | 10438 | { "vdivps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10439 | }, |
10440 | { | |
592a252b | 10441 | /* VEX_W_0F5E_P_1 */ |
bf890a93 | 10442 | { "vdivss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10443 | }, |
10444 | { | |
592a252b | 10445 | /* VEX_W_0F5E_P_2 */ |
bf890a93 | 10446 | { "vdivpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10447 | }, |
10448 | { | |
592a252b | 10449 | /* VEX_W_0F5E_P_3 */ |
bf890a93 | 10450 | { "vdivsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10451 | }, |
10452 | { | |
592a252b | 10453 | /* VEX_W_0F5F_P_0 */ |
bf890a93 | 10454 | { "vmaxps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10455 | }, |
10456 | { | |
592a252b | 10457 | /* VEX_W_0F5F_P_1 */ |
bf890a93 | 10458 | { "vmaxss", { XMScalar, VexScalar, EXdScalar }, 0 }, |
9e30b8e0 L |
10459 | }, |
10460 | { | |
592a252b | 10461 | /* VEX_W_0F5F_P_2 */ |
bf890a93 | 10462 | { "vmaxpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10463 | }, |
10464 | { | |
592a252b | 10465 | /* VEX_W_0F5F_P_3 */ |
bf890a93 | 10466 | { "vmaxsd", { XMScalar, VexScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10467 | }, |
10468 | { | |
592a252b | 10469 | /* VEX_W_0F60_P_2 */ |
bf890a93 | 10470 | { "vpunpcklbw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10471 | }, |
10472 | { | |
592a252b | 10473 | /* VEX_W_0F61_P_2 */ |
bf890a93 | 10474 | { "vpunpcklwd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10475 | }, |
10476 | { | |
592a252b | 10477 | /* VEX_W_0F62_P_2 */ |
bf890a93 | 10478 | { "vpunpckldq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10479 | }, |
10480 | { | |
592a252b | 10481 | /* VEX_W_0F63_P_2 */ |
bf890a93 | 10482 | { "vpacksswb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10483 | }, |
10484 | { | |
592a252b | 10485 | /* VEX_W_0F64_P_2 */ |
bf890a93 | 10486 | { "vpcmpgtb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10487 | }, |
10488 | { | |
592a252b | 10489 | /* VEX_W_0F65_P_2 */ |
bf890a93 | 10490 | { "vpcmpgtw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10491 | }, |
10492 | { | |
592a252b | 10493 | /* VEX_W_0F66_P_2 */ |
bf890a93 | 10494 | { "vpcmpgtd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10495 | }, |
10496 | { | |
592a252b | 10497 | /* VEX_W_0F67_P_2 */ |
bf890a93 | 10498 | { "vpackuswb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10499 | }, |
10500 | { | |
592a252b | 10501 | /* VEX_W_0F68_P_2 */ |
bf890a93 | 10502 | { "vpunpckhbw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10503 | }, |
10504 | { | |
592a252b | 10505 | /* VEX_W_0F69_P_2 */ |
bf890a93 | 10506 | { "vpunpckhwd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10507 | }, |
10508 | { | |
592a252b | 10509 | /* VEX_W_0F6A_P_2 */ |
bf890a93 | 10510 | { "vpunpckhdq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10511 | }, |
10512 | { | |
592a252b | 10513 | /* VEX_W_0F6B_P_2 */ |
bf890a93 | 10514 | { "vpackssdw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10515 | }, |
10516 | { | |
592a252b | 10517 | /* VEX_W_0F6C_P_2 */ |
bf890a93 | 10518 | { "vpunpcklqdq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10519 | }, |
10520 | { | |
592a252b | 10521 | /* VEX_W_0F6D_P_2 */ |
bf890a93 | 10522 | { "vpunpckhqdq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10523 | }, |
10524 | { | |
592a252b | 10525 | /* VEX_W_0F6F_P_1 */ |
bf890a93 | 10526 | { "vmovdqu", { XM, EXx }, 0 }, |
9e30b8e0 L |
10527 | }, |
10528 | { | |
592a252b | 10529 | /* VEX_W_0F6F_P_2 */ |
bf890a93 | 10530 | { "vmovdqa", { XM, EXx }, 0 }, |
9e30b8e0 L |
10531 | }, |
10532 | { | |
592a252b | 10533 | /* VEX_W_0F70_P_1 */ |
bf890a93 | 10534 | { "vpshufhw", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
10535 | }, |
10536 | { | |
592a252b | 10537 | /* VEX_W_0F70_P_2 */ |
bf890a93 | 10538 | { "vpshufd", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
10539 | }, |
10540 | { | |
592a252b | 10541 | /* VEX_W_0F70_P_3 */ |
bf890a93 | 10542 | { "vpshuflw", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
10543 | }, |
10544 | { | |
592a252b | 10545 | /* VEX_W_0F71_R_2_P_2 */ |
bf890a93 | 10546 | { "vpsrlw", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10547 | }, |
10548 | { | |
592a252b | 10549 | /* VEX_W_0F71_R_4_P_2 */ |
bf890a93 | 10550 | { "vpsraw", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10551 | }, |
10552 | { | |
592a252b | 10553 | /* VEX_W_0F71_R_6_P_2 */ |
bf890a93 | 10554 | { "vpsllw", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10555 | }, |
10556 | { | |
592a252b | 10557 | /* VEX_W_0F72_R_2_P_2 */ |
bf890a93 | 10558 | { "vpsrld", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10559 | }, |
10560 | { | |
592a252b | 10561 | /* VEX_W_0F72_R_4_P_2 */ |
bf890a93 | 10562 | { "vpsrad", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10563 | }, |
10564 | { | |
592a252b | 10565 | /* VEX_W_0F72_R_6_P_2 */ |
bf890a93 | 10566 | { "vpslld", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10567 | }, |
10568 | { | |
592a252b | 10569 | /* VEX_W_0F73_R_2_P_2 */ |
bf890a93 | 10570 | { "vpsrlq", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10571 | }, |
10572 | { | |
592a252b | 10573 | /* VEX_W_0F73_R_3_P_2 */ |
bf890a93 | 10574 | { "vpsrldq", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10575 | }, |
10576 | { | |
592a252b | 10577 | /* VEX_W_0F73_R_6_P_2 */ |
bf890a93 | 10578 | { "vpsllq", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10579 | }, |
10580 | { | |
592a252b | 10581 | /* VEX_W_0F73_R_7_P_2 */ |
bf890a93 | 10582 | { "vpslldq", { Vex, XS, Ib }, 0 }, |
9e30b8e0 L |
10583 | }, |
10584 | { | |
592a252b | 10585 | /* VEX_W_0F74_P_2 */ |
bf890a93 | 10586 | { "vpcmpeqb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10587 | }, |
10588 | { | |
592a252b | 10589 | /* VEX_W_0F75_P_2 */ |
bf890a93 | 10590 | { "vpcmpeqw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10591 | }, |
10592 | { | |
592a252b | 10593 | /* VEX_W_0F76_P_2 */ |
bf890a93 | 10594 | { "vpcmpeqd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10595 | }, |
10596 | { | |
592a252b | 10597 | /* VEX_W_0F77_P_0 */ |
bf890a93 | 10598 | { "", { VZERO }, 0 }, |
9e30b8e0 L |
10599 | }, |
10600 | { | |
592a252b | 10601 | /* VEX_W_0F7C_P_2 */ |
bf890a93 | 10602 | { "vhaddpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10603 | }, |
10604 | { | |
592a252b | 10605 | /* VEX_W_0F7C_P_3 */ |
bf890a93 | 10606 | { "vhaddps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10607 | }, |
10608 | { | |
592a252b | 10609 | /* VEX_W_0F7D_P_2 */ |
bf890a93 | 10610 | { "vhsubpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10611 | }, |
10612 | { | |
592a252b | 10613 | /* VEX_W_0F7D_P_3 */ |
bf890a93 | 10614 | { "vhsubps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10615 | }, |
10616 | { | |
592a252b | 10617 | /* VEX_W_0F7E_P_1 */ |
bf890a93 | 10618 | { "vmovq", { XMScalar, EXqScalar }, 0 }, |
9e30b8e0 L |
10619 | }, |
10620 | { | |
592a252b | 10621 | /* VEX_W_0F7F_P_1 */ |
bf890a93 | 10622 | { "vmovdqu", { EXxS, XM }, 0 }, |
9e30b8e0 L |
10623 | }, |
10624 | { | |
592a252b | 10625 | /* VEX_W_0F7F_P_2 */ |
bf890a93 | 10626 | { "vmovdqa", { EXxS, XM }, 0 }, |
9e30b8e0 | 10627 | }, |
43234a1e L |
10628 | { |
10629 | /* VEX_W_0F90_P_0_LEN_0 */ | |
bf890a93 IT |
10630 | { "kmovw", { MaskG, MaskE }, 0 }, |
10631 | { "kmovq", { MaskG, MaskE }, 0 }, | |
1ba585e8 IT |
10632 | }, |
10633 | { | |
10634 | /* VEX_W_0F90_P_2_LEN_0 */ | |
bf890a93 IT |
10635 | { "kmovb", { MaskG, MaskBDE }, 0 }, |
10636 | { "kmovd", { MaskG, MaskBDE }, 0 }, | |
43234a1e L |
10637 | }, |
10638 | { | |
10639 | /* VEX_W_0F91_P_0_LEN_0 */ | |
ab4e4ed5 AF |
10640 | { MOD_TABLE (MOD_VEX_W_0_0F91_P_0_LEN_0) }, |
10641 | { MOD_TABLE (MOD_VEX_W_1_0F91_P_0_LEN_0) }, | |
1ba585e8 IT |
10642 | }, |
10643 | { | |
10644 | /* VEX_W_0F91_P_2_LEN_0 */ | |
ab4e4ed5 AF |
10645 | { MOD_TABLE (MOD_VEX_W_0_0F91_P_2_LEN_0) }, |
10646 | { MOD_TABLE (MOD_VEX_W_1_0F91_P_2_LEN_0) }, | |
43234a1e L |
10647 | }, |
10648 | { | |
10649 | /* VEX_W_0F92_P_0_LEN_0 */ | |
ab4e4ed5 | 10650 | { MOD_TABLE (MOD_VEX_W_0_0F92_P_0_LEN_0) }, |
43234a1e | 10651 | }, |
90a915bf IT |
10652 | { |
10653 | /* VEX_W_0F92_P_2_LEN_0 */ | |
ab4e4ed5 | 10654 | { MOD_TABLE (MOD_VEX_W_0_0F92_P_2_LEN_0) }, |
90a915bf | 10655 | }, |
1ba585e8 IT |
10656 | { |
10657 | /* VEX_W_0F92_P_3_LEN_0 */ | |
ab4e4ed5 AF |
10658 | { MOD_TABLE (MOD_VEX_W_0_0F92_P_3_LEN_0) }, |
10659 | { MOD_TABLE (MOD_VEX_W_1_0F92_P_3_LEN_0) }, | |
1ba585e8 | 10660 | }, |
43234a1e L |
10661 | { |
10662 | /* VEX_W_0F93_P_0_LEN_0 */ | |
ab4e4ed5 | 10663 | { MOD_TABLE (MOD_VEX_W_0_0F93_P_0_LEN_0) }, |
43234a1e | 10664 | }, |
90a915bf IT |
10665 | { |
10666 | /* VEX_W_0F93_P_2_LEN_0 */ | |
ab4e4ed5 | 10667 | { MOD_TABLE (MOD_VEX_W_0_0F93_P_2_LEN_0) }, |
90a915bf | 10668 | }, |
1ba585e8 IT |
10669 | { |
10670 | /* VEX_W_0F93_P_3_LEN_0 */ | |
ab4e4ed5 AF |
10671 | { MOD_TABLE (MOD_VEX_W_0_0F93_P_3_LEN_0) }, |
10672 | { MOD_TABLE (MOD_VEX_W_1_0F93_P_3_LEN_0) }, | |
1ba585e8 | 10673 | }, |
43234a1e L |
10674 | { |
10675 | /* VEX_W_0F98_P_0_LEN_0 */ | |
ab4e4ed5 AF |
10676 | { MOD_TABLE (MOD_VEX_W_0_0F98_P_0_LEN_0) }, |
10677 | { MOD_TABLE (MOD_VEX_W_1_0F98_P_0_LEN_0) }, | |
1ba585e8 IT |
10678 | }, |
10679 | { | |
10680 | /* VEX_W_0F98_P_2_LEN_0 */ | |
ab4e4ed5 AF |
10681 | { MOD_TABLE (MOD_VEX_W_0_0F98_P_2_LEN_0) }, |
10682 | { MOD_TABLE (MOD_VEX_W_1_0F98_P_2_LEN_0) }, | |
1ba585e8 IT |
10683 | }, |
10684 | { | |
10685 | /* VEX_W_0F99_P_0_LEN_0 */ | |
ab4e4ed5 AF |
10686 | { MOD_TABLE (MOD_VEX_W_0_0F99_P_0_LEN_0) }, |
10687 | { MOD_TABLE (MOD_VEX_W_1_0F99_P_0_LEN_0) }, | |
1ba585e8 IT |
10688 | }, |
10689 | { | |
10690 | /* VEX_W_0F99_P_2_LEN_0 */ | |
ab4e4ed5 AF |
10691 | { MOD_TABLE (MOD_VEX_W_0_0F99_P_2_LEN_0) }, |
10692 | { MOD_TABLE (MOD_VEX_W_1_0F99_P_2_LEN_0) }, | |
43234a1e | 10693 | }, |
9e30b8e0 | 10694 | { |
592a252b | 10695 | /* VEX_W_0FAE_R_2_M_0 */ |
bf890a93 | 10696 | { "vldmxcsr", { Md }, 0 }, |
9e30b8e0 L |
10697 | }, |
10698 | { | |
592a252b | 10699 | /* VEX_W_0FAE_R_3_M_0 */ |
bf890a93 | 10700 | { "vstmxcsr", { Md }, 0 }, |
9e30b8e0 L |
10701 | }, |
10702 | { | |
592a252b | 10703 | /* VEX_W_0FC2_P_0 */ |
bf890a93 | 10704 | { "vcmpps", { XM, Vex, EXx, VCMP }, 0 }, |
9e30b8e0 L |
10705 | }, |
10706 | { | |
592a252b | 10707 | /* VEX_W_0FC2_P_1 */ |
bf890a93 | 10708 | { "vcmpss", { XMScalar, VexScalar, EXdScalar, VCMP }, 0 }, |
9e30b8e0 L |
10709 | }, |
10710 | { | |
592a252b | 10711 | /* VEX_W_0FC2_P_2 */ |
bf890a93 | 10712 | { "vcmppd", { XM, Vex, EXx, VCMP }, 0 }, |
9e30b8e0 L |
10713 | }, |
10714 | { | |
592a252b | 10715 | /* VEX_W_0FC2_P_3 */ |
bf890a93 | 10716 | { "vcmpsd", { XMScalar, VexScalar, EXqScalar, VCMP }, 0 }, |
9e30b8e0 L |
10717 | }, |
10718 | { | |
592a252b | 10719 | /* VEX_W_0FC4_P_2 */ |
bf890a93 | 10720 | { "vpinsrw", { XM, Vex128, Edqw, Ib }, 0 }, |
9e30b8e0 L |
10721 | }, |
10722 | { | |
592a252b | 10723 | /* VEX_W_0FC5_P_2 */ |
bf890a93 | 10724 | { "vpextrw", { Gdq, XS, Ib }, 0 }, |
9e30b8e0 L |
10725 | }, |
10726 | { | |
592a252b | 10727 | /* VEX_W_0FD0_P_2 */ |
bf890a93 | 10728 | { "vaddsubpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10729 | }, |
10730 | { | |
592a252b | 10731 | /* VEX_W_0FD0_P_3 */ |
bf890a93 | 10732 | { "vaddsubps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10733 | }, |
10734 | { | |
592a252b | 10735 | /* VEX_W_0FD1_P_2 */ |
bf890a93 | 10736 | { "vpsrlw", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10737 | }, |
10738 | { | |
592a252b | 10739 | /* VEX_W_0FD2_P_2 */ |
bf890a93 | 10740 | { "vpsrld", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10741 | }, |
10742 | { | |
592a252b | 10743 | /* VEX_W_0FD3_P_2 */ |
bf890a93 | 10744 | { "vpsrlq", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10745 | }, |
10746 | { | |
592a252b | 10747 | /* VEX_W_0FD4_P_2 */ |
bf890a93 | 10748 | { "vpaddq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10749 | }, |
10750 | { | |
592a252b | 10751 | /* VEX_W_0FD5_P_2 */ |
bf890a93 | 10752 | { "vpmullw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10753 | }, |
10754 | { | |
592a252b | 10755 | /* VEX_W_0FD6_P_2 */ |
bf890a93 | 10756 | { "vmovq", { EXqScalarS, XMScalar }, 0 }, |
9e30b8e0 L |
10757 | }, |
10758 | { | |
592a252b | 10759 | /* VEX_W_0FD7_P_2_M_1 */ |
bf890a93 | 10760 | { "vpmovmskb", { Gdq, XS }, 0 }, |
9e30b8e0 L |
10761 | }, |
10762 | { | |
592a252b | 10763 | /* VEX_W_0FD8_P_2 */ |
bf890a93 | 10764 | { "vpsubusb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10765 | }, |
10766 | { | |
592a252b | 10767 | /* VEX_W_0FD9_P_2 */ |
bf890a93 | 10768 | { "vpsubusw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10769 | }, |
10770 | { | |
592a252b | 10771 | /* VEX_W_0FDA_P_2 */ |
bf890a93 | 10772 | { "vpminub", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10773 | }, |
10774 | { | |
592a252b | 10775 | /* VEX_W_0FDB_P_2 */ |
bf890a93 | 10776 | { "vpand", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10777 | }, |
10778 | { | |
592a252b | 10779 | /* VEX_W_0FDC_P_2 */ |
bf890a93 | 10780 | { "vpaddusb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10781 | }, |
10782 | { | |
592a252b | 10783 | /* VEX_W_0FDD_P_2 */ |
bf890a93 | 10784 | { "vpaddusw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10785 | }, |
10786 | { | |
592a252b | 10787 | /* VEX_W_0FDE_P_2 */ |
bf890a93 | 10788 | { "vpmaxub", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10789 | }, |
10790 | { | |
592a252b | 10791 | /* VEX_W_0FDF_P_2 */ |
bf890a93 | 10792 | { "vpandn", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10793 | }, |
10794 | { | |
592a252b | 10795 | /* VEX_W_0FE0_P_2 */ |
bf890a93 | 10796 | { "vpavgb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10797 | }, |
10798 | { | |
592a252b | 10799 | /* VEX_W_0FE1_P_2 */ |
bf890a93 | 10800 | { "vpsraw", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10801 | }, |
10802 | { | |
592a252b | 10803 | /* VEX_W_0FE2_P_2 */ |
bf890a93 | 10804 | { "vpsrad", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10805 | }, |
10806 | { | |
592a252b | 10807 | /* VEX_W_0FE3_P_2 */ |
bf890a93 | 10808 | { "vpavgw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10809 | }, |
10810 | { | |
592a252b | 10811 | /* VEX_W_0FE4_P_2 */ |
bf890a93 | 10812 | { "vpmulhuw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10813 | }, |
10814 | { | |
592a252b | 10815 | /* VEX_W_0FE5_P_2 */ |
bf890a93 | 10816 | { "vpmulhw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10817 | }, |
10818 | { | |
592a252b | 10819 | /* VEX_W_0FE6_P_1 */ |
bf890a93 | 10820 | { "vcvtdq2pd", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
10821 | }, |
10822 | { | |
592a252b | 10823 | /* VEX_W_0FE6_P_2 */ |
bf890a93 | 10824 | { "vcvttpd2dq%XY", { XMM, EXx }, 0 }, |
9e30b8e0 L |
10825 | }, |
10826 | { | |
592a252b | 10827 | /* VEX_W_0FE6_P_3 */ |
bf890a93 | 10828 | { "vcvtpd2dq%XY", { XMM, EXx }, 0 }, |
9e30b8e0 L |
10829 | }, |
10830 | { | |
592a252b | 10831 | /* VEX_W_0FE7_P_2_M_0 */ |
bf890a93 | 10832 | { "vmovntdq", { Mx, XM }, 0 }, |
9e30b8e0 L |
10833 | }, |
10834 | { | |
592a252b | 10835 | /* VEX_W_0FE8_P_2 */ |
bf890a93 | 10836 | { "vpsubsb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10837 | }, |
10838 | { | |
592a252b | 10839 | /* VEX_W_0FE9_P_2 */ |
bf890a93 | 10840 | { "vpsubsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10841 | }, |
10842 | { | |
592a252b | 10843 | /* VEX_W_0FEA_P_2 */ |
bf890a93 | 10844 | { "vpminsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10845 | }, |
10846 | { | |
592a252b | 10847 | /* VEX_W_0FEB_P_2 */ |
bf890a93 | 10848 | { "vpor", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10849 | }, |
10850 | { | |
592a252b | 10851 | /* VEX_W_0FEC_P_2 */ |
bf890a93 | 10852 | { "vpaddsb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10853 | }, |
10854 | { | |
592a252b | 10855 | /* VEX_W_0FED_P_2 */ |
bf890a93 | 10856 | { "vpaddsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10857 | }, |
10858 | { | |
592a252b | 10859 | /* VEX_W_0FEE_P_2 */ |
bf890a93 | 10860 | { "vpmaxsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10861 | }, |
10862 | { | |
592a252b | 10863 | /* VEX_W_0FEF_P_2 */ |
bf890a93 | 10864 | { "vpxor", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10865 | }, |
10866 | { | |
592a252b | 10867 | /* VEX_W_0FF0_P_3_M_0 */ |
bf890a93 | 10868 | { "vlddqu", { XM, M }, 0 }, |
9e30b8e0 L |
10869 | }, |
10870 | { | |
592a252b | 10871 | /* VEX_W_0FF1_P_2 */ |
bf890a93 | 10872 | { "vpsllw", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10873 | }, |
10874 | { | |
592a252b | 10875 | /* VEX_W_0FF2_P_2 */ |
bf890a93 | 10876 | { "vpslld", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10877 | }, |
10878 | { | |
592a252b | 10879 | /* VEX_W_0FF3_P_2 */ |
bf890a93 | 10880 | { "vpsllq", { XM, Vex, EXxmm }, 0 }, |
9e30b8e0 L |
10881 | }, |
10882 | { | |
592a252b | 10883 | /* VEX_W_0FF4_P_2 */ |
bf890a93 | 10884 | { "vpmuludq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10885 | }, |
10886 | { | |
592a252b | 10887 | /* VEX_W_0FF5_P_2 */ |
bf890a93 | 10888 | { "vpmaddwd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10889 | }, |
10890 | { | |
592a252b | 10891 | /* VEX_W_0FF6_P_2 */ |
bf890a93 | 10892 | { "vpsadbw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10893 | }, |
10894 | { | |
592a252b | 10895 | /* VEX_W_0FF7_P_2 */ |
bf890a93 | 10896 | { "vmaskmovdqu", { XM, XS }, 0 }, |
9e30b8e0 L |
10897 | }, |
10898 | { | |
592a252b | 10899 | /* VEX_W_0FF8_P_2 */ |
bf890a93 | 10900 | { "vpsubb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10901 | }, |
10902 | { | |
592a252b | 10903 | /* VEX_W_0FF9_P_2 */ |
bf890a93 | 10904 | { "vpsubw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10905 | }, |
10906 | { | |
592a252b | 10907 | /* VEX_W_0FFA_P_2 */ |
bf890a93 | 10908 | { "vpsubd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10909 | }, |
10910 | { | |
592a252b | 10911 | /* VEX_W_0FFB_P_2 */ |
bf890a93 | 10912 | { "vpsubq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10913 | }, |
10914 | { | |
592a252b | 10915 | /* VEX_W_0FFC_P_2 */ |
bf890a93 | 10916 | { "vpaddb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10917 | }, |
10918 | { | |
592a252b | 10919 | /* VEX_W_0FFD_P_2 */ |
bf890a93 | 10920 | { "vpaddw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10921 | }, |
10922 | { | |
592a252b | 10923 | /* VEX_W_0FFE_P_2 */ |
bf890a93 | 10924 | { "vpaddd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10925 | }, |
10926 | { | |
592a252b | 10927 | /* VEX_W_0F3800_P_2 */ |
bf890a93 | 10928 | { "vpshufb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10929 | }, |
10930 | { | |
592a252b | 10931 | /* VEX_W_0F3801_P_2 */ |
bf890a93 | 10932 | { "vphaddw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10933 | }, |
10934 | { | |
592a252b | 10935 | /* VEX_W_0F3802_P_2 */ |
bf890a93 | 10936 | { "vphaddd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10937 | }, |
10938 | { | |
592a252b | 10939 | /* VEX_W_0F3803_P_2 */ |
bf890a93 | 10940 | { "vphaddsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10941 | }, |
10942 | { | |
592a252b | 10943 | /* VEX_W_0F3804_P_2 */ |
bf890a93 | 10944 | { "vpmaddubsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10945 | }, |
10946 | { | |
592a252b | 10947 | /* VEX_W_0F3805_P_2 */ |
bf890a93 | 10948 | { "vphsubw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10949 | }, |
10950 | { | |
592a252b | 10951 | /* VEX_W_0F3806_P_2 */ |
bf890a93 | 10952 | { "vphsubd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10953 | }, |
10954 | { | |
592a252b | 10955 | /* VEX_W_0F3807_P_2 */ |
bf890a93 | 10956 | { "vphsubsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10957 | }, |
10958 | { | |
592a252b | 10959 | /* VEX_W_0F3808_P_2 */ |
bf890a93 | 10960 | { "vpsignb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10961 | }, |
10962 | { | |
592a252b | 10963 | /* VEX_W_0F3809_P_2 */ |
bf890a93 | 10964 | { "vpsignw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10965 | }, |
10966 | { | |
592a252b | 10967 | /* VEX_W_0F380A_P_2 */ |
bf890a93 | 10968 | { "vpsignd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10969 | }, |
10970 | { | |
592a252b | 10971 | /* VEX_W_0F380B_P_2 */ |
bf890a93 | 10972 | { "vpmulhrsw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10973 | }, |
10974 | { | |
592a252b | 10975 | /* VEX_W_0F380C_P_2 */ |
bf890a93 | 10976 | { "vpermilps", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10977 | }, |
10978 | { | |
592a252b | 10979 | /* VEX_W_0F380D_P_2 */ |
bf890a93 | 10980 | { "vpermilpd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
10981 | }, |
10982 | { | |
592a252b | 10983 | /* VEX_W_0F380E_P_2 */ |
bf890a93 | 10984 | { "vtestps", { XM, EXx }, 0 }, |
9e30b8e0 L |
10985 | }, |
10986 | { | |
592a252b | 10987 | /* VEX_W_0F380F_P_2 */ |
bf890a93 | 10988 | { "vtestpd", { XM, EXx }, 0 }, |
9e30b8e0 | 10989 | }, |
6c30d220 L |
10990 | { |
10991 | /* VEX_W_0F3816_P_2 */ | |
bf890a93 | 10992 | { "vpermps", { XM, Vex, EXx }, 0 }, |
6c30d220 | 10993 | }, |
9e30b8e0 | 10994 | { |
592a252b | 10995 | /* VEX_W_0F3817_P_2 */ |
bf890a93 | 10996 | { "vptest", { XM, EXx }, 0 }, |
9e30b8e0 | 10997 | }, |
bcf2684f | 10998 | { |
6c30d220 | 10999 | /* VEX_W_0F3818_P_2 */ |
bf890a93 | 11000 | { "vbroadcastss", { XM, EXxmm_md }, 0 }, |
bcf2684f | 11001 | }, |
9e30b8e0 | 11002 | { |
6c30d220 | 11003 | /* VEX_W_0F3819_P_2 */ |
bf890a93 | 11004 | { "vbroadcastsd", { XM, EXxmm_mq }, 0 }, |
9e30b8e0 L |
11005 | }, |
11006 | { | |
592a252b | 11007 | /* VEX_W_0F381A_P_2_M_0 */ |
bf890a93 | 11008 | { "vbroadcastf128", { XM, Mxmm }, 0 }, |
9e30b8e0 L |
11009 | }, |
11010 | { | |
592a252b | 11011 | /* VEX_W_0F381C_P_2 */ |
bf890a93 | 11012 | { "vpabsb", { XM, EXx }, 0 }, |
9e30b8e0 L |
11013 | }, |
11014 | { | |
592a252b | 11015 | /* VEX_W_0F381D_P_2 */ |
bf890a93 | 11016 | { "vpabsw", { XM, EXx }, 0 }, |
9e30b8e0 L |
11017 | }, |
11018 | { | |
592a252b | 11019 | /* VEX_W_0F381E_P_2 */ |
bf890a93 | 11020 | { "vpabsd", { XM, EXx }, 0 }, |
9e30b8e0 L |
11021 | }, |
11022 | { | |
592a252b | 11023 | /* VEX_W_0F3820_P_2 */ |
bf890a93 | 11024 | { "vpmovsxbw", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11025 | }, |
11026 | { | |
592a252b | 11027 | /* VEX_W_0F3821_P_2 */ |
bf890a93 | 11028 | { "vpmovsxbd", { XM, EXxmmqd }, 0 }, |
9e30b8e0 L |
11029 | }, |
11030 | { | |
592a252b | 11031 | /* VEX_W_0F3822_P_2 */ |
bf890a93 | 11032 | { "vpmovsxbq", { XM, EXxmmdw }, 0 }, |
9e30b8e0 L |
11033 | }, |
11034 | { | |
592a252b | 11035 | /* VEX_W_0F3823_P_2 */ |
bf890a93 | 11036 | { "vpmovsxwd", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11037 | }, |
11038 | { | |
592a252b | 11039 | /* VEX_W_0F3824_P_2 */ |
bf890a93 | 11040 | { "vpmovsxwq", { XM, EXxmmqd }, 0 }, |
9e30b8e0 L |
11041 | }, |
11042 | { | |
592a252b | 11043 | /* VEX_W_0F3825_P_2 */ |
bf890a93 | 11044 | { "vpmovsxdq", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11045 | }, |
11046 | { | |
592a252b | 11047 | /* VEX_W_0F3828_P_2 */ |
bf890a93 | 11048 | { "vpmuldq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11049 | }, |
11050 | { | |
592a252b | 11051 | /* VEX_W_0F3829_P_2 */ |
bf890a93 | 11052 | { "vpcmpeqq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11053 | }, |
11054 | { | |
592a252b | 11055 | /* VEX_W_0F382A_P_2_M_0 */ |
bf890a93 | 11056 | { "vmovntdqa", { XM, Mx }, 0 }, |
9e30b8e0 L |
11057 | }, |
11058 | { | |
592a252b | 11059 | /* VEX_W_0F382B_P_2 */ |
bf890a93 | 11060 | { "vpackusdw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 | 11061 | }, |
53aa04a0 | 11062 | { |
592a252b | 11063 | /* VEX_W_0F382C_P_2_M_0 */ |
bf890a93 | 11064 | { "vmaskmovps", { XM, Vex, Mx }, 0 }, |
53aa04a0 L |
11065 | }, |
11066 | { | |
592a252b | 11067 | /* VEX_W_0F382D_P_2_M_0 */ |
bf890a93 | 11068 | { "vmaskmovpd", { XM, Vex, Mx }, 0 }, |
53aa04a0 L |
11069 | }, |
11070 | { | |
592a252b | 11071 | /* VEX_W_0F382E_P_2_M_0 */ |
bf890a93 | 11072 | { "vmaskmovps", { Mx, Vex, XM }, 0 }, |
53aa04a0 L |
11073 | }, |
11074 | { | |
592a252b | 11075 | /* VEX_W_0F382F_P_2_M_0 */ |
bf890a93 | 11076 | { "vmaskmovpd", { Mx, Vex, XM }, 0 }, |
53aa04a0 | 11077 | }, |
9e30b8e0 | 11078 | { |
592a252b | 11079 | /* VEX_W_0F3830_P_2 */ |
bf890a93 | 11080 | { "vpmovzxbw", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11081 | }, |
11082 | { | |
592a252b | 11083 | /* VEX_W_0F3831_P_2 */ |
bf890a93 | 11084 | { "vpmovzxbd", { XM, EXxmmqd }, 0 }, |
9e30b8e0 L |
11085 | }, |
11086 | { | |
592a252b | 11087 | /* VEX_W_0F3832_P_2 */ |
bf890a93 | 11088 | { "vpmovzxbq", { XM, EXxmmdw }, 0 }, |
9e30b8e0 L |
11089 | }, |
11090 | { | |
592a252b | 11091 | /* VEX_W_0F3833_P_2 */ |
bf890a93 | 11092 | { "vpmovzxwd", { XM, EXxmmq }, 0 }, |
9e30b8e0 L |
11093 | }, |
11094 | { | |
592a252b | 11095 | /* VEX_W_0F3834_P_2 */ |
bf890a93 | 11096 | { "vpmovzxwq", { XM, EXxmmqd }, 0 }, |
9e30b8e0 L |
11097 | }, |
11098 | { | |
592a252b | 11099 | /* VEX_W_0F3835_P_2 */ |
bf890a93 | 11100 | { "vpmovzxdq", { XM, EXxmmq }, 0 }, |
6c30d220 L |
11101 | }, |
11102 | { | |
11103 | /* VEX_W_0F3836_P_2 */ | |
bf890a93 | 11104 | { "vpermd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11105 | }, |
11106 | { | |
592a252b | 11107 | /* VEX_W_0F3837_P_2 */ |
bf890a93 | 11108 | { "vpcmpgtq", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11109 | }, |
11110 | { | |
592a252b | 11111 | /* VEX_W_0F3838_P_2 */ |
bf890a93 | 11112 | { "vpminsb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11113 | }, |
11114 | { | |
592a252b | 11115 | /* VEX_W_0F3839_P_2 */ |
bf890a93 | 11116 | { "vpminsd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11117 | }, |
11118 | { | |
592a252b | 11119 | /* VEX_W_0F383A_P_2 */ |
bf890a93 | 11120 | { "vpminuw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11121 | }, |
11122 | { | |
592a252b | 11123 | /* VEX_W_0F383B_P_2 */ |
bf890a93 | 11124 | { "vpminud", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11125 | }, |
11126 | { | |
592a252b | 11127 | /* VEX_W_0F383C_P_2 */ |
bf890a93 | 11128 | { "vpmaxsb", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11129 | }, |
11130 | { | |
592a252b | 11131 | /* VEX_W_0F383D_P_2 */ |
bf890a93 | 11132 | { "vpmaxsd", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11133 | }, |
11134 | { | |
592a252b | 11135 | /* VEX_W_0F383E_P_2 */ |
bf890a93 | 11136 | { "vpmaxuw", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11137 | }, |
11138 | { | |
592a252b | 11139 | /* VEX_W_0F383F_P_2 */ |
bf890a93 | 11140 | { "vpmaxud", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11141 | }, |
11142 | { | |
592a252b | 11143 | /* VEX_W_0F3840_P_2 */ |
bf890a93 | 11144 | { "vpmulld", { XM, Vex, EXx }, 0 }, |
9e30b8e0 L |
11145 | }, |
11146 | { | |
592a252b | 11147 | /* VEX_W_0F3841_P_2 */ |
bf890a93 | 11148 | { "vphminposuw", { XM, EXx }, 0 }, |
9e30b8e0 | 11149 | }, |
6c30d220 L |
11150 | { |
11151 | /* VEX_W_0F3846_P_2 */ | |
bf890a93 | 11152 | { "vpsravd", { XM, Vex, EXx }, 0 }, |
6c30d220 L |
11153 | }, |
11154 | { | |
11155 | /* VEX_W_0F3858_P_2 */ | |
bf890a93 | 11156 | { "vpbroadcastd", { XM, EXxmm_md }, 0 }, |
6c30d220 L |
11157 | }, |
11158 | { | |
11159 | /* VEX_W_0F3859_P_2 */ | |
bf890a93 | 11160 | { "vpbroadcastq", { XM, EXxmm_mq }, 0 }, |
6c30d220 L |
11161 | }, |
11162 | { | |
11163 | /* VEX_W_0F385A_P_2_M_0 */ | |
bf890a93 | 11164 | { "vbroadcasti128", { XM, Mxmm }, 0 }, |
6c30d220 L |
11165 | }, |
11166 | { | |
11167 | /* VEX_W_0F3878_P_2 */ | |
bf890a93 | 11168 | { "vpbroadcastb", { XM, EXxmm_mb }, 0 }, |
6c30d220 L |
11169 | }, |
11170 | { | |
11171 | /* VEX_W_0F3879_P_2 */ | |
bf890a93 | 11172 | { "vpbroadcastw", { XM, EXxmm_mw }, 0 }, |
6c30d220 | 11173 | }, |
9e30b8e0 | 11174 | { |
592a252b | 11175 | /* VEX_W_0F38DB_P_2 */ |
bf890a93 | 11176 | { "vaesimc", { XM, EXx }, 0 }, |
9e30b8e0 L |
11177 | }, |
11178 | { | |
592a252b | 11179 | /* VEX_W_0F38DC_P_2 */ |
bf890a93 | 11180 | { "vaesenc", { XM, Vex128, EXx }, 0 }, |
9e30b8e0 L |
11181 | }, |
11182 | { | |
592a252b | 11183 | /* VEX_W_0F38DD_P_2 */ |
bf890a93 | 11184 | { "vaesenclast", { XM, Vex128, EXx }, 0 }, |
9e30b8e0 L |
11185 | }, |
11186 | { | |
592a252b | 11187 | /* VEX_W_0F38DE_P_2 */ |
bf890a93 | 11188 | { "vaesdec", { XM, Vex128, EXx }, 0 }, |
9e30b8e0 L |
11189 | }, |
11190 | { | |
592a252b | 11191 | /* VEX_W_0F38DF_P_2 */ |
bf890a93 | 11192 | { "vaesdeclast", { XM, Vex128, EXx }, 0 }, |
9e30b8e0 | 11193 | }, |
6c30d220 L |
11194 | { |
11195 | /* VEX_W_0F3A00_P_2 */ | |
11196 | { Bad_Opcode }, | |
bf890a93 | 11197 | { "vpermq", { XM, EXx, Ib }, 0 }, |
6c30d220 L |
11198 | }, |
11199 | { | |
11200 | /* VEX_W_0F3A01_P_2 */ | |
11201 | { Bad_Opcode }, | |
bf890a93 | 11202 | { "vpermpd", { XM, EXx, Ib }, 0 }, |
6c30d220 L |
11203 | }, |
11204 | { | |
11205 | /* VEX_W_0F3A02_P_2 */ | |
bf890a93 | 11206 | { "vpblendd", { XM, Vex, EXx, Ib }, 0 }, |
6c30d220 | 11207 | }, |
9e30b8e0 | 11208 | { |
592a252b | 11209 | /* VEX_W_0F3A04_P_2 */ |
bf890a93 | 11210 | { "vpermilps", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11211 | }, |
11212 | { | |
592a252b | 11213 | /* VEX_W_0F3A05_P_2 */ |
bf890a93 | 11214 | { "vpermilpd", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11215 | }, |
11216 | { | |
592a252b | 11217 | /* VEX_W_0F3A06_P_2 */ |
bf890a93 | 11218 | { "vperm2f128", { XM, Vex256, EXx, Ib }, 0 }, |
9e30b8e0 L |
11219 | }, |
11220 | { | |
592a252b | 11221 | /* VEX_W_0F3A08_P_2 */ |
bf890a93 | 11222 | { "vroundps", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11223 | }, |
11224 | { | |
592a252b | 11225 | /* VEX_W_0F3A09_P_2 */ |
bf890a93 | 11226 | { "vroundpd", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11227 | }, |
11228 | { | |
592a252b | 11229 | /* VEX_W_0F3A0A_P_2 */ |
bf890a93 | 11230 | { "vroundss", { XMScalar, VexScalar, EXdScalar, Ib }, 0 }, |
9e30b8e0 L |
11231 | }, |
11232 | { | |
592a252b | 11233 | /* VEX_W_0F3A0B_P_2 */ |
bf890a93 | 11234 | { "vroundsd", { XMScalar, VexScalar, EXqScalar, Ib }, 0 }, |
9e30b8e0 L |
11235 | }, |
11236 | { | |
592a252b | 11237 | /* VEX_W_0F3A0C_P_2 */ |
bf890a93 | 11238 | { "vblendps", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11239 | }, |
11240 | { | |
592a252b | 11241 | /* VEX_W_0F3A0D_P_2 */ |
bf890a93 | 11242 | { "vblendpd", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11243 | }, |
11244 | { | |
592a252b | 11245 | /* VEX_W_0F3A0E_P_2 */ |
bf890a93 | 11246 | { "vpblendw", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11247 | }, |
11248 | { | |
592a252b | 11249 | /* VEX_W_0F3A0F_P_2 */ |
bf890a93 | 11250 | { "vpalignr", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11251 | }, |
11252 | { | |
592a252b | 11253 | /* VEX_W_0F3A14_P_2 */ |
bf890a93 | 11254 | { "vpextrb", { Edqb, XM, Ib }, 0 }, |
9e30b8e0 L |
11255 | }, |
11256 | { | |
592a252b | 11257 | /* VEX_W_0F3A15_P_2 */ |
bf890a93 | 11258 | { "vpextrw", { Edqw, XM, Ib }, 0 }, |
9e30b8e0 L |
11259 | }, |
11260 | { | |
592a252b | 11261 | /* VEX_W_0F3A18_P_2 */ |
bf890a93 | 11262 | { "vinsertf128", { XM, Vex256, EXxmm, Ib }, 0 }, |
9e30b8e0 L |
11263 | }, |
11264 | { | |
592a252b | 11265 | /* VEX_W_0F3A19_P_2 */ |
bf890a93 | 11266 | { "vextractf128", { EXxmm, XM, Ib }, 0 }, |
9e30b8e0 L |
11267 | }, |
11268 | { | |
592a252b | 11269 | /* VEX_W_0F3A20_P_2 */ |
bf890a93 | 11270 | { "vpinsrb", { XM, Vex128, Edqb, Ib }, 0 }, |
9e30b8e0 L |
11271 | }, |
11272 | { | |
592a252b | 11273 | /* VEX_W_0F3A21_P_2 */ |
bf890a93 | 11274 | { "vinsertps", { XM, Vex128, EXd, Ib }, 0 }, |
9e30b8e0 | 11275 | }, |
43234a1e | 11276 | { |
1ba585e8 | 11277 | /* VEX_W_0F3A30_P_2_LEN_0 */ |
ab4e4ed5 AF |
11278 | { MOD_TABLE (MOD_VEX_W_0_0F3A30_P_2_LEN_0) }, |
11279 | { MOD_TABLE (MOD_VEX_W_1_0F3A30_P_2_LEN_0) }, | |
43234a1e L |
11280 | }, |
11281 | { | |
1ba585e8 | 11282 | /* VEX_W_0F3A31_P_2_LEN_0 */ |
ab4e4ed5 AF |
11283 | { MOD_TABLE (MOD_VEX_W_0_0F3A31_P_2_LEN_0) }, |
11284 | { MOD_TABLE (MOD_VEX_W_1_0F3A31_P_2_LEN_0) }, | |
1ba585e8 IT |
11285 | }, |
11286 | { | |
11287 | /* VEX_W_0F3A32_P_2_LEN_0 */ | |
ab4e4ed5 AF |
11288 | { MOD_TABLE (MOD_VEX_W_0_0F3A32_P_2_LEN_0) }, |
11289 | { MOD_TABLE (MOD_VEX_W_1_0F3A32_P_2_LEN_0) }, | |
43234a1e | 11290 | }, |
1ba585e8 IT |
11291 | { |
11292 | /* VEX_W_0F3A33_P_2_LEN_0 */ | |
ab4e4ed5 AF |
11293 | { MOD_TABLE (MOD_VEX_W_0_0F3A33_P_2_LEN_0) }, |
11294 | { MOD_TABLE (MOD_VEX_W_1_0F3A33_P_2_LEN_0) }, | |
1ba585e8 | 11295 | }, |
6c30d220 L |
11296 | { |
11297 | /* VEX_W_0F3A38_P_2 */ | |
bf890a93 | 11298 | { "vinserti128", { XM, Vex256, EXxmm, Ib }, 0 }, |
6c30d220 L |
11299 | }, |
11300 | { | |
11301 | /* VEX_W_0F3A39_P_2 */ | |
bf890a93 | 11302 | { "vextracti128", { EXxmm, XM, Ib }, 0 }, |
6c30d220 | 11303 | }, |
9e30b8e0 | 11304 | { |
592a252b | 11305 | /* VEX_W_0F3A40_P_2 */ |
bf890a93 | 11306 | { "vdpps", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11307 | }, |
11308 | { | |
592a252b | 11309 | /* VEX_W_0F3A41_P_2 */ |
bf890a93 | 11310 | { "vdppd", { XM, Vex128, EXx, Ib }, 0 }, |
9e30b8e0 L |
11311 | }, |
11312 | { | |
592a252b | 11313 | /* VEX_W_0F3A42_P_2 */ |
bf890a93 | 11314 | { "vmpsadbw", { XM, Vex, EXx, Ib }, 0 }, |
9e30b8e0 L |
11315 | }, |
11316 | { | |
592a252b | 11317 | /* VEX_W_0F3A44_P_2 */ |
bf890a93 | 11318 | { "vpclmulqdq", { XM, Vex128, EXx, PCLMUL }, 0 }, |
9e30b8e0 | 11319 | }, |
6c30d220 L |
11320 | { |
11321 | /* VEX_W_0F3A46_P_2 */ | |
bf890a93 | 11322 | { "vperm2i128", { XM, Vex256, EXx, Ib }, 0 }, |
6c30d220 | 11323 | }, |
a683cc34 | 11324 | { |
592a252b | 11325 | /* VEX_W_0F3A48_P_2 */ |
bf890a93 IT |
11326 | { "vpermil2ps", { XMVexW, Vex, EXVexImmW, EXVexImmW, EXVexImmW }, 0 }, |
11327 | { "vpermil2ps", { XMVexW, Vex, EXVexImmW, EXVexImmW, EXVexImmW }, 0 }, | |
a683cc34 SP |
11328 | }, |
11329 | { | |
592a252b | 11330 | /* VEX_W_0F3A49_P_2 */ |
bf890a93 IT |
11331 | { "vpermil2pd", { XMVexW, Vex, EXVexImmW, EXVexImmW, EXVexImmW }, 0 }, |
11332 | { "vpermil2pd", { XMVexW, Vex, EXVexImmW, EXVexImmW, EXVexImmW }, 0 }, | |
a683cc34 | 11333 | }, |
9e30b8e0 | 11334 | { |
592a252b | 11335 | /* VEX_W_0F3A4A_P_2 */ |
bf890a93 | 11336 | { "vblendvps", { XM, Vex, EXx, XMVexI4 }, 0 }, |
9e30b8e0 L |
11337 | }, |
11338 | { | |
592a252b | 11339 | /* VEX_W_0F3A4B_P_2 */ |
bf890a93 | 11340 | { "vblendvpd", { XM, Vex, EXx, XMVexI4 }, 0 }, |
9e30b8e0 L |
11341 | }, |
11342 | { | |
592a252b | 11343 | /* VEX_W_0F3A4C_P_2 */ |
bf890a93 | 11344 | { "vpblendvb", { XM, Vex, EXx, XMVexI4 }, 0 }, |
9e30b8e0 L |
11345 | }, |
11346 | { | |
592a252b | 11347 | /* VEX_W_0F3A60_P_2 */ |
bf890a93 | 11348 | { "vpcmpestrm", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11349 | }, |
11350 | { | |
592a252b | 11351 | /* VEX_W_0F3A61_P_2 */ |
bf890a93 | 11352 | { "vpcmpestri", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11353 | }, |
11354 | { | |
592a252b | 11355 | /* VEX_W_0F3A62_P_2 */ |
bf890a93 | 11356 | { "vpcmpistrm", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11357 | }, |
11358 | { | |
592a252b | 11359 | /* VEX_W_0F3A63_P_2 */ |
bf890a93 | 11360 | { "vpcmpistri", { XM, EXx, Ib }, 0 }, |
9e30b8e0 L |
11361 | }, |
11362 | { | |
592a252b | 11363 | /* VEX_W_0F3ADF_P_2 */ |
bf890a93 | 11364 | { "vaeskeygenassist", { XM, EXx, Ib }, 0 }, |
9e30b8e0 | 11365 | }, |
43234a1e L |
11366 | #define NEED_VEX_W_TABLE |
11367 | #include "i386-dis-evex.h" | |
11368 | #undef NEED_VEX_W_TABLE | |
9e30b8e0 L |
11369 | }; |
11370 | ||
11371 | static const struct dis386 mod_table[][2] = { | |
11372 | { | |
11373 | /* MOD_8D */ | |
bf890a93 | 11374 | { "leaS", { Gv, M }, 0 }, |
9e30b8e0 | 11375 | }, |
42164a71 L |
11376 | { |
11377 | /* MOD_C6_REG_7 */ | |
11378 | { Bad_Opcode }, | |
11379 | { RM_TABLE (RM_C6_REG_7) }, | |
11380 | }, | |
11381 | { | |
11382 | /* MOD_C7_REG_7 */ | |
11383 | { Bad_Opcode }, | |
11384 | { RM_TABLE (RM_C7_REG_7) }, | |
11385 | }, | |
4a357820 MZ |
11386 | { |
11387 | /* MOD_FF_REG_3 */ | |
a72d2af2 | 11388 | { "Jcall^", { indirEp }, 0 }, |
4a357820 MZ |
11389 | }, |
11390 | { | |
11391 | /* MOD_FF_REG_5 */ | |
a72d2af2 | 11392 | { "Jjmp^", { indirEp }, 0 }, |
4a357820 | 11393 | }, |
9e30b8e0 L |
11394 | { |
11395 | /* MOD_0F01_REG_0 */ | |
11396 | { X86_64_TABLE (X86_64_0F01_REG_0) }, | |
11397 | { RM_TABLE (RM_0F01_REG_0) }, | |
11398 | }, | |
11399 | { | |
11400 | /* MOD_0F01_REG_1 */ | |
11401 | { X86_64_TABLE (X86_64_0F01_REG_1) }, | |
11402 | { RM_TABLE (RM_0F01_REG_1) }, | |
11403 | }, | |
11404 | { | |
11405 | /* MOD_0F01_REG_2 */ | |
11406 | { X86_64_TABLE (X86_64_0F01_REG_2) }, | |
11407 | { RM_TABLE (RM_0F01_REG_2) }, | |
11408 | }, | |
11409 | { | |
11410 | /* MOD_0F01_REG_3 */ | |
11411 | { X86_64_TABLE (X86_64_0F01_REG_3) }, | |
11412 | { RM_TABLE (RM_0F01_REG_3) }, | |
11413 | }, | |
8eab4136 L |
11414 | { |
11415 | /* MOD_0F01_REG_5 */ | |
11416 | { Bad_Opcode }, | |
11417 | { RM_TABLE (RM_0F01_REG_5) }, | |
11418 | }, | |
9e30b8e0 L |
11419 | { |
11420 | /* MOD_0F01_REG_7 */ | |
bf890a93 | 11421 | { "invlpg", { Mb }, 0 }, |
9e30b8e0 L |
11422 | { RM_TABLE (RM_0F01_REG_7) }, |
11423 | }, | |
11424 | { | |
11425 | /* MOD_0F12_PREFIX_0 */ | |
507bd325 L |
11426 | { "movlps", { XM, EXq }, PREFIX_OPCODE }, |
11427 | { "movhlps", { XM, EXq }, PREFIX_OPCODE }, | |
9e30b8e0 L |
11428 | }, |
11429 | { | |
11430 | /* MOD_0F13 */ | |
507bd325 | 11431 | { "movlpX", { EXq, XM }, PREFIX_OPCODE }, |
9e30b8e0 L |
11432 | }, |
11433 | { | |
11434 | /* MOD_0F16_PREFIX_0 */ | |
bf890a93 IT |
11435 | { "movhps", { XM, EXq }, 0 }, |
11436 | { "movlhps", { XM, EXq }, 0 }, | |
9e30b8e0 L |
11437 | }, |
11438 | { | |
11439 | /* MOD_0F17 */ | |
507bd325 | 11440 | { "movhpX", { EXq, XM }, PREFIX_OPCODE }, |
9e30b8e0 L |
11441 | }, |
11442 | { | |
11443 | /* MOD_0F18_REG_0 */ | |
bf890a93 | 11444 | { "prefetchnta", { Mb }, 0 }, |
9e30b8e0 L |
11445 | }, |
11446 | { | |
11447 | /* MOD_0F18_REG_1 */ | |
bf890a93 | 11448 | { "prefetcht0", { Mb }, 0 }, |
9e30b8e0 L |
11449 | }, |
11450 | { | |
11451 | /* MOD_0F18_REG_2 */ | |
bf890a93 | 11452 | { "prefetcht1", { Mb }, 0 }, |
9e30b8e0 L |
11453 | }, |
11454 | { | |
11455 | /* MOD_0F18_REG_3 */ | |
bf890a93 | 11456 | { "prefetcht2", { Mb }, 0 }, |
9e30b8e0 | 11457 | }, |
d7189fa5 RM |
11458 | { |
11459 | /* MOD_0F18_REG_4 */ | |
bf890a93 | 11460 | { "nop/reserved", { Mb }, 0 }, |
d7189fa5 RM |
11461 | }, |
11462 | { | |
11463 | /* MOD_0F18_REG_5 */ | |
bf890a93 | 11464 | { "nop/reserved", { Mb }, 0 }, |
d7189fa5 RM |
11465 | }, |
11466 | { | |
11467 | /* MOD_0F18_REG_6 */ | |
bf890a93 | 11468 | { "nop/reserved", { Mb }, 0 }, |
d7189fa5 RM |
11469 | }, |
11470 | { | |
11471 | /* MOD_0F18_REG_7 */ | |
bf890a93 | 11472 | { "nop/reserved", { Mb }, 0 }, |
d7189fa5 | 11473 | }, |
7e8b059b L |
11474 | { |
11475 | /* MOD_0F1A_PREFIX_0 */ | |
bf890a93 IT |
11476 | { "bndldx", { Gbnd, Ev_bnd }, 0 }, |
11477 | { "nopQ", { Ev }, 0 }, | |
7e8b059b L |
11478 | }, |
11479 | { | |
11480 | /* MOD_0F1B_PREFIX_0 */ | |
bf890a93 IT |
11481 | { "bndstx", { Ev_bnd, Gbnd }, 0 }, |
11482 | { "nopQ", { Ev }, 0 }, | |
7e8b059b L |
11483 | }, |
11484 | { | |
11485 | /* MOD_0F1B_PREFIX_1 */ | |
bf890a93 IT |
11486 | { "bndmk", { Gbnd, Ev_bnd }, 0 }, |
11487 | { "nopQ", { Ev }, 0 }, | |
7e8b059b | 11488 | }, |
b844680a | 11489 | { |
92fddf8e | 11490 | /* MOD_0F24 */ |
7bb15c6f | 11491 | { Bad_Opcode }, |
bf890a93 | 11492 | { "movL", { Rd, Td }, 0 }, |
b844680a L |
11493 | }, |
11494 | { | |
92fddf8e | 11495 | /* MOD_0F26 */ |
592d1631 | 11496 | { Bad_Opcode }, |
bf890a93 | 11497 | { "movL", { Td, Rd }, 0 }, |
b844680a | 11498 | }, |
75c135a8 L |
11499 | { |
11500 | /* MOD_0F2B_PREFIX_0 */ | |
507bd325 | 11501 | {"movntps", { Mx, XM }, PREFIX_OPCODE }, |
75c135a8 L |
11502 | }, |
11503 | { | |
11504 | /* MOD_0F2B_PREFIX_1 */ | |
507bd325 | 11505 | {"movntss", { Md, XM }, PREFIX_OPCODE }, |
75c135a8 L |
11506 | }, |
11507 | { | |
11508 | /* MOD_0F2B_PREFIX_2 */ | |
507bd325 | 11509 | {"movntpd", { Mx, XM }, PREFIX_OPCODE }, |
75c135a8 L |
11510 | }, |
11511 | { | |
11512 | /* MOD_0F2B_PREFIX_3 */ | |
507bd325 | 11513 | {"movntsd", { Mq, XM }, PREFIX_OPCODE }, |
75c135a8 L |
11514 | }, |
11515 | { | |
11516 | /* MOD_0F51 */ | |
592d1631 | 11517 | { Bad_Opcode }, |
507bd325 | 11518 | { "movmskpX", { Gdq, XS }, PREFIX_OPCODE }, |
75c135a8 | 11519 | }, |
b844680a | 11520 | { |
1ceb70f8 | 11521 | /* MOD_0F71_REG_2 */ |
592d1631 | 11522 | { Bad_Opcode }, |
bf890a93 | 11523 | { "psrlw", { MS, Ib }, 0 }, |
b844680a L |
11524 | }, |
11525 | { | |
1ceb70f8 | 11526 | /* MOD_0F71_REG_4 */ |
592d1631 | 11527 | { Bad_Opcode }, |
bf890a93 | 11528 | { "psraw", { MS, Ib }, 0 }, |
b844680a L |
11529 | }, |
11530 | { | |
1ceb70f8 | 11531 | /* MOD_0F71_REG_6 */ |
592d1631 | 11532 | { Bad_Opcode }, |
bf890a93 | 11533 | { "psllw", { MS, Ib }, 0 }, |
b844680a L |
11534 | }, |
11535 | { | |
1ceb70f8 | 11536 | /* MOD_0F72_REG_2 */ |
592d1631 | 11537 | { Bad_Opcode }, |
bf890a93 | 11538 | { "psrld", { MS, Ib }, 0 }, |
b844680a L |
11539 | }, |
11540 | { | |
1ceb70f8 | 11541 | /* MOD_0F72_REG_4 */ |
592d1631 | 11542 | { Bad_Opcode }, |
bf890a93 | 11543 | { "psrad", { MS, Ib }, 0 }, |
b844680a L |
11544 | }, |
11545 | { | |
1ceb70f8 | 11546 | /* MOD_0F72_REG_6 */ |
592d1631 | 11547 | { Bad_Opcode }, |
bf890a93 | 11548 | { "pslld", { MS, Ib }, 0 }, |
b844680a L |
11549 | }, |
11550 | { | |
1ceb70f8 | 11551 | /* MOD_0F73_REG_2 */ |
592d1631 | 11552 | { Bad_Opcode }, |
bf890a93 | 11553 | { "psrlq", { MS, Ib }, 0 }, |
b844680a L |
11554 | }, |
11555 | { | |
1ceb70f8 | 11556 | /* MOD_0F73_REG_3 */ |
592d1631 | 11557 | { Bad_Opcode }, |
c0f3af97 L |
11558 | { PREFIX_TABLE (PREFIX_0F73_REG_3) }, |
11559 | }, | |
11560 | { | |
11561 | /* MOD_0F73_REG_6 */ | |
592d1631 | 11562 | { Bad_Opcode }, |
bf890a93 | 11563 | { "psllq", { MS, Ib }, 0 }, |
c0f3af97 L |
11564 | }, |
11565 | { | |
11566 | /* MOD_0F73_REG_7 */ | |
592d1631 | 11567 | { Bad_Opcode }, |
c0f3af97 L |
11568 | { PREFIX_TABLE (PREFIX_0F73_REG_7) }, |
11569 | }, | |
11570 | { | |
11571 | /* MOD_0FAE_REG_0 */ | |
bf890a93 | 11572 | { "fxsave", { FXSAVE }, 0 }, |
c7b8aa3a | 11573 | { PREFIX_TABLE (PREFIX_0FAE_REG_0) }, |
c0f3af97 L |
11574 | }, |
11575 | { | |
11576 | /* MOD_0FAE_REG_1 */ | |
bf890a93 | 11577 | { "fxrstor", { FXSAVE }, 0 }, |
c7b8aa3a | 11578 | { PREFIX_TABLE (PREFIX_0FAE_REG_1) }, |
c0f3af97 L |
11579 | }, |
11580 | { | |
11581 | /* MOD_0FAE_REG_2 */ | |
bf890a93 | 11582 | { "ldmxcsr", { Md }, 0 }, |
c7b8aa3a | 11583 | { PREFIX_TABLE (PREFIX_0FAE_REG_2) }, |
c0f3af97 L |
11584 | }, |
11585 | { | |
11586 | /* MOD_0FAE_REG_3 */ | |
bf890a93 | 11587 | { "stmxcsr", { Md }, 0 }, |
c7b8aa3a | 11588 | { PREFIX_TABLE (PREFIX_0FAE_REG_3) }, |
c0f3af97 L |
11589 | }, |
11590 | { | |
11591 | /* MOD_0FAE_REG_4 */ | |
6b40c462 L |
11592 | { PREFIX_TABLE (PREFIX_MOD_0_0FAE_REG_4) }, |
11593 | { PREFIX_TABLE (PREFIX_MOD_3_0FAE_REG_4) }, | |
c0f3af97 L |
11594 | }, |
11595 | { | |
11596 | /* MOD_0FAE_REG_5 */ | |
bf890a93 | 11597 | { "xrstor", { FXSAVE }, 0 }, |
c0f3af97 L |
11598 | { RM_TABLE (RM_0FAE_REG_5) }, |
11599 | }, | |
11600 | { | |
11601 | /* MOD_0FAE_REG_6 */ | |
c5e7287a | 11602 | { PREFIX_TABLE (PREFIX_0FAE_REG_6) }, |
c0f3af97 L |
11603 | { RM_TABLE (RM_0FAE_REG_6) }, |
11604 | }, | |
11605 | { | |
11606 | /* MOD_0FAE_REG_7 */ | |
963f3586 | 11607 | { PREFIX_TABLE (PREFIX_0FAE_REG_7) }, |
c0f3af97 L |
11608 | { RM_TABLE (RM_0FAE_REG_7) }, |
11609 | }, | |
11610 | { | |
11611 | /* MOD_0FB2 */ | |
bf890a93 | 11612 | { "lssS", { Gv, Mp }, 0 }, |
c0f3af97 L |
11613 | }, |
11614 | { | |
11615 | /* MOD_0FB4 */ | |
bf890a93 | 11616 | { "lfsS", { Gv, Mp }, 0 }, |
c0f3af97 L |
11617 | }, |
11618 | { | |
11619 | /* MOD_0FB5 */ | |
bf890a93 | 11620 | { "lgsS", { Gv, Mp }, 0 }, |
c0f3af97 | 11621 | }, |
a8484f96 L |
11622 | { |
11623 | /* MOD_0FC3 */ | |
11624 | { PREFIX_TABLE (PREFIX_MOD_0_0FC3) }, | |
11625 | }, | |
963f3586 IT |
11626 | { |
11627 | /* MOD_0FC7_REG_3 */ | |
a8484f96 | 11628 | { "xrstors", { FXSAVE }, 0 }, |
963f3586 IT |
11629 | }, |
11630 | { | |
11631 | /* MOD_0FC7_REG_4 */ | |
bf890a93 | 11632 | { "xsavec", { FXSAVE }, 0 }, |
963f3586 IT |
11633 | }, |
11634 | { | |
11635 | /* MOD_0FC7_REG_5 */ | |
bf890a93 | 11636 | { "xsaves", { FXSAVE }, 0 }, |
963f3586 | 11637 | }, |
c0f3af97 L |
11638 | { |
11639 | /* MOD_0FC7_REG_6 */ | |
f24bcbaa L |
11640 | { PREFIX_TABLE (PREFIX_MOD_0_0FC7_REG_6) }, |
11641 | { PREFIX_TABLE (PREFIX_MOD_3_0FC7_REG_6) } | |
c0f3af97 L |
11642 | }, |
11643 | { | |
11644 | /* MOD_0FC7_REG_7 */ | |
bf890a93 | 11645 | { "vmptrst", { Mq }, 0 }, |
f24bcbaa | 11646 | { PREFIX_TABLE (PREFIX_MOD_3_0FC7_REG_7) } |
c0f3af97 L |
11647 | }, |
11648 | { | |
11649 | /* MOD_0FD7 */ | |
592d1631 | 11650 | { Bad_Opcode }, |
bf890a93 | 11651 | { "pmovmskb", { Gdq, MS }, 0 }, |
c0f3af97 L |
11652 | }, |
11653 | { | |
11654 | /* MOD_0FE7_PREFIX_2 */ | |
bf890a93 | 11655 | { "movntdq", { Mx, XM }, 0 }, |
c0f3af97 L |
11656 | }, |
11657 | { | |
11658 | /* MOD_0FF0_PREFIX_3 */ | |
bf890a93 | 11659 | { "lddqu", { XM, M }, 0 }, |
c0f3af97 L |
11660 | }, |
11661 | { | |
11662 | /* MOD_0F382A_PREFIX_2 */ | |
bf890a93 | 11663 | { "movntdqa", { XM, Mx }, 0 }, |
c0f3af97 L |
11664 | }, |
11665 | { | |
11666 | /* MOD_62_32BIT */ | |
bf890a93 | 11667 | { "bound{S|}", { Gv, Ma }, 0 }, |
43234a1e | 11668 | { EVEX_TABLE (EVEX_0F) }, |
c0f3af97 L |
11669 | }, |
11670 | { | |
11671 | /* MOD_C4_32BIT */ | |
bf890a93 | 11672 | { "lesS", { Gv, Mp }, 0 }, |
c0f3af97 L |
11673 | { VEX_C4_TABLE (VEX_0F) }, |
11674 | }, | |
11675 | { | |
11676 | /* MOD_C5_32BIT */ | |
bf890a93 | 11677 | { "ldsS", { Gv, Mp }, 0 }, |
c0f3af97 L |
11678 | { VEX_C5_TABLE (VEX_0F) }, |
11679 | }, | |
11680 | { | |
592a252b L |
11681 | /* MOD_VEX_0F12_PREFIX_0 */ |
11682 | { VEX_LEN_TABLE (VEX_LEN_0F12_P_0_M_0) }, | |
11683 | { VEX_LEN_TABLE (VEX_LEN_0F12_P_0_M_1) }, | |
c0f3af97 L |
11684 | }, |
11685 | { | |
592a252b L |
11686 | /* MOD_VEX_0F13 */ |
11687 | { VEX_LEN_TABLE (VEX_LEN_0F13_M_0) }, | |
c0f3af97 L |
11688 | }, |
11689 | { | |
592a252b L |
11690 | /* MOD_VEX_0F16_PREFIX_0 */ |
11691 | { VEX_LEN_TABLE (VEX_LEN_0F16_P_0_M_0) }, | |
11692 | { VEX_LEN_TABLE (VEX_LEN_0F16_P_0_M_1) }, | |
c0f3af97 L |
11693 | }, |
11694 | { | |
592a252b L |
11695 | /* MOD_VEX_0F17 */ |
11696 | { VEX_LEN_TABLE (VEX_LEN_0F17_M_0) }, | |
c0f3af97 L |
11697 | }, |
11698 | { | |
592a252b L |
11699 | /* MOD_VEX_0F2B */ |
11700 | { VEX_W_TABLE (VEX_W_0F2B_M_0) }, | |
c0f3af97 | 11701 | }, |
ab4e4ed5 AF |
11702 | { |
11703 | /* MOD_VEX_W_0_0F41_P_0_LEN_1 */ | |
11704 | { Bad_Opcode }, | |
11705 | { "kandw", { MaskG, MaskVex, MaskR }, 0 }, | |
11706 | }, | |
11707 | { | |
11708 | /* MOD_VEX_W_1_0F41_P_0_LEN_1 */ | |
11709 | { Bad_Opcode }, | |
11710 | { "kandq", { MaskG, MaskVex, MaskR }, 0 }, | |
11711 | }, | |
11712 | { | |
11713 | /* MOD_VEX_W_0_0F41_P_2_LEN_1 */ | |
11714 | { Bad_Opcode }, | |
11715 | { "kandb", { MaskG, MaskVex, MaskR }, 0 }, | |
11716 | }, | |
11717 | { | |
11718 | /* MOD_VEX_W_1_0F41_P_2_LEN_1 */ | |
11719 | { Bad_Opcode }, | |
11720 | { "kandd", { MaskG, MaskVex, MaskR }, 0 }, | |
11721 | }, | |
11722 | { | |
11723 | /* MOD_VEX_W_0_0F42_P_0_LEN_1 */ | |
11724 | { Bad_Opcode }, | |
11725 | { "kandnw", { MaskG, MaskVex, MaskR }, 0 }, | |
11726 | }, | |
11727 | { | |
11728 | /* MOD_VEX_W_1_0F42_P_0_LEN_1 */ | |
11729 | { Bad_Opcode }, | |
11730 | { "kandnq", { MaskG, MaskVex, MaskR }, 0 }, | |
11731 | }, | |
11732 | { | |
11733 | /* MOD_VEX_W_0_0F42_P_2_LEN_1 */ | |
11734 | { Bad_Opcode }, | |
11735 | { "kandnb", { MaskG, MaskVex, MaskR }, 0 }, | |
11736 | }, | |
11737 | { | |
11738 | /* MOD_VEX_W_1_0F42_P_2_LEN_1 */ | |
11739 | { Bad_Opcode }, | |
11740 | { "kandnd", { MaskG, MaskVex, MaskR }, 0 }, | |
11741 | }, | |
11742 | { | |
11743 | /* MOD_VEX_W_0_0F44_P_0_LEN_0 */ | |
11744 | { Bad_Opcode }, | |
11745 | { "knotw", { MaskG, MaskR }, 0 }, | |
11746 | }, | |
11747 | { | |
11748 | /* MOD_VEX_W_1_0F44_P_0_LEN_0 */ | |
11749 | { Bad_Opcode }, | |
11750 | { "knotq", { MaskG, MaskR }, 0 }, | |
11751 | }, | |
11752 | { | |
11753 | /* MOD_VEX_W_0_0F44_P_2_LEN_0 */ | |
11754 | { Bad_Opcode }, | |
11755 | { "knotb", { MaskG, MaskR }, 0 }, | |
11756 | }, | |
11757 | { | |
11758 | /* MOD_VEX_W_1_0F44_P_2_LEN_0 */ | |
11759 | { Bad_Opcode }, | |
11760 | { "knotd", { MaskG, MaskR }, 0 }, | |
11761 | }, | |
11762 | { | |
11763 | /* MOD_VEX_W_0_0F45_P_0_LEN_1 */ | |
11764 | { Bad_Opcode }, | |
11765 | { "korw", { MaskG, MaskVex, MaskR }, 0 }, | |
11766 | }, | |
11767 | { | |
11768 | /* MOD_VEX_W_1_0F45_P_0_LEN_1 */ | |
11769 | { Bad_Opcode }, | |
11770 | { "korq", { MaskG, MaskVex, MaskR }, 0 }, | |
11771 | }, | |
11772 | { | |
11773 | /* MOD_VEX_W_0_0F45_P_2_LEN_1 */ | |
11774 | { Bad_Opcode }, | |
11775 | { "korb", { MaskG, MaskVex, MaskR }, 0 }, | |
11776 | }, | |
11777 | { | |
11778 | /* MOD_VEX_W_1_0F45_P_2_LEN_1 */ | |
11779 | { Bad_Opcode }, | |
11780 | { "kord", { MaskG, MaskVex, MaskR }, 0 }, | |
11781 | }, | |
11782 | { | |
11783 | /* MOD_VEX_W_0_0F46_P_0_LEN_1 */ | |
11784 | { Bad_Opcode }, | |
11785 | { "kxnorw", { MaskG, MaskVex, MaskR }, 0 }, | |
11786 | }, | |
11787 | { | |
11788 | /* MOD_VEX_W_1_0F46_P_0_LEN_1 */ | |
11789 | { Bad_Opcode }, | |
11790 | { "kxnorq", { MaskG, MaskVex, MaskR }, 0 }, | |
11791 | }, | |
11792 | { | |
11793 | /* MOD_VEX_W_0_0F46_P_2_LEN_1 */ | |
11794 | { Bad_Opcode }, | |
11795 | { "kxnorb", { MaskG, MaskVex, MaskR }, 0 }, | |
11796 | }, | |
11797 | { | |
11798 | /* MOD_VEX_W_1_0F46_P_2_LEN_1 */ | |
11799 | { Bad_Opcode }, | |
11800 | { "kxnord", { MaskG, MaskVex, MaskR }, 0 }, | |
11801 | }, | |
11802 | { | |
11803 | /* MOD_VEX_W_0_0F47_P_0_LEN_1 */ | |
11804 | { Bad_Opcode }, | |
11805 | { "kxorw", { MaskG, MaskVex, MaskR }, 0 }, | |
11806 | }, | |
11807 | { | |
11808 | /* MOD_VEX_W_1_0F47_P_0_LEN_1 */ | |
11809 | { Bad_Opcode }, | |
11810 | { "kxorq", { MaskG, MaskVex, MaskR }, 0 }, | |
11811 | }, | |
11812 | { | |
11813 | /* MOD_VEX_W_0_0F47_P_2_LEN_1 */ | |
11814 | { Bad_Opcode }, | |
11815 | { "kxorb", { MaskG, MaskVex, MaskR }, 0 }, | |
11816 | }, | |
11817 | { | |
11818 | /* MOD_VEX_W_1_0F47_P_2_LEN_1 */ | |
11819 | { Bad_Opcode }, | |
11820 | { "kxord", { MaskG, MaskVex, MaskR }, 0 }, | |
11821 | }, | |
11822 | { | |
11823 | /* MOD_VEX_W_0_0F4A_P_0_LEN_1 */ | |
11824 | { Bad_Opcode }, | |
11825 | { "kaddw", { MaskG, MaskVex, MaskR }, 0 }, | |
11826 | }, | |
11827 | { | |
11828 | /* MOD_VEX_W_1_0F4A_P_0_LEN_1 */ | |
11829 | { Bad_Opcode }, | |
11830 | { "kaddq", { MaskG, MaskVex, MaskR }, 0 }, | |
11831 | }, | |
11832 | { | |
11833 | /* MOD_VEX_W_0_0F4A_P_2_LEN_1 */ | |
11834 | { Bad_Opcode }, | |
11835 | { "kaddb", { MaskG, MaskVex, MaskR }, 0 }, | |
11836 | }, | |
11837 | { | |
11838 | /* MOD_VEX_W_1_0F4A_P_2_LEN_1 */ | |
11839 | { Bad_Opcode }, | |
11840 | { "kaddd", { MaskG, MaskVex, MaskR }, 0 }, | |
11841 | }, | |
11842 | { | |
11843 | /* MOD_VEX_W_0_0F4B_P_0_LEN_1 */ | |
11844 | { Bad_Opcode }, | |
11845 | { "kunpckwd", { MaskG, MaskVex, MaskR }, 0 }, | |
11846 | }, | |
11847 | { | |
11848 | /* MOD_VEX_W_1_0F4B_P_0_LEN_1 */ | |
11849 | { Bad_Opcode }, | |
11850 | { "kunpckdq", { MaskG, MaskVex, MaskR }, 0 }, | |
11851 | }, | |
11852 | { | |
11853 | /* MOD_VEX_W_0_0F4B_P_2_LEN_1 */ | |
11854 | { Bad_Opcode }, | |
11855 | { "kunpckbw", { MaskG, MaskVex, MaskR }, 0 }, | |
11856 | }, | |
c0f3af97 | 11857 | { |
592a252b | 11858 | /* MOD_VEX_0F50 */ |
592d1631 | 11859 | { Bad_Opcode }, |
592a252b | 11860 | { VEX_W_TABLE (VEX_W_0F50_M_0) }, |
c0f3af97 L |
11861 | }, |
11862 | { | |
592a252b | 11863 | /* MOD_VEX_0F71_REG_2 */ |
592d1631 | 11864 | { Bad_Opcode }, |
592a252b | 11865 | { PREFIX_TABLE (PREFIX_VEX_0F71_REG_2) }, |
b844680a L |
11866 | }, |
11867 | { | |
592a252b | 11868 | /* MOD_VEX_0F71_REG_4 */ |
592d1631 | 11869 | { Bad_Opcode }, |
592a252b | 11870 | { PREFIX_TABLE (PREFIX_VEX_0F71_REG_4) }, |
b844680a L |
11871 | }, |
11872 | { | |
592a252b | 11873 | /* MOD_VEX_0F71_REG_6 */ |
592d1631 | 11874 | { Bad_Opcode }, |
592a252b | 11875 | { PREFIX_TABLE (PREFIX_VEX_0F71_REG_6) }, |
b844680a L |
11876 | }, |
11877 | { | |
592a252b | 11878 | /* MOD_VEX_0F72_REG_2 */ |
592d1631 | 11879 | { Bad_Opcode }, |
592a252b | 11880 | { PREFIX_TABLE (PREFIX_VEX_0F72_REG_2) }, |
b844680a | 11881 | }, |
d8faab4e | 11882 | { |
592a252b | 11883 | /* MOD_VEX_0F72_REG_4 */ |
592d1631 | 11884 | { Bad_Opcode }, |
592a252b | 11885 | { PREFIX_TABLE (PREFIX_VEX_0F72_REG_4) }, |
d8faab4e L |
11886 | }, |
11887 | { | |
592a252b | 11888 | /* MOD_VEX_0F72_REG_6 */ |
592d1631 | 11889 | { Bad_Opcode }, |
592a252b | 11890 | { PREFIX_TABLE (PREFIX_VEX_0F72_REG_6) }, |
d8faab4e | 11891 | }, |
876d4bfa | 11892 | { |
592a252b | 11893 | /* MOD_VEX_0F73_REG_2 */ |
592d1631 | 11894 | { Bad_Opcode }, |
592a252b | 11895 | { PREFIX_TABLE (PREFIX_VEX_0F73_REG_2) }, |
876d4bfa L |
11896 | }, |
11897 | { | |
592a252b | 11898 | /* MOD_VEX_0F73_REG_3 */ |
592d1631 | 11899 | { Bad_Opcode }, |
592a252b | 11900 | { PREFIX_TABLE (PREFIX_VEX_0F73_REG_3) }, |
475a2301 L |
11901 | }, |
11902 | { | |
592a252b | 11903 | /* MOD_VEX_0F73_REG_6 */ |
592d1631 | 11904 | { Bad_Opcode }, |
592a252b | 11905 | { PREFIX_TABLE (PREFIX_VEX_0F73_REG_6) }, |
876d4bfa L |
11906 | }, |
11907 | { | |
592a252b | 11908 | /* MOD_VEX_0F73_REG_7 */ |
592d1631 | 11909 | { Bad_Opcode }, |
592a252b | 11910 | { PREFIX_TABLE (PREFIX_VEX_0F73_REG_7) }, |
876d4bfa | 11911 | }, |
ab4e4ed5 AF |
11912 | { |
11913 | /* MOD_VEX_W_0_0F91_P_0_LEN_0 */ | |
11914 | { "kmovw", { Ew, MaskG }, 0 }, | |
11915 | { Bad_Opcode }, | |
11916 | }, | |
11917 | { | |
11918 | /* MOD_VEX_W_0_0F91_P_0_LEN_0 */ | |
11919 | { "kmovq", { Eq, MaskG }, 0 }, | |
11920 | { Bad_Opcode }, | |
11921 | }, | |
11922 | { | |
11923 | /* MOD_VEX_W_0_0F91_P_2_LEN_0 */ | |
11924 | { "kmovb", { Eb, MaskG }, 0 }, | |
11925 | { Bad_Opcode }, | |
11926 | }, | |
11927 | { | |
11928 | /* MOD_VEX_W_0_0F91_P_2_LEN_0 */ | |
11929 | { "kmovd", { Ed, MaskG }, 0 }, | |
11930 | { Bad_Opcode }, | |
11931 | }, | |
11932 | { | |
11933 | /* MOD_VEX_W_0_0F92_P_0_LEN_0 */ | |
11934 | { Bad_Opcode }, | |
11935 | { "kmovw", { MaskG, Rdq }, 0 }, | |
11936 | }, | |
11937 | { | |
11938 | /* MOD_VEX_W_0_0F92_P_2_LEN_0 */ | |
11939 | { Bad_Opcode }, | |
11940 | { "kmovb", { MaskG, Rdq }, 0 }, | |
11941 | }, | |
11942 | { | |
11943 | /* MOD_VEX_W_0_0F92_P_3_LEN_0 */ | |
11944 | { Bad_Opcode }, | |
11945 | { "kmovd", { MaskG, Rdq }, 0 }, | |
11946 | }, | |
11947 | { | |
11948 | /* MOD_VEX_W_1_0F92_P_3_LEN_0 */ | |
11949 | { Bad_Opcode }, | |
11950 | { "kmovq", { MaskG, Rdq }, 0 }, | |
11951 | }, | |
11952 | { | |
11953 | /* MOD_VEX_W_0_0F93_P_0_LEN_0 */ | |
11954 | { Bad_Opcode }, | |
11955 | { "kmovw", { Gdq, MaskR }, 0 }, | |
11956 | }, | |
11957 | { | |
11958 | /* MOD_VEX_W_0_0F93_P_2_LEN_0 */ | |
11959 | { Bad_Opcode }, | |
11960 | { "kmovb", { Gdq, MaskR }, 0 }, | |
11961 | }, | |
11962 | { | |
11963 | /* MOD_VEX_W_0_0F93_P_3_LEN_0 */ | |
11964 | { Bad_Opcode }, | |
11965 | { "kmovd", { Gdq, MaskR }, 0 }, | |
11966 | }, | |
11967 | { | |
11968 | /* MOD_VEX_W_1_0F93_P_3_LEN_0 */ | |
11969 | { Bad_Opcode }, | |
11970 | { "kmovq", { Gdq, MaskR }, 0 }, | |
11971 | }, | |
11972 | { | |
11973 | /* MOD_VEX_W_0_0F98_P_0_LEN_0 */ | |
11974 | { Bad_Opcode }, | |
11975 | { "kortestw", { MaskG, MaskR }, 0 }, | |
11976 | }, | |
11977 | { | |
11978 | /* MOD_VEX_W_1_0F98_P_0_LEN_0 */ | |
11979 | { Bad_Opcode }, | |
11980 | { "kortestq", { MaskG, MaskR }, 0 }, | |
11981 | }, | |
11982 | { | |
11983 | /* MOD_VEX_W_0_0F98_P_2_LEN_0 */ | |
11984 | { Bad_Opcode }, | |
11985 | { "kortestb", { MaskG, MaskR }, 0 }, | |
11986 | }, | |
11987 | { | |
11988 | /* MOD_VEX_W_1_0F98_P_2_LEN_0 */ | |
11989 | { Bad_Opcode }, | |
11990 | { "kortestd", { MaskG, MaskR }, 0 }, | |
11991 | }, | |
11992 | { | |
11993 | /* MOD_VEX_W_0_0F99_P_0_LEN_0 */ | |
11994 | { Bad_Opcode }, | |
11995 | { "ktestw", { MaskG, MaskR }, 0 }, | |
11996 | }, | |
11997 | { | |
11998 | /* MOD_VEX_W_1_0F99_P_0_LEN_0 */ | |
11999 | { Bad_Opcode }, | |
12000 | { "ktestq", { MaskG, MaskR }, 0 }, | |
12001 | }, | |
12002 | { | |
12003 | /* MOD_VEX_W_0_0F99_P_2_LEN_0 */ | |
12004 | { Bad_Opcode }, | |
12005 | { "ktestb", { MaskG, MaskR }, 0 }, | |
12006 | }, | |
12007 | { | |
12008 | /* MOD_VEX_W_1_0F99_P_2_LEN_0 */ | |
12009 | { Bad_Opcode }, | |
12010 | { "ktestd", { MaskG, MaskR }, 0 }, | |
12011 | }, | |
876d4bfa | 12012 | { |
592a252b L |
12013 | /* MOD_VEX_0FAE_REG_2 */ |
12014 | { VEX_LEN_TABLE (VEX_LEN_0FAE_R_2_M_0) }, | |
876d4bfa | 12015 | }, |
bbedc832 | 12016 | { |
592a252b L |
12017 | /* MOD_VEX_0FAE_REG_3 */ |
12018 | { VEX_LEN_TABLE (VEX_LEN_0FAE_R_3_M_0) }, | |
bbedc832 | 12019 | }, |
144c41d9 | 12020 | { |
592a252b | 12021 | /* MOD_VEX_0FD7_PREFIX_2 */ |
592d1631 | 12022 | { Bad_Opcode }, |
6c30d220 | 12023 | { VEX_W_TABLE (VEX_W_0FD7_P_2_M_1) }, |
144c41d9 | 12024 | }, |
1afd85e3 | 12025 | { |
592a252b L |
12026 | /* MOD_VEX_0FE7_PREFIX_2 */ |
12027 | { VEX_W_TABLE (VEX_W_0FE7_P_2_M_0) }, | |
1afd85e3 L |
12028 | }, |
12029 | { | |
592a252b L |
12030 | /* MOD_VEX_0FF0_PREFIX_3 */ |
12031 | { VEX_W_TABLE (VEX_W_0FF0_P_3_M_0) }, | |
92fddf8e | 12032 | }, |
75c135a8 | 12033 | { |
592a252b L |
12034 | /* MOD_VEX_0F381A_PREFIX_2 */ |
12035 | { VEX_LEN_TABLE (VEX_LEN_0F381A_P_2_M_0) }, | |
75c135a8 | 12036 | }, |
1afd85e3 | 12037 | { |
592a252b | 12038 | /* MOD_VEX_0F382A_PREFIX_2 */ |
6c30d220 | 12039 | { VEX_W_TABLE (VEX_W_0F382A_P_2_M_0) }, |
1afd85e3 | 12040 | }, |
75c135a8 | 12041 | { |
592a252b L |
12042 | /* MOD_VEX_0F382C_PREFIX_2 */ |
12043 | { VEX_W_TABLE (VEX_W_0F382C_P_2_M_0) }, | |
75c135a8 | 12044 | }, |
1afd85e3 | 12045 | { |
592a252b L |
12046 | /* MOD_VEX_0F382D_PREFIX_2 */ |
12047 | { VEX_W_TABLE (VEX_W_0F382D_P_2_M_0) }, | |
1afd85e3 L |
12048 | }, |
12049 | { | |
592a252b L |
12050 | /* MOD_VEX_0F382E_PREFIX_2 */ |
12051 | { VEX_W_TABLE (VEX_W_0F382E_P_2_M_0) }, | |
1afd85e3 L |
12052 | }, |
12053 | { | |
592a252b L |
12054 | /* MOD_VEX_0F382F_PREFIX_2 */ |
12055 | { VEX_W_TABLE (VEX_W_0F382F_P_2_M_0) }, | |
1afd85e3 | 12056 | }, |
6c30d220 L |
12057 | { |
12058 | /* MOD_VEX_0F385A_PREFIX_2 */ | |
12059 | { VEX_LEN_TABLE (VEX_LEN_0F385A_P_2_M_0) }, | |
12060 | }, | |
12061 | { | |
12062 | /* MOD_VEX_0F388C_PREFIX_2 */ | |
bf890a93 | 12063 | { "vpmaskmov%LW", { XM, Vex, Mx }, 0 }, |
6c30d220 L |
12064 | }, |
12065 | { | |
12066 | /* MOD_VEX_0F388E_PREFIX_2 */ | |
bf890a93 | 12067 | { "vpmaskmov%LW", { Mx, Vex, XM }, 0 }, |
6c30d220 | 12068 | }, |
ab4e4ed5 AF |
12069 | { |
12070 | /* MOD_VEX_W_0_0F3A30_P_2_LEN_0 */ | |
12071 | { Bad_Opcode }, | |
12072 | { "kshiftrb", { MaskG, MaskR, Ib }, 0 }, | |
12073 | }, | |
12074 | { | |
12075 | /* MOD_VEX_W_1_0F3A30_P_2_LEN_0 */ | |
12076 | { Bad_Opcode }, | |
12077 | { "kshiftrw", { MaskG, MaskR, Ib }, 0 }, | |
12078 | }, | |
12079 | { | |
12080 | /* MOD_VEX_W_0_0F3A31_P_2_LEN_0 */ | |
12081 | { Bad_Opcode }, | |
12082 | { "kshiftrd", { MaskG, MaskR, Ib }, 0 }, | |
12083 | }, | |
12084 | { | |
12085 | /* MOD_VEX_W_1_0F3A31_P_2_LEN_0 */ | |
12086 | { Bad_Opcode }, | |
12087 | { "kshiftrq", { MaskG, MaskR, Ib }, 0 }, | |
12088 | }, | |
12089 | { | |
12090 | /* MOD_VEX_W_0_0F3A32_P_2_LEN_0 */ | |
12091 | { Bad_Opcode }, | |
12092 | { "kshiftlb", { MaskG, MaskR, Ib }, 0 }, | |
12093 | }, | |
12094 | { | |
12095 | /* MOD_VEX_W_1_0F3A32_P_2_LEN_0 */ | |
12096 | { Bad_Opcode }, | |
12097 | { "kshiftlw", { MaskG, MaskR, Ib }, 0 }, | |
12098 | }, | |
12099 | { | |
12100 | /* MOD_VEX_W_0_0F3A33_P_2_LEN_0 */ | |
12101 | { Bad_Opcode }, | |
12102 | { "kshiftld", { MaskG, MaskR, Ib }, 0 }, | |
12103 | }, | |
12104 | { | |
12105 | /* MOD_VEX_W_1_0F3A33_P_2_LEN_0 */ | |
12106 | { Bad_Opcode }, | |
12107 | { "kshiftlq", { MaskG, MaskR, Ib }, 0 }, | |
12108 | }, | |
43234a1e L |
12109 | #define NEED_MOD_TABLE |
12110 | #include "i386-dis-evex.h" | |
12111 | #undef NEED_MOD_TABLE | |
b844680a L |
12112 | }; |
12113 | ||
1ceb70f8 | 12114 | static const struct dis386 rm_table[][8] = { |
42164a71 L |
12115 | { |
12116 | /* RM_C6_REG_7 */ | |
bf890a93 | 12117 | { "xabort", { Skip_MODRM, Ib }, 0 }, |
42164a71 L |
12118 | }, |
12119 | { | |
12120 | /* RM_C7_REG_7 */ | |
bf890a93 | 12121 | { "xbeginT", { Skip_MODRM, Jv }, 0 }, |
42164a71 | 12122 | }, |
b844680a | 12123 | { |
1ceb70f8 | 12124 | /* RM_0F01_REG_0 */ |
592d1631 | 12125 | { Bad_Opcode }, |
bf890a93 IT |
12126 | { "vmcall", { Skip_MODRM }, 0 }, |
12127 | { "vmlaunch", { Skip_MODRM }, 0 }, | |
12128 | { "vmresume", { Skip_MODRM }, 0 }, | |
12129 | { "vmxoff", { Skip_MODRM }, 0 }, | |
b844680a L |
12130 | }, |
12131 | { | |
1ceb70f8 | 12132 | /* RM_0F01_REG_1 */ |
bf890a93 IT |
12133 | { "monitor", { { OP_Monitor, 0 } }, 0 }, |
12134 | { "mwait", { { OP_Mwait, 0 } }, 0 }, | |
12135 | { "clac", { Skip_MODRM }, 0 }, | |
12136 | { "stac", { Skip_MODRM }, 0 }, | |
2cf200a4 IT |
12137 | { Bad_Opcode }, |
12138 | { Bad_Opcode }, | |
12139 | { Bad_Opcode }, | |
bf890a93 | 12140 | { "encls", { Skip_MODRM }, 0 }, |
b844680a | 12141 | }, |
475a2301 L |
12142 | { |
12143 | /* RM_0F01_REG_2 */ | |
bf890a93 IT |
12144 | { "xgetbv", { Skip_MODRM }, 0 }, |
12145 | { "xsetbv", { Skip_MODRM }, 0 }, | |
8729a6f6 L |
12146 | { Bad_Opcode }, |
12147 | { Bad_Opcode }, | |
bf890a93 IT |
12148 | { "vmfunc", { Skip_MODRM }, 0 }, |
12149 | { "xend", { Skip_MODRM }, 0 }, | |
12150 | { "xtest", { Skip_MODRM }, 0 }, | |
12151 | { "enclu", { Skip_MODRM }, 0 }, | |
475a2301 | 12152 | }, |
b844680a | 12153 | { |
1ceb70f8 | 12154 | /* RM_0F01_REG_3 */ |
bf890a93 IT |
12155 | { "vmrun", { Skip_MODRM }, 0 }, |
12156 | { "vmmcall", { Skip_MODRM }, 0 }, | |
12157 | { "vmload", { Skip_MODRM }, 0 }, | |
12158 | { "vmsave", { Skip_MODRM }, 0 }, | |
12159 | { "stgi", { Skip_MODRM }, 0 }, | |
12160 | { "clgi", { Skip_MODRM }, 0 }, | |
12161 | { "skinit", { Skip_MODRM }, 0 }, | |
12162 | { "invlpga", { Skip_MODRM }, 0 }, | |
4e7d34a6 | 12163 | }, |
8eab4136 L |
12164 | { |
12165 | /* RM_0F01_REG_5 */ | |
12166 | { Bad_Opcode }, | |
12167 | { Bad_Opcode }, | |
12168 | { Bad_Opcode }, | |
12169 | { Bad_Opcode }, | |
12170 | { Bad_Opcode }, | |
12171 | { Bad_Opcode }, | |
12172 | { "rdpkru", { Skip_MODRM }, 0 }, | |
12173 | { "wrpkru", { Skip_MODRM }, 0 }, | |
12174 | }, | |
4e7d34a6 | 12175 | { |
1ceb70f8 | 12176 | /* RM_0F01_REG_7 */ |
bf890a93 IT |
12177 | { "swapgs", { Skip_MODRM }, 0 }, |
12178 | { "rdtscp", { Skip_MODRM }, 0 }, | |
9916071f AP |
12179 | { "monitorx", { { OP_Monitor, 0 } }, 0 }, |
12180 | { "mwaitx", { { OP_Mwaitx, 0 } }, 0 }, | |
bf890a93 | 12181 | { "clzero", { Skip_MODRM }, 0 }, |
b844680a L |
12182 | }, |
12183 | { | |
1ceb70f8 | 12184 | /* RM_0FAE_REG_5 */ |
bf890a93 | 12185 | { "lfence", { Skip_MODRM }, 0 }, |
b844680a L |
12186 | }, |
12187 | { | |
1ceb70f8 | 12188 | /* RM_0FAE_REG_6 */ |
bf890a93 | 12189 | { "mfence", { Skip_MODRM }, 0 }, |
b844680a | 12190 | }, |
bbedc832 | 12191 | { |
1ceb70f8 | 12192 | /* RM_0FAE_REG_7 */ |
b5cefcca L |
12193 | { "sfence", { Skip_MODRM }, 0 }, |
12194 | ||
144c41d9 | 12195 | }, |
b844680a L |
12196 | }; |
12197 | ||
c608c12e AM |
12198 | #define INTERNAL_DISASSEMBLER_ERROR _("<internal disassembler error>") |
12199 | ||
f16cd0d5 L |
12200 | /* We use the high bit to indicate different name for the same |
12201 | prefix. */ | |
f16cd0d5 | 12202 | #define REP_PREFIX (0xf3 | 0x100) |
42164a71 L |
12203 | #define XACQUIRE_PREFIX (0xf2 | 0x200) |
12204 | #define XRELEASE_PREFIX (0xf3 | 0x400) | |
7e8b059b | 12205 | #define BND_PREFIX (0xf2 | 0x400) |
f16cd0d5 L |
12206 | |
12207 | static int | |
26ca5450 | 12208 | ckprefix (void) |
252b5132 | 12209 | { |
f16cd0d5 | 12210 | int newrex, i, length; |
52b15da3 | 12211 | rex = 0; |
c0f3af97 | 12212 | rex_ignored = 0; |
252b5132 | 12213 | prefixes = 0; |
7d421014 | 12214 | used_prefixes = 0; |
52b15da3 | 12215 | rex_used = 0; |
f16cd0d5 L |
12216 | last_lock_prefix = -1; |
12217 | last_repz_prefix = -1; | |
12218 | last_repnz_prefix = -1; | |
12219 | last_data_prefix = -1; | |
12220 | last_addr_prefix = -1; | |
12221 | last_rex_prefix = -1; | |
12222 | last_seg_prefix = -1; | |
d9949a36 | 12223 | fwait_prefix = -1; |
285ca992 | 12224 | active_seg_prefix = 0; |
f310f33d L |
12225 | for (i = 0; i < (int) ARRAY_SIZE (all_prefixes); i++) |
12226 | all_prefixes[i] = 0; | |
12227 | i = 0; | |
f16cd0d5 L |
12228 | length = 0; |
12229 | /* The maximum instruction length is 15bytes. */ | |
12230 | while (length < MAX_CODE_LENGTH - 1) | |
252b5132 RH |
12231 | { |
12232 | FETCH_DATA (the_info, codep + 1); | |
52b15da3 | 12233 | newrex = 0; |
252b5132 RH |
12234 | switch (*codep) |
12235 | { | |
52b15da3 JH |
12236 | /* REX prefixes family. */ |
12237 | case 0x40: | |
12238 | case 0x41: | |
12239 | case 0x42: | |
12240 | case 0x43: | |
12241 | case 0x44: | |
12242 | case 0x45: | |
12243 | case 0x46: | |
12244 | case 0x47: | |
12245 | case 0x48: | |
12246 | case 0x49: | |
12247 | case 0x4a: | |
12248 | case 0x4b: | |
12249 | case 0x4c: | |
12250 | case 0x4d: | |
12251 | case 0x4e: | |
12252 | case 0x4f: | |
f16cd0d5 L |
12253 | if (address_mode == mode_64bit) |
12254 | newrex = *codep; | |
12255 | else | |
12256 | return 1; | |
12257 | last_rex_prefix = i; | |
52b15da3 | 12258 | break; |
252b5132 RH |
12259 | case 0xf3: |
12260 | prefixes |= PREFIX_REPZ; | |
f16cd0d5 | 12261 | last_repz_prefix = i; |
252b5132 RH |
12262 | break; |
12263 | case 0xf2: | |
12264 | prefixes |= PREFIX_REPNZ; | |
f16cd0d5 | 12265 | last_repnz_prefix = i; |
252b5132 RH |
12266 | break; |
12267 | case 0xf0: | |
12268 | prefixes |= PREFIX_LOCK; | |
f16cd0d5 | 12269 | last_lock_prefix = i; |
252b5132 RH |
12270 | break; |
12271 | case 0x2e: | |
12272 | prefixes |= PREFIX_CS; | |
f16cd0d5 | 12273 | last_seg_prefix = i; |
285ca992 | 12274 | active_seg_prefix = PREFIX_CS; |
252b5132 RH |
12275 | break; |
12276 | case 0x36: | |
12277 | prefixes |= PREFIX_SS; | |
f16cd0d5 | 12278 | last_seg_prefix = i; |
285ca992 | 12279 | active_seg_prefix = PREFIX_SS; |
252b5132 RH |
12280 | break; |
12281 | case 0x3e: | |
12282 | prefixes |= PREFIX_DS; | |
f16cd0d5 | 12283 | last_seg_prefix = i; |
285ca992 | 12284 | active_seg_prefix = PREFIX_DS; |
252b5132 RH |
12285 | break; |
12286 | case 0x26: | |
12287 | prefixes |= PREFIX_ES; | |
f16cd0d5 | 12288 | last_seg_prefix = i; |
285ca992 | 12289 | active_seg_prefix = PREFIX_ES; |
252b5132 RH |
12290 | break; |
12291 | case 0x64: | |
12292 | prefixes |= PREFIX_FS; | |
f16cd0d5 | 12293 | last_seg_prefix = i; |
285ca992 | 12294 | active_seg_prefix = PREFIX_FS; |
252b5132 RH |
12295 | break; |
12296 | case 0x65: | |
12297 | prefixes |= PREFIX_GS; | |
f16cd0d5 | 12298 | last_seg_prefix = i; |
285ca992 | 12299 | active_seg_prefix = PREFIX_GS; |
252b5132 RH |
12300 | break; |
12301 | case 0x66: | |
12302 | prefixes |= PREFIX_DATA; | |
f16cd0d5 | 12303 | last_data_prefix = i; |
252b5132 RH |
12304 | break; |
12305 | case 0x67: | |
12306 | prefixes |= PREFIX_ADDR; | |
f16cd0d5 | 12307 | last_addr_prefix = i; |
252b5132 | 12308 | break; |
5076851f | 12309 | case FWAIT_OPCODE: |
252b5132 RH |
12310 | /* fwait is really an instruction. If there are prefixes |
12311 | before the fwait, they belong to the fwait, *not* to the | |
12312 | following instruction. */ | |
d9949a36 | 12313 | fwait_prefix = i; |
3e7d61b2 | 12314 | if (prefixes || rex) |
252b5132 RH |
12315 | { |
12316 | prefixes |= PREFIX_FWAIT; | |
12317 | codep++; | |
6c067bbb RM |
12318 | /* This ensures that the previous REX prefixes are noticed |
12319 | as unused prefixes, as in the return case below. */ | |
12320 | rex_used = rex; | |
f16cd0d5 | 12321 | return 1; |
252b5132 RH |
12322 | } |
12323 | prefixes = PREFIX_FWAIT; | |
12324 | break; | |
12325 | default: | |
f16cd0d5 | 12326 | return 1; |
252b5132 | 12327 | } |
52b15da3 JH |
12328 | /* Rex is ignored when followed by another prefix. */ |
12329 | if (rex) | |
12330 | { | |
3e7d61b2 | 12331 | rex_used = rex; |
f16cd0d5 | 12332 | return 1; |
52b15da3 | 12333 | } |
f16cd0d5 L |
12334 | if (*codep != FWAIT_OPCODE) |
12335 | all_prefixes[i++] = *codep; | |
52b15da3 | 12336 | rex = newrex; |
252b5132 | 12337 | codep++; |
f16cd0d5 L |
12338 | length++; |
12339 | } | |
12340 | return 0; | |
12341 | } | |
12342 | ||
7d421014 ILT |
12343 | /* Return the name of the prefix byte PREF, or NULL if PREF is not a |
12344 | prefix byte. */ | |
12345 | ||
12346 | static const char * | |
26ca5450 | 12347 | prefix_name (int pref, int sizeflag) |
7d421014 | 12348 | { |
0003779b L |
12349 | static const char *rexes [16] = |
12350 | { | |
12351 | "rex", /* 0x40 */ | |
12352 | "rex.B", /* 0x41 */ | |
12353 | "rex.X", /* 0x42 */ | |
12354 | "rex.XB", /* 0x43 */ | |
12355 | "rex.R", /* 0x44 */ | |
12356 | "rex.RB", /* 0x45 */ | |
12357 | "rex.RX", /* 0x46 */ | |
12358 | "rex.RXB", /* 0x47 */ | |
12359 | "rex.W", /* 0x48 */ | |
12360 | "rex.WB", /* 0x49 */ | |
12361 | "rex.WX", /* 0x4a */ | |
12362 | "rex.WXB", /* 0x4b */ | |
12363 | "rex.WR", /* 0x4c */ | |
12364 | "rex.WRB", /* 0x4d */ | |
12365 | "rex.WRX", /* 0x4e */ | |
12366 | "rex.WRXB", /* 0x4f */ | |
12367 | }; | |
12368 | ||
7d421014 ILT |
12369 | switch (pref) |
12370 | { | |
52b15da3 JH |
12371 | /* REX prefixes family. */ |
12372 | case 0x40: | |
52b15da3 | 12373 | case 0x41: |
52b15da3 | 12374 | case 0x42: |
52b15da3 | 12375 | case 0x43: |
52b15da3 | 12376 | case 0x44: |
52b15da3 | 12377 | case 0x45: |
52b15da3 | 12378 | case 0x46: |
52b15da3 | 12379 | case 0x47: |
52b15da3 | 12380 | case 0x48: |
52b15da3 | 12381 | case 0x49: |
52b15da3 | 12382 | case 0x4a: |
52b15da3 | 12383 | case 0x4b: |
52b15da3 | 12384 | case 0x4c: |
52b15da3 | 12385 | case 0x4d: |
52b15da3 | 12386 | case 0x4e: |
52b15da3 | 12387 | case 0x4f: |
0003779b | 12388 | return rexes [pref - 0x40]; |
7d421014 ILT |
12389 | case 0xf3: |
12390 | return "repz"; | |
12391 | case 0xf2: | |
12392 | return "repnz"; | |
12393 | case 0xf0: | |
12394 | return "lock"; | |
12395 | case 0x2e: | |
12396 | return "cs"; | |
12397 | case 0x36: | |
12398 | return "ss"; | |
12399 | case 0x3e: | |
12400 | return "ds"; | |
12401 | case 0x26: | |
12402 | return "es"; | |
12403 | case 0x64: | |
12404 | return "fs"; | |
12405 | case 0x65: | |
12406 | return "gs"; | |
12407 | case 0x66: | |
12408 | return (sizeflag & DFLAG) ? "data16" : "data32"; | |
12409 | case 0x67: | |
cb712a9e | 12410 | if (address_mode == mode_64bit) |
db6eb5be | 12411 | return (sizeflag & AFLAG) ? "addr32" : "addr64"; |
c1a64871 | 12412 | else |
2888cb7a | 12413 | return (sizeflag & AFLAG) ? "addr16" : "addr32"; |
7d421014 ILT |
12414 | case FWAIT_OPCODE: |
12415 | return "fwait"; | |
f16cd0d5 L |
12416 | case REP_PREFIX: |
12417 | return "rep"; | |
42164a71 L |
12418 | case XACQUIRE_PREFIX: |
12419 | return "xacquire"; | |
12420 | case XRELEASE_PREFIX: | |
12421 | return "xrelease"; | |
7e8b059b L |
12422 | case BND_PREFIX: |
12423 | return "bnd"; | |
7d421014 ILT |
12424 | default: |
12425 | return NULL; | |
12426 | } | |
12427 | } | |
12428 | ||
ce518a5f L |
12429 | static char op_out[MAX_OPERANDS][100]; |
12430 | static int op_ad, op_index[MAX_OPERANDS]; | |
1d9f512f | 12431 | static int two_source_ops; |
ce518a5f L |
12432 | static bfd_vma op_address[MAX_OPERANDS]; |
12433 | static bfd_vma op_riprel[MAX_OPERANDS]; | |
52b15da3 | 12434 | static bfd_vma start_pc; |
ce518a5f | 12435 | |
252b5132 RH |
12436 | /* |
12437 | * On the 386's of 1988, the maximum length of an instruction is 15 bytes. | |
12438 | * (see topic "Redundant prefixes" in the "Differences from 8086" | |
12439 | * section of the "Virtual 8086 Mode" chapter.) | |
12440 | * 'pc' should be the address of this instruction, it will | |
12441 | * be used to print the target address if this is a relative jump or call | |
12442 | * The function returns the length of this instruction in bytes. | |
12443 | */ | |
12444 | ||
252b5132 | 12445 | static char intel_syntax; |
9d141669 | 12446 | static char intel_mnemonic = !SYSV386_COMPAT; |
252b5132 RH |
12447 | static char open_char; |
12448 | static char close_char; | |
12449 | static char separator_char; | |
12450 | static char scale_char; | |
12451 | ||
5db04b09 L |
12452 | enum x86_64_isa |
12453 | { | |
12454 | amd64 = 0, | |
12455 | intel64 | |
12456 | }; | |
12457 | ||
12458 | static enum x86_64_isa isa64; | |
12459 | ||
e396998b AM |
12460 | /* Here for backwards compatibility. When gdb stops using |
12461 | print_insn_i386_att and print_insn_i386_intel these functions can | |
12462 | disappear, and print_insn_i386 be merged into print_insn. */ | |
252b5132 | 12463 | int |
26ca5450 | 12464 | print_insn_i386_att (bfd_vma pc, disassemble_info *info) |
252b5132 RH |
12465 | { |
12466 | intel_syntax = 0; | |
e396998b AM |
12467 | |
12468 | return print_insn (pc, info); | |
252b5132 RH |
12469 | } |
12470 | ||
12471 | int | |
26ca5450 | 12472 | print_insn_i386_intel (bfd_vma pc, disassemble_info *info) |
252b5132 RH |
12473 | { |
12474 | intel_syntax = 1; | |
e396998b AM |
12475 | |
12476 | return print_insn (pc, info); | |
252b5132 RH |
12477 | } |
12478 | ||
e396998b | 12479 | int |
26ca5450 | 12480 | print_insn_i386 (bfd_vma pc, disassemble_info *info) |
e396998b AM |
12481 | { |
12482 | intel_syntax = -1; | |
12483 | ||
12484 | return print_insn (pc, info); | |
12485 | } | |
12486 | ||
f59a29b9 L |
12487 | void |
12488 | print_i386_disassembler_options (FILE *stream) | |
12489 | { | |
12490 | fprintf (stream, _("\n\ | |
12491 | The following i386/x86-64 specific disassembler options are supported for use\n\ | |
12492 | with the -M switch (multiple options should be separated by commas):\n")); | |
12493 | ||
12494 | fprintf (stream, _(" x86-64 Disassemble in 64bit mode\n")); | |
12495 | fprintf (stream, _(" i386 Disassemble in 32bit mode\n")); | |
12496 | fprintf (stream, _(" i8086 Disassemble in 16bit mode\n")); | |
12497 | fprintf (stream, _(" att Display instruction in AT&T syntax\n")); | |
12498 | fprintf (stream, _(" intel Display instruction in Intel syntax\n")); | |
9d141669 L |
12499 | fprintf (stream, _(" att-mnemonic\n" |
12500 | " Display instruction in AT&T mnemonic\n")); | |
12501 | fprintf (stream, _(" intel-mnemonic\n" | |
12502 | " Display instruction in Intel mnemonic\n")); | |
f59a29b9 L |
12503 | fprintf (stream, _(" addr64 Assume 64bit address size\n")); |
12504 | fprintf (stream, _(" addr32 Assume 32bit address size\n")); | |
12505 | fprintf (stream, _(" addr16 Assume 16bit address size\n")); | |
12506 | fprintf (stream, _(" data32 Assume 32bit data size\n")); | |
12507 | fprintf (stream, _(" data16 Assume 16bit data size\n")); | |
12508 | fprintf (stream, _(" suffix Always display instruction suffix in AT&T syntax\n")); | |
5db04b09 L |
12509 | fprintf (stream, _(" amd64 Display instruction in AMD64 ISA\n")); |
12510 | fprintf (stream, _(" intel64 Display instruction in Intel64 ISA\n")); | |
f59a29b9 L |
12511 | } |
12512 | ||
592d1631 | 12513 | /* Bad opcode. */ |
bf890a93 | 12514 | static const struct dis386 bad_opcode = { "(bad)", { XX }, 0 }; |
592d1631 | 12515 | |
b844680a L |
12516 | /* Get a pointer to struct dis386 with a valid name. */ |
12517 | ||
12518 | static const struct dis386 * | |
8bb15339 | 12519 | get_valid_dis386 (const struct dis386 *dp, disassemble_info *info) |
b844680a | 12520 | { |
91d6fa6a | 12521 | int vindex, vex_table_index; |
b844680a L |
12522 | |
12523 | if (dp->name != NULL) | |
12524 | return dp; | |
12525 | ||
12526 | switch (dp->op[0].bytemode) | |
12527 | { | |
1ceb70f8 L |
12528 | case USE_REG_TABLE: |
12529 | dp = ®_table[dp->op[1].bytemode][modrm.reg]; | |
12530 | break; | |
12531 | ||
12532 | case USE_MOD_TABLE: | |
91d6fa6a NC |
12533 | vindex = modrm.mod == 0x3 ? 1 : 0; |
12534 | dp = &mod_table[dp->op[1].bytemode][vindex]; | |
1ceb70f8 L |
12535 | break; |
12536 | ||
12537 | case USE_RM_TABLE: | |
12538 | dp = &rm_table[dp->op[1].bytemode][modrm.rm]; | |
b844680a L |
12539 | break; |
12540 | ||
4e7d34a6 | 12541 | case USE_PREFIX_TABLE: |
c0f3af97 | 12542 | if (need_vex) |
b844680a | 12543 | { |
c0f3af97 L |
12544 | /* The prefix in VEX is implicit. */ |
12545 | switch (vex.prefix) | |
12546 | { | |
12547 | case 0: | |
91d6fa6a | 12548 | vindex = 0; |
c0f3af97 L |
12549 | break; |
12550 | case REPE_PREFIX_OPCODE: | |
91d6fa6a | 12551 | vindex = 1; |
c0f3af97 L |
12552 | break; |
12553 | case DATA_PREFIX_OPCODE: | |
91d6fa6a | 12554 | vindex = 2; |
c0f3af97 L |
12555 | break; |
12556 | case REPNE_PREFIX_OPCODE: | |
91d6fa6a | 12557 | vindex = 3; |
c0f3af97 L |
12558 | break; |
12559 | default: | |
12560 | abort (); | |
12561 | break; | |
12562 | } | |
b844680a | 12563 | } |
7bb15c6f | 12564 | else |
b844680a | 12565 | { |
285ca992 L |
12566 | int last_prefix = -1; |
12567 | int prefix = 0; | |
91d6fa6a | 12568 | vindex = 0; |
285ca992 L |
12569 | /* We check PREFIX_REPNZ and PREFIX_REPZ before PREFIX_DATA. |
12570 | When there are multiple PREFIX_REPNZ and PREFIX_REPZ, the | |
12571 | last one wins. */ | |
12572 | if ((prefixes & (PREFIX_REPZ | PREFIX_REPNZ)) != 0) | |
b844680a | 12573 | { |
285ca992 | 12574 | if (last_repz_prefix > last_repnz_prefix) |
c0f3af97 | 12575 | { |
285ca992 L |
12576 | vindex = 1; |
12577 | prefix = PREFIX_REPZ; | |
12578 | last_prefix = last_repz_prefix; | |
c0f3af97 L |
12579 | } |
12580 | else | |
b844680a | 12581 | { |
285ca992 L |
12582 | vindex = 3; |
12583 | prefix = PREFIX_REPNZ; | |
12584 | last_prefix = last_repnz_prefix; | |
b844680a | 12585 | } |
285ca992 | 12586 | |
507bd325 L |
12587 | /* Check if prefix should be ignored. */ |
12588 | if ((((prefix_table[dp->op[1].bytemode][vindex].prefix_requirement | |
12589 | & PREFIX_IGNORED) >> PREFIX_IGNORED_SHIFT) | |
12590 | & prefix) != 0) | |
285ca992 L |
12591 | vindex = 0; |
12592 | } | |
12593 | ||
12594 | if (vindex == 0 && (prefixes & PREFIX_DATA) != 0) | |
12595 | { | |
12596 | vindex = 2; | |
12597 | prefix = PREFIX_DATA; | |
12598 | last_prefix = last_data_prefix; | |
12599 | } | |
12600 | ||
12601 | if (vindex != 0) | |
12602 | { | |
12603 | used_prefixes |= prefix; | |
12604 | all_prefixes[last_prefix] = 0; | |
b844680a L |
12605 | } |
12606 | } | |
91d6fa6a | 12607 | dp = &prefix_table[dp->op[1].bytemode][vindex]; |
b844680a L |
12608 | break; |
12609 | ||
4e7d34a6 | 12610 | case USE_X86_64_TABLE: |
91d6fa6a NC |
12611 | vindex = address_mode == mode_64bit ? 1 : 0; |
12612 | dp = &x86_64_table[dp->op[1].bytemode][vindex]; | |
b844680a L |
12613 | break; |
12614 | ||
4e7d34a6 | 12615 | case USE_3BYTE_TABLE: |
8bb15339 | 12616 | FETCH_DATA (info, codep + 2); |
91d6fa6a NC |
12617 | vindex = *codep++; |
12618 | dp = &three_byte_table[dp->op[1].bytemode][vindex]; | |
285ca992 | 12619 | end_codep = codep; |
8bb15339 L |
12620 | modrm.mod = (*codep >> 6) & 3; |
12621 | modrm.reg = (*codep >> 3) & 7; | |
12622 | modrm.rm = *codep & 7; | |
12623 | break; | |
12624 | ||
c0f3af97 L |
12625 | case USE_VEX_LEN_TABLE: |
12626 | if (!need_vex) | |
12627 | abort (); | |
12628 | ||
12629 | switch (vex.length) | |
12630 | { | |
12631 | case 128: | |
91d6fa6a | 12632 | vindex = 0; |
c0f3af97 L |
12633 | break; |
12634 | case 256: | |
91d6fa6a | 12635 | vindex = 1; |
c0f3af97 L |
12636 | break; |
12637 | default: | |
12638 | abort (); | |
12639 | break; | |
12640 | } | |
12641 | ||
91d6fa6a | 12642 | dp = &vex_len_table[dp->op[1].bytemode][vindex]; |
c0f3af97 L |
12643 | break; |
12644 | ||
f88c9eb0 SP |
12645 | case USE_XOP_8F_TABLE: |
12646 | FETCH_DATA (info, codep + 3); | |
12647 | /* All bits in the REX prefix are ignored. */ | |
12648 | rex_ignored = rex; | |
12649 | rex = ~(*codep >> 5) & 0x7; | |
12650 | ||
12651 | /* VEX_TABLE_INDEX is the mmmmm part of the XOP byte 1 "RCB.mmmmm". */ | |
12652 | switch ((*codep & 0x1f)) | |
12653 | { | |
12654 | default: | |
f07af43e L |
12655 | dp = &bad_opcode; |
12656 | return dp; | |
5dd85c99 SP |
12657 | case 0x8: |
12658 | vex_table_index = XOP_08; | |
12659 | break; | |
f88c9eb0 SP |
12660 | case 0x9: |
12661 | vex_table_index = XOP_09; | |
12662 | break; | |
12663 | case 0xa: | |
12664 | vex_table_index = XOP_0A; | |
12665 | break; | |
12666 | } | |
12667 | codep++; | |
12668 | vex.w = *codep & 0x80; | |
12669 | if (vex.w && address_mode == mode_64bit) | |
12670 | rex |= REX_W; | |
12671 | ||
12672 | vex.register_specifier = (~(*codep >> 3)) & 0xf; | |
abfcb414 | 12673 | if (address_mode != mode_64bit) |
f07af43e | 12674 | { |
abfcb414 AP |
12675 | /* In 16/32-bit mode REX_B is silently ignored. */ |
12676 | rex &= ~REX_B; | |
12677 | if (vex.register_specifier > 0x7) | |
12678 | { | |
12679 | dp = &bad_opcode; | |
12680 | return dp; | |
12681 | } | |
f07af43e | 12682 | } |
f88c9eb0 SP |
12683 | |
12684 | vex.length = (*codep & 0x4) ? 256 : 128; | |
12685 | switch ((*codep & 0x3)) | |
12686 | { | |
12687 | case 0: | |
12688 | vex.prefix = 0; | |
12689 | break; | |
12690 | case 1: | |
12691 | vex.prefix = DATA_PREFIX_OPCODE; | |
12692 | break; | |
12693 | case 2: | |
12694 | vex.prefix = REPE_PREFIX_OPCODE; | |
12695 | break; | |
12696 | case 3: | |
12697 | vex.prefix = REPNE_PREFIX_OPCODE; | |
12698 | break; | |
12699 | } | |
12700 | need_vex = 1; | |
12701 | need_vex_reg = 1; | |
12702 | codep++; | |
91d6fa6a NC |
12703 | vindex = *codep++; |
12704 | dp = &xop_table[vex_table_index][vindex]; | |
c48244a5 | 12705 | |
285ca992 | 12706 | end_codep = codep; |
c48244a5 SP |
12707 | FETCH_DATA (info, codep + 1); |
12708 | modrm.mod = (*codep >> 6) & 3; | |
12709 | modrm.reg = (*codep >> 3) & 7; | |
12710 | modrm.rm = *codep & 7; | |
f88c9eb0 SP |
12711 | break; |
12712 | ||
c0f3af97 | 12713 | case USE_VEX_C4_TABLE: |
43234a1e | 12714 | /* VEX prefix. */ |
c0f3af97 L |
12715 | FETCH_DATA (info, codep + 3); |
12716 | /* All bits in the REX prefix are ignored. */ | |
12717 | rex_ignored = rex; | |
12718 | rex = ~(*codep >> 5) & 0x7; | |
12719 | switch ((*codep & 0x1f)) | |
12720 | { | |
12721 | default: | |
f07af43e L |
12722 | dp = &bad_opcode; |
12723 | return dp; | |
c0f3af97 | 12724 | case 0x1: |
f88c9eb0 | 12725 | vex_table_index = VEX_0F; |
c0f3af97 L |
12726 | break; |
12727 | case 0x2: | |
f88c9eb0 | 12728 | vex_table_index = VEX_0F38; |
c0f3af97 L |
12729 | break; |
12730 | case 0x3: | |
f88c9eb0 | 12731 | vex_table_index = VEX_0F3A; |
c0f3af97 L |
12732 | break; |
12733 | } | |
12734 | codep++; | |
12735 | vex.w = *codep & 0x80; | |
9889cbb1 | 12736 | if (address_mode == mode_64bit) |
f07af43e | 12737 | { |
9889cbb1 L |
12738 | if (vex.w) |
12739 | rex |= REX_W; | |
12740 | vex.register_specifier = (~(*codep >> 3)) & 0xf; | |
12741 | } | |
12742 | else | |
12743 | { | |
12744 | /* For the 3-byte VEX prefix in 32-bit mode, the REX_B bit | |
12745 | is ignored, other REX bits are 0 and the highest bit in | |
12746 | VEX.vvvv is also ignored. */ | |
12747 | rex = 0; | |
12748 | vex.register_specifier = (~(*codep >> 3)) & 0x7; | |
f07af43e | 12749 | } |
c0f3af97 L |
12750 | vex.length = (*codep & 0x4) ? 256 : 128; |
12751 | switch ((*codep & 0x3)) | |
12752 | { | |
12753 | case 0: | |
12754 | vex.prefix = 0; | |
12755 | break; | |
12756 | case 1: | |
12757 | vex.prefix = DATA_PREFIX_OPCODE; | |
12758 | break; | |
12759 | case 2: | |
12760 | vex.prefix = REPE_PREFIX_OPCODE; | |
12761 | break; | |
12762 | case 3: | |
12763 | vex.prefix = REPNE_PREFIX_OPCODE; | |
12764 | break; | |
12765 | } | |
12766 | need_vex = 1; | |
12767 | need_vex_reg = 1; | |
12768 | codep++; | |
91d6fa6a NC |
12769 | vindex = *codep++; |
12770 | dp = &vex_table[vex_table_index][vindex]; | |
285ca992 | 12771 | end_codep = codep; |
c0f3af97 | 12772 | /* There is no MODRM byte for VEX [82|77]. */ |
91d6fa6a | 12773 | if (vindex != 0x77 && vindex != 0x82) |
c0f3af97 L |
12774 | { |
12775 | FETCH_DATA (info, codep + 1); | |
12776 | modrm.mod = (*codep >> 6) & 3; | |
12777 | modrm.reg = (*codep >> 3) & 7; | |
12778 | modrm.rm = *codep & 7; | |
12779 | } | |
12780 | break; | |
12781 | ||
12782 | case USE_VEX_C5_TABLE: | |
43234a1e | 12783 | /* VEX prefix. */ |
c0f3af97 L |
12784 | FETCH_DATA (info, codep + 2); |
12785 | /* All bits in the REX prefix are ignored. */ | |
12786 | rex_ignored = rex; | |
12787 | rex = (*codep & 0x80) ? 0 : REX_R; | |
12788 | ||
9889cbb1 L |
12789 | /* For the 2-byte VEX prefix in 32-bit mode, the highest bit in |
12790 | VEX.vvvv is 1. */ | |
c0f3af97 | 12791 | vex.register_specifier = (~(*codep >> 3)) & 0xf; |
759a05ce | 12792 | vex.w = 0; |
c0f3af97 L |
12793 | vex.length = (*codep & 0x4) ? 256 : 128; |
12794 | switch ((*codep & 0x3)) | |
12795 | { | |
12796 | case 0: | |
12797 | vex.prefix = 0; | |
12798 | break; | |
12799 | case 1: | |
12800 | vex.prefix = DATA_PREFIX_OPCODE; | |
12801 | break; | |
12802 | case 2: | |
12803 | vex.prefix = REPE_PREFIX_OPCODE; | |
12804 | break; | |
12805 | case 3: | |
12806 | vex.prefix = REPNE_PREFIX_OPCODE; | |
12807 | break; | |
12808 | } | |
12809 | need_vex = 1; | |
12810 | need_vex_reg = 1; | |
12811 | codep++; | |
91d6fa6a NC |
12812 | vindex = *codep++; |
12813 | dp = &vex_table[dp->op[1].bytemode][vindex]; | |
285ca992 | 12814 | end_codep = codep; |
c0f3af97 | 12815 | /* There is no MODRM byte for VEX [82|77]. */ |
91d6fa6a | 12816 | if (vindex != 0x77 && vindex != 0x82) |
c0f3af97 L |
12817 | { |
12818 | FETCH_DATA (info, codep + 1); | |
12819 | modrm.mod = (*codep >> 6) & 3; | |
12820 | modrm.reg = (*codep >> 3) & 7; | |
12821 | modrm.rm = *codep & 7; | |
12822 | } | |
12823 | break; | |
12824 | ||
9e30b8e0 L |
12825 | case USE_VEX_W_TABLE: |
12826 | if (!need_vex) | |
12827 | abort (); | |
12828 | ||
12829 | dp = &vex_w_table[dp->op[1].bytemode][vex.w ? 1 : 0]; | |
12830 | break; | |
12831 | ||
43234a1e L |
12832 | case USE_EVEX_TABLE: |
12833 | two_source_ops = 0; | |
12834 | /* EVEX prefix. */ | |
12835 | vex.evex = 1; | |
12836 | FETCH_DATA (info, codep + 4); | |
12837 | /* All bits in the REX prefix are ignored. */ | |
12838 | rex_ignored = rex; | |
12839 | /* The first byte after 0x62. */ | |
12840 | rex = ~(*codep >> 5) & 0x7; | |
12841 | vex.r = *codep & 0x10; | |
12842 | switch ((*codep & 0xf)) | |
12843 | { | |
12844 | default: | |
12845 | return &bad_opcode; | |
12846 | case 0x1: | |
12847 | vex_table_index = EVEX_0F; | |
12848 | break; | |
12849 | case 0x2: | |
12850 | vex_table_index = EVEX_0F38; | |
12851 | break; | |
12852 | case 0x3: | |
12853 | vex_table_index = EVEX_0F3A; | |
12854 | break; | |
12855 | } | |
12856 | ||
12857 | /* The second byte after 0x62. */ | |
12858 | codep++; | |
12859 | vex.w = *codep & 0x80; | |
12860 | if (vex.w && address_mode == mode_64bit) | |
12861 | rex |= REX_W; | |
12862 | ||
12863 | vex.register_specifier = (~(*codep >> 3)) & 0xf; | |
12864 | if (address_mode != mode_64bit) | |
12865 | { | |
12866 | /* In 16/32-bit mode silently ignore following bits. */ | |
12867 | rex &= ~REX_B; | |
12868 | vex.r = 1; | |
12869 | vex.v = 1; | |
12870 | vex.register_specifier &= 0x7; | |
12871 | } | |
12872 | ||
12873 | /* The U bit. */ | |
12874 | if (!(*codep & 0x4)) | |
12875 | return &bad_opcode; | |
12876 | ||
12877 | switch ((*codep & 0x3)) | |
12878 | { | |
12879 | case 0: | |
12880 | vex.prefix = 0; | |
12881 | break; | |
12882 | case 1: | |
12883 | vex.prefix = DATA_PREFIX_OPCODE; | |
12884 | break; | |
12885 | case 2: | |
12886 | vex.prefix = REPE_PREFIX_OPCODE; | |
12887 | break; | |
12888 | case 3: | |
12889 | vex.prefix = REPNE_PREFIX_OPCODE; | |
12890 | break; | |
12891 | } | |
12892 | ||
12893 | /* The third byte after 0x62. */ | |
12894 | codep++; | |
12895 | ||
12896 | /* Remember the static rounding bits. */ | |
12897 | vex.ll = (*codep >> 5) & 3; | |
12898 | vex.b = (*codep & 0x10) != 0; | |
12899 | ||
12900 | vex.v = *codep & 0x8; | |
12901 | vex.mask_register_specifier = *codep & 0x7; | |
12902 | vex.zeroing = *codep & 0x80; | |
12903 | ||
12904 | need_vex = 1; | |
12905 | need_vex_reg = 1; | |
12906 | codep++; | |
12907 | vindex = *codep++; | |
12908 | dp = &evex_table[vex_table_index][vindex]; | |
285ca992 | 12909 | end_codep = codep; |
43234a1e L |
12910 | FETCH_DATA (info, codep + 1); |
12911 | modrm.mod = (*codep >> 6) & 3; | |
12912 | modrm.reg = (*codep >> 3) & 7; | |
12913 | modrm.rm = *codep & 7; | |
12914 | ||
12915 | /* Set vector length. */ | |
12916 | if (modrm.mod == 3 && vex.b) | |
12917 | vex.length = 512; | |
12918 | else | |
12919 | { | |
12920 | switch (vex.ll) | |
12921 | { | |
12922 | case 0x0: | |
12923 | vex.length = 128; | |
12924 | break; | |
12925 | case 0x1: | |
12926 | vex.length = 256; | |
12927 | break; | |
12928 | case 0x2: | |
12929 | vex.length = 512; | |
12930 | break; | |
12931 | default: | |
12932 | return &bad_opcode; | |
12933 | } | |
12934 | } | |
12935 | break; | |
12936 | ||
592d1631 L |
12937 | case 0: |
12938 | dp = &bad_opcode; | |
12939 | break; | |
12940 | ||
b844680a | 12941 | default: |
d34b5006 | 12942 | abort (); |
b844680a L |
12943 | } |
12944 | ||
12945 | if (dp->name != NULL) | |
12946 | return dp; | |
12947 | else | |
8bb15339 | 12948 | return get_valid_dis386 (dp, info); |
b844680a L |
12949 | } |
12950 | ||
dfc8cf43 | 12951 | static void |
55cf16e1 | 12952 | get_sib (disassemble_info *info, int sizeflag) |
dfc8cf43 L |
12953 | { |
12954 | /* If modrm.mod == 3, operand must be register. */ | |
12955 | if (need_modrm | |
55cf16e1 | 12956 | && ((sizeflag & AFLAG) || address_mode == mode_64bit) |
dfc8cf43 L |
12957 | && modrm.mod != 3 |
12958 | && modrm.rm == 4) | |
12959 | { | |
12960 | FETCH_DATA (info, codep + 2); | |
12961 | sib.index = (codep [1] >> 3) & 7; | |
12962 | sib.scale = (codep [1] >> 6) & 3; | |
12963 | sib.base = codep [1] & 7; | |
12964 | } | |
12965 | } | |
12966 | ||
e396998b | 12967 | static int |
26ca5450 | 12968 | print_insn (bfd_vma pc, disassemble_info *info) |
252b5132 | 12969 | { |
2da11e11 | 12970 | const struct dis386 *dp; |
252b5132 | 12971 | int i; |
ce518a5f | 12972 | char *op_txt[MAX_OPERANDS]; |
252b5132 | 12973 | int needcomma; |
df18fdba | 12974 | int sizeflag, orig_sizeflag; |
e396998b | 12975 | const char *p; |
252b5132 | 12976 | struct dis_private priv; |
f16cd0d5 | 12977 | int prefix_length; |
252b5132 | 12978 | |
d7921315 L |
12979 | priv.orig_sizeflag = AFLAG | DFLAG; |
12980 | if ((info->mach & bfd_mach_i386_i386) != 0) | |
cb712a9e | 12981 | address_mode = mode_32bit; |
2da11e11 | 12982 | else if (info->mach == bfd_mach_i386_i8086) |
d7921315 L |
12983 | { |
12984 | address_mode = mode_16bit; | |
12985 | priv.orig_sizeflag = 0; | |
12986 | } | |
2da11e11 | 12987 | else |
d7921315 L |
12988 | address_mode = mode_64bit; |
12989 | ||
12990 | if (intel_syntax == (char) -1) | |
12991 | intel_syntax = (info->mach & bfd_mach_i386_intel_syntax) != 0; | |
e396998b AM |
12992 | |
12993 | for (p = info->disassembler_options; p != NULL; ) | |
12994 | { | |
5db04b09 L |
12995 | if (CONST_STRNEQ (p, "amd64")) |
12996 | isa64 = amd64; | |
12997 | else if (CONST_STRNEQ (p, "intel64")) | |
12998 | isa64 = intel64; | |
12999 | else if (CONST_STRNEQ (p, "x86-64")) | |
e396998b | 13000 | { |
cb712a9e | 13001 | address_mode = mode_64bit; |
e396998b AM |
13002 | priv.orig_sizeflag = AFLAG | DFLAG; |
13003 | } | |
0112cd26 | 13004 | else if (CONST_STRNEQ (p, "i386")) |
e396998b | 13005 | { |
cb712a9e | 13006 | address_mode = mode_32bit; |
e396998b AM |
13007 | priv.orig_sizeflag = AFLAG | DFLAG; |
13008 | } | |
0112cd26 | 13009 | else if (CONST_STRNEQ (p, "i8086")) |
e396998b | 13010 | { |
cb712a9e | 13011 | address_mode = mode_16bit; |
e396998b AM |
13012 | priv.orig_sizeflag = 0; |
13013 | } | |
0112cd26 | 13014 | else if (CONST_STRNEQ (p, "intel")) |
e396998b AM |
13015 | { |
13016 | intel_syntax = 1; | |
9d141669 L |
13017 | if (CONST_STRNEQ (p + 5, "-mnemonic")) |
13018 | intel_mnemonic = 1; | |
e396998b | 13019 | } |
0112cd26 | 13020 | else if (CONST_STRNEQ (p, "att")) |
e396998b AM |
13021 | { |
13022 | intel_syntax = 0; | |
9d141669 L |
13023 | if (CONST_STRNEQ (p + 3, "-mnemonic")) |
13024 | intel_mnemonic = 0; | |
e396998b | 13025 | } |
0112cd26 | 13026 | else if (CONST_STRNEQ (p, "addr")) |
e396998b | 13027 | { |
f59a29b9 L |
13028 | if (address_mode == mode_64bit) |
13029 | { | |
13030 | if (p[4] == '3' && p[5] == '2') | |
13031 | priv.orig_sizeflag &= ~AFLAG; | |
13032 | else if (p[4] == '6' && p[5] == '4') | |
13033 | priv.orig_sizeflag |= AFLAG; | |
13034 | } | |
13035 | else | |
13036 | { | |
13037 | if (p[4] == '1' && p[5] == '6') | |
13038 | priv.orig_sizeflag &= ~AFLAG; | |
13039 | else if (p[4] == '3' && p[5] == '2') | |
13040 | priv.orig_sizeflag |= AFLAG; | |
13041 | } | |
e396998b | 13042 | } |
0112cd26 | 13043 | else if (CONST_STRNEQ (p, "data")) |
e396998b AM |
13044 | { |
13045 | if (p[4] == '1' && p[5] == '6') | |
13046 | priv.orig_sizeflag &= ~DFLAG; | |
13047 | else if (p[4] == '3' && p[5] == '2') | |
13048 | priv.orig_sizeflag |= DFLAG; | |
13049 | } | |
0112cd26 | 13050 | else if (CONST_STRNEQ (p, "suffix")) |
e396998b AM |
13051 | priv.orig_sizeflag |= SUFFIX_ALWAYS; |
13052 | ||
13053 | p = strchr (p, ','); | |
13054 | if (p != NULL) | |
13055 | p++; | |
13056 | } | |
13057 | ||
c0f92bf9 L |
13058 | if (address_mode == mode_64bit && sizeof (bfd_vma) < 8) |
13059 | { | |
13060 | (*info->fprintf_func) (info->stream, | |
13061 | _("64-bit address is disabled")); | |
13062 | return -1; | |
13063 | } | |
13064 | ||
e396998b AM |
13065 | if (intel_syntax) |
13066 | { | |
13067 | names64 = intel_names64; | |
13068 | names32 = intel_names32; | |
13069 | names16 = intel_names16; | |
13070 | names8 = intel_names8; | |
13071 | names8rex = intel_names8rex; | |
13072 | names_seg = intel_names_seg; | |
b9733481 | 13073 | names_mm = intel_names_mm; |
7e8b059b | 13074 | names_bnd = intel_names_bnd; |
b9733481 L |
13075 | names_xmm = intel_names_xmm; |
13076 | names_ymm = intel_names_ymm; | |
43234a1e | 13077 | names_zmm = intel_names_zmm; |
db51cc60 L |
13078 | index64 = intel_index64; |
13079 | index32 = intel_index32; | |
43234a1e | 13080 | names_mask = intel_names_mask; |
e396998b AM |
13081 | index16 = intel_index16; |
13082 | open_char = '['; | |
13083 | close_char = ']'; | |
13084 | separator_char = '+'; | |
13085 | scale_char = '*'; | |
13086 | } | |
13087 | else | |
13088 | { | |
13089 | names64 = att_names64; | |
13090 | names32 = att_names32; | |
13091 | names16 = att_names16; | |
13092 | names8 = att_names8; | |
13093 | names8rex = att_names8rex; | |
13094 | names_seg = att_names_seg; | |
b9733481 | 13095 | names_mm = att_names_mm; |
7e8b059b | 13096 | names_bnd = att_names_bnd; |
b9733481 L |
13097 | names_xmm = att_names_xmm; |
13098 | names_ymm = att_names_ymm; | |
43234a1e | 13099 | names_zmm = att_names_zmm; |
db51cc60 L |
13100 | index64 = att_index64; |
13101 | index32 = att_index32; | |
43234a1e | 13102 | names_mask = att_names_mask; |
e396998b AM |
13103 | index16 = att_index16; |
13104 | open_char = '('; | |
13105 | close_char = ')'; | |
13106 | separator_char = ','; | |
13107 | scale_char = ','; | |
13108 | } | |
2da11e11 | 13109 | |
4fe53c98 | 13110 | /* The output looks better if we put 7 bytes on a line, since that |
8a9036a4 L |
13111 | puts most long word instructions on a single line. Use 8 bytes |
13112 | for Intel L1OM. */ | |
d7921315 | 13113 | if ((info->mach & bfd_mach_l1om) != 0) |
8a9036a4 L |
13114 | info->bytes_per_line = 8; |
13115 | else | |
13116 | info->bytes_per_line = 7; | |
252b5132 | 13117 | |
26ca5450 | 13118 | info->private_data = &priv; |
252b5132 RH |
13119 | priv.max_fetched = priv.the_buffer; |
13120 | priv.insn_start = pc; | |
252b5132 RH |
13121 | |
13122 | obuf[0] = 0; | |
ce518a5f L |
13123 | for (i = 0; i < MAX_OPERANDS; ++i) |
13124 | { | |
13125 | op_out[i][0] = 0; | |
13126 | op_index[i] = -1; | |
13127 | } | |
252b5132 RH |
13128 | |
13129 | the_info = info; | |
13130 | start_pc = pc; | |
e396998b AM |
13131 | start_codep = priv.the_buffer; |
13132 | codep = priv.the_buffer; | |
252b5132 | 13133 | |
8df14d78 | 13134 | if (OPCODES_SIGSETJMP (priv.bailout) != 0) |
5076851f | 13135 | { |
7d421014 ILT |
13136 | const char *name; |
13137 | ||
5076851f | 13138 | /* Getting here means we tried for data but didn't get it. That |
e396998b AM |
13139 | means we have an incomplete instruction of some sort. Just |
13140 | print the first byte as a prefix or a .byte pseudo-op. */ | |
13141 | if (codep > priv.the_buffer) | |
5076851f | 13142 | { |
e396998b | 13143 | name = prefix_name (priv.the_buffer[0], priv.orig_sizeflag); |
7d421014 ILT |
13144 | if (name != NULL) |
13145 | (*info->fprintf_func) (info->stream, "%s", name); | |
13146 | else | |
5076851f | 13147 | { |
7d421014 ILT |
13148 | /* Just print the first byte as a .byte instruction. */ |
13149 | (*info->fprintf_func) (info->stream, ".byte 0x%x", | |
e396998b | 13150 | (unsigned int) priv.the_buffer[0]); |
5076851f | 13151 | } |
5076851f | 13152 | |
7d421014 | 13153 | return 1; |
5076851f ILT |
13154 | } |
13155 | ||
13156 | return -1; | |
13157 | } | |
13158 | ||
52b15da3 | 13159 | obufp = obuf; |
f16cd0d5 L |
13160 | sizeflag = priv.orig_sizeflag; |
13161 | ||
13162 | if (!ckprefix () || rex_used) | |
13163 | { | |
13164 | /* Too many prefixes or unused REX prefixes. */ | |
13165 | for (i = 0; | |
f6dd4781 | 13166 | i < (int) ARRAY_SIZE (all_prefixes) && all_prefixes[i]; |
f16cd0d5 | 13167 | i++) |
de882298 | 13168 | (*info->fprintf_func) (info->stream, "%s%s", |
6c067bbb | 13169 | i == 0 ? "" : " ", |
f16cd0d5 | 13170 | prefix_name (all_prefixes[i], sizeflag)); |
de882298 | 13171 | return i; |
f16cd0d5 | 13172 | } |
252b5132 RH |
13173 | |
13174 | insn_codep = codep; | |
13175 | ||
13176 | FETCH_DATA (info, codep + 1); | |
13177 | two_source_ops = (*codep == 0x62) || (*codep == 0xc8); | |
13178 | ||
3e7d61b2 | 13179 | if (((prefixes & PREFIX_FWAIT) |
f16cd0d5 | 13180 | && ((*codep < 0xd8) || (*codep > 0xdf)))) |
252b5132 | 13181 | { |
86a80a50 | 13182 | /* Handle prefixes before fwait. */ |
d9949a36 | 13183 | for (i = 0; i < fwait_prefix && all_prefixes[i]; |
86a80a50 L |
13184 | i++) |
13185 | (*info->fprintf_func) (info->stream, "%s ", | |
13186 | prefix_name (all_prefixes[i], sizeflag)); | |
f16cd0d5 | 13187 | (*info->fprintf_func) (info->stream, "fwait"); |
86a80a50 | 13188 | return i + 1; |
252b5132 RH |
13189 | } |
13190 | ||
252b5132 RH |
13191 | if (*codep == 0x0f) |
13192 | { | |
eec0f4ca | 13193 | unsigned char threebyte; |
5f40e14d JS |
13194 | |
13195 | codep++; | |
13196 | FETCH_DATA (info, codep + 1); | |
13197 | threebyte = *codep; | |
eec0f4ca | 13198 | dp = &dis386_twobyte[threebyte]; |
252b5132 | 13199 | need_modrm = twobyte_has_modrm[*codep]; |
eec0f4ca | 13200 | codep++; |
252b5132 RH |
13201 | } |
13202 | else | |
13203 | { | |
6439fc28 | 13204 | dp = &dis386[*codep]; |
252b5132 | 13205 | need_modrm = onebyte_has_modrm[*codep]; |
eec0f4ca | 13206 | codep++; |
252b5132 | 13207 | } |
246c51aa | 13208 | |
df18fdba L |
13209 | /* Save sizeflag for printing the extra prefixes later before updating |
13210 | it for mnemonic and operand processing. The prefix names depend | |
13211 | only on the address mode. */ | |
13212 | orig_sizeflag = sizeflag; | |
c608c12e | 13213 | if (prefixes & PREFIX_ADDR) |
df18fdba | 13214 | sizeflag ^= AFLAG; |
b844680a | 13215 | if ((prefixes & PREFIX_DATA)) |
df18fdba | 13216 | sizeflag ^= DFLAG; |
3ffd33cf | 13217 | |
285ca992 | 13218 | end_codep = codep; |
8bb15339 | 13219 | if (need_modrm) |
252b5132 RH |
13220 | { |
13221 | FETCH_DATA (info, codep + 1); | |
7967e09e L |
13222 | modrm.mod = (*codep >> 6) & 3; |
13223 | modrm.reg = (*codep >> 3) & 7; | |
13224 | modrm.rm = *codep & 7; | |
252b5132 RH |
13225 | } |
13226 | ||
42d5f9c6 MS |
13227 | need_vex = 0; |
13228 | need_vex_reg = 0; | |
13229 | vex_w_done = 0; | |
43234a1e | 13230 | vex.evex = 0; |
55b126d4 | 13231 | |
ce518a5f | 13232 | if (dp->name == NULL && dp->op[0].bytemode == FLOATCODE) |
252b5132 | 13233 | { |
55cf16e1 | 13234 | get_sib (info, sizeflag); |
252b5132 RH |
13235 | dofloat (sizeflag); |
13236 | } | |
13237 | else | |
13238 | { | |
8bb15339 | 13239 | dp = get_valid_dis386 (dp, info); |
b844680a | 13240 | if (dp != NULL && putop (dp->name, sizeflag) == 0) |
6c067bbb | 13241 | { |
55cf16e1 | 13242 | get_sib (info, sizeflag); |
ce518a5f L |
13243 | for (i = 0; i < MAX_OPERANDS; ++i) |
13244 | { | |
246c51aa | 13245 | obufp = op_out[i]; |
ce518a5f L |
13246 | op_ad = MAX_OPERANDS - 1 - i; |
13247 | if (dp->op[i].rtn) | |
13248 | (*dp->op[i].rtn) (dp->op[i].bytemode, sizeflag); | |
43234a1e L |
13249 | /* For EVEX instruction after the last operand masking |
13250 | should be printed. */ | |
13251 | if (i == 0 && vex.evex) | |
13252 | { | |
13253 | /* Don't print {%k0}. */ | |
13254 | if (vex.mask_register_specifier) | |
13255 | { | |
13256 | oappend ("{"); | |
13257 | oappend (names_mask[vex.mask_register_specifier]); | |
13258 | oappend ("}"); | |
13259 | } | |
13260 | if (vex.zeroing) | |
13261 | oappend ("{z}"); | |
13262 | } | |
ce518a5f | 13263 | } |
6439fc28 | 13264 | } |
252b5132 RH |
13265 | } |
13266 | ||
d869730d | 13267 | /* Check if the REX prefix is used. */ |
e2e6193d | 13268 | if (rex_ignored == 0 && (rex ^ rex_used) == 0 && last_rex_prefix >= 0) |
f16cd0d5 L |
13269 | all_prefixes[last_rex_prefix] = 0; |
13270 | ||
5e6718e4 | 13271 | /* Check if the SEG prefix is used. */ |
f16cd0d5 L |
13272 | if ((prefixes & (PREFIX_CS | PREFIX_SS | PREFIX_DS | PREFIX_ES |
13273 | | PREFIX_FS | PREFIX_GS)) != 0 | |
285ca992 | 13274 | && (used_prefixes & active_seg_prefix) != 0) |
f16cd0d5 L |
13275 | all_prefixes[last_seg_prefix] = 0; |
13276 | ||
5e6718e4 | 13277 | /* Check if the ADDR prefix is used. */ |
f16cd0d5 L |
13278 | if ((prefixes & PREFIX_ADDR) != 0 |
13279 | && (used_prefixes & PREFIX_ADDR) != 0) | |
13280 | all_prefixes[last_addr_prefix] = 0; | |
13281 | ||
df18fdba L |
13282 | /* Check if the DATA prefix is used. */ |
13283 | if ((prefixes & PREFIX_DATA) != 0 | |
13284 | && (used_prefixes & PREFIX_DATA) != 0) | |
13285 | all_prefixes[last_data_prefix] = 0; | |
f16cd0d5 | 13286 | |
df18fdba | 13287 | /* Print the extra prefixes. */ |
f16cd0d5 | 13288 | prefix_length = 0; |
f310f33d | 13289 | for (i = 0; i < (int) ARRAY_SIZE (all_prefixes); i++) |
f16cd0d5 L |
13290 | if (all_prefixes[i]) |
13291 | { | |
13292 | const char *name; | |
df18fdba | 13293 | name = prefix_name (all_prefixes[i], orig_sizeflag); |
f16cd0d5 L |
13294 | if (name == NULL) |
13295 | abort (); | |
13296 | prefix_length += strlen (name) + 1; | |
13297 | (*info->fprintf_func) (info->stream, "%s ", name); | |
13298 | } | |
b844680a | 13299 | |
285ca992 L |
13300 | /* If the mandatory PREFIX_REPZ/PREFIX_REPNZ/PREFIX_DATA prefix is |
13301 | unused, opcode is invalid. Since the PREFIX_DATA prefix may be | |
13302 | used by putop and MMX/SSE operand and may be overriden by the | |
13303 | PREFIX_REPZ/PREFIX_REPNZ fix, we check the PREFIX_DATA prefix | |
13304 | separately. */ | |
3888916d | 13305 | if (dp->prefix_requirement == PREFIX_OPCODE |
285ca992 L |
13306 | && dp != &bad_opcode |
13307 | && (((prefixes | |
13308 | & (PREFIX_REPZ | PREFIX_REPNZ)) != 0 | |
13309 | && (used_prefixes | |
13310 | & (PREFIX_REPZ | PREFIX_REPNZ)) == 0) | |
13311 | || ((((prefixes | |
13312 | & (PREFIX_REPZ | PREFIX_REPNZ | PREFIX_DATA)) | |
13313 | == PREFIX_DATA) | |
13314 | && (used_prefixes & PREFIX_DATA) == 0)))) | |
13315 | { | |
13316 | (*info->fprintf_func) (info->stream, "(bad)"); | |
13317 | return end_codep - priv.the_buffer; | |
13318 | } | |
13319 | ||
f16cd0d5 L |
13320 | /* Check maximum code length. */ |
13321 | if ((codep - start_codep) > MAX_CODE_LENGTH) | |
13322 | { | |
13323 | (*info->fprintf_func) (info->stream, "(bad)"); | |
13324 | return MAX_CODE_LENGTH; | |
13325 | } | |
b844680a | 13326 | |
ea397f5b | 13327 | obufp = mnemonicendp; |
f16cd0d5 | 13328 | for (i = strlen (obuf) + prefix_length; i < 6; i++) |
252b5132 RH |
13329 | oappend (" "); |
13330 | oappend (" "); | |
13331 | (*info->fprintf_func) (info->stream, "%s", obuf); | |
13332 | ||
13333 | /* The enter and bound instructions are printed with operands in the same | |
13334 | order as the intel book; everything else is printed in reverse order. */ | |
2da11e11 | 13335 | if (intel_syntax || two_source_ops) |
252b5132 | 13336 | { |
185b1163 L |
13337 | bfd_vma riprel; |
13338 | ||
ce518a5f | 13339 | for (i = 0; i < MAX_OPERANDS; ++i) |
6c067bbb | 13340 | op_txt[i] = op_out[i]; |
246c51aa | 13341 | |
3a8547d2 JB |
13342 | if (intel_syntax && dp && dp->op[2].rtn == OP_Rounding |
13343 | && dp->op[3].rtn == OP_E && dp->op[4].rtn == NULL) | |
13344 | { | |
13345 | op_txt[2] = op_out[3]; | |
13346 | op_txt[3] = op_out[2]; | |
13347 | } | |
13348 | ||
ce518a5f L |
13349 | for (i = 0; i < (MAX_OPERANDS >> 1); ++i) |
13350 | { | |
6c067bbb RM |
13351 | op_ad = op_index[i]; |
13352 | op_index[i] = op_index[MAX_OPERANDS - 1 - i]; | |
13353 | op_index[MAX_OPERANDS - 1 - i] = op_ad; | |
185b1163 L |
13354 | riprel = op_riprel[i]; |
13355 | op_riprel[i] = op_riprel [MAX_OPERANDS - 1 - i]; | |
13356 | op_riprel[MAX_OPERANDS - 1 - i] = riprel; | |
ce518a5f | 13357 | } |
252b5132 RH |
13358 | } |
13359 | else | |
13360 | { | |
ce518a5f | 13361 | for (i = 0; i < MAX_OPERANDS; ++i) |
6c067bbb | 13362 | op_txt[MAX_OPERANDS - 1 - i] = op_out[i]; |
050dfa73 MM |
13363 | } |
13364 | ||
ce518a5f L |
13365 | needcomma = 0; |
13366 | for (i = 0; i < MAX_OPERANDS; ++i) | |
13367 | if (*op_txt[i]) | |
13368 | { | |
13369 | if (needcomma) | |
13370 | (*info->fprintf_func) (info->stream, ","); | |
13371 | if (op_index[i] != -1 && !op_riprel[i]) | |
13372 | (*info->print_address_func) ((bfd_vma) op_address[op_index[i]], info); | |
13373 | else | |
13374 | (*info->fprintf_func) (info->stream, "%s", op_txt[i]); | |
13375 | needcomma = 1; | |
13376 | } | |
050dfa73 | 13377 | |
ce518a5f | 13378 | for (i = 0; i < MAX_OPERANDS; i++) |
52b15da3 JH |
13379 | if (op_index[i] != -1 && op_riprel[i]) |
13380 | { | |
13381 | (*info->fprintf_func) (info->stream, " # "); | |
4fd7268a | 13382 | (*info->print_address_func) ((bfd_vma) (start_pc + (codep - start_codep) |
52b15da3 | 13383 | + op_address[op_index[i]]), info); |
185b1163 | 13384 | break; |
52b15da3 | 13385 | } |
e396998b | 13386 | return codep - priv.the_buffer; |
252b5132 RH |
13387 | } |
13388 | ||
6439fc28 | 13389 | static const char *float_mem[] = { |
252b5132 | 13390 | /* d8 */ |
7c52e0e8 L |
13391 | "fadd{s|}", |
13392 | "fmul{s|}", | |
13393 | "fcom{s|}", | |
13394 | "fcomp{s|}", | |
13395 | "fsub{s|}", | |
13396 | "fsubr{s|}", | |
13397 | "fdiv{s|}", | |
13398 | "fdivr{s|}", | |
db6eb5be | 13399 | /* d9 */ |
7c52e0e8 | 13400 | "fld{s|}", |
252b5132 | 13401 | "(bad)", |
7c52e0e8 L |
13402 | "fst{s|}", |
13403 | "fstp{s|}", | |
9306ca4a | 13404 | "fldenvIC", |
252b5132 | 13405 | "fldcw", |
9306ca4a | 13406 | "fNstenvIC", |
252b5132 RH |
13407 | "fNstcw", |
13408 | /* da */ | |
7c52e0e8 L |
13409 | "fiadd{l|}", |
13410 | "fimul{l|}", | |
13411 | "ficom{l|}", | |
13412 | "ficomp{l|}", | |
13413 | "fisub{l|}", | |
13414 | "fisubr{l|}", | |
13415 | "fidiv{l|}", | |
13416 | "fidivr{l|}", | |
252b5132 | 13417 | /* db */ |
7c52e0e8 L |
13418 | "fild{l|}", |
13419 | "fisttp{l|}", | |
13420 | "fist{l|}", | |
13421 | "fistp{l|}", | |
252b5132 | 13422 | "(bad)", |
6439fc28 | 13423 | "fld{t||t|}", |
252b5132 | 13424 | "(bad)", |
6439fc28 | 13425 | "fstp{t||t|}", |
252b5132 | 13426 | /* dc */ |
7c52e0e8 L |
13427 | "fadd{l|}", |
13428 | "fmul{l|}", | |
13429 | "fcom{l|}", | |
13430 | "fcomp{l|}", | |
13431 | "fsub{l|}", | |
13432 | "fsubr{l|}", | |
13433 | "fdiv{l|}", | |
13434 | "fdivr{l|}", | |
252b5132 | 13435 | /* dd */ |
7c52e0e8 L |
13436 | "fld{l|}", |
13437 | "fisttp{ll|}", | |
13438 | "fst{l||}", | |
13439 | "fstp{l|}", | |
9306ca4a | 13440 | "frstorIC", |
252b5132 | 13441 | "(bad)", |
9306ca4a | 13442 | "fNsaveIC", |
252b5132 RH |
13443 | "fNstsw", |
13444 | /* de */ | |
13445 | "fiadd", | |
13446 | "fimul", | |
13447 | "ficom", | |
13448 | "ficomp", | |
13449 | "fisub", | |
13450 | "fisubr", | |
13451 | "fidiv", | |
13452 | "fidivr", | |
13453 | /* df */ | |
13454 | "fild", | |
ca164297 | 13455 | "fisttp", |
252b5132 RH |
13456 | "fist", |
13457 | "fistp", | |
13458 | "fbld", | |
7c52e0e8 | 13459 | "fild{ll|}", |
252b5132 | 13460 | "fbstp", |
7c52e0e8 | 13461 | "fistp{ll|}", |
1d9f512f AM |
13462 | }; |
13463 | ||
13464 | static const unsigned char float_mem_mode[] = { | |
13465 | /* d8 */ | |
13466 | d_mode, | |
13467 | d_mode, | |
13468 | d_mode, | |
13469 | d_mode, | |
13470 | d_mode, | |
13471 | d_mode, | |
13472 | d_mode, | |
13473 | d_mode, | |
13474 | /* d9 */ | |
13475 | d_mode, | |
13476 | 0, | |
13477 | d_mode, | |
13478 | d_mode, | |
13479 | 0, | |
13480 | w_mode, | |
13481 | 0, | |
13482 | w_mode, | |
13483 | /* da */ | |
13484 | d_mode, | |
13485 | d_mode, | |
13486 | d_mode, | |
13487 | d_mode, | |
13488 | d_mode, | |
13489 | d_mode, | |
13490 | d_mode, | |
13491 | d_mode, | |
13492 | /* db */ | |
13493 | d_mode, | |
13494 | d_mode, | |
13495 | d_mode, | |
13496 | d_mode, | |
13497 | 0, | |
9306ca4a | 13498 | t_mode, |
1d9f512f | 13499 | 0, |
9306ca4a | 13500 | t_mode, |
1d9f512f AM |
13501 | /* dc */ |
13502 | q_mode, | |
13503 | q_mode, | |
13504 | q_mode, | |
13505 | q_mode, | |
13506 | q_mode, | |
13507 | q_mode, | |
13508 | q_mode, | |
13509 | q_mode, | |
13510 | /* dd */ | |
13511 | q_mode, | |
13512 | q_mode, | |
13513 | q_mode, | |
13514 | q_mode, | |
13515 | 0, | |
13516 | 0, | |
13517 | 0, | |
13518 | w_mode, | |
13519 | /* de */ | |
13520 | w_mode, | |
13521 | w_mode, | |
13522 | w_mode, | |
13523 | w_mode, | |
13524 | w_mode, | |
13525 | w_mode, | |
13526 | w_mode, | |
13527 | w_mode, | |
13528 | /* df */ | |
13529 | w_mode, | |
13530 | w_mode, | |
13531 | w_mode, | |
13532 | w_mode, | |
9306ca4a | 13533 | t_mode, |
1d9f512f | 13534 | q_mode, |
9306ca4a | 13535 | t_mode, |
1d9f512f | 13536 | q_mode |
252b5132 RH |
13537 | }; |
13538 | ||
ce518a5f L |
13539 | #define ST { OP_ST, 0 } |
13540 | #define STi { OP_STi, 0 } | |
252b5132 | 13541 | |
48c97fa1 L |
13542 | #define FGRPd9_2 NULL, { { NULL, 1 } }, 0 |
13543 | #define FGRPd9_4 NULL, { { NULL, 2 } }, 0 | |
13544 | #define FGRPd9_5 NULL, { { NULL, 3 } }, 0 | |
13545 | #define FGRPd9_6 NULL, { { NULL, 4 } }, 0 | |
13546 | #define FGRPd9_7 NULL, { { NULL, 5 } }, 0 | |
13547 | #define FGRPda_5 NULL, { { NULL, 6 } }, 0 | |
13548 | #define FGRPdb_4 NULL, { { NULL, 7 } }, 0 | |
13549 | #define FGRPde_3 NULL, { { NULL, 8 } }, 0 | |
13550 | #define FGRPdf_4 NULL, { { NULL, 9 } }, 0 | |
252b5132 | 13551 | |
2da11e11 | 13552 | static const struct dis386 float_reg[][8] = { |
252b5132 RH |
13553 | /* d8 */ |
13554 | { | |
bf890a93 IT |
13555 | { "fadd", { ST, STi }, 0 }, |
13556 | { "fmul", { ST, STi }, 0 }, | |
13557 | { "fcom", { STi }, 0 }, | |
13558 | { "fcomp", { STi }, 0 }, | |
13559 | { "fsub", { ST, STi }, 0 }, | |
13560 | { "fsubr", { ST, STi }, 0 }, | |
13561 | { "fdiv", { ST, STi }, 0 }, | |
13562 | { "fdivr", { ST, STi }, 0 }, | |
252b5132 RH |
13563 | }, |
13564 | /* d9 */ | |
13565 | { | |
bf890a93 IT |
13566 | { "fld", { STi }, 0 }, |
13567 | { "fxch", { STi }, 0 }, | |
252b5132 | 13568 | { FGRPd9_2 }, |
592d1631 | 13569 | { Bad_Opcode }, |
252b5132 RH |
13570 | { FGRPd9_4 }, |
13571 | { FGRPd9_5 }, | |
13572 | { FGRPd9_6 }, | |
13573 | { FGRPd9_7 }, | |
13574 | }, | |
13575 | /* da */ | |
13576 | { | |
bf890a93 IT |
13577 | { "fcmovb", { ST, STi }, 0 }, |
13578 | { "fcmove", { ST, STi }, 0 }, | |
13579 | { "fcmovbe",{ ST, STi }, 0 }, | |
13580 | { "fcmovu", { ST, STi }, 0 }, | |
592d1631 | 13581 | { Bad_Opcode }, |
252b5132 | 13582 | { FGRPda_5 }, |
592d1631 L |
13583 | { Bad_Opcode }, |
13584 | { Bad_Opcode }, | |
252b5132 RH |
13585 | }, |
13586 | /* db */ | |
13587 | { | |
bf890a93 IT |
13588 | { "fcmovnb",{ ST, STi }, 0 }, |
13589 | { "fcmovne",{ ST, STi }, 0 }, | |
13590 | { "fcmovnbe",{ ST, STi }, 0 }, | |
13591 | { "fcmovnu",{ ST, STi }, 0 }, | |
252b5132 | 13592 | { FGRPdb_4 }, |
bf890a93 IT |
13593 | { "fucomi", { ST, STi }, 0 }, |
13594 | { "fcomi", { ST, STi }, 0 }, | |
592d1631 | 13595 | { Bad_Opcode }, |
252b5132 RH |
13596 | }, |
13597 | /* dc */ | |
13598 | { | |
bf890a93 IT |
13599 | { "fadd", { STi, ST }, 0 }, |
13600 | { "fmul", { STi, ST }, 0 }, | |
592d1631 L |
13601 | { Bad_Opcode }, |
13602 | { Bad_Opcode }, | |
bf890a93 IT |
13603 | { "fsub!M", { STi, ST }, 0 }, |
13604 | { "fsubM", { STi, ST }, 0 }, | |
13605 | { "fdiv!M", { STi, ST }, 0 }, | |
13606 | { "fdivM", { STi, ST }, 0 }, | |
252b5132 RH |
13607 | }, |
13608 | /* dd */ | |
13609 | { | |
bf890a93 | 13610 | { "ffree", { STi }, 0 }, |
592d1631 | 13611 | { Bad_Opcode }, |
bf890a93 IT |
13612 | { "fst", { STi }, 0 }, |
13613 | { "fstp", { STi }, 0 }, | |
13614 | { "fucom", { STi }, 0 }, | |
13615 | { "fucomp", { STi }, 0 }, | |
592d1631 L |
13616 | { Bad_Opcode }, |
13617 | { Bad_Opcode }, | |
252b5132 RH |
13618 | }, |
13619 | /* de */ | |
13620 | { | |
bf890a93 IT |
13621 | { "faddp", { STi, ST }, 0 }, |
13622 | { "fmulp", { STi, ST }, 0 }, | |
592d1631 | 13623 | { Bad_Opcode }, |
252b5132 | 13624 | { FGRPde_3 }, |
bf890a93 IT |
13625 | { "fsub!Mp", { STi, ST }, 0 }, |
13626 | { "fsubMp", { STi, ST }, 0 }, | |
13627 | { "fdiv!Mp", { STi, ST }, 0 }, | |
13628 | { "fdivMp", { STi, ST }, 0 }, | |
252b5132 RH |
13629 | }, |
13630 | /* df */ | |
13631 | { | |
bf890a93 | 13632 | { "ffreep", { STi }, 0 }, |
592d1631 L |
13633 | { Bad_Opcode }, |
13634 | { Bad_Opcode }, | |
13635 | { Bad_Opcode }, | |
252b5132 | 13636 | { FGRPdf_4 }, |
bf890a93 IT |
13637 | { "fucomip", { ST, STi }, 0 }, |
13638 | { "fcomip", { ST, STi }, 0 }, | |
592d1631 | 13639 | { Bad_Opcode }, |
252b5132 RH |
13640 | }, |
13641 | }; | |
13642 | ||
252b5132 | 13643 | static char *fgrps[][8] = { |
48c97fa1 L |
13644 | /* Bad opcode 0 */ |
13645 | { | |
13646 | "(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13647 | }, | |
13648 | ||
13649 | /* d9_2 1 */ | |
252b5132 RH |
13650 | { |
13651 | "fnop","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13652 | }, | |
13653 | ||
48c97fa1 | 13654 | /* d9_4 2 */ |
252b5132 RH |
13655 | { |
13656 | "fchs","fabs","(bad)","(bad)","ftst","fxam","(bad)","(bad)", | |
13657 | }, | |
13658 | ||
48c97fa1 | 13659 | /* d9_5 3 */ |
252b5132 RH |
13660 | { |
13661 | "fld1","fldl2t","fldl2e","fldpi","fldlg2","fldln2","fldz","(bad)", | |
13662 | }, | |
13663 | ||
48c97fa1 | 13664 | /* d9_6 4 */ |
252b5132 RH |
13665 | { |
13666 | "f2xm1","fyl2x","fptan","fpatan","fxtract","fprem1","fdecstp","fincstp", | |
13667 | }, | |
13668 | ||
48c97fa1 | 13669 | /* d9_7 5 */ |
252b5132 RH |
13670 | { |
13671 | "fprem","fyl2xp1","fsqrt","fsincos","frndint","fscale","fsin","fcos", | |
13672 | }, | |
13673 | ||
48c97fa1 | 13674 | /* da_5 6 */ |
252b5132 RH |
13675 | { |
13676 | "(bad)","fucompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13677 | }, | |
13678 | ||
48c97fa1 | 13679 | /* db_4 7 */ |
252b5132 | 13680 | { |
309d3373 JB |
13681 | "fNeni(8087 only)","fNdisi(8087 only)","fNclex","fNinit", |
13682 | "fNsetpm(287 only)","frstpm(287 only)","(bad)","(bad)", | |
252b5132 RH |
13683 | }, |
13684 | ||
48c97fa1 | 13685 | /* de_3 8 */ |
252b5132 RH |
13686 | { |
13687 | "(bad)","fcompp","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13688 | }, | |
13689 | ||
48c97fa1 | 13690 | /* df_4 9 */ |
252b5132 RH |
13691 | { |
13692 | "fNstsw","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)","(bad)", | |
13693 | }, | |
13694 | }; | |
13695 | ||
b6169b20 L |
13696 | static void |
13697 | swap_operand (void) | |
13698 | { | |
13699 | mnemonicendp[0] = '.'; | |
13700 | mnemonicendp[1] = 's'; | |
13701 | mnemonicendp += 2; | |
13702 | } | |
13703 | ||
b844680a L |
13704 | static void |
13705 | OP_Skip_MODRM (int bytemode ATTRIBUTE_UNUSED, | |
13706 | int sizeflag ATTRIBUTE_UNUSED) | |
13707 | { | |
13708 | /* Skip mod/rm byte. */ | |
13709 | MODRM_CHECK; | |
13710 | codep++; | |
13711 | } | |
13712 | ||
252b5132 | 13713 | static void |
26ca5450 | 13714 | dofloat (int sizeflag) |
252b5132 | 13715 | { |
2da11e11 | 13716 | const struct dis386 *dp; |
252b5132 RH |
13717 | unsigned char floatop; |
13718 | ||
13719 | floatop = codep[-1]; | |
13720 | ||
7967e09e | 13721 | if (modrm.mod != 3) |
252b5132 | 13722 | { |
7967e09e | 13723 | int fp_indx = (floatop - 0xd8) * 8 + modrm.reg; |
1d9f512f AM |
13724 | |
13725 | putop (float_mem[fp_indx], sizeflag); | |
ce518a5f | 13726 | obufp = op_out[0]; |
6e50d963 | 13727 | op_ad = 2; |
1d9f512f | 13728 | OP_E (float_mem_mode[fp_indx], sizeflag); |
252b5132 RH |
13729 | return; |
13730 | } | |
6608db57 | 13731 | /* Skip mod/rm byte. */ |
4bba6815 | 13732 | MODRM_CHECK; |
252b5132 RH |
13733 | codep++; |
13734 | ||
7967e09e | 13735 | dp = &float_reg[floatop - 0xd8][modrm.reg]; |
252b5132 RH |
13736 | if (dp->name == NULL) |
13737 | { | |
7967e09e | 13738 | putop (fgrps[dp->op[0].bytemode][modrm.rm], sizeflag); |
252b5132 | 13739 | |
6608db57 | 13740 | /* Instruction fnstsw is only one with strange arg. */ |
252b5132 | 13741 | if (floatop == 0xdf && codep[-1] == 0xe0) |
ce518a5f | 13742 | strcpy (op_out[0], names16[0]); |
252b5132 RH |
13743 | } |
13744 | else | |
13745 | { | |
13746 | putop (dp->name, sizeflag); | |
13747 | ||
ce518a5f | 13748 | obufp = op_out[0]; |
6e50d963 | 13749 | op_ad = 2; |
ce518a5f L |
13750 | if (dp->op[0].rtn) |
13751 | (*dp->op[0].rtn) (dp->op[0].bytemode, sizeflag); | |
6e50d963 | 13752 | |
ce518a5f | 13753 | obufp = op_out[1]; |
6e50d963 | 13754 | op_ad = 1; |
ce518a5f L |
13755 | if (dp->op[1].rtn) |
13756 | (*dp->op[1].rtn) (dp->op[1].bytemode, sizeflag); | |
252b5132 RH |
13757 | } |
13758 | } | |
13759 | ||
9ce09ba2 RM |
13760 | /* Like oappend (below), but S is a string starting with '%'. |
13761 | In Intel syntax, the '%' is elided. */ | |
13762 | static void | |
13763 | oappend_maybe_intel (const char *s) | |
13764 | { | |
13765 | oappend (s + intel_syntax); | |
13766 | } | |
13767 | ||
252b5132 | 13768 | static void |
26ca5450 | 13769 | OP_ST (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 13770 | { |
9ce09ba2 | 13771 | oappend_maybe_intel ("%st"); |
252b5132 RH |
13772 | } |
13773 | ||
252b5132 | 13774 | static void |
26ca5450 | 13775 | OP_STi (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 13776 | { |
7967e09e | 13777 | sprintf (scratchbuf, "%%st(%d)", modrm.rm); |
9ce09ba2 | 13778 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
13779 | } |
13780 | ||
6608db57 | 13781 | /* Capital letters in template are macros. */ |
6439fc28 | 13782 | static int |
d3ce72d0 | 13783 | putop (const char *in_template, int sizeflag) |
252b5132 | 13784 | { |
2da11e11 | 13785 | const char *p; |
9306ca4a | 13786 | int alt = 0; |
9d141669 | 13787 | int cond = 1; |
98b528ac L |
13788 | unsigned int l = 0, len = 1; |
13789 | char last[4]; | |
13790 | ||
13791 | #define SAVE_LAST(c) \ | |
13792 | if (l < len && l < sizeof (last)) \ | |
13793 | last[l++] = c; \ | |
13794 | else \ | |
13795 | abort (); | |
252b5132 | 13796 | |
d3ce72d0 | 13797 | for (p = in_template; *p; p++) |
252b5132 RH |
13798 | { |
13799 | switch (*p) | |
13800 | { | |
13801 | default: | |
13802 | *obufp++ = *p; | |
13803 | break; | |
98b528ac L |
13804 | case '%': |
13805 | len++; | |
13806 | break; | |
9d141669 L |
13807 | case '!': |
13808 | cond = 0; | |
13809 | break; | |
6439fc28 | 13810 | case '{': |
6439fc28 | 13811 | if (intel_syntax) |
6439fc28 AM |
13812 | { |
13813 | while (*++p != '|') | |
7c52e0e8 L |
13814 | if (*p == '}' || *p == '\0') |
13815 | abort (); | |
6439fc28 | 13816 | } |
9306ca4a JB |
13817 | /* Fall through. */ |
13818 | case 'I': | |
13819 | alt = 1; | |
13820 | continue; | |
6439fc28 AM |
13821 | case '|': |
13822 | while (*++p != '}') | |
13823 | { | |
13824 | if (*p == '\0') | |
13825 | abort (); | |
13826 | } | |
13827 | break; | |
13828 | case '}': | |
13829 | break; | |
252b5132 | 13830 | case 'A': |
db6eb5be AM |
13831 | if (intel_syntax) |
13832 | break; | |
7967e09e | 13833 | if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS)) |
252b5132 RH |
13834 | *obufp++ = 'b'; |
13835 | break; | |
13836 | case 'B': | |
4b06377f L |
13837 | if (l == 0 && len == 1) |
13838 | { | |
13839 | case_B: | |
13840 | if (intel_syntax) | |
13841 | break; | |
13842 | if (sizeflag & SUFFIX_ALWAYS) | |
13843 | *obufp++ = 'b'; | |
13844 | } | |
13845 | else | |
13846 | { | |
13847 | if (l != 1 | |
13848 | || len != 2 | |
13849 | || last[0] != 'L') | |
13850 | { | |
13851 | SAVE_LAST (*p); | |
13852 | break; | |
13853 | } | |
13854 | ||
13855 | if (address_mode == mode_64bit | |
13856 | && !(prefixes & PREFIX_ADDR)) | |
13857 | { | |
13858 | *obufp++ = 'a'; | |
13859 | *obufp++ = 'b'; | |
13860 | *obufp++ = 's'; | |
13861 | } | |
13862 | ||
13863 | goto case_B; | |
13864 | } | |
252b5132 | 13865 | break; |
9306ca4a JB |
13866 | case 'C': |
13867 | if (intel_syntax && !alt) | |
13868 | break; | |
13869 | if ((prefixes & PREFIX_DATA) || (sizeflag & SUFFIX_ALWAYS)) | |
13870 | { | |
13871 | if (sizeflag & DFLAG) | |
13872 | *obufp++ = intel_syntax ? 'd' : 'l'; | |
13873 | else | |
13874 | *obufp++ = intel_syntax ? 'w' : 's'; | |
13875 | used_prefixes |= (prefixes & PREFIX_DATA); | |
13876 | } | |
13877 | break; | |
ed7841b3 JB |
13878 | case 'D': |
13879 | if (intel_syntax || !(sizeflag & SUFFIX_ALWAYS)) | |
13880 | break; | |
161a04f6 | 13881 | USED_REX (REX_W); |
7967e09e | 13882 | if (modrm.mod == 3) |
ed7841b3 | 13883 | { |
161a04f6 | 13884 | if (rex & REX_W) |
ed7841b3 | 13885 | *obufp++ = 'q'; |
ed7841b3 | 13886 | else |
f16cd0d5 L |
13887 | { |
13888 | if (sizeflag & DFLAG) | |
13889 | *obufp++ = intel_syntax ? 'd' : 'l'; | |
13890 | else | |
13891 | *obufp++ = 'w'; | |
13892 | used_prefixes |= (prefixes & PREFIX_DATA); | |
13893 | } | |
ed7841b3 JB |
13894 | } |
13895 | else | |
13896 | *obufp++ = 'w'; | |
13897 | break; | |
252b5132 | 13898 | case 'E': /* For jcxz/jecxz */ |
cb712a9e | 13899 | if (address_mode == mode_64bit) |
c1a64871 JH |
13900 | { |
13901 | if (sizeflag & AFLAG) | |
13902 | *obufp++ = 'r'; | |
13903 | else | |
13904 | *obufp++ = 'e'; | |
13905 | } | |
13906 | else | |
13907 | if (sizeflag & AFLAG) | |
13908 | *obufp++ = 'e'; | |
3ffd33cf AM |
13909 | used_prefixes |= (prefixes & PREFIX_ADDR); |
13910 | break; | |
13911 | case 'F': | |
db6eb5be AM |
13912 | if (intel_syntax) |
13913 | break; | |
e396998b | 13914 | if ((prefixes & PREFIX_ADDR) || (sizeflag & SUFFIX_ALWAYS)) |
3ffd33cf AM |
13915 | { |
13916 | if (sizeflag & AFLAG) | |
cb712a9e | 13917 | *obufp++ = address_mode == mode_64bit ? 'q' : 'l'; |
3ffd33cf | 13918 | else |
cb712a9e | 13919 | *obufp++ = address_mode == mode_64bit ? 'l' : 'w'; |
3ffd33cf AM |
13920 | used_prefixes |= (prefixes & PREFIX_ADDR); |
13921 | } | |
252b5132 | 13922 | break; |
52fd6d94 JB |
13923 | case 'G': |
13924 | if (intel_syntax || (obufp[-1] != 's' && !(sizeflag & SUFFIX_ALWAYS))) | |
13925 | break; | |
161a04f6 | 13926 | if ((rex & REX_W) || (sizeflag & DFLAG)) |
52fd6d94 JB |
13927 | *obufp++ = 'l'; |
13928 | else | |
13929 | *obufp++ = 'w'; | |
161a04f6 | 13930 | if (!(rex & REX_W)) |
52fd6d94 JB |
13931 | used_prefixes |= (prefixes & PREFIX_DATA); |
13932 | break; | |
5dd0794d | 13933 | case 'H': |
db6eb5be AM |
13934 | if (intel_syntax) |
13935 | break; | |
5dd0794d AM |
13936 | if ((prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_CS |
13937 | || (prefixes & (PREFIX_CS | PREFIX_DS)) == PREFIX_DS) | |
13938 | { | |
13939 | used_prefixes |= prefixes & (PREFIX_CS | PREFIX_DS); | |
13940 | *obufp++ = ','; | |
13941 | *obufp++ = 'p'; | |
13942 | if (prefixes & PREFIX_DS) | |
13943 | *obufp++ = 't'; | |
13944 | else | |
13945 | *obufp++ = 'n'; | |
13946 | } | |
13947 | break; | |
9306ca4a JB |
13948 | case 'J': |
13949 | if (intel_syntax) | |
13950 | break; | |
13951 | *obufp++ = 'l'; | |
13952 | break; | |
42903f7f L |
13953 | case 'K': |
13954 | USED_REX (REX_W); | |
13955 | if (rex & REX_W) | |
13956 | *obufp++ = 'q'; | |
13957 | else | |
13958 | *obufp++ = 'd'; | |
13959 | break; | |
6dd5059a | 13960 | case 'Z': |
04d824a4 JB |
13961 | if (l != 0 || len != 1) |
13962 | { | |
13963 | if (l != 1 || len != 2 || last[0] != 'X') | |
13964 | { | |
13965 | SAVE_LAST (*p); | |
13966 | break; | |
13967 | } | |
13968 | if (!need_vex || !vex.evex) | |
13969 | abort (); | |
13970 | if (intel_syntax | |
13971 | || ((modrm.mod == 3 || vex.b) && !(sizeflag & SUFFIX_ALWAYS))) | |
13972 | break; | |
13973 | switch (vex.length) | |
13974 | { | |
13975 | case 128: | |
13976 | *obufp++ = 'x'; | |
13977 | break; | |
13978 | case 256: | |
13979 | *obufp++ = 'y'; | |
13980 | break; | |
13981 | case 512: | |
13982 | *obufp++ = 'z'; | |
13983 | break; | |
13984 | default: | |
13985 | abort (); | |
13986 | } | |
13987 | break; | |
13988 | } | |
6dd5059a L |
13989 | if (intel_syntax) |
13990 | break; | |
13991 | if (address_mode == mode_64bit && (sizeflag & SUFFIX_ALWAYS)) | |
13992 | { | |
13993 | *obufp++ = 'q'; | |
13994 | break; | |
13995 | } | |
13996 | /* Fall through. */ | |
98b528ac | 13997 | goto case_L; |
252b5132 | 13998 | case 'L': |
98b528ac L |
13999 | if (l != 0 || len != 1) |
14000 | { | |
14001 | SAVE_LAST (*p); | |
14002 | break; | |
14003 | } | |
14004 | case_L: | |
db6eb5be AM |
14005 | if (intel_syntax) |
14006 | break; | |
252b5132 RH |
14007 | if (sizeflag & SUFFIX_ALWAYS) |
14008 | *obufp++ = 'l'; | |
252b5132 | 14009 | break; |
9d141669 L |
14010 | case 'M': |
14011 | if (intel_mnemonic != cond) | |
14012 | *obufp++ = 'r'; | |
14013 | break; | |
252b5132 RH |
14014 | case 'N': |
14015 | if ((prefixes & PREFIX_FWAIT) == 0) | |
14016 | *obufp++ = 'n'; | |
7d421014 ILT |
14017 | else |
14018 | used_prefixes |= PREFIX_FWAIT; | |
252b5132 | 14019 | break; |
52b15da3 | 14020 | case 'O': |
161a04f6 L |
14021 | USED_REX (REX_W); |
14022 | if (rex & REX_W) | |
6439fc28 | 14023 | *obufp++ = 'o'; |
a35ca55a JB |
14024 | else if (intel_syntax && (sizeflag & DFLAG)) |
14025 | *obufp++ = 'q'; | |
52b15da3 JH |
14026 | else |
14027 | *obufp++ = 'd'; | |
161a04f6 | 14028 | if (!(rex & REX_W)) |
a35ca55a | 14029 | used_prefixes |= (prefixes & PREFIX_DATA); |
52b15da3 | 14030 | break; |
07f5af7d L |
14031 | case '&': |
14032 | if (!intel_syntax | |
14033 | && address_mode == mode_64bit | |
14034 | && isa64 == intel64) | |
14035 | { | |
14036 | *obufp++ = 'q'; | |
14037 | break; | |
14038 | } | |
14039 | /* Fall through. */ | |
6439fc28 | 14040 | case 'T': |
d9e3625e L |
14041 | if (!intel_syntax |
14042 | && address_mode == mode_64bit | |
7bb15c6f | 14043 | && ((sizeflag & DFLAG) || (rex & REX_W))) |
6439fc28 AM |
14044 | { |
14045 | *obufp++ = 'q'; | |
14046 | break; | |
14047 | } | |
6608db57 | 14048 | /* Fall through. */ |
4b4c407a | 14049 | goto case_P; |
252b5132 | 14050 | case 'P': |
4b4c407a | 14051 | if (l == 0 && len == 1) |
d9e3625e | 14052 | { |
4b4c407a L |
14053 | case_P: |
14054 | if (intel_syntax) | |
d9e3625e | 14055 | { |
4b4c407a L |
14056 | if ((rex & REX_W) == 0 |
14057 | && (prefixes & PREFIX_DATA)) | |
14058 | { | |
14059 | if ((sizeflag & DFLAG) == 0) | |
14060 | *obufp++ = 'w'; | |
14061 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14062 | } | |
14063 | break; | |
14064 | } | |
14065 | if ((prefixes & PREFIX_DATA) | |
14066 | || (rex & REX_W) | |
14067 | || (sizeflag & SUFFIX_ALWAYS)) | |
14068 | { | |
14069 | USED_REX (REX_W); | |
14070 | if (rex & REX_W) | |
14071 | *obufp++ = 'q'; | |
14072 | else | |
14073 | { | |
14074 | if (sizeflag & DFLAG) | |
14075 | *obufp++ = 'l'; | |
14076 | else | |
14077 | *obufp++ = 'w'; | |
14078 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14079 | } | |
d9e3625e | 14080 | } |
d9e3625e | 14081 | } |
4b4c407a | 14082 | else |
252b5132 | 14083 | { |
4b4c407a L |
14084 | if (l != 1 || len != 2 || last[0] != 'L') |
14085 | { | |
14086 | SAVE_LAST (*p); | |
14087 | break; | |
14088 | } | |
14089 | ||
14090 | if ((prefixes & PREFIX_DATA) | |
14091 | || (rex & REX_W) | |
14092 | || (sizeflag & SUFFIX_ALWAYS)) | |
52b15da3 | 14093 | { |
4b4c407a L |
14094 | USED_REX (REX_W); |
14095 | if (rex & REX_W) | |
14096 | *obufp++ = 'q'; | |
14097 | else | |
14098 | { | |
14099 | if (sizeflag & DFLAG) | |
14100 | *obufp++ = intel_syntax ? 'd' : 'l'; | |
14101 | else | |
14102 | *obufp++ = 'w'; | |
14103 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14104 | } | |
52b15da3 | 14105 | } |
252b5132 RH |
14106 | } |
14107 | break; | |
6439fc28 | 14108 | case 'U': |
db6eb5be AM |
14109 | if (intel_syntax) |
14110 | break; | |
7bb15c6f | 14111 | if (address_mode == mode_64bit |
6c067bbb | 14112 | && ((sizeflag & DFLAG) || (rex & REX_W))) |
6439fc28 | 14113 | { |
7967e09e | 14114 | if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS)) |
1a114b12 | 14115 | *obufp++ = 'q'; |
6439fc28 AM |
14116 | break; |
14117 | } | |
6608db57 | 14118 | /* Fall through. */ |
98b528ac | 14119 | goto case_Q; |
252b5132 | 14120 | case 'Q': |
98b528ac | 14121 | if (l == 0 && len == 1) |
252b5132 | 14122 | { |
98b528ac L |
14123 | case_Q: |
14124 | if (intel_syntax && !alt) | |
14125 | break; | |
14126 | USED_REX (REX_W); | |
14127 | if (modrm.mod != 3 || (sizeflag & SUFFIX_ALWAYS)) | |
52b15da3 | 14128 | { |
98b528ac L |
14129 | if (rex & REX_W) |
14130 | *obufp++ = 'q'; | |
52b15da3 | 14131 | else |
98b528ac L |
14132 | { |
14133 | if (sizeflag & DFLAG) | |
14134 | *obufp++ = intel_syntax ? 'd' : 'l'; | |
14135 | else | |
14136 | *obufp++ = 'w'; | |
f16cd0d5 | 14137 | used_prefixes |= (prefixes & PREFIX_DATA); |
98b528ac | 14138 | } |
52b15da3 | 14139 | } |
98b528ac L |
14140 | } |
14141 | else | |
14142 | { | |
14143 | if (l != 1 || len != 2 || last[0] != 'L') | |
14144 | { | |
14145 | SAVE_LAST (*p); | |
14146 | break; | |
14147 | } | |
14148 | if (intel_syntax | |
14149 | || (modrm.mod == 3 && !(sizeflag & SUFFIX_ALWAYS))) | |
14150 | break; | |
14151 | if ((rex & REX_W)) | |
14152 | { | |
14153 | USED_REX (REX_W); | |
14154 | *obufp++ = 'q'; | |
14155 | } | |
14156 | else | |
14157 | *obufp++ = 'l'; | |
252b5132 RH |
14158 | } |
14159 | break; | |
14160 | case 'R': | |
161a04f6 L |
14161 | USED_REX (REX_W); |
14162 | if (rex & REX_W) | |
a35ca55a JB |
14163 | *obufp++ = 'q'; |
14164 | else if (sizeflag & DFLAG) | |
c608c12e | 14165 | { |
a35ca55a | 14166 | if (intel_syntax) |
c608c12e | 14167 | *obufp++ = 'd'; |
c608c12e | 14168 | else |
a35ca55a | 14169 | *obufp++ = 'l'; |
c608c12e | 14170 | } |
252b5132 | 14171 | else |
a35ca55a JB |
14172 | *obufp++ = 'w'; |
14173 | if (intel_syntax && !p[1] | |
161a04f6 | 14174 | && ((rex & REX_W) || (sizeflag & DFLAG))) |
a35ca55a | 14175 | *obufp++ = 'e'; |
161a04f6 | 14176 | if (!(rex & REX_W)) |
52b15da3 | 14177 | used_prefixes |= (prefixes & PREFIX_DATA); |
252b5132 | 14178 | break; |
1a114b12 | 14179 | case 'V': |
4b06377f | 14180 | if (l == 0 && len == 1) |
1a114b12 | 14181 | { |
4b06377f L |
14182 | if (intel_syntax) |
14183 | break; | |
7bb15c6f | 14184 | if (address_mode == mode_64bit |
6c067bbb | 14185 | && ((sizeflag & DFLAG) || (rex & REX_W))) |
4b06377f L |
14186 | { |
14187 | if (sizeflag & SUFFIX_ALWAYS) | |
14188 | *obufp++ = 'q'; | |
14189 | break; | |
14190 | } | |
14191 | } | |
14192 | else | |
14193 | { | |
14194 | if (l != 1 | |
14195 | || len != 2 | |
14196 | || last[0] != 'L') | |
14197 | { | |
14198 | SAVE_LAST (*p); | |
14199 | break; | |
14200 | } | |
14201 | ||
14202 | if (rex & REX_W) | |
14203 | { | |
14204 | *obufp++ = 'a'; | |
14205 | *obufp++ = 'b'; | |
14206 | *obufp++ = 's'; | |
14207 | } | |
1a114b12 JB |
14208 | } |
14209 | /* Fall through. */ | |
4b06377f | 14210 | goto case_S; |
252b5132 | 14211 | case 'S': |
4b06377f | 14212 | if (l == 0 && len == 1) |
252b5132 | 14213 | { |
4b06377f L |
14214 | case_S: |
14215 | if (intel_syntax) | |
14216 | break; | |
14217 | if (sizeflag & SUFFIX_ALWAYS) | |
52b15da3 | 14218 | { |
4b06377f L |
14219 | if (rex & REX_W) |
14220 | *obufp++ = 'q'; | |
52b15da3 | 14221 | else |
4b06377f L |
14222 | { |
14223 | if (sizeflag & DFLAG) | |
14224 | *obufp++ = 'l'; | |
14225 | else | |
14226 | *obufp++ = 'w'; | |
14227 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14228 | } | |
14229 | } | |
14230 | } | |
14231 | else | |
14232 | { | |
14233 | if (l != 1 | |
14234 | || len != 2 | |
14235 | || last[0] != 'L') | |
14236 | { | |
14237 | SAVE_LAST (*p); | |
14238 | break; | |
52b15da3 | 14239 | } |
4b06377f L |
14240 | |
14241 | if (address_mode == mode_64bit | |
14242 | && !(prefixes & PREFIX_ADDR)) | |
14243 | { | |
14244 | *obufp++ = 'a'; | |
14245 | *obufp++ = 'b'; | |
14246 | *obufp++ = 's'; | |
14247 | } | |
14248 | ||
14249 | goto case_S; | |
252b5132 | 14250 | } |
252b5132 | 14251 | break; |
041bd2e0 | 14252 | case 'X': |
c0f3af97 L |
14253 | if (l != 0 || len != 1) |
14254 | { | |
14255 | SAVE_LAST (*p); | |
14256 | break; | |
14257 | } | |
14258 | if (need_vex && vex.prefix) | |
14259 | { | |
14260 | if (vex.prefix == DATA_PREFIX_OPCODE) | |
14261 | *obufp++ = 'd'; | |
14262 | else | |
14263 | *obufp++ = 's'; | |
14264 | } | |
041bd2e0 | 14265 | else |
f16cd0d5 L |
14266 | { |
14267 | if (prefixes & PREFIX_DATA) | |
14268 | *obufp++ = 'd'; | |
14269 | else | |
14270 | *obufp++ = 's'; | |
14271 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14272 | } | |
041bd2e0 | 14273 | break; |
76f227a5 | 14274 | case 'Y': |
c0f3af97 | 14275 | if (l == 0 && len == 1) |
76f227a5 | 14276 | { |
c0f3af97 L |
14277 | if (intel_syntax || !(sizeflag & SUFFIX_ALWAYS)) |
14278 | break; | |
14279 | if (rex & REX_W) | |
14280 | { | |
14281 | USED_REX (REX_W); | |
14282 | *obufp++ = 'q'; | |
14283 | } | |
14284 | break; | |
14285 | } | |
14286 | else | |
14287 | { | |
14288 | if (l != 1 || len != 2 || last[0] != 'X') | |
14289 | { | |
14290 | SAVE_LAST (*p); | |
14291 | break; | |
14292 | } | |
14293 | if (!need_vex) | |
14294 | abort (); | |
14295 | if (intel_syntax | |
04d824a4 | 14296 | || ((modrm.mod == 3 || vex.b) && !(sizeflag & SUFFIX_ALWAYS))) |
c0f3af97 L |
14297 | break; |
14298 | switch (vex.length) | |
14299 | { | |
14300 | case 128: | |
14301 | *obufp++ = 'x'; | |
14302 | break; | |
14303 | case 256: | |
14304 | *obufp++ = 'y'; | |
14305 | break; | |
04d824a4 JB |
14306 | case 512: |
14307 | if (!vex.evex) | |
c0f3af97 | 14308 | default: |
04d824a4 | 14309 | abort (); |
c0f3af97 | 14310 | } |
76f227a5 JH |
14311 | } |
14312 | break; | |
252b5132 | 14313 | case 'W': |
0bfee649 | 14314 | if (l == 0 && len == 1) |
a35ca55a | 14315 | { |
0bfee649 L |
14316 | /* operand size flag for cwtl, cbtw */ |
14317 | USED_REX (REX_W); | |
14318 | if (rex & REX_W) | |
14319 | { | |
14320 | if (intel_syntax) | |
14321 | *obufp++ = 'd'; | |
14322 | else | |
14323 | *obufp++ = 'l'; | |
14324 | } | |
14325 | else if (sizeflag & DFLAG) | |
14326 | *obufp++ = 'w'; | |
a35ca55a | 14327 | else |
0bfee649 L |
14328 | *obufp++ = 'b'; |
14329 | if (!(rex & REX_W)) | |
14330 | used_prefixes |= (prefixes & PREFIX_DATA); | |
a35ca55a | 14331 | } |
252b5132 | 14332 | else |
0bfee649 | 14333 | { |
6c30d220 L |
14334 | if (l != 1 |
14335 | || len != 2 | |
14336 | || (last[0] != 'X' | |
14337 | && last[0] != 'L')) | |
0bfee649 L |
14338 | { |
14339 | SAVE_LAST (*p); | |
14340 | break; | |
14341 | } | |
14342 | if (!need_vex) | |
14343 | abort (); | |
6c30d220 L |
14344 | if (last[0] == 'X') |
14345 | *obufp++ = vex.w ? 'd': 's'; | |
14346 | else | |
14347 | *obufp++ = vex.w ? 'q': 'd'; | |
0bfee649 | 14348 | } |
252b5132 | 14349 | break; |
a72d2af2 L |
14350 | case '^': |
14351 | if (intel_syntax) | |
14352 | break; | |
14353 | if ((prefixes & PREFIX_DATA) || (sizeflag & SUFFIX_ALWAYS)) | |
14354 | { | |
14355 | if (sizeflag & DFLAG) | |
14356 | *obufp++ = 'l'; | |
14357 | else | |
14358 | *obufp++ = 'w'; | |
14359 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14360 | } | |
14361 | break; | |
5db04b09 L |
14362 | case '@': |
14363 | if (intel_syntax) | |
14364 | break; | |
14365 | if (address_mode == mode_64bit | |
14366 | && (isa64 == intel64 | |
14367 | || ((sizeflag & DFLAG) || (rex & REX_W)))) | |
14368 | *obufp++ = 'q'; | |
14369 | else if ((prefixes & PREFIX_DATA)) | |
14370 | { | |
14371 | if (!(sizeflag & DFLAG)) | |
14372 | *obufp++ = 'w'; | |
14373 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14374 | } | |
14375 | break; | |
252b5132 | 14376 | } |
9306ca4a | 14377 | alt = 0; |
252b5132 RH |
14378 | } |
14379 | *obufp = 0; | |
ea397f5b | 14380 | mnemonicendp = obufp; |
6439fc28 | 14381 | return 0; |
252b5132 RH |
14382 | } |
14383 | ||
14384 | static void | |
26ca5450 | 14385 | oappend (const char *s) |
252b5132 | 14386 | { |
ea397f5b | 14387 | obufp = stpcpy (obufp, s); |
252b5132 RH |
14388 | } |
14389 | ||
14390 | static void | |
26ca5450 | 14391 | append_seg (void) |
252b5132 | 14392 | { |
285ca992 L |
14393 | /* Only print the active segment register. */ |
14394 | if (!active_seg_prefix) | |
14395 | return; | |
14396 | ||
14397 | used_prefixes |= active_seg_prefix; | |
14398 | switch (active_seg_prefix) | |
7d421014 | 14399 | { |
285ca992 | 14400 | case PREFIX_CS: |
9ce09ba2 | 14401 | oappend_maybe_intel ("%cs:"); |
285ca992 L |
14402 | break; |
14403 | case PREFIX_DS: | |
9ce09ba2 | 14404 | oappend_maybe_intel ("%ds:"); |
285ca992 L |
14405 | break; |
14406 | case PREFIX_SS: | |
9ce09ba2 | 14407 | oappend_maybe_intel ("%ss:"); |
285ca992 L |
14408 | break; |
14409 | case PREFIX_ES: | |
9ce09ba2 | 14410 | oappend_maybe_intel ("%es:"); |
285ca992 L |
14411 | break; |
14412 | case PREFIX_FS: | |
9ce09ba2 | 14413 | oappend_maybe_intel ("%fs:"); |
285ca992 L |
14414 | break; |
14415 | case PREFIX_GS: | |
9ce09ba2 | 14416 | oappend_maybe_intel ("%gs:"); |
285ca992 L |
14417 | break; |
14418 | default: | |
14419 | break; | |
7d421014 | 14420 | } |
252b5132 RH |
14421 | } |
14422 | ||
14423 | static void | |
26ca5450 | 14424 | OP_indirE (int bytemode, int sizeflag) |
252b5132 RH |
14425 | { |
14426 | if (!intel_syntax) | |
14427 | oappend ("*"); | |
14428 | OP_E (bytemode, sizeflag); | |
14429 | } | |
14430 | ||
52b15da3 | 14431 | static void |
26ca5450 | 14432 | print_operand_value (char *buf, int hex, bfd_vma disp) |
52b15da3 | 14433 | { |
cb712a9e | 14434 | if (address_mode == mode_64bit) |
52b15da3 JH |
14435 | { |
14436 | if (hex) | |
14437 | { | |
14438 | char tmp[30]; | |
14439 | int i; | |
14440 | buf[0] = '0'; | |
14441 | buf[1] = 'x'; | |
14442 | sprintf_vma (tmp, disp); | |
6608db57 | 14443 | for (i = 0; tmp[i] == '0' && tmp[i + 1]; i++); |
52b15da3 JH |
14444 | strcpy (buf + 2, tmp + i); |
14445 | } | |
14446 | else | |
14447 | { | |
14448 | bfd_signed_vma v = disp; | |
14449 | char tmp[30]; | |
14450 | int i; | |
14451 | if (v < 0) | |
14452 | { | |
14453 | *(buf++) = '-'; | |
14454 | v = -disp; | |
6608db57 | 14455 | /* Check for possible overflow on 0x8000000000000000. */ |
52b15da3 JH |
14456 | if (v < 0) |
14457 | { | |
14458 | strcpy (buf, "9223372036854775808"); | |
14459 | return; | |
14460 | } | |
14461 | } | |
14462 | if (!v) | |
14463 | { | |
14464 | strcpy (buf, "0"); | |
14465 | return; | |
14466 | } | |
14467 | ||
14468 | i = 0; | |
14469 | tmp[29] = 0; | |
14470 | while (v) | |
14471 | { | |
6608db57 | 14472 | tmp[28 - i] = (v % 10) + '0'; |
52b15da3 JH |
14473 | v /= 10; |
14474 | i++; | |
14475 | } | |
14476 | strcpy (buf, tmp + 29 - i); | |
14477 | } | |
14478 | } | |
14479 | else | |
14480 | { | |
14481 | if (hex) | |
14482 | sprintf (buf, "0x%x", (unsigned int) disp); | |
14483 | else | |
14484 | sprintf (buf, "%d", (int) disp); | |
14485 | } | |
14486 | } | |
14487 | ||
5d669648 L |
14488 | /* Put DISP in BUF as signed hex number. */ |
14489 | ||
14490 | static void | |
14491 | print_displacement (char *buf, bfd_vma disp) | |
14492 | { | |
14493 | bfd_signed_vma val = disp; | |
14494 | char tmp[30]; | |
14495 | int i, j = 0; | |
14496 | ||
14497 | if (val < 0) | |
14498 | { | |
14499 | buf[j++] = '-'; | |
14500 | val = -disp; | |
14501 | ||
14502 | /* Check for possible overflow. */ | |
14503 | if (val < 0) | |
14504 | { | |
14505 | switch (address_mode) | |
14506 | { | |
14507 | case mode_64bit: | |
14508 | strcpy (buf + j, "0x8000000000000000"); | |
14509 | break; | |
14510 | case mode_32bit: | |
14511 | strcpy (buf + j, "0x80000000"); | |
14512 | break; | |
14513 | case mode_16bit: | |
14514 | strcpy (buf + j, "0x8000"); | |
14515 | break; | |
14516 | } | |
14517 | return; | |
14518 | } | |
14519 | } | |
14520 | ||
14521 | buf[j++] = '0'; | |
14522 | buf[j++] = 'x'; | |
14523 | ||
0af1713e | 14524 | sprintf_vma (tmp, (bfd_vma) val); |
5d669648 L |
14525 | for (i = 0; tmp[i] == '0'; i++) |
14526 | continue; | |
14527 | if (tmp[i] == '\0') | |
14528 | i--; | |
14529 | strcpy (buf + j, tmp + i); | |
14530 | } | |
14531 | ||
3f31e633 JB |
14532 | static void |
14533 | intel_operand_size (int bytemode, int sizeflag) | |
14534 | { | |
43234a1e L |
14535 | if (vex.evex |
14536 | && vex.b | |
14537 | && (bytemode == x_mode | |
14538 | || bytemode == evex_half_bcst_xmmq_mode)) | |
14539 | { | |
14540 | if (vex.w) | |
14541 | oappend ("QWORD PTR "); | |
14542 | else | |
14543 | oappend ("DWORD PTR "); | |
14544 | return; | |
14545 | } | |
3f31e633 JB |
14546 | switch (bytemode) |
14547 | { | |
14548 | case b_mode: | |
b6169b20 | 14549 | case b_swap_mode: |
42903f7f | 14550 | case dqb_mode: |
1ba585e8 | 14551 | case db_mode: |
3f31e633 JB |
14552 | oappend ("BYTE PTR "); |
14553 | break; | |
14554 | case w_mode: | |
1ba585e8 | 14555 | case dw_mode: |
3f31e633 JB |
14556 | case dqw_mode: |
14557 | oappend ("WORD PTR "); | |
14558 | break; | |
07f5af7d L |
14559 | case indir_v_mode: |
14560 | if (address_mode == mode_64bit && isa64 == intel64) | |
14561 | { | |
14562 | oappend ("QWORD PTR "); | |
14563 | break; | |
14564 | } | |
1a0670f3 | 14565 | /* Fall through. */ |
1a114b12 | 14566 | case stack_v_mode: |
7bb15c6f | 14567 | if (address_mode == mode_64bit && ((sizeflag & DFLAG) || (rex & REX_W))) |
3f31e633 JB |
14568 | { |
14569 | oappend ("QWORD PTR "); | |
3f31e633 JB |
14570 | break; |
14571 | } | |
1a0670f3 | 14572 | /* Fall through. */ |
3f31e633 | 14573 | case v_mode: |
b6169b20 | 14574 | case v_swap_mode: |
3f31e633 | 14575 | case dq_mode: |
161a04f6 L |
14576 | USED_REX (REX_W); |
14577 | if (rex & REX_W) | |
3f31e633 | 14578 | oappend ("QWORD PTR "); |
3f31e633 | 14579 | else |
f16cd0d5 L |
14580 | { |
14581 | if ((sizeflag & DFLAG) || bytemode == dq_mode) | |
14582 | oappend ("DWORD PTR "); | |
14583 | else | |
14584 | oappend ("WORD PTR "); | |
14585 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14586 | } | |
3f31e633 | 14587 | break; |
52fd6d94 | 14588 | case z_mode: |
161a04f6 | 14589 | if ((rex & REX_W) || (sizeflag & DFLAG)) |
52fd6d94 JB |
14590 | *obufp++ = 'D'; |
14591 | oappend ("WORD PTR "); | |
161a04f6 | 14592 | if (!(rex & REX_W)) |
52fd6d94 JB |
14593 | used_prefixes |= (prefixes & PREFIX_DATA); |
14594 | break; | |
34b772a6 JB |
14595 | case a_mode: |
14596 | if (sizeflag & DFLAG) | |
14597 | oappend ("QWORD PTR "); | |
14598 | else | |
14599 | oappend ("DWORD PTR "); | |
14600 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14601 | break; | |
3f31e633 | 14602 | case d_mode: |
539f890d L |
14603 | case d_scalar_mode: |
14604 | case d_scalar_swap_mode: | |
fa99fab2 | 14605 | case d_swap_mode: |
42903f7f | 14606 | case dqd_mode: |
3f31e633 JB |
14607 | oappend ("DWORD PTR "); |
14608 | break; | |
14609 | case q_mode: | |
539f890d L |
14610 | case q_scalar_mode: |
14611 | case q_scalar_swap_mode: | |
b6169b20 | 14612 | case q_swap_mode: |
3f31e633 JB |
14613 | oappend ("QWORD PTR "); |
14614 | break; | |
14615 | case m_mode: | |
cb712a9e | 14616 | if (address_mode == mode_64bit) |
3f31e633 JB |
14617 | oappend ("QWORD PTR "); |
14618 | else | |
14619 | oappend ("DWORD PTR "); | |
14620 | break; | |
14621 | case f_mode: | |
14622 | if (sizeflag & DFLAG) | |
14623 | oappend ("FWORD PTR "); | |
14624 | else | |
14625 | oappend ("DWORD PTR "); | |
14626 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14627 | break; | |
14628 | case t_mode: | |
14629 | oappend ("TBYTE PTR "); | |
14630 | break; | |
14631 | case x_mode: | |
b6169b20 | 14632 | case x_swap_mode: |
43234a1e L |
14633 | case evex_x_gscat_mode: |
14634 | case evex_x_nobcst_mode: | |
c0f3af97 L |
14635 | if (need_vex) |
14636 | { | |
14637 | switch (vex.length) | |
14638 | { | |
14639 | case 128: | |
14640 | oappend ("XMMWORD PTR "); | |
14641 | break; | |
14642 | case 256: | |
14643 | oappend ("YMMWORD PTR "); | |
14644 | break; | |
43234a1e L |
14645 | case 512: |
14646 | oappend ("ZMMWORD PTR "); | |
14647 | break; | |
c0f3af97 L |
14648 | default: |
14649 | abort (); | |
14650 | } | |
14651 | } | |
14652 | else | |
14653 | oappend ("XMMWORD PTR "); | |
14654 | break; | |
14655 | case xmm_mode: | |
3f31e633 JB |
14656 | oappend ("XMMWORD PTR "); |
14657 | break; | |
43234a1e L |
14658 | case ymm_mode: |
14659 | oappend ("YMMWORD PTR "); | |
14660 | break; | |
c0f3af97 | 14661 | case xmmq_mode: |
43234a1e | 14662 | case evex_half_bcst_xmmq_mode: |
c0f3af97 L |
14663 | if (!need_vex) |
14664 | abort (); | |
14665 | ||
14666 | switch (vex.length) | |
14667 | { | |
14668 | case 128: | |
14669 | oappend ("QWORD PTR "); | |
14670 | break; | |
14671 | case 256: | |
14672 | oappend ("XMMWORD PTR "); | |
14673 | break; | |
43234a1e L |
14674 | case 512: |
14675 | oappend ("YMMWORD PTR "); | |
14676 | break; | |
c0f3af97 L |
14677 | default: |
14678 | abort (); | |
14679 | } | |
14680 | break; | |
6c30d220 L |
14681 | case xmm_mb_mode: |
14682 | if (!need_vex) | |
14683 | abort (); | |
14684 | ||
14685 | switch (vex.length) | |
14686 | { | |
14687 | case 128: | |
14688 | case 256: | |
43234a1e | 14689 | case 512: |
6c30d220 L |
14690 | oappend ("BYTE PTR "); |
14691 | break; | |
14692 | default: | |
14693 | abort (); | |
14694 | } | |
14695 | break; | |
14696 | case xmm_mw_mode: | |
14697 | if (!need_vex) | |
14698 | abort (); | |
14699 | ||
14700 | switch (vex.length) | |
14701 | { | |
14702 | case 128: | |
14703 | case 256: | |
43234a1e | 14704 | case 512: |
6c30d220 L |
14705 | oappend ("WORD PTR "); |
14706 | break; | |
14707 | default: | |
14708 | abort (); | |
14709 | } | |
14710 | break; | |
14711 | case xmm_md_mode: | |
14712 | if (!need_vex) | |
14713 | abort (); | |
14714 | ||
14715 | switch (vex.length) | |
14716 | { | |
14717 | case 128: | |
14718 | case 256: | |
43234a1e | 14719 | case 512: |
6c30d220 L |
14720 | oappend ("DWORD PTR "); |
14721 | break; | |
14722 | default: | |
14723 | abort (); | |
14724 | } | |
14725 | break; | |
14726 | case xmm_mq_mode: | |
14727 | if (!need_vex) | |
14728 | abort (); | |
14729 | ||
14730 | switch (vex.length) | |
14731 | { | |
14732 | case 128: | |
14733 | case 256: | |
43234a1e | 14734 | case 512: |
6c30d220 L |
14735 | oappend ("QWORD PTR "); |
14736 | break; | |
14737 | default: | |
14738 | abort (); | |
14739 | } | |
14740 | break; | |
14741 | case xmmdw_mode: | |
14742 | if (!need_vex) | |
14743 | abort (); | |
14744 | ||
14745 | switch (vex.length) | |
14746 | { | |
14747 | case 128: | |
14748 | oappend ("WORD PTR "); | |
14749 | break; | |
14750 | case 256: | |
14751 | oappend ("DWORD PTR "); | |
14752 | break; | |
43234a1e L |
14753 | case 512: |
14754 | oappend ("QWORD PTR "); | |
14755 | break; | |
6c30d220 L |
14756 | default: |
14757 | abort (); | |
14758 | } | |
14759 | break; | |
14760 | case xmmqd_mode: | |
14761 | if (!need_vex) | |
14762 | abort (); | |
14763 | ||
14764 | switch (vex.length) | |
14765 | { | |
14766 | case 128: | |
14767 | oappend ("DWORD PTR "); | |
14768 | break; | |
14769 | case 256: | |
14770 | oappend ("QWORD PTR "); | |
14771 | break; | |
43234a1e L |
14772 | case 512: |
14773 | oappend ("XMMWORD PTR "); | |
14774 | break; | |
6c30d220 L |
14775 | default: |
14776 | abort (); | |
14777 | } | |
14778 | break; | |
c0f3af97 L |
14779 | case ymmq_mode: |
14780 | if (!need_vex) | |
14781 | abort (); | |
14782 | ||
14783 | switch (vex.length) | |
14784 | { | |
14785 | case 128: | |
14786 | oappend ("QWORD PTR "); | |
14787 | break; | |
14788 | case 256: | |
14789 | oappend ("YMMWORD PTR "); | |
14790 | break; | |
43234a1e L |
14791 | case 512: |
14792 | oappend ("ZMMWORD PTR "); | |
14793 | break; | |
c0f3af97 L |
14794 | default: |
14795 | abort (); | |
14796 | } | |
14797 | break; | |
6c30d220 L |
14798 | case ymmxmm_mode: |
14799 | if (!need_vex) | |
14800 | abort (); | |
14801 | ||
14802 | switch (vex.length) | |
14803 | { | |
14804 | case 128: | |
14805 | case 256: | |
14806 | oappend ("XMMWORD PTR "); | |
14807 | break; | |
14808 | default: | |
14809 | abort (); | |
14810 | } | |
14811 | break; | |
fb9c77c7 L |
14812 | case o_mode: |
14813 | oappend ("OWORD PTR "); | |
14814 | break; | |
43234a1e | 14815 | case xmm_mdq_mode: |
0bfee649 | 14816 | case vex_w_dq_mode: |
1c480963 | 14817 | case vex_scalar_w_dq_mode: |
0bfee649 L |
14818 | if (!need_vex) |
14819 | abort (); | |
14820 | ||
14821 | if (vex.w) | |
14822 | oappend ("QWORD PTR "); | |
14823 | else | |
14824 | oappend ("DWORD PTR "); | |
14825 | break; | |
43234a1e L |
14826 | case vex_vsib_d_w_dq_mode: |
14827 | case vex_vsib_q_w_dq_mode: | |
14828 | if (!need_vex) | |
14829 | abort (); | |
14830 | ||
14831 | if (!vex.evex) | |
14832 | { | |
14833 | if (vex.w) | |
14834 | oappend ("QWORD PTR "); | |
14835 | else | |
14836 | oappend ("DWORD PTR "); | |
14837 | } | |
14838 | else | |
14839 | { | |
b28d1bda IT |
14840 | switch (vex.length) |
14841 | { | |
14842 | case 128: | |
14843 | oappend ("XMMWORD PTR "); | |
14844 | break; | |
14845 | case 256: | |
14846 | oappend ("YMMWORD PTR "); | |
14847 | break; | |
14848 | case 512: | |
14849 | oappend ("ZMMWORD PTR "); | |
14850 | break; | |
14851 | default: | |
14852 | abort (); | |
14853 | } | |
43234a1e L |
14854 | } |
14855 | break; | |
5fc35d96 IT |
14856 | case vex_vsib_q_w_d_mode: |
14857 | case vex_vsib_d_w_d_mode: | |
b28d1bda | 14858 | if (!need_vex || !vex.evex) |
5fc35d96 IT |
14859 | abort (); |
14860 | ||
b28d1bda IT |
14861 | switch (vex.length) |
14862 | { | |
14863 | case 128: | |
14864 | oappend ("QWORD PTR "); | |
14865 | break; | |
14866 | case 256: | |
14867 | oappend ("XMMWORD PTR "); | |
14868 | break; | |
14869 | case 512: | |
14870 | oappend ("YMMWORD PTR "); | |
14871 | break; | |
14872 | default: | |
14873 | abort (); | |
14874 | } | |
5fc35d96 IT |
14875 | |
14876 | break; | |
1ba585e8 IT |
14877 | case mask_bd_mode: |
14878 | if (!need_vex || vex.length != 128) | |
14879 | abort (); | |
14880 | if (vex.w) | |
14881 | oappend ("DWORD PTR "); | |
14882 | else | |
14883 | oappend ("BYTE PTR "); | |
14884 | break; | |
43234a1e L |
14885 | case mask_mode: |
14886 | if (!need_vex) | |
14887 | abort (); | |
1ba585e8 IT |
14888 | if (vex.w) |
14889 | oappend ("QWORD PTR "); | |
14890 | else | |
14891 | oappend ("WORD PTR "); | |
43234a1e | 14892 | break; |
6c75cc62 | 14893 | case v_bnd_mode: |
3f31e633 JB |
14894 | default: |
14895 | break; | |
14896 | } | |
14897 | } | |
14898 | ||
252b5132 | 14899 | static void |
c0f3af97 | 14900 | OP_E_register (int bytemode, int sizeflag) |
252b5132 | 14901 | { |
c0f3af97 L |
14902 | int reg = modrm.rm; |
14903 | const char **names; | |
252b5132 | 14904 | |
c0f3af97 L |
14905 | USED_REX (REX_B); |
14906 | if ((rex & REX_B)) | |
14907 | reg += 8; | |
252b5132 | 14908 | |
b6169b20 | 14909 | if ((sizeflag & SUFFIX_ALWAYS) |
1ba585e8 | 14910 | && (bytemode == b_swap_mode |
60227d64 | 14911 | || bytemode == v_swap_mode)) |
b6169b20 L |
14912 | swap_operand (); |
14913 | ||
c0f3af97 | 14914 | switch (bytemode) |
252b5132 | 14915 | { |
c0f3af97 | 14916 | case b_mode: |
b6169b20 | 14917 | case b_swap_mode: |
c0f3af97 L |
14918 | USED_REX (0); |
14919 | if (rex) | |
14920 | names = names8rex; | |
14921 | else | |
14922 | names = names8; | |
14923 | break; | |
14924 | case w_mode: | |
14925 | names = names16; | |
14926 | break; | |
14927 | case d_mode: | |
1ba585e8 IT |
14928 | case dw_mode: |
14929 | case db_mode: | |
c0f3af97 L |
14930 | names = names32; |
14931 | break; | |
14932 | case q_mode: | |
14933 | names = names64; | |
14934 | break; | |
14935 | case m_mode: | |
6c75cc62 | 14936 | case v_bnd_mode: |
c0f3af97 L |
14937 | names = address_mode == mode_64bit ? names64 : names32; |
14938 | break; | |
7e8b059b L |
14939 | case bnd_mode: |
14940 | names = names_bnd; | |
14941 | break; | |
07f5af7d L |
14942 | case indir_v_mode: |
14943 | if (address_mode == mode_64bit && isa64 == intel64) | |
14944 | { | |
14945 | names = names64; | |
14946 | break; | |
14947 | } | |
1a0670f3 | 14948 | /* Fall through. */ |
c0f3af97 | 14949 | case stack_v_mode: |
7bb15c6f | 14950 | if (address_mode == mode_64bit && ((sizeflag & DFLAG) || (rex & REX_W))) |
252b5132 | 14951 | { |
c0f3af97 | 14952 | names = names64; |
252b5132 | 14953 | break; |
252b5132 | 14954 | } |
c0f3af97 | 14955 | bytemode = v_mode; |
1a0670f3 | 14956 | /* Fall through. */ |
c0f3af97 | 14957 | case v_mode: |
b6169b20 | 14958 | case v_swap_mode: |
c0f3af97 L |
14959 | case dq_mode: |
14960 | case dqb_mode: | |
14961 | case dqd_mode: | |
14962 | case dqw_mode: | |
14963 | USED_REX (REX_W); | |
14964 | if (rex & REX_W) | |
14965 | names = names64; | |
c0f3af97 | 14966 | else |
f16cd0d5 | 14967 | { |
7bb15c6f | 14968 | if ((sizeflag & DFLAG) |
f16cd0d5 L |
14969 | || (bytemode != v_mode |
14970 | && bytemode != v_swap_mode)) | |
14971 | names = names32; | |
14972 | else | |
14973 | names = names16; | |
14974 | used_prefixes |= (prefixes & PREFIX_DATA); | |
14975 | } | |
c0f3af97 | 14976 | break; |
1ba585e8 | 14977 | case mask_bd_mode: |
43234a1e | 14978 | case mask_mode: |
9889cbb1 L |
14979 | if (reg > 0x7) |
14980 | { | |
14981 | oappend ("(bad)"); | |
14982 | return; | |
14983 | } | |
43234a1e L |
14984 | names = names_mask; |
14985 | break; | |
c0f3af97 L |
14986 | case 0: |
14987 | return; | |
14988 | default: | |
14989 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
252b5132 RH |
14990 | return; |
14991 | } | |
c0f3af97 L |
14992 | oappend (names[reg]); |
14993 | } | |
14994 | ||
14995 | static void | |
c1e679ec | 14996 | OP_E_memory (int bytemode, int sizeflag) |
c0f3af97 L |
14997 | { |
14998 | bfd_vma disp = 0; | |
14999 | int add = (rex & REX_B) ? 8 : 0; | |
15000 | int riprel = 0; | |
43234a1e L |
15001 | int shift; |
15002 | ||
15003 | if (vex.evex) | |
15004 | { | |
15005 | /* In EVEX, if operand doesn't allow broadcast, vex.b should be 0. */ | |
15006 | if (vex.b | |
15007 | && bytemode != x_mode | |
90a915bf | 15008 | && bytemode != xmmq_mode |
43234a1e L |
15009 | && bytemode != evex_half_bcst_xmmq_mode) |
15010 | { | |
15011 | BadOp (); | |
15012 | return; | |
15013 | } | |
15014 | switch (bytemode) | |
15015 | { | |
1ba585e8 IT |
15016 | case dqw_mode: |
15017 | case dw_mode: | |
1ba585e8 IT |
15018 | shift = 1; |
15019 | break; | |
15020 | case dqb_mode: | |
15021 | case db_mode: | |
15022 | shift = 0; | |
15023 | break; | |
43234a1e | 15024 | case vex_vsib_d_w_dq_mode: |
5fc35d96 | 15025 | case vex_vsib_d_w_d_mode: |
eaa9d1ad | 15026 | case vex_vsib_q_w_dq_mode: |
5fc35d96 | 15027 | case vex_vsib_q_w_d_mode: |
43234a1e L |
15028 | case evex_x_gscat_mode: |
15029 | case xmm_mdq_mode: | |
15030 | shift = vex.w ? 3 : 2; | |
15031 | break; | |
43234a1e L |
15032 | case x_mode: |
15033 | case evex_half_bcst_xmmq_mode: | |
90a915bf | 15034 | case xmmq_mode: |
43234a1e L |
15035 | if (vex.b) |
15036 | { | |
15037 | shift = vex.w ? 3 : 2; | |
15038 | break; | |
15039 | } | |
1a0670f3 | 15040 | /* Fall through. */ |
43234a1e L |
15041 | case xmmqd_mode: |
15042 | case xmmdw_mode: | |
43234a1e L |
15043 | case ymmq_mode: |
15044 | case evex_x_nobcst_mode: | |
15045 | case x_swap_mode: | |
15046 | switch (vex.length) | |
15047 | { | |
15048 | case 128: | |
15049 | shift = 4; | |
15050 | break; | |
15051 | case 256: | |
15052 | shift = 5; | |
15053 | break; | |
15054 | case 512: | |
15055 | shift = 6; | |
15056 | break; | |
15057 | default: | |
15058 | abort (); | |
15059 | } | |
15060 | break; | |
15061 | case ymm_mode: | |
15062 | shift = 5; | |
15063 | break; | |
15064 | case xmm_mode: | |
15065 | shift = 4; | |
15066 | break; | |
15067 | case xmm_mq_mode: | |
15068 | case q_mode: | |
15069 | case q_scalar_mode: | |
15070 | case q_swap_mode: | |
15071 | case q_scalar_swap_mode: | |
15072 | shift = 3; | |
15073 | break; | |
15074 | case dqd_mode: | |
15075 | case xmm_md_mode: | |
15076 | case d_mode: | |
15077 | case d_scalar_mode: | |
15078 | case d_swap_mode: | |
15079 | case d_scalar_swap_mode: | |
15080 | shift = 2; | |
15081 | break; | |
15082 | case xmm_mw_mode: | |
15083 | shift = 1; | |
15084 | break; | |
15085 | case xmm_mb_mode: | |
15086 | shift = 0; | |
15087 | break; | |
15088 | default: | |
15089 | abort (); | |
15090 | } | |
15091 | /* Make necessary corrections to shift for modes that need it. | |
15092 | For these modes we currently have shift 4, 5 or 6 depending on | |
15093 | vex.length (it corresponds to xmmword, ymmword or zmmword | |
15094 | operand). We might want to make it 3, 4 or 5 (e.g. for | |
15095 | xmmq_mode). In case of broadcast enabled the corrections | |
15096 | aren't needed, as element size is always 32 or 64 bits. */ | |
90a915bf IT |
15097 | if (!vex.b |
15098 | && (bytemode == xmmq_mode | |
15099 | || bytemode == evex_half_bcst_xmmq_mode)) | |
43234a1e L |
15100 | shift -= 1; |
15101 | else if (bytemode == xmmqd_mode) | |
15102 | shift -= 2; | |
15103 | else if (bytemode == xmmdw_mode) | |
15104 | shift -= 3; | |
b28d1bda IT |
15105 | else if (bytemode == ymmq_mode && vex.length == 128) |
15106 | shift -= 1; | |
43234a1e L |
15107 | } |
15108 | else | |
15109 | shift = 0; | |
252b5132 | 15110 | |
c0f3af97 | 15111 | USED_REX (REX_B); |
3f31e633 JB |
15112 | if (intel_syntax) |
15113 | intel_operand_size (bytemode, sizeflag); | |
252b5132 RH |
15114 | append_seg (); |
15115 | ||
5d669648 | 15116 | if ((sizeflag & AFLAG) || address_mode == mode_64bit) |
252b5132 | 15117 | { |
5d669648 L |
15118 | /* 32/64 bit address mode */ |
15119 | int havedisp; | |
252b5132 RH |
15120 | int havesib; |
15121 | int havebase; | |
0f7da397 | 15122 | int haveindex; |
20afcfb7 | 15123 | int needindex; |
82c18208 | 15124 | int base, rbase; |
91d6fa6a | 15125 | int vindex = 0; |
252b5132 | 15126 | int scale = 0; |
7e8b059b L |
15127 | int addr32flag = !((sizeflag & AFLAG) |
15128 | || bytemode == v_bnd_mode | |
15129 | || bytemode == bnd_mode); | |
6c30d220 L |
15130 | const char **indexes64 = names64; |
15131 | const char **indexes32 = names32; | |
252b5132 RH |
15132 | |
15133 | havesib = 0; | |
15134 | havebase = 1; | |
0f7da397 | 15135 | haveindex = 0; |
7967e09e | 15136 | base = modrm.rm; |
252b5132 RH |
15137 | |
15138 | if (base == 4) | |
15139 | { | |
15140 | havesib = 1; | |
dfc8cf43 | 15141 | vindex = sib.index; |
161a04f6 L |
15142 | USED_REX (REX_X); |
15143 | if (rex & REX_X) | |
91d6fa6a | 15144 | vindex += 8; |
6c30d220 L |
15145 | switch (bytemode) |
15146 | { | |
15147 | case vex_vsib_d_w_dq_mode: | |
5fc35d96 | 15148 | case vex_vsib_d_w_d_mode: |
6c30d220 | 15149 | case vex_vsib_q_w_dq_mode: |
5fc35d96 | 15150 | case vex_vsib_q_w_d_mode: |
6c30d220 L |
15151 | if (!need_vex) |
15152 | abort (); | |
43234a1e L |
15153 | if (vex.evex) |
15154 | { | |
15155 | if (!vex.v) | |
15156 | vindex += 16; | |
15157 | } | |
6c30d220 L |
15158 | |
15159 | haveindex = 1; | |
15160 | switch (vex.length) | |
15161 | { | |
15162 | case 128: | |
7bb15c6f | 15163 | indexes64 = indexes32 = names_xmm; |
6c30d220 L |
15164 | break; |
15165 | case 256: | |
5fc35d96 IT |
15166 | if (!vex.w |
15167 | || bytemode == vex_vsib_q_w_dq_mode | |
15168 | || bytemode == vex_vsib_q_w_d_mode) | |
7bb15c6f | 15169 | indexes64 = indexes32 = names_ymm; |
6c30d220 | 15170 | else |
7bb15c6f | 15171 | indexes64 = indexes32 = names_xmm; |
6c30d220 | 15172 | break; |
43234a1e | 15173 | case 512: |
5fc35d96 IT |
15174 | if (!vex.w |
15175 | || bytemode == vex_vsib_q_w_dq_mode | |
15176 | || bytemode == vex_vsib_q_w_d_mode) | |
43234a1e L |
15177 | indexes64 = indexes32 = names_zmm; |
15178 | else | |
15179 | indexes64 = indexes32 = names_ymm; | |
15180 | break; | |
6c30d220 L |
15181 | default: |
15182 | abort (); | |
15183 | } | |
15184 | break; | |
15185 | default: | |
15186 | haveindex = vindex != 4; | |
15187 | break; | |
15188 | } | |
15189 | scale = sib.scale; | |
15190 | base = sib.base; | |
252b5132 RH |
15191 | codep++; |
15192 | } | |
82c18208 | 15193 | rbase = base + add; |
252b5132 | 15194 | |
7967e09e | 15195 | switch (modrm.mod) |
252b5132 RH |
15196 | { |
15197 | case 0: | |
82c18208 | 15198 | if (base == 5) |
252b5132 RH |
15199 | { |
15200 | havebase = 0; | |
cb712a9e | 15201 | if (address_mode == mode_64bit && !havesib) |
52b15da3 JH |
15202 | riprel = 1; |
15203 | disp = get32s (); | |
252b5132 RH |
15204 | } |
15205 | break; | |
15206 | case 1: | |
15207 | FETCH_DATA (the_info, codep + 1); | |
15208 | disp = *codep++; | |
15209 | if ((disp & 0x80) != 0) | |
15210 | disp -= 0x100; | |
43234a1e L |
15211 | if (vex.evex && shift > 0) |
15212 | disp <<= shift; | |
252b5132 RH |
15213 | break; |
15214 | case 2: | |
52b15da3 | 15215 | disp = get32s (); |
252b5132 RH |
15216 | break; |
15217 | } | |
15218 | ||
20afcfb7 L |
15219 | /* In 32bit mode, we need index register to tell [offset] from |
15220 | [eiz*1 + offset]. */ | |
15221 | needindex = (havesib | |
15222 | && !havebase | |
15223 | && !haveindex | |
15224 | && address_mode == mode_32bit); | |
15225 | havedisp = (havebase | |
15226 | || needindex | |
15227 | || (havesib && (haveindex || scale != 0))); | |
5d669648 | 15228 | |
252b5132 | 15229 | if (!intel_syntax) |
82c18208 | 15230 | if (modrm.mod != 0 || base == 5) |
db6eb5be | 15231 | { |
5d669648 L |
15232 | if (havedisp || riprel) |
15233 | print_displacement (scratchbuf, disp); | |
15234 | else | |
15235 | print_operand_value (scratchbuf, 1, disp); | |
db6eb5be | 15236 | oappend (scratchbuf); |
52b15da3 JH |
15237 | if (riprel) |
15238 | { | |
15239 | set_op (disp, 1); | |
28596323 | 15240 | oappend (!addr32flag ? "(%rip)" : "(%eip)"); |
52b15da3 | 15241 | } |
db6eb5be | 15242 | } |
2da11e11 | 15243 | |
7e8b059b L |
15244 | if ((havebase || haveindex || riprel) |
15245 | && (bytemode != v_bnd_mode) | |
15246 | && (bytemode != bnd_mode)) | |
87767711 JB |
15247 | used_prefixes |= PREFIX_ADDR; |
15248 | ||
5d669648 | 15249 | if (havedisp || (intel_syntax && riprel)) |
252b5132 | 15250 | { |
252b5132 | 15251 | *obufp++ = open_char; |
52b15da3 | 15252 | if (intel_syntax && riprel) |
185b1163 L |
15253 | { |
15254 | set_op (disp, 1); | |
28596323 | 15255 | oappend (!addr32flag ? "rip" : "eip"); |
185b1163 | 15256 | } |
db6eb5be | 15257 | *obufp = '\0'; |
252b5132 | 15258 | if (havebase) |
7e8b059b | 15259 | oappend (address_mode == mode_64bit && !addr32flag |
82c18208 | 15260 | ? names64[rbase] : names32[rbase]); |
252b5132 RH |
15261 | if (havesib) |
15262 | { | |
db51cc60 L |
15263 | /* ESP/RSP won't allow index. If base isn't ESP/RSP, |
15264 | print index to tell base + index from base. */ | |
15265 | if (scale != 0 | |
20afcfb7 | 15266 | || needindex |
db51cc60 L |
15267 | || haveindex |
15268 | || (havebase && base != ESP_REG_NUM)) | |
252b5132 | 15269 | { |
9306ca4a | 15270 | if (!intel_syntax || havebase) |
db6eb5be | 15271 | { |
9306ca4a JB |
15272 | *obufp++ = separator_char; |
15273 | *obufp = '\0'; | |
db6eb5be | 15274 | } |
db51cc60 | 15275 | if (haveindex) |
7e8b059b | 15276 | oappend (address_mode == mode_64bit && !addr32flag |
6c30d220 | 15277 | ? indexes64[vindex] : indexes32[vindex]); |
db51cc60 | 15278 | else |
7e8b059b | 15279 | oappend (address_mode == mode_64bit && !addr32flag |
db51cc60 L |
15280 | ? index64 : index32); |
15281 | ||
db6eb5be AM |
15282 | *obufp++ = scale_char; |
15283 | *obufp = '\0'; | |
15284 | sprintf (scratchbuf, "%d", 1 << scale); | |
15285 | oappend (scratchbuf); | |
15286 | } | |
252b5132 | 15287 | } |
185b1163 | 15288 | if (intel_syntax |
82c18208 | 15289 | && (disp || modrm.mod != 0 || base == 5)) |
3d456fa1 | 15290 | { |
db51cc60 | 15291 | if (!havedisp || (bfd_signed_vma) disp >= 0) |
3d456fa1 JB |
15292 | { |
15293 | *obufp++ = '+'; | |
15294 | *obufp = '\0'; | |
15295 | } | |
05203043 | 15296 | else if (modrm.mod != 1 && disp != -disp) |
3d456fa1 JB |
15297 | { |
15298 | *obufp++ = '-'; | |
15299 | *obufp = '\0'; | |
15300 | disp = - (bfd_signed_vma) disp; | |
15301 | } | |
15302 | ||
db51cc60 L |
15303 | if (havedisp) |
15304 | print_displacement (scratchbuf, disp); | |
15305 | else | |
15306 | print_operand_value (scratchbuf, 1, disp); | |
3d456fa1 JB |
15307 | oappend (scratchbuf); |
15308 | } | |
252b5132 RH |
15309 | |
15310 | *obufp++ = close_char; | |
db6eb5be | 15311 | *obufp = '\0'; |
252b5132 RH |
15312 | } |
15313 | else if (intel_syntax) | |
db6eb5be | 15314 | { |
82c18208 | 15315 | if (modrm.mod != 0 || base == 5) |
db6eb5be | 15316 | { |
285ca992 | 15317 | if (!active_seg_prefix) |
252b5132 | 15318 | { |
d708bcba | 15319 | oappend (names_seg[ds_reg - es_reg]); |
252b5132 RH |
15320 | oappend (":"); |
15321 | } | |
52b15da3 | 15322 | print_operand_value (scratchbuf, 1, disp); |
db6eb5be AM |
15323 | oappend (scratchbuf); |
15324 | } | |
15325 | } | |
252b5132 RH |
15326 | } |
15327 | else | |
f16cd0d5 L |
15328 | { |
15329 | /* 16 bit address mode */ | |
15330 | used_prefixes |= prefixes & PREFIX_ADDR; | |
7967e09e | 15331 | switch (modrm.mod) |
252b5132 RH |
15332 | { |
15333 | case 0: | |
7967e09e | 15334 | if (modrm.rm == 6) |
252b5132 RH |
15335 | { |
15336 | disp = get16 (); | |
15337 | if ((disp & 0x8000) != 0) | |
15338 | disp -= 0x10000; | |
15339 | } | |
15340 | break; | |
15341 | case 1: | |
15342 | FETCH_DATA (the_info, codep + 1); | |
15343 | disp = *codep++; | |
15344 | if ((disp & 0x80) != 0) | |
15345 | disp -= 0x100; | |
15346 | break; | |
15347 | case 2: | |
15348 | disp = get16 (); | |
15349 | if ((disp & 0x8000) != 0) | |
15350 | disp -= 0x10000; | |
15351 | break; | |
15352 | } | |
15353 | ||
15354 | if (!intel_syntax) | |
7967e09e | 15355 | if (modrm.mod != 0 || modrm.rm == 6) |
db6eb5be | 15356 | { |
5d669648 | 15357 | print_displacement (scratchbuf, disp); |
db6eb5be AM |
15358 | oappend (scratchbuf); |
15359 | } | |
252b5132 | 15360 | |
7967e09e | 15361 | if (modrm.mod != 0 || modrm.rm != 6) |
252b5132 RH |
15362 | { |
15363 | *obufp++ = open_char; | |
db6eb5be | 15364 | *obufp = '\0'; |
7967e09e | 15365 | oappend (index16[modrm.rm]); |
5d669648 L |
15366 | if (intel_syntax |
15367 | && (disp || modrm.mod != 0 || modrm.rm == 6)) | |
3d456fa1 | 15368 | { |
5d669648 | 15369 | if ((bfd_signed_vma) disp >= 0) |
3d456fa1 JB |
15370 | { |
15371 | *obufp++ = '+'; | |
15372 | *obufp = '\0'; | |
15373 | } | |
7967e09e | 15374 | else if (modrm.mod != 1) |
3d456fa1 JB |
15375 | { |
15376 | *obufp++ = '-'; | |
15377 | *obufp = '\0'; | |
15378 | disp = - (bfd_signed_vma) disp; | |
15379 | } | |
15380 | ||
5d669648 | 15381 | print_displacement (scratchbuf, disp); |
3d456fa1 JB |
15382 | oappend (scratchbuf); |
15383 | } | |
15384 | ||
db6eb5be AM |
15385 | *obufp++ = close_char; |
15386 | *obufp = '\0'; | |
252b5132 | 15387 | } |
3d456fa1 JB |
15388 | else if (intel_syntax) |
15389 | { | |
285ca992 | 15390 | if (!active_seg_prefix) |
3d456fa1 JB |
15391 | { |
15392 | oappend (names_seg[ds_reg - es_reg]); | |
15393 | oappend (":"); | |
15394 | } | |
15395 | print_operand_value (scratchbuf, 1, disp & 0xffff); | |
15396 | oappend (scratchbuf); | |
15397 | } | |
252b5132 | 15398 | } |
43234a1e L |
15399 | if (vex.evex && vex.b |
15400 | && (bytemode == x_mode | |
90a915bf | 15401 | || bytemode == xmmq_mode |
43234a1e L |
15402 | || bytemode == evex_half_bcst_xmmq_mode)) |
15403 | { | |
90a915bf IT |
15404 | if (vex.w |
15405 | || bytemode == xmmq_mode | |
15406 | || bytemode == evex_half_bcst_xmmq_mode) | |
b28d1bda IT |
15407 | { |
15408 | switch (vex.length) | |
15409 | { | |
15410 | case 128: | |
15411 | oappend ("{1to2}"); | |
15412 | break; | |
15413 | case 256: | |
15414 | oappend ("{1to4}"); | |
15415 | break; | |
15416 | case 512: | |
15417 | oappend ("{1to8}"); | |
15418 | break; | |
15419 | default: | |
15420 | abort (); | |
15421 | } | |
15422 | } | |
43234a1e | 15423 | else |
b28d1bda IT |
15424 | { |
15425 | switch (vex.length) | |
15426 | { | |
15427 | case 128: | |
15428 | oappend ("{1to4}"); | |
15429 | break; | |
15430 | case 256: | |
15431 | oappend ("{1to8}"); | |
15432 | break; | |
15433 | case 512: | |
15434 | oappend ("{1to16}"); | |
15435 | break; | |
15436 | default: | |
15437 | abort (); | |
15438 | } | |
15439 | } | |
43234a1e | 15440 | } |
252b5132 RH |
15441 | } |
15442 | ||
c0f3af97 | 15443 | static void |
8b3f93e7 | 15444 | OP_E (int bytemode, int sizeflag) |
c0f3af97 L |
15445 | { |
15446 | /* Skip mod/rm byte. */ | |
15447 | MODRM_CHECK; | |
15448 | codep++; | |
15449 | ||
15450 | if (modrm.mod == 3) | |
15451 | OP_E_register (bytemode, sizeflag); | |
15452 | else | |
c1e679ec | 15453 | OP_E_memory (bytemode, sizeflag); |
c0f3af97 L |
15454 | } |
15455 | ||
252b5132 | 15456 | static void |
26ca5450 | 15457 | OP_G (int bytemode, int sizeflag) |
252b5132 | 15458 | { |
52b15da3 | 15459 | int add = 0; |
161a04f6 L |
15460 | USED_REX (REX_R); |
15461 | if (rex & REX_R) | |
52b15da3 | 15462 | add += 8; |
252b5132 RH |
15463 | switch (bytemode) |
15464 | { | |
15465 | case b_mode: | |
52b15da3 JH |
15466 | USED_REX (0); |
15467 | if (rex) | |
7967e09e | 15468 | oappend (names8rex[modrm.reg + add]); |
52b15da3 | 15469 | else |
7967e09e | 15470 | oappend (names8[modrm.reg + add]); |
252b5132 RH |
15471 | break; |
15472 | case w_mode: | |
7967e09e | 15473 | oappend (names16[modrm.reg + add]); |
252b5132 RH |
15474 | break; |
15475 | case d_mode: | |
1ba585e8 IT |
15476 | case db_mode: |
15477 | case dw_mode: | |
7967e09e | 15478 | oappend (names32[modrm.reg + add]); |
52b15da3 JH |
15479 | break; |
15480 | case q_mode: | |
7967e09e | 15481 | oappend (names64[modrm.reg + add]); |
252b5132 | 15482 | break; |
7e8b059b L |
15483 | case bnd_mode: |
15484 | oappend (names_bnd[modrm.reg]); | |
15485 | break; | |
252b5132 | 15486 | case v_mode: |
9306ca4a | 15487 | case dq_mode: |
42903f7f L |
15488 | case dqb_mode: |
15489 | case dqd_mode: | |
9306ca4a | 15490 | case dqw_mode: |
161a04f6 L |
15491 | USED_REX (REX_W); |
15492 | if (rex & REX_W) | |
7967e09e | 15493 | oappend (names64[modrm.reg + add]); |
252b5132 | 15494 | else |
f16cd0d5 L |
15495 | { |
15496 | if ((sizeflag & DFLAG) || bytemode != v_mode) | |
15497 | oappend (names32[modrm.reg + add]); | |
15498 | else | |
15499 | oappend (names16[modrm.reg + add]); | |
15500 | used_prefixes |= (prefixes & PREFIX_DATA); | |
15501 | } | |
252b5132 | 15502 | break; |
90700ea2 | 15503 | case m_mode: |
cb712a9e | 15504 | if (address_mode == mode_64bit) |
7967e09e | 15505 | oappend (names64[modrm.reg + add]); |
90700ea2 | 15506 | else |
7967e09e | 15507 | oappend (names32[modrm.reg + add]); |
90700ea2 | 15508 | break; |
1ba585e8 | 15509 | case mask_bd_mode: |
43234a1e | 15510 | case mask_mode: |
9889cbb1 L |
15511 | if ((modrm.reg + add) > 0x7) |
15512 | { | |
15513 | oappend ("(bad)"); | |
15514 | return; | |
15515 | } | |
43234a1e L |
15516 | oappend (names_mask[modrm.reg + add]); |
15517 | break; | |
252b5132 RH |
15518 | default: |
15519 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
15520 | break; | |
15521 | } | |
15522 | } | |
15523 | ||
52b15da3 | 15524 | static bfd_vma |
26ca5450 | 15525 | get64 (void) |
52b15da3 | 15526 | { |
5dd0794d | 15527 | bfd_vma x; |
52b15da3 | 15528 | #ifdef BFD64 |
5dd0794d AM |
15529 | unsigned int a; |
15530 | unsigned int b; | |
15531 | ||
52b15da3 JH |
15532 | FETCH_DATA (the_info, codep + 8); |
15533 | a = *codep++ & 0xff; | |
15534 | a |= (*codep++ & 0xff) << 8; | |
15535 | a |= (*codep++ & 0xff) << 16; | |
070fe95d | 15536 | a |= (*codep++ & 0xffu) << 24; |
5dd0794d | 15537 | b = *codep++ & 0xff; |
52b15da3 JH |
15538 | b |= (*codep++ & 0xff) << 8; |
15539 | b |= (*codep++ & 0xff) << 16; | |
070fe95d | 15540 | b |= (*codep++ & 0xffu) << 24; |
52b15da3 JH |
15541 | x = a + ((bfd_vma) b << 32); |
15542 | #else | |
6608db57 | 15543 | abort (); |
5dd0794d | 15544 | x = 0; |
52b15da3 JH |
15545 | #endif |
15546 | return x; | |
15547 | } | |
15548 | ||
15549 | static bfd_signed_vma | |
26ca5450 | 15550 | get32 (void) |
252b5132 | 15551 | { |
52b15da3 | 15552 | bfd_signed_vma x = 0; |
252b5132 RH |
15553 | |
15554 | FETCH_DATA (the_info, codep + 4); | |
52b15da3 JH |
15555 | x = *codep++ & (bfd_signed_vma) 0xff; |
15556 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 8; | |
15557 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 16; | |
15558 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 24; | |
15559 | return x; | |
15560 | } | |
15561 | ||
15562 | static bfd_signed_vma | |
26ca5450 | 15563 | get32s (void) |
52b15da3 JH |
15564 | { |
15565 | bfd_signed_vma x = 0; | |
15566 | ||
15567 | FETCH_DATA (the_info, codep + 4); | |
15568 | x = *codep++ & (bfd_signed_vma) 0xff; | |
15569 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 8; | |
15570 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 16; | |
15571 | x |= (*codep++ & (bfd_signed_vma) 0xff) << 24; | |
15572 | ||
15573 | x = (x ^ ((bfd_signed_vma) 1 << 31)) - ((bfd_signed_vma) 1 << 31); | |
15574 | ||
252b5132 RH |
15575 | return x; |
15576 | } | |
15577 | ||
15578 | static int | |
26ca5450 | 15579 | get16 (void) |
252b5132 RH |
15580 | { |
15581 | int x = 0; | |
15582 | ||
15583 | FETCH_DATA (the_info, codep + 2); | |
15584 | x = *codep++ & 0xff; | |
15585 | x |= (*codep++ & 0xff) << 8; | |
15586 | return x; | |
15587 | } | |
15588 | ||
15589 | static void | |
26ca5450 | 15590 | set_op (bfd_vma op, int riprel) |
252b5132 RH |
15591 | { |
15592 | op_index[op_ad] = op_ad; | |
cb712a9e | 15593 | if (address_mode == mode_64bit) |
7081ff04 AJ |
15594 | { |
15595 | op_address[op_ad] = op; | |
15596 | op_riprel[op_ad] = riprel; | |
15597 | } | |
15598 | else | |
15599 | { | |
15600 | /* Mask to get a 32-bit address. */ | |
15601 | op_address[op_ad] = op & 0xffffffff; | |
15602 | op_riprel[op_ad] = riprel & 0xffffffff; | |
15603 | } | |
252b5132 RH |
15604 | } |
15605 | ||
15606 | static void | |
26ca5450 | 15607 | OP_REG (int code, int sizeflag) |
252b5132 | 15608 | { |
2da11e11 | 15609 | const char *s; |
9b60702d | 15610 | int add; |
de882298 RM |
15611 | |
15612 | switch (code) | |
15613 | { | |
15614 | case es_reg: case ss_reg: case cs_reg: | |
15615 | case ds_reg: case fs_reg: case gs_reg: | |
15616 | oappend (names_seg[code - es_reg]); | |
15617 | return; | |
15618 | } | |
15619 | ||
161a04f6 L |
15620 | USED_REX (REX_B); |
15621 | if (rex & REX_B) | |
52b15da3 | 15622 | add = 8; |
9b60702d L |
15623 | else |
15624 | add = 0; | |
52b15da3 JH |
15625 | |
15626 | switch (code) | |
15627 | { | |
52b15da3 JH |
15628 | case ax_reg: case cx_reg: case dx_reg: case bx_reg: |
15629 | case sp_reg: case bp_reg: case si_reg: case di_reg: | |
15630 | s = names16[code - ax_reg + add]; | |
15631 | break; | |
52b15da3 JH |
15632 | case al_reg: case ah_reg: case cl_reg: case ch_reg: |
15633 | case dl_reg: case dh_reg: case bl_reg: case bh_reg: | |
15634 | USED_REX (0); | |
15635 | if (rex) | |
15636 | s = names8rex[code - al_reg + add]; | |
15637 | else | |
15638 | s = names8[code - al_reg]; | |
15639 | break; | |
6439fc28 AM |
15640 | case rAX_reg: case rCX_reg: case rDX_reg: case rBX_reg: |
15641 | case rSP_reg: case rBP_reg: case rSI_reg: case rDI_reg: | |
7bb15c6f | 15642 | if (address_mode == mode_64bit |
6c067bbb | 15643 | && ((sizeflag & DFLAG) || (rex & REX_W))) |
6439fc28 AM |
15644 | { |
15645 | s = names64[code - rAX_reg + add]; | |
15646 | break; | |
15647 | } | |
15648 | code += eAX_reg - rAX_reg; | |
6608db57 | 15649 | /* Fall through. */ |
52b15da3 JH |
15650 | case eAX_reg: case eCX_reg: case eDX_reg: case eBX_reg: |
15651 | case eSP_reg: case eBP_reg: case eSI_reg: case eDI_reg: | |
161a04f6 L |
15652 | USED_REX (REX_W); |
15653 | if (rex & REX_W) | |
52b15da3 | 15654 | s = names64[code - eAX_reg + add]; |
52b15da3 | 15655 | else |
f16cd0d5 L |
15656 | { |
15657 | if (sizeflag & DFLAG) | |
15658 | s = names32[code - eAX_reg + add]; | |
15659 | else | |
15660 | s = names16[code - eAX_reg + add]; | |
15661 | used_prefixes |= (prefixes & PREFIX_DATA); | |
15662 | } | |
52b15da3 | 15663 | break; |
52b15da3 JH |
15664 | default: |
15665 | s = INTERNAL_DISASSEMBLER_ERROR; | |
15666 | break; | |
15667 | } | |
15668 | oappend (s); | |
15669 | } | |
15670 | ||
15671 | static void | |
26ca5450 | 15672 | OP_IMREG (int code, int sizeflag) |
52b15da3 JH |
15673 | { |
15674 | const char *s; | |
252b5132 RH |
15675 | |
15676 | switch (code) | |
15677 | { | |
15678 | case indir_dx_reg: | |
d708bcba | 15679 | if (intel_syntax) |
52fd6d94 | 15680 | s = "dx"; |
d708bcba | 15681 | else |
db6eb5be | 15682 | s = "(%dx)"; |
252b5132 RH |
15683 | break; |
15684 | case ax_reg: case cx_reg: case dx_reg: case bx_reg: | |
15685 | case sp_reg: case bp_reg: case si_reg: case di_reg: | |
15686 | s = names16[code - ax_reg]; | |
15687 | break; | |
15688 | case es_reg: case ss_reg: case cs_reg: | |
15689 | case ds_reg: case fs_reg: case gs_reg: | |
15690 | s = names_seg[code - es_reg]; | |
15691 | break; | |
15692 | case al_reg: case ah_reg: case cl_reg: case ch_reg: | |
15693 | case dl_reg: case dh_reg: case bl_reg: case bh_reg: | |
52b15da3 JH |
15694 | USED_REX (0); |
15695 | if (rex) | |
15696 | s = names8rex[code - al_reg]; | |
15697 | else | |
15698 | s = names8[code - al_reg]; | |
252b5132 RH |
15699 | break; |
15700 | case eAX_reg: case eCX_reg: case eDX_reg: case eBX_reg: | |
15701 | case eSP_reg: case eBP_reg: case eSI_reg: case eDI_reg: | |
161a04f6 L |
15702 | USED_REX (REX_W); |
15703 | if (rex & REX_W) | |
52b15da3 | 15704 | s = names64[code - eAX_reg]; |
252b5132 | 15705 | else |
f16cd0d5 L |
15706 | { |
15707 | if (sizeflag & DFLAG) | |
15708 | s = names32[code - eAX_reg]; | |
15709 | else | |
15710 | s = names16[code - eAX_reg]; | |
15711 | used_prefixes |= (prefixes & PREFIX_DATA); | |
15712 | } | |
252b5132 | 15713 | break; |
52fd6d94 | 15714 | case z_mode_ax_reg: |
161a04f6 | 15715 | if ((rex & REX_W) || (sizeflag & DFLAG)) |
52fd6d94 JB |
15716 | s = *names32; |
15717 | else | |
15718 | s = *names16; | |
161a04f6 | 15719 | if (!(rex & REX_W)) |
52fd6d94 JB |
15720 | used_prefixes |= (prefixes & PREFIX_DATA); |
15721 | break; | |
252b5132 RH |
15722 | default: |
15723 | s = INTERNAL_DISASSEMBLER_ERROR; | |
15724 | break; | |
15725 | } | |
15726 | oappend (s); | |
15727 | } | |
15728 | ||
15729 | static void | |
26ca5450 | 15730 | OP_I (int bytemode, int sizeflag) |
252b5132 | 15731 | { |
52b15da3 JH |
15732 | bfd_signed_vma op; |
15733 | bfd_signed_vma mask = -1; | |
252b5132 RH |
15734 | |
15735 | switch (bytemode) | |
15736 | { | |
15737 | case b_mode: | |
15738 | FETCH_DATA (the_info, codep + 1); | |
52b15da3 JH |
15739 | op = *codep++; |
15740 | mask = 0xff; | |
15741 | break; | |
15742 | case q_mode: | |
cb712a9e | 15743 | if (address_mode == mode_64bit) |
6439fc28 AM |
15744 | { |
15745 | op = get32s (); | |
15746 | break; | |
15747 | } | |
6608db57 | 15748 | /* Fall through. */ |
252b5132 | 15749 | case v_mode: |
161a04f6 L |
15750 | USED_REX (REX_W); |
15751 | if (rex & REX_W) | |
52b15da3 | 15752 | op = get32s (); |
252b5132 | 15753 | else |
52b15da3 | 15754 | { |
f16cd0d5 L |
15755 | if (sizeflag & DFLAG) |
15756 | { | |
15757 | op = get32 (); | |
15758 | mask = 0xffffffff; | |
15759 | } | |
15760 | else | |
15761 | { | |
15762 | op = get16 (); | |
15763 | mask = 0xfffff; | |
15764 | } | |
15765 | used_prefixes |= (prefixes & PREFIX_DATA); | |
52b15da3 | 15766 | } |
252b5132 RH |
15767 | break; |
15768 | case w_mode: | |
52b15da3 | 15769 | mask = 0xfffff; |
252b5132 RH |
15770 | op = get16 (); |
15771 | break; | |
9306ca4a JB |
15772 | case const_1_mode: |
15773 | if (intel_syntax) | |
6c067bbb | 15774 | oappend ("1"); |
9306ca4a | 15775 | return; |
252b5132 RH |
15776 | default: |
15777 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
15778 | return; | |
15779 | } | |
15780 | ||
52b15da3 JH |
15781 | op &= mask; |
15782 | scratchbuf[0] = '$'; | |
d708bcba | 15783 | print_operand_value (scratchbuf + 1, 1, op); |
9ce09ba2 | 15784 | oappend_maybe_intel (scratchbuf); |
52b15da3 JH |
15785 | scratchbuf[0] = '\0'; |
15786 | } | |
15787 | ||
15788 | static void | |
26ca5450 | 15789 | OP_I64 (int bytemode, int sizeflag) |
52b15da3 JH |
15790 | { |
15791 | bfd_signed_vma op; | |
15792 | bfd_signed_vma mask = -1; | |
15793 | ||
cb712a9e | 15794 | if (address_mode != mode_64bit) |
6439fc28 AM |
15795 | { |
15796 | OP_I (bytemode, sizeflag); | |
15797 | return; | |
15798 | } | |
15799 | ||
52b15da3 JH |
15800 | switch (bytemode) |
15801 | { | |
15802 | case b_mode: | |
15803 | FETCH_DATA (the_info, codep + 1); | |
15804 | op = *codep++; | |
15805 | mask = 0xff; | |
15806 | break; | |
15807 | case v_mode: | |
161a04f6 L |
15808 | USED_REX (REX_W); |
15809 | if (rex & REX_W) | |
52b15da3 | 15810 | op = get64 (); |
52b15da3 JH |
15811 | else |
15812 | { | |
f16cd0d5 L |
15813 | if (sizeflag & DFLAG) |
15814 | { | |
15815 | op = get32 (); | |
15816 | mask = 0xffffffff; | |
15817 | } | |
15818 | else | |
15819 | { | |
15820 | op = get16 (); | |
15821 | mask = 0xfffff; | |
15822 | } | |
15823 | used_prefixes |= (prefixes & PREFIX_DATA); | |
52b15da3 | 15824 | } |
52b15da3 JH |
15825 | break; |
15826 | case w_mode: | |
15827 | mask = 0xfffff; | |
15828 | op = get16 (); | |
15829 | break; | |
15830 | default: | |
15831 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
15832 | return; | |
15833 | } | |
15834 | ||
15835 | op &= mask; | |
15836 | scratchbuf[0] = '$'; | |
d708bcba | 15837 | print_operand_value (scratchbuf + 1, 1, op); |
9ce09ba2 | 15838 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
15839 | scratchbuf[0] = '\0'; |
15840 | } | |
15841 | ||
15842 | static void | |
26ca5450 | 15843 | OP_sI (int bytemode, int sizeflag) |
252b5132 | 15844 | { |
52b15da3 | 15845 | bfd_signed_vma op; |
252b5132 RH |
15846 | |
15847 | switch (bytemode) | |
15848 | { | |
15849 | case b_mode: | |
e3949f17 | 15850 | case b_T_mode: |
252b5132 RH |
15851 | FETCH_DATA (the_info, codep + 1); |
15852 | op = *codep++; | |
15853 | if ((op & 0x80) != 0) | |
15854 | op -= 0x100; | |
e3949f17 L |
15855 | if (bytemode == b_T_mode) |
15856 | { | |
15857 | if (address_mode != mode_64bit | |
7bb15c6f | 15858 | || !((sizeflag & DFLAG) || (rex & REX_W))) |
e3949f17 | 15859 | { |
6c067bbb RM |
15860 | /* The operand-size prefix is overridden by a REX prefix. */ |
15861 | if ((sizeflag & DFLAG) || (rex & REX_W)) | |
e3949f17 L |
15862 | op &= 0xffffffff; |
15863 | else | |
15864 | op &= 0xffff; | |
15865 | } | |
15866 | } | |
15867 | else | |
15868 | { | |
15869 | if (!(rex & REX_W)) | |
15870 | { | |
15871 | if (sizeflag & DFLAG) | |
15872 | op &= 0xffffffff; | |
15873 | else | |
15874 | op &= 0xffff; | |
15875 | } | |
15876 | } | |
252b5132 RH |
15877 | break; |
15878 | case v_mode: | |
7bb15c6f RM |
15879 | /* The operand-size prefix is overridden by a REX prefix. */ |
15880 | if ((sizeflag & DFLAG) || (rex & REX_W)) | |
52b15da3 | 15881 | op = get32s (); |
252b5132 | 15882 | else |
d9e3625e | 15883 | op = get16 (); |
252b5132 RH |
15884 | break; |
15885 | default: | |
15886 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
15887 | return; | |
15888 | } | |
52b15da3 JH |
15889 | |
15890 | scratchbuf[0] = '$'; | |
15891 | print_operand_value (scratchbuf + 1, 1, op); | |
9ce09ba2 | 15892 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
15893 | } |
15894 | ||
15895 | static void | |
26ca5450 | 15896 | OP_J (int bytemode, int sizeflag) |
252b5132 | 15897 | { |
52b15da3 | 15898 | bfd_vma disp; |
7081ff04 | 15899 | bfd_vma mask = -1; |
65ca155d | 15900 | bfd_vma segment = 0; |
252b5132 RH |
15901 | |
15902 | switch (bytemode) | |
15903 | { | |
15904 | case b_mode: | |
15905 | FETCH_DATA (the_info, codep + 1); | |
15906 | disp = *codep++; | |
15907 | if ((disp & 0x80) != 0) | |
15908 | disp -= 0x100; | |
15909 | break; | |
15910 | case v_mode: | |
5db04b09 L |
15911 | if (isa64 == amd64) |
15912 | USED_REX (REX_W); | |
15913 | if ((sizeflag & DFLAG) | |
15914 | || (address_mode == mode_64bit | |
15915 | && (isa64 != amd64 || (rex & REX_W)))) | |
52b15da3 | 15916 | disp = get32s (); |
252b5132 RH |
15917 | else |
15918 | { | |
15919 | disp = get16 (); | |
206717e8 L |
15920 | if ((disp & 0x8000) != 0) |
15921 | disp -= 0x10000; | |
65ca155d L |
15922 | /* In 16bit mode, address is wrapped around at 64k within |
15923 | the same segment. Otherwise, a data16 prefix on a jump | |
15924 | instruction means that the pc is masked to 16 bits after | |
15925 | the displacement is added! */ | |
15926 | mask = 0xffff; | |
15927 | if ((prefixes & PREFIX_DATA) == 0) | |
4fd7268a | 15928 | segment = ((start_pc + (codep - start_codep)) |
65ca155d | 15929 | & ~((bfd_vma) 0xffff)); |
252b5132 | 15930 | } |
5db04b09 L |
15931 | if (address_mode != mode_64bit |
15932 | || (isa64 == amd64 && !(rex & REX_W))) | |
f16cd0d5 | 15933 | used_prefixes |= (prefixes & PREFIX_DATA); |
252b5132 RH |
15934 | break; |
15935 | default: | |
15936 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
15937 | return; | |
15938 | } | |
42d5f9c6 | 15939 | disp = ((start_pc + (codep - start_codep) + disp) & mask) | segment; |
52b15da3 JH |
15940 | set_op (disp, 0); |
15941 | print_operand_value (scratchbuf, 1, disp); | |
252b5132 RH |
15942 | oappend (scratchbuf); |
15943 | } | |
15944 | ||
252b5132 | 15945 | static void |
ed7841b3 | 15946 | OP_SEG (int bytemode, int sizeflag) |
252b5132 | 15947 | { |
ed7841b3 | 15948 | if (bytemode == w_mode) |
7967e09e | 15949 | oappend (names_seg[modrm.reg]); |
ed7841b3 | 15950 | else |
7967e09e | 15951 | OP_E (modrm.mod == 3 ? bytemode : w_mode, sizeflag); |
252b5132 RH |
15952 | } |
15953 | ||
15954 | static void | |
26ca5450 | 15955 | OP_DIR (int dummy ATTRIBUTE_UNUSED, int sizeflag) |
252b5132 RH |
15956 | { |
15957 | int seg, offset; | |
15958 | ||
c608c12e | 15959 | if (sizeflag & DFLAG) |
252b5132 | 15960 | { |
c608c12e AM |
15961 | offset = get32 (); |
15962 | seg = get16 (); | |
252b5132 | 15963 | } |
c608c12e AM |
15964 | else |
15965 | { | |
15966 | offset = get16 (); | |
15967 | seg = get16 (); | |
15968 | } | |
7d421014 | 15969 | used_prefixes |= (prefixes & PREFIX_DATA); |
d708bcba | 15970 | if (intel_syntax) |
3f31e633 | 15971 | sprintf (scratchbuf, "0x%x:0x%x", seg, offset); |
d708bcba AM |
15972 | else |
15973 | sprintf (scratchbuf, "$0x%x,$0x%x", seg, offset); | |
c608c12e | 15974 | oappend (scratchbuf); |
252b5132 RH |
15975 | } |
15976 | ||
252b5132 | 15977 | static void |
3f31e633 | 15978 | OP_OFF (int bytemode, int sizeflag) |
252b5132 | 15979 | { |
52b15da3 | 15980 | bfd_vma off; |
252b5132 | 15981 | |
3f31e633 JB |
15982 | if (intel_syntax && (sizeflag & SUFFIX_ALWAYS)) |
15983 | intel_operand_size (bytemode, sizeflag); | |
252b5132 RH |
15984 | append_seg (); |
15985 | ||
cb712a9e | 15986 | if ((sizeflag & AFLAG) || address_mode == mode_64bit) |
252b5132 RH |
15987 | off = get32 (); |
15988 | else | |
15989 | off = get16 (); | |
15990 | ||
15991 | if (intel_syntax) | |
15992 | { | |
285ca992 | 15993 | if (!active_seg_prefix) |
252b5132 | 15994 | { |
d708bcba | 15995 | oappend (names_seg[ds_reg - es_reg]); |
252b5132 RH |
15996 | oappend (":"); |
15997 | } | |
15998 | } | |
52b15da3 JH |
15999 | print_operand_value (scratchbuf, 1, off); |
16000 | oappend (scratchbuf); | |
16001 | } | |
6439fc28 | 16002 | |
52b15da3 | 16003 | static void |
3f31e633 | 16004 | OP_OFF64 (int bytemode, int sizeflag) |
52b15da3 JH |
16005 | { |
16006 | bfd_vma off; | |
16007 | ||
539e75ad L |
16008 | if (address_mode != mode_64bit |
16009 | || (prefixes & PREFIX_ADDR)) | |
6439fc28 AM |
16010 | { |
16011 | OP_OFF (bytemode, sizeflag); | |
16012 | return; | |
16013 | } | |
16014 | ||
3f31e633 JB |
16015 | if (intel_syntax && (sizeflag & SUFFIX_ALWAYS)) |
16016 | intel_operand_size (bytemode, sizeflag); | |
52b15da3 JH |
16017 | append_seg (); |
16018 | ||
6608db57 | 16019 | off = get64 (); |
52b15da3 JH |
16020 | |
16021 | if (intel_syntax) | |
16022 | { | |
285ca992 | 16023 | if (!active_seg_prefix) |
52b15da3 | 16024 | { |
d708bcba | 16025 | oappend (names_seg[ds_reg - es_reg]); |
52b15da3 JH |
16026 | oappend (":"); |
16027 | } | |
16028 | } | |
16029 | print_operand_value (scratchbuf, 1, off); | |
252b5132 RH |
16030 | oappend (scratchbuf); |
16031 | } | |
16032 | ||
16033 | static void | |
26ca5450 | 16034 | ptr_reg (int code, int sizeflag) |
252b5132 | 16035 | { |
2da11e11 | 16036 | const char *s; |
d708bcba | 16037 | |
1d9f512f | 16038 | *obufp++ = open_char; |
20f0a1fc | 16039 | used_prefixes |= (prefixes & PREFIX_ADDR); |
cb712a9e | 16040 | if (address_mode == mode_64bit) |
c1a64871 JH |
16041 | { |
16042 | if (!(sizeflag & AFLAG)) | |
db6eb5be | 16043 | s = names32[code - eAX_reg]; |
c1a64871 | 16044 | else |
db6eb5be | 16045 | s = names64[code - eAX_reg]; |
c1a64871 | 16046 | } |
52b15da3 | 16047 | else if (sizeflag & AFLAG) |
252b5132 RH |
16048 | s = names32[code - eAX_reg]; |
16049 | else | |
16050 | s = names16[code - eAX_reg]; | |
16051 | oappend (s); | |
1d9f512f AM |
16052 | *obufp++ = close_char; |
16053 | *obufp = 0; | |
252b5132 RH |
16054 | } |
16055 | ||
16056 | static void | |
26ca5450 | 16057 | OP_ESreg (int code, int sizeflag) |
252b5132 | 16058 | { |
9306ca4a | 16059 | if (intel_syntax) |
52fd6d94 JB |
16060 | { |
16061 | switch (codep[-1]) | |
16062 | { | |
16063 | case 0x6d: /* insw/insl */ | |
16064 | intel_operand_size (z_mode, sizeflag); | |
16065 | break; | |
16066 | case 0xa5: /* movsw/movsl/movsq */ | |
16067 | case 0xa7: /* cmpsw/cmpsl/cmpsq */ | |
16068 | case 0xab: /* stosw/stosl */ | |
16069 | case 0xaf: /* scasw/scasl */ | |
16070 | intel_operand_size (v_mode, sizeflag); | |
16071 | break; | |
16072 | default: | |
16073 | intel_operand_size (b_mode, sizeflag); | |
16074 | } | |
16075 | } | |
9ce09ba2 | 16076 | oappend_maybe_intel ("%es:"); |
252b5132 RH |
16077 | ptr_reg (code, sizeflag); |
16078 | } | |
16079 | ||
16080 | static void | |
26ca5450 | 16081 | OP_DSreg (int code, int sizeflag) |
252b5132 | 16082 | { |
9306ca4a | 16083 | if (intel_syntax) |
52fd6d94 JB |
16084 | { |
16085 | switch (codep[-1]) | |
16086 | { | |
16087 | case 0x6f: /* outsw/outsl */ | |
16088 | intel_operand_size (z_mode, sizeflag); | |
16089 | break; | |
16090 | case 0xa5: /* movsw/movsl/movsq */ | |
16091 | case 0xa7: /* cmpsw/cmpsl/cmpsq */ | |
16092 | case 0xad: /* lodsw/lodsl/lodsq */ | |
16093 | intel_operand_size (v_mode, sizeflag); | |
16094 | break; | |
16095 | default: | |
16096 | intel_operand_size (b_mode, sizeflag); | |
16097 | } | |
16098 | } | |
285ca992 L |
16099 | /* Set active_seg_prefix to PREFIX_DS if it is unset so that the |
16100 | default segment register DS is printed. */ | |
16101 | if (!active_seg_prefix) | |
16102 | active_seg_prefix = PREFIX_DS; | |
6608db57 | 16103 | append_seg (); |
252b5132 RH |
16104 | ptr_reg (code, sizeflag); |
16105 | } | |
16106 | ||
252b5132 | 16107 | static void |
26ca5450 | 16108 | OP_C (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 16109 | { |
9b60702d | 16110 | int add; |
161a04f6 | 16111 | if (rex & REX_R) |
c4a530c5 | 16112 | { |
161a04f6 | 16113 | USED_REX (REX_R); |
c4a530c5 JB |
16114 | add = 8; |
16115 | } | |
cb712a9e | 16116 | else if (address_mode != mode_64bit && (prefixes & PREFIX_LOCK)) |
c4a530c5 | 16117 | { |
f16cd0d5 | 16118 | all_prefixes[last_lock_prefix] = 0; |
c4a530c5 JB |
16119 | used_prefixes |= PREFIX_LOCK; |
16120 | add = 8; | |
16121 | } | |
9b60702d L |
16122 | else |
16123 | add = 0; | |
7967e09e | 16124 | sprintf (scratchbuf, "%%cr%d", modrm.reg + add); |
9ce09ba2 | 16125 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
16126 | } |
16127 | ||
252b5132 | 16128 | static void |
26ca5450 | 16129 | OP_D (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 16130 | { |
9b60702d | 16131 | int add; |
161a04f6 L |
16132 | USED_REX (REX_R); |
16133 | if (rex & REX_R) | |
52b15da3 | 16134 | add = 8; |
9b60702d L |
16135 | else |
16136 | add = 0; | |
d708bcba | 16137 | if (intel_syntax) |
7967e09e | 16138 | sprintf (scratchbuf, "db%d", modrm.reg + add); |
d708bcba | 16139 | else |
7967e09e | 16140 | sprintf (scratchbuf, "%%db%d", modrm.reg + add); |
252b5132 RH |
16141 | oappend (scratchbuf); |
16142 | } | |
16143 | ||
252b5132 | 16144 | static void |
26ca5450 | 16145 | OP_T (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 16146 | { |
7967e09e | 16147 | sprintf (scratchbuf, "%%tr%d", modrm.reg); |
9ce09ba2 | 16148 | oappend_maybe_intel (scratchbuf); |
252b5132 RH |
16149 | } |
16150 | ||
16151 | static void | |
6f74c397 | 16152 | OP_R (int bytemode, int sizeflag) |
252b5132 | 16153 | { |
68f34464 L |
16154 | /* Skip mod/rm byte. */ |
16155 | MODRM_CHECK; | |
16156 | codep++; | |
16157 | OP_E_register (bytemode, sizeflag); | |
252b5132 RH |
16158 | } |
16159 | ||
16160 | static void | |
26ca5450 | 16161 | OP_MMX (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 | 16162 | { |
b9733481 L |
16163 | int reg = modrm.reg; |
16164 | const char **names; | |
16165 | ||
041bd2e0 JH |
16166 | used_prefixes |= (prefixes & PREFIX_DATA); |
16167 | if (prefixes & PREFIX_DATA) | |
20f0a1fc | 16168 | { |
b9733481 | 16169 | names = names_xmm; |
161a04f6 L |
16170 | USED_REX (REX_R); |
16171 | if (rex & REX_R) | |
b9733481 | 16172 | reg += 8; |
20f0a1fc | 16173 | } |
041bd2e0 | 16174 | else |
b9733481 L |
16175 | names = names_mm; |
16176 | oappend (names[reg]); | |
252b5132 RH |
16177 | } |
16178 | ||
c608c12e | 16179 | static void |
c0f3af97 | 16180 | OP_XMM (int bytemode, int sizeflag ATTRIBUTE_UNUSED) |
c608c12e | 16181 | { |
b9733481 L |
16182 | int reg = modrm.reg; |
16183 | const char **names; | |
16184 | ||
161a04f6 L |
16185 | USED_REX (REX_R); |
16186 | if (rex & REX_R) | |
b9733481 | 16187 | reg += 8; |
43234a1e L |
16188 | if (vex.evex) |
16189 | { | |
16190 | if (!vex.r) | |
16191 | reg += 16; | |
16192 | } | |
16193 | ||
539f890d L |
16194 | if (need_vex |
16195 | && bytemode != xmm_mode | |
43234a1e L |
16196 | && bytemode != xmmq_mode |
16197 | && bytemode != evex_half_bcst_xmmq_mode | |
16198 | && bytemode != ymm_mode | |
539f890d | 16199 | && bytemode != scalar_mode) |
c0f3af97 L |
16200 | { |
16201 | switch (vex.length) | |
16202 | { | |
16203 | case 128: | |
b9733481 | 16204 | names = names_xmm; |
c0f3af97 L |
16205 | break; |
16206 | case 256: | |
5fc35d96 IT |
16207 | if (vex.w |
16208 | || (bytemode != vex_vsib_q_w_dq_mode | |
16209 | && bytemode != vex_vsib_q_w_d_mode)) | |
6c30d220 L |
16210 | names = names_ymm; |
16211 | else | |
16212 | names = names_xmm; | |
c0f3af97 | 16213 | break; |
43234a1e L |
16214 | case 512: |
16215 | names = names_zmm; | |
16216 | break; | |
c0f3af97 L |
16217 | default: |
16218 | abort (); | |
16219 | } | |
16220 | } | |
43234a1e L |
16221 | else if (bytemode == xmmq_mode |
16222 | || bytemode == evex_half_bcst_xmmq_mode) | |
16223 | { | |
16224 | switch (vex.length) | |
16225 | { | |
16226 | case 128: | |
16227 | case 256: | |
16228 | names = names_xmm; | |
16229 | break; | |
16230 | case 512: | |
16231 | names = names_ymm; | |
16232 | break; | |
16233 | default: | |
16234 | abort (); | |
16235 | } | |
16236 | } | |
16237 | else if (bytemode == ymm_mode) | |
16238 | names = names_ymm; | |
c0f3af97 | 16239 | else |
b9733481 L |
16240 | names = names_xmm; |
16241 | oappend (names[reg]); | |
c608c12e AM |
16242 | } |
16243 | ||
252b5132 | 16244 | static void |
26ca5450 | 16245 | OP_EM (int bytemode, int sizeflag) |
252b5132 | 16246 | { |
b9733481 L |
16247 | int reg; |
16248 | const char **names; | |
16249 | ||
7967e09e | 16250 | if (modrm.mod != 3) |
252b5132 | 16251 | { |
b6169b20 L |
16252 | if (intel_syntax |
16253 | && (bytemode == v_mode || bytemode == v_swap_mode)) | |
9306ca4a JB |
16254 | { |
16255 | bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode; | |
16256 | used_prefixes |= (prefixes & PREFIX_DATA); | |
6c067bbb | 16257 | } |
252b5132 RH |
16258 | OP_E (bytemode, sizeflag); |
16259 | return; | |
16260 | } | |
16261 | ||
b6169b20 L |
16262 | if ((sizeflag & SUFFIX_ALWAYS) && bytemode == v_swap_mode) |
16263 | swap_operand (); | |
16264 | ||
6608db57 | 16265 | /* Skip mod/rm byte. */ |
4bba6815 | 16266 | MODRM_CHECK; |
252b5132 | 16267 | codep++; |
041bd2e0 | 16268 | used_prefixes |= (prefixes & PREFIX_DATA); |
b9733481 | 16269 | reg = modrm.rm; |
041bd2e0 | 16270 | if (prefixes & PREFIX_DATA) |
20f0a1fc | 16271 | { |
b9733481 | 16272 | names = names_xmm; |
161a04f6 L |
16273 | USED_REX (REX_B); |
16274 | if (rex & REX_B) | |
b9733481 | 16275 | reg += 8; |
20f0a1fc | 16276 | } |
041bd2e0 | 16277 | else |
b9733481 L |
16278 | names = names_mm; |
16279 | oappend (names[reg]); | |
252b5132 RH |
16280 | } |
16281 | ||
246c51aa L |
16282 | /* cvt* are the only instructions in sse2 which have |
16283 | both SSE and MMX operands and also have 0x66 prefix | |
16284 | in their opcode. 0x66 was originally used to differentiate | |
16285 | between SSE and MMX instruction(operands). So we have to handle the | |
4d9567e0 MM |
16286 | cvt* separately using OP_EMC and OP_MXC */ |
16287 | static void | |
16288 | OP_EMC (int bytemode, int sizeflag) | |
16289 | { | |
7967e09e | 16290 | if (modrm.mod != 3) |
4d9567e0 MM |
16291 | { |
16292 | if (intel_syntax && bytemode == v_mode) | |
16293 | { | |
16294 | bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode; | |
16295 | used_prefixes |= (prefixes & PREFIX_DATA); | |
6c067bbb | 16296 | } |
4d9567e0 MM |
16297 | OP_E (bytemode, sizeflag); |
16298 | return; | |
16299 | } | |
246c51aa | 16300 | |
4d9567e0 MM |
16301 | /* Skip mod/rm byte. */ |
16302 | MODRM_CHECK; | |
16303 | codep++; | |
16304 | used_prefixes |= (prefixes & PREFIX_DATA); | |
b9733481 | 16305 | oappend (names_mm[modrm.rm]); |
4d9567e0 MM |
16306 | } |
16307 | ||
16308 | static void | |
16309 | OP_MXC (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
16310 | { | |
16311 | used_prefixes |= (prefixes & PREFIX_DATA); | |
b9733481 | 16312 | oappend (names_mm[modrm.reg]); |
4d9567e0 MM |
16313 | } |
16314 | ||
c608c12e | 16315 | static void |
26ca5450 | 16316 | OP_EX (int bytemode, int sizeflag) |
c608c12e | 16317 | { |
b9733481 L |
16318 | int reg; |
16319 | const char **names; | |
d6f574e0 L |
16320 | |
16321 | /* Skip mod/rm byte. */ | |
16322 | MODRM_CHECK; | |
16323 | codep++; | |
16324 | ||
7967e09e | 16325 | if (modrm.mod != 3) |
c608c12e | 16326 | { |
c1e679ec | 16327 | OP_E_memory (bytemode, sizeflag); |
c608c12e AM |
16328 | return; |
16329 | } | |
d6f574e0 | 16330 | |
b9733481 | 16331 | reg = modrm.rm; |
161a04f6 L |
16332 | USED_REX (REX_B); |
16333 | if (rex & REX_B) | |
b9733481 | 16334 | reg += 8; |
43234a1e L |
16335 | if (vex.evex) |
16336 | { | |
16337 | USED_REX (REX_X); | |
16338 | if ((rex & REX_X)) | |
16339 | reg += 16; | |
16340 | } | |
c608c12e | 16341 | |
b6169b20 | 16342 | if ((sizeflag & SUFFIX_ALWAYS) |
fa99fab2 L |
16343 | && (bytemode == x_swap_mode |
16344 | || bytemode == d_swap_mode | |
7bb15c6f | 16345 | || bytemode == d_scalar_swap_mode |
539f890d L |
16346 | || bytemode == q_swap_mode |
16347 | || bytemode == q_scalar_swap_mode)) | |
b6169b20 L |
16348 | swap_operand (); |
16349 | ||
c0f3af97 L |
16350 | if (need_vex |
16351 | && bytemode != xmm_mode | |
6c30d220 L |
16352 | && bytemode != xmmdw_mode |
16353 | && bytemode != xmmqd_mode | |
16354 | && bytemode != xmm_mb_mode | |
16355 | && bytemode != xmm_mw_mode | |
16356 | && bytemode != xmm_md_mode | |
16357 | && bytemode != xmm_mq_mode | |
43234a1e | 16358 | && bytemode != xmm_mdq_mode |
539f890d | 16359 | && bytemode != xmmq_mode |
43234a1e L |
16360 | && bytemode != evex_half_bcst_xmmq_mode |
16361 | && bytemode != ymm_mode | |
539f890d | 16362 | && bytemode != d_scalar_mode |
7bb15c6f | 16363 | && bytemode != d_scalar_swap_mode |
539f890d | 16364 | && bytemode != q_scalar_mode |
1c480963 L |
16365 | && bytemode != q_scalar_swap_mode |
16366 | && bytemode != vex_scalar_w_dq_mode) | |
c0f3af97 L |
16367 | { |
16368 | switch (vex.length) | |
16369 | { | |
16370 | case 128: | |
b9733481 | 16371 | names = names_xmm; |
c0f3af97 L |
16372 | break; |
16373 | case 256: | |
b9733481 | 16374 | names = names_ymm; |
c0f3af97 | 16375 | break; |
43234a1e L |
16376 | case 512: |
16377 | names = names_zmm; | |
16378 | break; | |
c0f3af97 L |
16379 | default: |
16380 | abort (); | |
16381 | } | |
16382 | } | |
43234a1e L |
16383 | else if (bytemode == xmmq_mode |
16384 | || bytemode == evex_half_bcst_xmmq_mode) | |
16385 | { | |
16386 | switch (vex.length) | |
16387 | { | |
16388 | case 128: | |
16389 | case 256: | |
16390 | names = names_xmm; | |
16391 | break; | |
16392 | case 512: | |
16393 | names = names_ymm; | |
16394 | break; | |
16395 | default: | |
16396 | abort (); | |
16397 | } | |
16398 | } | |
16399 | else if (bytemode == ymm_mode) | |
16400 | names = names_ymm; | |
c0f3af97 | 16401 | else |
b9733481 L |
16402 | names = names_xmm; |
16403 | oappend (names[reg]); | |
c608c12e AM |
16404 | } |
16405 | ||
252b5132 | 16406 | static void |
26ca5450 | 16407 | OP_MS (int bytemode, int sizeflag) |
252b5132 | 16408 | { |
7967e09e | 16409 | if (modrm.mod == 3) |
2da11e11 AM |
16410 | OP_EM (bytemode, sizeflag); |
16411 | else | |
6608db57 | 16412 | BadOp (); |
252b5132 RH |
16413 | } |
16414 | ||
992aaec9 | 16415 | static void |
26ca5450 | 16416 | OP_XS (int bytemode, int sizeflag) |
992aaec9 | 16417 | { |
7967e09e | 16418 | if (modrm.mod == 3) |
992aaec9 AM |
16419 | OP_EX (bytemode, sizeflag); |
16420 | else | |
6608db57 | 16421 | BadOp (); |
992aaec9 AM |
16422 | } |
16423 | ||
cc0ec051 AM |
16424 | static void |
16425 | OP_M (int bytemode, int sizeflag) | |
16426 | { | |
7967e09e | 16427 | if (modrm.mod == 3) |
75413a22 L |
16428 | /* bad bound,lea,lds,les,lfs,lgs,lss,cmpxchg8b,vmptrst modrm */ |
16429 | BadOp (); | |
cc0ec051 AM |
16430 | else |
16431 | OP_E (bytemode, sizeflag); | |
16432 | } | |
16433 | ||
16434 | static void | |
16435 | OP_0f07 (int bytemode, int sizeflag) | |
16436 | { | |
7967e09e | 16437 | if (modrm.mod != 3 || modrm.rm != 0) |
cc0ec051 AM |
16438 | BadOp (); |
16439 | else | |
16440 | OP_E (bytemode, sizeflag); | |
16441 | } | |
16442 | ||
46e883c5 | 16443 | /* NOP is an alias of "xchg %ax,%ax" in 16bit mode, "xchg %eax,%eax" in |
246c51aa | 16444 | 32bit mode and "xchg %rax,%rax" in 64bit mode. */ |
46e883c5 | 16445 | |
cc0ec051 | 16446 | static void |
46e883c5 | 16447 | NOP_Fixup1 (int bytemode, int sizeflag) |
cc0ec051 | 16448 | { |
8b38ad71 L |
16449 | if ((prefixes & PREFIX_DATA) != 0 |
16450 | || (rex != 0 | |
16451 | && rex != 0x48 | |
16452 | && address_mode == mode_64bit)) | |
46e883c5 L |
16453 | OP_REG (bytemode, sizeflag); |
16454 | else | |
16455 | strcpy (obuf, "nop"); | |
16456 | } | |
16457 | ||
16458 | static void | |
16459 | NOP_Fixup2 (int bytemode, int sizeflag) | |
16460 | { | |
8b38ad71 L |
16461 | if ((prefixes & PREFIX_DATA) != 0 |
16462 | || (rex != 0 | |
16463 | && rex != 0x48 | |
16464 | && address_mode == mode_64bit)) | |
46e883c5 | 16465 | OP_IMREG (bytemode, sizeflag); |
cc0ec051 AM |
16466 | } |
16467 | ||
84037f8c | 16468 | static const char *const Suffix3DNow[] = { |
252b5132 RH |
16469 | /* 00 */ NULL, NULL, NULL, NULL, |
16470 | /* 04 */ NULL, NULL, NULL, NULL, | |
16471 | /* 08 */ NULL, NULL, NULL, NULL, | |
9e525108 | 16472 | /* 0C */ "pi2fw", "pi2fd", NULL, NULL, |
252b5132 RH |
16473 | /* 10 */ NULL, NULL, NULL, NULL, |
16474 | /* 14 */ NULL, NULL, NULL, NULL, | |
16475 | /* 18 */ NULL, NULL, NULL, NULL, | |
9e525108 | 16476 | /* 1C */ "pf2iw", "pf2id", NULL, NULL, |
252b5132 RH |
16477 | /* 20 */ NULL, NULL, NULL, NULL, |
16478 | /* 24 */ NULL, NULL, NULL, NULL, | |
16479 | /* 28 */ NULL, NULL, NULL, NULL, | |
16480 | /* 2C */ NULL, NULL, NULL, NULL, | |
16481 | /* 30 */ NULL, NULL, NULL, NULL, | |
16482 | /* 34 */ NULL, NULL, NULL, NULL, | |
16483 | /* 38 */ NULL, NULL, NULL, NULL, | |
16484 | /* 3C */ NULL, NULL, NULL, NULL, | |
16485 | /* 40 */ NULL, NULL, NULL, NULL, | |
16486 | /* 44 */ NULL, NULL, NULL, NULL, | |
16487 | /* 48 */ NULL, NULL, NULL, NULL, | |
16488 | /* 4C */ NULL, NULL, NULL, NULL, | |
16489 | /* 50 */ NULL, NULL, NULL, NULL, | |
16490 | /* 54 */ NULL, NULL, NULL, NULL, | |
16491 | /* 58 */ NULL, NULL, NULL, NULL, | |
16492 | /* 5C */ NULL, NULL, NULL, NULL, | |
16493 | /* 60 */ NULL, NULL, NULL, NULL, | |
16494 | /* 64 */ NULL, NULL, NULL, NULL, | |
16495 | /* 68 */ NULL, NULL, NULL, NULL, | |
16496 | /* 6C */ NULL, NULL, NULL, NULL, | |
16497 | /* 70 */ NULL, NULL, NULL, NULL, | |
16498 | /* 74 */ NULL, NULL, NULL, NULL, | |
16499 | /* 78 */ NULL, NULL, NULL, NULL, | |
16500 | /* 7C */ NULL, NULL, NULL, NULL, | |
16501 | /* 80 */ NULL, NULL, NULL, NULL, | |
16502 | /* 84 */ NULL, NULL, NULL, NULL, | |
9e525108 AM |
16503 | /* 88 */ NULL, NULL, "pfnacc", NULL, |
16504 | /* 8C */ NULL, NULL, "pfpnacc", NULL, | |
252b5132 RH |
16505 | /* 90 */ "pfcmpge", NULL, NULL, NULL, |
16506 | /* 94 */ "pfmin", NULL, "pfrcp", "pfrsqrt", | |
16507 | /* 98 */ NULL, NULL, "pfsub", NULL, | |
16508 | /* 9C */ NULL, NULL, "pfadd", NULL, | |
16509 | /* A0 */ "pfcmpgt", NULL, NULL, NULL, | |
16510 | /* A4 */ "pfmax", NULL, "pfrcpit1", "pfrsqit1", | |
16511 | /* A8 */ NULL, NULL, "pfsubr", NULL, | |
16512 | /* AC */ NULL, NULL, "pfacc", NULL, | |
16513 | /* B0 */ "pfcmpeq", NULL, NULL, NULL, | |
9beff690 | 16514 | /* B4 */ "pfmul", NULL, "pfrcpit2", "pmulhrw", |
9e525108 | 16515 | /* B8 */ NULL, NULL, NULL, "pswapd", |
252b5132 RH |
16516 | /* BC */ NULL, NULL, NULL, "pavgusb", |
16517 | /* C0 */ NULL, NULL, NULL, NULL, | |
16518 | /* C4 */ NULL, NULL, NULL, NULL, | |
16519 | /* C8 */ NULL, NULL, NULL, NULL, | |
16520 | /* CC */ NULL, NULL, NULL, NULL, | |
16521 | /* D0 */ NULL, NULL, NULL, NULL, | |
16522 | /* D4 */ NULL, NULL, NULL, NULL, | |
16523 | /* D8 */ NULL, NULL, NULL, NULL, | |
16524 | /* DC */ NULL, NULL, NULL, NULL, | |
16525 | /* E0 */ NULL, NULL, NULL, NULL, | |
16526 | /* E4 */ NULL, NULL, NULL, NULL, | |
16527 | /* E8 */ NULL, NULL, NULL, NULL, | |
16528 | /* EC */ NULL, NULL, NULL, NULL, | |
16529 | /* F0 */ NULL, NULL, NULL, NULL, | |
16530 | /* F4 */ NULL, NULL, NULL, NULL, | |
16531 | /* F8 */ NULL, NULL, NULL, NULL, | |
16532 | /* FC */ NULL, NULL, NULL, NULL, | |
16533 | }; | |
16534 | ||
16535 | static void | |
26ca5450 | 16536 | OP_3DNowSuffix (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
252b5132 RH |
16537 | { |
16538 | const char *mnemonic; | |
16539 | ||
16540 | FETCH_DATA (the_info, codep + 1); | |
16541 | /* AMD 3DNow! instructions are specified by an opcode suffix in the | |
16542 | place where an 8-bit immediate would normally go. ie. the last | |
16543 | byte of the instruction. */ | |
ea397f5b | 16544 | obufp = mnemonicendp; |
c608c12e | 16545 | mnemonic = Suffix3DNow[*codep++ & 0xff]; |
252b5132 | 16546 | if (mnemonic) |
2da11e11 | 16547 | oappend (mnemonic); |
252b5132 RH |
16548 | else |
16549 | { | |
16550 | /* Since a variable sized modrm/sib chunk is between the start | |
16551 | of the opcode (0x0f0f) and the opcode suffix, we need to do | |
16552 | all the modrm processing first, and don't know until now that | |
16553 | we have a bad opcode. This necessitates some cleaning up. */ | |
ce518a5f L |
16554 | op_out[0][0] = '\0'; |
16555 | op_out[1][0] = '\0'; | |
6608db57 | 16556 | BadOp (); |
252b5132 | 16557 | } |
ea397f5b | 16558 | mnemonicendp = obufp; |
252b5132 | 16559 | } |
c608c12e | 16560 | |
ea397f5b L |
16561 | static struct op simd_cmp_op[] = |
16562 | { | |
16563 | { STRING_COMMA_LEN ("eq") }, | |
16564 | { STRING_COMMA_LEN ("lt") }, | |
16565 | { STRING_COMMA_LEN ("le") }, | |
16566 | { STRING_COMMA_LEN ("unord") }, | |
16567 | { STRING_COMMA_LEN ("neq") }, | |
16568 | { STRING_COMMA_LEN ("nlt") }, | |
16569 | { STRING_COMMA_LEN ("nle") }, | |
16570 | { STRING_COMMA_LEN ("ord") } | |
c608c12e AM |
16571 | }; |
16572 | ||
16573 | static void | |
ad19981d | 16574 | CMP_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) |
c608c12e AM |
16575 | { |
16576 | unsigned int cmp_type; | |
16577 | ||
16578 | FETCH_DATA (the_info, codep + 1); | |
16579 | cmp_type = *codep++ & 0xff; | |
c0f3af97 | 16580 | if (cmp_type < ARRAY_SIZE (simd_cmp_op)) |
c608c12e | 16581 | { |
ad19981d | 16582 | char suffix [3]; |
ea397f5b | 16583 | char *p = mnemonicendp - 2; |
ad19981d L |
16584 | suffix[0] = p[0]; |
16585 | suffix[1] = p[1]; | |
16586 | suffix[2] = '\0'; | |
ea397f5b L |
16587 | sprintf (p, "%s%s", simd_cmp_op[cmp_type].name, suffix); |
16588 | mnemonicendp += simd_cmp_op[cmp_type].len; | |
c608c12e AM |
16589 | } |
16590 | else | |
16591 | { | |
ad19981d L |
16592 | /* We have a reserved extension byte. Output it directly. */ |
16593 | scratchbuf[0] = '$'; | |
16594 | print_operand_value (scratchbuf + 1, 1, cmp_type); | |
9ce09ba2 | 16595 | oappend_maybe_intel (scratchbuf); |
ad19981d | 16596 | scratchbuf[0] = '\0'; |
c608c12e AM |
16597 | } |
16598 | } | |
16599 | ||
9916071f AP |
16600 | static void |
16601 | OP_Mwaitx (int bytemode ATTRIBUTE_UNUSED, | |
16602 | int sizeflag ATTRIBUTE_UNUSED) | |
16603 | { | |
16604 | /* mwaitx %eax,%ecx,%ebx */ | |
16605 | if (!intel_syntax) | |
16606 | { | |
16607 | const char **names = (address_mode == mode_64bit | |
16608 | ? names64 : names32); | |
16609 | strcpy (op_out[0], names[0]); | |
16610 | strcpy (op_out[1], names[1]); | |
16611 | strcpy (op_out[2], names[3]); | |
16612 | two_source_ops = 1; | |
16613 | } | |
16614 | /* Skip mod/rm byte. */ | |
16615 | MODRM_CHECK; | |
16616 | codep++; | |
16617 | } | |
16618 | ||
ca164297 | 16619 | static void |
b844680a L |
16620 | OP_Mwait (int bytemode ATTRIBUTE_UNUSED, |
16621 | int sizeflag ATTRIBUTE_UNUSED) | |
16622 | { | |
16623 | /* mwait %eax,%ecx */ | |
16624 | if (!intel_syntax) | |
16625 | { | |
16626 | const char **names = (address_mode == mode_64bit | |
16627 | ? names64 : names32); | |
16628 | strcpy (op_out[0], names[0]); | |
16629 | strcpy (op_out[1], names[1]); | |
16630 | two_source_ops = 1; | |
16631 | } | |
16632 | /* Skip mod/rm byte. */ | |
16633 | MODRM_CHECK; | |
16634 | codep++; | |
16635 | } | |
16636 | ||
16637 | static void | |
16638 | OP_Monitor (int bytemode ATTRIBUTE_UNUSED, | |
16639 | int sizeflag ATTRIBUTE_UNUSED) | |
ca164297 | 16640 | { |
b844680a L |
16641 | /* monitor %eax,%ecx,%edx" */ |
16642 | if (!intel_syntax) | |
ca164297 | 16643 | { |
b844680a | 16644 | const char **op1_names; |
cb712a9e L |
16645 | const char **names = (address_mode == mode_64bit |
16646 | ? names64 : names32); | |
1d9f512f | 16647 | |
b844680a L |
16648 | if (!(prefixes & PREFIX_ADDR)) |
16649 | op1_names = (address_mode == mode_16bit | |
16650 | ? names16 : names); | |
ca164297 L |
16651 | else |
16652 | { | |
b844680a | 16653 | /* Remove "addr16/addr32". */ |
f16cd0d5 | 16654 | all_prefixes[last_addr_prefix] = 0; |
b844680a L |
16655 | op1_names = (address_mode != mode_32bit |
16656 | ? names32 : names16); | |
16657 | used_prefixes |= PREFIX_ADDR; | |
ca164297 | 16658 | } |
b844680a L |
16659 | strcpy (op_out[0], op1_names[0]); |
16660 | strcpy (op_out[1], names[1]); | |
16661 | strcpy (op_out[2], names[2]); | |
16662 | two_source_ops = 1; | |
ca164297 | 16663 | } |
b844680a L |
16664 | /* Skip mod/rm byte. */ |
16665 | MODRM_CHECK; | |
16666 | codep++; | |
30123838 JB |
16667 | } |
16668 | ||
6608db57 KH |
16669 | static void |
16670 | BadOp (void) | |
2da11e11 | 16671 | { |
6608db57 KH |
16672 | /* Throw away prefixes and 1st. opcode byte. */ |
16673 | codep = insn_codep + 1; | |
2da11e11 AM |
16674 | oappend ("(bad)"); |
16675 | } | |
4cc91dba | 16676 | |
35c52694 L |
16677 | static void |
16678 | REP_Fixup (int bytemode, int sizeflag) | |
16679 | { | |
16680 | /* The 0xf3 prefix should be displayed as "rep" for ins, outs, movs, | |
16681 | lods and stos. */ | |
35c52694 | 16682 | if (prefixes & PREFIX_REPZ) |
f16cd0d5 | 16683 | all_prefixes[last_repz_prefix] = REP_PREFIX; |
35c52694 L |
16684 | |
16685 | switch (bytemode) | |
16686 | { | |
16687 | case al_reg: | |
16688 | case eAX_reg: | |
16689 | case indir_dx_reg: | |
16690 | OP_IMREG (bytemode, sizeflag); | |
16691 | break; | |
16692 | case eDI_reg: | |
16693 | OP_ESreg (bytemode, sizeflag); | |
16694 | break; | |
16695 | case eSI_reg: | |
16696 | OP_DSreg (bytemode, sizeflag); | |
16697 | break; | |
16698 | default: | |
16699 | abort (); | |
16700 | break; | |
16701 | } | |
16702 | } | |
f5804c90 | 16703 | |
7e8b059b L |
16704 | /* For BND-prefixed instructions 0xF2 prefix should be displayed as |
16705 | "bnd". */ | |
16706 | ||
16707 | static void | |
16708 | BND_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
16709 | { | |
16710 | if (prefixes & PREFIX_REPNZ) | |
16711 | all_prefixes[last_repnz_prefix] = BND_PREFIX; | |
16712 | } | |
16713 | ||
42164a71 L |
16714 | /* Similar to OP_E. But the 0xf2/0xf3 prefixes should be displayed as |
16715 | "xacquire"/"xrelease" for memory operand if there is a LOCK prefix. | |
16716 | */ | |
16717 | ||
16718 | static void | |
16719 | HLE_Fixup1 (int bytemode, int sizeflag) | |
16720 | { | |
16721 | if (modrm.mod != 3 | |
16722 | && (prefixes & PREFIX_LOCK) != 0) | |
16723 | { | |
16724 | if (prefixes & PREFIX_REPZ) | |
16725 | all_prefixes[last_repz_prefix] = XRELEASE_PREFIX; | |
16726 | if (prefixes & PREFIX_REPNZ) | |
16727 | all_prefixes[last_repnz_prefix] = XACQUIRE_PREFIX; | |
16728 | } | |
16729 | ||
16730 | OP_E (bytemode, sizeflag); | |
16731 | } | |
16732 | ||
16733 | /* Similar to OP_E. But the 0xf2/0xf3 prefixes should be displayed as | |
16734 | "xacquire"/"xrelease" for memory operand. No check for LOCK prefix. | |
16735 | */ | |
16736 | ||
16737 | static void | |
16738 | HLE_Fixup2 (int bytemode, int sizeflag) | |
16739 | { | |
16740 | if (modrm.mod != 3) | |
16741 | { | |
16742 | if (prefixes & PREFIX_REPZ) | |
16743 | all_prefixes[last_repz_prefix] = XRELEASE_PREFIX; | |
16744 | if (prefixes & PREFIX_REPNZ) | |
16745 | all_prefixes[last_repnz_prefix] = XACQUIRE_PREFIX; | |
16746 | } | |
16747 | ||
16748 | OP_E (bytemode, sizeflag); | |
16749 | } | |
16750 | ||
16751 | /* Similar to OP_E. But the 0xf3 prefixes should be displayed as | |
16752 | "xrelease" for memory operand. No check for LOCK prefix. */ | |
16753 | ||
16754 | static void | |
16755 | HLE_Fixup3 (int bytemode, int sizeflag) | |
16756 | { | |
16757 | if (modrm.mod != 3 | |
16758 | && last_repz_prefix > last_repnz_prefix | |
16759 | && (prefixes & PREFIX_REPZ) != 0) | |
16760 | all_prefixes[last_repz_prefix] = XRELEASE_PREFIX; | |
16761 | ||
16762 | OP_E (bytemode, sizeflag); | |
16763 | } | |
16764 | ||
f5804c90 L |
16765 | static void |
16766 | CMPXCHG8B_Fixup (int bytemode, int sizeflag) | |
16767 | { | |
161a04f6 L |
16768 | USED_REX (REX_W); |
16769 | if (rex & REX_W) | |
f5804c90 L |
16770 | { |
16771 | /* Change cmpxchg8b to cmpxchg16b. */ | |
ea397f5b L |
16772 | char *p = mnemonicendp - 2; |
16773 | mnemonicendp = stpcpy (p, "16b"); | |
fb9c77c7 | 16774 | bytemode = o_mode; |
f5804c90 | 16775 | } |
42164a71 L |
16776 | else if ((prefixes & PREFIX_LOCK) != 0) |
16777 | { | |
16778 | if (prefixes & PREFIX_REPZ) | |
16779 | all_prefixes[last_repz_prefix] = XRELEASE_PREFIX; | |
16780 | if (prefixes & PREFIX_REPNZ) | |
16781 | all_prefixes[last_repnz_prefix] = XACQUIRE_PREFIX; | |
16782 | } | |
16783 | ||
f5804c90 L |
16784 | OP_M (bytemode, sizeflag); |
16785 | } | |
42903f7f L |
16786 | |
16787 | static void | |
16788 | XMM_Fixup (int reg, int sizeflag ATTRIBUTE_UNUSED) | |
16789 | { | |
b9733481 L |
16790 | const char **names; |
16791 | ||
c0f3af97 L |
16792 | if (need_vex) |
16793 | { | |
16794 | switch (vex.length) | |
16795 | { | |
16796 | case 128: | |
b9733481 | 16797 | names = names_xmm; |
c0f3af97 L |
16798 | break; |
16799 | case 256: | |
b9733481 | 16800 | names = names_ymm; |
c0f3af97 L |
16801 | break; |
16802 | default: | |
16803 | abort (); | |
16804 | } | |
16805 | } | |
16806 | else | |
b9733481 L |
16807 | names = names_xmm; |
16808 | oappend (names[reg]); | |
42903f7f | 16809 | } |
381d071f L |
16810 | |
16811 | static void | |
16812 | CRC32_Fixup (int bytemode, int sizeflag) | |
16813 | { | |
16814 | /* Add proper suffix to "crc32". */ | |
ea397f5b | 16815 | char *p = mnemonicendp; |
381d071f L |
16816 | |
16817 | switch (bytemode) | |
16818 | { | |
16819 | case b_mode: | |
20592a94 | 16820 | if (intel_syntax) |
ea397f5b | 16821 | goto skip; |
20592a94 | 16822 | |
381d071f L |
16823 | *p++ = 'b'; |
16824 | break; | |
16825 | case v_mode: | |
20592a94 | 16826 | if (intel_syntax) |
ea397f5b | 16827 | goto skip; |
20592a94 | 16828 | |
381d071f L |
16829 | USED_REX (REX_W); |
16830 | if (rex & REX_W) | |
16831 | *p++ = 'q'; | |
7bb15c6f | 16832 | else |
f16cd0d5 L |
16833 | { |
16834 | if (sizeflag & DFLAG) | |
16835 | *p++ = 'l'; | |
16836 | else | |
16837 | *p++ = 'w'; | |
16838 | used_prefixes |= (prefixes & PREFIX_DATA); | |
16839 | } | |
381d071f L |
16840 | break; |
16841 | default: | |
16842 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
16843 | break; | |
16844 | } | |
ea397f5b | 16845 | mnemonicendp = p; |
381d071f L |
16846 | *p = '\0'; |
16847 | ||
ea397f5b | 16848 | skip: |
381d071f L |
16849 | if (modrm.mod == 3) |
16850 | { | |
16851 | int add; | |
16852 | ||
16853 | /* Skip mod/rm byte. */ | |
16854 | MODRM_CHECK; | |
16855 | codep++; | |
16856 | ||
16857 | USED_REX (REX_B); | |
16858 | add = (rex & REX_B) ? 8 : 0; | |
16859 | if (bytemode == b_mode) | |
16860 | { | |
16861 | USED_REX (0); | |
16862 | if (rex) | |
16863 | oappend (names8rex[modrm.rm + add]); | |
16864 | else | |
16865 | oappend (names8[modrm.rm + add]); | |
16866 | } | |
16867 | else | |
16868 | { | |
16869 | USED_REX (REX_W); | |
16870 | if (rex & REX_W) | |
16871 | oappend (names64[modrm.rm + add]); | |
16872 | else if ((prefixes & PREFIX_DATA)) | |
16873 | oappend (names16[modrm.rm + add]); | |
16874 | else | |
16875 | oappend (names32[modrm.rm + add]); | |
16876 | } | |
16877 | } | |
16878 | else | |
9344ff29 | 16879 | OP_E (bytemode, sizeflag); |
381d071f | 16880 | } |
85f10a01 | 16881 | |
eacc9c89 L |
16882 | static void |
16883 | FXSAVE_Fixup (int bytemode, int sizeflag) | |
16884 | { | |
16885 | /* Add proper suffix to "fxsave" and "fxrstor". */ | |
16886 | USED_REX (REX_W); | |
16887 | if (rex & REX_W) | |
16888 | { | |
16889 | char *p = mnemonicendp; | |
16890 | *p++ = '6'; | |
16891 | *p++ = '4'; | |
16892 | *p = '\0'; | |
16893 | mnemonicendp = p; | |
16894 | } | |
16895 | OP_M (bytemode, sizeflag); | |
16896 | } | |
16897 | ||
c0f3af97 L |
16898 | /* Display the destination register operand for instructions with |
16899 | VEX. */ | |
16900 | ||
16901 | static void | |
16902 | OP_VEX (int bytemode, int sizeflag ATTRIBUTE_UNUSED) | |
16903 | { | |
539f890d | 16904 | int reg; |
b9733481 L |
16905 | const char **names; |
16906 | ||
c0f3af97 L |
16907 | if (!need_vex) |
16908 | abort (); | |
16909 | ||
16910 | if (!need_vex_reg) | |
16911 | return; | |
16912 | ||
539f890d | 16913 | reg = vex.register_specifier; |
43234a1e L |
16914 | if (vex.evex) |
16915 | { | |
16916 | if (!vex.v) | |
16917 | reg += 16; | |
16918 | } | |
16919 | ||
539f890d L |
16920 | if (bytemode == vex_scalar_mode) |
16921 | { | |
16922 | oappend (names_xmm[reg]); | |
16923 | return; | |
16924 | } | |
16925 | ||
c0f3af97 L |
16926 | switch (vex.length) |
16927 | { | |
16928 | case 128: | |
16929 | switch (bytemode) | |
16930 | { | |
16931 | case vex_mode: | |
16932 | case vex128_mode: | |
6c30d220 | 16933 | case vex_vsib_q_w_dq_mode: |
5fc35d96 | 16934 | case vex_vsib_q_w_d_mode: |
cb21baef L |
16935 | names = names_xmm; |
16936 | break; | |
16937 | case dq_mode: | |
16938 | if (vex.w) | |
16939 | names = names64; | |
16940 | else | |
16941 | names = names32; | |
c0f3af97 | 16942 | break; |
1ba585e8 | 16943 | case mask_bd_mode: |
43234a1e | 16944 | case mask_mode: |
9889cbb1 L |
16945 | if (reg > 0x7) |
16946 | { | |
16947 | oappend ("(bad)"); | |
16948 | return; | |
16949 | } | |
43234a1e L |
16950 | names = names_mask; |
16951 | break; | |
c0f3af97 L |
16952 | default: |
16953 | abort (); | |
16954 | return; | |
16955 | } | |
c0f3af97 L |
16956 | break; |
16957 | case 256: | |
16958 | switch (bytemode) | |
16959 | { | |
16960 | case vex_mode: | |
16961 | case vex256_mode: | |
6c30d220 L |
16962 | names = names_ymm; |
16963 | break; | |
16964 | case vex_vsib_q_w_dq_mode: | |
5fc35d96 | 16965 | case vex_vsib_q_w_d_mode: |
6c30d220 | 16966 | names = vex.w ? names_ymm : names_xmm; |
c0f3af97 | 16967 | break; |
1ba585e8 | 16968 | case mask_bd_mode: |
43234a1e | 16969 | case mask_mode: |
9889cbb1 L |
16970 | if (reg > 0x7) |
16971 | { | |
16972 | oappend ("(bad)"); | |
16973 | return; | |
16974 | } | |
43234a1e L |
16975 | names = names_mask; |
16976 | break; | |
c0f3af97 | 16977 | default: |
a37a2806 NC |
16978 | /* See PR binutils/20893 for a reproducer. */ |
16979 | oappend ("(bad)"); | |
c0f3af97 L |
16980 | return; |
16981 | } | |
c0f3af97 | 16982 | break; |
43234a1e L |
16983 | case 512: |
16984 | names = names_zmm; | |
16985 | break; | |
c0f3af97 L |
16986 | default: |
16987 | abort (); | |
16988 | break; | |
16989 | } | |
539f890d | 16990 | oappend (names[reg]); |
c0f3af97 L |
16991 | } |
16992 | ||
922d8de8 DR |
16993 | /* Get the VEX immediate byte without moving codep. */ |
16994 | ||
16995 | static unsigned char | |
ccc5981b | 16996 | get_vex_imm8 (int sizeflag, int opnum) |
922d8de8 DR |
16997 | { |
16998 | int bytes_before_imm = 0; | |
16999 | ||
922d8de8 DR |
17000 | if (modrm.mod != 3) |
17001 | { | |
17002 | /* There are SIB/displacement bytes. */ | |
17003 | if ((sizeflag & AFLAG) || address_mode == mode_64bit) | |
6c067bbb | 17004 | { |
922d8de8 | 17005 | /* 32/64 bit address mode */ |
6c067bbb | 17006 | int base = modrm.rm; |
922d8de8 DR |
17007 | |
17008 | /* Check SIB byte. */ | |
6c067bbb RM |
17009 | if (base == 4) |
17010 | { | |
17011 | FETCH_DATA (the_info, codep + 1); | |
17012 | base = *codep & 7; | |
17013 | /* When decoding the third source, don't increase | |
17014 | bytes_before_imm as this has already been incremented | |
17015 | by one in OP_E_memory while decoding the second | |
17016 | source operand. */ | |
17017 | if (opnum == 0) | |
17018 | bytes_before_imm++; | |
17019 | } | |
17020 | ||
17021 | /* Don't increase bytes_before_imm when decoding the third source, | |
17022 | it has already been incremented by OP_E_memory while decoding | |
17023 | the second source operand. */ | |
17024 | if (opnum == 0) | |
17025 | { | |
17026 | switch (modrm.mod) | |
17027 | { | |
17028 | case 0: | |
17029 | /* When modrm.rm == 5 or modrm.rm == 4 and base in | |
17030 | SIB == 5, there is a 4 byte displacement. */ | |
17031 | if (base != 5) | |
17032 | /* No displacement. */ | |
17033 | break; | |
1a0670f3 | 17034 | /* Fall through. */ |
6c067bbb RM |
17035 | case 2: |
17036 | /* 4 byte displacement. */ | |
17037 | bytes_before_imm += 4; | |
17038 | break; | |
17039 | case 1: | |
17040 | /* 1 byte displacement. */ | |
17041 | bytes_before_imm++; | |
17042 | break; | |
17043 | } | |
17044 | } | |
17045 | } | |
922d8de8 | 17046 | else |
02e647f9 SP |
17047 | { |
17048 | /* 16 bit address mode */ | |
6c067bbb RM |
17049 | /* Don't increase bytes_before_imm when decoding the third source, |
17050 | it has already been incremented by OP_E_memory while decoding | |
17051 | the second source operand. */ | |
17052 | if (opnum == 0) | |
17053 | { | |
02e647f9 SP |
17054 | switch (modrm.mod) |
17055 | { | |
17056 | case 0: | |
17057 | /* When modrm.rm == 6, there is a 2 byte displacement. */ | |
17058 | if (modrm.rm != 6) | |
17059 | /* No displacement. */ | |
17060 | break; | |
1a0670f3 | 17061 | /* Fall through. */ |
02e647f9 SP |
17062 | case 2: |
17063 | /* 2 byte displacement. */ | |
17064 | bytes_before_imm += 2; | |
17065 | break; | |
17066 | case 1: | |
17067 | /* 1 byte displacement: when decoding the third source, | |
17068 | don't increase bytes_before_imm as this has already | |
17069 | been incremented by one in OP_E_memory while decoding | |
17070 | the second source operand. */ | |
17071 | if (opnum == 0) | |
17072 | bytes_before_imm++; | |
ccc5981b | 17073 | |
02e647f9 SP |
17074 | break; |
17075 | } | |
922d8de8 DR |
17076 | } |
17077 | } | |
17078 | } | |
17079 | ||
17080 | FETCH_DATA (the_info, codep + bytes_before_imm + 1); | |
17081 | return codep [bytes_before_imm]; | |
17082 | } | |
17083 | ||
17084 | static void | |
17085 | OP_EX_VexReg (int bytemode, int sizeflag, int reg) | |
17086 | { | |
b9733481 L |
17087 | const char **names; |
17088 | ||
922d8de8 DR |
17089 | if (reg == -1 && modrm.mod != 3) |
17090 | { | |
17091 | OP_E_memory (bytemode, sizeflag); | |
17092 | return; | |
17093 | } | |
17094 | else | |
17095 | { | |
17096 | if (reg == -1) | |
17097 | { | |
17098 | reg = modrm.rm; | |
17099 | USED_REX (REX_B); | |
17100 | if (rex & REX_B) | |
17101 | reg += 8; | |
17102 | } | |
17103 | else if (reg > 7 && address_mode != mode_64bit) | |
17104 | BadOp (); | |
17105 | } | |
17106 | ||
17107 | switch (vex.length) | |
17108 | { | |
17109 | case 128: | |
b9733481 | 17110 | names = names_xmm; |
922d8de8 DR |
17111 | break; |
17112 | case 256: | |
b9733481 | 17113 | names = names_ymm; |
922d8de8 DR |
17114 | break; |
17115 | default: | |
17116 | abort (); | |
17117 | } | |
b9733481 | 17118 | oappend (names[reg]); |
922d8de8 DR |
17119 | } |
17120 | ||
a683cc34 SP |
17121 | static void |
17122 | OP_EX_VexImmW (int bytemode, int sizeflag) | |
17123 | { | |
17124 | int reg = -1; | |
17125 | static unsigned char vex_imm8; | |
17126 | ||
17127 | if (vex_w_done == 0) | |
17128 | { | |
17129 | vex_w_done = 1; | |
17130 | ||
17131 | /* Skip mod/rm byte. */ | |
17132 | MODRM_CHECK; | |
17133 | codep++; | |
17134 | ||
17135 | vex_imm8 = get_vex_imm8 (sizeflag, 0); | |
17136 | ||
17137 | if (vex.w) | |
17138 | reg = vex_imm8 >> 4; | |
17139 | ||
17140 | OP_EX_VexReg (bytemode, sizeflag, reg); | |
17141 | } | |
17142 | else if (vex_w_done == 1) | |
17143 | { | |
17144 | vex_w_done = 2; | |
17145 | ||
17146 | if (!vex.w) | |
17147 | reg = vex_imm8 >> 4; | |
17148 | ||
17149 | OP_EX_VexReg (bytemode, sizeflag, reg); | |
17150 | } | |
17151 | else | |
17152 | { | |
17153 | /* Output the imm8 directly. */ | |
17154 | scratchbuf[0] = '$'; | |
17155 | print_operand_value (scratchbuf + 1, 1, vex_imm8 & 0xf); | |
9ce09ba2 | 17156 | oappend_maybe_intel (scratchbuf); |
a683cc34 SP |
17157 | scratchbuf[0] = '\0'; |
17158 | codep++; | |
17159 | } | |
17160 | } | |
17161 | ||
5dd85c99 SP |
17162 | static void |
17163 | OP_Vex_2src (int bytemode, int sizeflag) | |
17164 | { | |
17165 | if (modrm.mod == 3) | |
17166 | { | |
b9733481 | 17167 | int reg = modrm.rm; |
5dd85c99 | 17168 | USED_REX (REX_B); |
b9733481 L |
17169 | if (rex & REX_B) |
17170 | reg += 8; | |
17171 | oappend (names_xmm[reg]); | |
5dd85c99 SP |
17172 | } |
17173 | else | |
17174 | { | |
17175 | if (intel_syntax | |
17176 | && (bytemode == v_mode || bytemode == v_swap_mode)) | |
17177 | { | |
17178 | bytemode = (prefixes & PREFIX_DATA) ? x_mode : q_mode; | |
17179 | used_prefixes |= (prefixes & PREFIX_DATA); | |
17180 | } | |
17181 | OP_E (bytemode, sizeflag); | |
17182 | } | |
17183 | } | |
17184 | ||
17185 | static void | |
17186 | OP_Vex_2src_1 (int bytemode, int sizeflag) | |
17187 | { | |
17188 | if (modrm.mod == 3) | |
17189 | { | |
17190 | /* Skip mod/rm byte. */ | |
17191 | MODRM_CHECK; | |
17192 | codep++; | |
17193 | } | |
17194 | ||
17195 | if (vex.w) | |
b9733481 | 17196 | oappend (names_xmm[vex.register_specifier]); |
5dd85c99 SP |
17197 | else |
17198 | OP_Vex_2src (bytemode, sizeflag); | |
17199 | } | |
17200 | ||
17201 | static void | |
17202 | OP_Vex_2src_2 (int bytemode, int sizeflag) | |
17203 | { | |
17204 | if (vex.w) | |
17205 | OP_Vex_2src (bytemode, sizeflag); | |
17206 | else | |
b9733481 | 17207 | oappend (names_xmm[vex.register_specifier]); |
5dd85c99 SP |
17208 | } |
17209 | ||
922d8de8 DR |
17210 | static void |
17211 | OP_EX_VexW (int bytemode, int sizeflag) | |
17212 | { | |
17213 | int reg = -1; | |
17214 | ||
17215 | if (!vex_w_done) | |
17216 | { | |
17217 | vex_w_done = 1; | |
41effecb SP |
17218 | |
17219 | /* Skip mod/rm byte. */ | |
17220 | MODRM_CHECK; | |
17221 | codep++; | |
17222 | ||
922d8de8 | 17223 | if (vex.w) |
ccc5981b | 17224 | reg = get_vex_imm8 (sizeflag, 0) >> 4; |
922d8de8 DR |
17225 | } |
17226 | else | |
17227 | { | |
17228 | if (!vex.w) | |
ccc5981b | 17229 | reg = get_vex_imm8 (sizeflag, 1) >> 4; |
922d8de8 DR |
17230 | } |
17231 | ||
17232 | OP_EX_VexReg (bytemode, sizeflag, reg); | |
17233 | } | |
17234 | ||
922d8de8 DR |
17235 | static void |
17236 | VEXI4_Fixup (int bytemode ATTRIBUTE_UNUSED, | |
17237 | int sizeflag ATTRIBUTE_UNUSED) | |
17238 | { | |
17239 | /* Skip the immediate byte and check for invalid bits. */ | |
17240 | FETCH_DATA (the_info, codep + 1); | |
17241 | if (*codep++ & 0xf) | |
17242 | BadOp (); | |
17243 | } | |
17244 | ||
c0f3af97 L |
17245 | static void |
17246 | OP_REG_VexI4 (int bytemode, int sizeflag ATTRIBUTE_UNUSED) | |
17247 | { | |
17248 | int reg; | |
b9733481 L |
17249 | const char **names; |
17250 | ||
c0f3af97 L |
17251 | FETCH_DATA (the_info, codep + 1); |
17252 | reg = *codep++; | |
17253 | ||
17254 | if (bytemode != x_mode) | |
17255 | abort (); | |
17256 | ||
17257 | if (reg & 0xf) | |
17258 | BadOp (); | |
17259 | ||
17260 | reg >>= 4; | |
dae39acc L |
17261 | if (reg > 7 && address_mode != mode_64bit) |
17262 | BadOp (); | |
17263 | ||
c0f3af97 L |
17264 | switch (vex.length) |
17265 | { | |
17266 | case 128: | |
b9733481 | 17267 | names = names_xmm; |
c0f3af97 L |
17268 | break; |
17269 | case 256: | |
b9733481 | 17270 | names = names_ymm; |
c0f3af97 L |
17271 | break; |
17272 | default: | |
17273 | abort (); | |
17274 | } | |
b9733481 | 17275 | oappend (names[reg]); |
c0f3af97 L |
17276 | } |
17277 | ||
922d8de8 DR |
17278 | static void |
17279 | OP_XMM_VexW (int bytemode, int sizeflag) | |
17280 | { | |
17281 | /* Turn off the REX.W bit since it is used for swapping operands | |
17282 | now. */ | |
17283 | rex &= ~REX_W; | |
17284 | OP_XMM (bytemode, sizeflag); | |
17285 | } | |
17286 | ||
c0f3af97 L |
17287 | static void |
17288 | OP_EX_Vex (int bytemode, int sizeflag) | |
17289 | { | |
17290 | if (modrm.mod != 3) | |
17291 | { | |
17292 | if (vex.register_specifier != 0) | |
17293 | BadOp (); | |
17294 | need_vex_reg = 0; | |
17295 | } | |
17296 | OP_EX (bytemode, sizeflag); | |
17297 | } | |
17298 | ||
17299 | static void | |
17300 | OP_XMM_Vex (int bytemode, int sizeflag) | |
17301 | { | |
17302 | if (modrm.mod != 3) | |
17303 | { | |
17304 | if (vex.register_specifier != 0) | |
17305 | BadOp (); | |
17306 | need_vex_reg = 0; | |
17307 | } | |
17308 | OP_XMM (bytemode, sizeflag); | |
17309 | } | |
17310 | ||
17311 | static void | |
17312 | VZERO_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
17313 | { | |
17314 | switch (vex.length) | |
17315 | { | |
17316 | case 128: | |
ea397f5b | 17317 | mnemonicendp = stpcpy (obuf, "vzeroupper"); |
c0f3af97 L |
17318 | break; |
17319 | case 256: | |
ea397f5b | 17320 | mnemonicendp = stpcpy (obuf, "vzeroall"); |
c0f3af97 L |
17321 | break; |
17322 | default: | |
17323 | abort (); | |
17324 | } | |
17325 | } | |
17326 | ||
ea397f5b L |
17327 | static struct op vex_cmp_op[] = |
17328 | { | |
17329 | { STRING_COMMA_LEN ("eq") }, | |
17330 | { STRING_COMMA_LEN ("lt") }, | |
17331 | { STRING_COMMA_LEN ("le") }, | |
17332 | { STRING_COMMA_LEN ("unord") }, | |
17333 | { STRING_COMMA_LEN ("neq") }, | |
17334 | { STRING_COMMA_LEN ("nlt") }, | |
17335 | { STRING_COMMA_LEN ("nle") }, | |
17336 | { STRING_COMMA_LEN ("ord") }, | |
17337 | { STRING_COMMA_LEN ("eq_uq") }, | |
17338 | { STRING_COMMA_LEN ("nge") }, | |
17339 | { STRING_COMMA_LEN ("ngt") }, | |
17340 | { STRING_COMMA_LEN ("false") }, | |
17341 | { STRING_COMMA_LEN ("neq_oq") }, | |
17342 | { STRING_COMMA_LEN ("ge") }, | |
17343 | { STRING_COMMA_LEN ("gt") }, | |
17344 | { STRING_COMMA_LEN ("true") }, | |
17345 | { STRING_COMMA_LEN ("eq_os") }, | |
17346 | { STRING_COMMA_LEN ("lt_oq") }, | |
17347 | { STRING_COMMA_LEN ("le_oq") }, | |
17348 | { STRING_COMMA_LEN ("unord_s") }, | |
17349 | { STRING_COMMA_LEN ("neq_us") }, | |
17350 | { STRING_COMMA_LEN ("nlt_uq") }, | |
17351 | { STRING_COMMA_LEN ("nle_uq") }, | |
17352 | { STRING_COMMA_LEN ("ord_s") }, | |
17353 | { STRING_COMMA_LEN ("eq_us") }, | |
17354 | { STRING_COMMA_LEN ("nge_uq") }, | |
17355 | { STRING_COMMA_LEN ("ngt_uq") }, | |
17356 | { STRING_COMMA_LEN ("false_os") }, | |
17357 | { STRING_COMMA_LEN ("neq_os") }, | |
17358 | { STRING_COMMA_LEN ("ge_oq") }, | |
17359 | { STRING_COMMA_LEN ("gt_oq") }, | |
17360 | { STRING_COMMA_LEN ("true_us") }, | |
c0f3af97 L |
17361 | }; |
17362 | ||
17363 | static void | |
17364 | VCMP_Fixup (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
17365 | { | |
17366 | unsigned int cmp_type; | |
17367 | ||
17368 | FETCH_DATA (the_info, codep + 1); | |
17369 | cmp_type = *codep++ & 0xff; | |
17370 | if (cmp_type < ARRAY_SIZE (vex_cmp_op)) | |
17371 | { | |
17372 | char suffix [3]; | |
ea397f5b | 17373 | char *p = mnemonicendp - 2; |
c0f3af97 L |
17374 | suffix[0] = p[0]; |
17375 | suffix[1] = p[1]; | |
17376 | suffix[2] = '\0'; | |
ea397f5b L |
17377 | sprintf (p, "%s%s", vex_cmp_op[cmp_type].name, suffix); |
17378 | mnemonicendp += vex_cmp_op[cmp_type].len; | |
c0f3af97 L |
17379 | } |
17380 | else | |
17381 | { | |
17382 | /* We have a reserved extension byte. Output it directly. */ | |
17383 | scratchbuf[0] = '$'; | |
17384 | print_operand_value (scratchbuf + 1, 1, cmp_type); | |
9ce09ba2 | 17385 | oappend_maybe_intel (scratchbuf); |
c0f3af97 L |
17386 | scratchbuf[0] = '\0'; |
17387 | } | |
17388 | } | |
17389 | ||
43234a1e L |
17390 | static void |
17391 | VPCMP_Fixup (int bytemode ATTRIBUTE_UNUSED, | |
17392 | int sizeflag ATTRIBUTE_UNUSED) | |
17393 | { | |
17394 | unsigned int cmp_type; | |
17395 | ||
17396 | if (!vex.evex) | |
17397 | abort (); | |
17398 | ||
17399 | FETCH_DATA (the_info, codep + 1); | |
17400 | cmp_type = *codep++ & 0xff; | |
17401 | /* There are aliases for immediates 0, 1, 2, 4, 5, 6. | |
17402 | If it's the case, print suffix, otherwise - print the immediate. */ | |
17403 | if (cmp_type < ARRAY_SIZE (simd_cmp_op) | |
17404 | && cmp_type != 3 | |
17405 | && cmp_type != 7) | |
17406 | { | |
17407 | char suffix [3]; | |
17408 | char *p = mnemonicendp - 2; | |
17409 | ||
17410 | /* vpcmp* can have both one- and two-lettered suffix. */ | |
17411 | if (p[0] == 'p') | |
17412 | { | |
17413 | p++; | |
17414 | suffix[0] = p[0]; | |
17415 | suffix[1] = '\0'; | |
17416 | } | |
17417 | else | |
17418 | { | |
17419 | suffix[0] = p[0]; | |
17420 | suffix[1] = p[1]; | |
17421 | suffix[2] = '\0'; | |
17422 | } | |
17423 | ||
17424 | sprintf (p, "%s%s", simd_cmp_op[cmp_type].name, suffix); | |
17425 | mnemonicendp += simd_cmp_op[cmp_type].len; | |
17426 | } | |
17427 | else | |
17428 | { | |
17429 | /* We have a reserved extension byte. Output it directly. */ | |
17430 | scratchbuf[0] = '$'; | |
17431 | print_operand_value (scratchbuf + 1, 1, cmp_type); | |
9ce09ba2 | 17432 | oappend_maybe_intel (scratchbuf); |
43234a1e L |
17433 | scratchbuf[0] = '\0'; |
17434 | } | |
17435 | } | |
17436 | ||
ea397f5b L |
17437 | static const struct op pclmul_op[] = |
17438 | { | |
17439 | { STRING_COMMA_LEN ("lql") }, | |
17440 | { STRING_COMMA_LEN ("hql") }, | |
17441 | { STRING_COMMA_LEN ("lqh") }, | |
17442 | { STRING_COMMA_LEN ("hqh") } | |
c0f3af97 L |
17443 | }; |
17444 | ||
17445 | static void | |
17446 | PCLMUL_Fixup (int bytemode ATTRIBUTE_UNUSED, | |
17447 | int sizeflag ATTRIBUTE_UNUSED) | |
17448 | { | |
17449 | unsigned int pclmul_type; | |
17450 | ||
17451 | FETCH_DATA (the_info, codep + 1); | |
17452 | pclmul_type = *codep++ & 0xff; | |
17453 | switch (pclmul_type) | |
17454 | { | |
17455 | case 0x10: | |
17456 | pclmul_type = 2; | |
17457 | break; | |
17458 | case 0x11: | |
17459 | pclmul_type = 3; | |
17460 | break; | |
17461 | default: | |
17462 | break; | |
7bb15c6f | 17463 | } |
c0f3af97 L |
17464 | if (pclmul_type < ARRAY_SIZE (pclmul_op)) |
17465 | { | |
17466 | char suffix [4]; | |
ea397f5b | 17467 | char *p = mnemonicendp - 3; |
c0f3af97 L |
17468 | suffix[0] = p[0]; |
17469 | suffix[1] = p[1]; | |
17470 | suffix[2] = p[2]; | |
17471 | suffix[3] = '\0'; | |
ea397f5b L |
17472 | sprintf (p, "%s%s", pclmul_op[pclmul_type].name, suffix); |
17473 | mnemonicendp += pclmul_op[pclmul_type].len; | |
c0f3af97 L |
17474 | } |
17475 | else | |
17476 | { | |
17477 | /* We have a reserved extension byte. Output it directly. */ | |
17478 | scratchbuf[0] = '$'; | |
17479 | print_operand_value (scratchbuf + 1, 1, pclmul_type); | |
9ce09ba2 | 17480 | oappend_maybe_intel (scratchbuf); |
c0f3af97 L |
17481 | scratchbuf[0] = '\0'; |
17482 | } | |
17483 | } | |
17484 | ||
f1f8f695 L |
17485 | static void |
17486 | MOVBE_Fixup (int bytemode, int sizeflag) | |
17487 | { | |
17488 | /* Add proper suffix to "movbe". */ | |
ea397f5b | 17489 | char *p = mnemonicendp; |
f1f8f695 L |
17490 | |
17491 | switch (bytemode) | |
17492 | { | |
17493 | case v_mode: | |
17494 | if (intel_syntax) | |
ea397f5b | 17495 | goto skip; |
f1f8f695 L |
17496 | |
17497 | USED_REX (REX_W); | |
17498 | if (sizeflag & SUFFIX_ALWAYS) | |
17499 | { | |
17500 | if (rex & REX_W) | |
17501 | *p++ = 'q'; | |
f1f8f695 | 17502 | else |
f16cd0d5 L |
17503 | { |
17504 | if (sizeflag & DFLAG) | |
17505 | *p++ = 'l'; | |
17506 | else | |
17507 | *p++ = 'w'; | |
17508 | used_prefixes |= (prefixes & PREFIX_DATA); | |
17509 | } | |
f1f8f695 | 17510 | } |
f1f8f695 L |
17511 | break; |
17512 | default: | |
17513 | oappend (INTERNAL_DISASSEMBLER_ERROR); | |
17514 | break; | |
17515 | } | |
ea397f5b | 17516 | mnemonicendp = p; |
f1f8f695 L |
17517 | *p = '\0'; |
17518 | ||
ea397f5b | 17519 | skip: |
f1f8f695 L |
17520 | OP_M (bytemode, sizeflag); |
17521 | } | |
f88c9eb0 SP |
17522 | |
17523 | static void | |
17524 | OP_LWPCB_E (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
17525 | { | |
17526 | int reg; | |
17527 | const char **names; | |
17528 | ||
17529 | /* Skip mod/rm byte. */ | |
17530 | MODRM_CHECK; | |
17531 | codep++; | |
17532 | ||
17533 | if (vex.w) | |
17534 | names = names64; | |
f88c9eb0 | 17535 | else |
ce7d077e | 17536 | names = names32; |
f88c9eb0 SP |
17537 | |
17538 | reg = modrm.rm; | |
17539 | USED_REX (REX_B); | |
17540 | if (rex & REX_B) | |
17541 | reg += 8; | |
17542 | ||
17543 | oappend (names[reg]); | |
17544 | } | |
17545 | ||
17546 | static void | |
17547 | OP_LWP_E (int bytemode ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) | |
17548 | { | |
17549 | const char **names; | |
17550 | ||
17551 | if (vex.w) | |
17552 | names = names64; | |
f88c9eb0 | 17553 | else |
ce7d077e | 17554 | names = names32; |
f88c9eb0 SP |
17555 | |
17556 | oappend (names[vex.register_specifier]); | |
17557 | } | |
43234a1e L |
17558 | |
17559 | static void | |
17560 | OP_Mask (int bytemode, int sizeflag ATTRIBUTE_UNUSED) | |
17561 | { | |
17562 | if (!vex.evex | |
1ba585e8 | 17563 | || (bytemode != mask_mode && bytemode != mask_bd_mode)) |
43234a1e L |
17564 | abort (); |
17565 | ||
17566 | USED_REX (REX_R); | |
17567 | if ((rex & REX_R) != 0 || !vex.r) | |
17568 | { | |
17569 | BadOp (); | |
17570 | return; | |
17571 | } | |
17572 | ||
17573 | oappend (names_mask [modrm.reg]); | |
17574 | } | |
17575 | ||
17576 | static void | |
17577 | OP_Rounding (int bytemode, int sizeflag ATTRIBUTE_UNUSED) | |
17578 | { | |
17579 | if (!vex.evex | |
17580 | || (bytemode != evex_rounding_mode | |
17581 | && bytemode != evex_sae_mode)) | |
17582 | abort (); | |
17583 | if (modrm.mod == 3 && vex.b) | |
17584 | switch (bytemode) | |
17585 | { | |
17586 | case evex_rounding_mode: | |
17587 | oappend (names_rounding[vex.ll]); | |
17588 | break; | |
17589 | case evex_sae_mode: | |
17590 | oappend ("{sae}"); | |
17591 | break; | |
17592 | default: | |
17593 | break; | |
17594 | } | |
17595 | } |