aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/lib
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/inat.c9
-rw-r--r--arch/x86/lib/insn.c4
-rw-r--r--arch/x86/lib/string_32.c8
-rw-r--r--arch/x86/lib/x86-opcode-map.txt606
4 files changed, 347 insertions, 280 deletions
diff --git a/arch/x86/lib/inat.c b/arch/x86/lib/inat.c
index 46fc4ee09fc4..88ad5fbda6e1 100644
--- a/arch/x86/lib/inat.c
+++ b/arch/x86/lib/inat.c
@@ -82,9 +82,16 @@ insn_attr_t inat_get_avx_attribute(insn_byte_t opcode, insn_byte_t vex_m,
82 const insn_attr_t *table; 82 const insn_attr_t *table;
83 if (vex_m > X86_VEX_M_MAX || vex_p > INAT_LSTPFX_MAX) 83 if (vex_m > X86_VEX_M_MAX || vex_p > INAT_LSTPFX_MAX)
84 return 0; 84 return 0;
85 table = inat_avx_tables[vex_m][vex_p]; 85 /* At first, this checks the master table */
86 table = inat_avx_tables[vex_m][0];
86 if (!table) 87 if (!table)
87 return 0; 88 return 0;
89 if (!inat_is_group(table[opcode]) && vex_p) {
90 /* If this is not a group, get attribute directly */
91 table = inat_avx_tables[vex_m][vex_p];
92 if (!table)
93 return 0;
94 }
88 return table[opcode]; 95 return table[opcode];
89} 96}
90 97
diff --git a/arch/x86/lib/insn.c b/arch/x86/lib/insn.c
index 374562ed6704..5a1f9f3e3fbb 100644
--- a/arch/x86/lib/insn.c
+++ b/arch/x86/lib/insn.c
@@ -202,7 +202,7 @@ void insn_get_opcode(struct insn *insn)
202 m = insn_vex_m_bits(insn); 202 m = insn_vex_m_bits(insn);
203 p = insn_vex_p_bits(insn); 203 p = insn_vex_p_bits(insn);
204 insn->attr = inat_get_avx_attribute(op, m, p); 204 insn->attr = inat_get_avx_attribute(op, m, p);
205 if (!inat_accept_vex(insn->attr)) 205 if (!inat_accept_vex(insn->attr) && !inat_is_group(insn->attr))
206 insn->attr = 0; /* This instruction is bad */ 206 insn->attr = 0; /* This instruction is bad */
207 goto end; /* VEX has only 1 byte for opcode */ 207 goto end; /* VEX has only 1 byte for opcode */
208 } 208 }
@@ -249,6 +249,8 @@ void insn_get_modrm(struct insn *insn)
249 pfx = insn_last_prefix(insn); 249 pfx = insn_last_prefix(insn);
250 insn->attr = inat_get_group_attribute(mod, pfx, 250 insn->attr = inat_get_group_attribute(mod, pfx,
251 insn->attr); 251 insn->attr);
252 if (insn_is_avx(insn) && !inat_accept_vex(insn->attr))
253 insn->attr = 0; /* This is bad */
252 } 254 }
253 } 255 }
254 256
diff --git a/arch/x86/lib/string_32.c b/arch/x86/lib/string_32.c
index 82004d2bf05e..bd59090825db 100644
--- a/arch/x86/lib/string_32.c
+++ b/arch/x86/lib/string_32.c
@@ -164,15 +164,13 @@ EXPORT_SYMBOL(strchr);
164size_t strlen(const char *s) 164size_t strlen(const char *s)
165{ 165{
166 int d0; 166 int d0;
167 int res; 167 size_t res;
168 asm volatile("repne\n\t" 168 asm volatile("repne\n\t"
169 "scasb\n\t" 169 "scasb"
170 "notl %0\n\t"
171 "decl %0"
172 : "=c" (res), "=&D" (d0) 170 : "=c" (res), "=&D" (d0)
173 : "1" (s), "a" (0), "0" (0xffffffffu) 171 : "1" (s), "a" (0), "0" (0xffffffffu)
174 : "memory"); 172 : "memory");
175 return res; 173 return ~res - 1;
176} 174}
177EXPORT_SYMBOL(strlen); 175EXPORT_SYMBOL(strlen);
178#endif 176#endif
diff --git a/arch/x86/lib/x86-opcode-map.txt b/arch/x86/lib/x86-opcode-map.txt
index 8641bbb8e006..819137904428 100644
--- a/arch/x86/lib/x86-opcode-map.txt
+++ b/arch/x86/lib/x86-opcode-map.txt
@@ -1,5 +1,11 @@
1# x86 Opcode Maps 1# x86 Opcode Maps
2# 2#
3# This is (mostly) based on following documentations.
4# - Intel(R) 64 and IA-32 Architectures Software Developer's Manual Vol.2
5# (#325383-040US, October 2011)
6# - Intel(R) Advanced Vector Extensions Programming Reference
7# (#319433-011,JUNE 2011).
8#
3#<Opcode maps> 9#<Opcode maps>
4# Table: table-name 10# Table: table-name
5# Referrer: escaped-name 11# Referrer: escaped-name
@@ -15,10 +21,13 @@
15# EndTable 21# EndTable
16# 22#
17# AVX Superscripts 23# AVX Superscripts
18# (VEX): this opcode can accept VEX prefix. 24# (v): this opcode requires VEX prefix.
19# (oVEX): this opcode requires VEX prefix. 25# (v1): this opcode only supports 128bit VEX.
20# (o128): this opcode only supports 128bit VEX. 26#
21# (o256): this opcode only supports 256bit VEX. 27# Last Prefix Superscripts
28# - (66): the last prefix is 0x66
29# - (F3): the last prefix is 0xF3
30# - (F2): the last prefix is 0xF2
22# 31#
23 32
24Table: one byte opcode 33Table: one byte opcode
@@ -199,8 +208,8 @@ a0: MOV AL,Ob
199a1: MOV rAX,Ov 208a1: MOV rAX,Ov
200a2: MOV Ob,AL 209a2: MOV Ob,AL
201a3: MOV Ov,rAX 210a3: MOV Ov,rAX
202a4: MOVS/B Xb,Yb 211a4: MOVS/B Yb,Xb
203a5: MOVS/W/D/Q Xv,Yv 212a5: MOVS/W/D/Q Yv,Xv
204a6: CMPS/B Xb,Yb 213a6: CMPS/B Xb,Yb
205a7: CMPS/W/D Xv,Yv 214a7: CMPS/W/D Xv,Yv
206a8: TEST AL,Ib 215a8: TEST AL,Ib
@@ -235,8 +244,8 @@ c0: Grp2 Eb,Ib (1A)
235c1: Grp2 Ev,Ib (1A) 244c1: Grp2 Ev,Ib (1A)
236c2: RETN Iw (f64) 245c2: RETN Iw (f64)
237c3: RETN 246c3: RETN
238c4: LES Gz,Mp (i64) | 3bytes-VEX (Prefix) 247c4: LES Gz,Mp (i64) | VEX+2byte (Prefix)
239c5: LDS Gz,Mp (i64) | 2bytes-VEX (Prefix) 248c5: LDS Gz,Mp (i64) | VEX+1byte (Prefix)
240c6: Grp11 Eb,Ib (1A) 249c6: Grp11 Eb,Ib (1A)
241c7: Grp11 Ev,Iz (1A) 250c7: Grp11 Ev,Iz (1A)
242c8: ENTER Iw,Ib 251c8: ENTER Iw,Ib
@@ -322,14 +331,19 @@ AVXcode: 1
322# 3DNow! uses the last imm byte as opcode extension. 331# 3DNow! uses the last imm byte as opcode extension.
3230f: 3DNow! Pq,Qq,Ib 3320f: 3DNow! Pq,Qq,Ib
324# 0x0f 0x10-0x1f 333# 0x0f 0x10-0x1f
32510: movups Vps,Wps (VEX) | movss Vss,Wss (F3),(VEX),(o128) | movupd Vpd,Wpd (66),(VEX) | movsd Vsd,Wsd (F2),(VEX),(o128) 334# NOTE: According to Intel SDM opcode map, vmovups and vmovupd has no operands
32611: movups Wps,Vps (VEX) | movss Wss,Vss (F3),(VEX),(o128) | movupd Wpd,Vpd (66),(VEX) | movsd Wsd,Vsd (F2),(VEX),(o128) 335# but it actually has operands. And also, vmovss and vmovsd only accept 128bit.
32712: movlps Vq,Mq (VEX),(o128) | movlpd Vq,Mq (66),(VEX),(o128) | movhlps Vq,Uq (VEX),(o128) | movddup Vq,Wq (F2),(VEX) | movsldup Vq,Wq (F3),(VEX) 336# MOVSS/MOVSD has too many forms(3) on SDM. This map just shows a typical form.
32813: mpvlps Mq,Vq (VEX),(o128) | movlpd Mq,Vq (66),(VEX),(o128) 337# Many AVX instructions lack v1 superscript, according to Intel AVX-Prgramming
32914: unpcklps Vps,Wq (VEX) | unpcklpd Vpd,Wq (66),(VEX) 338# Reference A.1
33015: unpckhps Vps,Wq (VEX) | unpckhpd Vpd,Wq (66),(VEX) 33910: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1)
33116: movhps Vq,Mq (VEX),(o128) | movhpd Vq,Mq (66),(VEX),(o128) | movlsps Vq,Uq (VEX),(o128) | movshdup Vq,Wq (F3),(VEX) 34011: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(v1)
33217: movhps Mq,Vq (VEX),(o128) | movhpd Mq,Vq (66),(VEX),(o128) 34112: vmovlps Vq,Hq,Mq (v1) | vmovhlps Vq,Hq,Uq (v1) | vmovlpd Vq,Hq,Mq (66),(v1) | vmovsldup Vx,Wx (F3) | vmovddup Vx,Wx (F2)
34213: vmovlps Mq,Vq (v1) | vmovlpd Mq,Vq (66),(v1)
34314: vunpcklps Vx,Hx,Wx | vunpcklpd Vx,Hx,Wx (66)
34415: vunpckhps Vx,Hx,Wx | vunpckhpd Vx,Hx,Wx (66)
34516: vmovhps Vdq,Hq,Mq (v1) | vmovlhps Vdq,Hq,Uq (v1) | vmovhpd Vdq,Hq,Mq (66),(v1) | vmovshdup Vx,Wx (F3)
34617: vmovhps Mq,Vq (v1) | vmovhpd Mq,Vq (66),(v1)
33318: Grp16 (1A) 34718: Grp16 (1A)
33419: 34819:
3351a: 3491a:
@@ -347,14 +361,14 @@ AVXcode: 1
34725: 36125:
34826: 36226:
34927: 36327:
35028: movaps Vps,Wps (VEX) | movapd Vpd,Wpd (66),(VEX) 36428: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66)
35129: movaps Wps,Vps (VEX) | movapd Wpd,Vpd (66),(VEX) 36529: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66)
3522a: cvtpi2ps Vps,Qpi | cvtsi2ss Vss,Ed/q (F3),(VEX),(o128) | cvtpi2pd Vpd,Qpi (66) | cvtsi2sd Vsd,Ed/q (F2),(VEX),(o128) 3662a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,Ey (F2),(v1)
3532b: movntps Mps,Vps (VEX) | movntpd Mpd,Vpd (66),(VEX) 3672b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66)
3542c: cvttps2pi Ppi,Wps | cvttss2si Gd/q,Wss (F3),(VEX),(o128) | cvttpd2pi Ppi,Wpd (66) | cvttsd2si Gd/q,Wsd (F2),(VEX),(o128) 3682c: cvttps2pi Ppi,Wps | cvttpd2pi Ppi,Wpd (66) | vcvttss2si Gy,Wss (F3),(v1) | vcvttsd2si Gy,Wsd (F2),(v1)
3552d: cvtps2pi Ppi,Wps | cvtss2si Gd/q,Wss (F3),(VEX),(o128) | cvtpd2pi Qpi,Wpd (66) | cvtsd2si Gd/q,Wsd (F2),(VEX),(o128) 3692d: cvtps2pi Ppi,Wps | cvtpd2pi Qpi,Wpd (66) | vcvtss2si Gy,Wss (F3),(v1) | vcvtsd2si Gy,Wsd (F2),(v1)
3562e: ucomiss Vss,Wss (VEX),(o128) | ucomisd Vsd,Wsd (66),(VEX),(o128) 3702e: vucomiss Vss,Wss (v1) | vucomisd Vsd,Wsd (66),(v1)
3572f: comiss Vss,Wss (VEX),(o128) | comisd Vsd,Wsd (66),(VEX),(o128) 3712f: vcomiss Vss,Wss (v1) | vcomisd Vsd,Wsd (66),(v1)
358# 0x0f 0x30-0x3f 372# 0x0f 0x30-0x3f
35930: WRMSR 37330: WRMSR
36031: RDTSC 37431: RDTSC
@@ -390,65 +404,66 @@ AVXcode: 1
3904e: CMOVLE/NG Gv,Ev 4044e: CMOVLE/NG Gv,Ev
3914f: CMOVNLE/G Gv,Ev 4054f: CMOVNLE/G Gv,Ev
392# 0x0f 0x50-0x5f 406# 0x0f 0x50-0x5f
39350: movmskps Gd/q,Ups (VEX) | movmskpd Gd/q,Upd (66),(VEX) 40750: vmovmskps Gy,Ups | vmovmskpd Gy,Upd (66)
39451: sqrtps Vps,Wps (VEX) | sqrtss Vss,Wss (F3),(VEX),(o128) | sqrtpd Vpd,Wpd (66),(VEX) | sqrtsd Vsd,Wsd (F2),(VEX),(o128) 40851: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F2),(v1)
39552: rsqrtps Vps,Wps (VEX) | rsqrtss Vss,Wss (F3),(VEX),(o128) 40952: vrsqrtps Vps,Wps | vrsqrtss Vss,Hss,Wss (F3),(v1)
39653: rcpps Vps,Wps (VEX) | rcpss Vss,Wss (F3),(VEX),(o128) 41053: vrcpps Vps,Wps | vrcpss Vss,Hss,Wss (F3),(v1)
39754: andps Vps,Wps (VEX) | andpd Vpd,Wpd (66),(VEX) 41154: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66)
39855: andnps Vps,Wps (VEX) | andnpd Vpd,Wpd (66),(VEX) 41255: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66)
39956: orps Vps,Wps (VEX) | orpd Vpd,Wpd (66),(VEX) 41356: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66)
40057: xorps Vps,Wps (VEX) | xorpd Vpd,Wpd (66),(VEX) 41457: vxorps Vps,Hps,Wps | vxorpd Vpd,Hpd,Wpd (66)
40158: addps Vps,Wps (VEX) | addss Vss,Wss (F3),(VEX),(o128) | addpd Vpd,Wpd (66),(VEX) | addsd Vsd,Wsd (F2),(VEX),(o128) 41558: vaddps Vps,Hps,Wps | vaddpd Vpd,Hpd,Wpd (66) | vaddss Vss,Hss,Wss (F3),(v1) | vaddsd Vsd,Hsd,Wsd (F2),(v1)
40259: mulps Vps,Wps (VEX) | mulss Vss,Wss (F3),(VEX),(o128) | mulpd Vpd,Wpd (66),(VEX) | mulsd Vsd,Wsd (F2),(VEX),(o128) 41659: vmulps Vps,Hps,Wps | vmulpd Vpd,Hpd,Wpd (66) | vmulss Vss,Hss,Wss (F3),(v1) | vmulsd Vsd,Hsd,Wsd (F2),(v1)
4035a: cvtps2pd Vpd,Wps (VEX) | cvtss2sd Vsd,Wss (F3),(VEX),(o128) | cvtpd2ps Vps,Wpd (66),(VEX) | cvtsd2ss Vsd,Wsd (F2),(VEX),(o128) 4175a: vcvtps2pd Vpd,Wps | vcvtpd2ps Vps,Wpd (66) | vcvtss2sd Vsd,Hx,Wss (F3),(v1) | vcvtsd2ss Vss,Hx,Wsd (F2),(v1)
4045b: cvtdq2ps Vps,Wdq (VEX) | cvtps2dq Vdq,Wps (66),(VEX) | cvttps2dq Vdq,Wps (F3),(VEX) 4185b: vcvtdq2ps Vps,Wdq | vcvtps2dq Vdq,Wps (66) | vcvttps2dq Vdq,Wps (F3)
4055c: subps Vps,Wps (VEX) | subss Vss,Wss (F3),(VEX),(o128) | subpd Vpd,Wpd (66),(VEX) | subsd Vsd,Wsd (F2),(VEX),(o128) 4195c: vsubps Vps,Hps,Wps | vsubpd Vpd,Hpd,Wpd (66) | vsubss Vss,Hss,Wss (F3),(v1) | vsubsd Vsd,Hsd,Wsd (F2),(v1)
4065d: minps Vps,Wps (VEX) | minss Vss,Wss (F3),(VEX),(o128) | minpd Vpd,Wpd (66),(VEX) | minsd Vsd,Wsd (F2),(VEX),(o128) 4205d: vminps Vps,Hps,Wps | vminpd Vpd,Hpd,Wpd (66) | vminss Vss,Hss,Wss (F3),(v1) | vminsd Vsd,Hsd,Wsd (F2),(v1)
4075e: divps Vps,Wps (VEX) | divss Vss,Wss (F3),(VEX),(o128) | divpd Vpd,Wpd (66),(VEX) | divsd Vsd,Wsd (F2),(VEX),(o128) 4215e: vdivps Vps,Hps,Wps | vdivpd Vpd,Hpd,Wpd (66) | vdivss Vss,Hss,Wss (F3),(v1) | vdivsd Vsd,Hsd,Wsd (F2),(v1)
4085f: maxps Vps,Wps (VEX) | maxss Vss,Wss (F3),(VEX),(o128) | maxpd Vpd,Wpd (66),(VEX) | maxsd Vsd,Wsd (F2),(VEX),(o128) 4225f: vmaxps Vps,Hps,Wps | vmaxpd Vpd,Hpd,Wpd (66) | vmaxss Vss,Hss,Wss (F3),(v1) | vmaxsd Vsd,Hsd,Wsd (F2),(v1)
409# 0x0f 0x60-0x6f 423# 0x0f 0x60-0x6f
41060: punpcklbw Pq,Qd | punpcklbw Vdq,Wdq (66),(VEX),(o128) 42460: punpcklbw Pq,Qd | vpunpcklbw Vx,Hx,Wx (66),(v1)
41161: punpcklwd Pq,Qd | punpcklwd Vdq,Wdq (66),(VEX),(o128) 42561: punpcklwd Pq,Qd | vpunpcklwd Vx,Hx,Wx (66),(v1)
41262: punpckldq Pq,Qd | punpckldq Vdq,Wdq (66),(VEX),(o128) 42662: punpckldq Pq,Qd | vpunpckldq Vx,Hx,Wx (66),(v1)
41363: packsswb Pq,Qq | packsswb Vdq,Wdq (66),(VEX),(o128) 42763: packsswb Pq,Qq | vpacksswb Vx,Hx,Wx (66),(v1)
41464: pcmpgtb Pq,Qq | pcmpgtb Vdq,Wdq (66),(VEX),(o128) 42864: pcmpgtb Pq,Qq | vpcmpgtb Vx,Hx,Wx (66),(v1)
41565: pcmpgtw Pq,Qq | pcmpgtw Vdq,Wdq (66),(VEX),(o128) 42965: pcmpgtw Pq,Qq | vpcmpgtw Vx,Hx,Wx (66),(v1)
41666: pcmpgtd Pq,Qq | pcmpgtd Vdq,Wdq (66),(VEX),(o128) 43066: pcmpgtd Pq,Qq | vpcmpgtd Vx,Hx,Wx (66),(v1)
41767: packuswb Pq,Qq | packuswb Vdq,Wdq (66),(VEX),(o128) 43167: packuswb Pq,Qq | vpackuswb Vx,Hx,Wx (66),(v1)
41868: punpckhbw Pq,Qd | punpckhbw Vdq,Wdq (66),(VEX),(o128) 43268: punpckhbw Pq,Qd | vpunpckhbw Vx,Hx,Wx (66),(v1)
41969: punpckhwd Pq,Qd | punpckhwd Vdq,Wdq (66),(VEX),(o128) 43369: punpckhwd Pq,Qd | vpunpckhwd Vx,Hx,Wx (66),(v1)
4206a: punpckhdq Pq,Qd | punpckhdq Vdq,Wdq (66),(VEX),(o128) 4346a: punpckhdq Pq,Qd | vpunpckhdq Vx,Hx,Wx (66),(v1)
4216b: packssdw Pq,Qd | packssdw Vdq,Wdq (66),(VEX),(o128) 4356b: packssdw Pq,Qd | vpackssdw Vx,Hx,Wx (66),(v1)
4226c: punpcklqdq Vdq,Wdq (66),(VEX),(o128) 4366c: vpunpcklqdq Vx,Hx,Wx (66),(v1)
4236d: punpckhqdq Vdq,Wdq (66),(VEX),(o128) 4376d: vpunpckhqdq Vx,Hx,Wx (66),(v1)
4246e: movd/q/ Pd,Ed/q | movd/q Vdq,Ed/q (66),(VEX),(o128) 4386e: movd/q Pd,Ey | vmovd/q Vy,Ey (66),(v1)
4256f: movq Pq,Qq | movdqa Vdq,Wdq (66),(VEX) | movdqu Vdq,Wdq (F3),(VEX) 4396f: movq Pq,Qq | vmovdqa Vx,Wx (66) | vmovdqu Vx,Wx (F3)
426# 0x0f 0x70-0x7f 440# 0x0f 0x70-0x7f
42770: pshufw Pq,Qq,Ib | pshufd Vdq,Wdq,Ib (66),(VEX),(o128) | pshufhw Vdq,Wdq,Ib (F3),(VEX),(o128) | pshuflw VdqWdq,Ib (F2),(VEX),(o128) 44170: pshufw Pq,Qq,Ib | vpshufd Vx,Wx,Ib (66),(v1) | vpshufhw Vx,Wx,Ib (F3),(v1) | vpshuflw Vx,Wx,Ib (F2),(v1)
42871: Grp12 (1A) 44271: Grp12 (1A)
42972: Grp13 (1A) 44372: Grp13 (1A)
43073: Grp14 (1A) 44473: Grp14 (1A)
43174: pcmpeqb Pq,Qq | pcmpeqb Vdq,Wdq (66),(VEX),(o128) 44574: pcmpeqb Pq,Qq | vpcmpeqb Vx,Hx,Wx (66),(v1)
43275: pcmpeqw Pq,Qq | pcmpeqw Vdq,Wdq (66),(VEX),(o128) 44675: pcmpeqw Pq,Qq | vpcmpeqw Vx,Hx,Wx (66),(v1)
43376: pcmpeqd Pq,Qq | pcmpeqd Vdq,Wdq (66),(VEX),(o128) 44776: pcmpeqd Pq,Qq | vpcmpeqd Vx,Hx,Wx (66),(v1)
43477: emms/vzeroupper/vzeroall (VEX) 448# Note: Remove (v), because vzeroall and vzeroupper becomes emms without VEX.
43578: VMREAD Ed/q,Gd/q 44977: emms | vzeroupper | vzeroall
43679: VMWRITE Gd/q,Ed/q 45078: VMREAD Ey,Gy
45179: VMWRITE Gy,Ey
4377a: 4527a:
4387b: 4537b:
4397c: haddps Vps,Wps (F2),(VEX) | haddpd Vpd,Wpd (66),(VEX) 4547c: vhaddpd Vpd,Hpd,Wpd (66) | vhaddps Vps,Hps,Wps (F2)
4407d: hsubps Vps,Wps (F2),(VEX) | hsubpd Vpd,Wpd (66),(VEX) 4557d: vhsubpd Vpd,Hpd,Wpd (66) | vhsubps Vps,Hps,Wps (F2)
4417e: movd/q Ed/q,Pd | movd/q Ed/q,Vdq (66),(VEX),(o128) | movq Vq,Wq (F3),(VEX),(o128) 4567e: movd/q Ey,Pd | vmovd/q Ey,Vy (66),(v1) | vmovq Vq,Wq (F3),(v1)
4427f: movq Qq,Pq | movdqa Wdq,Vdq (66),(VEX) | movdqu Wdq,Vdq (F3),(VEX) 4577f: movq Qq,Pq | vmovdqa Wx,Vx (66) | vmovdqu Wx,Vx (F3)
443# 0x0f 0x80-0x8f 458# 0x0f 0x80-0x8f
44480: JO Jz (f64) 45980: JO Jz (f64)
44581: JNO Jz (f64) 46081: JNO Jz (f64)
44682: JB/JNAE/JC Jz (f64) 46182: JB/JC/JNAE Jz (f64)
44783: JNB/JAE/JNC Jz (f64) 46283: JAE/JNB/JNC Jz (f64)
44884: JZ/JE Jz (f64) 46384: JE/JZ Jz (f64)
44985: JNZ/JNE Jz (f64) 46485: JNE/JNZ Jz (f64)
45086: JBE/JNA Jz (f64) 46586: JBE/JNA Jz (f64)
45187: JNBE/JA Jz (f64) 46687: JA/JNBE Jz (f64)
45288: JS Jz (f64) 46788: JS Jz (f64)
45389: JNS Jz (f64) 46889: JNS Jz (f64)
4548a: JP/JPE Jz (f64) 4698a: JP/JPE Jz (f64)
@@ -504,18 +519,18 @@ b8: JMPE | POPCNT Gv,Ev (F3)
504b9: Grp10 (1A) 519b9: Grp10 (1A)
505ba: Grp8 Ev,Ib (1A) 520ba: Grp8 Ev,Ib (1A)
506bb: BTC Ev,Gv 521bb: BTC Ev,Gv
507bc: BSF Gv,Ev 522bc: BSF Gv,Ev | TZCNT Gv,Ev (F3)
508bd: BSR Gv,Ev 523bd: BSR Gv,Ev | LZCNT Gv,Ev (F3)
509be: MOVSX Gv,Eb 524be: MOVSX Gv,Eb
510bf: MOVSX Gv,Ew 525bf: MOVSX Gv,Ew
511# 0x0f 0xc0-0xcf 526# 0x0f 0xc0-0xcf
512c0: XADD Eb,Gb 527c0: XADD Eb,Gb
513c1: XADD Ev,Gv 528c1: XADD Ev,Gv
514c2: cmpps Vps,Wps,Ib (VEX) | cmpss Vss,Wss,Ib (F3),(VEX),(o128) | cmppd Vpd,Wpd,Ib (66),(VEX) | cmpsd Vsd,Wsd,Ib (F2),(VEX) 529c2: 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)
515c3: movnti Md/q,Gd/q 530c3: movnti My,Gy
516c4: pinsrw Pq,Rd/q/Mw,Ib | pinsrw Vdq,Rd/q/Mw,Ib (66),(VEX),(o128) 531c4: pinsrw Pq,Ry/Mw,Ib | vpinsrw Vdq,Hdq,Ry/Mw,Ib (66),(v1)
517c5: pextrw Gd,Nq,Ib | pextrw Gd,Udq,Ib (66),(VEX),(o128) 532c5: pextrw Gd,Nq,Ib | vpextrw Gd,Udq,Ib (66),(v1)
518c6: shufps Vps,Wps,Ib (VEX) | shufpd Vpd,Wpd,Ib (66),(VEX) 533c6: vshufps Vps,Hps,Wps,Ib | vshufpd Vpd,Hpd,Wpd,Ib (66)
519c7: Grp9 (1A) 534c7: Grp9 (1A)
520c8: BSWAP RAX/EAX/R8/R8D 535c8: BSWAP RAX/EAX/R8/R8D
521c9: BSWAP RCX/ECX/R9/R9D 536c9: BSWAP RCX/ECX/R9/R9D
@@ -526,55 +541,55 @@ cd: BSWAP RBP/EBP/R13/R13D
526ce: BSWAP RSI/ESI/R14/R14D 541ce: BSWAP RSI/ESI/R14/R14D
527cf: BSWAP RDI/EDI/R15/R15D 542cf: BSWAP RDI/EDI/R15/R15D
528# 0x0f 0xd0-0xdf 543# 0x0f 0xd0-0xdf
529d0: addsubps Vps,Wps (F2),(VEX) | addsubpd Vpd,Wpd (66),(VEX) 544d0: vaddsubpd Vpd,Hpd,Wpd (66) | vaddsubps Vps,Hps,Wps (F2)
530d1: psrlw Pq,Qq | psrlw Vdq,Wdq (66),(VEX),(o128) 545d1: psrlw Pq,Qq | vpsrlw Vx,Hx,Wx (66),(v1)
531d2: psrld Pq,Qq | psrld Vdq,Wdq (66),(VEX),(o128) 546d2: psrld Pq,Qq | vpsrld Vx,Hx,Wx (66),(v1)
532d3: psrlq Pq,Qq | psrlq Vdq,Wdq (66),(VEX),(o128) 547d3: psrlq Pq,Qq | vpsrlq Vx,Hx,Wx (66),(v1)
533d4: paddq Pq,Qq | paddq Vdq,Wdq (66),(VEX),(o128) 548d4: paddq Pq,Qq | vpaddq Vx,Hx,Wx (66),(v1)
534d5: pmullw Pq,Qq | pmullw Vdq,Wdq (66),(VEX),(o128) 549d5: pmullw Pq,Qq | vpmullw Vx,Hx,Wx (66),(v1)
535d6: movq Wq,Vq (66),(VEX),(o128) | movq2dq Vdq,Nq (F3) | movdq2q Pq,Uq (F2) 550d6: vmovq Wq,Vq (66),(v1) | movq2dq Vdq,Nq (F3) | movdq2q Pq,Uq (F2)
536d7: pmovmskb Gd,Nq | pmovmskb Gd,Udq (66),(VEX),(o128) 551d7: pmovmskb Gd,Nq | vpmovmskb Gd,Ux (66),(v1)
537d8: psubusb Pq,Qq | psubusb Vdq,Wdq (66),(VEX),(o128) 552d8: psubusb Pq,Qq | vpsubusb Vx,Hx,Wx (66),(v1)
538d9: psubusw Pq,Qq | psubusw Vdq,Wdq (66),(VEX),(o128) 553d9: psubusw Pq,Qq | vpsubusw Vx,Hx,Wx (66),(v1)
539da: pminub Pq,Qq | pminub Vdq,Wdq (66),(VEX),(o128) 554da: pminub Pq,Qq | vpminub Vx,Hx,Wx (66),(v1)
540db: pand Pq,Qq | pand Vdq,Wdq (66),(VEX),(o128) 555db: pand Pq,Qq | vpand Vx,Hx,Wx (66),(v1)
541dc: paddusb Pq,Qq | paddusb Vdq,Wdq (66),(VEX),(o128) 556dc: paddusb Pq,Qq | vpaddusb Vx,Hx,Wx (66),(v1)
542dd: paddusw Pq,Qq | paddusw Vdq,Wdq (66),(VEX),(o128) 557dd: paddusw Pq,Qq | vpaddusw Vx,Hx,Wx (66),(v1)
543de: pmaxub Pq,Qq | pmaxub Vdq,Wdq (66),(VEX),(o128) 558de: pmaxub Pq,Qq | vpmaxub Vx,Hx,Wx (66),(v1)
544df: pandn Pq,Qq | pandn Vdq,Wdq (66),(VEX),(o128) 559df: pandn Pq,Qq | vpandn Vx,Hx,Wx (66),(v1)
545# 0x0f 0xe0-0xef 560# 0x0f 0xe0-0xef
546e0: pavgb Pq,Qq | pavgb Vdq,Wdq (66),(VEX),(o128) 561e0: pavgb Pq,Qq | vpavgb Vx,Hx,Wx (66),(v1)
547e1: psraw Pq,Qq | psraw Vdq,Wdq (66),(VEX),(o128) 562e1: psraw Pq,Qq | vpsraw Vx,Hx,Wx (66),(v1)
548e2: psrad Pq,Qq | psrad Vdq,Wdq (66),(VEX),(o128) 563e2: psrad Pq,Qq | vpsrad Vx,Hx,Wx (66),(v1)
549e3: pavgw Pq,Qq | pavgw Vdq,Wdq (66),(VEX),(o128) 564e3: pavgw Pq,Qq | vpavgw Vx,Hx,Wx (66),(v1)
550e4: pmulhuw Pq,Qq | pmulhuw Vdq,Wdq (66),(VEX),(o128) 565e4: pmulhuw Pq,Qq | vpmulhuw Vx,Hx,Wx (66),(v1)
551e5: pmulhw Pq,Qq | pmulhw Vdq,Wdq (66),(VEX),(o128) 566e5: pmulhw Pq,Qq | vpmulhw Vx,Hx,Wx (66),(v1)
552e6: cvtpd2dq Vdq,Wpd (F2),(VEX) | cvttpd2dq Vdq,Wpd (66),(VEX) | cvtdq2pd Vpd,Wdq (F3),(VEX) 567e6: vcvttpd2dq Vx,Wpd (66) | vcvtdq2pd Vx,Wdq (F3) | vcvtpd2dq Vx,Wpd (F2)
553e7: movntq Mq,Pq | movntdq Mdq,Vdq (66),(VEX) 568e7: movntq Mq,Pq | vmovntdq Mx,Vx (66)
554e8: psubsb Pq,Qq | psubsb Vdq,Wdq (66),(VEX),(o128) 569e8: psubsb Pq,Qq | vpsubsb Vx,Hx,Wx (66),(v1)
555e9: psubsw Pq,Qq | psubsw Vdq,Wdq (66),(VEX),(o128) 570e9: psubsw Pq,Qq | vpsubsw Vx,Hx,Wx (66),(v1)
556ea: pminsw Pq,Qq | pminsw Vdq,Wdq (66),(VEX),(o128) 571ea: pminsw Pq,Qq | vpminsw Vx,Hx,Wx (66),(v1)
557eb: por Pq,Qq | por Vdq,Wdq (66),(VEX),(o128) 572eb: por Pq,Qq | vpor Vx,Hx,Wx (66),(v1)
558ec: paddsb Pq,Qq | paddsb Vdq,Wdq (66),(VEX),(o128) 573ec: paddsb Pq,Qq | vpaddsb Vx,Hx,Wx (66),(v1)
559ed: paddsw Pq,Qq | paddsw Vdq,Wdq (66),(VEX),(o128) 574ed: paddsw Pq,Qq | vpaddsw Vx,Hx,Wx (66),(v1)
560ee: pmaxsw Pq,Qq | pmaxsw Vdq,Wdq (66),(VEX),(o128) 575ee: pmaxsw Pq,Qq | vpmaxsw Vx,Hx,Wx (66),(v1)
561ef: pxor Pq,Qq | pxor Vdq,Wdq (66),(VEX),(o128) 576ef: pxor Pq,Qq | vpxor Vx,Hx,Wx (66),(v1)
562# 0x0f 0xf0-0xff 577# 0x0f 0xf0-0xff
563f0: lddqu Vdq,Mdq (F2),(VEX) 578f0: vlddqu Vx,Mx (F2)
564f1: psllw Pq,Qq | psllw Vdq,Wdq (66),(VEX),(o128) 579f1: psllw Pq,Qq | vpsllw Vx,Hx,Wx (66),(v1)
565f2: pslld Pq,Qq | pslld Vdq,Wdq (66),(VEX),(o128) 580f2: pslld Pq,Qq | vpslld Vx,Hx,Wx (66),(v1)
566f3: psllq Pq,Qq | psllq Vdq,Wdq (66),(VEX),(o128) 581f3: psllq Pq,Qq | vpsllq Vx,Hx,Wx (66),(v1)
567f4: pmuludq Pq,Qq | pmuludq Vdq,Wdq (66),(VEX),(o128) 582f4: pmuludq Pq,Qq | vpmuludq Vx,Hx,Wx (66),(v1)
568f5: pmaddwd Pq,Qq | pmaddwd Vdq,Wdq (66),(VEX),(o128) 583f5: pmaddwd Pq,Qq | vpmaddwd Vx,Hx,Wx (66),(v1)
569f6: psadbw Pq,Qq | psadbw Vdq,Wdq (66),(VEX),(o128) 584f6: psadbw Pq,Qq | vpsadbw Vx,Hx,Wx (66),(v1)
570f7: maskmovq Pq,Nq | maskmovdqu Vdq,Udq (66),(VEX),(o128) 585f7: maskmovq Pq,Nq | vmaskmovdqu Vx,Ux (66),(v1)
571f8: psubb Pq,Qq | psubb Vdq,Wdq (66),(VEX),(o128) 586f8: psubb Pq,Qq | vpsubb Vx,Hx,Wx (66),(v1)
572f9: psubw Pq,Qq | psubw Vdq,Wdq (66),(VEX),(o128) 587f9: psubw Pq,Qq | vpsubw Vx,Hx,Wx (66),(v1)
573fa: psubd Pq,Qq | psubd Vdq,Wdq (66),(VEX),(o128) 588fa: psubd Pq,Qq | vpsubd Vx,Hx,Wx (66),(v1)
574fb: psubq Pq,Qq | psubq Vdq,Wdq (66),(VEX),(o128) 589fb: psubq Pq,Qq | vpsubq Vx,Hx,Wx (66),(v1)
575fc: paddb Pq,Qq | paddb Vdq,Wdq (66),(VEX),(o128) 590fc: paddb Pq,Qq | vpaddb Vx,Hx,Wx (66),(v1)
576fd: paddw Pq,Qq | paddw Vdq,Wdq (66),(VEX),(o128) 591fd: paddw Pq,Qq | vpaddw Vx,Hx,Wx (66),(v1)
577fe: paddd Pq,Qq | paddd Vdq,Wdq (66),(VEX),(o128) 592fe: paddd Pq,Qq | vpaddd Vx,Hx,Wx (66),(v1)
578ff: 593ff:
579EndTable 594EndTable
580 595
@@ -582,155 +597,193 @@ Table: 3-byte opcode 1 (0x0f 0x38)
582Referrer: 3-byte escape 1 597Referrer: 3-byte escape 1
583AVXcode: 2 598AVXcode: 2
584# 0x0f 0x38 0x00-0x0f 599# 0x0f 0x38 0x00-0x0f
58500: pshufb Pq,Qq | pshufb Vdq,Wdq (66),(VEX),(o128) 60000: pshufb Pq,Qq | vpshufb Vx,Hx,Wx (66),(v1)
58601: phaddw Pq,Qq | phaddw Vdq,Wdq (66),(VEX),(o128) 60101: phaddw Pq,Qq | vphaddw Vx,Hx,Wx (66),(v1)
58702: phaddd Pq,Qq | phaddd Vdq,Wdq (66),(VEX),(o128) 60202: phaddd Pq,Qq | vphaddd Vx,Hx,Wx (66),(v1)
58803: phaddsw Pq,Qq | phaddsw Vdq,Wdq (66),(VEX),(o128) 60303: phaddsw Pq,Qq | vphaddsw Vx,Hx,Wx (66),(v1)
58904: pmaddubsw Pq,Qq | pmaddubsw Vdq,Wdq (66),(VEX),(o128) 60404: pmaddubsw Pq,Qq | vpmaddubsw Vx,Hx,Wx (66),(v1)
59005: phsubw Pq,Qq | phsubw Vdq,Wdq (66),(VEX),(o128) 60505: phsubw Pq,Qq | vphsubw Vx,Hx,Wx (66),(v1)
59106: phsubd Pq,Qq | phsubd Vdq,Wdq (66),(VEX),(o128) 60606: phsubd Pq,Qq | vphsubd Vx,Hx,Wx (66),(v1)
59207: phsubsw Pq,Qq | phsubsw Vdq,Wdq (66),(VEX),(o128) 60707: phsubsw Pq,Qq | vphsubsw Vx,Hx,Wx (66),(v1)
59308: psignb Pq,Qq | psignb Vdq,Wdq (66),(VEX),(o128) 60808: psignb Pq,Qq | vpsignb Vx,Hx,Wx (66),(v1)
59409: psignw Pq,Qq | psignw Vdq,Wdq (66),(VEX),(o128) 60909: psignw Pq,Qq | vpsignw Vx,Hx,Wx (66),(v1)
5950a: psignd Pq,Qq | psignd Vdq,Wdq (66),(VEX),(o128) 6100a: psignd Pq,Qq | vpsignd Vx,Hx,Wx (66),(v1)
5960b: pmulhrsw Pq,Qq | pmulhrsw Vdq,Wdq (66),(VEX),(o128) 6110b: pmulhrsw Pq,Qq | vpmulhrsw Vx,Hx,Wx (66),(v1)
5970c: Vpermilps /r (66),(oVEX) 6120c: vpermilps Vx,Hx,Wx (66),(v)
5980d: Vpermilpd /r (66),(oVEX) 6130d: vpermilpd Vx,Hx,Wx (66),(v)
5990e: vtestps /r (66),(oVEX) 6140e: vtestps Vx,Wx (66),(v)
6000f: vtestpd /r (66),(oVEX) 6150f: vtestpd Vx,Wx (66),(v)
601# 0x0f 0x38 0x10-0x1f 616# 0x0f 0x38 0x10-0x1f
60210: pblendvb Vdq,Wdq (66) 61710: pblendvb Vdq,Wdq (66)
60311: 61811:
60412: 61912:
60513: 62013: vcvtph2ps Vx,Wx,Ib (66),(v)
60614: blendvps Vdq,Wdq (66) 62114: blendvps Vdq,Wdq (66)
60715: blendvpd Vdq,Wdq (66) 62215: blendvpd Vdq,Wdq (66)
60816: 62316: vpermps Vqq,Hqq,Wqq (66),(v)
60917: ptest Vdq,Wdq (66),(VEX) 62417: vptest Vx,Wx (66)
61018: vbroadcastss /r (66),(oVEX) 62518: vbroadcastss Vx,Wd (66),(v)
61119: vbroadcastsd /r (66),(oVEX),(o256) 62619: vbroadcastsd Vqq,Wq (66),(v)
6121a: vbroadcastf128 /r (66),(oVEX),(o256) 6271a: vbroadcastf128 Vqq,Mdq (66),(v)
6131b: 6281b:
6141c: pabsb Pq,Qq | pabsb Vdq,Wdq (66),(VEX),(o128) 6291c: pabsb Pq,Qq | vpabsb Vx,Wx (66),(v1)
6151d: pabsw Pq,Qq | pabsw Vdq,Wdq (66),(VEX),(o128) 6301d: pabsw Pq,Qq | vpabsw Vx,Wx (66),(v1)
6161e: pabsd Pq,Qq | pabsd Vdq,Wdq (66),(VEX),(o128) 6311e: pabsd Pq,Qq | vpabsd Vx,Wx (66),(v1)
6171f: 6321f:
618# 0x0f 0x38 0x20-0x2f 633# 0x0f 0x38 0x20-0x2f
61920: pmovsxbw Vdq,Udq/Mq (66),(VEX),(o128) 63420: vpmovsxbw Vx,Ux/Mq (66),(v1)
62021: pmovsxbd Vdq,Udq/Md (66),(VEX),(o128) 63521: vpmovsxbd Vx,Ux/Md (66),(v1)
62122: pmovsxbq Vdq,Udq/Mw (66),(VEX),(o128) 63622: vpmovsxbq Vx,Ux/Mw (66),(v1)
62223: pmovsxwd Vdq,Udq/Mq (66),(VEX),(o128) 63723: vpmovsxwd Vx,Ux/Mq (66),(v1)
62324: pmovsxwq Vdq,Udq/Md (66),(VEX),(o128) 63824: vpmovsxwq Vx,Ux/Md (66),(v1)
62425: pmovsxdq Vdq,Udq/Mq (66),(VEX),(o128) 63925: vpmovsxdq Vx,Ux/Mq (66),(v1)
62526: 64026:
62627: 64127:
62728: pmuldq Vdq,Wdq (66),(VEX),(o128) 64228: vpmuldq Vx,Hx,Wx (66),(v1)
62829: pcmpeqq Vdq,Wdq (66),(VEX),(o128) 64329: vpcmpeqq Vx,Hx,Wx (66),(v1)
6292a: movntdqa Vdq,Mdq (66),(VEX),(o128) 6442a: vmovntdqa Vx,Mx (66),(v1)
6302b: packusdw Vdq,Wdq (66),(VEX),(o128) 6452b: vpackusdw Vx,Hx,Wx (66),(v1)
6312c: vmaskmovps(ld) /r (66),(oVEX) 6462c: vmaskmovps Vx,Hx,Mx (66),(v)
6322d: vmaskmovpd(ld) /r (66),(oVEX) 6472d: vmaskmovpd Vx,Hx,Mx (66),(v)
6332e: vmaskmovps(st) /r (66),(oVEX) 6482e: vmaskmovps Mx,Hx,Vx (66),(v)
6342f: vmaskmovpd(st) /r (66),(oVEX) 6492f: vmaskmovpd Mx,Hx,Vx (66),(v)
635# 0x0f 0x38 0x30-0x3f 650# 0x0f 0x38 0x30-0x3f
63630: pmovzxbw Vdq,Udq/Mq (66),(VEX),(o128) 65130: vpmovzxbw Vx,Ux/Mq (66),(v1)
63731: pmovzxbd Vdq,Udq/Md (66),(VEX),(o128) 65231: vpmovzxbd Vx,Ux/Md (66),(v1)
63832: pmovzxbq Vdq,Udq/Mw (66),(VEX),(o128) 65332: vpmovzxbq Vx,Ux/Mw (66),(v1)
63933: pmovzxwd Vdq,Udq/Mq (66),(VEX),(o128) 65433: vpmovzxwd Vx,Ux/Mq (66),(v1)
64034: pmovzxwq Vdq,Udq/Md (66),(VEX),(o128) 65534: vpmovzxwq Vx,Ux/Md (66),(v1)
64135: pmovzxdq Vdq,Udq/Mq (66),(VEX),(o128) 65635: vpmovzxdq Vx,Ux/Mq (66),(v1)
64236: 65736: vpermd Vqq,Hqq,Wqq (66),(v)
64337: pcmpgtq Vdq,Wdq (66),(VEX),(o128) 65837: vpcmpgtq Vx,Hx,Wx (66),(v1)
64438: pminsb Vdq,Wdq (66),(VEX),(o128) 65938: vpminsb Vx,Hx,Wx (66),(v1)
64539: pminsd Vdq,Wdq (66),(VEX),(o128) 66039: vpminsd Vx,Hx,Wx (66),(v1)
6463a: pminuw Vdq,Wdq (66),(VEX),(o128) 6613a: vpminuw Vx,Hx,Wx (66),(v1)
6473b: pminud Vdq,Wdq (66),(VEX),(o128) 6623b: vpminud Vx,Hx,Wx (66),(v1)
6483c: pmaxsb Vdq,Wdq (66),(VEX),(o128) 6633c: vpmaxsb Vx,Hx,Wx (66),(v1)
6493d: pmaxsd Vdq,Wdq (66),(VEX),(o128) 6643d: vpmaxsd Vx,Hx,Wx (66),(v1)
6503e: pmaxuw Vdq,Wdq (66),(VEX),(o128) 6653e: vpmaxuw Vx,Hx,Wx (66),(v1)
6513f: pmaxud Vdq,Wdq (66),(VEX),(o128) 6663f: vpmaxud Vx,Hx,Wx (66),(v1)
652# 0x0f 0x38 0x40-0x8f 667# 0x0f 0x38 0x40-0x8f
65340: pmulld Vdq,Wdq (66),(VEX),(o128) 66840: vpmulld Vx,Hx,Wx (66),(v1)
65441: phminposuw Vdq,Wdq (66),(VEX),(o128) 66941: vphminposuw Vdq,Wdq (66),(v1)
65580: INVEPT Gd/q,Mdq (66) 67042:
65681: INVPID Gd/q,Mdq (66) 67143:
67244:
67345: vpsrlvd/q Vx,Hx,Wx (66),(v)
67446: vpsravd Vx,Hx,Wx (66),(v)
67547: vpsllvd/q Vx,Hx,Wx (66),(v)
676# Skip 0x48-0x57
67758: vpbroadcastd Vx,Wx (66),(v)
67859: vpbroadcastq Vx,Wx (66),(v)
6795a: vbroadcasti128 Vqq,Mdq (66),(v)
680# Skip 0x5b-0x77
68178: vpbroadcastb Vx,Wx (66),(v)
68279: vpbroadcastw Vx,Wx (66),(v)
683# Skip 0x7a-0x7f
68480: INVEPT Gy,Mdq (66)
68581: INVPID Gy,Mdq (66)
68682: INVPCID Gy,Mdq (66)
6878c: vpmaskmovd/q Vx,Hx,Mx (66),(v)
6888e: vpmaskmovd/q Mx,Vx,Hx (66),(v)
657# 0x0f 0x38 0x90-0xbf (FMA) 689# 0x0f 0x38 0x90-0xbf (FMA)
65896: vfmaddsub132pd/ps /r (66),(VEX) 69090: vgatherdd/q Vx,Hx,Wx (66),(v)
65997: vfmsubadd132pd/ps /r (66),(VEX) 69191: vgatherqd/q Vx,Hx,Wx (66),(v)
66098: vfmadd132pd/ps /r (66),(VEX) 69292: vgatherdps/d Vx,Hx,Wx (66),(v)
66199: vfmadd132sd/ss /r (66),(VEX),(o128) 69393: vgatherqps/d Vx,Hx,Wx (66),(v)
6629a: vfmsub132pd/ps /r (66),(VEX) 69494:
6639b: vfmsub132sd/ss /r (66),(VEX),(o128) 69595:
6649c: vfnmadd132pd/ps /r (66),(VEX) 69696: vfmaddsub132ps/d Vx,Hx,Wx (66),(v)
6659d: vfnmadd132sd/ss /r (66),(VEX),(o128) 69797: vfmsubadd132ps/d Vx,Hx,Wx (66),(v)
6669e: vfnmsub132pd/ps /r (66),(VEX) 69898: vfmadd132ps/d Vx,Hx,Wx (66),(v)
6679f: vfnmsub132sd/ss /r (66),(VEX),(o128) 69999: vfmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
668a6: vfmaddsub213pd/ps /r (66),(VEX) 7009a: vfmsub132ps/d Vx,Hx,Wx (66),(v)
669a7: vfmsubadd213pd/ps /r (66),(VEX) 7019b: vfmsub132ss/d Vx,Hx,Wx (66),(v),(v1)
670a8: vfmadd213pd/ps /r (66),(VEX) 7029c: vfnmadd132ps/d Vx,Hx,Wx (66),(v)
671a9: vfmadd213sd/ss /r (66),(VEX),(o128) 7039d: vfnmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
672aa: vfmsub213pd/ps /r (66),(VEX) 7049e: vfnmsub132ps/d Vx,Hx,Wx (66),(v)
673ab: vfmsub213sd/ss /r (66),(VEX),(o128) 7059f: vfnmsub132ss/d Vx,Hx,Wx (66),(v),(v1)
674ac: vfnmadd213pd/ps /r (66),(VEX) 706a6: vfmaddsub213ps/d Vx,Hx,Wx (66),(v)
675ad: vfnmadd213sd/ss /r (66),(VEX),(o128) 707a7: vfmsubadd213ps/d Vx,Hx,Wx (66),(v)
676ae: vfnmsub213pd/ps /r (66),(VEX) 708a8: vfmadd213ps/d Vx,Hx,Wx (66),(v)
677af: vfnmsub213sd/ss /r (66),(VEX),(o128) 709a9: vfmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
678b6: vfmaddsub231pd/ps /r (66),(VEX) 710aa: vfmsub213ps/d Vx,Hx,Wx (66),(v)
679b7: vfmsubadd231pd/ps /r (66),(VEX) 711ab: vfmsub213ss/d Vx,Hx,Wx (66),(v),(v1)
680b8: vfmadd231pd/ps /r (66),(VEX) 712ac: vfnmadd213ps/d Vx,Hx,Wx (66),(v)
681b9: vfmadd231sd/ss /r (66),(VEX),(o128) 713ad: vfnmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
682ba: vfmsub231pd/ps /r (66),(VEX) 714ae: vfnmsub213ps/d Vx,Hx,Wx (66),(v)
683bb: vfmsub231sd/ss /r (66),(VEX),(o128) 715af: vfnmsub213ss/d Vx,Hx,Wx (66),(v),(v1)
684bc: vfnmadd231pd/ps /r (66),(VEX) 716b6: vfmaddsub231ps/d Vx,Hx,Wx (66),(v)
685bd: vfnmadd231sd/ss /r (66),(VEX),(o128) 717b7: vfmsubadd231ps/d Vx,Hx,Wx (66),(v)
686be: vfnmsub231pd/ps /r (66),(VEX) 718b8: vfmadd231ps/d Vx,Hx,Wx (66),(v)
687bf: vfnmsub231sd/ss /r (66),(VEX),(o128) 719b9: vfmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
720ba: vfmsub231ps/d Vx,Hx,Wx (66),(v)
721bb: vfmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
722bc: vfnmadd231ps/d Vx,Hx,Wx (66),(v)
723bd: vfnmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
724be: vfnmsub231ps/d Vx,Hx,Wx (66),(v)
725bf: vfnmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
688# 0x0f 0x38 0xc0-0xff 726# 0x0f 0x38 0xc0-0xff
689db: aesimc Vdq,Wdq (66),(VEX),(o128) 727db: VAESIMC Vdq,Wdq (66),(v1)
690dc: aesenc Vdq,Wdq (66),(VEX),(o128) 728dc: VAESENC Vdq,Hdq,Wdq (66),(v1)
691dd: aesenclast Vdq,Wdq (66),(VEX),(o128) 729dd: VAESENCLAST Vdq,Hdq,Wdq (66),(v1)
692de: aesdec Vdq,Wdq (66),(VEX),(o128) 730de: VAESDEC Vdq,Hdq,Wdq (66),(v1)
693df: aesdeclast Vdq,Wdq (66),(VEX),(o128) 731df: VAESDECLAST Vdq,Hdq,Wdq (66),(v1)
694f0: MOVBE Gv,Mv | CRC32 Gd,Eb (F2) 732f0: MOVBE Gy,My | MOVBE Gw,Mw (66) | CRC32 Gd,Eb (F2)
695f1: MOVBE Mv,Gv | CRC32 Gd,Ev (F2) 733f1: MOVBE My,Gy | MOVBE Mw,Gw (66) | CRC32 Gd,Ey (F2)
734f2: ANDN Gy,By,Ey (v)
735f3: Grp17 (1A)
736f5: BZHI Gy,Ey,By (v) | PEXT Gy,By,Ey (F3),(v) | PDEP Gy,By,Ey (F2),(v)
737f6: MULX By,Gy,rDX,Ey (F2),(v)
738f7: BEXTR Gy,Ey,By (v) | SHLX Gy,Ey,By (66),(v) | SARX Gy,Ey,By (F3),(v) | SHRX Gy,Ey,By (F2),(v)
696EndTable 739EndTable
697 740
698Table: 3-byte opcode 2 (0x0f 0x3a) 741Table: 3-byte opcode 2 (0x0f 0x3a)
699Referrer: 3-byte escape 2 742Referrer: 3-byte escape 2
700AVXcode: 3 743AVXcode: 3
701# 0x0f 0x3a 0x00-0xff 744# 0x0f 0x3a 0x00-0xff
70204: vpermilps /r,Ib (66),(oVEX) 74500: vpermq Vqq,Wqq,Ib (66),(v)
70305: vpermilpd /r,Ib (66),(oVEX) 74601: vpermpd Vqq,Wqq,Ib (66),(v)
70406: vperm2f128 /r,Ib (66),(oVEX),(o256) 74702: vpblendd Vx,Hx,Wx,Ib (66),(v)
70508: roundps Vdq,Wdq,Ib (66),(VEX) 74803:
70609: roundpd Vdq,Wdq,Ib (66),(VEX) 74904: vpermilps Vx,Wx,Ib (66),(v)
7070a: roundss Vss,Wss,Ib (66),(VEX),(o128) 75005: vpermilpd Vx,Wx,Ib (66),(v)
7080b: roundsd Vsd,Wsd,Ib (66),(VEX),(o128) 75106: vperm2f128 Vqq,Hqq,Wqq,Ib (66),(v)
7090c: blendps Vdq,Wdq,Ib (66),(VEX) 75207:
7100d: blendpd Vdq,Wdq,Ib (66),(VEX) 75308: vroundps Vx,Wx,Ib (66)
7110e: pblendw Vdq,Wdq,Ib (66),(VEX),(o128) 75409: vroundpd Vx,Wx,Ib (66)
7120f: palignr Pq,Qq,Ib | palignr Vdq,Wdq,Ib (66),(VEX),(o128) 7550a: vroundss Vss,Wss,Ib (66),(v1)
71314: pextrb Rd/Mb,Vdq,Ib (66),(VEX),(o128) 7560b: vroundsd Vsd,Wsd,Ib (66),(v1)
71415: pextrw Rd/Mw,Vdq,Ib (66),(VEX),(o128) 7570c: vblendps Vx,Hx,Wx,Ib (66)
71516: pextrd/pextrq Ed/q,Vdq,Ib (66),(VEX),(o128) 7580d: vblendpd Vx,Hx,Wx,Ib (66)
71617: extractps Ed,Vdq,Ib (66),(VEX),(o128) 7590e: vpblendw Vx,Hx,Wx,Ib (66),(v1)
71718: vinsertf128 /r,Ib (66),(oVEX),(o256) 7600f: palignr Pq,Qq,Ib | vpalignr Vx,Hx,Wx,Ib (66),(v1)
71819: vextractf128 /r,Ib (66),(oVEX),(o256) 76114: vpextrb Rd/Mb,Vdq,Ib (66),(v1)
71920: pinsrb Vdq,Rd/q/Mb,Ib (66),(VEX),(o128) 76215: vpextrw Rd/Mw,Vdq,Ib (66),(v1)
72021: insertps Vdq,Udq/Md,Ib (66),(VEX),(o128) 76316: vpextrd/q Ey,Vdq,Ib (66),(v1)
72122: pinsrd/pinsrq Vdq,Ed/q,Ib (66),(VEX),(o128) 76417: vextractps Ed,Vdq,Ib (66),(v1)
72240: dpps Vdq,Wdq,Ib (66),(VEX) 76518: vinsertf128 Vqq,Hqq,Wqq,Ib (66),(v)
72341: dppd Vdq,Wdq,Ib (66),(VEX),(o128) 76619: vextractf128 Wdq,Vqq,Ib (66),(v)
72442: mpsadbw Vdq,Wdq,Ib (66),(VEX),(o128) 7671d: vcvtps2ph Wx,Vx,Ib (66),(v)
72544: pclmulq Vdq,Wdq,Ib (66),(VEX),(o128) 76820: vpinsrb Vdq,Hdq,Ry/Mb,Ib (66),(v1)
7264a: vblendvps /r,Ib (66),(oVEX) 76921: vinsertps Vdq,Hdq,Udq/Md,Ib (66),(v1)
7274b: vblendvpd /r,Ib (66),(oVEX) 77022: vpinsrd/q Vdq,Hdq,Ey,Ib (66),(v1)
7284c: vpblendvb /r,Ib (66),(oVEX),(o128) 77138: vinserti128 Vqq,Hqq,Wqq,Ib (66),(v)
72960: pcmpestrm Vdq,Wdq,Ib (66),(VEX),(o128) 77239: vextracti128 Wdq,Vqq,Ib (66),(v)
73061: pcmpestri Vdq,Wdq,Ib (66),(VEX),(o128) 77340: vdpps Vx,Hx,Wx,Ib (66)
73162: pcmpistrm Vdq,Wdq,Ib (66),(VEX),(o128) 77441: vdppd Vdq,Hdq,Wdq,Ib (66),(v1)
73263: pcmpistri Vdq,Wdq,Ib (66),(VEX),(o128) 77542: vmpsadbw Vx,Hx,Wx,Ib (66),(v1)
733df: aeskeygenassist Vdq,Wdq,Ib (66),(VEX),(o128) 77644: vpclmulqdq Vdq,Hdq,Wdq,Ib (66),(v1)
77746: vperm2i128 Vqq,Hqq,Wqq,Ib (66),(v)
7784a: vblendvps Vx,Hx,Wx,Lx (66),(v)
7794b: vblendvpd Vx,Hx,Wx,Lx (66),(v)
7804c: vpblendvb Vx,Hx,Wx,Lx (66),(v1)
78160: vpcmpestrm Vdq,Wdq,Ib (66),(v1)
78261: vpcmpestri Vdq,Wdq,Ib (66),(v1)
78362: vpcmpistrm Vdq,Wdq,Ib (66),(v1)
78463: vpcmpistri Vdq,Wdq,Ib (66),(v1)
785df: VAESKEYGEN Vdq,Wdq,Ib (66),(v1)
786f0: RORX Gy,Ey,Ib (F2),(v)
734EndTable 787EndTable
735 788
736GrpTable: Grp1 789GrpTable: Grp1
@@ -792,7 +845,7 @@ GrpTable: Grp5
7922: CALLN Ev (f64) 8452: CALLN Ev (f64)
7933: CALLF Ep 8463: CALLF Ep
7944: JMPN Ev (f64) 8474: JMPN Ev (f64)
7955: JMPF Ep 8485: JMPF Mp
7966: PUSH Ev (d64) 8496: PUSH Ev (d64)
7977: 8507:
798EndTable 851EndTable
@@ -809,7 +862,7 @@ EndTable
809GrpTable: Grp7 862GrpTable: Grp7
8100: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) 8630: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B)
8111: SIDT Ms | MONITOR (000),(11B) | MWAIT (001) 8641: SIDT Ms | MONITOR (000),(11B) | MWAIT (001)
8122: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) 8652: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B)
8133: LIDT Ms 8663: LIDT Ms
8144: SMSW Mw/Rv 8674: SMSW Mw/Rv
8155: 8685:
@@ -826,44 +879,45 @@ EndTable
826 879
827GrpTable: Grp9 880GrpTable: Grp9
8281: CMPXCHG8B/16B Mq/Mdq 8811: CMPXCHG8B/16B Mq/Mdq
8296: VMPTRLD Mq | VMCLEAR Mq (66) | VMXON Mq (F3) 8826: VMPTRLD Mq | VMCLEAR Mq (66) | VMXON Mq (F3) | RDRAND Rv (11B)
8307: VMPTRST Mq 8837: VMPTRST Mq | VMPTRST Mq (F3)
831EndTable 884EndTable
832 885
833GrpTable: Grp10 886GrpTable: Grp10
834EndTable 887EndTable
835 888
836GrpTable: Grp11 889GrpTable: Grp11
890# Note: the operands are given by group opcode
8370: MOV 8910: MOV
838EndTable 892EndTable
839 893
840GrpTable: Grp12 894GrpTable: Grp12
8412: psrlw Nq,Ib (11B) | psrlw Udq,Ib (66),(11B),(VEX),(o128) 8952: psrlw Nq,Ib (11B) | vpsrlw Hx,Ux,Ib (66),(11B),(v1)
8424: psraw Nq,Ib (11B) | psraw Udq,Ib (66),(11B),(VEX),(o128) 8964: psraw Nq,Ib (11B) | vpsraw Hx,Ux,Ib (66),(11B),(v1)
8436: psllw Nq,Ib (11B) | psllw Udq,Ib (66),(11B),(VEX),(o128) 8976: psllw Nq,Ib (11B) | vpsllw Hx,Ux,Ib (66),(11B),(v1)
844EndTable 898EndTable
845 899
846GrpTable: Grp13 900GrpTable: Grp13
8472: psrld Nq,Ib (11B) | psrld Udq,Ib (66),(11B),(VEX),(o128) 9012: psrld Nq,Ib (11B) | vpsrld Hx,Ux,Ib (66),(11B),(v1)
8484: psrad Nq,Ib (11B) | psrad Udq,Ib (66),(11B),(VEX),(o128) 9024: psrad Nq,Ib (11B) | vpsrad Hx,Ux,Ib (66),(11B),(v1)
8496: pslld Nq,Ib (11B) | pslld Udq,Ib (66),(11B),(VEX),(o128) 9036: pslld Nq,Ib (11B) | vpslld Hx,Ux,Ib (66),(11B),(v1)
850EndTable 904EndTable
851 905
852GrpTable: Grp14 906GrpTable: Grp14
8532: psrlq Nq,Ib (11B) | psrlq Udq,Ib (66),(11B),(VEX),(o128) 9072: psrlq Nq,Ib (11B) | vpsrlq Hx,Ux,Ib (66),(11B),(v1)
8543: psrldq Udq,Ib (66),(11B),(VEX),(o128) 9083: vpsrldq Hx,Ux,Ib (66),(11B),(v1)
8556: psllq Nq,Ib (11B) | psllq Udq,Ib (66),(11B),(VEX),(o128) 9096: psllq Nq,Ib (11B) | vpsllq Hx,Ux,Ib (66),(11B),(v1)
8567: pslldq Udq,Ib (66),(11B),(VEX),(o128) 9107: vpslldq Hx,Ux,Ib (66),(11B),(v1)
857EndTable 911EndTable
858 912
859GrpTable: Grp15 913GrpTable: Grp15
8600: fxsave 9140: fxsave | RDFSBASE Ry (F3),(11B)
8611: fxstor 9151: fxstor | RDGSBASE Ry (F3),(11B)
8622: ldmxcsr (VEX) 9162: vldmxcsr Md (v1) | WRFSBASE Ry (F3),(11B)
8633: stmxcsr (VEX) 9173: vstmxcsr Md (v1) | WRGSBASE Ry (F3),(11B)
8644: XSAVE 9184: XSAVE
8655: XRSTOR | lfence (11B) 9195: XRSTOR | lfence (11B)
8666: mfence (11B) 9206: XSAVEOPT | mfence (11B)
8677: clflush | sfence (11B) 9217: clflush | sfence (11B)
868EndTable 922EndTable
869 923
@@ -874,6 +928,12 @@ GrpTable: Grp16
8743: prefetch T2 9283: prefetch T2
875EndTable 929EndTable
876 930
931GrpTable: Grp17
9321: BLSR By,Ey (v)
9332: BLSMSK By,Ey (v)
9343: BLSI By,Ey (v)
935EndTable
936
877# AMD's Prefetch Group 937# AMD's Prefetch Group
878GrpTable: GrpP 938GrpTable: GrpP
8790: PREFETCH 9390: PREFETCH