xref: /openbmc/linux/tools/arch/x86/lib/x86-opcode-map.txt (revision b181f7029bd71238ac2754ce7052dffd69432085)
1d046b725SJosh Poimboeuf# x86 Opcode Maps
2d046b725SJosh Poimboeuf#
3d046b725SJosh Poimboeuf# This is (mostly) based on following documentations.
4d046b725SJosh Poimboeuf# - Intel(R) 64 and IA-32 Architectures Software Developer's Manual Vol.2C
5d046b725SJosh Poimboeuf#   (#326018-047US, June 2013)
6d046b725SJosh Poimboeuf#
7d046b725SJosh Poimboeuf#<Opcode maps>
8d046b725SJosh Poimboeuf# Table: table-name
9d046b725SJosh Poimboeuf# Referrer: escaped-name
10d046b725SJosh Poimboeuf# AVXcode: avx-code
11d046b725SJosh Poimboeuf# opcode: mnemonic|GrpXXX [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...]
12d046b725SJosh Poimboeuf# (or)
13d046b725SJosh Poimboeuf# opcode: escape # escaped-name
14d046b725SJosh Poimboeuf# EndTable
15d046b725SJosh Poimboeuf#
16d046b725SJosh Poimboeuf# mnemonics that begin with lowercase 'v' accept a VEX or EVEX prefix
17d046b725SJosh Poimboeuf# mnemonics that begin with lowercase 'k' accept a VEX prefix
18d046b725SJosh Poimboeuf#
19d046b725SJosh Poimboeuf#<group maps>
20d046b725SJosh Poimboeuf# GrpTable: GrpXXX
21d046b725SJosh Poimboeuf# reg:  mnemonic [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...]
22d046b725SJosh Poimboeuf# EndTable
23d046b725SJosh Poimboeuf#
24d046b725SJosh Poimboeuf# AVX Superscripts
25d046b725SJosh Poimboeuf#  (ev): this opcode requires EVEX prefix.
26d046b725SJosh Poimboeuf#  (evo): this opcode is changed by EVEX prefix (EVEX opcode)
27d046b725SJosh Poimboeuf#  (v): this opcode requires VEX prefix.
28d046b725SJosh Poimboeuf#  (v1): this opcode only supports 128bit VEX.
29d046b725SJosh Poimboeuf#
30d046b725SJosh Poimboeuf# Last Prefix Superscripts
31d046b725SJosh Poimboeuf#  - (66): the last prefix is 0x66
32d046b725SJosh Poimboeuf#  - (F3): the last prefix is 0xF3
33d046b725SJosh Poimboeuf#  - (F2): the last prefix is 0xF2
34d046b725SJosh Poimboeuf#  - (!F3) : the last prefix is not 0xF3 (including non-last prefix case)
35d046b725SJosh Poimboeuf#  - (66&F2): Both 0x66 and 0xF2 prefixes are specified.
36d046b725SJosh Poimboeuf
37d046b725SJosh PoimboeufTable: one byte opcode
38d046b725SJosh PoimboeufReferrer:
39d046b725SJosh PoimboeufAVXcode:
40d046b725SJosh Poimboeuf# 0x00 - 0x0f
41d046b725SJosh Poimboeuf00: ADD Eb,Gb
42d046b725SJosh Poimboeuf01: ADD Ev,Gv
43d046b725SJosh Poimboeuf02: ADD Gb,Eb
44d046b725SJosh Poimboeuf03: ADD Gv,Ev
45d046b725SJosh Poimboeuf04: ADD AL,Ib
46d046b725SJosh Poimboeuf05: ADD rAX,Iz
47d046b725SJosh Poimboeuf06: PUSH ES (i64)
48d046b725SJosh Poimboeuf07: POP ES (i64)
49d046b725SJosh Poimboeuf08: OR Eb,Gb
50d046b725SJosh Poimboeuf09: OR Ev,Gv
51d046b725SJosh Poimboeuf0a: OR Gb,Eb
52d046b725SJosh Poimboeuf0b: OR Gv,Ev
53d046b725SJosh Poimboeuf0c: OR AL,Ib
54d046b725SJosh Poimboeuf0d: OR rAX,Iz
55d046b725SJosh Poimboeuf0e: PUSH CS (i64)
56d046b725SJosh Poimboeuf0f: escape # 2-byte escape
57d046b725SJosh Poimboeuf# 0x10 - 0x1f
58d046b725SJosh Poimboeuf10: ADC Eb,Gb
59d046b725SJosh Poimboeuf11: ADC Ev,Gv
60d046b725SJosh Poimboeuf12: ADC Gb,Eb
61d046b725SJosh Poimboeuf13: ADC Gv,Ev
62d046b725SJosh Poimboeuf14: ADC AL,Ib
63d046b725SJosh Poimboeuf15: ADC rAX,Iz
64d046b725SJosh Poimboeuf16: PUSH SS (i64)
65d046b725SJosh Poimboeuf17: POP SS (i64)
66d046b725SJosh Poimboeuf18: SBB Eb,Gb
67d046b725SJosh Poimboeuf19: SBB Ev,Gv
68d046b725SJosh Poimboeuf1a: SBB Gb,Eb
69d046b725SJosh Poimboeuf1b: SBB Gv,Ev
70d046b725SJosh Poimboeuf1c: SBB AL,Ib
71d046b725SJosh Poimboeuf1d: SBB rAX,Iz
72d046b725SJosh Poimboeuf1e: PUSH DS (i64)
73d046b725SJosh Poimboeuf1f: POP DS (i64)
74d046b725SJosh Poimboeuf# 0x20 - 0x2f
75d046b725SJosh Poimboeuf20: AND Eb,Gb
76d046b725SJosh Poimboeuf21: AND Ev,Gv
77d046b725SJosh Poimboeuf22: AND Gb,Eb
78d046b725SJosh Poimboeuf23: AND Gv,Ev
79d046b725SJosh Poimboeuf24: AND AL,Ib
80d046b725SJosh Poimboeuf25: AND rAx,Iz
81d046b725SJosh Poimboeuf26: SEG=ES (Prefix)
82d046b725SJosh Poimboeuf27: DAA (i64)
83d046b725SJosh Poimboeuf28: SUB Eb,Gb
84d046b725SJosh Poimboeuf29: SUB Ev,Gv
85d046b725SJosh Poimboeuf2a: SUB Gb,Eb
86d046b725SJosh Poimboeuf2b: SUB Gv,Ev
87d046b725SJosh Poimboeuf2c: SUB AL,Ib
88d046b725SJosh Poimboeuf2d: SUB rAX,Iz
89d046b725SJosh Poimboeuf2e: SEG=CS (Prefix)
90d046b725SJosh Poimboeuf2f: DAS (i64)
91d046b725SJosh Poimboeuf# 0x30 - 0x3f
92d046b725SJosh Poimboeuf30: XOR Eb,Gb
93d046b725SJosh Poimboeuf31: XOR Ev,Gv
94d046b725SJosh Poimboeuf32: XOR Gb,Eb
95d046b725SJosh Poimboeuf33: XOR Gv,Ev
96d046b725SJosh Poimboeuf34: XOR AL,Ib
97d046b725SJosh Poimboeuf35: XOR rAX,Iz
98d046b725SJosh Poimboeuf36: SEG=SS (Prefix)
99d046b725SJosh Poimboeuf37: AAA (i64)
100d046b725SJosh Poimboeuf38: CMP Eb,Gb
101d046b725SJosh Poimboeuf39: CMP Ev,Gv
102d046b725SJosh Poimboeuf3a: CMP Gb,Eb
103d046b725SJosh Poimboeuf3b: CMP Gv,Ev
104d046b725SJosh Poimboeuf3c: CMP AL,Ib
105d046b725SJosh Poimboeuf3d: CMP rAX,Iz
106d046b725SJosh Poimboeuf3e: SEG=DS (Prefix)
107d046b725SJosh Poimboeuf3f: AAS (i64)
108d046b725SJosh Poimboeuf# 0x40 - 0x4f
109d046b725SJosh Poimboeuf40: INC eAX (i64) | REX (o64)
110d046b725SJosh Poimboeuf41: INC eCX (i64) | REX.B (o64)
111d046b725SJosh Poimboeuf42: INC eDX (i64) | REX.X (o64)
112d046b725SJosh Poimboeuf43: INC eBX (i64) | REX.XB (o64)
113d046b725SJosh Poimboeuf44: INC eSP (i64) | REX.R (o64)
114d046b725SJosh Poimboeuf45: INC eBP (i64) | REX.RB (o64)
115d046b725SJosh Poimboeuf46: INC eSI (i64) | REX.RX (o64)
116d046b725SJosh Poimboeuf47: INC eDI (i64) | REX.RXB (o64)
117d046b725SJosh Poimboeuf48: DEC eAX (i64) | REX.W (o64)
118d046b725SJosh Poimboeuf49: DEC eCX (i64) | REX.WB (o64)
119d046b725SJosh Poimboeuf4a: DEC eDX (i64) | REX.WX (o64)
120d046b725SJosh Poimboeuf4b: DEC eBX (i64) | REX.WXB (o64)
121d046b725SJosh Poimboeuf4c: DEC eSP (i64) | REX.WR (o64)
122d046b725SJosh Poimboeuf4d: DEC eBP (i64) | REX.WRB (o64)
123d046b725SJosh Poimboeuf4e: DEC eSI (i64) | REX.WRX (o64)
124d046b725SJosh Poimboeuf4f: DEC eDI (i64) | REX.WRXB (o64)
125d046b725SJosh Poimboeuf# 0x50 - 0x5f
126d046b725SJosh Poimboeuf50: PUSH rAX/r8 (d64)
127d046b725SJosh Poimboeuf51: PUSH rCX/r9 (d64)
128d046b725SJosh Poimboeuf52: PUSH rDX/r10 (d64)
129d046b725SJosh Poimboeuf53: PUSH rBX/r11 (d64)
130d046b725SJosh Poimboeuf54: PUSH rSP/r12 (d64)
131d046b725SJosh Poimboeuf55: PUSH rBP/r13 (d64)
132d046b725SJosh Poimboeuf56: PUSH rSI/r14 (d64)
133d046b725SJosh Poimboeuf57: PUSH rDI/r15 (d64)
134d046b725SJosh Poimboeuf58: POP rAX/r8 (d64)
135d046b725SJosh Poimboeuf59: POP rCX/r9 (d64)
136d046b725SJosh Poimboeuf5a: POP rDX/r10 (d64)
137d046b725SJosh Poimboeuf5b: POP rBX/r11 (d64)
138d046b725SJosh Poimboeuf5c: POP rSP/r12 (d64)
139d046b725SJosh Poimboeuf5d: POP rBP/r13 (d64)
140d046b725SJosh Poimboeuf5e: POP rSI/r14 (d64)
141d046b725SJosh Poimboeuf5f: POP rDI/r15 (d64)
142d046b725SJosh Poimboeuf# 0x60 - 0x6f
143d046b725SJosh Poimboeuf60: PUSHA/PUSHAD (i64)
144d046b725SJosh Poimboeuf61: POPA/POPAD (i64)
145d046b725SJosh Poimboeuf62: BOUND Gv,Ma (i64) | EVEX (Prefix)
146d046b725SJosh Poimboeuf63: ARPL Ew,Gw (i64) | MOVSXD Gv,Ev (o64)
147d046b725SJosh Poimboeuf64: SEG=FS (Prefix)
148d046b725SJosh Poimboeuf65: SEG=GS (Prefix)
149d046b725SJosh Poimboeuf66: Operand-Size (Prefix)
150d046b725SJosh Poimboeuf67: Address-Size (Prefix)
1513d22be00SAdrian Hunter68: PUSH Iz
152d046b725SJosh Poimboeuf69: IMUL Gv,Ev,Iz
153d046b725SJosh Poimboeuf6a: PUSH Ib (d64)
154d046b725SJosh Poimboeuf6b: IMUL Gv,Ev,Ib
155d046b725SJosh Poimboeuf6c: INS/INSB Yb,DX
156d046b725SJosh Poimboeuf6d: INS/INSW/INSD Yz,DX
157d046b725SJosh Poimboeuf6e: OUTS/OUTSB DX,Xb
158d046b725SJosh Poimboeuf6f: OUTS/OUTSW/OUTSD DX,Xz
159d046b725SJosh Poimboeuf# 0x70 - 0x7f
160d046b725SJosh Poimboeuf70: JO Jb
161d046b725SJosh Poimboeuf71: JNO Jb
162d046b725SJosh Poimboeuf72: JB/JNAE/JC Jb
163d046b725SJosh Poimboeuf73: JNB/JAE/JNC Jb
164d046b725SJosh Poimboeuf74: JZ/JE Jb
165d046b725SJosh Poimboeuf75: JNZ/JNE Jb
166d046b725SJosh Poimboeuf76: JBE/JNA Jb
167d046b725SJosh Poimboeuf77: JNBE/JA Jb
168d046b725SJosh Poimboeuf78: JS Jb
169d046b725SJosh Poimboeuf79: JNS Jb
170d046b725SJosh Poimboeuf7a: JP/JPE Jb
171d046b725SJosh Poimboeuf7b: JNP/JPO Jb
172d046b725SJosh Poimboeuf7c: JL/JNGE Jb
173d046b725SJosh Poimboeuf7d: JNL/JGE Jb
174d046b725SJosh Poimboeuf7e: JLE/JNG Jb
175d046b725SJosh Poimboeuf7f: JNLE/JG Jb
176d046b725SJosh Poimboeuf# 0x80 - 0x8f
177d046b725SJosh Poimboeuf80: Grp1 Eb,Ib (1A)
178d046b725SJosh Poimboeuf81: Grp1 Ev,Iz (1A)
179d046b725SJosh Poimboeuf82: Grp1 Eb,Ib (1A),(i64)
180d046b725SJosh Poimboeuf83: Grp1 Ev,Ib (1A)
181d046b725SJosh Poimboeuf84: TEST Eb,Gb
182d046b725SJosh Poimboeuf85: TEST Ev,Gv
183d046b725SJosh Poimboeuf86: XCHG Eb,Gb
184d046b725SJosh Poimboeuf87: XCHG Ev,Gv
185d046b725SJosh Poimboeuf88: MOV Eb,Gb
186d046b725SJosh Poimboeuf89: MOV Ev,Gv
187d046b725SJosh Poimboeuf8a: MOV Gb,Eb
188d046b725SJosh Poimboeuf8b: MOV Gv,Ev
189d046b725SJosh Poimboeuf8c: MOV Ev,Sw
190d046b725SJosh Poimboeuf8d: LEA Gv,M
191d046b725SJosh Poimboeuf8e: MOV Sw,Ew
192d046b725SJosh Poimboeuf8f: Grp1A (1A) | POP Ev (d64)
193d046b725SJosh Poimboeuf# 0x90 - 0x9f
194d046b725SJosh Poimboeuf90: NOP | PAUSE (F3) | XCHG r8,rAX
195d046b725SJosh Poimboeuf91: XCHG rCX/r9,rAX
196d046b725SJosh Poimboeuf92: XCHG rDX/r10,rAX
197d046b725SJosh Poimboeuf93: XCHG rBX/r11,rAX
198d046b725SJosh Poimboeuf94: XCHG rSP/r12,rAX
199d046b725SJosh Poimboeuf95: XCHG rBP/r13,rAX
200d046b725SJosh Poimboeuf96: XCHG rSI/r14,rAX
201d046b725SJosh Poimboeuf97: XCHG rDI/r15,rAX
202d046b725SJosh Poimboeuf98: CBW/CWDE/CDQE
203d046b725SJosh Poimboeuf99: CWD/CDQ/CQO
204d046b725SJosh Poimboeuf9a: CALLF Ap (i64)
205d046b725SJosh Poimboeuf9b: FWAIT/WAIT
206d046b725SJosh Poimboeuf9c: PUSHF/D/Q Fv (d64)
207d046b725SJosh Poimboeuf9d: POPF/D/Q Fv (d64)
208d046b725SJosh Poimboeuf9e: SAHF
209d046b725SJosh Poimboeuf9f: LAHF
210d046b725SJosh Poimboeuf# 0xa0 - 0xaf
211d046b725SJosh Poimboeufa0: MOV AL,Ob
212d046b725SJosh Poimboeufa1: MOV rAX,Ov
213d046b725SJosh Poimboeufa2: MOV Ob,AL
214d046b725SJosh Poimboeufa3: MOV Ov,rAX
215d046b725SJosh Poimboeufa4: MOVS/B Yb,Xb
216d046b725SJosh Poimboeufa5: MOVS/W/D/Q Yv,Xv
217d046b725SJosh Poimboeufa6: CMPS/B Xb,Yb
218d046b725SJosh Poimboeufa7: CMPS/W/D Xv,Yv
219d046b725SJosh Poimboeufa8: TEST AL,Ib
220d046b725SJosh Poimboeufa9: TEST rAX,Iz
221d046b725SJosh Poimboeufaa: STOS/B Yb,AL
222d046b725SJosh Poimboeufab: STOS/W/D/Q Yv,rAX
223d046b725SJosh Poimboeufac: LODS/B AL,Xb
224d046b725SJosh Poimboeufad: LODS/W/D/Q rAX,Xv
225d046b725SJosh Poimboeufae: SCAS/B AL,Yb
226d046b725SJosh Poimboeuf# Note: The May 2011 Intel manual shows Xv for the second parameter of the
227d046b725SJosh Poimboeuf# next instruction but Yv is correct
228d046b725SJosh Poimboeufaf: SCAS/W/D/Q rAX,Yv
229d046b725SJosh Poimboeuf# 0xb0 - 0xbf
230d046b725SJosh Poimboeufb0: MOV AL/R8L,Ib
231d046b725SJosh Poimboeufb1: MOV CL/R9L,Ib
232d046b725SJosh Poimboeufb2: MOV DL/R10L,Ib
233d046b725SJosh Poimboeufb3: MOV BL/R11L,Ib
234d046b725SJosh Poimboeufb4: MOV AH/R12L,Ib
235d046b725SJosh Poimboeufb5: MOV CH/R13L,Ib
236d046b725SJosh Poimboeufb6: MOV DH/R14L,Ib
237d046b725SJosh Poimboeufb7: MOV BH/R15L,Ib
238d046b725SJosh Poimboeufb8: MOV rAX/r8,Iv
239d046b725SJosh Poimboeufb9: MOV rCX/r9,Iv
240d046b725SJosh Poimboeufba: MOV rDX/r10,Iv
241d046b725SJosh Poimboeufbb: MOV rBX/r11,Iv
242d046b725SJosh Poimboeufbc: MOV rSP/r12,Iv
243d046b725SJosh Poimboeufbd: MOV rBP/r13,Iv
244d046b725SJosh Poimboeufbe: MOV rSI/r14,Iv
245d046b725SJosh Poimboeufbf: MOV rDI/r15,Iv
246d046b725SJosh Poimboeuf# 0xc0 - 0xcf
247d046b725SJosh Poimboeufc0: Grp2 Eb,Ib (1A)
248d046b725SJosh Poimboeufc1: Grp2 Ev,Ib (1A)
249d046b725SJosh Poimboeufc2: RETN Iw (f64)
250d046b725SJosh Poimboeufc3: RETN
251d046b725SJosh Poimboeufc4: LES Gz,Mp (i64) | VEX+2byte (Prefix)
252d046b725SJosh Poimboeufc5: LDS Gz,Mp (i64) | VEX+1byte (Prefix)
253d046b725SJosh Poimboeufc6: Grp11A Eb,Ib (1A)
254d046b725SJosh Poimboeufc7: Grp11B Ev,Iz (1A)
255d046b725SJosh Poimboeufc8: ENTER Iw,Ib
256d046b725SJosh Poimboeufc9: LEAVE (d64)
257d046b725SJosh Poimboeufca: RETF Iw
258d046b725SJosh Poimboeufcb: RETF
259d046b725SJosh Poimboeufcc: INT3
260d046b725SJosh Poimboeufcd: INT Ib
261d046b725SJosh Poimboeufce: INTO (i64)
262d046b725SJosh Poimboeufcf: IRET/D/Q
263d046b725SJosh Poimboeuf# 0xd0 - 0xdf
264d046b725SJosh Poimboeufd0: Grp2 Eb,1 (1A)
265d046b725SJosh Poimboeufd1: Grp2 Ev,1 (1A)
266d046b725SJosh Poimboeufd2: Grp2 Eb,CL (1A)
267d046b725SJosh Poimboeufd3: Grp2 Ev,CL (1A)
268d046b725SJosh Poimboeufd4: AAM Ib (i64)
269d046b725SJosh Poimboeufd5: AAD Ib (i64)
270d046b725SJosh Poimboeufd6:
271d046b725SJosh Poimboeufd7: XLAT/XLATB
272d046b725SJosh Poimboeufd8: ESC
273d046b725SJosh Poimboeufd9: ESC
274d046b725SJosh Poimboeufda: ESC
275d046b725SJosh Poimboeufdb: ESC
276d046b725SJosh Poimboeufdc: ESC
277d046b725SJosh Poimboeufdd: ESC
278d046b725SJosh Poimboeufde: ESC
279d046b725SJosh Poimboeufdf: ESC
280d046b725SJosh Poimboeuf# 0xe0 - 0xef
281d046b725SJosh Poimboeuf# Note: "forced64" is Intel CPU behavior: they ignore 0x66 prefix
282d046b725SJosh Poimboeuf# in 64-bit mode. AMD CPUs accept 0x66 prefix, it causes RIP truncation
283d046b725SJosh Poimboeuf# to 16 bits. In 32-bit mode, 0x66 is accepted by both Intel and AMD.
284d046b725SJosh Poimboeufe0: LOOPNE/LOOPNZ Jb (f64)
285d046b725SJosh Poimboeufe1: LOOPE/LOOPZ Jb (f64)
286d046b725SJosh Poimboeufe2: LOOP Jb (f64)
287d046b725SJosh Poimboeufe3: JrCXZ Jb (f64)
288d046b725SJosh Poimboeufe4: IN AL,Ib
289d046b725SJosh Poimboeufe5: IN eAX,Ib
290d046b725SJosh Poimboeufe6: OUT Ib,AL
291d046b725SJosh Poimboeufe7: OUT Ib,eAX
292d046b725SJosh Poimboeuf# With 0x66 prefix in 64-bit mode, for AMD CPUs immediate offset
293d046b725SJosh Poimboeuf# in "near" jumps and calls is 16-bit. For CALL,
294d046b725SJosh Poimboeuf# push of return address is 16-bit wide, RSP is decremented by 2
295d046b725SJosh Poimboeuf# but is not truncated to 16 bits, unlike RIP.
296d046b725SJosh Poimboeufe8: CALL Jz (f64)
297d046b725SJosh Poimboeufe9: JMP-near Jz (f64)
298d046b725SJosh Poimboeufea: JMP-far Ap (i64)
299d046b725SJosh Poimboeufeb: JMP-short Jb (f64)
300d046b725SJosh Poimboeufec: IN AL,DX
301d046b725SJosh Poimboeufed: IN eAX,DX
302d046b725SJosh Poimboeufee: OUT DX,AL
303d046b725SJosh Poimboeufef: OUT DX,eAX
304d046b725SJosh Poimboeuf# 0xf0 - 0xff
305d046b725SJosh Poimboeuff0: LOCK (Prefix)
306d046b725SJosh Poimboeuff1:
307d046b725SJosh Poimboeuff2: REPNE (Prefix) | XACQUIRE (Prefix)
308d046b725SJosh Poimboeuff3: REP/REPE (Prefix) | XRELEASE (Prefix)
309d046b725SJosh Poimboeuff4: HLT
310d046b725SJosh Poimboeuff5: CMC
311d046b725SJosh Poimboeuff6: Grp3_1 Eb (1A)
312d046b725SJosh Poimboeuff7: Grp3_2 Ev (1A)
313d046b725SJosh Poimboeuff8: CLC
314d046b725SJosh Poimboeuff9: STC
315d046b725SJosh Poimboeuffa: CLI
316d046b725SJosh Poimboeuffb: STI
317d046b725SJosh Poimboeuffc: CLD
318d046b725SJosh Poimboeuffd: STD
319d046b725SJosh Poimboeuffe: Grp4 (1A)
320d046b725SJosh Poimboeufff: Grp5 (1A)
321d046b725SJosh PoimboeufEndTable
322d046b725SJosh Poimboeuf
323d046b725SJosh PoimboeufTable: 2-byte opcode (0x0f)
324d046b725SJosh PoimboeufReferrer: 2-byte escape
325d046b725SJosh PoimboeufAVXcode: 1
326d046b725SJosh Poimboeuf# 0x0f 0x00-0x0f
327d046b725SJosh Poimboeuf00: Grp6 (1A)
328d046b725SJosh Poimboeuf01: Grp7 (1A)
329d046b725SJosh Poimboeuf02: LAR Gv,Ew
330d046b725SJosh Poimboeuf03: LSL Gv,Ew
331d046b725SJosh Poimboeuf04:
332d046b725SJosh Poimboeuf05: SYSCALL (o64)
333d046b725SJosh Poimboeuf06: CLTS
334d046b725SJosh Poimboeuf07: SYSRET (o64)
335d046b725SJosh Poimboeuf08: INVD
336b980be18SAdrian Hunter09: WBINVD | WBNOINVD (F3)
337d046b725SJosh Poimboeuf0a:
338d046b725SJosh Poimboeuf0b: UD2 (1B)
339d046b725SJosh Poimboeuf0c:
340d046b725SJosh Poimboeuf# AMD's prefetch group. Intel supports prefetchw(/1) only.
341d046b725SJosh Poimboeuf0d: GrpP
342d046b725SJosh Poimboeuf0e: FEMMS
343d046b725SJosh Poimboeuf# 3DNow! uses the last imm byte as opcode extension.
344d046b725SJosh Poimboeuf0f: 3DNow! Pq,Qq,Ib
345d046b725SJosh Poimboeuf# 0x0f 0x10-0x1f
346d046b725SJosh Poimboeuf# NOTE: According to Intel SDM opcode map, vmovups and vmovupd has no operands
347d046b725SJosh Poimboeuf# but it actually has operands. And also, vmovss and vmovsd only accept 128bit.
348d046b725SJosh Poimboeuf# MOVSS/MOVSD has too many forms(3) on SDM. This map just shows a typical form.
349d046b725SJosh Poimboeuf# Many AVX instructions lack v1 superscript, according to Intel AVX-Prgramming
350d046b725SJosh Poimboeuf# Reference A.1
351d046b725SJosh Poimboeuf10: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1)
352d046b725SJosh Poimboeuf11: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(v1)
353d046b725SJosh Poimboeuf12: vmovlps Vq,Hq,Mq (v1) | vmovhlps Vq,Hq,Uq (v1) | vmovlpd Vq,Hq,Mq (66),(v1) | vmovsldup Vx,Wx (F3) | vmovddup Vx,Wx (F2)
354d046b725SJosh Poimboeuf13: vmovlps Mq,Vq (v1) | vmovlpd Mq,Vq (66),(v1)
355d046b725SJosh Poimboeuf14: vunpcklps Vx,Hx,Wx | vunpcklpd Vx,Hx,Wx (66)
356d046b725SJosh Poimboeuf15: vunpckhps Vx,Hx,Wx | vunpckhpd Vx,Hx,Wx (66)
357d046b725SJosh Poimboeuf16: vmovhps Vdq,Hq,Mq (v1) | vmovlhps Vdq,Hq,Uq (v1) | vmovhpd Vdq,Hq,Mq (66),(v1) | vmovshdup Vx,Wx (F3)
358d046b725SJosh Poimboeuf17: vmovhps Mq,Vq (v1) | vmovhpd Mq,Vq (66),(v1)
359d046b725SJosh Poimboeuf18: Grp16 (1A)
360d046b725SJosh Poimboeuf19:
361d046b725SJosh Poimboeuf# Intel SDM opcode map does not list MPX instructions. For now using Gv for
362d046b725SJosh Poimboeuf# bnd registers and Ev for everything else is OK because the instruction
363d046b725SJosh Poimboeuf# decoder does not use the information except as an indication that there is
364d046b725SJosh Poimboeuf# a ModR/M byte.
365d046b725SJosh Poimboeuf1a: BNDCL Gv,Ev (F3) | BNDCU Gv,Ev (F2) | BNDMOV Gv,Ev (66) | BNDLDX Gv,Ev
366d046b725SJosh Poimboeuf1b: BNDCN Gv,Ev (F2) | BNDMOV Ev,Gv (66) | BNDMK Gv,Ev (F3) | BNDSTX Ev,Gv
367b980be18SAdrian Hunter1c: Grp20 (1A),(1C)
368d046b725SJosh Poimboeuf1d:
3695790921bSYu-cheng Yu1e: Grp21 (1A)
370d046b725SJosh Poimboeuf1f: NOP Ev
371d046b725SJosh Poimboeuf# 0x0f 0x20-0x2f
372d046b725SJosh Poimboeuf20: MOV Rd,Cd
373d046b725SJosh Poimboeuf21: MOV Rd,Dd
374d046b725SJosh Poimboeuf22: MOV Cd,Rd
375d046b725SJosh Poimboeuf23: MOV Dd,Rd
376d046b725SJosh Poimboeuf24:
377d046b725SJosh Poimboeuf25:
378d046b725SJosh Poimboeuf26:
379d046b725SJosh Poimboeuf27:
380d046b725SJosh Poimboeuf28: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66)
381d046b725SJosh Poimboeuf29: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66)
382d046b725SJosh Poimboeuf2a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,Ey (F2),(v1)
383d046b725SJosh Poimboeuf2b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66)
384d046b725SJosh Poimboeuf2c: cvttps2pi Ppi,Wps | cvttpd2pi Ppi,Wpd (66) | vcvttss2si Gy,Wss (F3),(v1) | vcvttsd2si Gy,Wsd (F2),(v1)
385d046b725SJosh Poimboeuf2d: cvtps2pi Ppi,Wps | cvtpd2pi Qpi,Wpd (66) | vcvtss2si Gy,Wss (F3),(v1) | vcvtsd2si Gy,Wsd (F2),(v1)
386d046b725SJosh Poimboeuf2e: vucomiss Vss,Wss (v1) | vucomisd  Vsd,Wsd (66),(v1)
387d046b725SJosh Poimboeuf2f: vcomiss Vss,Wss (v1) | vcomisd  Vsd,Wsd (66),(v1)
388d046b725SJosh Poimboeuf# 0x0f 0x30-0x3f
389d046b725SJosh Poimboeuf30: WRMSR
390d046b725SJosh Poimboeuf31: RDTSC
391d046b725SJosh Poimboeuf32: RDMSR
392d046b725SJosh Poimboeuf33: RDPMC
393d046b725SJosh Poimboeuf34: SYSENTER
394d046b725SJosh Poimboeuf35: SYSEXIT
395d046b725SJosh Poimboeuf36:
396d046b725SJosh Poimboeuf37: GETSEC
397d046b725SJosh Poimboeuf38: escape # 3-byte escape 1
398d046b725SJosh Poimboeuf39:
399d046b725SJosh Poimboeuf3a: escape # 3-byte escape 2
400d046b725SJosh Poimboeuf3b:
401d046b725SJosh Poimboeuf3c:
402d046b725SJosh Poimboeuf3d:
403d046b725SJosh Poimboeuf3e:
404d046b725SJosh Poimboeuf3f:
405d046b725SJosh Poimboeuf# 0x0f 0x40-0x4f
406d046b725SJosh Poimboeuf40: CMOVO Gv,Ev
407d046b725SJosh Poimboeuf41: CMOVNO Gv,Ev | kandw/q Vk,Hk,Uk | kandb/d Vk,Hk,Uk (66)
408d046b725SJosh Poimboeuf42: CMOVB/C/NAE Gv,Ev | kandnw/q Vk,Hk,Uk | kandnb/d Vk,Hk,Uk (66)
409d046b725SJosh Poimboeuf43: CMOVAE/NB/NC Gv,Ev
410d046b725SJosh Poimboeuf44: CMOVE/Z Gv,Ev | knotw/q Vk,Uk | knotb/d Vk,Uk (66)
411d046b725SJosh Poimboeuf45: CMOVNE/NZ Gv,Ev | korw/q Vk,Hk,Uk | korb/d Vk,Hk,Uk (66)
412d046b725SJosh Poimboeuf46: CMOVBE/NA Gv,Ev | kxnorw/q Vk,Hk,Uk | kxnorb/d Vk,Hk,Uk (66)
413d046b725SJosh Poimboeuf47: CMOVA/NBE Gv,Ev | kxorw/q Vk,Hk,Uk | kxorb/d Vk,Hk,Uk (66)
414d046b725SJosh Poimboeuf48: CMOVS Gv,Ev
415d046b725SJosh Poimboeuf49: CMOVNS Gv,Ev
416d046b725SJosh Poimboeuf4a: CMOVP/PE Gv,Ev | kaddw/q Vk,Hk,Uk | kaddb/d Vk,Hk,Uk (66)
417d046b725SJosh Poimboeuf4b: CMOVNP/PO Gv,Ev | kunpckbw Vk,Hk,Uk (66) | kunpckwd/dq Vk,Hk,Uk
418d046b725SJosh Poimboeuf4c: CMOVL/NGE Gv,Ev
419d046b725SJosh Poimboeuf4d: CMOVNL/GE Gv,Ev
420d046b725SJosh Poimboeuf4e: CMOVLE/NG Gv,Ev
421d046b725SJosh Poimboeuf4f: CMOVNLE/G Gv,Ev
422d046b725SJosh Poimboeuf# 0x0f 0x50-0x5f
423d046b725SJosh Poimboeuf50: vmovmskps Gy,Ups | vmovmskpd Gy,Upd (66)
424d046b725SJosh Poimboeuf51: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F2),(v1)
425d046b725SJosh Poimboeuf52: vrsqrtps Vps,Wps | vrsqrtss Vss,Hss,Wss (F3),(v1)
426d046b725SJosh Poimboeuf53: vrcpps Vps,Wps | vrcpss Vss,Hss,Wss (F3),(v1)
427d046b725SJosh Poimboeuf54: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66)
428d046b725SJosh Poimboeuf55: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66)
429d046b725SJosh Poimboeuf56: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66)
430d046b725SJosh Poimboeuf57: vxorps Vps,Hps,Wps | vxorpd Vpd,Hpd,Wpd (66)
431d046b725SJosh Poimboeuf58: vaddps Vps,Hps,Wps | vaddpd Vpd,Hpd,Wpd (66) | vaddss Vss,Hss,Wss (F3),(v1) | vaddsd Vsd,Hsd,Wsd (F2),(v1)
432d046b725SJosh Poimboeuf59: vmulps Vps,Hps,Wps | vmulpd Vpd,Hpd,Wpd (66) | vmulss Vss,Hss,Wss (F3),(v1) | vmulsd Vsd,Hsd,Wsd (F2),(v1)
433d046b725SJosh Poimboeuf5a: vcvtps2pd Vpd,Wps | vcvtpd2ps Vps,Wpd (66) | vcvtss2sd Vsd,Hx,Wss (F3),(v1) | vcvtsd2ss Vss,Hx,Wsd (F2),(v1)
434d046b725SJosh Poimboeuf5b: vcvtdq2ps Vps,Wdq | vcvtqq2ps Vps,Wqq (evo) | vcvtps2dq Vdq,Wps (66) | vcvttps2dq Vdq,Wps (F3)
435d046b725SJosh Poimboeuf5c: vsubps Vps,Hps,Wps | vsubpd Vpd,Hpd,Wpd (66) | vsubss Vss,Hss,Wss (F3),(v1) | vsubsd Vsd,Hsd,Wsd (F2),(v1)
436d046b725SJosh Poimboeuf5d: vminps Vps,Hps,Wps | vminpd Vpd,Hpd,Wpd (66) | vminss Vss,Hss,Wss (F3),(v1) | vminsd Vsd,Hsd,Wsd (F2),(v1)
437d046b725SJosh Poimboeuf5e: vdivps Vps,Hps,Wps | vdivpd Vpd,Hpd,Wpd (66) | vdivss Vss,Hss,Wss (F3),(v1) | vdivsd Vsd,Hsd,Wsd (F2),(v1)
438d046b725SJosh Poimboeuf5f: vmaxps Vps,Hps,Wps | vmaxpd Vpd,Hpd,Wpd (66) | vmaxss Vss,Hss,Wss (F3),(v1) | vmaxsd Vsd,Hsd,Wsd (F2),(v1)
439d046b725SJosh Poimboeuf# 0x0f 0x60-0x6f
440d046b725SJosh Poimboeuf60: punpcklbw Pq,Qd | vpunpcklbw Vx,Hx,Wx (66),(v1)
441d046b725SJosh Poimboeuf61: punpcklwd Pq,Qd | vpunpcklwd Vx,Hx,Wx (66),(v1)
442d046b725SJosh Poimboeuf62: punpckldq Pq,Qd | vpunpckldq Vx,Hx,Wx (66),(v1)
443d046b725SJosh Poimboeuf63: packsswb Pq,Qq | vpacksswb Vx,Hx,Wx (66),(v1)
444d046b725SJosh Poimboeuf64: pcmpgtb Pq,Qq | vpcmpgtb Vx,Hx,Wx (66),(v1)
445d046b725SJosh Poimboeuf65: pcmpgtw Pq,Qq | vpcmpgtw Vx,Hx,Wx (66),(v1)
446d046b725SJosh Poimboeuf66: pcmpgtd Pq,Qq | vpcmpgtd Vx,Hx,Wx (66),(v1)
447d046b725SJosh Poimboeuf67: packuswb Pq,Qq | vpackuswb Vx,Hx,Wx (66),(v1)
448d046b725SJosh Poimboeuf68: punpckhbw Pq,Qd | vpunpckhbw Vx,Hx,Wx (66),(v1)
449d046b725SJosh Poimboeuf69: punpckhwd Pq,Qd | vpunpckhwd Vx,Hx,Wx (66),(v1)
450d046b725SJosh Poimboeuf6a: punpckhdq Pq,Qd | vpunpckhdq Vx,Hx,Wx (66),(v1)
451d046b725SJosh Poimboeuf6b: packssdw Pq,Qd | vpackssdw Vx,Hx,Wx (66),(v1)
452d046b725SJosh Poimboeuf6c: vpunpcklqdq Vx,Hx,Wx (66),(v1)
453d046b725SJosh Poimboeuf6d: vpunpckhqdq Vx,Hx,Wx (66),(v1)
454d046b725SJosh Poimboeuf6e: movd/q Pd,Ey | vmovd/q Vy,Ey (66),(v1)
455d046b725SJosh Poimboeuf6f: 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)
456d046b725SJosh Poimboeuf# 0x0f 0x70-0x7f
457d046b725SJosh Poimboeuf70: pshufw Pq,Qq,Ib | vpshufd Vx,Wx,Ib (66),(v1) | vpshufhw Vx,Wx,Ib (F3),(v1) | vpshuflw Vx,Wx,Ib (F2),(v1)
458d046b725SJosh Poimboeuf71: Grp12 (1A)
459d046b725SJosh Poimboeuf72: Grp13 (1A)
460d046b725SJosh Poimboeuf73: Grp14 (1A)
461d046b725SJosh Poimboeuf74: pcmpeqb Pq,Qq | vpcmpeqb Vx,Hx,Wx (66),(v1)
462d046b725SJosh Poimboeuf75: pcmpeqw Pq,Qq | vpcmpeqw Vx,Hx,Wx (66),(v1)
463d046b725SJosh Poimboeuf76: pcmpeqd Pq,Qq | vpcmpeqd Vx,Hx,Wx (66),(v1)
464d046b725SJosh Poimboeuf# Note: Remove (v), because vzeroall and vzeroupper becomes emms without VEX.
465d046b725SJosh Poimboeuf77: emms | vzeroupper | vzeroall
466d046b725SJosh Poimboeuf78: VMREAD Ey,Gy | vcvttps2udq/pd2udq Vx,Wpd (evo) | vcvttsd2usi Gv,Wx (F2),(ev) | vcvttss2usi Gv,Wx (F3),(ev) | vcvttps2uqq/pd2uqq Vx,Wx (66),(ev)
467d046b725SJosh Poimboeuf79: VMWRITE Gy,Ey | vcvtps2udq/pd2udq Vx,Wpd (evo) | vcvtsd2usi Gv,Wx (F2),(ev) | vcvtss2usi Gv,Wx (F3),(ev) | vcvtps2uqq/pd2uqq Vx,Wx (66),(ev)
468d046b725SJosh Poimboeuf7a: vcvtudq2pd/uqq2pd Vpd,Wx (F3),(ev) | vcvtudq2ps/uqq2ps Vpd,Wx (F2),(ev) | vcvttps2qq/pd2qq Vx,Wx (66),(ev)
469d046b725SJosh Poimboeuf7b: vcvtusi2sd Vpd,Hpd,Ev (F2),(ev) | vcvtusi2ss Vps,Hps,Ev (F3),(ev) | vcvtps2qq/pd2qq Vx,Wx (66),(ev)
470d046b725SJosh Poimboeuf7c: vhaddpd Vpd,Hpd,Wpd (66) | vhaddps Vps,Hps,Wps (F2)
471d046b725SJosh Poimboeuf7d: vhsubpd Vpd,Hpd,Wpd (66) | vhsubps Vps,Hps,Wps (F2)
472d046b725SJosh Poimboeuf7e: movd/q Ey,Pd | vmovd/q Ey,Vy (66),(v1) | vmovq Vq,Wq (F3),(v1)
473d046b725SJosh Poimboeuf7f: 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)
474d046b725SJosh Poimboeuf# 0x0f 0x80-0x8f
475d046b725SJosh Poimboeuf# Note: "forced64" is Intel CPU behavior (see comment about CALL insn).
476d046b725SJosh Poimboeuf80: JO Jz (f64)
477d046b725SJosh Poimboeuf81: JNO Jz (f64)
478d046b725SJosh Poimboeuf82: JB/JC/JNAE Jz (f64)
479d046b725SJosh Poimboeuf83: JAE/JNB/JNC Jz (f64)
480d046b725SJosh Poimboeuf84: JE/JZ Jz (f64)
481d046b725SJosh Poimboeuf85: JNE/JNZ Jz (f64)
482d046b725SJosh Poimboeuf86: JBE/JNA Jz (f64)
483d046b725SJosh Poimboeuf87: JA/JNBE Jz (f64)
484d046b725SJosh Poimboeuf88: JS Jz (f64)
485d046b725SJosh Poimboeuf89: JNS Jz (f64)
486d046b725SJosh Poimboeuf8a: JP/JPE Jz (f64)
487d046b725SJosh Poimboeuf8b: JNP/JPO Jz (f64)
488d046b725SJosh Poimboeuf8c: JL/JNGE Jz (f64)
489d046b725SJosh Poimboeuf8d: JNL/JGE Jz (f64)
490d046b725SJosh Poimboeuf8e: JLE/JNG Jz (f64)
491d046b725SJosh Poimboeuf8f: JNLE/JG Jz (f64)
492d046b725SJosh Poimboeuf# 0x0f 0x90-0x9f
493d046b725SJosh Poimboeuf90: SETO Eb | kmovw/q Vk,Wk | kmovb/d Vk,Wk (66)
494d046b725SJosh Poimboeuf91: SETNO Eb | kmovw/q Mv,Vk | kmovb/d Mv,Vk (66)
495d046b725SJosh Poimboeuf92: SETB/C/NAE Eb | kmovw Vk,Rv | kmovb Vk,Rv (66) | kmovq/d Vk,Rv (F2)
496d046b725SJosh Poimboeuf93: SETAE/NB/NC Eb | kmovw Gv,Uk | kmovb Gv,Uk (66) | kmovq/d Gv,Uk (F2)
497d046b725SJosh Poimboeuf94: SETE/Z Eb
498d046b725SJosh Poimboeuf95: SETNE/NZ Eb
499d046b725SJosh Poimboeuf96: SETBE/NA Eb
500d046b725SJosh Poimboeuf97: SETA/NBE Eb
501d046b725SJosh Poimboeuf98: SETS Eb | kortestw/q Vk,Uk | kortestb/d Vk,Uk (66)
502d046b725SJosh Poimboeuf99: SETNS Eb | ktestw/q Vk,Uk | ktestb/d Vk,Uk (66)
503d046b725SJosh Poimboeuf9a: SETP/PE Eb
504d046b725SJosh Poimboeuf9b: SETNP/PO Eb
505d046b725SJosh Poimboeuf9c: SETL/NGE Eb
506d046b725SJosh Poimboeuf9d: SETNL/GE Eb
507d046b725SJosh Poimboeuf9e: SETLE/NG Eb
508d046b725SJosh Poimboeuf9f: SETNLE/G Eb
509d046b725SJosh Poimboeuf# 0x0f 0xa0-0xaf
510d046b725SJosh Poimboeufa0: PUSH FS (d64)
511d046b725SJosh Poimboeufa1: POP FS (d64)
512d046b725SJosh Poimboeufa2: CPUID
513d046b725SJosh Poimboeufa3: BT Ev,Gv
514d046b725SJosh Poimboeufa4: SHLD Ev,Gv,Ib
515d046b725SJosh Poimboeufa5: SHLD Ev,Gv,CL
516d046b725SJosh Poimboeufa6: GrpPDLK
517d046b725SJosh Poimboeufa7: GrpRNG
518d046b725SJosh Poimboeufa8: PUSH GS (d64)
519d046b725SJosh Poimboeufa9: POP GS (d64)
520d046b725SJosh Poimboeufaa: RSM
521d046b725SJosh Poimboeufab: BTS Ev,Gv
522d046b725SJosh Poimboeufac: SHRD Ev,Gv,Ib
523d046b725SJosh Poimboeufad: SHRD Ev,Gv,CL
524d046b725SJosh Poimboeufae: Grp15 (1A),(1C)
525d046b725SJosh Poimboeufaf: IMUL Gv,Ev
526d046b725SJosh Poimboeuf# 0x0f 0xb0-0xbf
527d046b725SJosh Poimboeufb0: CMPXCHG Eb,Gb
528d046b725SJosh Poimboeufb1: CMPXCHG Ev,Gv
529d046b725SJosh Poimboeufb2: LSS Gv,Mp
530d046b725SJosh Poimboeufb3: BTR Ev,Gv
531d046b725SJosh Poimboeufb4: LFS Gv,Mp
532d046b725SJosh Poimboeufb5: LGS Gv,Mp
533d046b725SJosh Poimboeufb6: MOVZX Gv,Eb
534d046b725SJosh Poimboeufb7: MOVZX Gv,Ew
535d046b725SJosh Poimboeufb8: JMPE (!F3) | POPCNT Gv,Ev (F3)
536d046b725SJosh Poimboeufb9: Grp10 (1A)
537d046b725SJosh Poimboeufba: Grp8 Ev,Ib (1A)
538d046b725SJosh Poimboeufbb: BTC Ev,Gv
539d046b725SJosh Poimboeufbc: BSF Gv,Ev (!F3) | TZCNT Gv,Ev (F3)
540d046b725SJosh Poimboeufbd: BSR Gv,Ev (!F3) | LZCNT Gv,Ev (F3)
541d046b725SJosh Poimboeufbe: MOVSX Gv,Eb
542d046b725SJosh Poimboeufbf: MOVSX Gv,Ew
543d046b725SJosh Poimboeuf# 0x0f 0xc0-0xcf
544d046b725SJosh Poimboeufc0: XADD Eb,Gb
545d046b725SJosh Poimboeufc1: XADD Ev,Gv
546d046b725SJosh Poimboeufc2: 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)
547d046b725SJosh Poimboeufc3: movnti My,Gy
548d046b725SJosh Poimboeufc4: pinsrw Pq,Ry/Mw,Ib | vpinsrw Vdq,Hdq,Ry/Mw,Ib (66),(v1)
549d046b725SJosh Poimboeufc5: pextrw Gd,Nq,Ib | vpextrw Gd,Udq,Ib (66),(v1)
550d046b725SJosh Poimboeufc6: vshufps Vps,Hps,Wps,Ib | vshufpd Vpd,Hpd,Wpd,Ib (66)
551d046b725SJosh Poimboeufc7: Grp9 (1A)
552d046b725SJosh Poimboeufc8: BSWAP RAX/EAX/R8/R8D
553d046b725SJosh Poimboeufc9: BSWAP RCX/ECX/R9/R9D
554d046b725SJosh Poimboeufca: BSWAP RDX/EDX/R10/R10D
555d046b725SJosh Poimboeufcb: BSWAP RBX/EBX/R11/R11D
556d046b725SJosh Poimboeufcc: BSWAP RSP/ESP/R12/R12D
557d046b725SJosh Poimboeufcd: BSWAP RBP/EBP/R13/R13D
558d046b725SJosh Poimboeufce: BSWAP RSI/ESI/R14/R14D
559d046b725SJosh Poimboeufcf: BSWAP RDI/EDI/R15/R15D
560d046b725SJosh Poimboeuf# 0x0f 0xd0-0xdf
561d046b725SJosh Poimboeufd0: vaddsubpd Vpd,Hpd,Wpd (66) | vaddsubps Vps,Hps,Wps (F2)
562d046b725SJosh Poimboeufd1: psrlw Pq,Qq | vpsrlw Vx,Hx,Wx (66),(v1)
563d046b725SJosh Poimboeufd2: psrld Pq,Qq | vpsrld Vx,Hx,Wx (66),(v1)
564d046b725SJosh Poimboeufd3: psrlq Pq,Qq | vpsrlq Vx,Hx,Wx (66),(v1)
565d046b725SJosh Poimboeufd4: paddq Pq,Qq | vpaddq Vx,Hx,Wx (66),(v1)
566d046b725SJosh Poimboeufd5: pmullw Pq,Qq | vpmullw Vx,Hx,Wx (66),(v1)
567d046b725SJosh Poimboeufd6: vmovq Wq,Vq (66),(v1) | movq2dq Vdq,Nq (F3) | movdq2q Pq,Uq (F2)
568d046b725SJosh Poimboeufd7: pmovmskb Gd,Nq | vpmovmskb Gd,Ux (66),(v1)
569d046b725SJosh Poimboeufd8: psubusb Pq,Qq | vpsubusb Vx,Hx,Wx (66),(v1)
570d046b725SJosh Poimboeufd9: psubusw Pq,Qq | vpsubusw Vx,Hx,Wx (66),(v1)
571d046b725SJosh Poimboeufda: pminub Pq,Qq | vpminub Vx,Hx,Wx (66),(v1)
572d046b725SJosh Poimboeufdb: pand Pq,Qq | vpand Vx,Hx,Wx (66),(v1) | vpandd/q Vx,Hx,Wx (66),(evo)
573d046b725SJosh Poimboeufdc: paddusb Pq,Qq | vpaddusb Vx,Hx,Wx (66),(v1)
574d046b725SJosh Poimboeufdd: paddusw Pq,Qq | vpaddusw Vx,Hx,Wx (66),(v1)
575d046b725SJosh Poimboeufde: pmaxub Pq,Qq | vpmaxub Vx,Hx,Wx (66),(v1)
576d046b725SJosh Poimboeufdf: pandn Pq,Qq | vpandn Vx,Hx,Wx (66),(v1) | vpandnd/q Vx,Hx,Wx (66),(evo)
577d046b725SJosh Poimboeuf# 0x0f 0xe0-0xef
578d046b725SJosh Poimboeufe0: pavgb Pq,Qq | vpavgb Vx,Hx,Wx (66),(v1)
579d046b725SJosh Poimboeufe1: psraw Pq,Qq | vpsraw Vx,Hx,Wx (66),(v1)
580d046b725SJosh Poimboeufe2: psrad Pq,Qq | vpsrad Vx,Hx,Wx (66),(v1)
581d046b725SJosh Poimboeufe3: pavgw Pq,Qq | vpavgw Vx,Hx,Wx (66),(v1)
582d046b725SJosh Poimboeufe4: pmulhuw Pq,Qq | vpmulhuw Vx,Hx,Wx (66),(v1)
583d046b725SJosh Poimboeufe5: pmulhw Pq,Qq | vpmulhw Vx,Hx,Wx (66),(v1)
584d046b725SJosh Poimboeufe6: vcvttpd2dq Vx,Wpd (66) | vcvtdq2pd Vx,Wdq (F3) | vcvtdq2pd/qq2pd Vx,Wdq (F3),(evo) | vcvtpd2dq Vx,Wpd (F2)
585d046b725SJosh Poimboeufe7: movntq Mq,Pq | vmovntdq Mx,Vx (66)
586d046b725SJosh Poimboeufe8: psubsb Pq,Qq | vpsubsb Vx,Hx,Wx (66),(v1)
587d046b725SJosh Poimboeufe9: psubsw Pq,Qq | vpsubsw Vx,Hx,Wx (66),(v1)
588d046b725SJosh Poimboeufea: pminsw Pq,Qq | vpminsw Vx,Hx,Wx (66),(v1)
589d046b725SJosh Poimboeufeb: por Pq,Qq | vpor Vx,Hx,Wx (66),(v1) | vpord/q Vx,Hx,Wx (66),(evo)
590d046b725SJosh Poimboeufec: paddsb Pq,Qq | vpaddsb Vx,Hx,Wx (66),(v1)
591d046b725SJosh Poimboeufed: paddsw Pq,Qq | vpaddsw Vx,Hx,Wx (66),(v1)
592d046b725SJosh Poimboeufee: pmaxsw Pq,Qq | vpmaxsw Vx,Hx,Wx (66),(v1)
593d046b725SJosh Poimboeufef: pxor Pq,Qq | vpxor Vx,Hx,Wx (66),(v1) | vpxord/q Vx,Hx,Wx (66),(evo)
594d046b725SJosh Poimboeuf# 0x0f 0xf0-0xff
595d046b725SJosh Poimboeuff0: vlddqu Vx,Mx (F2)
596d046b725SJosh Poimboeuff1: psllw Pq,Qq | vpsllw Vx,Hx,Wx (66),(v1)
597d046b725SJosh Poimboeuff2: pslld Pq,Qq | vpslld Vx,Hx,Wx (66),(v1)
598d046b725SJosh Poimboeuff3: psllq Pq,Qq | vpsllq Vx,Hx,Wx (66),(v1)
599d046b725SJosh Poimboeuff4: pmuludq Pq,Qq | vpmuludq Vx,Hx,Wx (66),(v1)
600d046b725SJosh Poimboeuff5: pmaddwd Pq,Qq | vpmaddwd Vx,Hx,Wx (66),(v1)
601d046b725SJosh Poimboeuff6: psadbw Pq,Qq | vpsadbw Vx,Hx,Wx (66),(v1)
602d046b725SJosh Poimboeuff7: maskmovq Pq,Nq | vmaskmovdqu Vx,Ux (66),(v1)
603d046b725SJosh Poimboeuff8: psubb Pq,Qq | vpsubb Vx,Hx,Wx (66),(v1)
604d046b725SJosh Poimboeuff9: psubw Pq,Qq | vpsubw Vx,Hx,Wx (66),(v1)
605d046b725SJosh Poimboeuffa: psubd Pq,Qq | vpsubd Vx,Hx,Wx (66),(v1)
606d046b725SJosh Poimboeuffb: psubq Pq,Qq | vpsubq Vx,Hx,Wx (66),(v1)
607d046b725SJosh Poimboeuffc: paddb Pq,Qq | vpaddb Vx,Hx,Wx (66),(v1)
608d046b725SJosh Poimboeuffd: paddw Pq,Qq | vpaddw Vx,Hx,Wx (66),(v1)
609d046b725SJosh Poimboeuffe: paddd Pq,Qq | vpaddd Vx,Hx,Wx (66),(v1)
610d046b725SJosh Poimboeufff: UD0
611d046b725SJosh PoimboeufEndTable
612d046b725SJosh Poimboeuf
613d046b725SJosh PoimboeufTable: 3-byte opcode 1 (0x0f 0x38)
614d046b725SJosh PoimboeufReferrer: 3-byte escape 1
615d046b725SJosh PoimboeufAVXcode: 2
616d046b725SJosh Poimboeuf# 0x0f 0x38 0x00-0x0f
617d046b725SJosh Poimboeuf00: pshufb Pq,Qq | vpshufb Vx,Hx,Wx (66),(v1)
618d046b725SJosh Poimboeuf01: phaddw Pq,Qq | vphaddw Vx,Hx,Wx (66),(v1)
619d046b725SJosh Poimboeuf02: phaddd Pq,Qq | vphaddd Vx,Hx,Wx (66),(v1)
620d046b725SJosh Poimboeuf03: phaddsw Pq,Qq | vphaddsw Vx,Hx,Wx (66),(v1)
621d046b725SJosh Poimboeuf04: pmaddubsw Pq,Qq | vpmaddubsw Vx,Hx,Wx (66),(v1)
622d046b725SJosh Poimboeuf05: phsubw Pq,Qq | vphsubw Vx,Hx,Wx (66),(v1)
623d046b725SJosh Poimboeuf06: phsubd Pq,Qq | vphsubd Vx,Hx,Wx (66),(v1)
624d046b725SJosh Poimboeuf07: phsubsw Pq,Qq | vphsubsw Vx,Hx,Wx (66),(v1)
625d046b725SJosh Poimboeuf08: psignb Pq,Qq | vpsignb Vx,Hx,Wx (66),(v1)
626d046b725SJosh Poimboeuf09: psignw Pq,Qq | vpsignw Vx,Hx,Wx (66),(v1)
627d046b725SJosh Poimboeuf0a: psignd Pq,Qq | vpsignd Vx,Hx,Wx (66),(v1)
628d046b725SJosh Poimboeuf0b: pmulhrsw Pq,Qq | vpmulhrsw Vx,Hx,Wx (66),(v1)
629d046b725SJosh Poimboeuf0c: vpermilps Vx,Hx,Wx (66),(v)
630d046b725SJosh Poimboeuf0d: vpermilpd Vx,Hx,Wx (66),(v)
631d046b725SJosh Poimboeuf0e: vtestps Vx,Wx (66),(v)
632d046b725SJosh Poimboeuf0f: vtestpd Vx,Wx (66),(v)
633d046b725SJosh Poimboeuf# 0x0f 0x38 0x10-0x1f
634d046b725SJosh Poimboeuf10: pblendvb Vdq,Wdq (66) | vpsrlvw Vx,Hx,Wx (66),(evo) | vpmovuswb Wx,Vx (F3),(ev)
635d046b725SJosh Poimboeuf11: vpmovusdb Wx,Vd (F3),(ev) | vpsravw Vx,Hx,Wx (66),(ev)
636d046b725SJosh Poimboeuf12: vpmovusqb Wx,Vq (F3),(ev) | vpsllvw Vx,Hx,Wx (66),(ev)
637d046b725SJosh Poimboeuf13: vcvtph2ps Vx,Wx (66),(v) | vpmovusdw Wx,Vd (F3),(ev)
638d046b725SJosh Poimboeuf14: blendvps Vdq,Wdq (66) | vpmovusqw Wx,Vq (F3),(ev) | vprorvd/q Vx,Hx,Wx (66),(evo)
639d046b725SJosh Poimboeuf15: blendvpd Vdq,Wdq (66) | vpmovusqd Wx,Vq (F3),(ev) | vprolvd/q Vx,Hx,Wx (66),(evo)
640d046b725SJosh Poimboeuf16: vpermps Vqq,Hqq,Wqq (66),(v) | vpermps/d Vqq,Hqq,Wqq (66),(evo)
641d046b725SJosh Poimboeuf17: vptest Vx,Wx (66)
642d046b725SJosh Poimboeuf18: vbroadcastss Vx,Wd (66),(v)
643d046b725SJosh Poimboeuf19: vbroadcastsd Vqq,Wq (66),(v) | vbroadcastf32x2 Vqq,Wq (66),(evo)
644d046b725SJosh Poimboeuf1a: vbroadcastf128 Vqq,Mdq (66),(v) | vbroadcastf32x4/64x2 Vqq,Wq (66),(evo)
645d046b725SJosh Poimboeuf1b: vbroadcastf32x8/64x4 Vqq,Mdq (66),(ev)
646d046b725SJosh Poimboeuf1c: pabsb Pq,Qq | vpabsb Vx,Wx (66),(v1)
647d046b725SJosh Poimboeuf1d: pabsw Pq,Qq | vpabsw Vx,Wx (66),(v1)
648d046b725SJosh Poimboeuf1e: pabsd Pq,Qq | vpabsd Vx,Wx (66),(v1)
649d046b725SJosh Poimboeuf1f: vpabsq Vx,Wx (66),(ev)
650d046b725SJosh Poimboeuf# 0x0f 0x38 0x20-0x2f
651d046b725SJosh Poimboeuf20: vpmovsxbw Vx,Ux/Mq (66),(v1) | vpmovswb Wx,Vx (F3),(ev)
652d046b725SJosh Poimboeuf21: vpmovsxbd Vx,Ux/Md (66),(v1) | vpmovsdb Wx,Vd (F3),(ev)
653d046b725SJosh Poimboeuf22: vpmovsxbq Vx,Ux/Mw (66),(v1) | vpmovsqb Wx,Vq (F3),(ev)
654d046b725SJosh Poimboeuf23: vpmovsxwd Vx,Ux/Mq (66),(v1) | vpmovsdw Wx,Vd (F3),(ev)
655d046b725SJosh Poimboeuf24: vpmovsxwq Vx,Ux/Md (66),(v1) | vpmovsqw Wx,Vq (F3),(ev)
656d046b725SJosh Poimboeuf25: vpmovsxdq Vx,Ux/Mq (66),(v1) | vpmovsqd Wx,Vq (F3),(ev)
657d046b725SJosh Poimboeuf26: vptestmb/w Vk,Hx,Wx (66),(ev) | vptestnmb/w Vk,Hx,Wx (F3),(ev)
658d046b725SJosh Poimboeuf27: vptestmd/q Vk,Hx,Wx (66),(ev) | vptestnmd/q Vk,Hx,Wx (F3),(ev)
659d046b725SJosh Poimboeuf28: vpmuldq Vx,Hx,Wx (66),(v1) | vpmovm2b/w Vx,Uk (F3),(ev)
660d046b725SJosh Poimboeuf29: vpcmpeqq Vx,Hx,Wx (66),(v1) | vpmovb2m/w2m Vk,Ux (F3),(ev)
661d046b725SJosh Poimboeuf2a: vmovntdqa Vx,Mx (66),(v1) | vpbroadcastmb2q Vx,Uk (F3),(ev)
662d046b725SJosh Poimboeuf2b: vpackusdw Vx,Hx,Wx (66),(v1)
663d046b725SJosh Poimboeuf2c: vmaskmovps Vx,Hx,Mx (66),(v) | vscalefps/d Vx,Hx,Wx (66),(evo)
664d046b725SJosh Poimboeuf2d: vmaskmovpd Vx,Hx,Mx (66),(v) | vscalefss/d Vx,Hx,Wx (66),(evo)
665d046b725SJosh Poimboeuf2e: vmaskmovps Mx,Hx,Vx (66),(v)
666d046b725SJosh Poimboeuf2f: vmaskmovpd Mx,Hx,Vx (66),(v)
667d046b725SJosh Poimboeuf# 0x0f 0x38 0x30-0x3f
668d046b725SJosh Poimboeuf30: vpmovzxbw Vx,Ux/Mq (66),(v1) | vpmovwb Wx,Vx (F3),(ev)
669d046b725SJosh Poimboeuf31: vpmovzxbd Vx,Ux/Md (66),(v1) | vpmovdb Wx,Vd (F3),(ev)
670d046b725SJosh Poimboeuf32: vpmovzxbq Vx,Ux/Mw (66),(v1) | vpmovqb Wx,Vq (F3),(ev)
671d046b725SJosh Poimboeuf33: vpmovzxwd Vx,Ux/Mq (66),(v1) | vpmovdw Wx,Vd (F3),(ev)
672d046b725SJosh Poimboeuf34: vpmovzxwq Vx,Ux/Md (66),(v1) | vpmovqw Wx,Vq (F3),(ev)
673d046b725SJosh Poimboeuf35: vpmovzxdq Vx,Ux/Mq (66),(v1) | vpmovqd Wx,Vq (F3),(ev)
674d046b725SJosh Poimboeuf36: vpermd Vqq,Hqq,Wqq (66),(v) | vpermd/q Vqq,Hqq,Wqq (66),(evo)
675d046b725SJosh Poimboeuf37: vpcmpgtq Vx,Hx,Wx (66),(v1)
676d046b725SJosh Poimboeuf38: vpminsb Vx,Hx,Wx (66),(v1) | vpmovm2d/q Vx,Uk (F3),(ev)
677d046b725SJosh Poimboeuf39: vpminsd Vx,Hx,Wx (66),(v1) | vpminsd/q Vx,Hx,Wx (66),(evo) | vpmovd2m/q2m Vk,Ux (F3),(ev)
678d046b725SJosh Poimboeuf3a: vpminuw Vx,Hx,Wx (66),(v1) | vpbroadcastmw2d Vx,Uk (F3),(ev)
679d046b725SJosh Poimboeuf3b: vpminud Vx,Hx,Wx (66),(v1) | vpminud/q Vx,Hx,Wx (66),(evo)
680d046b725SJosh Poimboeuf3c: vpmaxsb Vx,Hx,Wx (66),(v1)
681d046b725SJosh Poimboeuf3d: vpmaxsd Vx,Hx,Wx (66),(v1) | vpmaxsd/q Vx,Hx,Wx (66),(evo)
682d046b725SJosh Poimboeuf3e: vpmaxuw Vx,Hx,Wx (66),(v1)
683d046b725SJosh Poimboeuf3f: vpmaxud Vx,Hx,Wx (66),(v1) | vpmaxud/q Vx,Hx,Wx (66),(evo)
684d046b725SJosh Poimboeuf# 0x0f 0x38 0x40-0x8f
685d046b725SJosh Poimboeuf40: vpmulld Vx,Hx,Wx (66),(v1) | vpmulld/q Vx,Hx,Wx (66),(evo)
686d046b725SJosh Poimboeuf41: vphminposuw Vdq,Wdq (66),(v1)
687d046b725SJosh Poimboeuf42: vgetexpps/d Vx,Wx (66),(ev)
688d046b725SJosh Poimboeuf43: vgetexpss/d Vx,Hx,Wx (66),(ev)
689d046b725SJosh Poimboeuf44: vplzcntd/q Vx,Wx (66),(ev)
690d046b725SJosh Poimboeuf45: vpsrlvd/q Vx,Hx,Wx (66),(v)
691d046b725SJosh Poimboeuf46: vpsravd Vx,Hx,Wx (66),(v) | vpsravd/q Vx,Hx,Wx (66),(evo)
692d046b725SJosh Poimboeuf47: vpsllvd/q Vx,Hx,Wx (66),(v)
6939dd94df7SAdrian Hunter# Skip 0x48
6949dd94df7SAdrian Hunter49: TILERELEASE (v1),(000),(11B) | LDTILECFG Mtc (v1)(000) | STTILECFG Mtc (66),(v1),(000) | TILEZERO Vt (F2),(v1),(11B)
6959dd94df7SAdrian Hunter# Skip 0x4a
6969dd94df7SAdrian Hunter4b: TILELOADD Vt,Wsm (F2),(v1) | TILELOADDT1 Vt,Wsm (66),(v1) | TILESTORED Wsm,Vt (F3),(v)
697d046b725SJosh Poimboeuf4c: vrcp14ps/d Vpd,Wpd (66),(ev)
698d046b725SJosh Poimboeuf4d: vrcp14ss/d Vsd,Hpd,Wsd (66),(ev)
699d046b725SJosh Poimboeuf4e: vrsqrt14ps/d Vpd,Wpd (66),(ev)
700d046b725SJosh Poimboeuf4f: vrsqrt14ss/d Vsd,Hsd,Wsd (66),(ev)
701*caaee1b8SAdrian Hunter50: vpdpbusd Vx,Hx,Wx (66)
702*caaee1b8SAdrian Hunter51: vpdpbusds Vx,Hx,Wx (66)
703*caaee1b8SAdrian Hunter52: vdpbf16ps Vx,Hx,Wx (F3),(ev) | vpdpwssd Vx,Hx,Wx (66) | vp4dpwssd Vdqq,Hdqq,Wdq (F2),(ev)
704*caaee1b8SAdrian Hunter53: vpdpwssds Vx,Hx,Wx (66) | vp4dpwssds Vdqq,Hdqq,Wdq (F2),(ev)
705af4933c1SAdrian Hunter54: vpopcntb/w Vx,Wx (66),(ev)
706af4933c1SAdrian Hunter55: vpopcntd/q Vx,Wx (66),(ev)
707d046b725SJosh Poimboeuf58: vpbroadcastd Vx,Wx (66),(v)
708d046b725SJosh Poimboeuf59: vpbroadcastq Vx,Wx (66),(v) | vbroadcasti32x2 Vx,Wx (66),(evo)
709d046b725SJosh Poimboeuf5a: vbroadcasti128 Vqq,Mdq (66),(v) | vbroadcasti32x4/64x2 Vx,Wx (66),(evo)
710d046b725SJosh Poimboeuf5b: vbroadcasti32x8/64x4 Vqq,Mdq (66),(ev)
7119dd94df7SAdrian Hunter5c: TDPBF16PS Vt,Wt,Ht (F3),(v1)
7129dd94df7SAdrian Hunter# Skip 0x5d
7139dd94df7SAdrian Hunter5e: TDPBSSD Vt,Wt,Ht (F2),(v1) | TDPBSUD Vt,Wt,Ht (F3),(v1) | TDPBUSD Vt,Wt,Ht (66),(v1) | TDPBUUD Vt,Wt,Ht (v1)
7149dd94df7SAdrian Hunter# Skip 0x5f-0x61
715af4933c1SAdrian Hunter62: vpexpandb/w Vx,Wx (66),(ev)
716af4933c1SAdrian Hunter63: vpcompressb/w Wx,Vx (66),(ev)
717d046b725SJosh Poimboeuf64: vpblendmd/q Vx,Hx,Wx (66),(ev)
718d046b725SJosh Poimboeuf65: vblendmps/d Vx,Hx,Wx (66),(ev)
719d046b725SJosh Poimboeuf66: vpblendmb/w Vx,Hx,Wx (66),(ev)
720af4933c1SAdrian Hunter68: vp2intersectd/q Kx,Hx,Wx (F2),(ev)
721af4933c1SAdrian Hunter# Skip 0x69-0x6f
722af4933c1SAdrian Hunter70: vpshldvw Vx,Hx,Wx (66),(ev)
723af4933c1SAdrian Hunter71: vpshldvd/q Vx,Hx,Wx (66),(ev)
724af4933c1SAdrian Hunter72: vcvtne2ps2bf16 Vx,Hx,Wx (F2),(ev) | vcvtneps2bf16 Vx,Wx (F3),(ev) | vpshrdvw Vx,Hx,Wx (66),(ev)
725af4933c1SAdrian Hunter73: vpshrdvd/q Vx,Hx,Wx (66),(ev)
726d046b725SJosh Poimboeuf75: vpermi2b/w Vx,Hx,Wx (66),(ev)
727d046b725SJosh Poimboeuf76: vpermi2d/q Vx,Hx,Wx (66),(ev)
728d046b725SJosh Poimboeuf77: vpermi2ps/d Vx,Hx,Wx (66),(ev)
729d046b725SJosh Poimboeuf78: vpbroadcastb Vx,Wx (66),(v)
730d046b725SJosh Poimboeuf79: vpbroadcastw Vx,Wx (66),(v)
731d046b725SJosh Poimboeuf7a: vpbroadcastb Vx,Rv (66),(ev)
732d046b725SJosh Poimboeuf7b: vpbroadcastw Vx,Rv (66),(ev)
733d046b725SJosh Poimboeuf7c: vpbroadcastd/q Vx,Rv (66),(ev)
734d046b725SJosh Poimboeuf7d: vpermt2b/w Vx,Hx,Wx (66),(ev)
735d046b725SJosh Poimboeuf7e: vpermt2d/q Vx,Hx,Wx (66),(ev)
736d046b725SJosh Poimboeuf7f: vpermt2ps/d Vx,Hx,Wx (66),(ev)
737d046b725SJosh Poimboeuf80: INVEPT Gy,Mdq (66)
738d046b725SJosh Poimboeuf81: INVVPID Gy,Mdq (66)
739d046b725SJosh Poimboeuf82: INVPCID Gy,Mdq (66)
740d046b725SJosh Poimboeuf83: vpmultishiftqb Vx,Hx,Wx (66),(ev)
741d046b725SJosh Poimboeuf88: vexpandps/d Vpd,Wpd (66),(ev)
742d046b725SJosh Poimboeuf89: vpexpandd/q Vx,Wx (66),(ev)
743d046b725SJosh Poimboeuf8a: vcompressps/d Wx,Vx (66),(ev)
744d046b725SJosh Poimboeuf8b: vpcompressd/q Wx,Vx (66),(ev)
745d046b725SJosh Poimboeuf8c: vpmaskmovd/q Vx,Hx,Mx (66),(v)
746d046b725SJosh Poimboeuf8d: vpermb/w Vx,Hx,Wx (66),(ev)
747d046b725SJosh Poimboeuf8e: vpmaskmovd/q Mx,Vx,Hx (66),(v)
748af4933c1SAdrian Hunter8f: vpshufbitqmb Kx,Hx,Wx (66),(ev)
749d046b725SJosh Poimboeuf# 0x0f 0x38 0x90-0xbf (FMA)
750d046b725SJosh Poimboeuf90: vgatherdd/q Vx,Hx,Wx (66),(v) | vpgatherdd/q Vx,Wx (66),(evo)
751d046b725SJosh Poimboeuf91: vgatherqd/q Vx,Hx,Wx (66),(v) | vpgatherqd/q Vx,Wx (66),(evo)
752d046b725SJosh Poimboeuf92: vgatherdps/d Vx,Hx,Wx (66),(v)
753d046b725SJosh Poimboeuf93: vgatherqps/d Vx,Hx,Wx (66),(v)
754d046b725SJosh Poimboeuf94:
755d046b725SJosh Poimboeuf95:
756d046b725SJosh Poimboeuf96: vfmaddsub132ps/d Vx,Hx,Wx (66),(v)
757d046b725SJosh Poimboeuf97: vfmsubadd132ps/d Vx,Hx,Wx (66),(v)
758d046b725SJosh Poimboeuf98: vfmadd132ps/d Vx,Hx,Wx (66),(v)
759d046b725SJosh Poimboeuf99: vfmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
760af4933c1SAdrian Hunter9a: vfmsub132ps/d Vx,Hx,Wx (66),(v) | v4fmaddps Vdqq,Hdqq,Wdq (F2),(ev)
761af4933c1SAdrian Hunter9b: vfmsub132ss/d Vx,Hx,Wx (66),(v),(v1) | v4fmaddss Vdq,Hdq,Wdq (F2),(ev)
762d046b725SJosh Poimboeuf9c: vfnmadd132ps/d Vx,Hx,Wx (66),(v)
763d046b725SJosh Poimboeuf9d: vfnmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
764d046b725SJosh Poimboeuf9e: vfnmsub132ps/d Vx,Hx,Wx (66),(v)
765d046b725SJosh Poimboeuf9f: vfnmsub132ss/d Vx,Hx,Wx (66),(v),(v1)
766d046b725SJosh Poimboeufa0: vpscatterdd/q Wx,Vx (66),(ev)
767d046b725SJosh Poimboeufa1: vpscatterqd/q Wx,Vx (66),(ev)
768d046b725SJosh Poimboeufa2: vscatterdps/d Wx,Vx (66),(ev)
769d046b725SJosh Poimboeufa3: vscatterqps/d Wx,Vx (66),(ev)
770d046b725SJosh Poimboeufa6: vfmaddsub213ps/d Vx,Hx,Wx (66),(v)
771d046b725SJosh Poimboeufa7: vfmsubadd213ps/d Vx,Hx,Wx (66),(v)
772d046b725SJosh Poimboeufa8: vfmadd213ps/d Vx,Hx,Wx (66),(v)
773d046b725SJosh Poimboeufa9: vfmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
774af4933c1SAdrian Hunteraa: vfmsub213ps/d Vx,Hx,Wx (66),(v) | v4fnmaddps Vdqq,Hdqq,Wdq (F2),(ev)
775af4933c1SAdrian Hunterab: vfmsub213ss/d Vx,Hx,Wx (66),(v),(v1) | v4fnmaddss Vdq,Hdq,Wdq (F2),(ev)
776d046b725SJosh Poimboeufac: vfnmadd213ps/d Vx,Hx,Wx (66),(v)
777d046b725SJosh Poimboeufad: vfnmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
778d046b725SJosh Poimboeufae: vfnmsub213ps/d Vx,Hx,Wx (66),(v)
779d046b725SJosh Poimboeufaf: vfnmsub213ss/d Vx,Hx,Wx (66),(v),(v1)
780d046b725SJosh Poimboeufb4: vpmadd52luq Vx,Hx,Wx (66),(ev)
781d046b725SJosh Poimboeufb5: vpmadd52huq Vx,Hx,Wx (66),(ev)
782d046b725SJosh Poimboeufb6: vfmaddsub231ps/d Vx,Hx,Wx (66),(v)
783d046b725SJosh Poimboeufb7: vfmsubadd231ps/d Vx,Hx,Wx (66),(v)
784d046b725SJosh Poimboeufb8: vfmadd231ps/d Vx,Hx,Wx (66),(v)
785d046b725SJosh Poimboeufb9: vfmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
786d046b725SJosh Poimboeufba: vfmsub231ps/d Vx,Hx,Wx (66),(v)
787d046b725SJosh Poimboeufbb: vfmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
788d046b725SJosh Poimboeufbc: vfnmadd231ps/d Vx,Hx,Wx (66),(v)
789d046b725SJosh Poimboeufbd: vfnmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
790d046b725SJosh Poimboeufbe: vfnmsub231ps/d Vx,Hx,Wx (66),(v)
791d046b725SJosh Poimboeufbf: vfnmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
792d046b725SJosh Poimboeuf# 0x0f 0x38 0xc0-0xff
793d046b725SJosh Poimboeufc4: vpconflictd/q Vx,Wx (66),(ev)
794d046b725SJosh Poimboeufc6: Grp18 (1A)
795d046b725SJosh Poimboeufc7: Grp19 (1A)
796d046b725SJosh Poimboeufc8: sha1nexte Vdq,Wdq | vexp2ps/d Vx,Wx (66),(ev)
797d046b725SJosh Poimboeufc9: sha1msg1 Vdq,Wdq
798d046b725SJosh Poimboeufca: sha1msg2 Vdq,Wdq | vrcp28ps/d Vx,Wx (66),(ev)
799d046b725SJosh Poimboeufcb: sha256rnds2 Vdq,Wdq | vrcp28ss/d Vx,Hx,Wx (66),(ev)
800d046b725SJosh Poimboeufcc: sha256msg1 Vdq,Wdq | vrsqrt28ps/d Vx,Wx (66),(ev)
801d046b725SJosh Poimboeufcd: sha256msg2 Vdq,Wdq | vrsqrt28ss/d Vx,Hx,Wx (66),(ev)
802af4933c1SAdrian Huntercf: vgf2p8mulb Vx,Wx (66)
803d046b725SJosh Poimboeufdb: VAESIMC Vdq,Wdq (66),(v1)
804af4933c1SAdrian Hunterdc: vaesenc Vx,Hx,Wx (66)
805af4933c1SAdrian Hunterdd: vaesenclast Vx,Hx,Wx (66)
806af4933c1SAdrian Hunterde: vaesdec Vx,Hx,Wx (66)
807af4933c1SAdrian Hunterdf: vaesdeclast Vx,Hx,Wx (66)
808d046b725SJosh Poimboeuff0: MOVBE Gy,My | MOVBE Gw,Mw (66) | CRC32 Gd,Eb (F2) | CRC32 Gd,Eb (66&F2)
809d046b725SJosh Poimboeuff1: MOVBE My,Gy | MOVBE Mw,Gw (66) | CRC32 Gd,Ey (F2) | CRC32 Gd,Ew (66&F2)
810d046b725SJosh Poimboeuff2: ANDN Gy,By,Ey (v)
811d046b725SJosh Poimboeuff3: Grp17 (1A)
8125790921bSYu-cheng Yuf5: BZHI Gy,Ey,By (v) | PEXT Gy,By,Ey (F3),(v) | PDEP Gy,By,Ey (F2),(v) | WRUSSD/Q My,Gy (66)
8135790921bSYu-cheng Yuf6: ADCX Gy,Ey (66) | ADOX Gy,Ey (F3) | MULX By,Gy,rDX,Ey (F2),(v) | WRSSD/Q My,Gy
814d046b725SJosh Poimboeuff7: BEXTR Gy,Ey,By (v) | SHLX Gy,Ey,By (66),(v) | SARX Gy,Ey,By (F3),(v) | SHRX Gy,Ey,By (F2),(v)
815b980be18SAdrian Hunterf8: MOVDIR64B Gv,Mdqq (66) | ENQCMD Gv,Mdqq (F2) | ENQCMDS Gv,Mdqq (F3)
816b980be18SAdrian Hunterf9: MOVDIRI My,Gy
817d046b725SJosh PoimboeufEndTable
818d046b725SJosh Poimboeuf
819d046b725SJosh PoimboeufTable: 3-byte opcode 2 (0x0f 0x3a)
820d046b725SJosh PoimboeufReferrer: 3-byte escape 2
821d046b725SJosh PoimboeufAVXcode: 3
822d046b725SJosh Poimboeuf# 0x0f 0x3a 0x00-0xff
823d046b725SJosh Poimboeuf00: vpermq Vqq,Wqq,Ib (66),(v)
824d046b725SJosh Poimboeuf01: vpermpd Vqq,Wqq,Ib (66),(v)
825d046b725SJosh Poimboeuf02: vpblendd Vx,Hx,Wx,Ib (66),(v)
826d046b725SJosh Poimboeuf03: valignd/q Vx,Hx,Wx,Ib (66),(ev)
827d046b725SJosh Poimboeuf04: vpermilps Vx,Wx,Ib (66),(v)
828d046b725SJosh Poimboeuf05: vpermilpd Vx,Wx,Ib (66),(v)
829d046b725SJosh Poimboeuf06: vperm2f128 Vqq,Hqq,Wqq,Ib (66),(v)
830d046b725SJosh Poimboeuf07:
83116273fa4SAdrian Hunter08: vroundps Vx,Wx,Ib (66) | vrndscaleps Vx,Wx,Ib (66),(evo) | vrndscaleph Vx,Wx,Ib (evo)
832d046b725SJosh Poimboeuf09: vroundpd Vx,Wx,Ib (66) | vrndscalepd Vx,Wx,Ib (66),(evo)
83316273fa4SAdrian Hunter0a: vroundss Vss,Wss,Ib (66),(v1) | vrndscaless Vx,Hx,Wx,Ib (66),(evo) | vrndscalesh Vx,Hx,Wx,Ib (evo)
834d046b725SJosh Poimboeuf0b: vroundsd Vsd,Wsd,Ib (66),(v1) | vrndscalesd Vx,Hx,Wx,Ib (66),(evo)
835d046b725SJosh Poimboeuf0c: vblendps Vx,Hx,Wx,Ib (66)
836d046b725SJosh Poimboeuf0d: vblendpd Vx,Hx,Wx,Ib (66)
837d046b725SJosh Poimboeuf0e: vpblendw Vx,Hx,Wx,Ib (66),(v1)
838d046b725SJosh Poimboeuf0f: palignr Pq,Qq,Ib | vpalignr Vx,Hx,Wx,Ib (66),(v1)
839d046b725SJosh Poimboeuf14: vpextrb Rd/Mb,Vdq,Ib (66),(v1)
840d046b725SJosh Poimboeuf15: vpextrw Rd/Mw,Vdq,Ib (66),(v1)
841d046b725SJosh Poimboeuf16: vpextrd/q Ey,Vdq,Ib (66),(v1)
842d046b725SJosh Poimboeuf17: vextractps Ed,Vdq,Ib (66),(v1)
843d046b725SJosh Poimboeuf18: vinsertf128 Vqq,Hqq,Wqq,Ib (66),(v) | vinsertf32x4/64x2 Vqq,Hqq,Wqq,Ib (66),(evo)
844d046b725SJosh Poimboeuf19: vextractf128 Wdq,Vqq,Ib (66),(v) | vextractf32x4/64x2 Wdq,Vqq,Ib (66),(evo)
845d046b725SJosh Poimboeuf1a: vinsertf32x8/64x4 Vqq,Hqq,Wqq,Ib (66),(ev)
846d046b725SJosh Poimboeuf1b: vextractf32x8/64x4 Wdq,Vqq,Ib (66),(ev)
847d046b725SJosh Poimboeuf1d: vcvtps2ph Wx,Vx,Ib (66),(v)
848d046b725SJosh Poimboeuf1e: vpcmpud/q Vk,Hd,Wd,Ib (66),(ev)
849d046b725SJosh Poimboeuf1f: vpcmpd/q Vk,Hd,Wd,Ib (66),(ev)
850d046b725SJosh Poimboeuf20: vpinsrb Vdq,Hdq,Ry/Mb,Ib (66),(v1)
851d046b725SJosh Poimboeuf21: vinsertps Vdq,Hdq,Udq/Md,Ib (66),(v1)
852d046b725SJosh Poimboeuf22: vpinsrd/q Vdq,Hdq,Ey,Ib (66),(v1)
853d046b725SJosh Poimboeuf23: vshuff32x4/64x2 Vx,Hx,Wx,Ib (66),(ev)
854d046b725SJosh Poimboeuf25: vpternlogd/q Vx,Hx,Wx,Ib (66),(ev)
85516273fa4SAdrian Hunter26: vgetmantps/d Vx,Wx,Ib (66),(ev) | vgetmantph Vx,Wx,Ib (ev)
85616273fa4SAdrian Hunter27: vgetmantss/d Vx,Hx,Wx,Ib (66),(ev) | vgetmantsh Vx,Hx,Wx,Ib (ev)
857d046b725SJosh Poimboeuf30: kshiftrb/w Vk,Uk,Ib (66),(v)
858d046b725SJosh Poimboeuf31: kshiftrd/q Vk,Uk,Ib (66),(v)
859d046b725SJosh Poimboeuf32: kshiftlb/w Vk,Uk,Ib (66),(v)
860d046b725SJosh Poimboeuf33: kshiftld/q Vk,Uk,Ib (66),(v)
861d046b725SJosh Poimboeuf38: vinserti128 Vqq,Hqq,Wqq,Ib (66),(v) | vinserti32x4/64x2 Vqq,Hqq,Wqq,Ib (66),(evo)
862d046b725SJosh Poimboeuf39: vextracti128 Wdq,Vqq,Ib (66),(v) | vextracti32x4/64x2 Wdq,Vqq,Ib (66),(evo)
863d046b725SJosh Poimboeuf3a: vinserti32x8/64x4 Vqq,Hqq,Wqq,Ib (66),(ev)
864d046b725SJosh Poimboeuf3b: vextracti32x8/64x4 Wdq,Vqq,Ib (66),(ev)
865d046b725SJosh Poimboeuf3e: vpcmpub/w Vk,Hk,Wx,Ib (66),(ev)
866d046b725SJosh Poimboeuf3f: vpcmpb/w Vk,Hk,Wx,Ib (66),(ev)
867d046b725SJosh Poimboeuf40: vdpps Vx,Hx,Wx,Ib (66)
868d046b725SJosh Poimboeuf41: vdppd Vdq,Hdq,Wdq,Ib (66),(v1)
869d046b725SJosh Poimboeuf42: vmpsadbw Vx,Hx,Wx,Ib (66),(v1) | vdbpsadbw Vx,Hx,Wx,Ib (66),(evo)
870d046b725SJosh Poimboeuf43: vshufi32x4/64x2 Vx,Hx,Wx,Ib (66),(ev)
871af4933c1SAdrian Hunter44: vpclmulqdq Vx,Hx,Wx,Ib (66)
872d046b725SJosh Poimboeuf46: vperm2i128 Vqq,Hqq,Wqq,Ib (66),(v)
873d046b725SJosh Poimboeuf4a: vblendvps Vx,Hx,Wx,Lx (66),(v)
874d046b725SJosh Poimboeuf4b: vblendvpd Vx,Hx,Wx,Lx (66),(v)
875d046b725SJosh Poimboeuf4c: vpblendvb Vx,Hx,Wx,Lx (66),(v1)
876d046b725SJosh Poimboeuf50: vrangeps/d Vx,Hx,Wx,Ib (66),(ev)
877d046b725SJosh Poimboeuf51: vrangess/d Vx,Hx,Wx,Ib (66),(ev)
878d046b725SJosh Poimboeuf54: vfixupimmps/d Vx,Hx,Wx,Ib (66),(ev)
879d046b725SJosh Poimboeuf55: vfixupimmss/d Vx,Hx,Wx,Ib (66),(ev)
88016273fa4SAdrian Hunter56: vreduceps/d Vx,Wx,Ib (66),(ev) | vreduceph Vx,Wx,Ib (ev)
88116273fa4SAdrian Hunter57: vreducess/d Vx,Hx,Wx,Ib (66),(ev) | vreducesh Vx,Hx,Wx,Ib (ev)
882d046b725SJosh Poimboeuf60: vpcmpestrm Vdq,Wdq,Ib (66),(v1)
883d046b725SJosh Poimboeuf61: vpcmpestri Vdq,Wdq,Ib (66),(v1)
884d046b725SJosh Poimboeuf62: vpcmpistrm Vdq,Wdq,Ib (66),(v1)
885d046b725SJosh Poimboeuf63: vpcmpistri Vdq,Wdq,Ib (66),(v1)
88616273fa4SAdrian Hunter66: vfpclassps/d Vk,Wx,Ib (66),(ev) | vfpclassph Vx,Wx,Ib (ev)
88716273fa4SAdrian Hunter67: vfpclassss/d Vk,Wx,Ib (66),(ev) | vfpclasssh Vx,Wx,Ib (ev)
888af4933c1SAdrian Hunter70: vpshldw Vx,Hx,Wx,Ib (66),(ev)
889af4933c1SAdrian Hunter71: vpshldd/q Vx,Hx,Wx,Ib (66),(ev)
890af4933c1SAdrian Hunter72: vpshrdw Vx,Hx,Wx,Ib (66),(ev)
891af4933c1SAdrian Hunter73: vpshrdd/q Vx,Hx,Wx,Ib (66),(ev)
89216273fa4SAdrian Hunterc2: vcmpph Vx,Hx,Wx,Ib (ev) | vcmpsh Vx,Hx,Wx,Ib (F3),(ev)
893d046b725SJosh Poimboeufcc: sha1rnds4 Vdq,Wdq,Ib
894af4933c1SAdrian Hunterce: vgf2p8affineqb Vx,Wx,Ib (66)
895af4933c1SAdrian Huntercf: vgf2p8affineinvqb Vx,Wx,Ib (66)
896d046b725SJosh Poimboeufdf: VAESKEYGEN Vdq,Wdq,Ib (66),(v1)
8970153d98fSAdrian Hunterf0: RORX Gy,Ey,Ib (F2),(v) | HRESET Gv,Ib (F3),(000),(11B)
898d046b725SJosh PoimboeufEndTable
899d046b725SJosh Poimboeuf
90016273fa4SAdrian HunterTable: EVEX map 5
90116273fa4SAdrian HunterReferrer:
90216273fa4SAdrian HunterAVXcode: 5
90316273fa4SAdrian Hunter10: vmovsh Vx,Hx,Wx (F3),(ev) | vmovsh Vx,Wx (F3),(ev)
90416273fa4SAdrian Hunter11: vmovsh Wx,Hx,Vx (F3),(ev) | vmovsh Wx,Vx (F3),(ev)
90516273fa4SAdrian Hunter1d: vcvtps2phx Vx,Wx (66),(ev) | vcvtss2sh Vx,Hx,Wx (ev)
90616273fa4SAdrian Hunter2a: vcvtsi2sh Vx,Hx,Wx (F3),(ev)
90716273fa4SAdrian Hunter2c: vcvttsh2si Vx,Wx (F3),(ev)
90816273fa4SAdrian Hunter2d: vcvtsh2si Vx,Wx (F3),(ev)
90916273fa4SAdrian Hunter2e: vucomish Vx,Wx (ev)
91016273fa4SAdrian Hunter2f: vcomish Vx,Wx (ev)
91116273fa4SAdrian Hunter51: vsqrtph Vx,Wx (ev) | vsqrtsh Vx,Hx,Wx (F3),(ev)
91216273fa4SAdrian Hunter58: vaddph Vx,Hx,Wx (ev) | vaddsh Vx,Hx,Wx (F3),(ev)
91316273fa4SAdrian Hunter59: vmulph Vx,Hx,Wx (ev) | vmulsh Vx,Hx,Wx (F3),(ev)
91416273fa4SAdrian Hunter5a: vcvtpd2ph Vx,Wx (66),(ev) | vcvtph2pd Vx,Wx (ev) | vcvtsd2sh Vx,Hx,Wx (F2),(ev) | vcvtsh2sd Vx,Hx,Wx (F3),(ev)
91516273fa4SAdrian Hunter5b: vcvtdq2ph Vx,Wx (ev) | vcvtph2dq Vx,Wx (66),(ev) | vcvtqq2ph Vx,Wx (ev) | vcvttph2dq Vx,Wx (F3),(ev)
91616273fa4SAdrian Hunter5c: vsubph Vx,Hx,Wx (ev) | vsubsh Vx,Hx,Wx (F3),(ev)
91716273fa4SAdrian Hunter5d: vminph Vx,Hx,Wx (ev) | vminsh Vx,Hx,Wx (F3),(ev)
91816273fa4SAdrian Hunter5e: vdivph Vx,Hx,Wx (ev) | vdivsh Vx,Hx,Wx (F3),(ev)
91916273fa4SAdrian Hunter5f: vmaxph Vx,Hx,Wx (ev) | vmaxsh Vx,Hx,Wx (F3),(ev)
92016273fa4SAdrian Hunter6e: vmovw Vx,Wx (66),(ev)
92116273fa4SAdrian Hunter78: vcvttph2udq Vx,Wx (ev) | vcvttph2uqq Vx,Wx (66),(ev) | vcvttsh2usi Vx,Wx (F3),(ev)
92216273fa4SAdrian Hunter79: vcvtph2udq Vx,Wx (ev) | vcvtph2uqq Vx,Wx (66),(ev) | vcvtsh2usi Vx,Wx (F3),(ev)
92316273fa4SAdrian Hunter7a: vcvttph2qq Vx,Wx (66),(ev) | vcvtudq2ph Vx,Wx (F2),(ev) | vcvtuqq2ph Vx,Wx (F2),(ev)
92416273fa4SAdrian Hunter7b: vcvtph2qq Vx,Wx (66),(ev) | vcvtusi2sh Vx,Hx,Wx (F3),(ev)
92516273fa4SAdrian Hunter7c: vcvttph2uw Vx,Wx (ev) | vcvttph2w Vx,Wx (66),(ev)
92616273fa4SAdrian Hunter7d: vcvtph2uw Vx,Wx (ev) | vcvtph2w Vx,Wx (66),(ev) | vcvtuw2ph Vx,Wx (F2),(ev) | vcvtw2ph Vx,Wx (F3),(ev)
92716273fa4SAdrian Hunter7e: vmovw Wx,Vx (66),(ev)
92816273fa4SAdrian HunterEndTable
92916273fa4SAdrian Hunter
93016273fa4SAdrian HunterTable: EVEX map 6
93116273fa4SAdrian HunterReferrer:
93216273fa4SAdrian HunterAVXcode: 6
93316273fa4SAdrian Hunter13: vcvtph2psx Vx,Wx (66),(ev) | vcvtsh2ss Vx,Hx,Wx (ev)
93416273fa4SAdrian Hunter2c: vscalefph Vx,Hx,Wx (66),(ev)
93516273fa4SAdrian Hunter2d: vscalefsh Vx,Hx,Wx (66),(ev)
93616273fa4SAdrian Hunter42: vgetexpph Vx,Wx (66),(ev)
93716273fa4SAdrian Hunter43: vgetexpsh Vx,Hx,Wx (66),(ev)
93816273fa4SAdrian Hunter4c: vrcpph Vx,Wx (66),(ev)
93916273fa4SAdrian Hunter4d: vrcpsh Vx,Hx,Wx (66),(ev)
94016273fa4SAdrian Hunter4e: vrsqrtph Vx,Wx (66),(ev)
94116273fa4SAdrian Hunter4f: vrsqrtsh Vx,Hx,Wx (66),(ev)
94216273fa4SAdrian Hunter56: vfcmaddcph Vx,Hx,Wx (F2),(ev) | vfmaddcph Vx,Hx,Wx (F3),(ev)
94316273fa4SAdrian Hunter57: vfcmaddcsh Vx,Hx,Wx (F2),(ev) | vfmaddcsh Vx,Hx,Wx (F3),(ev)
94416273fa4SAdrian Hunter96: vfmaddsub132ph Vx,Hx,Wx (66),(ev)
94516273fa4SAdrian Hunter97: vfmsubadd132ph Vx,Hx,Wx (66),(ev)
94616273fa4SAdrian Hunter98: vfmadd132ph Vx,Hx,Wx (66),(ev)
94716273fa4SAdrian Hunter99: vfmadd132sh Vx,Hx,Wx (66),(ev)
94816273fa4SAdrian Hunter9a: vfmsub132ph Vx,Hx,Wx (66),(ev)
94916273fa4SAdrian Hunter9b: vfmsub132sh Vx,Hx,Wx (66),(ev)
95016273fa4SAdrian Hunter9c: vfnmadd132ph Vx,Hx,Wx (66),(ev)
95116273fa4SAdrian Hunter9d: vfnmadd132sh Vx,Hx,Wx (66),(ev)
95216273fa4SAdrian Hunter9e: vfnmsub132ph Vx,Hx,Wx (66),(ev)
95316273fa4SAdrian Hunter9f: vfnmsub132sh Vx,Hx,Wx (66),(ev)
95416273fa4SAdrian Huntera6: vfmaddsub213ph Vx,Hx,Wx (66),(ev)
95516273fa4SAdrian Huntera7: vfmsubadd213ph Vx,Hx,Wx (66),(ev)
95616273fa4SAdrian Huntera8: vfmadd213ph Vx,Hx,Wx (66),(ev)
95716273fa4SAdrian Huntera9: vfmadd213sh Vx,Hx,Wx (66),(ev)
95816273fa4SAdrian Hunteraa: vfmsub213ph Vx,Hx,Wx (66),(ev)
95916273fa4SAdrian Hunterab: vfmsub213sh Vx,Hx,Wx (66),(ev)
96016273fa4SAdrian Hunterac: vfnmadd213ph Vx,Hx,Wx (66),(ev)
96116273fa4SAdrian Hunterad: vfnmadd213sh Vx,Hx,Wx (66),(ev)
96216273fa4SAdrian Hunterae: vfnmsub213ph Vx,Hx,Wx (66),(ev)
96316273fa4SAdrian Hunteraf: vfnmsub213sh Vx,Hx,Wx (66),(ev)
96416273fa4SAdrian Hunterb6: vfmaddsub231ph Vx,Hx,Wx (66),(ev)
96516273fa4SAdrian Hunterb7: vfmsubadd231ph Vx,Hx,Wx (66),(ev)
96616273fa4SAdrian Hunterb8: vfmadd231ph Vx,Hx,Wx (66),(ev)
96716273fa4SAdrian Hunterb9: vfmadd231sh Vx,Hx,Wx (66),(ev)
96816273fa4SAdrian Hunterba: vfmsub231ph Vx,Hx,Wx (66),(ev)
96916273fa4SAdrian Hunterbb: vfmsub231sh Vx,Hx,Wx (66),(ev)
97016273fa4SAdrian Hunterbc: vfnmadd231ph Vx,Hx,Wx (66),(ev)
97116273fa4SAdrian Hunterbd: vfnmadd231sh Vx,Hx,Wx (66),(ev)
97216273fa4SAdrian Hunterbe: vfnmsub231ph Vx,Hx,Wx (66),(ev)
97316273fa4SAdrian Hunterbf: vfnmsub231sh Vx,Hx,Wx (66),(ev)
97416273fa4SAdrian Hunterd6: vfcmulcph Vx,Hx,Wx (F2),(ev) | vfmulcph Vx,Hx,Wx (F3),(ev)
97516273fa4SAdrian Hunterd7: vfcmulcsh Vx,Hx,Wx (F2),(ev) | vfmulcsh Vx,Hx,Wx (F3),(ev)
97616273fa4SAdrian HunterEndTable
97716273fa4SAdrian Hunter
978d046b725SJosh PoimboeufGrpTable: Grp1
979d046b725SJosh Poimboeuf0: ADD
980d046b725SJosh Poimboeuf1: OR
981d046b725SJosh Poimboeuf2: ADC
982d046b725SJosh Poimboeuf3: SBB
983d046b725SJosh Poimboeuf4: AND
984d046b725SJosh Poimboeuf5: SUB
985d046b725SJosh Poimboeuf6: XOR
986d046b725SJosh Poimboeuf7: CMP
987d046b725SJosh PoimboeufEndTable
988d046b725SJosh Poimboeuf
989d046b725SJosh PoimboeufGrpTable: Grp1A
990d046b725SJosh Poimboeuf0: POP
991d046b725SJosh PoimboeufEndTable
992d046b725SJosh Poimboeuf
993d046b725SJosh PoimboeufGrpTable: Grp2
994d046b725SJosh Poimboeuf0: ROL
995d046b725SJosh Poimboeuf1: ROR
996d046b725SJosh Poimboeuf2: RCL
997d046b725SJosh Poimboeuf3: RCR
998d046b725SJosh Poimboeuf4: SHL/SAL
999d046b725SJosh Poimboeuf5: SHR
1000d046b725SJosh Poimboeuf6:
1001d046b725SJosh Poimboeuf7: SAR
1002d046b725SJosh PoimboeufEndTable
1003d046b725SJosh Poimboeuf
1004d046b725SJosh PoimboeufGrpTable: Grp3_1
1005d046b725SJosh Poimboeuf0: TEST Eb,Ib
1006d046b725SJosh Poimboeuf1: TEST Eb,Ib
1007d046b725SJosh Poimboeuf2: NOT Eb
1008d046b725SJosh Poimboeuf3: NEG Eb
1009d046b725SJosh Poimboeuf4: MUL AL,Eb
1010d046b725SJosh Poimboeuf5: IMUL AL,Eb
1011d046b725SJosh Poimboeuf6: DIV AL,Eb
1012d046b725SJosh Poimboeuf7: IDIV AL,Eb
1013d046b725SJosh PoimboeufEndTable
1014d046b725SJosh Poimboeuf
1015d046b725SJosh PoimboeufGrpTable: Grp3_2
1016d046b725SJosh Poimboeuf0: TEST Ev,Iz
10178b7e20a7SMasami Hiramatsu1: TEST Ev,Iz
1018d046b725SJosh Poimboeuf2: NOT Ev
1019d046b725SJosh Poimboeuf3: NEG Ev
1020d046b725SJosh Poimboeuf4: MUL rAX,Ev
1021d046b725SJosh Poimboeuf5: IMUL rAX,Ev
1022d046b725SJosh Poimboeuf6: DIV rAX,Ev
1023d046b725SJosh Poimboeuf7: IDIV rAX,Ev
1024d046b725SJosh PoimboeufEndTable
1025d046b725SJosh Poimboeuf
1026d046b725SJosh PoimboeufGrpTable: Grp4
1027d046b725SJosh Poimboeuf0: INC Eb
1028d046b725SJosh Poimboeuf1: DEC Eb
1029d046b725SJosh PoimboeufEndTable
1030d046b725SJosh Poimboeuf
1031d046b725SJosh PoimboeufGrpTable: Grp5
1032d046b725SJosh Poimboeuf0: INC Ev
1033d046b725SJosh Poimboeuf1: DEC Ev
1034d046b725SJosh Poimboeuf# Note: "forced64" is Intel CPU behavior (see comment about CALL insn).
1035d046b725SJosh Poimboeuf2: CALLN Ev (f64)
1036d046b725SJosh Poimboeuf3: CALLF Ep
1037d046b725SJosh Poimboeuf4: JMPN Ev (f64)
1038d046b725SJosh Poimboeuf5: JMPF Mp
1039d046b725SJosh Poimboeuf6: PUSH Ev (d64)
1040d046b725SJosh Poimboeuf7:
1041d046b725SJosh PoimboeufEndTable
1042d046b725SJosh Poimboeuf
1043d046b725SJosh PoimboeufGrpTable: Grp6
1044d046b725SJosh Poimboeuf0: SLDT Rv/Mw
1045d046b725SJosh Poimboeuf1: STR Rv/Mw
1046d046b725SJosh Poimboeuf2: LLDT Ew
1047d046b725SJosh Poimboeuf3: LTR Ew
1048d046b725SJosh Poimboeuf4: VERR Ew
1049d046b725SJosh Poimboeuf5: VERW Ew
10505a91f126SH. Peter Anvin (Intel)6: LKGS Ew (F2)
1051d046b725SJosh PoimboeufEndTable
1052d046b725SJosh Poimboeuf
1053d046b725SJosh PoimboeufGrpTable: Grp7
1054b980be18SAdrian Hunter0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) | PCONFIG (101),(11B) | ENCLV (000),(11B)
1055b980be18SAdrian Hunter1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) | ENCLS (111),(11B)
1056b980be18SAdrian Hunter2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B) | ENCLU (111),(11B)
1057d046b725SJosh Poimboeuf3: LIDT Ms
1058d046b725SJosh Poimboeuf4: SMSW Mw/Rv
10590153d98fSAdrian Hunter5: rdpkru (110),(11B) | wrpkru (111),(11B) | SAVEPREVSSP (F3),(010),(11B) | RSTORSSP Mq (F3) | SETSSBSY (F3),(000),(11B) | CLUI (F3),(110),(11B) | SERIALIZE (000),(11B) | STUI (F3),(111),(11B) | TESTUI (F3)(101)(11B) | UIRET (F3),(100),(11B) | XRESLDTRK (F2),(000),(11B) | XSUSLDTRK (F2),(001),(11B)
1060d046b725SJosh Poimboeuf6: LMSW Ew
1061d046b725SJosh Poimboeuf7: INVLPG Mb | SWAPGS (o64),(000),(11B) | RDTSCP (001),(11B)
1062d046b725SJosh PoimboeufEndTable
1063d046b725SJosh Poimboeuf
1064d046b725SJosh PoimboeufGrpTable: Grp8
1065d046b725SJosh Poimboeuf4: BT
1066d046b725SJosh Poimboeuf5: BTS
1067d046b725SJosh Poimboeuf6: BTR
1068d046b725SJosh Poimboeuf7: BTC
1069d046b725SJosh PoimboeufEndTable
1070d046b725SJosh Poimboeuf
1071d046b725SJosh PoimboeufGrpTable: Grp9
1072d046b725SJosh Poimboeuf1: CMPXCHG8B/16B Mq/Mdq
1073d046b725SJosh Poimboeuf3: xrstors
1074d046b725SJosh Poimboeuf4: xsavec
1075d046b725SJosh Poimboeuf5: xsaves
10760153d98fSAdrian Hunter6: VMPTRLD Mq | VMCLEAR Mq (66) | VMXON Mq (F3) | RDRAND Rv (11B) | SENDUIPI Gq (F3)
1077d046b725SJosh Poimboeuf7: VMPTRST Mq | VMPTRST Mq (F3) | RDSEED Rv (11B)
1078d046b725SJosh PoimboeufEndTable
1079d046b725SJosh Poimboeuf
1080d046b725SJosh PoimboeufGrpTable: Grp10
1081d046b725SJosh Poimboeuf# all are UD1
1082d046b725SJosh Poimboeuf0: UD1
1083d046b725SJosh Poimboeuf1: UD1
1084d046b725SJosh Poimboeuf2: UD1
1085d046b725SJosh Poimboeuf3: UD1
1086d046b725SJosh Poimboeuf4: UD1
1087d046b725SJosh Poimboeuf5: UD1
1088d046b725SJosh Poimboeuf6: UD1
1089d046b725SJosh Poimboeuf7: UD1
1090d046b725SJosh PoimboeufEndTable
1091d046b725SJosh Poimboeuf
1092d046b725SJosh Poimboeuf# Grp11A and Grp11B are expressed as Grp11 in Intel SDM
1093d046b725SJosh PoimboeufGrpTable: Grp11A
1094d046b725SJosh Poimboeuf0: MOV Eb,Ib
1095d046b725SJosh Poimboeuf7: XABORT Ib (000),(11B)
1096d046b725SJosh PoimboeufEndTable
1097d046b725SJosh Poimboeuf
1098d046b725SJosh PoimboeufGrpTable: Grp11B
1099d046b725SJosh Poimboeuf0: MOV Eb,Iz
1100d046b725SJosh Poimboeuf7: XBEGIN Jz (000),(11B)
1101d046b725SJosh PoimboeufEndTable
1102d046b725SJosh Poimboeuf
1103d046b725SJosh PoimboeufGrpTable: Grp12
1104d046b725SJosh Poimboeuf2: psrlw Nq,Ib (11B) | vpsrlw Hx,Ux,Ib (66),(11B),(v1)
1105d046b725SJosh Poimboeuf4: psraw Nq,Ib (11B) | vpsraw Hx,Ux,Ib (66),(11B),(v1)
1106d046b725SJosh Poimboeuf6: psllw Nq,Ib (11B) | vpsllw Hx,Ux,Ib (66),(11B),(v1)
1107d046b725SJosh PoimboeufEndTable
1108d046b725SJosh Poimboeuf
1109d046b725SJosh PoimboeufGrpTable: Grp13
1110d046b725SJosh Poimboeuf0: vprord/q Hx,Wx,Ib (66),(ev)
1111d046b725SJosh Poimboeuf1: vprold/q Hx,Wx,Ib (66),(ev)
1112d046b725SJosh Poimboeuf2: psrld Nq,Ib (11B) | vpsrld Hx,Ux,Ib (66),(11B),(v1)
1113d046b725SJosh Poimboeuf4: psrad Nq,Ib (11B) | vpsrad Hx,Ux,Ib (66),(11B),(v1) | vpsrad/q Hx,Ux,Ib (66),(evo)
1114d046b725SJosh Poimboeuf6: pslld Nq,Ib (11B) | vpslld Hx,Ux,Ib (66),(11B),(v1)
1115d046b725SJosh PoimboeufEndTable
1116d046b725SJosh Poimboeuf
1117d046b725SJosh PoimboeufGrpTable: Grp14
1118d046b725SJosh Poimboeuf2: psrlq Nq,Ib (11B) | vpsrlq Hx,Ux,Ib (66),(11B),(v1)
1119d046b725SJosh Poimboeuf3: vpsrldq Hx,Ux,Ib (66),(11B),(v1)
1120d046b725SJosh Poimboeuf6: psllq Nq,Ib (11B) | vpsllq Hx,Ux,Ib (66),(11B),(v1)
1121d046b725SJosh Poimboeuf7: vpslldq Hx,Ux,Ib (66),(11B),(v1)
1122d046b725SJosh PoimboeufEndTable
1123d046b725SJosh Poimboeuf
1124d046b725SJosh PoimboeufGrpTable: Grp15
1125d046b725SJosh Poimboeuf0: fxsave | RDFSBASE Ry (F3),(11B)
1126d046b725SJosh Poimboeuf1: fxstor | RDGSBASE Ry (F3),(11B)
1127d046b725SJosh Poimboeuf2: vldmxcsr Md (v1) | WRFSBASE Ry (F3),(11B)
1128d046b725SJosh Poimboeuf3: vstmxcsr Md (v1) | WRGSBASE Ry (F3),(11B)
1129d046b725SJosh Poimboeuf4: XSAVE | ptwrite Ey (F3),(11B)
11305790921bSYu-cheng Yu5: XRSTOR | lfence (11B) | INCSSPD/Q Ry (F3),(11B)
11315790921bSYu-cheng Yu6: XSAVEOPT | clwb (66) | mfence (11B) | TPAUSE Rd (66),(11B) | UMONITOR Rv (F3),(11B) | UMWAIT Rd (F2),(11B) | CLRSSBSY Mq (F3)
1132d046b725SJosh Poimboeuf7: clflush | clflushopt (66) | sfence (11B)
1133d046b725SJosh PoimboeufEndTable
1134d046b725SJosh Poimboeuf
1135d046b725SJosh PoimboeufGrpTable: Grp16
1136d046b725SJosh Poimboeuf0: prefetch NTA
1137d046b725SJosh Poimboeuf1: prefetch T0
1138d046b725SJosh Poimboeuf2: prefetch T1
1139d046b725SJosh Poimboeuf3: prefetch T2
1140d046b725SJosh PoimboeufEndTable
1141d046b725SJosh Poimboeuf
1142d046b725SJosh PoimboeufGrpTable: Grp17
1143d046b725SJosh Poimboeuf1: BLSR By,Ey (v)
1144d046b725SJosh Poimboeuf2: BLSMSK By,Ey (v)
1145d046b725SJosh Poimboeuf3: BLSI By,Ey (v)
1146d046b725SJosh PoimboeufEndTable
1147d046b725SJosh Poimboeuf
1148d046b725SJosh PoimboeufGrpTable: Grp18
1149d046b725SJosh Poimboeuf1: vgatherpf0dps/d Wx (66),(ev)
1150d046b725SJosh Poimboeuf2: vgatherpf1dps/d Wx (66),(ev)
1151d046b725SJosh Poimboeuf5: vscatterpf0dps/d Wx (66),(ev)
1152d046b725SJosh Poimboeuf6: vscatterpf1dps/d Wx (66),(ev)
1153d046b725SJosh PoimboeufEndTable
1154d046b725SJosh Poimboeuf
1155d046b725SJosh PoimboeufGrpTable: Grp19
1156d046b725SJosh Poimboeuf1: vgatherpf0qps/d Wx (66),(ev)
1157d046b725SJosh Poimboeuf2: vgatherpf1qps/d Wx (66),(ev)
1158d046b725SJosh Poimboeuf5: vscatterpf0qps/d Wx (66),(ev)
1159d046b725SJosh Poimboeuf6: vscatterpf1qps/d Wx (66),(ev)
1160d046b725SJosh PoimboeufEndTable
1161d046b725SJosh Poimboeuf
1162b980be18SAdrian HunterGrpTable: Grp20
1163b980be18SAdrian Hunter0: cldemote Mb
1164b980be18SAdrian HunterEndTable
1165b980be18SAdrian Hunter
11665790921bSYu-cheng YuGrpTable: Grp21
11675790921bSYu-cheng Yu1: RDSSPD/Q Ry (F3),(11B)
11685790921bSYu-cheng Yu7: ENDBR64 (F3),(010),(11B) | ENDBR32 (F3),(011),(11B)
11695790921bSYu-cheng YuEndTable
11705790921bSYu-cheng Yu
1171d046b725SJosh Poimboeuf# AMD's Prefetch Group
1172d046b725SJosh PoimboeufGrpTable: GrpP
1173d046b725SJosh Poimboeuf0: PREFETCH
1174d046b725SJosh Poimboeuf1: PREFETCHW
1175d046b725SJosh PoimboeufEndTable
1176d046b725SJosh Poimboeuf
1177d046b725SJosh PoimboeufGrpTable: GrpPDLK
1178d046b725SJosh Poimboeuf0: MONTMUL
1179d046b725SJosh Poimboeuf1: XSHA1
1180d046b725SJosh Poimboeuf2: XSHA2
1181d046b725SJosh PoimboeufEndTable
1182d046b725SJosh Poimboeuf
1183d046b725SJosh PoimboeufGrpTable: GrpRNG
1184d046b725SJosh Poimboeuf0: xstore-rng
1185d046b725SJosh Poimboeuf1: xcrypt-ecb
1186d046b725SJosh Poimboeuf2: xcrypt-cbc
1187d046b725SJosh Poimboeuf4: xcrypt-cfb
1188d046b725SJosh Poimboeuf5: xcrypt-ofb
1189d046b725SJosh PoimboeufEndTable
1190