xref: /openbmc/linux/arch/x86/lib/x86-opcode-map.txt (revision c4f7ac64)
1# x86 Opcode Maps
2#
3# This is (mostly) based on following documentations.
4# - Intel(R) 64 and IA-32 Architectures Software Developer's Manual Vol.2C
5#   (#326018-047US, June 2013)
6#
7#<Opcode maps>
8# Table: table-name
9# Referrer: escaped-name
10# AVXcode: avx-code
11# opcode: mnemonic|GrpXXX [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...]
12# (or)
13# opcode: escape # escaped-name
14# EndTable
15#
16# mnemonics that begin with lowercase 'v' accept a VEX or EVEX prefix
17# mnemonics that begin with lowercase 'k' accept a VEX prefix
18#
19#<group maps>
20# GrpTable: GrpXXX
21# reg:  mnemonic [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...]
22# EndTable
23#
24# AVX Superscripts
25#  (ev): this opcode requires EVEX prefix.
26#  (evo): this opcode is changed by EVEX prefix (EVEX opcode)
27#  (v): this opcode requires VEX prefix.
28#  (v1): this opcode only supports 128bit VEX.
29#
30# Last Prefix Superscripts
31#  - (66): the last prefix is 0x66
32#  - (F3): the last prefix is 0xF3
33#  - (F2): the last prefix is 0xF2
34#  - (!F3) : the last prefix is not 0xF3 (including non-last prefix case)
35#  - (66&F2): Both 0x66 and 0xF2 prefixes are specified.
36
37Table: one byte opcode
38Referrer:
39AVXcode:
40# 0x00 - 0x0f
4100: ADD Eb,Gb
4201: ADD Ev,Gv
4302: ADD Gb,Eb
4403: ADD Gv,Ev
4504: ADD AL,Ib
4605: ADD rAX,Iz
4706: PUSH ES (i64)
4807: POP ES (i64)
4908: OR Eb,Gb
5009: OR Ev,Gv
510a: OR Gb,Eb
520b: OR Gv,Ev
530c: OR AL,Ib
540d: OR rAX,Iz
550e: PUSH CS (i64)
560f: escape # 2-byte escape
57# 0x10 - 0x1f
5810: ADC Eb,Gb
5911: ADC Ev,Gv
6012: ADC Gb,Eb
6113: ADC Gv,Ev
6214: ADC AL,Ib
6315: ADC rAX,Iz
6416: PUSH SS (i64)
6517: POP SS (i64)
6618: SBB Eb,Gb
6719: SBB Ev,Gv
681a: SBB Gb,Eb
691b: SBB Gv,Ev
701c: SBB AL,Ib
711d: SBB rAX,Iz
721e: PUSH DS (i64)
731f: POP DS (i64)
74# 0x20 - 0x2f
7520: AND Eb,Gb
7621: AND Ev,Gv
7722: AND Gb,Eb
7823: AND Gv,Ev
7924: AND AL,Ib
8025: AND rAx,Iz
8126: SEG=ES (Prefix)
8227: DAA (i64)
8328: SUB Eb,Gb
8429: SUB Ev,Gv
852a: SUB Gb,Eb
862b: SUB Gv,Ev
872c: SUB AL,Ib
882d: SUB rAX,Iz
892e: SEG=CS (Prefix)
902f: DAS (i64)
91# 0x30 - 0x3f
9230: XOR Eb,Gb
9331: XOR Ev,Gv
9432: XOR Gb,Eb
9533: XOR Gv,Ev
9634: XOR AL,Ib
9735: XOR rAX,Iz
9836: SEG=SS (Prefix)
9937: AAA (i64)
10038: CMP Eb,Gb
10139: CMP Ev,Gv
1023a: CMP Gb,Eb
1033b: CMP Gv,Ev
1043c: CMP AL,Ib
1053d: CMP rAX,Iz
1063e: SEG=DS (Prefix)
1073f: AAS (i64)
108# 0x40 - 0x4f
10940: INC eAX (i64) | REX (o64)
11041: INC eCX (i64) | REX.B (o64)
11142: INC eDX (i64) | REX.X (o64)
11243: INC eBX (i64) | REX.XB (o64)
11344: INC eSP (i64) | REX.R (o64)
11445: INC eBP (i64) | REX.RB (o64)
11546: INC eSI (i64) | REX.RX (o64)
11647: INC eDI (i64) | REX.RXB (o64)
11748: DEC eAX (i64) | REX.W (o64)
11849: DEC eCX (i64) | REX.WB (o64)
1194a: DEC eDX (i64) | REX.WX (o64)
1204b: DEC eBX (i64) | REX.WXB (o64)
1214c: DEC eSP (i64) | REX.WR (o64)
1224d: DEC eBP (i64) | REX.WRB (o64)
1234e: DEC eSI (i64) | REX.WRX (o64)
1244f: DEC eDI (i64) | REX.WRXB (o64)
125# 0x50 - 0x5f
12650: PUSH rAX/r8 (d64)
12751: PUSH rCX/r9 (d64)
12852: PUSH rDX/r10 (d64)
12953: PUSH rBX/r11 (d64)
13054: PUSH rSP/r12 (d64)
13155: PUSH rBP/r13 (d64)
13256: PUSH rSI/r14 (d64)
13357: PUSH rDI/r15 (d64)
13458: POP rAX/r8 (d64)
13559: POP rCX/r9 (d64)
1365a: POP rDX/r10 (d64)
1375b: POP rBX/r11 (d64)
1385c: POP rSP/r12 (d64)
1395d: POP rBP/r13 (d64)
1405e: POP rSI/r14 (d64)
1415f: POP rDI/r15 (d64)
142# 0x60 - 0x6f
14360: PUSHA/PUSHAD (i64)
14461: POPA/POPAD (i64)
14562: BOUND Gv,Ma (i64) | EVEX (Prefix)
14663: ARPL Ew,Gw (i64) | MOVSXD Gv,Ev (o64)
14764: SEG=FS (Prefix)
14865: SEG=GS (Prefix)
14966: Operand-Size (Prefix)
15067: Address-Size (Prefix)
15168: PUSH Iz (d64)
15269: IMUL Gv,Ev,Iz
1536a: PUSH Ib (d64)
1546b: IMUL Gv,Ev,Ib
1556c: INS/INSB Yb,DX
1566d: INS/INSW/INSD Yz,DX
1576e: OUTS/OUTSB DX,Xb
1586f: OUTS/OUTSW/OUTSD DX,Xz
159# 0x70 - 0x7f
16070: JO Jb
16171: JNO Jb
16272: JB/JNAE/JC Jb
16373: JNB/JAE/JNC Jb
16474: JZ/JE Jb
16575: JNZ/JNE Jb
16676: JBE/JNA Jb
16777: JNBE/JA Jb
16878: JS Jb
16979: JNS Jb
1707a: JP/JPE Jb
1717b: JNP/JPO Jb
1727c: JL/JNGE Jb
1737d: JNL/JGE Jb
1747e: JLE/JNG Jb
1757f: JNLE/JG Jb
176# 0x80 - 0x8f
17780: Grp1 Eb,Ib (1A)
17881: Grp1 Ev,Iz (1A)
17982: Grp1 Eb,Ib (1A),(i64)
18083: Grp1 Ev,Ib (1A)
18184: TEST Eb,Gb
18285: TEST Ev,Gv
18386: XCHG Eb,Gb
18487: XCHG Ev,Gv
18588: MOV Eb,Gb
18689: MOV Ev,Gv
1878a: MOV Gb,Eb
1888b: MOV Gv,Ev
1898c: MOV Ev,Sw
1908d: LEA Gv,M
1918e: MOV Sw,Ew
1928f: Grp1A (1A) | POP Ev (d64)
193# 0x90 - 0x9f
19490: NOP | PAUSE (F3) | XCHG r8,rAX
19591: XCHG rCX/r9,rAX
19692: XCHG rDX/r10,rAX
19793: XCHG rBX/r11,rAX
19894: XCHG rSP/r12,rAX
19995: XCHG rBP/r13,rAX
20096: XCHG rSI/r14,rAX
20197: XCHG rDI/r15,rAX
20298: CBW/CWDE/CDQE
20399: CWD/CDQ/CQO
2049a: CALLF Ap (i64)
2059b: FWAIT/WAIT
2069c: PUSHF/D/Q Fv (d64)
2079d: POPF/D/Q Fv (d64)
2089e: SAHF
2099f: LAHF
210# 0xa0 - 0xaf
211a0: MOV AL,Ob
212a1: MOV rAX,Ov
213a2: MOV Ob,AL
214a3: MOV Ov,rAX
215a4: MOVS/B Yb,Xb
216a5: MOVS/W/D/Q Yv,Xv
217a6: CMPS/B Xb,Yb
218a7: CMPS/W/D Xv,Yv
219a8: TEST AL,Ib
220a9: TEST rAX,Iz
221aa: STOS/B Yb,AL
222ab: STOS/W/D/Q Yv,rAX
223ac: LODS/B AL,Xb
224ad: LODS/W/D/Q rAX,Xv
225ae: SCAS/B AL,Yb
226# Note: The May 2011 Intel manual shows Xv for the second parameter of the
227# next instruction but Yv is correct
228af: SCAS/W/D/Q rAX,Yv
229# 0xb0 - 0xbf
230b0: MOV AL/R8L,Ib
231b1: MOV CL/R9L,Ib
232b2: MOV DL/R10L,Ib
233b3: MOV BL/R11L,Ib
234b4: MOV AH/R12L,Ib
235b5: MOV CH/R13L,Ib
236b6: MOV DH/R14L,Ib
237b7: MOV BH/R15L,Ib
238b8: MOV rAX/r8,Iv
239b9: MOV rCX/r9,Iv
240ba: MOV rDX/r10,Iv
241bb: MOV rBX/r11,Iv
242bc: MOV rSP/r12,Iv
243bd: MOV rBP/r13,Iv
244be: MOV rSI/r14,Iv
245bf: MOV rDI/r15,Iv
246# 0xc0 - 0xcf
247c0: Grp2 Eb,Ib (1A)
248c1: Grp2 Ev,Ib (1A)
249c2: RETN Iw (f64)
250c3: RETN
251c4: LES Gz,Mp (i64) | VEX+2byte (Prefix)
252c5: LDS Gz,Mp (i64) | VEX+1byte (Prefix)
253c6: Grp11A Eb,Ib (1A)
254c7: Grp11B Ev,Iz (1A)
255c8: ENTER Iw,Ib
256c9: LEAVE (d64)
257ca: RETF Iw
258cb: RETF
259cc: INT3
260cd: INT Ib
261ce: INTO (i64)
262cf: IRET/D/Q
263# 0xd0 - 0xdf
264d0: Grp2 Eb,1 (1A)
265d1: Grp2 Ev,1 (1A)
266d2: Grp2 Eb,CL (1A)
267d3: Grp2 Ev,CL (1A)
268d4: AAM Ib (i64)
269d5: AAD Ib (i64)
270d6:
271d7: XLAT/XLATB
272d8: ESC
273d9: ESC
274da: ESC
275db: ESC
276dc: ESC
277dd: ESC
278de: ESC
279df: ESC
280# 0xe0 - 0xef
281# Note: "forced64" is Intel CPU behavior: they ignore 0x66 prefix
282# in 64-bit mode. AMD CPUs accept 0x66 prefix, it causes RIP truncation
283# to 16 bits. In 32-bit mode, 0x66 is accepted by both Intel and AMD.
284e0: LOOPNE/LOOPNZ Jb (f64)
285e1: LOOPE/LOOPZ Jb (f64)
286e2: LOOP Jb (f64)
287e3: JrCXZ Jb (f64)
288e4: IN AL,Ib
289e5: IN eAX,Ib
290e6: OUT Ib,AL
291e7: OUT Ib,eAX
292# With 0x66 prefix in 64-bit mode, for AMD CPUs immediate offset
293# in "near" jumps and calls is 16-bit. For CALL,
294# push of return address is 16-bit wide, RSP is decremented by 2
295# but is not truncated to 16 bits, unlike RIP.
296e8: CALL Jz (f64)
297e9: JMP-near Jz (f64)
298ea: JMP-far Ap (i64)
299eb: JMP-short Jb (f64)
300ec: IN AL,DX
301ed: IN eAX,DX
302ee: OUT DX,AL
303ef: OUT DX,eAX
304# 0xf0 - 0xff
305f0: LOCK (Prefix)
306f1:
307f2: REPNE (Prefix) | XACQUIRE (Prefix)
308f3: REP/REPE (Prefix) | XRELEASE (Prefix)
309f4: HLT
310f5: CMC
311f6: Grp3_1 Eb (1A)
312f7: Grp3_2 Ev (1A)
313f8: CLC
314f9: STC
315fa: CLI
316fb: STI
317fc: CLD
318fd: STD
319fe: Grp4 (1A)
320ff: Grp5 (1A)
321EndTable
322
323Table: 2-byte opcode (0x0f)
324Referrer: 2-byte escape
325AVXcode: 1
326# 0x0f 0x00-0x0f
32700: Grp6 (1A)
32801: Grp7 (1A)
32902: LAR Gv,Ew
33003: LSL Gv,Ew
33104:
33205: SYSCALL (o64)
33306: CLTS
33407: SYSRET (o64)
33508: INVD
33609: WBINVD | WBNOINVD (F3)
3370a:
3380b: UD2 (1B)
3390c:
340# AMD's prefetch group. Intel supports prefetchw(/1) only.
3410d: GrpP
3420e: FEMMS
343# 3DNow! uses the last imm byte as opcode extension.
3440f: 3DNow! Pq,Qq,Ib
345# 0x0f 0x10-0x1f
346# NOTE: According to Intel SDM opcode map, vmovups and vmovupd has no operands
347# but it actually has operands. And also, vmovss and vmovsd only accept 128bit.
348# MOVSS/MOVSD has too many forms(3) on SDM. This map just shows a typical form.
349# Many AVX instructions lack v1 superscript, according to Intel AVX-Prgramming
350# Reference A.1
35110: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1)
35211: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(v1)
35312: vmovlps Vq,Hq,Mq (v1) | vmovhlps Vq,Hq,Uq (v1) | vmovlpd Vq,Hq,Mq (66),(v1) | vmovsldup Vx,Wx (F3) | vmovddup Vx,Wx (F2)
35413: vmovlps Mq,Vq (v1) | vmovlpd Mq,Vq (66),(v1)
35514: vunpcklps Vx,Hx,Wx | vunpcklpd Vx,Hx,Wx (66)
35615: vunpckhps Vx,Hx,Wx | vunpckhpd Vx,Hx,Wx (66)
35716: vmovhps Vdq,Hq,Mq (v1) | vmovlhps Vdq,Hq,Uq (v1) | vmovhpd Vdq,Hq,Mq (66),(v1) | vmovshdup Vx,Wx (F3)
35817: vmovhps Mq,Vq (v1) | vmovhpd Mq,Vq (66),(v1)
35918: Grp16 (1A)
36019:
361# Intel SDM opcode map does not list MPX instructions. For now using Gv for
362# bnd registers and Ev for everything else is OK because the instruction
363# decoder does not use the information except as an indication that there is
364# a ModR/M byte.
3651a: BNDCL Gv,Ev (F3) | BNDCU Gv,Ev (F2) | BNDMOV Gv,Ev (66) | BNDLDX Gv,Ev
3661b: BNDCN Gv,Ev (F2) | BNDMOV Ev,Gv (66) | BNDMK Gv,Ev (F3) | BNDSTX Ev,Gv
3671c: Grp20 (1A),(1C)
3681d:
3691e: Grp21 (1A)
3701f: NOP Ev
371# 0x0f 0x20-0x2f
37220: MOV Rd,Cd
37321: MOV Rd,Dd
37422: MOV Cd,Rd
37523: MOV Dd,Rd
37624:
37725:
37826:
37927:
38028: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66)
38129: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66)
3822a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,Ey (F2),(v1)
3832b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66)
3842c: cvttps2pi Ppi,Wps | cvttpd2pi Ppi,Wpd (66) | vcvttss2si Gy,Wss (F3),(v1) | vcvttsd2si Gy,Wsd (F2),(v1)
3852d: cvtps2pi Ppi,Wps | cvtpd2pi Qpi,Wpd (66) | vcvtss2si Gy,Wss (F3),(v1) | vcvtsd2si Gy,Wsd (F2),(v1)
3862e: vucomiss Vss,Wss (v1) | vucomisd  Vsd,Wsd (66),(v1)
3872f: vcomiss Vss,Wss (v1) | vcomisd  Vsd,Wsd (66),(v1)
388# 0x0f 0x30-0x3f
38930: WRMSR
39031: RDTSC
39132: RDMSR
39233: RDPMC
39334: SYSENTER
39435: SYSEXIT
39536:
39637: GETSEC
39738: escape # 3-byte escape 1
39839:
3993a: escape # 3-byte escape 2
4003b:
4013c:
4023d:
4033e:
4043f:
405# 0x0f 0x40-0x4f
40640: CMOVO Gv,Ev
40741: CMOVNO Gv,Ev | kandw/q Vk,Hk,Uk | kandb/d Vk,Hk,Uk (66)
40842: CMOVB/C/NAE Gv,Ev | kandnw/q Vk,Hk,Uk | kandnb/d Vk,Hk,Uk (66)
40943: CMOVAE/NB/NC Gv,Ev
41044: CMOVE/Z Gv,Ev | knotw/q Vk,Uk | knotb/d Vk,Uk (66)
41145: CMOVNE/NZ Gv,Ev | korw/q Vk,Hk,Uk | korb/d Vk,Hk,Uk (66)
41246: CMOVBE/NA Gv,Ev | kxnorw/q Vk,Hk,Uk | kxnorb/d Vk,Hk,Uk (66)
41347: CMOVA/NBE Gv,Ev | kxorw/q Vk,Hk,Uk | kxorb/d Vk,Hk,Uk (66)
41448: CMOVS Gv,Ev
41549: CMOVNS Gv,Ev
4164a: CMOVP/PE Gv,Ev | kaddw/q Vk,Hk,Uk | kaddb/d Vk,Hk,Uk (66)
4174b: CMOVNP/PO Gv,Ev | kunpckbw Vk,Hk,Uk (66) | kunpckwd/dq Vk,Hk,Uk
4184c: CMOVL/NGE Gv,Ev
4194d: CMOVNL/GE Gv,Ev
4204e: CMOVLE/NG Gv,Ev
4214f: CMOVNLE/G Gv,Ev
422# 0x0f 0x50-0x5f
42350: vmovmskps Gy,Ups | vmovmskpd Gy,Upd (66)
42451: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F2),(v1)
42552: vrsqrtps Vps,Wps | vrsqrtss Vss,Hss,Wss (F3),(v1)
42653: vrcpps Vps,Wps | vrcpss Vss,Hss,Wss (F3),(v1)
42754: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66)
42855: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66)
42956: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66)
43057: vxorps Vps,Hps,Wps | vxorpd Vpd,Hpd,Wpd (66)
43158: vaddps Vps,Hps,Wps | vaddpd Vpd,Hpd,Wpd (66) | vaddss Vss,Hss,Wss (F3),(v1) | vaddsd Vsd,Hsd,Wsd (F2),(v1)
43259: vmulps Vps,Hps,Wps | vmulpd Vpd,Hpd,Wpd (66) | vmulss Vss,Hss,Wss (F3),(v1) | vmulsd Vsd,Hsd,Wsd (F2),(v1)
4335a: vcvtps2pd Vpd,Wps | vcvtpd2ps Vps,Wpd (66) | vcvtss2sd Vsd,Hx,Wss (F3),(v1) | vcvtsd2ss Vss,Hx,Wsd (F2),(v1)
4345b: vcvtdq2ps Vps,Wdq | vcvtqq2ps Vps,Wqq (evo) | vcvtps2dq Vdq,Wps (66) | vcvttps2dq Vdq,Wps (F3)
4355c: vsubps Vps,Hps,Wps | vsubpd Vpd,Hpd,Wpd (66) | vsubss Vss,Hss,Wss (F3),(v1) | vsubsd Vsd,Hsd,Wsd (F2),(v1)
4365d: vminps Vps,Hps,Wps | vminpd Vpd,Hpd,Wpd (66) | vminss Vss,Hss,Wss (F3),(v1) | vminsd Vsd,Hsd,Wsd (F2),(v1)
4375e: vdivps Vps,Hps,Wps | vdivpd Vpd,Hpd,Wpd (66) | vdivss Vss,Hss,Wss (F3),(v1) | vdivsd Vsd,Hsd,Wsd (F2),(v1)
4385f: vmaxps Vps,Hps,Wps | vmaxpd Vpd,Hpd,Wpd (66) | vmaxss Vss,Hss,Wss (F3),(v1) | vmaxsd Vsd,Hsd,Wsd (F2),(v1)
439# 0x0f 0x60-0x6f
44060: punpcklbw Pq,Qd | vpunpcklbw Vx,Hx,Wx (66),(v1)
44161: punpcklwd Pq,Qd | vpunpcklwd Vx,Hx,Wx (66),(v1)
44262: punpckldq Pq,Qd | vpunpckldq Vx,Hx,Wx (66),(v1)
44363: packsswb Pq,Qq | vpacksswb Vx,Hx,Wx (66),(v1)
44464: pcmpgtb Pq,Qq | vpcmpgtb Vx,Hx,Wx (66),(v1)
44565: pcmpgtw Pq,Qq | vpcmpgtw Vx,Hx,Wx (66),(v1)
44666: pcmpgtd Pq,Qq | vpcmpgtd Vx,Hx,Wx (66),(v1)
44767: packuswb Pq,Qq | vpackuswb Vx,Hx,Wx (66),(v1)
44868: punpckhbw Pq,Qd | vpunpckhbw Vx,Hx,Wx (66),(v1)
44969: punpckhwd Pq,Qd | vpunpckhwd Vx,Hx,Wx (66),(v1)
4506a: punpckhdq Pq,Qd | vpunpckhdq Vx,Hx,Wx (66),(v1)
4516b: packssdw Pq,Qd | vpackssdw Vx,Hx,Wx (66),(v1)
4526c: vpunpcklqdq Vx,Hx,Wx (66),(v1)
4536d: vpunpckhqdq Vx,Hx,Wx (66),(v1)
4546e: movd/q Pd,Ey | vmovd/q Vy,Ey (66),(v1)
4556f: movq Pq,Qq | vmovdqa Vx,Wx (66) | vmovdqa32/64 Vx,Wx (66),(evo) | vmovdqu Vx,Wx (F3) | vmovdqu32/64 Vx,Wx (F3),(evo) | vmovdqu8/16 Vx,Wx (F2),(ev)
456# 0x0f 0x70-0x7f
45770: pshufw Pq,Qq,Ib | vpshufd Vx,Wx,Ib (66),(v1) | vpshufhw Vx,Wx,Ib (F3),(v1) | vpshuflw Vx,Wx,Ib (F2),(v1)
45871: Grp12 (1A)
45972: Grp13 (1A)
46073: Grp14 (1A)
46174: pcmpeqb Pq,Qq | vpcmpeqb Vx,Hx,Wx (66),(v1)
46275: pcmpeqw Pq,Qq | vpcmpeqw Vx,Hx,Wx (66),(v1)
46376: pcmpeqd Pq,Qq | vpcmpeqd Vx,Hx,Wx (66),(v1)
464# Note: Remove (v), because vzeroall and vzeroupper becomes emms without VEX.
46577: emms | vzeroupper | vzeroall
46678: VMREAD Ey,Gy | vcvttps2udq/pd2udq Vx,Wpd (evo) | vcvttsd2usi Gv,Wx (F2),(ev) | vcvttss2usi Gv,Wx (F3),(ev) | vcvttps2uqq/pd2uqq Vx,Wx (66),(ev)
46779: VMWRITE Gy,Ey | vcvtps2udq/pd2udq Vx,Wpd (evo) | vcvtsd2usi Gv,Wx (F2),(ev) | vcvtss2usi Gv,Wx (F3),(ev) | vcvtps2uqq/pd2uqq Vx,Wx (66),(ev)
4687a: vcvtudq2pd/uqq2pd Vpd,Wx (F3),(ev) | vcvtudq2ps/uqq2ps Vpd,Wx (F2),(ev) | vcvttps2qq/pd2qq Vx,Wx (66),(ev)
4697b: vcvtusi2sd Vpd,Hpd,Ev (F2),(ev) | vcvtusi2ss Vps,Hps,Ev (F3),(ev) | vcvtps2qq/pd2qq Vx,Wx (66),(ev)
4707c: vhaddpd Vpd,Hpd,Wpd (66) | vhaddps Vps,Hps,Wps (F2)
4717d: vhsubpd Vpd,Hpd,Wpd (66) | vhsubps Vps,Hps,Wps (F2)
4727e: movd/q Ey,Pd | vmovd/q Ey,Vy (66),(v1) | vmovq Vq,Wq (F3),(v1)
4737f: movq Qq,Pq | vmovdqa Wx,Vx (66) | vmovdqa32/64 Wx,Vx (66),(evo) | vmovdqu Wx,Vx (F3) | vmovdqu32/64 Wx,Vx (F3),(evo) | vmovdqu8/16 Wx,Vx (F2),(ev)
474# 0x0f 0x80-0x8f
475# Note: "forced64" is Intel CPU behavior (see comment about CALL insn).
47680: JO Jz (f64)
47781: JNO Jz (f64)
47882: JB/JC/JNAE Jz (f64)
47983: JAE/JNB/JNC Jz (f64)
48084: JE/JZ Jz (f64)
48185: JNE/JNZ Jz (f64)
48286: JBE/JNA Jz (f64)
48387: JA/JNBE Jz (f64)
48488: JS Jz (f64)
48589: JNS Jz (f64)
4868a: JP/JPE Jz (f64)
4878b: JNP/JPO Jz (f64)
4888c: JL/JNGE Jz (f64)
4898d: JNL/JGE Jz (f64)
4908e: JLE/JNG Jz (f64)
4918f: JNLE/JG Jz (f64)
492# 0x0f 0x90-0x9f
49390: SETO Eb | kmovw/q Vk,Wk | kmovb/d Vk,Wk (66)
49491: SETNO Eb | kmovw/q Mv,Vk | kmovb/d Mv,Vk (66)
49592: SETB/C/NAE Eb | kmovw Vk,Rv | kmovb Vk,Rv (66) | kmovq/d Vk,Rv (F2)
49693: SETAE/NB/NC Eb | kmovw Gv,Uk | kmovb Gv,Uk (66) | kmovq/d Gv,Uk (F2)
49794: SETE/Z Eb
49895: SETNE/NZ Eb
49996: SETBE/NA Eb
50097: SETA/NBE Eb
50198: SETS Eb | kortestw/q Vk,Uk | kortestb/d Vk,Uk (66)
50299: SETNS Eb | ktestw/q Vk,Uk | ktestb/d Vk,Uk (66)
5039a: SETP/PE Eb
5049b: SETNP/PO Eb
5059c: SETL/NGE Eb
5069d: SETNL/GE Eb
5079e: SETLE/NG Eb
5089f: SETNLE/G Eb
509# 0x0f 0xa0-0xaf
510a0: PUSH FS (d64)
511a1: POP FS (d64)
512a2: CPUID
513a3: BT Ev,Gv
514a4: SHLD Ev,Gv,Ib
515a5: SHLD Ev,Gv,CL
516a6: GrpPDLK
517a7: GrpRNG
518a8: PUSH GS (d64)
519a9: POP GS (d64)
520aa: RSM
521ab: BTS Ev,Gv
522ac: SHRD Ev,Gv,Ib
523ad: SHRD Ev,Gv,CL
524ae: Grp15 (1A),(1C)
525af: IMUL Gv,Ev
526# 0x0f 0xb0-0xbf
527b0: CMPXCHG Eb,Gb
528b1: CMPXCHG Ev,Gv
529b2: LSS Gv,Mp
530b3: BTR Ev,Gv
531b4: LFS Gv,Mp
532b5: LGS Gv,Mp
533b6: MOVZX Gv,Eb
534b7: MOVZX Gv,Ew
535b8: JMPE (!F3) | POPCNT Gv,Ev (F3)
536b9: Grp10 (1A)
537ba: Grp8 Ev,Ib (1A)
538bb: BTC Ev,Gv
539bc: BSF Gv,Ev (!F3) | TZCNT Gv,Ev (F3)
540bd: BSR Gv,Ev (!F3) | LZCNT Gv,Ev (F3)
541be: MOVSX Gv,Eb
542bf: MOVSX Gv,Ew
543# 0x0f 0xc0-0xcf
544c0: XADD Eb,Gb
545c1: XADD Ev,Gv
546c2: 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)
547c3: movnti My,Gy
548c4: pinsrw Pq,Ry/Mw,Ib | vpinsrw Vdq,Hdq,Ry/Mw,Ib (66),(v1)
549c5: pextrw Gd,Nq,Ib | vpextrw Gd,Udq,Ib (66),(v1)
550c6: vshufps Vps,Hps,Wps,Ib | vshufpd Vpd,Hpd,Wpd,Ib (66)
551c7: Grp9 (1A)
552c8: BSWAP RAX/EAX/R8/R8D
553c9: BSWAP RCX/ECX/R9/R9D
554ca: BSWAP RDX/EDX/R10/R10D
555cb: BSWAP RBX/EBX/R11/R11D
556cc: BSWAP RSP/ESP/R12/R12D
557cd: BSWAP RBP/EBP/R13/R13D
558ce: BSWAP RSI/ESI/R14/R14D
559cf: BSWAP RDI/EDI/R15/R15D
560# 0x0f 0xd0-0xdf
561d0: vaddsubpd Vpd,Hpd,Wpd (66) | vaddsubps Vps,Hps,Wps (F2)
562d1: psrlw Pq,Qq | vpsrlw Vx,Hx,Wx (66),(v1)
563d2: psrld Pq,Qq | vpsrld Vx,Hx,Wx (66),(v1)
564d3: psrlq Pq,Qq | vpsrlq Vx,Hx,Wx (66),(v1)
565d4: paddq Pq,Qq | vpaddq Vx,Hx,Wx (66),(v1)
566d5: pmullw Pq,Qq | vpmullw Vx,Hx,Wx (66),(v1)
567d6: vmovq Wq,Vq (66),(v1) | movq2dq Vdq,Nq (F3) | movdq2q Pq,Uq (F2)
568d7: pmovmskb Gd,Nq | vpmovmskb Gd,Ux (66),(v1)
569d8: psubusb Pq,Qq | vpsubusb Vx,Hx,Wx (66),(v1)
570d9: psubusw Pq,Qq | vpsubusw Vx,Hx,Wx (66),(v1)
571da: pminub Pq,Qq | vpminub Vx,Hx,Wx (66),(v1)
572db: pand Pq,Qq | vpand Vx,Hx,Wx (66),(v1) | vpandd/q Vx,Hx,Wx (66),(evo)
573dc: paddusb Pq,Qq | vpaddusb Vx,Hx,Wx (66),(v1)
574dd: paddusw Pq,Qq | vpaddusw Vx,Hx,Wx (66),(v1)
575de: pmaxub Pq,Qq | vpmaxub Vx,Hx,Wx (66),(v1)
576df: pandn Pq,Qq | vpandn Vx,Hx,Wx (66),(v1) | vpandnd/q Vx,Hx,Wx (66),(evo)
577# 0x0f 0xe0-0xef
578e0: pavgb Pq,Qq | vpavgb Vx,Hx,Wx (66),(v1)
579e1: psraw Pq,Qq | vpsraw Vx,Hx,Wx (66),(v1)
580e2: psrad Pq,Qq | vpsrad Vx,Hx,Wx (66),(v1)
581e3: pavgw Pq,Qq | vpavgw Vx,Hx,Wx (66),(v1)
582e4: pmulhuw Pq,Qq | vpmulhuw Vx,Hx,Wx (66),(v1)
583e5: pmulhw Pq,Qq | vpmulhw Vx,Hx,Wx (66),(v1)
584e6: vcvttpd2dq Vx,Wpd (66) | vcvtdq2pd Vx,Wdq (F3) | vcvtdq2pd/qq2pd Vx,Wdq (F3),(evo) | vcvtpd2dq Vx,Wpd (F2)
585e7: movntq Mq,Pq | vmovntdq Mx,Vx (66)
586e8: psubsb Pq,Qq | vpsubsb Vx,Hx,Wx (66),(v1)
587e9: psubsw Pq,Qq | vpsubsw Vx,Hx,Wx (66),(v1)
588ea: pminsw Pq,Qq | vpminsw Vx,Hx,Wx (66),(v1)
589eb: por Pq,Qq | vpor Vx,Hx,Wx (66),(v1) | vpord/q Vx,Hx,Wx (66),(evo)
590ec: paddsb Pq,Qq | vpaddsb Vx,Hx,Wx (66),(v1)
591ed: paddsw Pq,Qq | vpaddsw Vx,Hx,Wx (66),(v1)
592ee: pmaxsw Pq,Qq | vpmaxsw Vx,Hx,Wx (66),(v1)
593ef: pxor Pq,Qq | vpxor Vx,Hx,Wx (66),(v1) | vpxord/q Vx,Hx,Wx (66),(evo)
594# 0x0f 0xf0-0xff
595f0: vlddqu Vx,Mx (F2)
596f1: psllw Pq,Qq | vpsllw Vx,Hx,Wx (66),(v1)
597f2: pslld Pq,Qq | vpslld Vx,Hx,Wx (66),(v1)
598f3: psllq Pq,Qq | vpsllq Vx,Hx,Wx (66),(v1)
599f4: pmuludq Pq,Qq | vpmuludq Vx,Hx,Wx (66),(v1)
600f5: pmaddwd Pq,Qq | vpmaddwd Vx,Hx,Wx (66),(v1)
601f6: psadbw Pq,Qq | vpsadbw Vx,Hx,Wx (66),(v1)
602f7: maskmovq Pq,Nq | vmaskmovdqu Vx,Ux (66),(v1)
603f8: psubb Pq,Qq | vpsubb Vx,Hx,Wx (66),(v1)
604f9: psubw Pq,Qq | vpsubw Vx,Hx,Wx (66),(v1)
605fa: psubd Pq,Qq | vpsubd Vx,Hx,Wx (66),(v1)
606fb: psubq Pq,Qq | vpsubq Vx,Hx,Wx (66),(v1)
607fc: paddb Pq,Qq | vpaddb Vx,Hx,Wx (66),(v1)
608fd: paddw Pq,Qq | vpaddw Vx,Hx,Wx (66),(v1)
609fe: paddd Pq,Qq | vpaddd Vx,Hx,Wx (66),(v1)
610ff: UD0
611EndTable
612
613Table: 3-byte opcode 1 (0x0f 0x38)
614Referrer: 3-byte escape 1
615AVXcode: 2
616# 0x0f 0x38 0x00-0x0f
61700: pshufb Pq,Qq | vpshufb Vx,Hx,Wx (66),(v1)
61801: phaddw Pq,Qq | vphaddw Vx,Hx,Wx (66),(v1)
61902: phaddd Pq,Qq | vphaddd Vx,Hx,Wx (66),(v1)
62003: phaddsw Pq,Qq | vphaddsw Vx,Hx,Wx (66),(v1)
62104: pmaddubsw Pq,Qq | vpmaddubsw Vx,Hx,Wx (66),(v1)
62205: phsubw Pq,Qq | vphsubw Vx,Hx,Wx (66),(v1)
62306: phsubd Pq,Qq | vphsubd Vx,Hx,Wx (66),(v1)
62407: phsubsw Pq,Qq | vphsubsw Vx,Hx,Wx (66),(v1)
62508: psignb Pq,Qq | vpsignb Vx,Hx,Wx (66),(v1)
62609: psignw Pq,Qq | vpsignw Vx,Hx,Wx (66),(v1)
6270a: psignd Pq,Qq | vpsignd Vx,Hx,Wx (66),(v1)
6280b: pmulhrsw Pq,Qq | vpmulhrsw Vx,Hx,Wx (66),(v1)
6290c: vpermilps Vx,Hx,Wx (66),(v)
6300d: vpermilpd Vx,Hx,Wx (66),(v)
6310e: vtestps Vx,Wx (66),(v)
6320f: vtestpd Vx,Wx (66),(v)
633# 0x0f 0x38 0x10-0x1f
63410: pblendvb Vdq,Wdq (66) | vpsrlvw Vx,Hx,Wx (66),(evo) | vpmovuswb Wx,Vx (F3),(ev)
63511: vpmovusdb Wx,Vd (F3),(ev) | vpsravw Vx,Hx,Wx (66),(ev)
63612: vpmovusqb Wx,Vq (F3),(ev) | vpsllvw Vx,Hx,Wx (66),(ev)
63713: vcvtph2ps Vx,Wx (66),(v) | vpmovusdw Wx,Vd (F3),(ev)
63814: blendvps Vdq,Wdq (66) | vpmovusqw Wx,Vq (F3),(ev) | vprorvd/q Vx,Hx,Wx (66),(evo)
63915: blendvpd Vdq,Wdq (66) | vpmovusqd Wx,Vq (F3),(ev) | vprolvd/q Vx,Hx,Wx (66),(evo)
64016: vpermps Vqq,Hqq,Wqq (66),(v) | vpermps/d Vqq,Hqq,Wqq (66),(evo)
64117: vptest Vx,Wx (66)
64218: vbroadcastss Vx,Wd (66),(v)
64319: vbroadcastsd Vqq,Wq (66),(v) | vbroadcastf32x2 Vqq,Wq (66),(evo)
6441a: vbroadcastf128 Vqq,Mdq (66),(v) | vbroadcastf32x4/64x2 Vqq,Wq (66),(evo)
6451b: vbroadcastf32x8/64x4 Vqq,Mdq (66),(ev)
6461c: pabsb Pq,Qq | vpabsb Vx,Wx (66),(v1)
6471d: pabsw Pq,Qq | vpabsw Vx,Wx (66),(v1)
6481e: pabsd Pq,Qq | vpabsd Vx,Wx (66),(v1)
6491f: vpabsq Vx,Wx (66),(ev)
650# 0x0f 0x38 0x20-0x2f
65120: vpmovsxbw Vx,Ux/Mq (66),(v1) | vpmovswb Wx,Vx (F3),(ev)
65221: vpmovsxbd Vx,Ux/Md (66),(v1) | vpmovsdb Wx,Vd (F3),(ev)
65322: vpmovsxbq Vx,Ux/Mw (66),(v1) | vpmovsqb Wx,Vq (F3),(ev)
65423: vpmovsxwd Vx,Ux/Mq (66),(v1) | vpmovsdw Wx,Vd (F3),(ev)
65524: vpmovsxwq Vx,Ux/Md (66),(v1) | vpmovsqw Wx,Vq (F3),(ev)
65625: vpmovsxdq Vx,Ux/Mq (66),(v1) | vpmovsqd Wx,Vq (F3),(ev)
65726: vptestmb/w Vk,Hx,Wx (66),(ev) | vptestnmb/w Vk,Hx,Wx (F3),(ev)
65827: vptestmd/q Vk,Hx,Wx (66),(ev) | vptestnmd/q Vk,Hx,Wx (F3),(ev)
65928: vpmuldq Vx,Hx,Wx (66),(v1) | vpmovm2b/w Vx,Uk (F3),(ev)
66029: vpcmpeqq Vx,Hx,Wx (66),(v1) | vpmovb2m/w2m Vk,Ux (F3),(ev)
6612a: vmovntdqa Vx,Mx (66),(v1) | vpbroadcastmb2q Vx,Uk (F3),(ev)
6622b: vpackusdw Vx,Hx,Wx (66),(v1)
6632c: vmaskmovps Vx,Hx,Mx (66),(v) | vscalefps/d Vx,Hx,Wx (66),(evo)
6642d: vmaskmovpd Vx,Hx,Mx (66),(v) | vscalefss/d Vx,Hx,Wx (66),(evo)
6652e: vmaskmovps Mx,Hx,Vx (66),(v)
6662f: vmaskmovpd Mx,Hx,Vx (66),(v)
667# 0x0f 0x38 0x30-0x3f
66830: vpmovzxbw Vx,Ux/Mq (66),(v1) | vpmovwb Wx,Vx (F3),(ev)
66931: vpmovzxbd Vx,Ux/Md (66),(v1) | vpmovdb Wx,Vd (F3),(ev)
67032: vpmovzxbq Vx,Ux/Mw (66),(v1) | vpmovqb Wx,Vq (F3),(ev)
67133: vpmovzxwd Vx,Ux/Mq (66),(v1) | vpmovdw Wx,Vd (F3),(ev)
67234: vpmovzxwq Vx,Ux/Md (66),(v1) | vpmovqw Wx,Vq (F3),(ev)
67335: vpmovzxdq Vx,Ux/Mq (66),(v1) | vpmovqd Wx,Vq (F3),(ev)
67436: vpermd Vqq,Hqq,Wqq (66),(v) | vpermd/q Vqq,Hqq,Wqq (66),(evo)
67537: vpcmpgtq Vx,Hx,Wx (66),(v1)
67638: vpminsb Vx,Hx,Wx (66),(v1) | vpmovm2d/q Vx,Uk (F3),(ev)
67739: vpminsd Vx,Hx,Wx (66),(v1) | vpminsd/q Vx,Hx,Wx (66),(evo) | vpmovd2m/q2m Vk,Ux (F3),(ev)
6783a: vpminuw Vx,Hx,Wx (66),(v1) | vpbroadcastmw2d Vx,Uk (F3),(ev)
6793b: vpminud Vx,Hx,Wx (66),(v1) | vpminud/q Vx,Hx,Wx (66),(evo)
6803c: vpmaxsb Vx,Hx,Wx (66),(v1)
6813d: vpmaxsd Vx,Hx,Wx (66),(v1) | vpmaxsd/q Vx,Hx,Wx (66),(evo)
6823e: vpmaxuw Vx,Hx,Wx (66),(v1)
6833f: vpmaxud Vx,Hx,Wx (66),(v1) | vpmaxud/q Vx,Hx,Wx (66),(evo)
684# 0x0f 0x38 0x40-0x8f
68540: vpmulld Vx,Hx,Wx (66),(v1) | vpmulld/q Vx,Hx,Wx (66),(evo)
68641: vphminposuw Vdq,Wdq (66),(v1)
68742: vgetexpps/d Vx,Wx (66),(ev)
68843: vgetexpss/d Vx,Hx,Wx (66),(ev)
68944: vplzcntd/q Vx,Wx (66),(ev)
69045: vpsrlvd/q Vx,Hx,Wx (66),(v)
69146: vpsravd Vx,Hx,Wx (66),(v) | vpsravd/q Vx,Hx,Wx (66),(evo)
69247: vpsllvd/q Vx,Hx,Wx (66),(v)
693# Skip 0x48-0x4b
6944c: vrcp14ps/d Vpd,Wpd (66),(ev)
6954d: vrcp14ss/d Vsd,Hpd,Wsd (66),(ev)
6964e: vrsqrt14ps/d Vpd,Wpd (66),(ev)
6974f: vrsqrt14ss/d Vsd,Hsd,Wsd (66),(ev)
69850: vpdpbusd Vx,Hx,Wx (66),(ev)
69951: vpdpbusds Vx,Hx,Wx (66),(ev)
70052: vdpbf16ps Vx,Hx,Wx (F3),(ev) | vpdpwssd Vx,Hx,Wx (66),(ev) | vp4dpwssd Vdqq,Hdqq,Wdq (F2),(ev)
70153: vpdpwssds Vx,Hx,Wx (66),(ev) | vp4dpwssds Vdqq,Hdqq,Wdq (F2),(ev)
70254: vpopcntb/w Vx,Wx (66),(ev)
70355: vpopcntd/q Vx,Wx (66),(ev)
70458: vpbroadcastd Vx,Wx (66),(v)
70559: vpbroadcastq Vx,Wx (66),(v) | vbroadcasti32x2 Vx,Wx (66),(evo)
7065a: vbroadcasti128 Vqq,Mdq (66),(v) | vbroadcasti32x4/64x2 Vx,Wx (66),(evo)
7075b: vbroadcasti32x8/64x4 Vqq,Mdq (66),(ev)
708# Skip 0x5c-0x61
70962: vpexpandb/w Vx,Wx (66),(ev)
71063: vpcompressb/w Wx,Vx (66),(ev)
71164: vpblendmd/q Vx,Hx,Wx (66),(ev)
71265: vblendmps/d Vx,Hx,Wx (66),(ev)
71366: vpblendmb/w Vx,Hx,Wx (66),(ev)
71468: vp2intersectd/q Kx,Hx,Wx (F2),(ev)
715# Skip 0x69-0x6f
71670: vpshldvw Vx,Hx,Wx (66),(ev)
71771: vpshldvd/q Vx,Hx,Wx (66),(ev)
71872: vcvtne2ps2bf16 Vx,Hx,Wx (F2),(ev) | vcvtneps2bf16 Vx,Wx (F3),(ev) | vpshrdvw Vx,Hx,Wx (66),(ev)
71973: vpshrdvd/q Vx,Hx,Wx (66),(ev)
72075: vpermi2b/w Vx,Hx,Wx (66),(ev)
72176: vpermi2d/q Vx,Hx,Wx (66),(ev)
72277: vpermi2ps/d Vx,Hx,Wx (66),(ev)
72378: vpbroadcastb Vx,Wx (66),(v)
72479: vpbroadcastw Vx,Wx (66),(v)
7257a: vpbroadcastb Vx,Rv (66),(ev)
7267b: vpbroadcastw Vx,Rv (66),(ev)
7277c: vpbroadcastd/q Vx,Rv (66),(ev)
7287d: vpermt2b/w Vx,Hx,Wx (66),(ev)
7297e: vpermt2d/q Vx,Hx,Wx (66),(ev)
7307f: vpermt2ps/d Vx,Hx,Wx (66),(ev)
73180: INVEPT Gy,Mdq (66)
73281: INVVPID Gy,Mdq (66)
73382: INVPCID Gy,Mdq (66)
73483: vpmultishiftqb Vx,Hx,Wx (66),(ev)
73588: vexpandps/d Vpd,Wpd (66),(ev)
73689: vpexpandd/q Vx,Wx (66),(ev)
7378a: vcompressps/d Wx,Vx (66),(ev)
7388b: vpcompressd/q Wx,Vx (66),(ev)
7398c: vpmaskmovd/q Vx,Hx,Mx (66),(v)
7408d: vpermb/w Vx,Hx,Wx (66),(ev)
7418e: vpmaskmovd/q Mx,Vx,Hx (66),(v)
7428f: vpshufbitqmb Kx,Hx,Wx (66),(ev)
743# 0x0f 0x38 0x90-0xbf (FMA)
74490: vgatherdd/q Vx,Hx,Wx (66),(v) | vpgatherdd/q Vx,Wx (66),(evo)
74591: vgatherqd/q Vx,Hx,Wx (66),(v) | vpgatherqd/q Vx,Wx (66),(evo)
74692: vgatherdps/d Vx,Hx,Wx (66),(v)
74793: vgatherqps/d Vx,Hx,Wx (66),(v)
74894:
74995:
75096: vfmaddsub132ps/d Vx,Hx,Wx (66),(v)
75197: vfmsubadd132ps/d Vx,Hx,Wx (66),(v)
75298: vfmadd132ps/d Vx,Hx,Wx (66),(v)
75399: vfmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
7549a: vfmsub132ps/d Vx,Hx,Wx (66),(v) | v4fmaddps Vdqq,Hdqq,Wdq (F2),(ev)
7559b: vfmsub132ss/d Vx,Hx,Wx (66),(v),(v1) | v4fmaddss Vdq,Hdq,Wdq (F2),(ev)
7569c: vfnmadd132ps/d Vx,Hx,Wx (66),(v)
7579d: vfnmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
7589e: vfnmsub132ps/d Vx,Hx,Wx (66),(v)
7599f: vfnmsub132ss/d Vx,Hx,Wx (66),(v),(v1)
760a0: vpscatterdd/q Wx,Vx (66),(ev)
761a1: vpscatterqd/q Wx,Vx (66),(ev)
762a2: vscatterdps/d Wx,Vx (66),(ev)
763a3: vscatterqps/d Wx,Vx (66),(ev)
764a6: vfmaddsub213ps/d Vx,Hx,Wx (66),(v)
765a7: vfmsubadd213ps/d Vx,Hx,Wx (66),(v)
766a8: vfmadd213ps/d Vx,Hx,Wx (66),(v)
767a9: vfmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
768aa: vfmsub213ps/d Vx,Hx,Wx (66),(v) | v4fnmaddps Vdqq,Hdqq,Wdq (F2),(ev)
769ab: vfmsub213ss/d Vx,Hx,Wx (66),(v),(v1) | v4fnmaddss Vdq,Hdq,Wdq (F2),(ev)
770ac: vfnmadd213ps/d Vx,Hx,Wx (66),(v)
771ad: vfnmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
772ae: vfnmsub213ps/d Vx,Hx,Wx (66),(v)
773af: vfnmsub213ss/d Vx,Hx,Wx (66),(v),(v1)
774b4: vpmadd52luq Vx,Hx,Wx (66),(ev)
775b5: vpmadd52huq Vx,Hx,Wx (66),(ev)
776b6: vfmaddsub231ps/d Vx,Hx,Wx (66),(v)
777b7: vfmsubadd231ps/d Vx,Hx,Wx (66),(v)
778b8: vfmadd231ps/d Vx,Hx,Wx (66),(v)
779b9: vfmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
780ba: vfmsub231ps/d Vx,Hx,Wx (66),(v)
781bb: vfmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
782bc: vfnmadd231ps/d Vx,Hx,Wx (66),(v)
783bd: vfnmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
784be: vfnmsub231ps/d Vx,Hx,Wx (66),(v)
785bf: vfnmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
786# 0x0f 0x38 0xc0-0xff
787c4: vpconflictd/q Vx,Wx (66),(ev)
788c6: Grp18 (1A)
789c7: Grp19 (1A)
790c8: sha1nexte Vdq,Wdq | vexp2ps/d Vx,Wx (66),(ev)
791c9: sha1msg1 Vdq,Wdq
792ca: sha1msg2 Vdq,Wdq | vrcp28ps/d Vx,Wx (66),(ev)
793cb: sha256rnds2 Vdq,Wdq | vrcp28ss/d Vx,Hx,Wx (66),(ev)
794cc: sha256msg1 Vdq,Wdq | vrsqrt28ps/d Vx,Wx (66),(ev)
795cd: sha256msg2 Vdq,Wdq | vrsqrt28ss/d Vx,Hx,Wx (66),(ev)
796cf: vgf2p8mulb Vx,Wx (66)
797db: VAESIMC Vdq,Wdq (66),(v1)
798dc: vaesenc Vx,Hx,Wx (66)
799dd: vaesenclast Vx,Hx,Wx (66)
800de: vaesdec Vx,Hx,Wx (66)
801df: vaesdeclast Vx,Hx,Wx (66)
802f0: MOVBE Gy,My | MOVBE Gw,Mw (66) | CRC32 Gd,Eb (F2) | CRC32 Gd,Eb (66&F2)
803f1: MOVBE My,Gy | MOVBE Mw,Gw (66) | CRC32 Gd,Ey (F2) | CRC32 Gd,Ew (66&F2)
804f2: ANDN Gy,By,Ey (v)
805f3: Grp17 (1A)
806f5: BZHI Gy,Ey,By (v) | PEXT Gy,By,Ey (F3),(v) | PDEP Gy,By,Ey (F2),(v) | WRUSSD/Q My,Gy (66)
807f6: ADCX Gy,Ey (66) | ADOX Gy,Ey (F3) | MULX By,Gy,rDX,Ey (F2),(v) | WRSSD/Q My,Gy
808f7: BEXTR Gy,Ey,By (v) | SHLX Gy,Ey,By (66),(v) | SARX Gy,Ey,By (F3),(v) | SHRX Gy,Ey,By (F2),(v)
809f8: MOVDIR64B Gv,Mdqq (66) | ENQCMD Gv,Mdqq (F2) | ENQCMDS Gv,Mdqq (F3)
810f9: MOVDIRI My,Gy
811EndTable
812
813Table: 3-byte opcode 2 (0x0f 0x3a)
814Referrer: 3-byte escape 2
815AVXcode: 3
816# 0x0f 0x3a 0x00-0xff
81700: vpermq Vqq,Wqq,Ib (66),(v)
81801: vpermpd Vqq,Wqq,Ib (66),(v)
81902: vpblendd Vx,Hx,Wx,Ib (66),(v)
82003: valignd/q Vx,Hx,Wx,Ib (66),(ev)
82104: vpermilps Vx,Wx,Ib (66),(v)
82205: vpermilpd Vx,Wx,Ib (66),(v)
82306: vperm2f128 Vqq,Hqq,Wqq,Ib (66),(v)
82407:
82508: vroundps Vx,Wx,Ib (66) | vrndscaleps Vx,Wx,Ib (66),(evo)
82609: vroundpd Vx,Wx,Ib (66) | vrndscalepd Vx,Wx,Ib (66),(evo)
8270a: vroundss Vss,Wss,Ib (66),(v1) | vrndscaless Vx,Hx,Wx,Ib (66),(evo)
8280b: vroundsd Vsd,Wsd,Ib (66),(v1) | vrndscalesd Vx,Hx,Wx,Ib (66),(evo)
8290c: vblendps Vx,Hx,Wx,Ib (66)
8300d: vblendpd Vx,Hx,Wx,Ib (66)
8310e: vpblendw Vx,Hx,Wx,Ib (66),(v1)
8320f: palignr Pq,Qq,Ib | vpalignr Vx,Hx,Wx,Ib (66),(v1)
83314: vpextrb Rd/Mb,Vdq,Ib (66),(v1)
83415: vpextrw Rd/Mw,Vdq,Ib (66),(v1)
83516: vpextrd/q Ey,Vdq,Ib (66),(v1)
83617: vextractps Ed,Vdq,Ib (66),(v1)
83718: vinsertf128 Vqq,Hqq,Wqq,Ib (66),(v) | vinsertf32x4/64x2 Vqq,Hqq,Wqq,Ib (66),(evo)
83819: vextractf128 Wdq,Vqq,Ib (66),(v) | vextractf32x4/64x2 Wdq,Vqq,Ib (66),(evo)
8391a: vinsertf32x8/64x4 Vqq,Hqq,Wqq,Ib (66),(ev)
8401b: vextractf32x8/64x4 Wdq,Vqq,Ib (66),(ev)
8411d: vcvtps2ph Wx,Vx,Ib (66),(v)
8421e: vpcmpud/q Vk,Hd,Wd,Ib (66),(ev)
8431f: vpcmpd/q Vk,Hd,Wd,Ib (66),(ev)
84420: vpinsrb Vdq,Hdq,Ry/Mb,Ib (66),(v1)
84521: vinsertps Vdq,Hdq,Udq/Md,Ib (66),(v1)
84622: vpinsrd/q Vdq,Hdq,Ey,Ib (66),(v1)
84723: vshuff32x4/64x2 Vx,Hx,Wx,Ib (66),(ev)
84825: vpternlogd/q Vx,Hx,Wx,Ib (66),(ev)
84926: vgetmantps/d Vx,Wx,Ib (66),(ev)
85027: vgetmantss/d Vx,Hx,Wx,Ib (66),(ev)
85130: kshiftrb/w Vk,Uk,Ib (66),(v)
85231: kshiftrd/q Vk,Uk,Ib (66),(v)
85332: kshiftlb/w Vk,Uk,Ib (66),(v)
85433: kshiftld/q Vk,Uk,Ib (66),(v)
85538: vinserti128 Vqq,Hqq,Wqq,Ib (66),(v) | vinserti32x4/64x2 Vqq,Hqq,Wqq,Ib (66),(evo)
85639: vextracti128 Wdq,Vqq,Ib (66),(v) | vextracti32x4/64x2 Wdq,Vqq,Ib (66),(evo)
8573a: vinserti32x8/64x4 Vqq,Hqq,Wqq,Ib (66),(ev)
8583b: vextracti32x8/64x4 Wdq,Vqq,Ib (66),(ev)
8593e: vpcmpub/w Vk,Hk,Wx,Ib (66),(ev)
8603f: vpcmpb/w Vk,Hk,Wx,Ib (66),(ev)
86140: vdpps Vx,Hx,Wx,Ib (66)
86241: vdppd Vdq,Hdq,Wdq,Ib (66),(v1)
86342: vmpsadbw Vx,Hx,Wx,Ib (66),(v1) | vdbpsadbw Vx,Hx,Wx,Ib (66),(evo)
86443: vshufi32x4/64x2 Vx,Hx,Wx,Ib (66),(ev)
86544: vpclmulqdq Vx,Hx,Wx,Ib (66)
86646: vperm2i128 Vqq,Hqq,Wqq,Ib (66),(v)
8674a: vblendvps Vx,Hx,Wx,Lx (66),(v)
8684b: vblendvpd Vx,Hx,Wx,Lx (66),(v)
8694c: vpblendvb Vx,Hx,Wx,Lx (66),(v1)
87050: vrangeps/d Vx,Hx,Wx,Ib (66),(ev)
87151: vrangess/d Vx,Hx,Wx,Ib (66),(ev)
87254: vfixupimmps/d Vx,Hx,Wx,Ib (66),(ev)
87355: vfixupimmss/d Vx,Hx,Wx,Ib (66),(ev)
87456: vreduceps/d Vx,Wx,Ib (66),(ev)
87557: vreducess/d Vx,Hx,Wx,Ib (66),(ev)
87660: vpcmpestrm Vdq,Wdq,Ib (66),(v1)
87761: vpcmpestri Vdq,Wdq,Ib (66),(v1)
87862: vpcmpistrm Vdq,Wdq,Ib (66),(v1)
87963: vpcmpistri Vdq,Wdq,Ib (66),(v1)
88066: vfpclassps/d Vk,Wx,Ib (66),(ev)
88167: vfpclassss/d Vk,Wx,Ib (66),(ev)
88270: vpshldw Vx,Hx,Wx,Ib (66),(ev)
88371: vpshldd/q Vx,Hx,Wx,Ib (66),(ev)
88472: vpshrdw Vx,Hx,Wx,Ib (66),(ev)
88573: vpshrdd/q Vx,Hx,Wx,Ib (66),(ev)
886cc: sha1rnds4 Vdq,Wdq,Ib
887ce: vgf2p8affineqb Vx,Wx,Ib (66)
888cf: vgf2p8affineinvqb Vx,Wx,Ib (66)
889df: VAESKEYGEN Vdq,Wdq,Ib (66),(v1)
890f0: RORX Gy,Ey,Ib (F2),(v)
891EndTable
892
893GrpTable: Grp1
8940: ADD
8951: OR
8962: ADC
8973: SBB
8984: AND
8995: SUB
9006: XOR
9017: CMP
902EndTable
903
904GrpTable: Grp1A
9050: POP
906EndTable
907
908GrpTable: Grp2
9090: ROL
9101: ROR
9112: RCL
9123: RCR
9134: SHL/SAL
9145: SHR
9156:
9167: SAR
917EndTable
918
919GrpTable: Grp3_1
9200: TEST Eb,Ib
9211: TEST Eb,Ib
9222: NOT Eb
9233: NEG Eb
9244: MUL AL,Eb
9255: IMUL AL,Eb
9266: DIV AL,Eb
9277: IDIV AL,Eb
928EndTable
929
930GrpTable: Grp3_2
9310: TEST Ev,Iz
9321: TEST Ev,Iz
9332: NOT Ev
9343: NEG Ev
9354: MUL rAX,Ev
9365: IMUL rAX,Ev
9376: DIV rAX,Ev
9387: IDIV rAX,Ev
939EndTable
940
941GrpTable: Grp4
9420: INC Eb
9431: DEC Eb
944EndTable
945
946GrpTable: Grp5
9470: INC Ev
9481: DEC Ev
949# Note: "forced64" is Intel CPU behavior (see comment about CALL insn).
9502: CALLN Ev (f64)
9513: CALLF Ep
9524: JMPN Ev (f64)
9535: JMPF Mp
9546: PUSH Ev (d64)
9557:
956EndTable
957
958GrpTable: Grp6
9590: SLDT Rv/Mw
9601: STR Rv/Mw
9612: LLDT Ew
9623: LTR Ew
9634: VERR Ew
9645: VERW Ew
965EndTable
966
967GrpTable: Grp7
9680: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B)
9691: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B)
9702: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B) | ENCLU (111),(11B)
9713: LIDT Ms
9724: SMSW Mw/Rv
9735: rdpkru (110),(11B) | wrpkru (111),(11B) | SAVEPREVSSP (F3),(010),(11B) | RSTORSSP Mq (F3) | SETSSBSY (F3),(000),(11B)
9746: LMSW Ew
9757: INVLPG Mb | SWAPGS (o64),(000),(11B) | RDTSCP (001),(11B)
976EndTable
977
978GrpTable: Grp8
9794: BT
9805: BTS
9816: BTR
9827: BTC
983EndTable
984
985GrpTable: Grp9
9861: CMPXCHG8B/16B Mq/Mdq
9873: xrstors
9884: xsavec
9895: xsaves
9906: VMPTRLD Mq | VMCLEAR Mq (66) | VMXON Mq (F3) | RDRAND Rv (11B)
9917: VMPTRST Mq | VMPTRST Mq (F3) | RDSEED Rv (11B)
992EndTable
993
994GrpTable: Grp10
995# all are UD1
9960: UD1
9971: UD1
9982: UD1
9993: UD1
10004: UD1
10015: UD1
10026: UD1
10037: UD1
1004EndTable
1005
1006# Grp11A and Grp11B are expressed as Grp11 in Intel SDM
1007GrpTable: Grp11A
10080: MOV Eb,Ib
10097: XABORT Ib (000),(11B)
1010EndTable
1011
1012GrpTable: Grp11B
10130: MOV Eb,Iz
10147: XBEGIN Jz (000),(11B)
1015EndTable
1016
1017GrpTable: Grp12
10182: psrlw Nq,Ib (11B) | vpsrlw Hx,Ux,Ib (66),(11B),(v1)
10194: psraw Nq,Ib (11B) | vpsraw Hx,Ux,Ib (66),(11B),(v1)
10206: psllw Nq,Ib (11B) | vpsllw Hx,Ux,Ib (66),(11B),(v1)
1021EndTable
1022
1023GrpTable: Grp13
10240: vprord/q Hx,Wx,Ib (66),(ev)
10251: vprold/q Hx,Wx,Ib (66),(ev)
10262: psrld Nq,Ib (11B) | vpsrld Hx,Ux,Ib (66),(11B),(v1)
10274: psrad Nq,Ib (11B) | vpsrad Hx,Ux,Ib (66),(11B),(v1) | vpsrad/q Hx,Ux,Ib (66),(evo)
10286: pslld Nq,Ib (11B) | vpslld Hx,Ux,Ib (66),(11B),(v1)
1029EndTable
1030
1031GrpTable: Grp14
10322: psrlq Nq,Ib (11B) | vpsrlq Hx,Ux,Ib (66),(11B),(v1)
10333: vpsrldq Hx,Ux,Ib (66),(11B),(v1)
10346: psllq Nq,Ib (11B) | vpsllq Hx,Ux,Ib (66),(11B),(v1)
10357: vpslldq Hx,Ux,Ib (66),(11B),(v1)
1036EndTable
1037
1038GrpTable: Grp15
10390: fxsave | RDFSBASE Ry (F3),(11B)
10401: fxstor | RDGSBASE Ry (F3),(11B)
10412: vldmxcsr Md (v1) | WRFSBASE Ry (F3),(11B)
10423: vstmxcsr Md (v1) | WRGSBASE Ry (F3),(11B)
10434: XSAVE | ptwrite Ey (F3),(11B)
10445: XRSTOR | lfence (11B) | INCSSPD/Q Ry (F3),(11B)
10456: XSAVEOPT | clwb (66) | mfence (11B) | TPAUSE Rd (66),(11B) | UMONITOR Rv (F3),(11B) | UMWAIT Rd (F2),(11B) | CLRSSBSY Mq (F3)
10467: clflush | clflushopt (66) | sfence (11B)
1047EndTable
1048
1049GrpTable: Grp16
10500: prefetch NTA
10511: prefetch T0
10522: prefetch T1
10533: prefetch T2
1054EndTable
1055
1056GrpTable: Grp17
10571: BLSR By,Ey (v)
10582: BLSMSK By,Ey (v)
10593: BLSI By,Ey (v)
1060EndTable
1061
1062GrpTable: Grp18
10631: vgatherpf0dps/d Wx (66),(ev)
10642: vgatherpf1dps/d Wx (66),(ev)
10655: vscatterpf0dps/d Wx (66),(ev)
10666: vscatterpf1dps/d Wx (66),(ev)
1067EndTable
1068
1069GrpTable: Grp19
10701: vgatherpf0qps/d Wx (66),(ev)
10712: vgatherpf1qps/d Wx (66),(ev)
10725: vscatterpf0qps/d Wx (66),(ev)
10736: vscatterpf1qps/d Wx (66),(ev)
1074EndTable
1075
1076GrpTable: Grp20
10770: cldemote Mb
1078EndTable
1079
1080GrpTable: Grp21
10811: RDSSPD/Q Ry (F3),(11B)
10827: ENDBR64 (F3),(010),(11B) | ENDBR32 (F3),(011),(11B)
1083EndTable
1084
1085# AMD's Prefetch Group
1086GrpTable: GrpP
10870: PREFETCH
10881: PREFETCHW
1089EndTable
1090
1091GrpTable: GrpPDLK
10920: MONTMUL
10931: XSHA1
10942: XSHA2
1095EndTable
1096
1097GrpTable: GrpRNG
10980: xstore-rng
10991: xcrypt-ecb
11002: xcrypt-cbc
11014: xcrypt-cfb
11025: xcrypt-ofb
1103EndTable
1104