blob: 816488c0b97e3540a59af5c5f4c001fed1f5ba41 [file] [log] [blame]
Masami Hiramatsueb132962009-08-13 16:34:13 -04001# x86 Opcode Maps
2#
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09003# This is (mostly) based on following documentations.
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +09004# - Intel(R) 64 and IA-32 Architectures Software Developer's Manual Vol.2C
5# (#326018-047US, June 2013)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09006#
Masami Hiramatsueb132962009-08-13 16:34:13 -04007#<Opcode maps>
8# Table: table-name
9# Referrer: escaped-name
Masami Hiramatsue0e492e2009-10-27 16:42:27 -040010# AVXcode: avx-code
Masami Hiramatsueb132962009-08-13 16:34:13 -040011# opcode: mnemonic|GrpXXX [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...]
12# (or)
13# opcode: escape # escaped-name
14# EndTable
15#
16#<group maps>
17# GrpTable: GrpXXX
18# reg: mnemonic [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...]
19# EndTable
20#
Masami Hiramatsue0e492e2009-10-27 16:42:27 -040021# AVX Superscripts
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090022# (v): this opcode requires VEX prefix.
23# (v1): this opcode only supports 128bit VEX.
24#
25# Last Prefix Superscripts
26# - (66): the last prefix is 0x66
27# - (F3): the last prefix is 0xF3
28# - (F2): the last prefix is 0xF2
Masami Hiramatsu436d03f2012-06-05 00:09:11 +090029# - (!F3) : the last prefix is not 0xF3 (including non-last prefix case)
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +090030# - (66&F2): Both 0x66 and 0xF2 prefixes are specified.
Masami Hiramatsueb132962009-08-13 16:34:13 -040031
32Table: one byte opcode
33Referrer:
Masami Hiramatsue0e492e2009-10-27 16:42:27 -040034AVXcode:
Masami Hiramatsueb132962009-08-13 16:34:13 -040035# 0x00 - 0x0f
3600: ADD Eb,Gb
3701: ADD Ev,Gv
3802: ADD Gb,Eb
3903: ADD Gv,Ev
4004: ADD AL,Ib
4105: ADD rAX,Iz
4206: PUSH ES (i64)
4307: POP ES (i64)
4408: OR Eb,Gb
4509: OR Ev,Gv
460a: OR Gb,Eb
470b: OR Gv,Ev
480c: OR AL,Ib
490d: OR rAX,Iz
500e: PUSH CS (i64)
510f: escape # 2-byte escape
52# 0x10 - 0x1f
5310: ADC Eb,Gb
5411: ADC Ev,Gv
5512: ADC Gb,Eb
5613: ADC Gv,Ev
5714: ADC AL,Ib
5815: ADC rAX,Iz
5916: PUSH SS (i64)
6017: POP SS (i64)
6118: SBB Eb,Gb
6219: SBB Ev,Gv
631a: SBB Gb,Eb
641b: SBB Gv,Ev
651c: SBB AL,Ib
661d: SBB rAX,Iz
671e: PUSH DS (i64)
681f: POP DS (i64)
69# 0x20 - 0x2f
7020: AND Eb,Gb
7121: AND Ev,Gv
7222: AND Gb,Eb
7323: AND Gv,Ev
7424: AND AL,Ib
7525: AND rAx,Iz
7626: SEG=ES (Prefix)
7727: DAA (i64)
7828: SUB Eb,Gb
7929: SUB Ev,Gv
802a: SUB Gb,Eb
812b: SUB Gv,Ev
822c: SUB AL,Ib
832d: SUB rAX,Iz
842e: SEG=CS (Prefix)
852f: DAS (i64)
86# 0x30 - 0x3f
8730: XOR Eb,Gb
8831: XOR Ev,Gv
8932: XOR Gb,Eb
9033: XOR Gv,Ev
9134: XOR AL,Ib
9235: XOR rAX,Iz
9336: SEG=SS (Prefix)
9437: AAA (i64)
9538: CMP Eb,Gb
9639: CMP Ev,Gv
973a: CMP Gb,Eb
983b: CMP Gv,Ev
993c: CMP AL,Ib
1003d: CMP rAX,Iz
1013e: SEG=DS (Prefix)
1023f: AAS (i64)
103# 0x40 - 0x4f
10440: INC eAX (i64) | REX (o64)
10541: INC eCX (i64) | REX.B (o64)
10642: INC eDX (i64) | REX.X (o64)
10743: INC eBX (i64) | REX.XB (o64)
10844: INC eSP (i64) | REX.R (o64)
10945: INC eBP (i64) | REX.RB (o64)
11046: INC eSI (i64) | REX.RX (o64)
11147: INC eDI (i64) | REX.RXB (o64)
11248: DEC eAX (i64) | REX.W (o64)
11349: DEC eCX (i64) | REX.WB (o64)
1144a: DEC eDX (i64) | REX.WX (o64)
1154b: DEC eBX (i64) | REX.WXB (o64)
1164c: DEC eSP (i64) | REX.WR (o64)
1174d: DEC eBP (i64) | REX.WRB (o64)
1184e: DEC eSI (i64) | REX.WRX (o64)
1194f: DEC eDI (i64) | REX.WRXB (o64)
120# 0x50 - 0x5f
12150: PUSH rAX/r8 (d64)
12251: PUSH rCX/r9 (d64)
12352: PUSH rDX/r10 (d64)
12453: PUSH rBX/r11 (d64)
12554: PUSH rSP/r12 (d64)
12655: PUSH rBP/r13 (d64)
12756: PUSH rSI/r14 (d64)
12857: PUSH rDI/r15 (d64)
12958: POP rAX/r8 (d64)
13059: POP rCX/r9 (d64)
1315a: POP rDX/r10 (d64)
1325b: POP rBX/r11 (d64)
1335c: POP rSP/r12 (d64)
1345d: POP rBP/r13 (d64)
1355e: POP rSI/r14 (d64)
1365f: POP rDI/r15 (d64)
137# 0x60 - 0x6f
13860: PUSHA/PUSHAD (i64)
13961: POPA/POPAD (i64)
14062: BOUND Gv,Ma (i64)
14163: ARPL Ew,Gw (i64) | MOVSXD Gv,Ev (o64)
14264: SEG=FS (Prefix)
14365: SEG=GS (Prefix)
14466: Operand-Size (Prefix)
14567: Address-Size (Prefix)
14668: PUSH Iz (d64)
14769: IMUL Gv,Ev,Iz
1486a: PUSH Ib (d64)
1496b: IMUL Gv,Ev,Ib
1506c: INS/INSB Yb,DX
1516d: INS/INSW/INSD Yz,DX
1526e: OUTS/OUTSB DX,Xb
1536f: OUTS/OUTSW/OUTSD DX,Xz
154# 0x70 - 0x7f
15570: JO Jb
15671: JNO Jb
15772: JB/JNAE/JC Jb
15873: JNB/JAE/JNC Jb
15974: JZ/JE Jb
16075: JNZ/JNE Jb
16176: JBE/JNA Jb
16277: JNBE/JA Jb
16378: JS Jb
16479: JNS Jb
1657a: JP/JPE Jb
1667b: JNP/JPO Jb
1677c: JL/JNGE Jb
1687d: JNL/JGE Jb
1697e: JLE/JNG Jb
1707f: JNLE/JG Jb
171# 0x80 - 0x8f
17280: Grp1 Eb,Ib (1A)
17381: Grp1 Ev,Iz (1A)
17482: Grp1 Eb,Ib (1A),(i64)
17583: Grp1 Ev,Ib (1A)
17684: TEST Eb,Gb
17785: TEST Ev,Gv
17886: XCHG Eb,Gb
17987: XCHG Ev,Gv
18088: MOV Eb,Gb
18189: MOV Ev,Gv
1828a: MOV Gb,Eb
1838b: MOV Gv,Ev
1848c: MOV Ev,Sw
1858d: LEA Gv,M
1868e: MOV Sw,Ew
1878f: Grp1A (1A) | POP Ev (d64)
188# 0x90 - 0x9f
18990: NOP | PAUSE (F3) | XCHG r8,rAX
19091: XCHG rCX/r9,rAX
19192: XCHG rDX/r10,rAX
19293: XCHG rBX/r11,rAX
19394: XCHG rSP/r12,rAX
19495: XCHG rBP/r13,rAX
19596: XCHG rSI/r14,rAX
19697: XCHG rDI/r15,rAX
19798: CBW/CWDE/CDQE
19899: CWD/CDQ/CQO
1999a: CALLF Ap (i64)
2009b: FWAIT/WAIT
2019c: PUSHF/D/Q Fv (d64)
2029d: POPF/D/Q Fv (d64)
2039e: SAHF
2049f: LAHF
205# 0xa0 - 0xaf
206a0: MOV AL,Ob
207a1: MOV rAX,Ov
208a2: MOV Ob,AL
209a3: MOV Ov,rAX
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900210a4: MOVS/B Yb,Xb
211a5: MOVS/W/D/Q Yv,Xv
Masami Hiramatsueb132962009-08-13 16:34:13 -0400212a6: CMPS/B Xb,Yb
213a7: CMPS/W/D Xv,Yv
214a8: TEST AL,Ib
215a9: TEST rAX,Iz
216aa: STOS/B Yb,AL
217ab: STOS/W/D/Q Yv,rAX
218ac: LODS/B AL,Xb
219ad: LODS/W/D/Q rAX,Xv
220ae: SCAS/B AL,Yb
Ulrich Drepper8d973b62012-01-15 19:40:24 -0500221# Note: The May 2011 Intel manual shows Xv for the second parameter of the
222# next instruction but Yv is correct
223af: SCAS/W/D/Q rAX,Yv
Masami Hiramatsueb132962009-08-13 16:34:13 -0400224# 0xb0 - 0xbf
225b0: MOV AL/R8L,Ib
226b1: MOV CL/R9L,Ib
227b2: MOV DL/R10L,Ib
228b3: MOV BL/R11L,Ib
229b4: MOV AH/R12L,Ib
230b5: MOV CH/R13L,Ib
231b6: MOV DH/R14L,Ib
232b7: MOV BH/R15L,Ib
233b8: MOV rAX/r8,Iv
234b9: MOV rCX/r9,Iv
235ba: MOV rDX/r10,Iv
236bb: MOV rBX/r11,Iv
237bc: MOV rSP/r12,Iv
238bd: MOV rBP/r13,Iv
239be: MOV rSI/r14,Iv
240bf: MOV rDI/r15,Iv
241# 0xc0 - 0xcf
242c0: Grp2 Eb,Ib (1A)
243c1: Grp2 Ev,Ib (1A)
244c2: RETN Iw (f64)
245c3: RETN
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900246c4: LES Gz,Mp (i64) | VEX+2byte (Prefix)
247c5: LDS Gz,Mp (i64) | VEX+1byte (Prefix)
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +0900248c6: Grp11A Eb,Ib (1A)
249c7: Grp11B Ev,Iz (1A)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400250c8: ENTER Iw,Ib
251c9: LEAVE (d64)
252ca: RETF Iw
253cb: RETF
254cc: INT3
255cd: INT Ib
256ce: INTO (i64)
257cf: IRET/D/Q
258# 0xd0 - 0xdf
259d0: Grp2 Eb,1 (1A)
260d1: Grp2 Ev,1 (1A)
261d2: Grp2 Eb,CL (1A)
262d3: Grp2 Ev,CL (1A)
263d4: AAM Ib (i64)
264d5: AAD Ib (i64)
265d6:
266d7: XLAT/XLATB
267d8: ESC
268d9: ESC
269da: ESC
270db: ESC
271dc: ESC
272dd: ESC
273de: ESC
274df: ESC
275# 0xe0 - 0xef
Denys Vlasenkocbb53b92015-02-12 20:06:57 +0100276# Note: "forced64" is Intel CPU behavior: they ignore 0x66 prefix
277# in 64-bit mode. AMD CPUs accept 0x66 prefix, it causes RIP truncation
278# to 16 bits. In 32-bit mode, 0x66 is accepted by both Intel and AMD.
Masami Hiramatsueb132962009-08-13 16:34:13 -0400279e0: LOOPNE/LOOPNZ Jb (f64)
280e1: LOOPE/LOOPZ Jb (f64)
281e2: LOOP Jb (f64)
282e3: JrCXZ Jb (f64)
283e4: IN AL,Ib
284e5: IN eAX,Ib
285e6: OUT Ib,AL
286e7: OUT Ib,eAX
Denys Vlasenkocbb53b92015-02-12 20:06:57 +0100287# With 0x66 prefix in 64-bit mode, for AMD CPUs immediate offset
288# in "near" jumps and calls is 16-bit. For CALL,
289# push of return address is 16-bit wide, RSP is decremented by 2
290# but is not truncated to 16 bits, unlike RIP.
Masami Hiramatsueb132962009-08-13 16:34:13 -0400291e8: CALL Jz (f64)
292e9: JMP-near Jz (f64)
293ea: JMP-far Ap (i64)
294eb: JMP-short Jb (f64)
295ec: IN AL,DX
296ed: IN eAX,DX
297ee: OUT DX,AL
298ef: OUT DX,eAX
299# 0xf0 - 0xff
300f0: LOCK (Prefix)
301f1:
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +0900302f2: REPNE (Prefix) | XACQUIRE (Prefix)
303f3: REP/REPE (Prefix) | XRELEASE (Prefix)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400304f4: HLT
305f5: CMC
306f6: Grp3_1 Eb (1A)
307f7: Grp3_2 Ev (1A)
308f8: CLC
309f9: STC
310fa: CLI
311fb: STI
312fc: CLD
313fd: STD
314fe: Grp4 (1A)
315ff: Grp5 (1A)
316EndTable
317
Masami Hiramatsue0e492e2009-10-27 16:42:27 -0400318Table: 2-byte opcode (0x0f)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400319Referrer: 2-byte escape
Masami Hiramatsue0e492e2009-10-27 16:42:27 -0400320AVXcode: 1
Masami Hiramatsueb132962009-08-13 16:34:13 -0400321# 0x0f 0x00-0x0f
32200: Grp6 (1A)
32301: Grp7 (1A)
32402: LAR Gv,Ew
32503: LSL Gv,Ew
32604:
32705: SYSCALL (o64)
32806: CLTS
32907: SYSRET (o64)
33008: INVD
33109: WBINVD
3320a:
3330b: UD2 (1B)
3340c:
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +0900335# AMD's prefetch group. Intel supports prefetchw(/1) only.
3360d: GrpP
Masami Hiramatsud1baf5a2009-10-16 20:07:44 -04003370e: FEMMS
338# 3DNow! uses the last imm byte as opcode extension.
3390f: 3DNow! Pq,Qq,Ib
Masami Hiramatsueb132962009-08-13 16:34:13 -0400340# 0x0f 0x10-0x1f
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900341# NOTE: According to Intel SDM opcode map, vmovups and vmovupd has no operands
342# but it actually has operands. And also, vmovss and vmovsd only accept 128bit.
343# MOVSS/MOVSD has too many forms(3) on SDM. This map just shows a typical form.
344# Many AVX instructions lack v1 superscript, according to Intel AVX-Prgramming
345# Reference A.1
34610: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1)
34711: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(v1)
34812: vmovlps Vq,Hq,Mq (v1) | vmovhlps Vq,Hq,Uq (v1) | vmovlpd Vq,Hq,Mq (66),(v1) | vmovsldup Vx,Wx (F3) | vmovddup Vx,Wx (F2)
34913: vmovlps Mq,Vq (v1) | vmovlpd Mq,Vq (66),(v1)
35014: vunpcklps Vx,Hx,Wx | vunpcklpd Vx,Hx,Wx (66)
35115: vunpckhps Vx,Hx,Wx | vunpckhpd Vx,Hx,Wx (66)
35216: vmovhps Vdq,Hq,Mq (v1) | vmovlhps Vdq,Hq,Uq (v1) | vmovhpd Vdq,Hq,Mq (66),(v1) | vmovshdup Vx,Wx (F3)
35317: vmovhps Mq,Vq (v1) | vmovhpd Mq,Vq (66),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -040035418: Grp16 (1A)
35519:
Qiaowei Renfb09b782014-01-12 17:20:02 +08003561a: BNDCL Ev,Gv | BNDCU Ev,Gv | BNDMOV Gv,Ev | BNDLDX Gv,Ev,Gv
3571b: BNDCN Ev,Gv | BNDMOV Ev,Gv | BNDMK Gv,Ev | BNDSTX Ev,GV,Gv
Masami Hiramatsueb132962009-08-13 16:34:13 -04003581c:
3591d:
3601e:
3611f: NOP Ev
362# 0x0f 0x20-0x2f
36320: MOV Rd,Cd
36421: MOV Rd,Dd
36522: MOV Cd,Rd
36623: MOV Dd,Rd
36724:
36825:
36926:
37027:
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090037128: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66)
37229: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66)
3732a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,Ey (F2),(v1)
3742b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66)
3752c: cvttps2pi Ppi,Wps | cvttpd2pi Ppi,Wpd (66) | vcvttss2si Gy,Wss (F3),(v1) | vcvttsd2si Gy,Wsd (F2),(v1)
3762d: cvtps2pi Ppi,Wps | cvtpd2pi Qpi,Wpd (66) | vcvtss2si Gy,Wss (F3),(v1) | vcvtsd2si Gy,Wsd (F2),(v1)
3772e: vucomiss Vss,Wss (v1) | vucomisd Vsd,Wsd (66),(v1)
3782f: vcomiss Vss,Wss (v1) | vcomisd Vsd,Wsd (66),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400379# 0x0f 0x30-0x3f
38030: WRMSR
38131: RDTSC
38232: RDMSR
38333: RDPMC
38434: SYSENTER
38535: SYSEXIT
38636:
38737: GETSEC
38838: escape # 3-byte escape 1
38939:
3903a: escape # 3-byte escape 2
3913b:
3923c:
3933d:
3943e:
3953f:
396# 0x0f 0x40-0x4f
39740: CMOVO Gv,Ev
39841: CMOVNO Gv,Ev
39942: CMOVB/C/NAE Gv,Ev
40043: CMOVAE/NB/NC Gv,Ev
40144: CMOVE/Z Gv,Ev
40245: CMOVNE/NZ Gv,Ev
40346: CMOVBE/NA Gv,Ev
40447: CMOVA/NBE Gv,Ev
40548: CMOVS Gv,Ev
40649: CMOVNS Gv,Ev
4074a: CMOVP/PE Gv,Ev
4084b: CMOVNP/PO Gv,Ev
4094c: CMOVL/NGE Gv,Ev
4104d: CMOVNL/GE Gv,Ev
4114e: CMOVLE/NG Gv,Ev
4124f: CMOVNLE/G Gv,Ev
413# 0x0f 0x50-0x5f
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090041450: vmovmskps Gy,Ups | vmovmskpd Gy,Upd (66)
41551: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F2),(v1)
41652: vrsqrtps Vps,Wps | vrsqrtss Vss,Hss,Wss (F3),(v1)
41753: vrcpps Vps,Wps | vrcpss Vss,Hss,Wss (F3),(v1)
41854: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66)
41955: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66)
42056: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66)
42157: vxorps Vps,Hps,Wps | vxorpd Vpd,Hpd,Wpd (66)
42258: vaddps Vps,Hps,Wps | vaddpd Vpd,Hpd,Wpd (66) | vaddss Vss,Hss,Wss (F3),(v1) | vaddsd Vsd,Hsd,Wsd (F2),(v1)
42359: vmulps Vps,Hps,Wps | vmulpd Vpd,Hpd,Wpd (66) | vmulss Vss,Hss,Wss (F3),(v1) | vmulsd Vsd,Hsd,Wsd (F2),(v1)
4245a: vcvtps2pd Vpd,Wps | vcvtpd2ps Vps,Wpd (66) | vcvtss2sd Vsd,Hx,Wss (F3),(v1) | vcvtsd2ss Vss,Hx,Wsd (F2),(v1)
4255b: vcvtdq2ps Vps,Wdq | vcvtps2dq Vdq,Wps (66) | vcvttps2dq Vdq,Wps (F3)
4265c: vsubps Vps,Hps,Wps | vsubpd Vpd,Hpd,Wpd (66) | vsubss Vss,Hss,Wss (F3),(v1) | vsubsd Vsd,Hsd,Wsd (F2),(v1)
4275d: vminps Vps,Hps,Wps | vminpd Vpd,Hpd,Wpd (66) | vminss Vss,Hss,Wss (F3),(v1) | vminsd Vsd,Hsd,Wsd (F2),(v1)
4285e: vdivps Vps,Hps,Wps | vdivpd Vpd,Hpd,Wpd (66) | vdivss Vss,Hss,Wss (F3),(v1) | vdivsd Vsd,Hsd,Wsd (F2),(v1)
4295f: vmaxps Vps,Hps,Wps | vmaxpd Vpd,Hpd,Wpd (66) | vmaxss Vss,Hss,Wss (F3),(v1) | vmaxsd Vsd,Hsd,Wsd (F2),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400430# 0x0f 0x60-0x6f
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090043160: punpcklbw Pq,Qd | vpunpcklbw Vx,Hx,Wx (66),(v1)
43261: punpcklwd Pq,Qd | vpunpcklwd Vx,Hx,Wx (66),(v1)
43362: punpckldq Pq,Qd | vpunpckldq Vx,Hx,Wx (66),(v1)
43463: packsswb Pq,Qq | vpacksswb Vx,Hx,Wx (66),(v1)
43564: pcmpgtb Pq,Qq | vpcmpgtb Vx,Hx,Wx (66),(v1)
43665: pcmpgtw Pq,Qq | vpcmpgtw Vx,Hx,Wx (66),(v1)
43766: pcmpgtd Pq,Qq | vpcmpgtd Vx,Hx,Wx (66),(v1)
43867: packuswb Pq,Qq | vpackuswb Vx,Hx,Wx (66),(v1)
43968: punpckhbw Pq,Qd | vpunpckhbw Vx,Hx,Wx (66),(v1)
44069: punpckhwd Pq,Qd | vpunpckhwd Vx,Hx,Wx (66),(v1)
4416a: punpckhdq Pq,Qd | vpunpckhdq Vx,Hx,Wx (66),(v1)
4426b: packssdw Pq,Qd | vpackssdw Vx,Hx,Wx (66),(v1)
4436c: vpunpcklqdq Vx,Hx,Wx (66),(v1)
4446d: vpunpckhqdq Vx,Hx,Wx (66),(v1)
4456e: movd/q Pd,Ey | vmovd/q Vy,Ey (66),(v1)
4466f: movq Pq,Qq | vmovdqa Vx,Wx (66) | vmovdqu Vx,Wx (F3)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400447# 0x0f 0x70-0x7f
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090044870: pshufw Pq,Qq,Ib | vpshufd Vx,Wx,Ib (66),(v1) | vpshufhw Vx,Wx,Ib (F3),(v1) | vpshuflw Vx,Wx,Ib (F2),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -040044971: Grp12 (1A)
45072: Grp13 (1A)
45173: Grp14 (1A)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090045274: pcmpeqb Pq,Qq | vpcmpeqb Vx,Hx,Wx (66),(v1)
45375: pcmpeqw Pq,Qq | vpcmpeqw Vx,Hx,Wx (66),(v1)
45476: pcmpeqd Pq,Qq | vpcmpeqd Vx,Hx,Wx (66),(v1)
455# Note: Remove (v), because vzeroall and vzeroupper becomes emms without VEX.
45677: emms | vzeroupper | vzeroall
45778: VMREAD Ey,Gy
45879: VMWRITE Gy,Ey
Masami Hiramatsueb132962009-08-13 16:34:13 -04004597a:
4607b:
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09004617c: vhaddpd Vpd,Hpd,Wpd (66) | vhaddps Vps,Hps,Wps (F2)
4627d: vhsubpd Vpd,Hpd,Wpd (66) | vhsubps Vps,Hps,Wps (F2)
4637e: movd/q Ey,Pd | vmovd/q Ey,Vy (66),(v1) | vmovq Vq,Wq (F3),(v1)
4647f: movq Qq,Pq | vmovdqa Wx,Vx (66) | vmovdqu Wx,Vx (F3)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400465# 0x0f 0x80-0x8f
Denys Vlasenkocbb53b92015-02-12 20:06:57 +0100466# Note: "forced64" is Intel CPU behavior (see comment about CALL insn).
Masami Hiramatsueb132962009-08-13 16:34:13 -040046780: JO Jz (f64)
46881: JNO Jz (f64)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090046982: JB/JC/JNAE Jz (f64)
47083: JAE/JNB/JNC Jz (f64)
47184: JE/JZ Jz (f64)
47285: JNE/JNZ Jz (f64)
Masami Hiramatsueb132962009-08-13 16:34:13 -040047386: JBE/JNA Jz (f64)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090047487: JA/JNBE Jz (f64)
Masami Hiramatsueb132962009-08-13 16:34:13 -040047588: JS Jz (f64)
47689: JNS Jz (f64)
4778a: JP/JPE Jz (f64)
4788b: JNP/JPO Jz (f64)
4798c: JL/JNGE Jz (f64)
4808d: JNL/JGE Jz (f64)
4818e: JLE/JNG Jz (f64)
4828f: JNLE/JG Jz (f64)
483# 0x0f 0x90-0x9f
48490: SETO Eb
48591: SETNO Eb
48692: SETB/C/NAE Eb
48793: SETAE/NB/NC Eb
48894: SETE/Z Eb
48995: SETNE/NZ Eb
49096: SETBE/NA Eb
49197: SETA/NBE Eb
49298: SETS Eb
49399: SETNS Eb
4949a: SETP/PE Eb
4959b: SETNP/PO Eb
4969c: SETL/NGE Eb
4979d: SETNL/GE Eb
4989e: SETLE/NG Eb
4999f: SETNLE/G Eb
500# 0x0f 0xa0-0xaf
501a0: PUSH FS (d64)
502a1: POP FS (d64)
503a2: CPUID
504a3: BT Ev,Gv
505a4: SHLD Ev,Gv,Ib
506a5: SHLD Ev,Gv,CL
Masami Hiramatsuc0b11d32009-09-25 11:20:38 -0700507a6: GrpPDLK
Masami Hiramatsueb132962009-08-13 16:34:13 -0400508a7: GrpRNG
509a8: PUSH GS (d64)
510a9: POP GS (d64)
511aa: RSM
512ab: BTS Ev,Gv
513ac: SHRD Ev,Gv,Ib
514ad: SHRD Ev,Gv,CL
515ae: Grp15 (1A),(1C)
516af: IMUL Gv,Ev
517# 0x0f 0xb0-0xbf
518b0: CMPXCHG Eb,Gb
519b1: CMPXCHG Ev,Gv
520b2: LSS Gv,Mp
521b3: BTR Ev,Gv
522b4: LFS Gv,Mp
523b5: LGS Gv,Mp
524b6: MOVZX Gv,Eb
525b7: MOVZX Gv,Ew
Masami Hiramatsu436d03f2012-06-05 00:09:11 +0900526b8: JMPE (!F3) | POPCNT Gv,Ev (F3)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400527b9: Grp10 (1A)
528ba: Grp8 Ev,Ib (1A)
529bb: BTC Ev,Gv
Masami Hiramatsu436d03f2012-06-05 00:09:11 +0900530bc: BSF Gv,Ev (!F3) | TZCNT Gv,Ev (F3)
531bd: BSR Gv,Ev (!F3) | LZCNT Gv,Ev (F3)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400532be: MOVSX Gv,Eb
533bf: MOVSX Gv,Ew
534# 0x0f 0xc0-0xcf
535c0: XADD Eb,Gb
536c1: XADD Ev,Gv
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900537c2: vcmpps Vps,Hps,Wps,Ib | vcmppd Vpd,Hpd,Wpd,Ib (66) | vcmpss Vss,Hss,Wss,Ib (F3),(v1) | vcmpsd Vsd,Hsd,Wsd,Ib (F2),(v1)
538c3: movnti My,Gy
539c4: pinsrw Pq,Ry/Mw,Ib | vpinsrw Vdq,Hdq,Ry/Mw,Ib (66),(v1)
540c5: pextrw Gd,Nq,Ib | vpextrw Gd,Udq,Ib (66),(v1)
541c6: vshufps Vps,Hps,Wps,Ib | vshufpd Vpd,Hpd,Wpd,Ib (66)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400542c7: Grp9 (1A)
543c8: BSWAP RAX/EAX/R8/R8D
544c9: BSWAP RCX/ECX/R9/R9D
545ca: BSWAP RDX/EDX/R10/R10D
546cb: BSWAP RBX/EBX/R11/R11D
547cc: BSWAP RSP/ESP/R12/R12D
548cd: BSWAP RBP/EBP/R13/R13D
549ce: BSWAP RSI/ESI/R14/R14D
550cf: BSWAP RDI/EDI/R15/R15D
551# 0x0f 0xd0-0xdf
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900552d0: vaddsubpd Vpd,Hpd,Wpd (66) | vaddsubps Vps,Hps,Wps (F2)
553d1: psrlw Pq,Qq | vpsrlw Vx,Hx,Wx (66),(v1)
554d2: psrld Pq,Qq | vpsrld Vx,Hx,Wx (66),(v1)
555d3: psrlq Pq,Qq | vpsrlq Vx,Hx,Wx (66),(v1)
556d4: paddq Pq,Qq | vpaddq Vx,Hx,Wx (66),(v1)
557d5: pmullw Pq,Qq | vpmullw Vx,Hx,Wx (66),(v1)
558d6: vmovq Wq,Vq (66),(v1) | movq2dq Vdq,Nq (F3) | movdq2q Pq,Uq (F2)
559d7: pmovmskb Gd,Nq | vpmovmskb Gd,Ux (66),(v1)
560d8: psubusb Pq,Qq | vpsubusb Vx,Hx,Wx (66),(v1)
561d9: psubusw Pq,Qq | vpsubusw Vx,Hx,Wx (66),(v1)
562da: pminub Pq,Qq | vpminub Vx,Hx,Wx (66),(v1)
563db: pand Pq,Qq | vpand Vx,Hx,Wx (66),(v1)
564dc: paddusb Pq,Qq | vpaddusb Vx,Hx,Wx (66),(v1)
565dd: paddusw Pq,Qq | vpaddusw Vx,Hx,Wx (66),(v1)
566de: pmaxub Pq,Qq | vpmaxub Vx,Hx,Wx (66),(v1)
567df: pandn Pq,Qq | vpandn Vx,Hx,Wx (66),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400568# 0x0f 0xe0-0xef
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900569e0: pavgb Pq,Qq | vpavgb Vx,Hx,Wx (66),(v1)
570e1: psraw Pq,Qq | vpsraw Vx,Hx,Wx (66),(v1)
571e2: psrad Pq,Qq | vpsrad Vx,Hx,Wx (66),(v1)
572e3: pavgw Pq,Qq | vpavgw Vx,Hx,Wx (66),(v1)
573e4: pmulhuw Pq,Qq | vpmulhuw Vx,Hx,Wx (66),(v1)
574e5: pmulhw Pq,Qq | vpmulhw Vx,Hx,Wx (66),(v1)
575e6: vcvttpd2dq Vx,Wpd (66) | vcvtdq2pd Vx,Wdq (F3) | vcvtpd2dq Vx,Wpd (F2)
576e7: movntq Mq,Pq | vmovntdq Mx,Vx (66)
577e8: psubsb Pq,Qq | vpsubsb Vx,Hx,Wx (66),(v1)
578e9: psubsw Pq,Qq | vpsubsw Vx,Hx,Wx (66),(v1)
579ea: pminsw Pq,Qq | vpminsw Vx,Hx,Wx (66),(v1)
580eb: por Pq,Qq | vpor Vx,Hx,Wx (66),(v1)
581ec: paddsb Pq,Qq | vpaddsb Vx,Hx,Wx (66),(v1)
582ed: paddsw Pq,Qq | vpaddsw Vx,Hx,Wx (66),(v1)
583ee: pmaxsw Pq,Qq | vpmaxsw Vx,Hx,Wx (66),(v1)
584ef: pxor Pq,Qq | vpxor Vx,Hx,Wx (66),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400585# 0x0f 0xf0-0xff
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900586f0: vlddqu Vx,Mx (F2)
587f1: psllw Pq,Qq | vpsllw Vx,Hx,Wx (66),(v1)
588f2: pslld Pq,Qq | vpslld Vx,Hx,Wx (66),(v1)
589f3: psllq Pq,Qq | vpsllq Vx,Hx,Wx (66),(v1)
590f4: pmuludq Pq,Qq | vpmuludq Vx,Hx,Wx (66),(v1)
591f5: pmaddwd Pq,Qq | vpmaddwd Vx,Hx,Wx (66),(v1)
592f6: psadbw Pq,Qq | vpsadbw Vx,Hx,Wx (66),(v1)
593f7: maskmovq Pq,Nq | vmaskmovdqu Vx,Ux (66),(v1)
594f8: psubb Pq,Qq | vpsubb Vx,Hx,Wx (66),(v1)
595f9: psubw Pq,Qq | vpsubw Vx,Hx,Wx (66),(v1)
596fa: psubd Pq,Qq | vpsubd Vx,Hx,Wx (66),(v1)
597fb: psubq Pq,Qq | vpsubq Vx,Hx,Wx (66),(v1)
598fc: paddb Pq,Qq | vpaddb Vx,Hx,Wx (66),(v1)
599fd: paddw Pq,Qq | vpaddw Vx,Hx,Wx (66),(v1)
600fe: paddd Pq,Qq | vpaddd Vx,Hx,Wx (66),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400601ff:
602EndTable
603
Masami Hiramatsu9983d602009-10-20 12:55:31 -0400604Table: 3-byte opcode 1 (0x0f 0x38)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400605Referrer: 3-byte escape 1
Masami Hiramatsue0e492e2009-10-27 16:42:27 -0400606AVXcode: 2
Masami Hiramatsuf12b4f52009-09-08 12:32:46 -0400607# 0x0f 0x38 0x00-0x0f
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090060800: pshufb Pq,Qq | vpshufb Vx,Hx,Wx (66),(v1)
60901: phaddw Pq,Qq | vphaddw Vx,Hx,Wx (66),(v1)
61002: phaddd Pq,Qq | vphaddd Vx,Hx,Wx (66),(v1)
61103: phaddsw Pq,Qq | vphaddsw Vx,Hx,Wx (66),(v1)
61204: pmaddubsw Pq,Qq | vpmaddubsw Vx,Hx,Wx (66),(v1)
61305: phsubw Pq,Qq | vphsubw Vx,Hx,Wx (66),(v1)
61406: phsubd Pq,Qq | vphsubd Vx,Hx,Wx (66),(v1)
61507: phsubsw Pq,Qq | vphsubsw Vx,Hx,Wx (66),(v1)
61608: psignb Pq,Qq | vpsignb Vx,Hx,Wx (66),(v1)
61709: psignw Pq,Qq | vpsignw Vx,Hx,Wx (66),(v1)
6180a: psignd Pq,Qq | vpsignd Vx,Hx,Wx (66),(v1)
6190b: pmulhrsw Pq,Qq | vpmulhrsw Vx,Hx,Wx (66),(v1)
6200c: vpermilps Vx,Hx,Wx (66),(v)
6210d: vpermilpd Vx,Hx,Wx (66),(v)
6220e: vtestps Vx,Wx (66),(v)
6230f: vtestpd Vx,Wx (66),(v)
Masami Hiramatsuf12b4f52009-09-08 12:32:46 -0400624# 0x0f 0x38 0x10-0x1f
62510: pblendvb Vdq,Wdq (66)
62611:
62712:
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090062813: vcvtph2ps Vx,Wx,Ib (66),(v)
Masami Hiramatsuf12b4f52009-09-08 12:32:46 -040062914: blendvps Vdq,Wdq (66)
63015: blendvpd Vdq,Wdq (66)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090063116: vpermps Vqq,Hqq,Wqq (66),(v)
63217: vptest Vx,Wx (66)
63318: vbroadcastss Vx,Wd (66),(v)
63419: vbroadcastsd Vqq,Wq (66),(v)
6351a: vbroadcastf128 Vqq,Mdq (66),(v)
Masami Hiramatsuf12b4f52009-09-08 12:32:46 -04006361b:
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09006371c: pabsb Pq,Qq | vpabsb Vx,Wx (66),(v1)
6381d: pabsw Pq,Qq | vpabsw Vx,Wx (66),(v1)
6391e: pabsd Pq,Qq | vpabsd Vx,Wx (66),(v1)
Masami Hiramatsuf12b4f52009-09-08 12:32:46 -04006401f:
641# 0x0f 0x38 0x20-0x2f
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090064220: vpmovsxbw Vx,Ux/Mq (66),(v1)
64321: vpmovsxbd Vx,Ux/Md (66),(v1)
64422: vpmovsxbq Vx,Ux/Mw (66),(v1)
64523: vpmovsxwd Vx,Ux/Mq (66),(v1)
64624: vpmovsxwq Vx,Ux/Md (66),(v1)
64725: vpmovsxdq Vx,Ux/Mq (66),(v1)
Masami Hiramatsuf12b4f52009-09-08 12:32:46 -040064826:
64927:
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090065028: vpmuldq Vx,Hx,Wx (66),(v1)
65129: vpcmpeqq Vx,Hx,Wx (66),(v1)
6522a: vmovntdqa Vx,Mx (66),(v1)
6532b: vpackusdw Vx,Hx,Wx (66),(v1)
6542c: vmaskmovps Vx,Hx,Mx (66),(v)
6552d: vmaskmovpd Vx,Hx,Mx (66),(v)
6562e: vmaskmovps Mx,Hx,Vx (66),(v)
6572f: vmaskmovpd Mx,Hx,Vx (66),(v)
Masami Hiramatsuf12b4f52009-09-08 12:32:46 -0400658# 0x0f 0x38 0x30-0x3f
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090065930: vpmovzxbw Vx,Ux/Mq (66),(v1)
66031: vpmovzxbd Vx,Ux/Md (66),(v1)
66132: vpmovzxbq Vx,Ux/Mw (66),(v1)
66233: vpmovzxwd Vx,Ux/Mq (66),(v1)
66334: vpmovzxwq Vx,Ux/Md (66),(v1)
66435: vpmovzxdq Vx,Ux/Mq (66),(v1)
66536: vpermd Vqq,Hqq,Wqq (66),(v)
66637: vpcmpgtq Vx,Hx,Wx (66),(v1)
66738: vpminsb Vx,Hx,Wx (66),(v1)
66839: vpminsd Vx,Hx,Wx (66),(v1)
6693a: vpminuw Vx,Hx,Wx (66),(v1)
6703b: vpminud Vx,Hx,Wx (66),(v1)
6713c: vpmaxsb Vx,Hx,Wx (66),(v1)
6723d: vpmaxsd Vx,Hx,Wx (66),(v1)
6733e: vpmaxuw Vx,Hx,Wx (66),(v1)
6743f: vpmaxud Vx,Hx,Wx (66),(v1)
Masami Hiramatsu3f7e4542009-10-27 16:42:35 -0400675# 0x0f 0x38 0x40-0x8f
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090067640: vpmulld Vx,Hx,Wx (66),(v1)
67741: vphminposuw Vdq,Wdq (66),(v1)
67842:
67943:
68044:
68145: vpsrlvd/q Vx,Hx,Wx (66),(v)
68246: vpsravd Vx,Hx,Wx (66),(v)
68347: vpsllvd/q Vx,Hx,Wx (66),(v)
684# Skip 0x48-0x57
68558: vpbroadcastd Vx,Wx (66),(v)
68659: vpbroadcastq Vx,Wx (66),(v)
6875a: vbroadcasti128 Vqq,Mdq (66),(v)
688# Skip 0x5b-0x77
68978: vpbroadcastb Vx,Wx (66),(v)
69079: vpbroadcastw Vx,Wx (66),(v)
691# Skip 0x7a-0x7f
69280: INVEPT Gy,Mdq (66)
69381: INVPID Gy,Mdq (66)
69482: INVPCID Gy,Mdq (66)
6958c: vpmaskmovd/q Vx,Hx,Mx (66),(v)
6968e: vpmaskmovd/q Mx,Vx,Hx (66),(v)
Masami Hiramatsu3f7e4542009-10-27 16:42:35 -0400697# 0x0f 0x38 0x90-0xbf (FMA)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090069890: vgatherdd/q Vx,Hx,Wx (66),(v)
69991: vgatherqd/q Vx,Hx,Wx (66),(v)
70092: vgatherdps/d Vx,Hx,Wx (66),(v)
70193: vgatherqps/d Vx,Hx,Wx (66),(v)
70294:
70395:
70496: vfmaddsub132ps/d Vx,Hx,Wx (66),(v)
70597: vfmsubadd132ps/d Vx,Hx,Wx (66),(v)
70698: vfmadd132ps/d Vx,Hx,Wx (66),(v)
70799: vfmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
7089a: vfmsub132ps/d Vx,Hx,Wx (66),(v)
7099b: vfmsub132ss/d Vx,Hx,Wx (66),(v),(v1)
7109c: vfnmadd132ps/d Vx,Hx,Wx (66),(v)
7119d: vfnmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
7129e: vfnmsub132ps/d Vx,Hx,Wx (66),(v)
7139f: vfnmsub132ss/d Vx,Hx,Wx (66),(v),(v1)
714a6: vfmaddsub213ps/d Vx,Hx,Wx (66),(v)
715a7: vfmsubadd213ps/d Vx,Hx,Wx (66),(v)
716a8: vfmadd213ps/d Vx,Hx,Wx (66),(v)
717a9: vfmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
718aa: vfmsub213ps/d Vx,Hx,Wx (66),(v)
719ab: vfmsub213ss/d Vx,Hx,Wx (66),(v),(v1)
720ac: vfnmadd213ps/d Vx,Hx,Wx (66),(v)
721ad: vfnmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
722ae: vfnmsub213ps/d Vx,Hx,Wx (66),(v)
723af: vfnmsub213ss/d Vx,Hx,Wx (66),(v),(v1)
724b6: vfmaddsub231ps/d Vx,Hx,Wx (66),(v)
725b7: vfmsubadd231ps/d Vx,Hx,Wx (66),(v)
726b8: vfmadd231ps/d Vx,Hx,Wx (66),(v)
727b9: vfmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
728ba: vfmsub231ps/d Vx,Hx,Wx (66),(v)
729bb: vfmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
730bc: vfnmadd231ps/d Vx,Hx,Wx (66),(v)
731bd: vfnmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
732be: vfnmsub231ps/d Vx,Hx,Wx (66),(v)
733bf: vfnmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
Masami Hiramatsu3f7e4542009-10-27 16:42:35 -0400734# 0x0f 0x38 0xc0-0xff
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900735db: VAESIMC Vdq,Wdq (66),(v1)
736dc: VAESENC Vdq,Hdq,Wdq (66),(v1)
737dd: VAESENCLAST Vdq,Hdq,Wdq (66),(v1)
738de: VAESDEC Vdq,Hdq,Wdq (66),(v1)
739df: VAESDECLAST Vdq,Hdq,Wdq (66),(v1)
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +0900740f0: MOVBE Gy,My | MOVBE Gw,Mw (66) | CRC32 Gd,Eb (F2) | CRC32 Gd,Eb (66&F2)
741f1: MOVBE My,Gy | MOVBE Mw,Gw (66) | CRC32 Gd,Ey (F2) | CRC32 Gd,Ew (66&F2)
Ulrich Drepperce79dac2012-01-17 14:14:02 -0500742f2: ANDN Gy,By,Ey (v)
743f3: Grp17 (1A)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900744f5: BZHI Gy,Ey,By (v) | PEXT Gy,By,Ey (F3),(v) | PDEP Gy,By,Ey (F2),(v)
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +0900745f6: ADCX Gy,Ey (66) | ADOX Gy,Ey (F3) | MULX By,Gy,rDX,Ey (F2),(v)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900746f7: BEXTR Gy,Ey,By (v) | SHLX Gy,Ey,By (66),(v) | SARX Gy,Ey,By (F3),(v) | SHRX Gy,Ey,By (F2),(v)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400747EndTable
748
Masami Hiramatsu9983d602009-10-20 12:55:31 -0400749Table: 3-byte opcode 2 (0x0f 0x3a)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400750Referrer: 3-byte escape 2
Masami Hiramatsue0e492e2009-10-27 16:42:27 -0400751AVXcode: 3
Masami Hiramatsuf12b4f52009-09-08 12:32:46 -0400752# 0x0f 0x3a 0x00-0xff
Masami Hiramatsua9c373d2011-12-05 21:05:57 +090075300: vpermq Vqq,Wqq,Ib (66),(v)
75401: vpermpd Vqq,Wqq,Ib (66),(v)
75502: vpblendd Vx,Hx,Wx,Ib (66),(v)
75603:
75704: vpermilps Vx,Wx,Ib (66),(v)
75805: vpermilpd Vx,Wx,Ib (66),(v)
75906: vperm2f128 Vqq,Hqq,Wqq,Ib (66),(v)
76007:
76108: vroundps Vx,Wx,Ib (66)
76209: vroundpd Vx,Wx,Ib (66)
7630a: vroundss Vss,Wss,Ib (66),(v1)
7640b: vroundsd Vsd,Wsd,Ib (66),(v1)
7650c: vblendps Vx,Hx,Wx,Ib (66)
7660d: vblendpd Vx,Hx,Wx,Ib (66)
7670e: vpblendw Vx,Hx,Wx,Ib (66),(v1)
7680f: palignr Pq,Qq,Ib | vpalignr Vx,Hx,Wx,Ib (66),(v1)
76914: vpextrb Rd/Mb,Vdq,Ib (66),(v1)
77015: vpextrw Rd/Mw,Vdq,Ib (66),(v1)
77116: vpextrd/q Ey,Vdq,Ib (66),(v1)
77217: vextractps Ed,Vdq,Ib (66),(v1)
77318: vinsertf128 Vqq,Hqq,Wqq,Ib (66),(v)
77419: vextractf128 Wdq,Vqq,Ib (66),(v)
7751d: vcvtps2ph Wx,Vx,Ib (66),(v)
77620: vpinsrb Vdq,Hdq,Ry/Mb,Ib (66),(v1)
77721: vinsertps Vdq,Hdq,Udq/Md,Ib (66),(v1)
77822: vpinsrd/q Vdq,Hdq,Ey,Ib (66),(v1)
77938: vinserti128 Vqq,Hqq,Wqq,Ib (66),(v)
78039: vextracti128 Wdq,Vqq,Ib (66),(v)
78140: vdpps Vx,Hx,Wx,Ib (66)
78241: vdppd Vdq,Hdq,Wdq,Ib (66),(v1)
78342: vmpsadbw Vx,Hx,Wx,Ib (66),(v1)
78444: vpclmulqdq Vdq,Hdq,Wdq,Ib (66),(v1)
78546: vperm2i128 Vqq,Hqq,Wqq,Ib (66),(v)
7864a: vblendvps Vx,Hx,Wx,Lx (66),(v)
7874b: vblendvpd Vx,Hx,Wx,Lx (66),(v)
7884c: vpblendvb Vx,Hx,Wx,Lx (66),(v1)
78960: vpcmpestrm Vdq,Wdq,Ib (66),(v1)
79061: vpcmpestri Vdq,Wdq,Ib (66),(v1)
79162: vpcmpistrm Vdq,Wdq,Ib (66),(v1)
79263: vpcmpistri Vdq,Wdq,Ib (66),(v1)
793df: VAESKEYGEN Vdq,Wdq,Ib (66),(v1)
794f0: RORX Gy,Ey,Ib (F2),(v)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400795EndTable
796
797GrpTable: Grp1
7980: ADD
7991: OR
8002: ADC
8013: SBB
8024: AND
8035: SUB
8046: XOR
8057: CMP
806EndTable
807
808GrpTable: Grp1A
8090: POP
810EndTable
811
812GrpTable: Grp2
8130: ROL
8141: ROR
8152: RCL
8163: RCR
8174: SHL/SAL
8185: SHR
8196:
8207: SAR
821EndTable
822
823GrpTable: Grp3_1
8240: TEST Eb,Ib
8251:
8262: NOT Eb
8273: NEG Eb
8284: MUL AL,Eb
8295: IMUL AL,Eb
8306: DIV AL,Eb
8317: IDIV AL,Eb
832EndTable
833
834GrpTable: Grp3_2
8350: TEST Ev,Iz
8361:
8372: NOT Ev
8383: NEG Ev
8394: MUL rAX,Ev
8405: IMUL rAX,Ev
8416: DIV rAX,Ev
8427: IDIV rAX,Ev
843EndTable
844
845GrpTable: Grp4
8460: INC Eb
8471: DEC Eb
848EndTable
849
850GrpTable: Grp5
8510: INC Ev
8521: DEC Ev
Denys Vlasenkocbb53b92015-02-12 20:06:57 +0100853# Note: "forced64" is Intel CPU behavior (see comment about CALL insn).
Masami Hiramatsueb132962009-08-13 16:34:13 -04008542: CALLN Ev (f64)
8553: CALLF Ep
8564: JMPN Ev (f64)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09008575: JMPF Mp
Masami Hiramatsueb132962009-08-13 16:34:13 -04008586: PUSH Ev (d64)
8597:
860EndTable
861
862GrpTable: Grp6
8630: SLDT Rv/Mw
8641: STR Rv/Mw
8652: LLDT Ew
8663: LTR Ew
8674: VERR Ew
8685: VERW Ew
869EndTable
870
871GrpTable: Grp7
8720: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B)
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +09008731: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B)
8742: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B)
Masami Hiramatsueb132962009-08-13 16:34:13 -04008753: LIDT Ms
8764: SMSW Mw/Rv
8775:
8786: LMSW Ew
8797: INVLPG Mb | SWAPGS (o64),(000),(11B) | RDTSCP (001),(11B)
880EndTable
881
882GrpTable: Grp8
8834: BT
8845: BTS
8856: BTR
8867: BTC
887EndTable
888
889GrpTable: Grp9
8901: CMPXCHG8B/16B Mq/Mdq
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09008916: VMPTRLD Mq | VMCLEAR Mq (66) | VMXON Mq (F3) | RDRAND Rv (11B)
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +09008927: VMPTRST Mq | VMPTRST Mq (F3) | RDSEED Rv (11B)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400893EndTable
894
895GrpTable: Grp10
896EndTable
897
Masami Hiramatsu3e21bb02013-08-06 16:37:50 +0900898# Grp11A and Grp11B are expressed as Grp11 in Intel SDM
899GrpTable: Grp11A
9000: MOV Eb,Ib
9017: XABORT Ib (000),(11B)
902EndTable
903
904GrpTable: Grp11B
9050: MOV Eb,Iz
9067: XBEGIN Jz (000),(11B)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400907EndTable
908
909GrpTable: Grp12
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09009102: psrlw Nq,Ib (11B) | vpsrlw Hx,Ux,Ib (66),(11B),(v1)
9114: psraw Nq,Ib (11B) | vpsraw Hx,Ux,Ib (66),(11B),(v1)
9126: psllw Nq,Ib (11B) | vpsllw Hx,Ux,Ib (66),(11B),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400913EndTable
914
915GrpTable: Grp13
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09009162: psrld Nq,Ib (11B) | vpsrld Hx,Ux,Ib (66),(11B),(v1)
9174: psrad Nq,Ib (11B) | vpsrad Hx,Ux,Ib (66),(11B),(v1)
9186: pslld Nq,Ib (11B) | vpslld Hx,Ux,Ib (66),(11B),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400919EndTable
920
921GrpTable: Grp14
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09009222: psrlq Nq,Ib (11B) | vpsrlq Hx,Ux,Ib (66),(11B),(v1)
9233: vpsrldq Hx,Ux,Ib (66),(11B),(v1)
9246: psllq Nq,Ib (11B) | vpsllq Hx,Ux,Ib (66),(11B),(v1)
9257: vpslldq Hx,Ux,Ib (66),(11B),(v1)
Masami Hiramatsueb132962009-08-13 16:34:13 -0400926EndTable
927
928GrpTable: Grp15
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09009290: fxsave | RDFSBASE Ry (F3),(11B)
9301: fxstor | RDGSBASE Ry (F3),(11B)
9312: vldmxcsr Md (v1) | WRFSBASE Ry (F3),(11B)
9323: vstmxcsr Md (v1) | WRGSBASE Ry (F3),(11B)
Masami Hiramatsueb132962009-08-13 16:34:13 -04009334: XSAVE
9345: XRSTOR | lfence (11B)
Masami Hiramatsua9c373d2011-12-05 21:05:57 +09009356: XSAVEOPT | mfence (11B)
Masami Hiramatsueb132962009-08-13 16:34:13 -04009367: clflush | sfence (11B)
937EndTable
938
939GrpTable: Grp16
9400: prefetch NTA
9411: prefetch T0
9422: prefetch T1
9433: prefetch T2
944EndTable
945
Masami Hiramatsua9c373d2011-12-05 21:05:57 +0900946GrpTable: Grp17
9471: BLSR By,Ey (v)
9482: BLSMSK By,Ey (v)
9493: BLSI By,Ey (v)
950EndTable
951
Masami Hiramatsud1baf5a2009-10-16 20:07:44 -0400952# AMD's Prefetch Group
953GrpTable: GrpP
9540: PREFETCH
9551: PREFETCHW
956EndTable
957
Masami Hiramatsuc0b11d32009-09-25 11:20:38 -0700958GrpTable: GrpPDLK
9590: MONTMUL
9601: XSHA1
9612: XSHA2
962EndTable
963
Masami Hiramatsueb132962009-08-13 16:34:13 -0400964GrpTable: GrpRNG
9650: xstore-rng
9661: xcrypt-ecb
9672: xcrypt-cbc
9684: xcrypt-cfb
9695: xcrypt-ofb
970EndTable