x86-opcode-map.txt 25 KB

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