x86-opcode-map.txt 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956
  1. # x86 Opcode Maps
  2. #
  3. # This is (mostly) based on following documentations.
  4. # - Intel(R) 64 and IA-32 Architectures Software Developer's Manual Vol.2
  5. # (#325383-040US, October 2011)
  6. # - Intel(R) Advanced Vector Extensions Programming Reference
  7. # (#319433-011,JUNE 2011).
  8. #
  9. #<Opcode maps>
  10. # Table: table-name
  11. # Referrer: escaped-name
  12. # AVXcode: avx-code
  13. # opcode: mnemonic|GrpXXX [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...]
  14. # (or)
  15. # opcode: escape # escaped-name
  16. # EndTable
  17. #
  18. #<group maps>
  19. # GrpTable: GrpXXX
  20. # reg: mnemonic [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...]
  21. # EndTable
  22. #
  23. # AVX Superscripts
  24. # (v): this opcode requires VEX prefix.
  25. # (v1): this opcode only supports 128bit VEX.
  26. #
  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
  31. #
  32. Table: one byte opcode
  33. Referrer:
  34. AVXcode:
  35. # 0x00 - 0x0f
  36. 00: ADD Eb,Gb
  37. 01: ADD Ev,Gv
  38. 02: ADD Gb,Eb
  39. 03: ADD Gv,Ev
  40. 04: ADD AL,Ib
  41. 05: ADD rAX,Iz
  42. 06: PUSH ES (i64)
  43. 07: POP ES (i64)
  44. 08: OR Eb,Gb
  45. 09: OR Ev,Gv
  46. 0a: OR Gb,Eb
  47. 0b: OR Gv,Ev
  48. 0c: OR AL,Ib
  49. 0d: OR rAX,Iz
  50. 0e: PUSH CS (i64)
  51. 0f: escape # 2-byte escape
  52. # 0x10 - 0x1f
  53. 10: ADC Eb,Gb
  54. 11: ADC Ev,Gv
  55. 12: ADC Gb,Eb
  56. 13: ADC Gv,Ev
  57. 14: ADC AL,Ib
  58. 15: ADC rAX,Iz
  59. 16: PUSH SS (i64)
  60. 17: POP SS (i64)
  61. 18: SBB Eb,Gb
  62. 19: SBB Ev,Gv
  63. 1a: SBB Gb,Eb
  64. 1b: SBB Gv,Ev
  65. 1c: SBB AL,Ib
  66. 1d: SBB rAX,Iz
  67. 1e: PUSH DS (i64)
  68. 1f: POP DS (i64)
  69. # 0x20 - 0x2f
  70. 20: AND Eb,Gb
  71. 21: AND Ev,Gv
  72. 22: AND Gb,Eb
  73. 23: AND Gv,Ev
  74. 24: AND AL,Ib
  75. 25: AND rAx,Iz
  76. 26: SEG=ES (Prefix)
  77. 27: DAA (i64)
  78. 28: SUB Eb,Gb
  79. 29: SUB Ev,Gv
  80. 2a: SUB Gb,Eb
  81. 2b: SUB Gv,Ev
  82. 2c: SUB AL,Ib
  83. 2d: SUB rAX,Iz
  84. 2e: SEG=CS (Prefix)
  85. 2f: DAS (i64)
  86. # 0x30 - 0x3f
  87. 30: XOR Eb,Gb
  88. 31: XOR Ev,Gv
  89. 32: XOR Gb,Eb
  90. 33: XOR Gv,Ev
  91. 34: XOR AL,Ib
  92. 35: XOR rAX,Iz
  93. 36: SEG=SS (Prefix)
  94. 37: AAA (i64)
  95. 38: CMP Eb,Gb
  96. 39: CMP Ev,Gv
  97. 3a: CMP Gb,Eb
  98. 3b: CMP Gv,Ev
  99. 3c: CMP AL,Ib
  100. 3d: CMP rAX,Iz
  101. 3e: SEG=DS (Prefix)
  102. 3f: AAS (i64)
  103. # 0x40 - 0x4f
  104. 40: INC eAX (i64) | REX (o64)
  105. 41: INC eCX (i64) | REX.B (o64)
  106. 42: INC eDX (i64) | REX.X (o64)
  107. 43: INC eBX (i64) | REX.XB (o64)
  108. 44: INC eSP (i64) | REX.R (o64)
  109. 45: INC eBP (i64) | REX.RB (o64)
  110. 46: INC eSI (i64) | REX.RX (o64)
  111. 47: INC eDI (i64) | REX.RXB (o64)
  112. 48: DEC eAX (i64) | REX.W (o64)
  113. 49: DEC eCX (i64) | REX.WB (o64)
  114. 4a: DEC eDX (i64) | REX.WX (o64)
  115. 4b: DEC eBX (i64) | REX.WXB (o64)
  116. 4c: DEC eSP (i64) | REX.WR (o64)
  117. 4d: DEC eBP (i64) | REX.WRB (o64)
  118. 4e: DEC eSI (i64) | REX.WRX (o64)
  119. 4f: DEC eDI (i64) | REX.WRXB (o64)
  120. # 0x50 - 0x5f
  121. 50: PUSH rAX/r8 (d64)
  122. 51: PUSH rCX/r9 (d64)
  123. 52: PUSH rDX/r10 (d64)
  124. 53: PUSH rBX/r11 (d64)
  125. 54: PUSH rSP/r12 (d64)
  126. 55: PUSH rBP/r13 (d64)
  127. 56: PUSH rSI/r14 (d64)
  128. 57: PUSH rDI/r15 (d64)
  129. 58: POP rAX/r8 (d64)
  130. 59: POP rCX/r9 (d64)
  131. 5a: POP rDX/r10 (d64)
  132. 5b: POP rBX/r11 (d64)
  133. 5c: POP rSP/r12 (d64)
  134. 5d: POP rBP/r13 (d64)
  135. 5e: POP rSI/r14 (d64)
  136. 5f: POP rDI/r15 (d64)
  137. # 0x60 - 0x6f
  138. 60: PUSHA/PUSHAD (i64)
  139. 61: POPA/POPAD (i64)
  140. 62: BOUND Gv,Ma (i64)
  141. 63: ARPL Ew,Gw (i64) | MOVSXD Gv,Ev (o64)
  142. 64: SEG=FS (Prefix)
  143. 65: SEG=GS (Prefix)
  144. 66: Operand-Size (Prefix)
  145. 67: Address-Size (Prefix)
  146. 68: PUSH Iz (d64)
  147. 69: IMUL Gv,Ev,Iz
  148. 6a: PUSH Ib (d64)
  149. 6b: IMUL Gv,Ev,Ib
  150. 6c: INS/INSB Yb,DX
  151. 6d: INS/INSW/INSD Yz,DX
  152. 6e: OUTS/OUTSB DX,Xb
  153. 6f: OUTS/OUTSW/OUTSD DX,Xz
  154. # 0x70 - 0x7f
  155. 70: JO Jb
  156. 71: JNO Jb
  157. 72: JB/JNAE/JC Jb
  158. 73: JNB/JAE/JNC Jb
  159. 74: JZ/JE Jb
  160. 75: JNZ/JNE Jb
  161. 76: JBE/JNA Jb
  162. 77: JNBE/JA Jb
  163. 78: JS Jb
  164. 79: JNS Jb
  165. 7a: JP/JPE Jb
  166. 7b: JNP/JPO Jb
  167. 7c: JL/JNGE Jb
  168. 7d: JNL/JGE Jb
  169. 7e: JLE/JNG Jb
  170. 7f: JNLE/JG Jb
  171. # 0x80 - 0x8f
  172. 80: Grp1 Eb,Ib (1A)
  173. 81: Grp1 Ev,Iz (1A)
  174. 82: Grp1 Eb,Ib (1A),(i64)
  175. 83: Grp1 Ev,Ib (1A)
  176. 84: TEST Eb,Gb
  177. 85: TEST Ev,Gv
  178. 86: XCHG Eb,Gb
  179. 87: XCHG Ev,Gv
  180. 88: MOV Eb,Gb
  181. 89: MOV Ev,Gv
  182. 8a: MOV Gb,Eb
  183. 8b: MOV Gv,Ev
  184. 8c: MOV Ev,Sw
  185. 8d: LEA Gv,M
  186. 8e: MOV Sw,Ew
  187. 8f: Grp1A (1A) | POP Ev (d64)
  188. # 0x90 - 0x9f
  189. 90: NOP | PAUSE (F3) | XCHG r8,rAX
  190. 91: XCHG rCX/r9,rAX
  191. 92: XCHG rDX/r10,rAX
  192. 93: XCHG rBX/r11,rAX
  193. 94: XCHG rSP/r12,rAX
  194. 95: XCHG rBP/r13,rAX
  195. 96: XCHG rSI/r14,rAX
  196. 97: XCHG rDI/r15,rAX
  197. 98: CBW/CWDE/CDQE
  198. 99: CWD/CDQ/CQO
  199. 9a: CALLF Ap (i64)
  200. 9b: FWAIT/WAIT
  201. 9c: PUSHF/D/Q Fv (d64)
  202. 9d: POPF/D/Q Fv (d64)
  203. 9e: SAHF
  204. 9f: LAHF
  205. # 0xa0 - 0xaf
  206. a0: MOV AL,Ob
  207. a1: MOV rAX,Ov
  208. a2: MOV Ob,AL
  209. a3: MOV Ov,rAX
  210. a4: MOVS/B Yb,Xb
  211. a5: MOVS/W/D/Q Yv,Xv
  212. a6: CMPS/B Xb,Yb
  213. a7: CMPS/W/D Xv,Yv
  214. a8: TEST AL,Ib
  215. a9: TEST rAX,Iz
  216. aa: STOS/B Yb,AL
  217. ab: STOS/W/D/Q Yv,rAX
  218. ac: LODS/B AL,Xb
  219. ad: LODS/W/D/Q rAX,Xv
  220. ae: SCAS/B AL,Yb
  221. # Note: The May 2011 Intel manual shows Xv for the second parameter of the
  222. # next instruction but Yv is correct
  223. af: SCAS/W/D/Q rAX,Yv
  224. # 0xb0 - 0xbf
  225. b0: MOV AL/R8L,Ib
  226. b1: MOV CL/R9L,Ib
  227. b2: MOV DL/R10L,Ib
  228. b3: MOV BL/R11L,Ib
  229. b4: MOV AH/R12L,Ib
  230. b5: MOV CH/R13L,Ib
  231. b6: MOV DH/R14L,Ib
  232. b7: MOV BH/R15L,Ib
  233. b8: MOV rAX/r8,Iv
  234. b9: MOV rCX/r9,Iv
  235. ba: MOV rDX/r10,Iv
  236. bb: MOV rBX/r11,Iv
  237. bc: MOV rSP/r12,Iv
  238. bd: MOV rBP/r13,Iv
  239. be: MOV rSI/r14,Iv
  240. bf: MOV rDI/r15,Iv
  241. # 0xc0 - 0xcf
  242. c0: Grp2 Eb,Ib (1A)
  243. c1: Grp2 Ev,Ib (1A)
  244. c2: RETN Iw (f64)
  245. c3: RETN
  246. c4: LES Gz,Mp (i64) | VEX+2byte (Prefix)
  247. c5: LDS Gz,Mp (i64) | VEX+1byte (Prefix)
  248. c6: Grp11 Eb,Ib (1A)
  249. c7: Grp11 Ev,Iz (1A)
  250. c8: ENTER Iw,Ib
  251. c9: LEAVE (d64)
  252. ca: RETF Iw
  253. cb: RETF
  254. cc: INT3
  255. cd: INT Ib
  256. ce: INTO (i64)
  257. cf: IRET/D/Q
  258. # 0xd0 - 0xdf
  259. d0: Grp2 Eb,1 (1A)
  260. d1: Grp2 Ev,1 (1A)
  261. d2: Grp2 Eb,CL (1A)
  262. d3: Grp2 Ev,CL (1A)
  263. d4: AAM Ib (i64)
  264. d5: AAD Ib (i64)
  265. d6:
  266. d7: XLAT/XLATB
  267. d8: ESC
  268. d9: ESC
  269. da: ESC
  270. db: ESC
  271. dc: ESC
  272. dd: ESC
  273. de: ESC
  274. df: ESC
  275. # 0xe0 - 0xef
  276. e0: LOOPNE/LOOPNZ Jb (f64)
  277. e1: LOOPE/LOOPZ Jb (f64)
  278. e2: LOOP Jb (f64)
  279. e3: JrCXZ Jb (f64)
  280. e4: IN AL,Ib
  281. e5: IN eAX,Ib
  282. e6: OUT Ib,AL
  283. e7: OUT Ib,eAX
  284. e8: CALL Jz (f64)
  285. e9: JMP-near Jz (f64)
  286. ea: JMP-far Ap (i64)
  287. eb: JMP-short Jb (f64)
  288. ec: IN AL,DX
  289. ed: IN eAX,DX
  290. ee: OUT DX,AL
  291. ef: OUT DX,eAX
  292. # 0xf0 - 0xff
  293. f0: LOCK (Prefix)
  294. f1:
  295. f2: REPNE (Prefix)
  296. f3: REP/REPE (Prefix)
  297. f4: HLT
  298. f5: CMC
  299. f6: Grp3_1 Eb (1A)
  300. f7: Grp3_2 Ev (1A)
  301. f8: CLC
  302. f9: STC
  303. fa: CLI
  304. fb: STI
  305. fc: CLD
  306. fd: STD
  307. fe: Grp4 (1A)
  308. ff: Grp5 (1A)
  309. EndTable
  310. Table: 2-byte opcode (0x0f)
  311. Referrer: 2-byte escape
  312. AVXcode: 1
  313. # 0x0f 0x00-0x0f
  314. 00: Grp6 (1A)
  315. 01: Grp7 (1A)
  316. 02: LAR Gv,Ew
  317. 03: LSL Gv,Ew
  318. 04:
  319. 05: SYSCALL (o64)
  320. 06: CLTS
  321. 07: SYSRET (o64)
  322. 08: INVD
  323. 09: WBINVD
  324. 0a:
  325. 0b: UD2 (1B)
  326. 0c:
  327. 0d: NOP Ev | GrpP
  328. 0e: FEMMS
  329. # 3DNow! uses the last imm byte as opcode extension.
  330. 0f: 3DNow! Pq,Qq,Ib
  331. # 0x0f 0x10-0x1f
  332. # NOTE: According to Intel SDM opcode map, vmovups and vmovupd has no operands
  333. # but it actually has operands. And also, vmovss and vmovsd only accept 128bit.
  334. # MOVSS/MOVSD has too many forms(3) on SDM. This map just shows a typical form.
  335. # Many AVX instructions lack v1 superscript, according to Intel AVX-Prgramming
  336. # Reference A.1
  337. 10: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1)
  338. 11: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(v1)
  339. 12: vmovlps Vq,Hq,Mq (v1) | vmovhlps Vq,Hq,Uq (v1) | vmovlpd Vq,Hq,Mq (66),(v1) | vmovsldup Vx,Wx (F3) | vmovddup Vx,Wx (F2)
  340. 13: vmovlps Mq,Vq (v1) | vmovlpd Mq,Vq (66),(v1)
  341. 14: vunpcklps Vx,Hx,Wx | vunpcklpd Vx,Hx,Wx (66)
  342. 15: vunpckhps Vx,Hx,Wx | vunpckhpd Vx,Hx,Wx (66)
  343. 16: vmovhps Vdq,Hq,Mq (v1) | vmovlhps Vdq,Hq,Uq (v1) | vmovhpd Vdq,Hq,Mq (66),(v1) | vmovshdup Vx,Wx (F3)
  344. 17: vmovhps Mq,Vq (v1) | vmovhpd Mq,Vq (66),(v1)
  345. 18: Grp16 (1A)
  346. 19:
  347. 1a:
  348. 1b:
  349. 1c:
  350. 1d:
  351. 1e:
  352. 1f: NOP Ev
  353. # 0x0f 0x20-0x2f
  354. 20: MOV Rd,Cd
  355. 21: MOV Rd,Dd
  356. 22: MOV Cd,Rd
  357. 23: MOV Dd,Rd
  358. 24:
  359. 25:
  360. 26:
  361. 27:
  362. 28: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66)
  363. 29: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66)
  364. 2a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,Ey (F2),(v1)
  365. 2b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66)
  366. 2c: cvttps2pi Ppi,Wps | cvttpd2pi Ppi,Wpd (66) | vcvttss2si Gy,Wss (F3),(v1) | vcvttsd2si Gy,Wsd (F2),(v1)
  367. 2d: cvtps2pi Ppi,Wps | cvtpd2pi Qpi,Wpd (66) | vcvtss2si Gy,Wss (F3),(v1) | vcvtsd2si Gy,Wsd (F2),(v1)
  368. 2e: vucomiss Vss,Wss (v1) | vucomisd Vsd,Wsd (66),(v1)
  369. 2f: vcomiss Vss,Wss (v1) | vcomisd Vsd,Wsd (66),(v1)
  370. # 0x0f 0x30-0x3f
  371. 30: WRMSR
  372. 31: RDTSC
  373. 32: RDMSR
  374. 33: RDPMC
  375. 34: SYSENTER
  376. 35: SYSEXIT
  377. 36:
  378. 37: GETSEC
  379. 38: escape # 3-byte escape 1
  380. 39:
  381. 3a: escape # 3-byte escape 2
  382. 3b:
  383. 3c:
  384. 3d:
  385. 3e:
  386. 3f:
  387. # 0x0f 0x40-0x4f
  388. 40: CMOVO Gv,Ev
  389. 41: CMOVNO Gv,Ev
  390. 42: CMOVB/C/NAE Gv,Ev
  391. 43: CMOVAE/NB/NC Gv,Ev
  392. 44: CMOVE/Z Gv,Ev
  393. 45: CMOVNE/NZ Gv,Ev
  394. 46: CMOVBE/NA Gv,Ev
  395. 47: CMOVA/NBE Gv,Ev
  396. 48: CMOVS Gv,Ev
  397. 49: CMOVNS Gv,Ev
  398. 4a: CMOVP/PE Gv,Ev
  399. 4b: CMOVNP/PO Gv,Ev
  400. 4c: CMOVL/NGE Gv,Ev
  401. 4d: CMOVNL/GE Gv,Ev
  402. 4e: CMOVLE/NG Gv,Ev
  403. 4f: CMOVNLE/G Gv,Ev
  404. # 0x0f 0x50-0x5f
  405. 50: vmovmskps Gy,Ups | vmovmskpd Gy,Upd (66)
  406. 51: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F2),(v1)
  407. 52: vrsqrtps Vps,Wps | vrsqrtss Vss,Hss,Wss (F3),(v1)
  408. 53: vrcpps Vps,Wps | vrcpss Vss,Hss,Wss (F3),(v1)
  409. 54: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66)
  410. 55: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66)
  411. 56: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66)
  412. 57: vxorps Vps,Hps,Wps | vxorpd Vpd,Hpd,Wpd (66)
  413. 58: vaddps Vps,Hps,Wps | vaddpd Vpd,Hpd,Wpd (66) | vaddss Vss,Hss,Wss (F3),(v1) | vaddsd Vsd,Hsd,Wsd (F2),(v1)
  414. 59: vmulps Vps,Hps,Wps | vmulpd Vpd,Hpd,Wpd (66) | vmulss Vss,Hss,Wss (F3),(v1) | vmulsd Vsd,Hsd,Wsd (F2),(v1)
  415. 5a: vcvtps2pd Vpd,Wps | vcvtpd2ps Vps,Wpd (66) | vcvtss2sd Vsd,Hx,Wss (F3),(v1) | vcvtsd2ss Vss,Hx,Wsd (F2),(v1)
  416. 5b: vcvtdq2ps Vps,Wdq | vcvtps2dq Vdq,Wps (66) | vcvttps2dq Vdq,Wps (F3)
  417. 5c: vsubps Vps,Hps,Wps | vsubpd Vpd,Hpd,Wpd (66) | vsubss Vss,Hss,Wss (F3),(v1) | vsubsd Vsd,Hsd,Wsd (F2),(v1)
  418. 5d: vminps Vps,Hps,Wps | vminpd Vpd,Hpd,Wpd (66) | vminss Vss,Hss,Wss (F3),(v1) | vminsd Vsd,Hsd,Wsd (F2),(v1)
  419. 5e: vdivps Vps,Hps,Wps | vdivpd Vpd,Hpd,Wpd (66) | vdivss Vss,Hss,Wss (F3),(v1) | vdivsd Vsd,Hsd,Wsd (F2),(v1)
  420. 5f: vmaxps Vps,Hps,Wps | vmaxpd Vpd,Hpd,Wpd (66) | vmaxss Vss,Hss,Wss (F3),(v1) | vmaxsd Vsd,Hsd,Wsd (F2),(v1)
  421. # 0x0f 0x60-0x6f
  422. 60: punpcklbw Pq,Qd | vpunpcklbw Vx,Hx,Wx (66),(v1)
  423. 61: punpcklwd Pq,Qd | vpunpcklwd Vx,Hx,Wx (66),(v1)
  424. 62: punpckldq Pq,Qd | vpunpckldq Vx,Hx,Wx (66),(v1)
  425. 63: packsswb Pq,Qq | vpacksswb Vx,Hx,Wx (66),(v1)
  426. 64: pcmpgtb Pq,Qq | vpcmpgtb Vx,Hx,Wx (66),(v1)
  427. 65: pcmpgtw Pq,Qq | vpcmpgtw Vx,Hx,Wx (66),(v1)
  428. 66: pcmpgtd Pq,Qq | vpcmpgtd Vx,Hx,Wx (66),(v1)
  429. 67: packuswb Pq,Qq | vpackuswb Vx,Hx,Wx (66),(v1)
  430. 68: punpckhbw Pq,Qd | vpunpckhbw Vx,Hx,Wx (66),(v1)
  431. 69: punpckhwd Pq,Qd | vpunpckhwd Vx,Hx,Wx (66),(v1)
  432. 6a: punpckhdq Pq,Qd | vpunpckhdq Vx,Hx,Wx (66),(v1)
  433. 6b: packssdw Pq,Qd | vpackssdw Vx,Hx,Wx (66),(v1)
  434. 6c: vpunpcklqdq Vx,Hx,Wx (66),(v1)
  435. 6d: vpunpckhqdq Vx,Hx,Wx (66),(v1)
  436. 6e: movd/q Pd,Ey | vmovd/q Vy,Ey (66),(v1)
  437. 6f: movq Pq,Qq | vmovdqa Vx,Wx (66) | vmovdqu Vx,Wx (F3)
  438. # 0x0f 0x70-0x7f
  439. 70: pshufw Pq,Qq,Ib | vpshufd Vx,Wx,Ib (66),(v1) | vpshufhw Vx,Wx,Ib (F3),(v1) | vpshuflw Vx,Wx,Ib (F2),(v1)
  440. 71: Grp12 (1A)
  441. 72: Grp13 (1A)
  442. 73: Grp14 (1A)
  443. 74: pcmpeqb Pq,Qq | vpcmpeqb Vx,Hx,Wx (66),(v1)
  444. 75: pcmpeqw Pq,Qq | vpcmpeqw Vx,Hx,Wx (66),(v1)
  445. 76: pcmpeqd Pq,Qq | vpcmpeqd Vx,Hx,Wx (66),(v1)
  446. # Note: Remove (v), because vzeroall and vzeroupper becomes emms without VEX.
  447. 77: emms | vzeroupper | vzeroall
  448. 78: VMREAD Ey,Gy
  449. 79: VMWRITE Gy,Ey
  450. 7a:
  451. 7b:
  452. 7c: vhaddpd Vpd,Hpd,Wpd (66) | vhaddps Vps,Hps,Wps (F2)
  453. 7d: vhsubpd Vpd,Hpd,Wpd (66) | vhsubps Vps,Hps,Wps (F2)
  454. 7e: movd/q Ey,Pd | vmovd/q Ey,Vy (66),(v1) | vmovq Vq,Wq (F3),(v1)
  455. 7f: movq Qq,Pq | vmovdqa Wx,Vx (66) | vmovdqu Wx,Vx (F3)
  456. # 0x0f 0x80-0x8f
  457. 80: JO Jz (f64)
  458. 81: JNO Jz (f64)
  459. 82: JB/JC/JNAE Jz (f64)
  460. 83: JAE/JNB/JNC Jz (f64)
  461. 84: JE/JZ Jz (f64)
  462. 85: JNE/JNZ Jz (f64)
  463. 86: JBE/JNA Jz (f64)
  464. 87: JA/JNBE Jz (f64)
  465. 88: JS Jz (f64)
  466. 89: JNS Jz (f64)
  467. 8a: JP/JPE Jz (f64)
  468. 8b: JNP/JPO Jz (f64)
  469. 8c: JL/JNGE Jz (f64)
  470. 8d: JNL/JGE Jz (f64)
  471. 8e: JLE/JNG Jz (f64)
  472. 8f: JNLE/JG Jz (f64)
  473. # 0x0f 0x90-0x9f
  474. 90: SETO Eb
  475. 91: SETNO Eb
  476. 92: SETB/C/NAE Eb
  477. 93: SETAE/NB/NC Eb
  478. 94: SETE/Z Eb
  479. 95: SETNE/NZ Eb
  480. 96: SETBE/NA Eb
  481. 97: SETA/NBE Eb
  482. 98: SETS Eb
  483. 99: SETNS Eb
  484. 9a: SETP/PE Eb
  485. 9b: SETNP/PO Eb
  486. 9c: SETL/NGE Eb
  487. 9d: SETNL/GE Eb
  488. 9e: SETLE/NG Eb
  489. 9f: SETNLE/G Eb
  490. # 0x0f 0xa0-0xaf
  491. a0: PUSH FS (d64)
  492. a1: POP FS (d64)
  493. a2: CPUID
  494. a3: BT Ev,Gv
  495. a4: SHLD Ev,Gv,Ib
  496. a5: SHLD Ev,Gv,CL
  497. a6: GrpPDLK
  498. a7: GrpRNG
  499. a8: PUSH GS (d64)
  500. a9: POP GS (d64)
  501. aa: RSM
  502. ab: BTS Ev,Gv
  503. ac: SHRD Ev,Gv,Ib
  504. ad: SHRD Ev,Gv,CL
  505. ae: Grp15 (1A),(1C)
  506. af: IMUL Gv,Ev
  507. # 0x0f 0xb0-0xbf
  508. b0: CMPXCHG Eb,Gb
  509. b1: CMPXCHG Ev,Gv
  510. b2: LSS Gv,Mp
  511. b3: BTR Ev,Gv
  512. b4: LFS Gv,Mp
  513. b5: LGS Gv,Mp
  514. b6: MOVZX Gv,Eb
  515. b7: MOVZX Gv,Ew
  516. b8: JMPE | POPCNT Gv,Ev (F3)
  517. b9: Grp10 (1A)
  518. ba: Grp8 Ev,Ib (1A)
  519. bb: BTC Ev,Gv
  520. bc: BSF Gv,Ev | TZCNT Gv,Ev (F3)
  521. bd: BSR Gv,Ev | LZCNT Gv,Ev (F3)
  522. be: MOVSX Gv,Eb
  523. bf: MOVSX Gv,Ew
  524. # 0x0f 0xc0-0xcf
  525. c0: XADD Eb,Gb
  526. c1: XADD Ev,Gv
  527. c2: 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)
  528. c3: movnti My,Gy
  529. c4: pinsrw Pq,Ry/Mw,Ib | vpinsrw Vdq,Hdq,Ry/Mw,Ib (66),(v1)
  530. c5: pextrw Gd,Nq,Ib | vpextrw Gd,Udq,Ib (66),(v1)
  531. c6: vshufps Vps,Hps,Wps,Ib | vshufpd Vpd,Hpd,Wpd,Ib (66)
  532. c7: Grp9 (1A)
  533. c8: BSWAP RAX/EAX/R8/R8D
  534. c9: BSWAP RCX/ECX/R9/R9D
  535. ca: BSWAP RDX/EDX/R10/R10D
  536. cb: BSWAP RBX/EBX/R11/R11D
  537. cc: BSWAP RSP/ESP/R12/R12D
  538. cd: BSWAP RBP/EBP/R13/R13D
  539. ce: BSWAP RSI/ESI/R14/R14D
  540. cf: BSWAP RDI/EDI/R15/R15D
  541. # 0x0f 0xd0-0xdf
  542. d0: vaddsubpd Vpd,Hpd,Wpd (66) | vaddsubps Vps,Hps,Wps (F2)
  543. d1: psrlw Pq,Qq | vpsrlw Vx,Hx,Wx (66),(v1)
  544. d2: psrld Pq,Qq | vpsrld Vx,Hx,Wx (66),(v1)
  545. d3: psrlq Pq,Qq | vpsrlq Vx,Hx,Wx (66),(v1)
  546. d4: paddq Pq,Qq | vpaddq Vx,Hx,Wx (66),(v1)
  547. d5: pmullw Pq,Qq | vpmullw Vx,Hx,Wx (66),(v1)
  548. d6: vmovq Wq,Vq (66),(v1) | movq2dq Vdq,Nq (F3) | movdq2q Pq,Uq (F2)
  549. d7: pmovmskb Gd,Nq | vpmovmskb Gd,Ux (66),(v1)
  550. d8: psubusb Pq,Qq | vpsubusb Vx,Hx,Wx (66),(v1)
  551. d9: psubusw Pq,Qq | vpsubusw Vx,Hx,Wx (66),(v1)
  552. da: pminub Pq,Qq | vpminub Vx,Hx,Wx (66),(v1)
  553. db: pand Pq,Qq | vpand Vx,Hx,Wx (66),(v1)
  554. dc: paddusb Pq,Qq | vpaddusb Vx,Hx,Wx (66),(v1)
  555. dd: paddusw Pq,Qq | vpaddusw Vx,Hx,Wx (66),(v1)
  556. de: pmaxub Pq,Qq | vpmaxub Vx,Hx,Wx (66),(v1)
  557. df: pandn Pq,Qq | vpandn Vx,Hx,Wx (66),(v1)
  558. # 0x0f 0xe0-0xef
  559. e0: pavgb Pq,Qq | vpavgb Vx,Hx,Wx (66),(v1)
  560. e1: psraw Pq,Qq | vpsraw Vx,Hx,Wx (66),(v1)
  561. e2: psrad Pq,Qq | vpsrad Vx,Hx,Wx (66),(v1)
  562. e3: pavgw Pq,Qq | vpavgw Vx,Hx,Wx (66),(v1)
  563. e4: pmulhuw Pq,Qq | vpmulhuw Vx,Hx,Wx (66),(v1)
  564. e5: pmulhw Pq,Qq | vpmulhw Vx,Hx,Wx (66),(v1)
  565. e6: vcvttpd2dq Vx,Wpd (66) | vcvtdq2pd Vx,Wdq (F3) | vcvtpd2dq Vx,Wpd (F2)
  566. e7: movntq Mq,Pq | vmovntdq Mx,Vx (66)
  567. e8: psubsb Pq,Qq | vpsubsb Vx,Hx,Wx (66),(v1)
  568. e9: psubsw Pq,Qq | vpsubsw Vx,Hx,Wx (66),(v1)
  569. ea: pminsw Pq,Qq | vpminsw Vx,Hx,Wx (66),(v1)
  570. eb: por Pq,Qq | vpor Vx,Hx,Wx (66),(v1)
  571. ec: paddsb Pq,Qq | vpaddsb Vx,Hx,Wx (66),(v1)
  572. ed: paddsw Pq,Qq | vpaddsw Vx,Hx,Wx (66),(v1)
  573. ee: pmaxsw Pq,Qq | vpmaxsw Vx,Hx,Wx (66),(v1)
  574. ef: pxor Pq,Qq | vpxor Vx,Hx,Wx (66),(v1)
  575. # 0x0f 0xf0-0xff
  576. f0: vlddqu Vx,Mx (F2)
  577. f1: psllw Pq,Qq | vpsllw Vx,Hx,Wx (66),(v1)
  578. f2: pslld Pq,Qq | vpslld Vx,Hx,Wx (66),(v1)
  579. f3: psllq Pq,Qq | vpsllq Vx,Hx,Wx (66),(v1)
  580. f4: pmuludq Pq,Qq | vpmuludq Vx,Hx,Wx (66),(v1)
  581. f5: pmaddwd Pq,Qq | vpmaddwd Vx,Hx,Wx (66),(v1)
  582. f6: psadbw Pq,Qq | vpsadbw Vx,Hx,Wx (66),(v1)
  583. f7: maskmovq Pq,Nq | vmaskmovdqu Vx,Ux (66),(v1)
  584. f8: psubb Pq,Qq | vpsubb Vx,Hx,Wx (66),(v1)
  585. f9: psubw Pq,Qq | vpsubw Vx,Hx,Wx (66),(v1)
  586. fa: psubd Pq,Qq | vpsubd Vx,Hx,Wx (66),(v1)
  587. fb: psubq Pq,Qq | vpsubq Vx,Hx,Wx (66),(v1)
  588. fc: paddb Pq,Qq | vpaddb Vx,Hx,Wx (66),(v1)
  589. fd: paddw Pq,Qq | vpaddw Vx,Hx,Wx (66),(v1)
  590. fe: paddd Pq,Qq | vpaddd Vx,Hx,Wx (66),(v1)
  591. ff:
  592. EndTable
  593. Table: 3-byte opcode 1 (0x0f 0x38)
  594. Referrer: 3-byte escape 1
  595. AVXcode: 2
  596. # 0x0f 0x38 0x00-0x0f
  597. 00: pshufb Pq,Qq | vpshufb Vx,Hx,Wx (66),(v1)
  598. 01: phaddw Pq,Qq | vphaddw Vx,Hx,Wx (66),(v1)
  599. 02: phaddd Pq,Qq | vphaddd Vx,Hx,Wx (66),(v1)
  600. 03: phaddsw Pq,Qq | vphaddsw Vx,Hx,Wx (66),(v1)
  601. 04: pmaddubsw Pq,Qq | vpmaddubsw Vx,Hx,Wx (66),(v1)
  602. 05: phsubw Pq,Qq | vphsubw Vx,Hx,Wx (66),(v1)
  603. 06: phsubd Pq,Qq | vphsubd Vx,Hx,Wx (66),(v1)
  604. 07: phsubsw Pq,Qq | vphsubsw Vx,Hx,Wx (66),(v1)
  605. 08: psignb Pq,Qq | vpsignb Vx,Hx,Wx (66),(v1)
  606. 09: psignw Pq,Qq | vpsignw Vx,Hx,Wx (66),(v1)
  607. 0a: psignd Pq,Qq | vpsignd Vx,Hx,Wx (66),(v1)
  608. 0b: pmulhrsw Pq,Qq | vpmulhrsw Vx,Hx,Wx (66),(v1)
  609. 0c: vpermilps Vx,Hx,Wx (66),(v)
  610. 0d: vpermilpd Vx,Hx,Wx (66),(v)
  611. 0e: vtestps Vx,Wx (66),(v)
  612. 0f: vtestpd Vx,Wx (66),(v)
  613. # 0x0f 0x38 0x10-0x1f
  614. 10: pblendvb Vdq,Wdq (66)
  615. 11:
  616. 12:
  617. 13: vcvtph2ps Vx,Wx,Ib (66),(v)
  618. 14: blendvps Vdq,Wdq (66)
  619. 15: blendvpd Vdq,Wdq (66)
  620. 16: vpermps Vqq,Hqq,Wqq (66),(v)
  621. 17: vptest Vx,Wx (66)
  622. 18: vbroadcastss Vx,Wd (66),(v)
  623. 19: vbroadcastsd Vqq,Wq (66),(v)
  624. 1a: vbroadcastf128 Vqq,Mdq (66),(v)
  625. 1b:
  626. 1c: pabsb Pq,Qq | vpabsb Vx,Wx (66),(v1)
  627. 1d: pabsw Pq,Qq | vpabsw Vx,Wx (66),(v1)
  628. 1e: pabsd Pq,Qq | vpabsd Vx,Wx (66),(v1)
  629. 1f:
  630. # 0x0f 0x38 0x20-0x2f
  631. 20: vpmovsxbw Vx,Ux/Mq (66),(v1)
  632. 21: vpmovsxbd Vx,Ux/Md (66),(v1)
  633. 22: vpmovsxbq Vx,Ux/Mw (66),(v1)
  634. 23: vpmovsxwd Vx,Ux/Mq (66),(v1)
  635. 24: vpmovsxwq Vx,Ux/Md (66),(v1)
  636. 25: vpmovsxdq Vx,Ux/Mq (66),(v1)
  637. 26:
  638. 27:
  639. 28: vpmuldq Vx,Hx,Wx (66),(v1)
  640. 29: vpcmpeqq Vx,Hx,Wx (66),(v1)
  641. 2a: vmovntdqa Vx,Mx (66),(v1)
  642. 2b: vpackusdw Vx,Hx,Wx (66),(v1)
  643. 2c: vmaskmovps Vx,Hx,Mx (66),(v)
  644. 2d: vmaskmovpd Vx,Hx,Mx (66),(v)
  645. 2e: vmaskmovps Mx,Hx,Vx (66),(v)
  646. 2f: vmaskmovpd Mx,Hx,Vx (66),(v)
  647. # 0x0f 0x38 0x30-0x3f
  648. 30: vpmovzxbw Vx,Ux/Mq (66),(v1)
  649. 31: vpmovzxbd Vx,Ux/Md (66),(v1)
  650. 32: vpmovzxbq Vx,Ux/Mw (66),(v1)
  651. 33: vpmovzxwd Vx,Ux/Mq (66),(v1)
  652. 34: vpmovzxwq Vx,Ux/Md (66),(v1)
  653. 35: vpmovzxdq Vx,Ux/Mq (66),(v1)
  654. 36: vpermd Vqq,Hqq,Wqq (66),(v)
  655. 37: vpcmpgtq Vx,Hx,Wx (66),(v1)
  656. 38: vpminsb Vx,Hx,Wx (66),(v1)
  657. 39: vpminsd Vx,Hx,Wx (66),(v1)
  658. 3a: vpminuw Vx,Hx,Wx (66),(v1)
  659. 3b: vpminud Vx,Hx,Wx (66),(v1)
  660. 3c: vpmaxsb Vx,Hx,Wx (66),(v1)
  661. 3d: vpmaxsd Vx,Hx,Wx (66),(v1)
  662. 3e: vpmaxuw Vx,Hx,Wx (66),(v1)
  663. 3f: vpmaxud Vx,Hx,Wx (66),(v1)
  664. # 0x0f 0x38 0x40-0x8f
  665. 40: vpmulld Vx,Hx,Wx (66),(v1)
  666. 41: vphminposuw Vdq,Wdq (66),(v1)
  667. 42:
  668. 43:
  669. 44:
  670. 45: vpsrlvd/q Vx,Hx,Wx (66),(v)
  671. 46: vpsravd Vx,Hx,Wx (66),(v)
  672. 47: vpsllvd/q Vx,Hx,Wx (66),(v)
  673. # Skip 0x48-0x57
  674. 58: vpbroadcastd Vx,Wx (66),(v)
  675. 59: vpbroadcastq Vx,Wx (66),(v)
  676. 5a: vbroadcasti128 Vqq,Mdq (66),(v)
  677. # Skip 0x5b-0x77
  678. 78: vpbroadcastb Vx,Wx (66),(v)
  679. 79: vpbroadcastw Vx,Wx (66),(v)
  680. # Skip 0x7a-0x7f
  681. 80: INVEPT Gy,Mdq (66)
  682. 81: INVPID Gy,Mdq (66)
  683. 82: INVPCID Gy,Mdq (66)
  684. 8c: vpmaskmovd/q Vx,Hx,Mx (66),(v)
  685. 8e: vpmaskmovd/q Mx,Vx,Hx (66),(v)
  686. # 0x0f 0x38 0x90-0xbf (FMA)
  687. 90: vgatherdd/q Vx,Hx,Wx (66),(v)
  688. 91: vgatherqd/q Vx,Hx,Wx (66),(v)
  689. 92: vgatherdps/d Vx,Hx,Wx (66),(v)
  690. 93: vgatherqps/d Vx,Hx,Wx (66),(v)
  691. 94:
  692. 95:
  693. 96: vfmaddsub132ps/d Vx,Hx,Wx (66),(v)
  694. 97: vfmsubadd132ps/d Vx,Hx,Wx (66),(v)
  695. 98: vfmadd132ps/d Vx,Hx,Wx (66),(v)
  696. 99: vfmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
  697. 9a: vfmsub132ps/d Vx,Hx,Wx (66),(v)
  698. 9b: vfmsub132ss/d Vx,Hx,Wx (66),(v),(v1)
  699. 9c: vfnmadd132ps/d Vx,Hx,Wx (66),(v)
  700. 9d: vfnmadd132ss/d Vx,Hx,Wx (66),(v),(v1)
  701. 9e: vfnmsub132ps/d Vx,Hx,Wx (66),(v)
  702. 9f: vfnmsub132ss/d Vx,Hx,Wx (66),(v),(v1)
  703. a6: vfmaddsub213ps/d Vx,Hx,Wx (66),(v)
  704. a7: vfmsubadd213ps/d Vx,Hx,Wx (66),(v)
  705. a8: vfmadd213ps/d Vx,Hx,Wx (66),(v)
  706. a9: vfmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
  707. aa: vfmsub213ps/d Vx,Hx,Wx (66),(v)
  708. ab: vfmsub213ss/d Vx,Hx,Wx (66),(v),(v1)
  709. ac: vfnmadd213ps/d Vx,Hx,Wx (66),(v)
  710. ad: vfnmadd213ss/d Vx,Hx,Wx (66),(v),(v1)
  711. ae: vfnmsub213ps/d Vx,Hx,Wx (66),(v)
  712. af: vfnmsub213ss/d Vx,Hx,Wx (66),(v),(v1)
  713. b6: vfmaddsub231ps/d Vx,Hx,Wx (66),(v)
  714. b7: vfmsubadd231ps/d Vx,Hx,Wx (66),(v)
  715. b8: vfmadd231ps/d Vx,Hx,Wx (66),(v)
  716. b9: vfmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
  717. ba: vfmsub231ps/d Vx,Hx,Wx (66),(v)
  718. bb: vfmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
  719. bc: vfnmadd231ps/d Vx,Hx,Wx (66),(v)
  720. bd: vfnmadd231ss/d Vx,Hx,Wx (66),(v),(v1)
  721. be: vfnmsub231ps/d Vx,Hx,Wx (66),(v)
  722. bf: vfnmsub231ss/d Vx,Hx,Wx (66),(v),(v1)
  723. # 0x0f 0x38 0xc0-0xff
  724. db: VAESIMC Vdq,Wdq (66),(v1)
  725. dc: VAESENC Vdq,Hdq,Wdq (66),(v1)
  726. dd: VAESENCLAST Vdq,Hdq,Wdq (66),(v1)
  727. de: VAESDEC Vdq,Hdq,Wdq (66),(v1)
  728. df: VAESDECLAST Vdq,Hdq,Wdq (66),(v1)
  729. f0: MOVBE Gy,My | MOVBE Gw,Mw (66) | CRC32 Gd,Eb (F2)
  730. f1: MOVBE My,Gy | MOVBE Mw,Gw (66) | CRC32 Gd,Ey (F2)
  731. f2: ANDN Gy,By,Ey (v)
  732. f3: Grp17 (1A)
  733. f5: BZHI Gy,Ey,By (v) | PEXT Gy,By,Ey (F3),(v) | PDEP Gy,By,Ey (F2),(v)
  734. f6: MULX By,Gy,rDX,Ey (F2),(v)
  735. f7: BEXTR Gy,Ey,By (v) | SHLX Gy,Ey,By (66),(v) | SARX Gy,Ey,By (F3),(v) | SHRX Gy,Ey,By (F2),(v)
  736. EndTable
  737. Table: 3-byte opcode 2 (0x0f 0x3a)
  738. Referrer: 3-byte escape 2
  739. AVXcode: 3
  740. # 0x0f 0x3a 0x00-0xff
  741. 00: vpermq Vqq,Wqq,Ib (66),(v)
  742. 01: vpermpd Vqq,Wqq,Ib (66),(v)
  743. 02: vpblendd Vx,Hx,Wx,Ib (66),(v)
  744. 03:
  745. 04: vpermilps Vx,Wx,Ib (66),(v)
  746. 05: vpermilpd Vx,Wx,Ib (66),(v)
  747. 06: vperm2f128 Vqq,Hqq,Wqq,Ib (66),(v)
  748. 07:
  749. 08: vroundps Vx,Wx,Ib (66)
  750. 09: vroundpd Vx,Wx,Ib (66)
  751. 0a: vroundss Vss,Wss,Ib (66),(v1)
  752. 0b: vroundsd Vsd,Wsd,Ib (66),(v1)
  753. 0c: vblendps Vx,Hx,Wx,Ib (66)
  754. 0d: vblendpd Vx,Hx,Wx,Ib (66)
  755. 0e: vpblendw Vx,Hx,Wx,Ib (66),(v1)
  756. 0f: palignr Pq,Qq,Ib | vpalignr Vx,Hx,Wx,Ib (66),(v1)
  757. 14: vpextrb Rd/Mb,Vdq,Ib (66),(v1)
  758. 15: vpextrw Rd/Mw,Vdq,Ib (66),(v1)
  759. 16: vpextrd/q Ey,Vdq,Ib (66),(v1)
  760. 17: vextractps Ed,Vdq,Ib (66),(v1)
  761. 18: vinsertf128 Vqq,Hqq,Wqq,Ib (66),(v)
  762. 19: vextractf128 Wdq,Vqq,Ib (66),(v)
  763. 1d: vcvtps2ph Wx,Vx,Ib (66),(v)
  764. 20: vpinsrb Vdq,Hdq,Ry/Mb,Ib (66),(v1)
  765. 21: vinsertps Vdq,Hdq,Udq/Md,Ib (66),(v1)
  766. 22: vpinsrd/q Vdq,Hdq,Ey,Ib (66),(v1)
  767. 38: vinserti128 Vqq,Hqq,Wqq,Ib (66),(v)
  768. 39: vextracti128 Wdq,Vqq,Ib (66),(v)
  769. 40: vdpps Vx,Hx,Wx,Ib (66)
  770. 41: vdppd Vdq,Hdq,Wdq,Ib (66),(v1)
  771. 42: vmpsadbw Vx,Hx,Wx,Ib (66),(v1)
  772. 44: vpclmulqdq Vdq,Hdq,Wdq,Ib (66),(v1)
  773. 46: vperm2i128 Vqq,Hqq,Wqq,Ib (66),(v)
  774. 4a: vblendvps Vx,Hx,Wx,Lx (66),(v)
  775. 4b: vblendvpd Vx,Hx,Wx,Lx (66),(v)
  776. 4c: vpblendvb Vx,Hx,Wx,Lx (66),(v1)
  777. 60: vpcmpestrm Vdq,Wdq,Ib (66),(v1)
  778. 61: vpcmpestri Vdq,Wdq,Ib (66),(v1)
  779. 62: vpcmpistrm Vdq,Wdq,Ib (66),(v1)
  780. 63: vpcmpistri Vdq,Wdq,Ib (66),(v1)
  781. df: VAESKEYGEN Vdq,Wdq,Ib (66),(v1)
  782. f0: RORX Gy,Ey,Ib (F2),(v)
  783. EndTable
  784. GrpTable: Grp1
  785. 0: ADD
  786. 1: OR
  787. 2: ADC
  788. 3: SBB
  789. 4: AND
  790. 5: SUB
  791. 6: XOR
  792. 7: CMP
  793. EndTable
  794. GrpTable: Grp1A
  795. 0: POP
  796. EndTable
  797. GrpTable: Grp2
  798. 0: ROL
  799. 1: ROR
  800. 2: RCL
  801. 3: RCR
  802. 4: SHL/SAL
  803. 5: SHR
  804. 6:
  805. 7: SAR
  806. EndTable
  807. GrpTable: Grp3_1
  808. 0: TEST Eb,Ib
  809. 1:
  810. 2: NOT Eb
  811. 3: NEG Eb
  812. 4: MUL AL,Eb
  813. 5: IMUL AL,Eb
  814. 6: DIV AL,Eb
  815. 7: IDIV AL,Eb
  816. EndTable
  817. GrpTable: Grp3_2
  818. 0: TEST Ev,Iz
  819. 1:
  820. 2: NOT Ev
  821. 3: NEG Ev
  822. 4: MUL rAX,Ev
  823. 5: IMUL rAX,Ev
  824. 6: DIV rAX,Ev
  825. 7: IDIV rAX,Ev
  826. EndTable
  827. GrpTable: Grp4
  828. 0: INC Eb
  829. 1: DEC Eb
  830. EndTable
  831. GrpTable: Grp5
  832. 0: INC Ev
  833. 1: DEC Ev
  834. 2: CALLN Ev (f64)
  835. 3: CALLF Ep
  836. 4: JMPN Ev (f64)
  837. 5: JMPF Mp
  838. 6: PUSH Ev (d64)
  839. 7:
  840. EndTable
  841. GrpTable: Grp6
  842. 0: SLDT Rv/Mw
  843. 1: STR Rv/Mw
  844. 2: LLDT Ew
  845. 3: LTR Ew
  846. 4: VERR Ew
  847. 5: VERW Ew
  848. EndTable
  849. GrpTable: Grp7
  850. 0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B)
  851. 1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001)
  852. 2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B)
  853. 3: LIDT Ms
  854. 4: SMSW Mw/Rv
  855. 5:
  856. 6: LMSW Ew
  857. 7: INVLPG Mb | SWAPGS (o64),(000),(11B) | RDTSCP (001),(11B)
  858. EndTable
  859. GrpTable: Grp8
  860. 4: BT
  861. 5: BTS
  862. 6: BTR
  863. 7: BTC
  864. EndTable
  865. GrpTable: Grp9
  866. 1: CMPXCHG8B/16B Mq/Mdq
  867. 6: VMPTRLD Mq | VMCLEAR Mq (66) | VMXON Mq (F3) | RDRAND Rv (11B)
  868. 7: VMPTRST Mq | VMPTRST Mq (F3)
  869. EndTable
  870. GrpTable: Grp10
  871. EndTable
  872. GrpTable: Grp11
  873. # Note: the operands are given by group opcode
  874. 0: MOV
  875. EndTable
  876. GrpTable: Grp12
  877. 2: psrlw Nq,Ib (11B) | vpsrlw Hx,Ux,Ib (66),(11B),(v1)
  878. 4: psraw Nq,Ib (11B) | vpsraw Hx,Ux,Ib (66),(11B),(v1)
  879. 6: psllw Nq,Ib (11B) | vpsllw Hx,Ux,Ib (66),(11B),(v1)
  880. EndTable
  881. GrpTable: Grp13
  882. 2: psrld Nq,Ib (11B) | vpsrld Hx,Ux,Ib (66),(11B),(v1)
  883. 4: psrad Nq,Ib (11B) | vpsrad Hx,Ux,Ib (66),(11B),(v1)
  884. 6: pslld Nq,Ib (11B) | vpslld Hx,Ux,Ib (66),(11B),(v1)
  885. EndTable
  886. GrpTable: Grp14
  887. 2: psrlq Nq,Ib (11B) | vpsrlq Hx,Ux,Ib (66),(11B),(v1)
  888. 3: vpsrldq Hx,Ux,Ib (66),(11B),(v1)
  889. 6: psllq Nq,Ib (11B) | vpsllq Hx,Ux,Ib (66),(11B),(v1)
  890. 7: vpslldq Hx,Ux,Ib (66),(11B),(v1)
  891. EndTable
  892. GrpTable: Grp15
  893. 0: fxsave | RDFSBASE Ry (F3),(11B)
  894. 1: fxstor | RDGSBASE Ry (F3),(11B)
  895. 2: vldmxcsr Md (v1) | WRFSBASE Ry (F3),(11B)
  896. 3: vstmxcsr Md (v1) | WRGSBASE Ry (F3),(11B)
  897. 4: XSAVE
  898. 5: XRSTOR | lfence (11B)
  899. 6: XSAVEOPT | mfence (11B)
  900. 7: clflush | sfence (11B)
  901. EndTable
  902. GrpTable: Grp16
  903. 0: prefetch NTA
  904. 1: prefetch T0
  905. 2: prefetch T1
  906. 3: prefetch T2
  907. EndTable
  908. GrpTable: Grp17
  909. 1: BLSR By,Ey (v)
  910. 2: BLSMSK By,Ey (v)
  911. 3: BLSI By,Ey (v)
  912. EndTable
  913. # AMD's Prefetch Group
  914. GrpTable: GrpP
  915. 0: PREFETCH
  916. 1: PREFETCHW
  917. EndTable
  918. GrpTable: GrpPDLK
  919. 0: MONTMUL
  920. 1: XSHA1
  921. 2: XSHA2
  922. EndTable
  923. GrpTable: GrpRNG
  924. 0: xstore-rng
  925. 1: xcrypt-ecb
  926. 2: xcrypt-cbc
  927. 4: xcrypt-cfb
  928. 5: xcrypt-ofb
  929. EndTable