VirtualBox

source: vbox/trunk/include/VBox/disopcode.h@ 96550

Last change on this file since 96550 was 96407, checked in by vboxsync, 2 years ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 34.0 KB
Line 
1/** @file
2 * Disassembler - Opcodes
3 */
4
5/*
6 * Copyright (C) 2006-2022 Oracle and/or its affiliates.
7 *
8 * This file is part of VirtualBox base platform packages, as
9 * available from https://www.virtualbox.org.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation, in version 3 of the
14 * License.
15 *
16 * This program is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, see <https://www.gnu.org/licenses>.
23 *
24 * The contents of this file may alternatively be used under the terms
25 * of the Common Development and Distribution License Version 1.0
26 * (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
27 * in the VirtualBox distribution, in which case the provisions of the
28 * CDDL are applicable instead of those of the GPL.
29 *
30 * You may elect to license modified versions of this file under the
31 * terms and conditions of either the GPL or the CDDL or both.
32 *
33 * SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
34 */
35
36#ifndef VBOX_INCLUDED_disopcode_h
37#define VBOX_INCLUDED_disopcode_h
38#ifndef RT_WITHOUT_PRAGMA_ONCE
39# pragma once
40#endif
41
42#include <iprt/assert.h>
43
44#define MODRM_MOD(a) (a>>6)
45#define MODRM_REG(a) ((a>>3)&0x7)
46#define MODRM_RM(a) (a&0x7)
47#define MAKE_MODRM(mod, reg, rm) (((mod&3) << 6) | ((reg&7) << 3) | (rm&7))
48
49#define SIB_SCALE(a) (a>>6)
50#define SIB_INDEX(a) ((a>>3)&0x7)
51#define SIB_BASE(a) (a&0x7)
52
53
54/** @defgroup grp_dis_opcodes Opcodes (DISOPCODE::uOpCode)
55 * @ingroup grp_dis
56 * @{
57 */
58enum OPCODES
59{
60/** @name Full Intel X86 opcode list
61 * @{ */
62 OP_INVALID = 0,
63 OP_OPSIZE,
64 OP_ADDRSIZE,
65 OP_SEG,
66 OP_REPNE,
67 OP_REPE,
68 OP_REX,
69 OP_LOCK,
70#ifndef IN_SLICKEDIT
71 OP_LAST_PREFIX = OP_LOCK, /**< Last prefix for disassembler. */
72#else
73 OP_LAST_PREFIX = 7, /**< Last prefix for disassembler. */
74#endif
75 OP_AND,
76 OP_OR,
77 OP_DAA,
78 OP_SUB,
79 OP_DAS,
80 OP_XOR,
81 OP_AAA,
82 OP_CMP,
83 OP_IMM_GRP1,
84 OP_AAS,
85 OP_INC,
86 OP_DEC,
87 OP_PUSHA,
88 OP_POPA,
89 OP_BOUND,
90 OP_ARPL,
91 OP_PUSH,
92 OP_POP,
93 OP_IMUL,
94 OP_INSB,
95 OP_INSWD,
96 OP_OUTSB,
97 OP_OUTSWD,
98 OP_JO,
99 OP_JNO,
100 OP_JC,
101 OP_JNC,
102 OP_JE,
103 OP_JNE,
104 OP_JBE,
105 OP_JNBE,
106 OP_JS,
107 OP_JNS,
108 OP_JP,
109 OP_JNP,
110 OP_JL,
111 OP_JNL,
112 OP_JLE,
113 OP_JNLE,
114 OP_ADD,
115 OP_TEST,
116 OP_XCHG,
117 OP_MOV,
118 OP_LEA,
119 OP_NOP,
120 OP_CBW,
121 OP_CWD,
122 OP_CALL,
123 OP_WAIT,
124 OP_PUSHF,
125 OP_POPF,
126 OP_SAHF,
127 OP_LAHF,
128 OP_MOVSB,
129 OP_MOVSWD,
130 OP_CMPSB,
131 OP_CMPWD,
132 OP_STOSB,
133 OP_STOSWD,
134 OP_LODSB,
135 OP_LODSWD,
136 OP_SCASB,
137 OP_SCASWD,
138 OP_SHIFT_GRP2,
139 OP_RETN,
140 OP_LES,
141 OP_LDS,
142 OP_ENTER,
143 OP_LEAVE,
144 OP_RETF,
145 OP_INT1,
146 OP_INT3,
147 OP_INT,
148 OP_INTO,
149 OP_IRET,
150 OP_AAM,
151 OP_AAD,
152 OP_XLAT,
153 OP_ESCF0,
154 OP_ESCF1,
155 OP_ESCF2,
156 OP_ESCF3,
157 OP_ESCF4,
158 OP_ESCF5,
159 OP_ESCF6,
160 OP_ESCF7,
161 OP_LOOPNE,
162 OP_LOOPE,
163 OP_LOOP,
164 OP_JECXZ,
165 OP_IN,
166 OP_OUT,
167 OP_JMP,
168 OP_2B_ESC,
169 OP_ADC,
170 OP_SBB,
171 OP_HLT,
172 OP_CMC,
173 OP_UNARY_GRP3,
174 OP_CLC,
175 OP_STC,
176 OP_CLI,
177 OP_STI,
178 OP_CLD,
179 OP_STD,
180 OP_INC_GRP4,
181 OP_IND_GRP5,
182 OP_GRP6,
183 OP_GRP7,
184 OP_LAR,
185 OP_LSL,
186 OP_SYSCALL,
187 OP_CLTS,
188 OP_SYSRET,
189 OP_INVD,
190 OP_WBINVD,
191 OP_ILLUD2,
192 OP_FEMMS,
193 OP_3DNOW,
194 OP_MOVUPS,
195 OP_MOVLPS,
196 OP_MOVHLPS = OP_MOVLPS, /**< @todo OP_MOVHLPS */
197 OP_UNPCKLPS,
198 OP_MOVHPS,
199 OP_MOVLHPS = OP_MOVHPS, /**< @todo OP_MOVLHPS */
200 OP_UNPCKHPS,
201 OP_PREFETCH_GRP16,
202 OP_MOV_CR,
203 OP_MOVAPS,
204 OP_CVTPI2PS,
205 OP_MOVNTPS,
206 OP_CVTTPS2PI,
207 OP_CVTPS2PI,
208 OP_UCOMISS,
209 OP_COMISS,
210 OP_WRMSR,
211 OP_RDTSC,
212 OP_RDMSR,
213 OP_RDPMC,
214 OP_SYSENTER,
215 OP_SYSEXIT,
216 OP_GETSEC,
217 OP_PAUSE,
218 OP_CMOVO,
219 OP_CMOVNO,
220 OP_CMOVC,
221 OP_CMOVNC,
222 OP_CMOVZ,
223 OP_CMOVNZ,
224 OP_CMOVBE,
225 OP_CMOVNBE,
226 OP_CMOVS,
227 OP_CMOVNS,
228 OP_CMOVP,
229 OP_CMOVNP,
230 OP_CMOVL,
231 OP_CMOVNL,
232 OP_CMOVLE,
233 OP_CMOVNLE,
234 OP_MOVMSKPS,
235 OP_SQRTPS,
236 OP_RSQRTPS,
237 OP_RCPPS,
238 OP_ANDPS,
239 OP_ANDNPS,
240 OP_ORPS,
241 OP_XORPS,
242 OP_ADDPS,
243 OP_MULPS,
244 OP_CVTPS2PD,
245 OP_CVTDQ2PS,
246 OP_SUBPS,
247 OP_MINPS,
248 OP_DIVPS,
249 OP_MAXPS,
250 OP_PUNPCKLBW,
251 OP_PUNPCKLWD,
252 OP_PUNPCKLDQ,
253 OP_PACKSSWB,
254 OP_PCMPGTB,
255 OP_PCMPGTW,
256 OP_PCMPGTD,
257 OP_PCMPGTQ,
258 OP_PACKUSWB,
259 OP_PUNPCKHBW,
260 OP_PUNPCKHWD,
261 OP_PUNPCKHDQ,
262 OP_PACKSSDW,
263 OP_MOVD,
264 OP_MOVQ,
265 OP_PSHUFW,
266 OP_3B_ESC4,
267 OP_3B_ESC5,
268 OP_PCMPEQB,
269 OP_PCMPEQW,
270 OP_PCMPEQD,
271 OP_PCMPEQQ,
272 OP_SETO,
273 OP_SETNO,
274 OP_SETC,
275 OP_SETNC,
276 OP_SETE,
277 OP_SETNE,
278 OP_SETBE,
279 OP_SETNBE,
280 OP_SETS,
281 OP_SETNS,
282 OP_SETP,
283 OP_SETNP,
284 OP_SETL,
285 OP_SETNL,
286 OP_SETLE,
287 OP_SETNLE,
288 OP_CPUID,
289 OP_BT,
290 OP_SHLD,
291 OP_RSM,
292 OP_BTS,
293 OP_SHRD,
294 OP_GRP15,
295 OP_CMPXCHG,
296 OP_LSS,
297 OP_BTR,
298 OP_LFS,
299 OP_LGS,
300 OP_MOVZX,
301 OP_GRP10_INV,
302 OP_GRP8,
303 OP_BTC,
304 OP_BSF,
305 OP_BSR,
306 OP_MOVSX,
307 OP_XADD,
308 OP_CMPPS,
309 OP_MOVNTI,
310 OP_PINSRW,
311 OP_PEXTRW,
312 OP_SHUFPS,
313 OP_GRP9,
314 OP_BSWAP,
315 OP_ADDSUBPS,
316 OP_ADDSUBPD,
317 OP_PSRLW,
318 OP_PSRLD,
319 OP_PSRLQ,
320 OP_PADDQ,
321 OP_PMULLW,
322 OP_PMOVMSKB,
323 OP_PSUBUSB,
324 OP_PSUBUSW,
325 OP_PMINUB,
326 OP_PAND,
327 OP_PADDUSB,
328 OP_PADDUSW,
329 OP_PMAXUB,
330 OP_PANDN,
331 OP_PAVGB,
332 OP_PSRAW,
333 OP_PSRAD,
334 OP_PAVGW,
335 OP_PMULHUW,
336 OP_PMULHW,
337 OP_MOVNTQ,
338 OP_PSUBSB,
339 OP_PSUBSW,
340 OP_PMINSW,
341 OP_POR,
342 OP_PADDSB,
343 OP_PADDSW,
344 OP_PMAXSW,
345 OP_PXOR,
346 OP_LDDQU,
347 OP_PSLLW,
348 OP_PSLLD,
349 OP_PSSQ,
350 OP_PMULUDQ,
351 OP_PMADDWD,
352 OP_PSADBW,
353 OP_MASKMOVQ,
354 OP_PSUBB,
355 OP_PSUBW,
356 OP_PSUBD,
357 OP_PSUBQ,
358 OP_PADDB,
359 OP_PADDW,
360 OP_PADDD,
361 OP_MOVUPD,
362 OP_MOVLPD,
363 OP_UNPCKLPD,
364 OP_UNPCKHPD,
365 OP_MOVHPD,
366 OP_MOVAPD,
367 OP_CVTPI2PD,
368 OP_MOVNTPD,
369 OP_CVTTPD2PI,
370 OP_CVTPD2PI,
371 OP_UCOMISD,
372 OP_COMISD,
373 OP_MOVMSKPD,
374 OP_SQRTPD,
375 OP_ANDPD,
376 OP_ANDNPD,
377 OP_ORPD,
378 OP_XORPD,
379 OP_ADDPD,
380 OP_MULPD,
381 OP_CVTPD2PS,
382 OP_CVTPS2DQ,
383 OP_SUBPD,
384 OP_MINPD,
385 OP_DIVPD,
386 OP_MAXPD,
387 OP_GRP12,
388 OP_GRP13,
389 OP_GRP14,
390 OP_GRP17,
391 OP_EMMS,
392 OP_MMX_UD78,
393 OP_MMX_UD79,
394 OP_MMX_UD7A,
395 OP_MMX_UD7B,
396 OP_MMX_UD7C,
397 OP_MMX_UD7D,
398 OP_PUNPCKLQDQ,
399 OP_PUNPCKHQDQ,
400 OP_MOVDQA,
401 OP_PSHUFD,
402 OP_CMPPD,
403 OP_SHUFPD,
404 OP_CVTTPD2DQ,
405 OP_MOVNTDQ,
406 OP_MOVNTDQA,
407 OP_PACKUSDW,
408 OP_PSHUFB,
409 OP_PHADDW,
410 OP_PHADDD,
411 OP_PHADDSW,
412 OP_HADDPS,
413 OP_HADDPD,
414 OP_PMADDUBSW,
415 OP_PHSUBW,
416 OP_PHSUBD,
417 OP_PHSUBSW,
418 OP_HSUBPS,
419 OP_HSUBPD,
420 OP_PSIGNB,
421 OP_PSIGNW,
422 OP_PSIGND,
423 OP_PMULHRSW,
424 OP_PERMILPS,
425 OP_PERMILPD,
426 OP_TESTPS,
427 OP_TESTPD,
428 OP_PBLENDVB,
429 OP_CVTPH2PS,
430 OP_BLENDVPS,
431 OP_BLENDVPD,
432 OP_PERMPS,
433 OP_PERMD,
434 OP_PTEST,
435 OP_BROADCASTSS,
436 OP_BROADCASTSD,
437 OP_BROADCASTF128,
438 OP_PABSB,
439 OP_PABSW,
440 OP_PABSD,
441 OP_PMOVSXBW,
442 OP_PMOVSXBD,
443 OP_PMOVSXBQ,
444 OP_PMOVSXWD,
445 OP_PMOVSXWQ,
446 OP_PMOVSXDQ,
447 OP_PMOVZXBW,
448 OP_PMOVZXBD,
449 OP_PMOVZXBQ,
450 OP_PMOVZXWD,
451 OP_PMOVZXWQ,
452 OP_PMOVZXDQ,
453 OP_PMULDQ,
454 OP_PMINSB,
455 OP_PMINSD,
456 OP_PMINUW,
457 OP_PMINUD,
458 OP_PMAXSB,
459 OP_PMAXSD,
460 OP_PMAXUW,
461 OP_PMAXUD,
462 OP_PMULLD,
463 OP_PHMINPOSUW,
464 OP_PSRLVD,
465 OP_PSRAVD,
466 OP_PSLLVD,
467 OP_PBROADCASTD,
468 OP_PBROADCASTQ,
469 OP_PBROADCASTI128,
470 OP_PBROADCASTB,
471 OP_PBROADCASTW,
472 OP_PMASKMOVD,
473 OP_GATHER,
474 OP_FMADDSUB132PS,
475 OP_FMSUBADD132PS,
476 OP_FMADD132PS,
477 OP_FMADD132SS,
478 OP_FMSUB132PS,
479 OP_FMSUB132SS,
480 OP_FNMADD132PS,
481 OP_FNMADD132SS,
482 OP_FNMSUB132PS,
483 OP_FNMSUB132SS,
484 OP_FMADDSUB213PS,
485 OP_FMSUBADD213PS,
486 OP_FMADD213PS,
487 OP_FMADD213SS,
488 OP_FMSUB213PS,
489 OP_FMSUB213SS,
490 OP_FNMADD213PS,
491 OP_FNMADD213SS,
492 OP_FNMSUB213PS,
493 OP_FNMSUB213SS,
494 OP_FMADDSUB231PS,
495 OP_FMSUBADD231PS,
496 OP_FMADD231PS,
497 OP_FMADD231SS,
498 OP_FMSUB231PS,
499 OP_FMSUB231SS,
500 OP_FNMADD231PS,
501 OP_FNMADD231SS,
502 OP_FNMSUB231PS,
503 OP_FNMSUB231SS,
504 OP_AESIMC,
505 OP_AESENC,
506 OP_AESENCLAST,
507 OP_AESDEC,
508 OP_AESDECLAST,
509 OP_MOVBEGM,
510 OP_MOVBEMG,
511 OP_CRC32,
512 OP_POPCNT,
513 OP_TZCNT,
514 OP_LZCNT,
515 OP_ADCX,
516 OP_ADOX,
517 OP_ANDN,
518 OP_BZHI,
519 OP_BEXTR,
520 OP_BLSR,
521 OP_BLSMSK,
522 OP_BLSI,
523 OP_PEXT,
524 OP_PDEP,
525 OP_SHLX,
526 OP_SHRX,
527 OP_SARX,
528 OP_MULX,
529 OP_MASKMOVDQU,
530 OP_MASKMOVPS,
531 OP_MASKMOVPD,
532 OP_MOVSD,
533 OP_CVTSI2SD,
534 OP_CVTTSD2SI,
535 OP_CVTSD2SI,
536 OP_SQRTSD,
537 OP_ADDSD,
538 OP_MULSD,
539 OP_CVTSD2SS,
540 OP_SUBSD,
541 OP_MINSD,
542 OP_DIVSD,
543 OP_MAXSD,
544 OP_PSHUFLW,
545 OP_CMPSD,
546 OP_MOVDQ2Q,
547 OP_CVTPD2DQ,
548 OP_MOVSS,
549 OP_MOVSLDUP,
550 OP_MOVDDUP,
551 OP_MOVSHDUP,
552 OP_CVTSI2SS,
553 OP_CVTTSS2SI,
554 OP_CVTSS2SI,
555 OP_CVTSS2SD,
556 OP_SQRTSS,
557 OP_RSQRTSS,
558 OP_RCPSS,
559 OP_ADDSS,
560 OP_MULSS,
561 OP_CVTTPS2DQ,
562 OP_SUBSS,
563 OP_MINSS,
564 OP_DIVSS,
565 OP_MAXSS,
566 OP_MOVDQU,
567 OP_PSHUFHW,
568 OP_CMPSS,
569 OP_MOVQ2DQ,
570 OP_CVTDQ2PD,
571 OP_PERMQ,
572 OP_PERMPD,
573 OP_PBLENDD,
574 OP_PERM2F128,
575 OP_ROUNDPS,
576 OP_ROUNDPD,
577 OP_ROUNDSS,
578 OP_ROUNDSD,
579 OP_BLENDPS,
580 OP_BLENDPD,
581 OP_PBLENDW,
582 OP_PALIGNR,
583 OP_PEXTRB,
584 OP_PEXTRD,
585 OP_EXTRACTPS,
586 OP_INSERTF128,
587 OP_EXTRACTF128,
588 OP_CVTPS2PH,
589 OP_PINSRB,
590 OP_PINSRD,
591 OP_INSERTPS,
592 OP_INSERTI128,
593 OP_EXTRACTI128,
594 OP_DPPS,
595 OP_DPPD,
596 OP_MPSADBW,
597 OP_PCLMULQDQ,
598 OP_PERM2I128,
599 OP_PCMPESTRM,
600 OP_PCMPESTRI,
601 OP_PCMPISTRM,
602 OP_PCMPISTRI,
603 OP_AESKEYGEN,
604 OP_RORX,
605 OP_VEX3B,
606 OP_VEX2B,
607/** @} */
608
609/** @name Floating point ops
610 * @{ */
611 OP_FADD,
612 OP_FMUL,
613 OP_FCOM,
614 OP_FCOMP,
615 OP_FSUB,
616 OP_FSUBR,
617 OP_FDIV,
618 OP_FDIVR,
619 OP_FLD,
620 OP_FST,
621 OP_FSTP,
622 OP_FLDENV,
623 OP_FSTENV,
624 OP_FSTCW,
625 OP_FXCH,
626 OP_FNOP,
627 OP_FCHS,
628 OP_FABS,
629 OP_FLD1,
630 OP_FLDL2T,
631 OP_FLDL2E,
632 OP_FLDPI,
633 OP_FLDLG2,
634 OP_FLDLN2,
635 OP_FLDZ,
636 OP_F2XM1,
637 OP_FYL2X,
638 OP_FPTAN,
639 OP_FPATAN,
640 OP_FXTRACT,
641 OP_FREM1,
642 OP_FDECSTP,
643 OP_FINCSTP,
644 OP_FPREM,
645 OP_FYL2XP1,
646 OP_FSQRT,
647 OP_FSINCOS,
648 OP_FRNDINT,
649 OP_FSCALE,
650 OP_FSIN,
651 OP_FCOS,
652 OP_FIADD,
653 OP_FIMUL,
654 OP_FISUB,
655 OP_FISUBR,
656 OP_FIDIV,
657 OP_FIDIVR,
658 OP_FCMOVB,
659 OP_FCMOVE,
660 OP_FCMOVBE,
661 OP_FCMOVU,
662 OP_FUCOMPP,
663 OP_FILD,
664 OP_FIST,
665 OP_FISTP,
666 OP_FCMOVNB,
667 OP_FCMOVNE,
668 OP_FCMOVNBE,
669 OP_FCMOVNU,
670 OP_FCLEX,
671 OP_FINIT,
672 OP_FUCOMI,
673 OP_FCOMI,
674 OP_FRSTOR,
675 OP_FSAVE,
676 OP_FNSTSW,
677 OP_FFREE,
678 OP_FUCOM,
679 OP_FUCOMP,
680 OP_FICOM,
681 OP_FICOMP,
682 OP_FADDP,
683 OP_FMULP,
684 OP_FCOMPP,
685 OP_FSUBRP,
686 OP_FSUBP,
687 OP_FDIVRP,
688 OP_FDIVP,
689 OP_FBLD,
690 OP_FBSTP,
691 OP_FCOMIP,
692 OP_FUCOMIP,
693/** @} */
694
695/** @name 3DNow!
696 * @{ */
697 OP_PI2FW,
698 OP_PI2FD,
699 OP_PF2IW,
700 OP_PF2ID,
701 OP_PFPNACC,
702 OP_PFCMPGE,
703 OP_PFMIN,
704 OP_PFRCP,
705 OP_PFRSQRT,
706 OP_PFSUB,
707 OP_PFADD,
708 OP_PFCMPGT,
709 OP_PFMAX,
710 OP_PFRCPIT1,
711 OP_PFRSQRTIT1,
712 OP_PFSUBR,
713 OP_PFACC,
714 OP_PFCMPEQ,
715 OP_PFMUL,
716 OP_PFRCPIT2,
717 OP_PFMULHRW,
718 OP_PFSWAPD,
719 OP_PAVGUSB,
720 OP_PFNACC,
721/** @} */
722 OP_ROL,
723 OP_ROR,
724 OP_RCL,
725 OP_RCR,
726 OP_SHL,
727 OP_SHR,
728 OP_SAR,
729 OP_NOT,
730 OP_NEG,
731 OP_MUL,
732 OP_DIV,
733 OP_IDIV,
734 OP_SLDT,
735 OP_STR,
736 OP_LLDT,
737 OP_LTR,
738 OP_VERR,
739 OP_VERW,
740 OP_SGDT,
741 OP_LGDT,
742 OP_SIDT,
743 OP_LIDT,
744 OP_SMSW,
745 OP_LMSW,
746 OP_INVLPG,
747 OP_CMPXCHG8B,
748 OP_PSLLQ,
749 OP_PSRLDQ,
750 OP_PSLLDQ,
751 OP_FXSAVE,
752 OP_FXRSTOR,
753 OP_LDMXCSR,
754 OP_STMXCSR,
755 OP_XSAVE,
756 OP_XSAVEOPT,
757 OP_XRSTOR,
758 OP_XGETBV,
759 OP_XSETBV,
760 OP_RDFSBASE,
761 OP_RDGSBASE,
762 OP_WRFSBASE,
763 OP_WRGSBASE,
764 OP_LFENCE,
765 OP_MFENCE,
766 OP_SFENCE,
767 OP_PREFETCH,
768 OP_MONITOR,
769 OP_MWAIT,
770 OP_CLFLUSH,
771 OP_CLFLUSHOPT,
772 OP_MOV_DR,
773 OP_MOV_TR,
774 OP_SWAPGS,
775 OP_UD1,
776 OP_UD2,
777/** @name VT-x instructions
778 * @{ */
779 OP_VMREAD,
780 OP_VMWRITE,
781 OP_VMCALL,
782 OP_VMXON,
783 OP_VMXOFF,
784 OP_VMCLEAR,
785 OP_VMLAUNCH,
786 OP_VMRESUME,
787 OP_VMPTRLD,
788 OP_VMPTRST,
789 OP_INVEPT,
790 OP_INVVPID,
791 OP_INVPCID,
792 OP_VMFUNC,
793/** @} */
794/** @name AMD-V instructions
795 * @{ */
796 OP_VMMCALL,
797 OP_VMRUN,
798 OP_VMLOAD,
799 OP_VMSAVE,
800 OP_CLGI,
801 OP_STGI,
802 OP_INVLPGA,
803 OP_SKINIT,
804/** @} */
805/** @name 64 bits instruction
806 * @{ */
807 OP_MOVSXD,
808/** @} */
809/** @name AVX instructions
810 * @{ */
811 /* Manual */
812 OP_VSTMXCSR,
813 OP_VLDMXCSR,
814 OP_VPACKUSDW,
815
816 /* Generated from tables: */
817 OP_VADDPD,
818 OP_VADDPS,
819 OP_VADDSD,
820 OP_VADDSS,
821 OP_VADDSUBPD,
822 OP_VADDSUBPS,
823 OP_VAESDEC,
824 OP_VAESDECLAST,
825 OP_VAESENC,
826 OP_VAESENCLAST,
827 OP_VAESIMC,
828 OP_VAESKEYGEN,
829 OP_VANDNPD,
830 OP_VANDNPS,
831 OP_VANDPD,
832 OP_VANDPS,
833 OP_VBLENDPD,
834 OP_VBLENDPS,
835 OP_VBLENDVPD,
836 OP_VBLENDVPS,
837 OP_VBROADCASTF128,
838 OP_VBROADCASTSD,
839 OP_VBROADCASTSS,
840 OP_VCMPSD,
841 OP_VCMPSS,
842 OP_VCOMISD,
843 OP_VCOMISS,
844 OP_VCVTDQ2PD,
845 OP_VCVTDQ2PS,
846 OP_VCVTPD2DQ,
847 OP_VCVTPD2PS,
848 OP_VCVTPH2PS,
849 OP_VCVTPS2DQ,
850 OP_VCVTPS2PD,
851 OP_VCVTPS2PH,
852 OP_VCVTSD2SS,
853 OP_VCVTSI2SS,
854 OP_VCVTSS2SD,
855 OP_VCVTSS2SI,
856 OP_VCVTTPD2DQ,
857 OP_VCVTTPS2DQ,
858 OP_VCVTTSS2SI,
859 OP_VDIVPD,
860 OP_VDIVPS,
861 OP_VDIVSD,
862 OP_VDIVSS,
863 OP_VDPPD,
864 OP_VDPPS,
865 OP_VEXTRACTF128,
866 OP_VEXTRACTI128,
867 OP_VEXTRACTPS,
868 OP_VFMADD132PS,
869 OP_VFMADD132SS,
870 OP_VFMADD213PS,
871 OP_VFMADD213SS,
872 OP_VFMADD231PS,
873 OP_VFMADD231SS,
874 OP_VFMADDSUB132PS,
875 OP_VFMADDSUB213PS,
876 OP_VFMADDSUB231PS,
877 OP_VFMSUB132PS,
878 OP_VFMSUB132SS,
879 OP_VFMSUB213PS,
880 OP_VFMSUB213SS,
881 OP_VFMSUB231PS,
882 OP_VFMSUB231SS,
883 OP_VFMSUBADD132PS,
884 OP_VFMSUBADD213PS,
885 OP_VFMSUBADD231PS,
886 OP_VFNMADD132PS,
887 OP_VFNMADD132SS,
888 OP_VFNMADD213PS,
889 OP_VFNMADD213SS,
890 OP_VFNMADD231PS,
891 OP_VFNMADD231SS,
892 OP_VFNMSUB132PS,
893 OP_VFNMSUB132SS,
894 OP_VFNMSUB213PS,
895 OP_VFNMSUB213SS,
896 OP_VFNMSUB231PS,
897 OP_VFNMSUB231SS,
898 OP_VGATHER,
899 OP_VHADDPD,
900 OP_VHADDPS,
901 OP_VHSUBPD,
902 OP_VHSUBPS,
903 OP_VINSERTF128,
904 OP_VINSERTI128,
905 OP_VINSERTPS,
906 OP_VLDDQU,
907 OP_VMASKMOVDQU,
908 OP_VMASKMOVPD,
909 OP_VMASKMOVPS,
910 OP_VMAXPD,
911 OP_VMAXPS,
912 OP_VMAXSD,
913 OP_VMAXSS,
914 OP_VMINPD,
915 OP_VMINPS,
916 OP_VMINSD,
917 OP_VMINSS,
918 OP_VMOVAPD,
919 OP_VMOVAPS,
920 OP_VMOVD,
921 OP_VMOVDDUP,
922 OP_VMOVDQA,
923 OP_VMOVDQU,
924 OP_VMOVHPD,
925 OP_VMOVHPS,
926 OP_VMOVLHPS = OP_VMOVHPS, /**< @todo OP_VMOVHPS */
927 OP_VMOVLPD,
928 OP_VMOVLPS,
929 OP_VMOVHLPS = OP_VMOVLPS, /**< @todo OP_VMOVLPS */
930 OP_VMOVMSKPD,
931 OP_VMOVMSKPS,
932 OP_VMOVNTDQ,
933 OP_VMOVNTDQA,
934 OP_VMOVNTPD,
935 OP_VMOVNTPS,
936 OP_VMOVQ,
937 OP_VMOVSD,
938 OP_VMOVSHDUP,
939 OP_VMOVSLDUP,
940 OP_VMOVSS,
941 OP_VMOVUPD,
942 OP_VMOVUPS,
943 OP_VMPSADBW,
944 OP_VMULPD,
945 OP_VMULPS,
946 OP_VMULSD,
947 OP_VMULSS,
948 OP_VORPD,
949 OP_VORPS,
950 OP_VPABSB,
951 OP_VPABSD,
952 OP_VPABSW,
953 OP_VPACKSSDW,
954 OP_VPACKSSWB,
955 OP_VPACKUSWB,
956 OP_VPADDB,
957 OP_VPADDD,
958 OP_VPADDQ,
959 OP_VPADDSB,
960 OP_VPADDSW,
961 OP_VPADDUSB,
962 OP_VPADDUSW,
963 OP_VPADDW,
964 OP_VPALIGNR,
965 OP_VPAND,
966 OP_VPANDN,
967 OP_VPAVGB,
968 OP_VPAVGW,
969 OP_VPBLENDD,
970 OP_VPBLENDVB,
971 OP_VPBLENDW,
972 OP_VPBROADCASTB,
973 OP_VPBROADCASTD,
974 OP_VPBROADCASTI128,
975 OP_VPBROADCASTQ,
976 OP_VPBROADCASTW,
977 OP_VPCLMULQDQ,
978 OP_VPCMPEQB,
979 OP_VPCMPEQD,
980 OP_VPCMPEQQ,
981 OP_VPCMPEQW,
982 OP_VPCMPESTRI,
983 OP_VPCMPESTRM,
984 OP_VPCMPGTB,
985 OP_VPCMPGTD,
986 OP_VPCMPGTQ,
987 OP_VPCMPGTW,
988 OP_VPCMPISTRI,
989 OP_VPCMPISTRM,
990 OP_VPERM2F128,
991 OP_VPERM2I128,
992 OP_VPERMD,
993 OP_VPERMILPD,
994 OP_VPERMILPS,
995 OP_VPERMPD,
996 OP_VPERMPS,
997 OP_VPERMQ,
998 OP_VPEXTRB,
999 OP_VPEXTRD,
1000 OP_VPEXTRW,
1001 OP_VPHADDD,
1002 OP_VPHADDSW,
1003 OP_VPHADDW,
1004 OP_VPHMINPOSUW,
1005 OP_VPHSUBD,
1006 OP_VPHSUBSW,
1007 OP_VPHSUBW,
1008 OP_VPINSRB,
1009 OP_VPINSRD,
1010 OP_VPINSRW,
1011 OP_VPMADDUBSW,
1012 OP_VPMADDWD,
1013 OP_VPMASKMOVD,
1014 OP_VPMAXSB,
1015 OP_VPMAXSD,
1016 OP_VPMAXSW,
1017 OP_VPMAXUB,
1018 OP_VPMAXUD,
1019 OP_VPMAXUW,
1020 OP_VPMINSB,
1021 OP_VPMINSD,
1022 OP_VPMINSW,
1023 OP_VPMINUB,
1024 OP_VPMINUD,
1025 OP_VPMINUW,
1026 OP_VPMOVMSKB,
1027 OP_VPMOVSXBW,
1028 OP_VPMOVSXBD,
1029 OP_VPMOVSXBQ,
1030 OP_VPMOVSXWD,
1031 OP_VPMOVSXWQ,
1032 OP_VPMOVSXDQ,
1033 OP_VPMOVZXBW,
1034 OP_VPMOVZXBD,
1035 OP_VPMOVZXBQ,
1036 OP_VPMOVZXWD,
1037 OP_VPMOVZXWQ,
1038 OP_VPMOVZXDQ,
1039 OP_VPMULDQ,
1040 OP_VPMULHRSW,
1041 OP_VPMULHUW,
1042 OP_VPMULHW,
1043 OP_VPMULLD,
1044 OP_VPMULLW,
1045 OP_VPMULUDQ,
1046 OP_VPOR,
1047 OP_VPSADBW,
1048 OP_VPSHUFB,
1049 OP_VPSHUFD,
1050 OP_VPSHUFHW,
1051 OP_VPSHUFLW,
1052 OP_VPSIGNB,
1053 OP_VPSIGND,
1054 OP_VPSIGNW,
1055 OP_VPSLLD,
1056 OP_VPSLLQ,
1057 OP_VPSLLVD,
1058 OP_VPSLLW,
1059 OP_VPSRAD,
1060 OP_VPSRAVD,
1061 OP_VPSRAW,
1062 OP_VPSRLD,
1063 OP_VPSRLQ,
1064 OP_VPSRLVD,
1065 OP_VPSRLW,
1066 OP_VPSUBB,
1067 OP_VPSUBD,
1068 OP_VPSUBQ,
1069 OP_VPSUBSB,
1070 OP_VPSUBSW,
1071 OP_VPSUBUSB,
1072 OP_VPSUBUSW,
1073 OP_VPSUBW,
1074 OP_VPTEST,
1075 OP_VPUNPCKHBW,
1076 OP_VPUNPCKHDQ,
1077 OP_VPUNPCKHQDQ,
1078 OP_VPUNPCKHWD,
1079 OP_VPUNPCKLBW,
1080 OP_VPUNPCKLDQ,
1081 OP_VPUNPCKLQDQ,
1082 OP_VPUNPCKLWD,
1083 OP_VPXOR,
1084 OP_VRCPPS,
1085 OP_VRCPSS,
1086 OP_VROUNDPD,
1087 OP_VROUNDPS,
1088 OP_VROUNDSD,
1089 OP_VROUNDSS,
1090 OP_VRSQRTPS,
1091 OP_VRSQRTSS,
1092 OP_VSHUFPD,
1093 OP_VSHUFPS,
1094 OP_VSQRTPD,
1095 OP_VSQRTPS,
1096 OP_VSQRTSD,
1097 OP_VSQRTSS,
1098 OP_VSUBPD,
1099 OP_VSUBPS,
1100 OP_VSUBSD,
1101 OP_VSUBSS,
1102 OP_VTESTPD,
1103 OP_VTESTPS,
1104 OP_VUCOMISD,
1105 OP_VUCOMISS,
1106 OP_VUNPCKHPD,
1107 OP_VUNPCKHPS,
1108 OP_VUNPCKLPD,
1109 OP_VUNPCKLPS,
1110 OP_VVPACKUSDW,
1111 OP_VXORPD,
1112 OP_VXORPS,
1113 OP_VZEROALL,
1114
1115/** @} */
1116 OP_END_OF_OPCODES
1117};
1118AssertCompile(OP_LOCK == 7);
1119AssertCompile(OP_END_OF_OPCODES < 1024 /* see 15 byte DISOPCODE variant */);
1120/** @} */
1121
1122
1123/** @defgroup grp_dis_opparam Opcode parameters (DISOPCODE::fParam1,
1124 * DISOPCODE::fParam2, DISOPCODE::fParam3)
1125 * @ingroup grp_dis
1126 * @{
1127 */
1128
1129/**
1130 * @remarks Register order is important for translations!!
1131 */
1132enum OP_PARM
1133{
1134 OP_PARM_NONE,
1135
1136 OP_PARM_REG_EAX,
1137 OP_PARM_REG_GEN32_START = OP_PARM_REG_EAX,
1138 OP_PARM_REG_ECX,
1139 OP_PARM_REG_EDX,
1140 OP_PARM_REG_EBX,
1141 OP_PARM_REG_ESP,
1142 OP_PARM_REG_EBP,
1143 OP_PARM_REG_ESI,
1144 OP_PARM_REG_EDI,
1145 OP_PARM_REG_GEN32_END = OP_PARM_REG_EDI,
1146
1147 OP_PARM_REG_ES,
1148 OP_PARM_REG_SEG_START = OP_PARM_REG_ES,
1149 OP_PARM_REG_CS,
1150 OP_PARM_REG_SS,
1151 OP_PARM_REG_DS,
1152 OP_PARM_REG_FS,
1153 OP_PARM_REG_GS,
1154 OP_PARM_REG_SEG_END = OP_PARM_REG_GS,
1155
1156 OP_PARM_REG_AX,
1157 OP_PARM_REG_GEN16_START = OP_PARM_REG_AX,
1158 OP_PARM_REG_CX,
1159 OP_PARM_REG_DX,
1160 OP_PARM_REG_BX,
1161 OP_PARM_REG_SP,
1162 OP_PARM_REG_BP,
1163 OP_PARM_REG_SI,
1164 OP_PARM_REG_DI,
1165 OP_PARM_REG_GEN16_END = OP_PARM_REG_DI,
1166
1167 OP_PARM_REG_AL,
1168 OP_PARM_REG_GEN8_START = OP_PARM_REG_AL,
1169 OP_PARM_REG_CL,
1170 OP_PARM_REG_DL,
1171 OP_PARM_REG_BL,
1172 OP_PARM_REG_AH,
1173 OP_PARM_REG_CH,
1174 OP_PARM_REG_DH,
1175 OP_PARM_REG_BH,
1176 OP_PARM_REG_GEN8_END = OP_PARM_REG_BH,
1177
1178 OP_PARM_REGFP_0,
1179 OP_PARM_REG_FP_START = OP_PARM_REGFP_0,
1180 OP_PARM_REGFP_1,
1181 OP_PARM_REGFP_2,
1182 OP_PARM_REGFP_3,
1183 OP_PARM_REGFP_4,
1184 OP_PARM_REGFP_5,
1185 OP_PARM_REGFP_6,
1186 OP_PARM_REGFP_7,
1187 OP_PARM_REG_FP_END = OP_PARM_REGFP_7,
1188
1189 OP_PARM_NTA,
1190 OP_PARM_T0,
1191 OP_PARM_T1,
1192 OP_PARM_T2,
1193 OP_PARM_1,
1194
1195 OP_PARM_REX,
1196 OP_PARM_REX_START = OP_PARM_REX,
1197 OP_PARM_REX_B,
1198 OP_PARM_REX_X,
1199 OP_PARM_REX_XB,
1200 OP_PARM_REX_R,
1201 OP_PARM_REX_RB,
1202 OP_PARM_REX_RX,
1203 OP_PARM_REX_RXB,
1204 OP_PARM_REX_W,
1205 OP_PARM_REX_WB,
1206 OP_PARM_REX_WX,
1207 OP_PARM_REX_WXB,
1208 OP_PARM_REX_WR,
1209 OP_PARM_REX_WRB,
1210 OP_PARM_REX_WRX,
1211 OP_PARM_REX_WRXB,
1212
1213 OP_PARM_REG_RAX,
1214 OP_PARM_REG_GEN64_START = OP_PARM_REG_RAX,
1215 OP_PARM_REG_RCX,
1216 OP_PARM_REG_RDX,
1217 OP_PARM_REG_RBX,
1218 OP_PARM_REG_RSP,
1219 OP_PARM_REG_RBP,
1220 OP_PARM_REG_RSI,
1221 OP_PARM_REG_RDI,
1222 OP_PARM_REG_R8,
1223 OP_PARM_REG_R9,
1224 OP_PARM_REG_R10,
1225 OP_PARM_REG_R11,
1226 OP_PARM_REG_R12,
1227 OP_PARM_REG_R13,
1228 OP_PARM_REG_R14,
1229 OP_PARM_REG_R15,
1230 OP_PARM_REG_GEN64_END = OP_PARM_REG_R15
1231};
1232
1233
1234/* 8-bit GRP aliases (for IEM). */
1235#define OP_PARM_AL OP_PARM_REG_AL
1236
1237/* GPR aliases for op-size specified register sizes (for IEM). */
1238#define OP_PARM_rAX OP_PARM_REG_EAX
1239#define OP_PARM_rCX OP_PARM_REG_ECX
1240#define OP_PARM_rDX OP_PARM_REG_EDX
1241#define OP_PARM_rBX OP_PARM_REG_EBX
1242#define OP_PARM_rSP OP_PARM_REG_ESP
1243#define OP_PARM_rBP OP_PARM_REG_EBP
1244#define OP_PARM_rSI OP_PARM_REG_ESI
1245#define OP_PARM_rDI OP_PARM_REG_EDI
1246
1247/* SREG aliases (for IEM). */
1248#define OP_PARM_ES OP_PARM_REG_ES
1249#define OP_PARM_CS OP_PARM_REG_CS
1250#define OP_PARM_SS OP_PARM_REG_SS
1251#define OP_PARM_DS OP_PARM_REG_DS
1252#define OP_PARM_FS OP_PARM_REG_FS
1253#define OP_PARM_GS OP_PARM_REG_GS
1254
1255/*
1256 * Note! We don't document anything here if we can help it, because it we love
1257 * wasting other peoples time figuring out crypting crap. The new VEX
1258 * stuff of course uphelds this vexing tradition. Aaaaaaaaaaaaaaaaaaarg!
1259 */
1260
1261#define OP_PARM_VTYPE(a) ((unsigned)a & 0xFE0)
1262#define OP_PARM_VSUBTYPE(a) ((unsigned)a & 0x01F)
1263
1264#define OP_PARM_A 0x100
1265#define OP_PARM_VARIABLE OP_PARM_A
1266#define OP_PARM_E 0x120
1267#define OP_PARM_F 0x140
1268#define OP_PARM_G 0x160
1269#define OP_PARM_I 0x180
1270#define OP_PARM_J 0x1A0
1271#define OP_PARM_M 0x1C0
1272#define OP_PARM_O 0x1E0
1273#define OP_PARM_R 0x200
1274#define OP_PARM_X 0x220
1275#define OP_PARM_Y 0x240
1276
1277/* Grouped rare parameters for optimization purposes */
1278#define IS_OP_PARM_RARE(a) ((a & 0xF00) >= 0x300)
1279#define OP_PARM_C 0x300 /* control register */
1280#define OP_PARM_D 0x320 /* debug register */
1281#define OP_PARM_S 0x340 /* segment register */
1282#define OP_PARM_T 0x360 /* test register */
1283#define OP_PARM_Q 0x380
1284#define OP_PARM_P 0x3A0 /* mmx register */
1285#define OP_PARM_W 0x3C0 /* xmm register */
1286#define OP_PARM_V 0x3E0
1287#define OP_PARM_U 0x400 /* The R/M field of the ModR/M byte selects XMM/YMM register. */
1288#define OP_PARM_B 0x420 /* VEX.vvvv field select general purpose register. */
1289#define OP_PARM_H 0x440
1290#define OP_PARM_L 0x460
1291
1292#define OP_PARM_NONE 0
1293#define OP_PARM_a 0x1 /**< Operand to bound instruction. */
1294#define OP_PARM_b 0x2 /**< Byte (always). */
1295#define OP_PARM_d 0x3 /**< Double word (always). */
1296#define OP_PARM_dq 0x4 /**< Double quad word (always). */
1297#define OP_PARM_p 0x5 /**< Far pointer (subject to opsize). */
1298#define OP_PARM_pd 0x6 /**< 128-bit or 256-bit double precision floating point data. */
1299#define OP_PARM_pi 0x7 /**< Quad word MMX register. */
1300#define OP_PARM_ps 0x8 /**< 128-bit or 256-bit single precision floating point data. */
1301#define OP_PARM_q 0xA /**< Quad word (always). */
1302#define OP_PARM_s 0xB /**< Descriptor table size (SIDT/LIDT/SGDT/LGDT). */
1303#define OP_PARM_sd 0xC /**< Scalar element of 128-bit double precision floating point data. */
1304#define OP_PARM_ss 0xD /**< Scalar element of 128-bit single precision floating point data. */
1305#define OP_PARM_v 0xE /**< Word, double word, or quad word depending on opsize. */
1306#define OP_PARM_w 0xF /**< Word (always). */
1307#define OP_PARM_x 0x10 /**< Double quad word (dq) or quad quad word (qq) depending on opsize. */
1308#define OP_PARM_y 0x11 /**< Double word or quad word depending on opsize. */
1309#define OP_PARM_z 0x12 /**< Word (16-bit opsize) or double word (32-bit/64-bit opsize). */
1310#define OP_PARM_qq 0x13 /**< Quad quad word. */
1311
1312
1313#define OP_PARM_Ap (OP_PARM_A+OP_PARM_p)
1314#define OP_PARM_By (OP_PARM_B+OP_PARM_y)
1315#define OP_PARM_Cd (OP_PARM_C+OP_PARM_d)
1316#define OP_PARM_Dd (OP_PARM_D+OP_PARM_d)
1317#define OP_PARM_Eb (OP_PARM_E+OP_PARM_b)
1318#define OP_PARM_Ed (OP_PARM_E+OP_PARM_d)
1319#define OP_PARM_Ep (OP_PARM_E+OP_PARM_p)
1320#define OP_PARM_Ev (OP_PARM_E+OP_PARM_v)
1321#define OP_PARM_Ew (OP_PARM_E+OP_PARM_w)
1322#define OP_PARM_Ey (OP_PARM_E+OP_PARM_y)
1323#define OP_PARM_Fv (OP_PARM_F+OP_PARM_v)
1324#define OP_PARM_Gb (OP_PARM_G+OP_PARM_b)
1325#define OP_PARM_Gd (OP_PARM_G+OP_PARM_d)
1326#define OP_PARM_Gv (OP_PARM_G+OP_PARM_v)
1327#define OP_PARM_Gw (OP_PARM_G+OP_PARM_w)
1328#define OP_PARM_Gy (OP_PARM_G+OP_PARM_y)
1329#define OP_PARM_Hq (OP_PARM_H+OP_PARM_q)
1330#define OP_PARM_Hps (OP_PARM_H+OP_PARM_ps)
1331#define OP_PARM_Hpd (OP_PARM_H+OP_PARM_pd)
1332#define OP_PARM_Hdq (OP_PARM_H+OP_PARM_dq)
1333#define OP_PARM_Hqq (OP_PARM_H+OP_PARM_qq)
1334#define OP_PARM_Hsd (OP_PARM_H+OP_PARM_sd)
1335#define OP_PARM_Hss (OP_PARM_H+OP_PARM_ss)
1336#define OP_PARM_Hx (OP_PARM_H+OP_PARM_x)
1337#define OP_PARM_Ib (OP_PARM_I+OP_PARM_b)
1338#define OP_PARM_Id (OP_PARM_I+OP_PARM_d)
1339#define OP_PARM_Iq (OP_PARM_I+OP_PARM_q)
1340#define OP_PARM_Iw (OP_PARM_I+OP_PARM_w)
1341#define OP_PARM_Iv (OP_PARM_I+OP_PARM_v)
1342#define OP_PARM_Iz (OP_PARM_I+OP_PARM_z)
1343#define OP_PARM_Jb (OP_PARM_J+OP_PARM_b)
1344#define OP_PARM_Jv (OP_PARM_J+OP_PARM_v)
1345#define OP_PARM_Ma (OP_PARM_M+OP_PARM_a)
1346#define OP_PARM_Mb (OP_PARM_M+OP_PARM_b)
1347#define OP_PARM_Mw (OP_PARM_M+OP_PARM_w)
1348#define OP_PARM_Md (OP_PARM_M+OP_PARM_d)
1349#define OP_PARM_Mp (OP_PARM_M+OP_PARM_p)
1350#define OP_PARM_Mq (OP_PARM_M+OP_PARM_q)
1351#define OP_PARM_Mdq (OP_PARM_M+OP_PARM_dq)
1352#define OP_PARM_Ms (OP_PARM_M+OP_PARM_s)
1353#define OP_PARM_Mx (OP_PARM_M+OP_PARM_x)
1354#define OP_PARM_My (OP_PARM_M+OP_PARM_y)
1355#define OP_PARM_Mps (OP_PARM_M+OP_PARM_ps)
1356#define OP_PARM_Mpd (OP_PARM_M+OP_PARM_pd)
1357#define OP_PARM_Ob (OP_PARM_O+OP_PARM_b)
1358#define OP_PARM_Ov (OP_PARM_O+OP_PARM_v)
1359#define OP_PARM_Pq (OP_PARM_P+OP_PARM_q)
1360#define OP_PARM_Pd (OP_PARM_P+OP_PARM_d)
1361#define OP_PARM_Qd (OP_PARM_Q+OP_PARM_d)
1362#define OP_PARM_Qq (OP_PARM_Q+OP_PARM_q)
1363#define OP_PARM_Rd (OP_PARM_R+OP_PARM_d)
1364#define OP_PARM_Rw (OP_PARM_R+OP_PARM_w)
1365#define OP_PARM_Ry (OP_PARM_R+OP_PARM_y)
1366#define OP_PARM_Sw (OP_PARM_S+OP_PARM_w)
1367#define OP_PARM_Td (OP_PARM_T+OP_PARM_d)
1368#define OP_PARM_Ux (OP_PARM_U+OP_PARM_x)
1369#define OP_PARM_Vq (OP_PARM_V+OP_PARM_q)
1370#define OP_PARM_Vx (OP_PARM_V+OP_PARM_x)
1371#define OP_PARM_Vy (OP_PARM_V+OP_PARM_y)
1372#define OP_PARM_Wq (OP_PARM_W+OP_PARM_q)
1373/*#define OP_PARM_Ws (OP_PARM_W+OP_PARM_s) - wtf? Same as lgdt (OP_PARM_Ms)?*/
1374#define OP_PARM_Wx (OP_PARM_W+OP_PARM_x)
1375#define OP_PARM_Xb (OP_PARM_X+OP_PARM_b)
1376#define OP_PARM_Xv (OP_PARM_X+OP_PARM_v)
1377#define OP_PARM_Yb (OP_PARM_Y+OP_PARM_b)
1378#define OP_PARM_Yv (OP_PARM_Y+OP_PARM_v)
1379
1380#define OP_PARM_Vps (OP_PARM_V+OP_PARM_ps)
1381#define OP_PARM_Vss (OP_PARM_V+OP_PARM_ss)
1382#define OP_PARM_Vpd (OP_PARM_V+OP_PARM_pd)
1383#define OP_PARM_Vdq (OP_PARM_V+OP_PARM_dq)
1384#define OP_PARM_Wps (OP_PARM_W+OP_PARM_ps)
1385#define OP_PARM_Wpd (OP_PARM_W+OP_PARM_pd)
1386#define OP_PARM_Wss (OP_PARM_W+OP_PARM_ss)
1387#define OP_PARM_Ww (OP_PARM_W+OP_PARM_w)
1388#define OP_PARM_Wd (OP_PARM_W+OP_PARM_d)
1389#define OP_PARM_Wq (OP_PARM_W+OP_PARM_q)
1390#define OP_PARM_Wdq (OP_PARM_W+OP_PARM_dq)
1391#define OP_PARM_Wqq (OP_PARM_W+OP_PARM_qq)
1392#define OP_PARM_Ppi (OP_PARM_P+OP_PARM_pi)
1393#define OP_PARM_Qpi (OP_PARM_Q+OP_PARM_pi)
1394#define OP_PARM_Qdq (OP_PARM_Q+OP_PARM_dq)
1395#define OP_PARM_Vsd (OP_PARM_V+OP_PARM_sd)
1396#define OP_PARM_Wsd (OP_PARM_W+OP_PARM_sd)
1397#define OP_PARM_Vqq (OP_PARM_V+OP_PARM_qq)
1398#define OP_PARM_Pdq (OP_PARM_P+OP_PARM_dq)
1399#define OP_PARM_Ups (OP_PARM_U+OP_PARM_ps)
1400#define OP_PARM_Upd (OP_PARM_U+OP_PARM_pd)
1401#define OP_PARM_Udq (OP_PARM_U+OP_PARM_dq)
1402#define OP_PARM_Lx (OP_PARM_L+OP_PARM_x)
1403
1404/* For making IEM / bs3-cpu-generated-1 happy: */
1405#define OP_PARM_Ed_WO OP_PARM_Ed /**< Annotates write only operand. */
1406#define OP_PARM_Eq (OP_PARM_E+OP_PARM_q)
1407#define OP_PARM_Eq_WO OP_PARM_Eq /**< Annotates write only operand. */
1408#define OP_PARM_Gv_RO OP_PARM_Gv /**< Annotates read only first operand (default is readwrite). */
1409#define OP_PARM_HssHi OP_PARM_Hx /**< Register referenced by VEX.vvvv, bits [127:32]. */
1410#define OP_PARM_HsdHi OP_PARM_Hx /**< Register referenced by VEX.vvvv, bits [127:64]. */
1411#define OP_PARM_HqHi OP_PARM_Hx /**< Register referenced by VEX.vvvv, bits [127:64]. */
1412#define OP_PARM_M_RO OP_PARM_M /**< Annotates read only memory of variable operand size (xrstor). */
1413#define OP_PARM_M_RW OP_PARM_M /**< Annotates read-write memory of variable operand size (xsave). */
1414#define OP_PARM_Mb_RO OP_PARM_Mb /**< Annotates read only memory byte operand. */
1415#define OP_PARM_Md_RO OP_PARM_Md /**< Annotates read only memory operand. */
1416#define OP_PARM_Md_WO OP_PARM_Md /**< Annotates write only memory operand. */
1417#define OP_PARM_Mdq_WO OP_PARM_Mdq /**< Annotates write only memory operand. */
1418#define OP_PARM_Mq_WO OP_PARM_Mq /**< Annotates write only memory quad word operand. */
1419#define OP_PARM_Mps_WO OP_PARM_Mps /**< Annotates write only memory operand. */
1420#define OP_PARM_Mpd_WO OP_PARM_Mpd /**< Annotates write only memory operand. */
1421#define OP_PARM_Mx_WO OP_PARM_Mx /**< Annotates write only memory operand. */
1422#define OP_PARM_PdZx_WO OP_PARM_Pd /**< Annotates write only operand and zero extends to 64-bit. */
1423#define OP_PARM_Pq_WO OP_PARM_Pq /**< Annotates write only operand. */
1424#define OP_PARM_Qq_WO OP_PARM_Qq /**< Annotates write only operand. */
1425#define OP_PARM_Nq OP_PARM_Qq /**< Missing 'N' class (MMX reg selected by modrm.mem) in disasm. */
1426#define OP_PARM_Uq (OP_PARM_U+OP_PARM_q)
1427#define OP_PARM_UqHi (OP_PARM_U+OP_PARM_dq)
1428#define OP_PARM_Uss (OP_PARM_U+OP_PARM_ss)
1429#define OP_PARM_Uss_WO OP_PARM_Uss /**< Annotates write only operand. */
1430#define OP_PARM_Usd (OP_PARM_U+OP_PARM_sd)
1431#define OP_PARM_Usd_WO OP_PARM_Usd /**< Annotates write only operand. */
1432#define OP_PARM_Vd (OP_PARM_V+OP_PARM_d)
1433#define OP_PARM_Vd_WO OP_PARM_Vd /**< Annotates write only operand. */
1434#define OP_PARM_VdZx_WO OP_PARM_Vd /**< Annotates that the registers get their upper bits cleared */
1435#define OP_PARM_Vdq_WO OP_PARM_Vdq /**< Annotates that only YMM/XMM[127:64] are accessed. */
1436#define OP_PARM_Vpd_WO OP_PARM_Vpd /**< Annotates write only operand. */
1437#define OP_PARM_Vps_WO OP_PARM_Vps /**< Annotates write only operand. */
1438#define OP_PARM_Vq_WO OP_PARM_Vq /**< Annotates write only operand. */
1439#define OP_PARM_VqHi OP_PARM_Vdq /**< Annotates that only YMM/XMM[127:64] are accessed. */
1440#define OP_PARM_VqHi_WO OP_PARM_Vdq /**< Annotates that only YMM/XMM[127:64] are written. */
1441#define OP_PARM_VqZx_WO OP_PARM_Vq /**< Annotates that the registers get their upper bits cleared */
1442#define OP_PARM_VsdZx_WO OP_PARM_Vsd /**< Annotates that the registers get their upper bits cleared. */
1443#define OP_PARM_VssZx_WO OP_PARM_Vss /**< Annotates that the registers get their upper bits cleared. */
1444#define OP_PARM_Vss_WO OP_PARM_Vss /**< Annotates write only operand. */
1445#define OP_PARM_Vsd_WO OP_PARM_Vsd /**< Annotates write only operand. */
1446#define OP_PARM_Vx_WO OP_PARM_Vx /**< Annotates write only operand. */
1447#define OP_PARM_Wpd_WO OP_PARM_Wpd /**< Annotates write only operand. */
1448#define OP_PARM_Wps_WO OP_PARM_Wps /**< Annotates write only operand. */
1449#define OP_PARM_Wq_WO OP_PARM_Wq /**< Annotates write only operand. */
1450#define OP_PARM_WqZxReg_WO OP_PARM_Wq /**< Annotates that register targets get their upper bits cleared. */
1451#define OP_PARM_Wss_WO OP_PARM_Wss /**< Annotates write only operand. */
1452#define OP_PARM_Wsd_WO OP_PARM_Wsd /**< Annotates write only operand. */
1453#define OP_PARM_Wx_WO OP_PARM_Wx /**< Annotates write only operand. */
1454
1455/** @} */
1456
1457#endif /* !VBOX_INCLUDED_disopcode_h */
1458
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette