1*d046b725SJosh Poimboeuf# x86 Opcode Maps 2*d046b725SJosh Poimboeuf# 3*d046b725SJosh Poimboeuf# This is (mostly) based on following documentations. 4*d046b725SJosh Poimboeuf# - Intel(R) 64 and IA-32 Architectures Software Developer's Manual Vol.2C 5*d046b725SJosh Poimboeuf# (#326018-047US, June 2013) 6*d046b725SJosh Poimboeuf# 7*d046b725SJosh Poimboeuf#<Opcode maps> 8*d046b725SJosh Poimboeuf# Table: table-name 9*d046b725SJosh Poimboeuf# Referrer: escaped-name 10*d046b725SJosh Poimboeuf# AVXcode: avx-code 11*d046b725SJosh Poimboeuf# opcode: mnemonic|GrpXXX [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...] 12*d046b725SJosh Poimboeuf# (or) 13*d046b725SJosh Poimboeuf# opcode: escape # escaped-name 14*d046b725SJosh Poimboeuf# EndTable 15*d046b725SJosh Poimboeuf# 16*d046b725SJosh Poimboeuf# mnemonics that begin with lowercase 'v' accept a VEX or EVEX prefix 17*d046b725SJosh Poimboeuf# mnemonics that begin with lowercase 'k' accept a VEX prefix 18*d046b725SJosh Poimboeuf# 19*d046b725SJosh Poimboeuf#<group maps> 20*d046b725SJosh Poimboeuf# GrpTable: GrpXXX 21*d046b725SJosh Poimboeuf# reg: mnemonic [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...] 22*d046b725SJosh Poimboeuf# EndTable 23*d046b725SJosh Poimboeuf# 24*d046b725SJosh Poimboeuf# AVX Superscripts 25*d046b725SJosh Poimboeuf# (ev): this opcode requires EVEX prefix. 26*d046b725SJosh Poimboeuf# (evo): this opcode is changed by EVEX prefix (EVEX opcode) 27*d046b725SJosh Poimboeuf# (v): this opcode requires VEX prefix. 28*d046b725SJosh Poimboeuf# (v1): this opcode only supports 128bit VEX. 29*d046b725SJosh Poimboeuf# 30*d046b725SJosh Poimboeuf# Last Prefix Superscripts 31*d046b725SJosh Poimboeuf# - (66): the last prefix is 0x66 32*d046b725SJosh Poimboeuf# - (F3): the last prefix is 0xF3 33*d046b725SJosh Poimboeuf# - (F2): the last prefix is 0xF2 34*d046b725SJosh Poimboeuf# - (!F3) : the last prefix is not 0xF3 (including non-last prefix case) 35*d046b725SJosh Poimboeuf# - (66&F2): Both 0x66 and 0xF2 prefixes are specified. 36*d046b725SJosh Poimboeuf 37*d046b725SJosh PoimboeufTable: one byte opcode 38*d046b725SJosh PoimboeufReferrer: 39*d046b725SJosh PoimboeufAVXcode: 40*d046b725SJosh Poimboeuf# 0x00 - 0x0f 41*d046b725SJosh Poimboeuf00: ADD Eb,Gb 42*d046b725SJosh Poimboeuf01: ADD Ev,Gv 43*d046b725SJosh Poimboeuf02: ADD Gb,Eb 44*d046b725SJosh Poimboeuf03: ADD Gv,Ev 45*d046b725SJosh Poimboeuf04: ADD AL,Ib 46*d046b725SJosh Poimboeuf05: ADD rAX,Iz 47*d046b725SJosh Poimboeuf06: PUSH ES (i64) 48*d046b725SJosh Poimboeuf07: POP ES (i64) 49*d046b725SJosh Poimboeuf08: OR Eb,Gb 50*d046b725SJosh Poimboeuf09: OR Ev,Gv 51*d046b725SJosh Poimboeuf0a: OR Gb,Eb 52*d046b725SJosh Poimboeuf0b: OR Gv,Ev 53*d046b725SJosh Poimboeuf0c: OR AL,Ib 54*d046b725SJosh Poimboeuf0d: OR rAX,Iz 55*d046b725SJosh Poimboeuf0e: PUSH CS (i64) 56*d046b725SJosh Poimboeuf0f: escape # 2-byte escape 57*d046b725SJosh Poimboeuf# 0x10 - 0x1f 58*d046b725SJosh Poimboeuf10: ADC Eb,Gb 59*d046b725SJosh Poimboeuf11: ADC Ev,Gv 60*d046b725SJosh Poimboeuf12: ADC Gb,Eb 61*d046b725SJosh Poimboeuf13: ADC Gv,Ev 62*d046b725SJosh Poimboeuf14: ADC AL,Ib 63*d046b725SJosh Poimboeuf15: ADC rAX,Iz 64*d046b725SJosh Poimboeuf16: PUSH SS (i64) 65*d046b725SJosh Poimboeuf17: POP SS (i64) 66*d046b725SJosh Poimboeuf18: SBB Eb,Gb 67*d046b725SJosh Poimboeuf19: SBB Ev,Gv 68*d046b725SJosh Poimboeuf1a: SBB Gb,Eb 69*d046b725SJosh Poimboeuf1b: SBB Gv,Ev 70*d046b725SJosh Poimboeuf1c: SBB AL,Ib 71*d046b725SJosh Poimboeuf1d: SBB rAX,Iz 72*d046b725SJosh Poimboeuf1e: PUSH DS (i64) 73*d046b725SJosh Poimboeuf1f: POP DS (i64) 74*d046b725SJosh Poimboeuf# 0x20 - 0x2f 75*d046b725SJosh Poimboeuf20: AND Eb,Gb 76*d046b725SJosh Poimboeuf21: AND Ev,Gv 77*d046b725SJosh Poimboeuf22: AND Gb,Eb 78*d046b725SJosh Poimboeuf23: AND Gv,Ev 79*d046b725SJosh Poimboeuf24: AND AL,Ib 80*d046b725SJosh Poimboeuf25: AND rAx,Iz 81*d046b725SJosh Poimboeuf26: SEG=ES (Prefix) 82*d046b725SJosh Poimboeuf27: DAA (i64) 83*d046b725SJosh Poimboeuf28: SUB Eb,Gb 84*d046b725SJosh Poimboeuf29: SUB Ev,Gv 85*d046b725SJosh Poimboeuf2a: SUB Gb,Eb 86*d046b725SJosh Poimboeuf2b: SUB Gv,Ev 87*d046b725SJosh Poimboeuf2c: SUB AL,Ib 88*d046b725SJosh Poimboeuf2d: SUB rAX,Iz 89*d046b725SJosh Poimboeuf2e: SEG=CS (Prefix) 90*d046b725SJosh Poimboeuf2f: DAS (i64) 91*d046b725SJosh Poimboeuf# 0x30 - 0x3f 92*d046b725SJosh Poimboeuf30: XOR Eb,Gb 93*d046b725SJosh Poimboeuf31: XOR Ev,Gv 94*d046b725SJosh Poimboeuf32: XOR Gb,Eb 95*d046b725SJosh Poimboeuf33: XOR Gv,Ev 96*d046b725SJosh Poimboeuf34: XOR AL,Ib 97*d046b725SJosh Poimboeuf35: XOR rAX,Iz 98*d046b725SJosh Poimboeuf36: SEG=SS (Prefix) 99*d046b725SJosh Poimboeuf37: AAA (i64) 100*d046b725SJosh Poimboeuf38: CMP Eb,Gb 101*d046b725SJosh Poimboeuf39: CMP Ev,Gv 102*d046b725SJosh Poimboeuf3a: CMP Gb,Eb 103*d046b725SJosh Poimboeuf3b: CMP Gv,Ev 104*d046b725SJosh Poimboeuf3c: CMP AL,Ib 105*d046b725SJosh Poimboeuf3d: CMP rAX,Iz 106*d046b725SJosh Poimboeuf3e: SEG=DS (Prefix) 107*d046b725SJosh Poimboeuf3f: AAS (i64) 108*d046b725SJosh Poimboeuf# 0x40 - 0x4f 109*d046b725SJosh Poimboeuf40: INC eAX (i64) | REX (o64) 110*d046b725SJosh Poimboeuf41: INC eCX (i64) | REX.B (o64) 111*d046b725SJosh Poimboeuf42: INC eDX (i64) | REX.X (o64) 112*d046b725SJosh Poimboeuf43: INC eBX (i64) | REX.XB (o64) 113*d046b725SJosh Poimboeuf44: INC eSP (i64) | REX.R (o64) 114*d046b725SJosh Poimboeuf45: INC eBP (i64) | REX.RB (o64) 115*d046b725SJosh Poimboeuf46: INC eSI (i64) | REX.RX (o64) 116*d046b725SJosh Poimboeuf47: INC eDI (i64) | REX.RXB (o64) 117*d046b725SJosh Poimboeuf48: DEC eAX (i64) | REX.W (o64) 118*d046b725SJosh Poimboeuf49: DEC eCX (i64) | REX.WB (o64) 119*d046b725SJosh Poimboeuf4a: DEC eDX (i64) | REX.WX (o64) 120*d046b725SJosh Poimboeuf4b: DEC eBX (i64) | REX.WXB (o64) 121*d046b725SJosh Poimboeuf4c: DEC eSP (i64) | REX.WR (o64) 122*d046b725SJosh Poimboeuf4d: DEC eBP (i64) | REX.WRB (o64) 123*d046b725SJosh Poimboeuf4e: DEC eSI (i64) | REX.WRX (o64) 124*d046b725SJosh Poimboeuf4f: DEC eDI (i64) | REX.WRXB (o64) 125*d046b725SJosh Poimboeuf# 0x50 - 0x5f 126*d046b725SJosh Poimboeuf50: PUSH rAX/r8 (d64) 127*d046b725SJosh Poimboeuf51: PUSH rCX/r9 (d64) 128*d046b725SJosh Poimboeuf52: PUSH rDX/r10 (d64) 129*d046b725SJosh Poimboeuf53: PUSH rBX/r11 (d64) 130*d046b725SJosh Poimboeuf54: PUSH rSP/r12 (d64) 131*d046b725SJosh Poimboeuf55: PUSH rBP/r13 (d64) 132*d046b725SJosh Poimboeuf56: PUSH rSI/r14 (d64) 133*d046b725SJosh Poimboeuf57: PUSH rDI/r15 (d64) 134*d046b725SJosh Poimboeuf58: POP rAX/r8 (d64) 135*d046b725SJosh Poimboeuf59: POP rCX/r9 (d64) 136*d046b725SJosh Poimboeuf5a: POP rDX/r10 (d64) 137*d046b725SJosh Poimboeuf5b: POP rBX/r11 (d64) 138*d046b725SJosh Poimboeuf5c: POP rSP/r12 (d64) 139*d046b725SJosh Poimboeuf5d: POP rBP/r13 (d64) 140*d046b725SJosh Poimboeuf5e: POP rSI/r14 (d64) 141*d046b725SJosh Poimboeuf5f: POP rDI/r15 (d64) 142*d046b725SJosh Poimboeuf# 0x60 - 0x6f 143*d046b725SJosh Poimboeuf60: PUSHA/PUSHAD (i64) 144*d046b725SJosh Poimboeuf61: POPA/POPAD (i64) 145*d046b725SJosh Poimboeuf62: BOUND Gv,Ma (i64) | EVEX (Prefix) 146*d046b725SJosh Poimboeuf63: ARPL Ew,Gw (i64) | MOVSXD Gv,Ev (o64) 147*d046b725SJosh Poimboeuf64: SEG=FS (Prefix) 148*d046b725SJosh Poimboeuf65: SEG=GS (Prefix) 149*d046b725SJosh Poimboeuf66: Operand-Size (Prefix) 150*d046b725SJosh Poimboeuf67: Address-Size (Prefix) 151*d046b725SJosh Poimboeuf68: PUSH Iz (d64) 152*d046b725SJosh Poimboeuf69: IMUL Gv,Ev,Iz 153*d046b725SJosh Poimboeuf6a: PUSH Ib (d64) 154*d046b725SJosh Poimboeuf6b: IMUL Gv,Ev,Ib 155*d046b725SJosh Poimboeuf6c: INS/INSB Yb,DX 156*d046b725SJosh Poimboeuf6d: INS/INSW/INSD Yz,DX 157*d046b725SJosh Poimboeuf6e: OUTS/OUTSB DX,Xb 158*d046b725SJosh Poimboeuf6f: OUTS/OUTSW/OUTSD DX,Xz 159*d046b725SJosh Poimboeuf# 0x70 - 0x7f 160*d046b725SJosh Poimboeuf70: JO Jb 161*d046b725SJosh Poimboeuf71: JNO Jb 162*d046b725SJosh Poimboeuf72: JB/JNAE/JC Jb 163*d046b725SJosh Poimboeuf73: JNB/JAE/JNC Jb 164*d046b725SJosh Poimboeuf74: JZ/JE Jb 165*d046b725SJosh Poimboeuf75: JNZ/JNE Jb 166*d046b725SJosh Poimboeuf76: JBE/JNA Jb 167*d046b725SJosh Poimboeuf77: JNBE/JA Jb 168*d046b725SJosh Poimboeuf78: JS Jb 169*d046b725SJosh Poimboeuf79: JNS Jb 170*d046b725SJosh Poimboeuf7a: JP/JPE Jb 171*d046b725SJosh Poimboeuf7b: JNP/JPO Jb 172*d046b725SJosh Poimboeuf7c: JL/JNGE Jb 173*d046b725SJosh Poimboeuf7d: JNL/JGE Jb 174*d046b725SJosh Poimboeuf7e: JLE/JNG Jb 175*d046b725SJosh Poimboeuf7f: JNLE/JG Jb 176*d046b725SJosh Poimboeuf# 0x80 - 0x8f 177*d046b725SJosh Poimboeuf80: Grp1 Eb,Ib (1A) 178*d046b725SJosh Poimboeuf81: Grp1 Ev,Iz (1A) 179*d046b725SJosh Poimboeuf82: Grp1 Eb,Ib (1A),(i64) 180*d046b725SJosh Poimboeuf83: Grp1 Ev,Ib (1A) 181*d046b725SJosh Poimboeuf84: TEST Eb,Gb 182*d046b725SJosh Poimboeuf85: TEST Ev,Gv 183*d046b725SJosh Poimboeuf86: XCHG Eb,Gb 184*d046b725SJosh Poimboeuf87: XCHG Ev,Gv 185*d046b725SJosh Poimboeuf88: MOV Eb,Gb 186*d046b725SJosh Poimboeuf89: MOV Ev,Gv 187*d046b725SJosh Poimboeuf8a: MOV Gb,Eb 188*d046b725SJosh Poimboeuf8b: MOV Gv,Ev 189*d046b725SJosh Poimboeuf8c: MOV Ev,Sw 190*d046b725SJosh Poimboeuf8d: LEA Gv,M 191*d046b725SJosh Poimboeuf8e: MOV Sw,Ew 192*d046b725SJosh Poimboeuf8f: Grp1A (1A) | POP Ev (d64) 193*d046b725SJosh Poimboeuf# 0x90 - 0x9f 194*d046b725SJosh Poimboeuf90: NOP | PAUSE (F3) | XCHG r8,rAX 195*d046b725SJosh Poimboeuf91: XCHG rCX/r9,rAX 196*d046b725SJosh Poimboeuf92: XCHG rDX/r10,rAX 197*d046b725SJosh Poimboeuf93: XCHG rBX/r11,rAX 198*d046b725SJosh Poimboeuf94: XCHG rSP/r12,rAX 199*d046b725SJosh Poimboeuf95: XCHG rBP/r13,rAX 200*d046b725SJosh Poimboeuf96: XCHG rSI/r14,rAX 201*d046b725SJosh Poimboeuf97: XCHG rDI/r15,rAX 202*d046b725SJosh Poimboeuf98: CBW/CWDE/CDQE 203*d046b725SJosh Poimboeuf99: CWD/CDQ/CQO 204*d046b725SJosh Poimboeuf9a: CALLF Ap (i64) 205*d046b725SJosh Poimboeuf9b: FWAIT/WAIT 206*d046b725SJosh Poimboeuf9c: PUSHF/D/Q Fv (d64) 207*d046b725SJosh Poimboeuf9d: POPF/D/Q Fv (d64) 208*d046b725SJosh Poimboeuf9e: SAHF 209*d046b725SJosh Poimboeuf9f: LAHF 210*d046b725SJosh Poimboeuf# 0xa0 - 0xaf 211*d046b725SJosh Poimboeufa0: MOV AL,Ob 212*d046b725SJosh Poimboeufa1: MOV rAX,Ov 213*d046b725SJosh Poimboeufa2: MOV Ob,AL 214*d046b725SJosh Poimboeufa3: MOV Ov,rAX 215*d046b725SJosh Poimboeufa4: MOVS/B Yb,Xb 216*d046b725SJosh Poimboeufa5: MOVS/W/D/Q Yv,Xv 217*d046b725SJosh Poimboeufa6: CMPS/B Xb,Yb 218*d046b725SJosh Poimboeufa7: CMPS/W/D Xv,Yv 219*d046b725SJosh Poimboeufa8: TEST AL,Ib 220*d046b725SJosh Poimboeufa9: TEST rAX,Iz 221*d046b725SJosh Poimboeufaa: STOS/B Yb,AL 222*d046b725SJosh Poimboeufab: STOS/W/D/Q Yv,rAX 223*d046b725SJosh Poimboeufac: LODS/B AL,Xb 224*d046b725SJosh Poimboeufad: LODS/W/D/Q rAX,Xv 225*d046b725SJosh Poimboeufae: SCAS/B AL,Yb 226*d046b725SJosh Poimboeuf# Note: The May 2011 Intel manual shows Xv for the second parameter of the 227*d046b725SJosh Poimboeuf# next instruction but Yv is correct 228*d046b725SJosh Poimboeufaf: SCAS/W/D/Q rAX,Yv 229*d046b725SJosh Poimboeuf# 0xb0 - 0xbf 230*d046b725SJosh Poimboeufb0: MOV AL/R8L,Ib 231*d046b725SJosh Poimboeufb1: MOV CL/R9L,Ib 232*d046b725SJosh Poimboeufb2: MOV DL/R10L,Ib 233*d046b725SJosh Poimboeufb3: MOV BL/R11L,Ib 234*d046b725SJosh Poimboeufb4: MOV AH/R12L,Ib 235*d046b725SJosh Poimboeufb5: MOV CH/R13L,Ib 236*d046b725SJosh Poimboeufb6: MOV DH/R14L,Ib 237*d046b725SJosh Poimboeufb7: MOV BH/R15L,Ib 238*d046b725SJosh Poimboeufb8: MOV rAX/r8,Iv 239*d046b725SJosh Poimboeufb9: MOV rCX/r9,Iv 240*d046b725SJosh Poimboeufba: MOV rDX/r10,Iv 241*d046b725SJosh Poimboeufbb: MOV rBX/r11,Iv 242*d046b725SJosh Poimboeufbc: MOV rSP/r12,Iv 243*d046b725SJosh Poimboeufbd: MOV rBP/r13,Iv 244*d046b725SJosh Poimboeufbe: MOV rSI/r14,Iv 245*d046b725SJosh Poimboeufbf: MOV rDI/r15,Iv 246*d046b725SJosh Poimboeuf# 0xc0 - 0xcf 247*d046b725SJosh Poimboeufc0: Grp2 Eb,Ib (1A) 248*d046b725SJosh Poimboeufc1: Grp2 Ev,Ib (1A) 249*d046b725SJosh Poimboeufc2: RETN Iw (f64) 250*d046b725SJosh Poimboeufc3: RETN 251*d046b725SJosh Poimboeufc4: LES Gz,Mp (i64) | VEX+2byte (Prefix) 252*d046b725SJosh Poimboeufc5: LDS Gz,Mp (i64) | VEX+1byte (Prefix) 253*d046b725SJosh Poimboeufc6: Grp11A Eb,Ib (1A) 254*d046b725SJosh Poimboeufc7: Grp11B Ev,Iz (1A) 255*d046b725SJosh Poimboeufc8: ENTER Iw,Ib 256*d046b725SJosh Poimboeufc9: LEAVE (d64) 257*d046b725SJosh Poimboeufca: RETF Iw 258*d046b725SJosh Poimboeufcb: RETF 259*d046b725SJosh Poimboeufcc: INT3 260*d046b725SJosh Poimboeufcd: INT Ib 261*d046b725SJosh Poimboeufce: INTO (i64) 262*d046b725SJosh Poimboeufcf: IRET/D/Q 263*d046b725SJosh Poimboeuf# 0xd0 - 0xdf 264*d046b725SJosh Poimboeufd0: Grp2 Eb,1 (1A) 265*d046b725SJosh Poimboeufd1: Grp2 Ev,1 (1A) 266*d046b725SJosh Poimboeufd2: Grp2 Eb,CL (1A) 267*d046b725SJosh Poimboeufd3: Grp2 Ev,CL (1A) 268*d046b725SJosh Poimboeufd4: AAM Ib (i64) 269*d046b725SJosh Poimboeufd5: AAD Ib (i64) 270*d046b725SJosh Poimboeufd6: 271*d046b725SJosh Poimboeufd7: XLAT/XLATB 272*d046b725SJosh Poimboeufd8: ESC 273*d046b725SJosh Poimboeufd9: ESC 274*d046b725SJosh Poimboeufda: ESC 275*d046b725SJosh Poimboeufdb: ESC 276*d046b725SJosh Poimboeufdc: ESC 277*d046b725SJosh Poimboeufdd: ESC 278*d046b725SJosh Poimboeufde: ESC 279*d046b725SJosh Poimboeufdf: ESC 280*d046b725SJosh Poimboeuf# 0xe0 - 0xef 281*d046b725SJosh Poimboeuf# Note: "forced64" is Intel CPU behavior: they ignore 0x66 prefix 282*d046b725SJosh Poimboeuf# in 64-bit mode. AMD CPUs accept 0x66 prefix, it causes RIP truncation 283*d046b725SJosh Poimboeuf# to 16 bits. In 32-bit mode, 0x66 is accepted by both Intel and AMD. 284*d046b725SJosh Poimboeufe0: LOOPNE/LOOPNZ Jb (f64) 285*d046b725SJosh Poimboeufe1: LOOPE/LOOPZ Jb (f64) 286*d046b725SJosh Poimboeufe2: LOOP Jb (f64) 287*d046b725SJosh Poimboeufe3: JrCXZ Jb (f64) 288*d046b725SJosh Poimboeufe4: IN AL,Ib 289*d046b725SJosh Poimboeufe5: IN eAX,Ib 290*d046b725SJosh Poimboeufe6: OUT Ib,AL 291*d046b725SJosh Poimboeufe7: OUT Ib,eAX 292*d046b725SJosh Poimboeuf# With 0x66 prefix in 64-bit mode, for AMD CPUs immediate offset 293*d046b725SJosh Poimboeuf# in "near" jumps and calls is 16-bit. For CALL, 294*d046b725SJosh Poimboeuf# push of return address is 16-bit wide, RSP is decremented by 2 295*d046b725SJosh Poimboeuf# but is not truncated to 16 bits, unlike RIP. 296*d046b725SJosh Poimboeufe8: CALL Jz (f64) 297*d046b725SJosh Poimboeufe9: JMP-near Jz (f64) 298*d046b725SJosh Poimboeufea: JMP-far Ap (i64) 299*d046b725SJosh Poimboeufeb: JMP-short Jb (f64) 300*d046b725SJosh Poimboeufec: IN AL,DX 301*d046b725SJosh Poimboeufed: IN eAX,DX 302*d046b725SJosh Poimboeufee: OUT DX,AL 303*d046b725SJosh Poimboeufef: OUT DX,eAX 304*d046b725SJosh Poimboeuf# 0xf0 - 0xff 305*d046b725SJosh Poimboeuff0: LOCK (Prefix) 306*d046b725SJosh Poimboeuff1: 307*d046b725SJosh Poimboeuff2: REPNE (Prefix) | XACQUIRE (Prefix) 308*d046b725SJosh Poimboeuff3: REP/REPE (Prefix) | XRELEASE (Prefix) 309*d046b725SJosh Poimboeuff4: HLT 310*d046b725SJosh Poimboeuff5: CMC 311*d046b725SJosh Poimboeuff6: Grp3_1 Eb (1A) 312*d046b725SJosh Poimboeuff7: Grp3_2 Ev (1A) 313*d046b725SJosh Poimboeuff8: CLC 314*d046b725SJosh Poimboeuff9: STC 315*d046b725SJosh Poimboeuffa: CLI 316*d046b725SJosh Poimboeuffb: STI 317*d046b725SJosh Poimboeuffc: CLD 318*d046b725SJosh Poimboeuffd: STD 319*d046b725SJosh Poimboeuffe: Grp4 (1A) 320*d046b725SJosh Poimboeufff: Grp5 (1A) 321*d046b725SJosh PoimboeufEndTable 322*d046b725SJosh Poimboeuf 323*d046b725SJosh PoimboeufTable: 2-byte opcode (0x0f) 324*d046b725SJosh PoimboeufReferrer: 2-byte escape 325*d046b725SJosh PoimboeufAVXcode: 1 326*d046b725SJosh Poimboeuf# 0x0f 0x00-0x0f 327*d046b725SJosh Poimboeuf00: Grp6 (1A) 328*d046b725SJosh Poimboeuf01: Grp7 (1A) 329*d046b725SJosh Poimboeuf02: LAR Gv,Ew 330*d046b725SJosh Poimboeuf03: LSL Gv,Ew 331*d046b725SJosh Poimboeuf04: 332*d046b725SJosh Poimboeuf05: SYSCALL (o64) 333*d046b725SJosh Poimboeuf06: CLTS 334*d046b725SJosh Poimboeuf07: SYSRET (o64) 335*d046b725SJosh Poimboeuf08: INVD 336*d046b725SJosh Poimboeuf09: WBINVD 337*d046b725SJosh Poimboeuf0a: 338*d046b725SJosh Poimboeuf0b: UD2 (1B) 339*d046b725SJosh Poimboeuf0c: 340*d046b725SJosh Poimboeuf# AMD's prefetch group. Intel supports prefetchw(/1) only. 341*d046b725SJosh Poimboeuf0d: GrpP 342*d046b725SJosh Poimboeuf0e: FEMMS 343*d046b725SJosh Poimboeuf# 3DNow! uses the last imm byte as opcode extension. 344*d046b725SJosh Poimboeuf0f: 3DNow! Pq,Qq,Ib 345*d046b725SJosh Poimboeuf# 0x0f 0x10-0x1f 346*d046b725SJosh Poimboeuf# NOTE: According to Intel SDM opcode map, vmovups and vmovupd has no operands 347*d046b725SJosh Poimboeuf# but it actually has operands. And also, vmovss and vmovsd only accept 128bit. 348*d046b725SJosh Poimboeuf# MOVSS/MOVSD has too many forms(3) on SDM. This map just shows a typical form. 349*d046b725SJosh Poimboeuf# Many AVX instructions lack v1 superscript, according to Intel AVX-Prgramming 350*d046b725SJosh Poimboeuf# Reference A.1 351*d046b725SJosh Poimboeuf10: vmovups Vps,Wps | vmovupd Vpd,Wpd (66) | vmovss Vx,Hx,Wss (F3),(v1) | vmovsd Vx,Hx,Wsd (F2),(v1) 352*d046b725SJosh Poimboeuf11: vmovups Wps,Vps | vmovupd Wpd,Vpd (66) | vmovss Wss,Hx,Vss (F3),(v1) | vmovsd Wsd,Hx,Vsd (F2),(v1) 353*d046b725SJosh Poimboeuf12: vmovlps Vq,Hq,Mq (v1) | vmovhlps Vq,Hq,Uq (v1) | vmovlpd Vq,Hq,Mq (66),(v1) | vmovsldup Vx,Wx (F3) | vmovddup Vx,Wx (F2) 354*d046b725SJosh Poimboeuf13: vmovlps Mq,Vq (v1) | vmovlpd Mq,Vq (66),(v1) 355*d046b725SJosh Poimboeuf14: vunpcklps Vx,Hx,Wx | vunpcklpd Vx,Hx,Wx (66) 356*d046b725SJosh Poimboeuf15: vunpckhps Vx,Hx,Wx | vunpckhpd Vx,Hx,Wx (66) 357*d046b725SJosh Poimboeuf16: vmovhps Vdq,Hq,Mq (v1) | vmovlhps Vdq,Hq,Uq (v1) | vmovhpd Vdq,Hq,Mq (66),(v1) | vmovshdup Vx,Wx (F3) 358*d046b725SJosh Poimboeuf17: vmovhps Mq,Vq (v1) | vmovhpd Mq,Vq (66),(v1) 359*d046b725SJosh Poimboeuf18: Grp16 (1A) 360*d046b725SJosh Poimboeuf19: 361*d046b725SJosh Poimboeuf# Intel SDM opcode map does not list MPX instructions. For now using Gv for 362*d046b725SJosh Poimboeuf# bnd registers and Ev for everything else is OK because the instruction 363*d046b725SJosh Poimboeuf# decoder does not use the information except as an indication that there is 364*d046b725SJosh Poimboeuf# a ModR/M byte. 365*d046b725SJosh Poimboeuf1a: BNDCL Gv,Ev (F3) | BNDCU Gv,Ev (F2) | BNDMOV Gv,Ev (66) | BNDLDX Gv,Ev 366*d046b725SJosh Poimboeuf1b: BNDCN Gv,Ev (F2) | BNDMOV Ev,Gv (66) | BNDMK Gv,Ev (F3) | BNDSTX Ev,Gv 367*d046b725SJosh Poimboeuf1c: 368*d046b725SJosh Poimboeuf1d: 369*d046b725SJosh Poimboeuf1e: 370*d046b725SJosh Poimboeuf1f: NOP Ev 371*d046b725SJosh Poimboeuf# 0x0f 0x20-0x2f 372*d046b725SJosh Poimboeuf20: MOV Rd,Cd 373*d046b725SJosh Poimboeuf21: MOV Rd,Dd 374*d046b725SJosh Poimboeuf22: MOV Cd,Rd 375*d046b725SJosh Poimboeuf23: MOV Dd,Rd 376*d046b725SJosh Poimboeuf24: 377*d046b725SJosh Poimboeuf25: 378*d046b725SJosh Poimboeuf26: 379*d046b725SJosh Poimboeuf27: 380*d046b725SJosh Poimboeuf28: vmovaps Vps,Wps | vmovapd Vpd,Wpd (66) 381*d046b725SJosh Poimboeuf29: vmovaps Wps,Vps | vmovapd Wpd,Vpd (66) 382*d046b725SJosh Poimboeuf2a: cvtpi2ps Vps,Qpi | cvtpi2pd Vpd,Qpi (66) | vcvtsi2ss Vss,Hss,Ey (F3),(v1) | vcvtsi2sd Vsd,Hsd,Ey (F2),(v1) 383*d046b725SJosh Poimboeuf2b: vmovntps Mps,Vps | vmovntpd Mpd,Vpd (66) 384*d046b725SJosh Poimboeuf2c: cvttps2pi Ppi,Wps | cvttpd2pi Ppi,Wpd (66) | vcvttss2si Gy,Wss (F3),(v1) | vcvttsd2si Gy,Wsd (F2),(v1) 385*d046b725SJosh Poimboeuf2d: cvtps2pi Ppi,Wps | cvtpd2pi Qpi,Wpd (66) | vcvtss2si Gy,Wss (F3),(v1) | vcvtsd2si Gy,Wsd (F2),(v1) 386*d046b725SJosh Poimboeuf2e: vucomiss Vss,Wss (v1) | vucomisd Vsd,Wsd (66),(v1) 387*d046b725SJosh Poimboeuf2f: vcomiss Vss,Wss (v1) | vcomisd Vsd,Wsd (66),(v1) 388*d046b725SJosh Poimboeuf# 0x0f 0x30-0x3f 389*d046b725SJosh Poimboeuf30: WRMSR 390*d046b725SJosh Poimboeuf31: RDTSC 391*d046b725SJosh Poimboeuf32: RDMSR 392*d046b725SJosh Poimboeuf33: RDPMC 393*d046b725SJosh Poimboeuf34: SYSENTER 394*d046b725SJosh Poimboeuf35: SYSEXIT 395*d046b725SJosh Poimboeuf36: 396*d046b725SJosh Poimboeuf37: GETSEC 397*d046b725SJosh Poimboeuf38: escape # 3-byte escape 1 398*d046b725SJosh Poimboeuf39: 399*d046b725SJosh Poimboeuf3a: escape # 3-byte escape 2 400*d046b725SJosh Poimboeuf3b: 401*d046b725SJosh Poimboeuf3c: 402*d046b725SJosh Poimboeuf3d: 403*d046b725SJosh Poimboeuf3e: 404*d046b725SJosh Poimboeuf3f: 405*d046b725SJosh Poimboeuf# 0x0f 0x40-0x4f 406*d046b725SJosh Poimboeuf40: CMOVO Gv,Ev 407*d046b725SJosh Poimboeuf41: CMOVNO Gv,Ev | kandw/q Vk,Hk,Uk | kandb/d Vk,Hk,Uk (66) 408*d046b725SJosh Poimboeuf42: CMOVB/C/NAE Gv,Ev | kandnw/q Vk,Hk,Uk | kandnb/d Vk,Hk,Uk (66) 409*d046b725SJosh Poimboeuf43: CMOVAE/NB/NC Gv,Ev 410*d046b725SJosh Poimboeuf44: CMOVE/Z Gv,Ev | knotw/q Vk,Uk | knotb/d Vk,Uk (66) 411*d046b725SJosh Poimboeuf45: CMOVNE/NZ Gv,Ev | korw/q Vk,Hk,Uk | korb/d Vk,Hk,Uk (66) 412*d046b725SJosh Poimboeuf46: CMOVBE/NA Gv,Ev | kxnorw/q Vk,Hk,Uk | kxnorb/d Vk,Hk,Uk (66) 413*d046b725SJosh Poimboeuf47: CMOVA/NBE Gv,Ev | kxorw/q Vk,Hk,Uk | kxorb/d Vk,Hk,Uk (66) 414*d046b725SJosh Poimboeuf48: CMOVS Gv,Ev 415*d046b725SJosh Poimboeuf49: CMOVNS Gv,Ev 416*d046b725SJosh Poimboeuf4a: CMOVP/PE Gv,Ev | kaddw/q Vk,Hk,Uk | kaddb/d Vk,Hk,Uk (66) 417*d046b725SJosh Poimboeuf4b: CMOVNP/PO Gv,Ev | kunpckbw Vk,Hk,Uk (66) | kunpckwd/dq Vk,Hk,Uk 418*d046b725SJosh Poimboeuf4c: CMOVL/NGE Gv,Ev 419*d046b725SJosh Poimboeuf4d: CMOVNL/GE Gv,Ev 420*d046b725SJosh Poimboeuf4e: CMOVLE/NG Gv,Ev 421*d046b725SJosh Poimboeuf4f: CMOVNLE/G Gv,Ev 422*d046b725SJosh Poimboeuf# 0x0f 0x50-0x5f 423*d046b725SJosh Poimboeuf50: vmovmskps Gy,Ups | vmovmskpd Gy,Upd (66) 424*d046b725SJosh Poimboeuf51: vsqrtps Vps,Wps | vsqrtpd Vpd,Wpd (66) | vsqrtss Vss,Hss,Wss (F3),(v1) | vsqrtsd Vsd,Hsd,Wsd (F2),(v1) 425*d046b725SJosh Poimboeuf52: vrsqrtps Vps,Wps | vrsqrtss Vss,Hss,Wss (F3),(v1) 426*d046b725SJosh Poimboeuf53: vrcpps Vps,Wps | vrcpss Vss,Hss,Wss (F3),(v1) 427*d046b725SJosh Poimboeuf54: vandps Vps,Hps,Wps | vandpd Vpd,Hpd,Wpd (66) 428*d046b725SJosh Poimboeuf55: vandnps Vps,Hps,Wps | vandnpd Vpd,Hpd,Wpd (66) 429*d046b725SJosh Poimboeuf56: vorps Vps,Hps,Wps | vorpd Vpd,Hpd,Wpd (66) 430*d046b725SJosh Poimboeuf57: vxorps Vps,Hps,Wps | vxorpd Vpd,Hpd,Wpd (66) 431*d046b725SJosh Poimboeuf58: vaddps Vps,Hps,Wps | vaddpd Vpd,Hpd,Wpd (66) | vaddss Vss,Hss,Wss (F3),(v1) | vaddsd Vsd,Hsd,Wsd (F2),(v1) 432*d046b725SJosh Poimboeuf59: vmulps Vps,Hps,Wps | vmulpd Vpd,Hpd,Wpd (66) | vmulss Vss,Hss,Wss (F3),(v1) | vmulsd Vsd,Hsd,Wsd (F2),(v1) 433*d046b725SJosh Poimboeuf5a: vcvtps2pd Vpd,Wps | vcvtpd2ps Vps,Wpd (66) | vcvtss2sd Vsd,Hx,Wss (F3),(v1) | vcvtsd2ss Vss,Hx,Wsd (F2),(v1) 434*d046b725SJosh Poimboeuf5b: vcvtdq2ps Vps,Wdq | vcvtqq2ps Vps,Wqq (evo) | vcvtps2dq Vdq,Wps (66) | vcvttps2dq Vdq,Wps (F3) 435*d046b725SJosh Poimboeuf5c: vsubps Vps,Hps,Wps | vsubpd Vpd,Hpd,Wpd (66) | vsubss Vss,Hss,Wss (F3),(v1) | vsubsd Vsd,Hsd,Wsd (F2),(v1) 436*d046b725SJosh Poimboeuf5d: vminps Vps,Hps,Wps | vminpd Vpd,Hpd,Wpd (66) | vminss Vss,Hss,Wss (F3),(v1) | vminsd Vsd,Hsd,Wsd (F2),(v1) 437*d046b725SJosh Poimboeuf5e: vdivps Vps,Hps,Wps | vdivpd Vpd,Hpd,Wpd (66) | vdivss Vss,Hss,Wss (F3),(v1) | vdivsd Vsd,Hsd,Wsd (F2),(v1) 438*d046b725SJosh Poimboeuf5f: vmaxps Vps,Hps,Wps | vmaxpd Vpd,Hpd,Wpd (66) | vmaxss Vss,Hss,Wss (F3),(v1) | vmaxsd Vsd,Hsd,Wsd (F2),(v1) 439*d046b725SJosh Poimboeuf# 0x0f 0x60-0x6f 440*d046b725SJosh Poimboeuf60: punpcklbw Pq,Qd | vpunpcklbw Vx,Hx,Wx (66),(v1) 441*d046b725SJosh Poimboeuf61: punpcklwd Pq,Qd | vpunpcklwd Vx,Hx,Wx (66),(v1) 442*d046b725SJosh Poimboeuf62: punpckldq Pq,Qd | vpunpckldq Vx,Hx,Wx (66),(v1) 443*d046b725SJosh Poimboeuf63: packsswb Pq,Qq | vpacksswb Vx,Hx,Wx (66),(v1) 444*d046b725SJosh Poimboeuf64: pcmpgtb Pq,Qq | vpcmpgtb Vx,Hx,Wx (66),(v1) 445*d046b725SJosh Poimboeuf65: pcmpgtw Pq,Qq | vpcmpgtw Vx,Hx,Wx (66),(v1) 446*d046b725SJosh Poimboeuf66: pcmpgtd Pq,Qq | vpcmpgtd Vx,Hx,Wx (66),(v1) 447*d046b725SJosh Poimboeuf67: packuswb Pq,Qq | vpackuswb Vx,Hx,Wx (66),(v1) 448*d046b725SJosh Poimboeuf68: punpckhbw Pq,Qd | vpunpckhbw Vx,Hx,Wx (66),(v1) 449*d046b725SJosh Poimboeuf69: punpckhwd Pq,Qd | vpunpckhwd Vx,Hx,Wx (66),(v1) 450*d046b725SJosh Poimboeuf6a: punpckhdq Pq,Qd | vpunpckhdq Vx,Hx,Wx (66),(v1) 451*d046b725SJosh Poimboeuf6b: packssdw Pq,Qd | vpackssdw Vx,Hx,Wx (66),(v1) 452*d046b725SJosh Poimboeuf6c: vpunpcklqdq Vx,Hx,Wx (66),(v1) 453*d046b725SJosh Poimboeuf6d: vpunpckhqdq Vx,Hx,Wx (66),(v1) 454*d046b725SJosh Poimboeuf6e: movd/q Pd,Ey | vmovd/q Vy,Ey (66),(v1) 455*d046b725SJosh Poimboeuf6f: movq Pq,Qq | vmovdqa Vx,Wx (66) | vmovdqa32/64 Vx,Wx (66),(evo) | vmovdqu Vx,Wx (F3) | vmovdqu32/64 Vx,Wx (F3),(evo) | vmovdqu8/16 Vx,Wx (F2),(ev) 456*d046b725SJosh Poimboeuf# 0x0f 0x70-0x7f 457*d046b725SJosh Poimboeuf70: pshufw Pq,Qq,Ib | vpshufd Vx,Wx,Ib (66),(v1) | vpshufhw Vx,Wx,Ib (F3),(v1) | vpshuflw Vx,Wx,Ib (F2),(v1) 458*d046b725SJosh Poimboeuf71: Grp12 (1A) 459*d046b725SJosh Poimboeuf72: Grp13 (1A) 460*d046b725SJosh Poimboeuf73: Grp14 (1A) 461*d046b725SJosh Poimboeuf74: pcmpeqb Pq,Qq | vpcmpeqb Vx,Hx,Wx (66),(v1) 462*d046b725SJosh Poimboeuf75: pcmpeqw Pq,Qq | vpcmpeqw Vx,Hx,Wx (66),(v1) 463*d046b725SJosh Poimboeuf76: pcmpeqd Pq,Qq | vpcmpeqd Vx,Hx,Wx (66),(v1) 464*d046b725SJosh Poimboeuf# Note: Remove (v), because vzeroall and vzeroupper becomes emms without VEX. 465*d046b725SJosh Poimboeuf77: emms | vzeroupper | vzeroall 466*d046b725SJosh Poimboeuf78: VMREAD Ey,Gy | vcvttps2udq/pd2udq Vx,Wpd (evo) | vcvttsd2usi Gv,Wx (F2),(ev) | vcvttss2usi Gv,Wx (F3),(ev) | vcvttps2uqq/pd2uqq Vx,Wx (66),(ev) 467*d046b725SJosh Poimboeuf79: VMWRITE Gy,Ey | vcvtps2udq/pd2udq Vx,Wpd (evo) | vcvtsd2usi Gv,Wx (F2),(ev) | vcvtss2usi Gv,Wx (F3),(ev) | vcvtps2uqq/pd2uqq Vx,Wx (66),(ev) 468*d046b725SJosh Poimboeuf7a: vcvtudq2pd/uqq2pd Vpd,Wx (F3),(ev) | vcvtudq2ps/uqq2ps Vpd,Wx (F2),(ev) | vcvttps2qq/pd2qq Vx,Wx (66),(ev) 469*d046b725SJosh Poimboeuf7b: vcvtusi2sd Vpd,Hpd,Ev (F2),(ev) | vcvtusi2ss Vps,Hps,Ev (F3),(ev) | vcvtps2qq/pd2qq Vx,Wx (66),(ev) 470*d046b725SJosh Poimboeuf7c: vhaddpd Vpd,Hpd,Wpd (66) | vhaddps Vps,Hps,Wps (F2) 471*d046b725SJosh Poimboeuf7d: vhsubpd Vpd,Hpd,Wpd (66) | vhsubps Vps,Hps,Wps (F2) 472*d046b725SJosh Poimboeuf7e: movd/q Ey,Pd | vmovd/q Ey,Vy (66),(v1) | vmovq Vq,Wq (F3),(v1) 473*d046b725SJosh Poimboeuf7f: movq Qq,Pq | vmovdqa Wx,Vx (66) | vmovdqa32/64 Wx,Vx (66),(evo) | vmovdqu Wx,Vx (F3) | vmovdqu32/64 Wx,Vx (F3),(evo) | vmovdqu8/16 Wx,Vx (F2),(ev) 474*d046b725SJosh Poimboeuf# 0x0f 0x80-0x8f 475*d046b725SJosh Poimboeuf# Note: "forced64" is Intel CPU behavior (see comment about CALL insn). 476*d046b725SJosh Poimboeuf80: JO Jz (f64) 477*d046b725SJosh Poimboeuf81: JNO Jz (f64) 478*d046b725SJosh Poimboeuf82: JB/JC/JNAE Jz (f64) 479*d046b725SJosh Poimboeuf83: JAE/JNB/JNC Jz (f64) 480*d046b725SJosh Poimboeuf84: JE/JZ Jz (f64) 481*d046b725SJosh Poimboeuf85: JNE/JNZ Jz (f64) 482*d046b725SJosh Poimboeuf86: JBE/JNA Jz (f64) 483*d046b725SJosh Poimboeuf87: JA/JNBE Jz (f64) 484*d046b725SJosh Poimboeuf88: JS Jz (f64) 485*d046b725SJosh Poimboeuf89: JNS Jz (f64) 486*d046b725SJosh Poimboeuf8a: JP/JPE Jz (f64) 487*d046b725SJosh Poimboeuf8b: JNP/JPO Jz (f64) 488*d046b725SJosh Poimboeuf8c: JL/JNGE Jz (f64) 489*d046b725SJosh Poimboeuf8d: JNL/JGE Jz (f64) 490*d046b725SJosh Poimboeuf8e: JLE/JNG Jz (f64) 491*d046b725SJosh Poimboeuf8f: JNLE/JG Jz (f64) 492*d046b725SJosh Poimboeuf# 0x0f 0x90-0x9f 493*d046b725SJosh Poimboeuf90: SETO Eb | kmovw/q Vk,Wk | kmovb/d Vk,Wk (66) 494*d046b725SJosh Poimboeuf91: SETNO Eb | kmovw/q Mv,Vk | kmovb/d Mv,Vk (66) 495*d046b725SJosh Poimboeuf92: SETB/C/NAE Eb | kmovw Vk,Rv | kmovb Vk,Rv (66) | kmovq/d Vk,Rv (F2) 496*d046b725SJosh Poimboeuf93: SETAE/NB/NC Eb | kmovw Gv,Uk | kmovb Gv,Uk (66) | kmovq/d Gv,Uk (F2) 497*d046b725SJosh Poimboeuf94: SETE/Z Eb 498*d046b725SJosh Poimboeuf95: SETNE/NZ Eb 499*d046b725SJosh Poimboeuf96: SETBE/NA Eb 500*d046b725SJosh Poimboeuf97: SETA/NBE Eb 501*d046b725SJosh Poimboeuf98: SETS Eb | kortestw/q Vk,Uk | kortestb/d Vk,Uk (66) 502*d046b725SJosh Poimboeuf99: SETNS Eb | ktestw/q Vk,Uk | ktestb/d Vk,Uk (66) 503*d046b725SJosh Poimboeuf9a: SETP/PE Eb 504*d046b725SJosh Poimboeuf9b: SETNP/PO Eb 505*d046b725SJosh Poimboeuf9c: SETL/NGE Eb 506*d046b725SJosh Poimboeuf9d: SETNL/GE Eb 507*d046b725SJosh Poimboeuf9e: SETLE/NG Eb 508*d046b725SJosh Poimboeuf9f: SETNLE/G Eb 509*d046b725SJosh Poimboeuf# 0x0f 0xa0-0xaf 510*d046b725SJosh Poimboeufa0: PUSH FS (d64) 511*d046b725SJosh Poimboeufa1: POP FS (d64) 512*d046b725SJosh Poimboeufa2: CPUID 513*d046b725SJosh Poimboeufa3: BT Ev,Gv 514*d046b725SJosh Poimboeufa4: SHLD Ev,Gv,Ib 515*d046b725SJosh Poimboeufa5: SHLD Ev,Gv,CL 516*d046b725SJosh Poimboeufa6: GrpPDLK 517*d046b725SJosh Poimboeufa7: GrpRNG 518*d046b725SJosh Poimboeufa8: PUSH GS (d64) 519*d046b725SJosh Poimboeufa9: POP GS (d64) 520*d046b725SJosh Poimboeufaa: RSM 521*d046b725SJosh Poimboeufab: BTS Ev,Gv 522*d046b725SJosh Poimboeufac: SHRD Ev,Gv,Ib 523*d046b725SJosh Poimboeufad: SHRD Ev,Gv,CL 524*d046b725SJosh Poimboeufae: Grp15 (1A),(1C) 525*d046b725SJosh Poimboeufaf: IMUL Gv,Ev 526*d046b725SJosh Poimboeuf# 0x0f 0xb0-0xbf 527*d046b725SJosh Poimboeufb0: CMPXCHG Eb,Gb 528*d046b725SJosh Poimboeufb1: CMPXCHG Ev,Gv 529*d046b725SJosh Poimboeufb2: LSS Gv,Mp 530*d046b725SJosh Poimboeufb3: BTR Ev,Gv 531*d046b725SJosh Poimboeufb4: LFS Gv,Mp 532*d046b725SJosh Poimboeufb5: LGS Gv,Mp 533*d046b725SJosh Poimboeufb6: MOVZX Gv,Eb 534*d046b725SJosh Poimboeufb7: MOVZX Gv,Ew 535*d046b725SJosh Poimboeufb8: JMPE (!F3) | POPCNT Gv,Ev (F3) 536*d046b725SJosh Poimboeufb9: Grp10 (1A) 537*d046b725SJosh Poimboeufba: Grp8 Ev,Ib (1A) 538*d046b725SJosh Poimboeufbb: BTC Ev,Gv 539*d046b725SJosh Poimboeufbc: BSF Gv,Ev (!F3) | TZCNT Gv,Ev (F3) 540*d046b725SJosh Poimboeufbd: BSR Gv,Ev (!F3) | LZCNT Gv,Ev (F3) 541*d046b725SJosh Poimboeufbe: MOVSX Gv,Eb 542*d046b725SJosh Poimboeufbf: MOVSX Gv,Ew 543*d046b725SJosh Poimboeuf# 0x0f 0xc0-0xcf 544*d046b725SJosh Poimboeufc0: XADD Eb,Gb 545*d046b725SJosh Poimboeufc1: XADD Ev,Gv 546*d046b725SJosh Poimboeufc2: vcmpps Vps,Hps,Wps,Ib | vcmppd Vpd,Hpd,Wpd,Ib (66) | vcmpss Vss,Hss,Wss,Ib (F3),(v1) | vcmpsd Vsd,Hsd,Wsd,Ib (F2),(v1) 547*d046b725SJosh Poimboeufc3: movnti My,Gy 548*d046b725SJosh Poimboeufc4: pinsrw Pq,Ry/Mw,Ib | vpinsrw Vdq,Hdq,Ry/Mw,Ib (66),(v1) 549*d046b725SJosh Poimboeufc5: pextrw Gd,Nq,Ib | vpextrw Gd,Udq,Ib (66),(v1) 550*d046b725SJosh Poimboeufc6: vshufps Vps,Hps,Wps,Ib | vshufpd Vpd,Hpd,Wpd,Ib (66) 551*d046b725SJosh Poimboeufc7: Grp9 (1A) 552*d046b725SJosh Poimboeufc8: BSWAP RAX/EAX/R8/R8D 553*d046b725SJosh Poimboeufc9: BSWAP RCX/ECX/R9/R9D 554*d046b725SJosh Poimboeufca: BSWAP RDX/EDX/R10/R10D 555*d046b725SJosh Poimboeufcb: BSWAP RBX/EBX/R11/R11D 556*d046b725SJosh Poimboeufcc: BSWAP RSP/ESP/R12/R12D 557*d046b725SJosh Poimboeufcd: BSWAP RBP/EBP/R13/R13D 558*d046b725SJosh Poimboeufce: BSWAP RSI/ESI/R14/R14D 559*d046b725SJosh Poimboeufcf: BSWAP RDI/EDI/R15/R15D 560*d046b725SJosh Poimboeuf# 0x0f 0xd0-0xdf 561*d046b725SJosh Poimboeufd0: vaddsubpd Vpd,Hpd,Wpd (66) | vaddsubps Vps,Hps,Wps (F2) 562*d046b725SJosh Poimboeufd1: psrlw Pq,Qq | vpsrlw Vx,Hx,Wx (66),(v1) 563*d046b725SJosh Poimboeufd2: psrld Pq,Qq | vpsrld Vx,Hx,Wx (66),(v1) 564*d046b725SJosh Poimboeufd3: psrlq Pq,Qq | vpsrlq Vx,Hx,Wx (66),(v1) 565*d046b725SJosh Poimboeufd4: paddq Pq,Qq | vpaddq Vx,Hx,Wx (66),(v1) 566*d046b725SJosh Poimboeufd5: pmullw Pq,Qq | vpmullw Vx,Hx,Wx (66),(v1) 567*d046b725SJosh Poimboeufd6: vmovq Wq,Vq (66),(v1) | movq2dq Vdq,Nq (F3) | movdq2q Pq,Uq (F2) 568*d046b725SJosh Poimboeufd7: pmovmskb Gd,Nq | vpmovmskb Gd,Ux (66),(v1) 569*d046b725SJosh Poimboeufd8: psubusb Pq,Qq | vpsubusb Vx,Hx,Wx (66),(v1) 570*d046b725SJosh Poimboeufd9: psubusw Pq,Qq | vpsubusw Vx,Hx,Wx (66),(v1) 571*d046b725SJosh Poimboeufda: pminub Pq,Qq | vpminub Vx,Hx,Wx (66),(v1) 572*d046b725SJosh Poimboeufdb: pand Pq,Qq | vpand Vx,Hx,Wx (66),(v1) | vpandd/q Vx,Hx,Wx (66),(evo) 573*d046b725SJosh Poimboeufdc: paddusb Pq,Qq | vpaddusb Vx,Hx,Wx (66),(v1) 574*d046b725SJosh Poimboeufdd: paddusw Pq,Qq | vpaddusw Vx,Hx,Wx (66),(v1) 575*d046b725SJosh Poimboeufde: pmaxub Pq,Qq | vpmaxub Vx,Hx,Wx (66),(v1) 576*d046b725SJosh Poimboeufdf: pandn Pq,Qq | vpandn Vx,Hx,Wx (66),(v1) | vpandnd/q Vx,Hx,Wx (66),(evo) 577*d046b725SJosh Poimboeuf# 0x0f 0xe0-0xef 578*d046b725SJosh Poimboeufe0: pavgb Pq,Qq | vpavgb Vx,Hx,Wx (66),(v1) 579*d046b725SJosh Poimboeufe1: psraw Pq,Qq | vpsraw Vx,Hx,Wx (66),(v1) 580*d046b725SJosh Poimboeufe2: psrad Pq,Qq | vpsrad Vx,Hx,Wx (66),(v1) 581*d046b725SJosh Poimboeufe3: pavgw Pq,Qq | vpavgw Vx,Hx,Wx (66),(v1) 582*d046b725SJosh Poimboeufe4: pmulhuw Pq,Qq | vpmulhuw Vx,Hx,Wx (66),(v1) 583*d046b725SJosh Poimboeufe5: pmulhw Pq,Qq | vpmulhw Vx,Hx,Wx (66),(v1) 584*d046b725SJosh Poimboeufe6: vcvttpd2dq Vx,Wpd (66) | vcvtdq2pd Vx,Wdq (F3) | vcvtdq2pd/qq2pd Vx,Wdq (F3),(evo) | vcvtpd2dq Vx,Wpd (F2) 585*d046b725SJosh Poimboeufe7: movntq Mq,Pq | vmovntdq Mx,Vx (66) 586*d046b725SJosh Poimboeufe8: psubsb Pq,Qq | vpsubsb Vx,Hx,Wx (66),(v1) 587*d046b725SJosh Poimboeufe9: psubsw Pq,Qq | vpsubsw Vx,Hx,Wx (66),(v1) 588*d046b725SJosh Poimboeufea: pminsw Pq,Qq | vpminsw Vx,Hx,Wx (66),(v1) 589*d046b725SJosh Poimboeufeb: por Pq,Qq | vpor Vx,Hx,Wx (66),(v1) | vpord/q Vx,Hx,Wx (66),(evo) 590*d046b725SJosh Poimboeufec: paddsb Pq,Qq | vpaddsb Vx,Hx,Wx (66),(v1) 591*d046b725SJosh Poimboeufed: paddsw Pq,Qq | vpaddsw Vx,Hx,Wx (66),(v1) 592*d046b725SJosh Poimboeufee: pmaxsw Pq,Qq | vpmaxsw Vx,Hx,Wx (66),(v1) 593*d046b725SJosh Poimboeufef: pxor Pq,Qq | vpxor Vx,Hx,Wx (66),(v1) | vpxord/q Vx,Hx,Wx (66),(evo) 594*d046b725SJosh Poimboeuf# 0x0f 0xf0-0xff 595*d046b725SJosh Poimboeuff0: vlddqu Vx,Mx (F2) 596*d046b725SJosh Poimboeuff1: psllw Pq,Qq | vpsllw Vx,Hx,Wx (66),(v1) 597*d046b725SJosh Poimboeuff2: pslld Pq,Qq | vpslld Vx,Hx,Wx (66),(v1) 598*d046b725SJosh Poimboeuff3: psllq Pq,Qq | vpsllq Vx,Hx,Wx (66),(v1) 599*d046b725SJosh Poimboeuff4: pmuludq Pq,Qq | vpmuludq Vx,Hx,Wx (66),(v1) 600*d046b725SJosh Poimboeuff5: pmaddwd Pq,Qq | vpmaddwd Vx,Hx,Wx (66),(v1) 601*d046b725SJosh Poimboeuff6: psadbw Pq,Qq | vpsadbw Vx,Hx,Wx (66),(v1) 602*d046b725SJosh Poimboeuff7: maskmovq Pq,Nq | vmaskmovdqu Vx,Ux (66),(v1) 603*d046b725SJosh Poimboeuff8: psubb Pq,Qq | vpsubb Vx,Hx,Wx (66),(v1) 604*d046b725SJosh Poimboeuff9: psubw Pq,Qq | vpsubw Vx,Hx,Wx (66),(v1) 605*d046b725SJosh Poimboeuffa: psubd Pq,Qq | vpsubd Vx,Hx,Wx (66),(v1) 606*d046b725SJosh Poimboeuffb: psubq Pq,Qq | vpsubq Vx,Hx,Wx (66),(v1) 607*d046b725SJosh Poimboeuffc: paddb Pq,Qq | vpaddb Vx,Hx,Wx (66),(v1) 608*d046b725SJosh Poimboeuffd: paddw Pq,Qq | vpaddw Vx,Hx,Wx (66),(v1) 609*d046b725SJosh Poimboeuffe: paddd Pq,Qq | vpaddd Vx,Hx,Wx (66),(v1) 610*d046b725SJosh Poimboeufff: UD0 611*d046b725SJosh PoimboeufEndTable 612*d046b725SJosh Poimboeuf 613*d046b725SJosh PoimboeufTable: 3-byte opcode 1 (0x0f 0x38) 614*d046b725SJosh PoimboeufReferrer: 3-byte escape 1 615*d046b725SJosh PoimboeufAVXcode: 2 616*d046b725SJosh Poimboeuf# 0x0f 0x38 0x00-0x0f 617*d046b725SJosh Poimboeuf00: pshufb Pq,Qq | vpshufb Vx,Hx,Wx (66),(v1) 618*d046b725SJosh Poimboeuf01: phaddw Pq,Qq | vphaddw Vx,Hx,Wx (66),(v1) 619*d046b725SJosh Poimboeuf02: phaddd Pq,Qq | vphaddd Vx,Hx,Wx (66),(v1) 620*d046b725SJosh Poimboeuf03: phaddsw Pq,Qq | vphaddsw Vx,Hx,Wx (66),(v1) 621*d046b725SJosh Poimboeuf04: pmaddubsw Pq,Qq | vpmaddubsw Vx,Hx,Wx (66),(v1) 622*d046b725SJosh Poimboeuf05: phsubw Pq,Qq | vphsubw Vx,Hx,Wx (66),(v1) 623*d046b725SJosh Poimboeuf06: phsubd Pq,Qq | vphsubd Vx,Hx,Wx (66),(v1) 624*d046b725SJosh Poimboeuf07: phsubsw Pq,Qq | vphsubsw Vx,Hx,Wx (66),(v1) 625*d046b725SJosh Poimboeuf08: psignb Pq,Qq | vpsignb Vx,Hx,Wx (66),(v1) 626*d046b725SJosh Poimboeuf09: psignw Pq,Qq | vpsignw Vx,Hx,Wx (66),(v1) 627*d046b725SJosh Poimboeuf0a: psignd Pq,Qq | vpsignd Vx,Hx,Wx (66),(v1) 628*d046b725SJosh Poimboeuf0b: pmulhrsw Pq,Qq | vpmulhrsw Vx,Hx,Wx (66),(v1) 629*d046b725SJosh Poimboeuf0c: vpermilps Vx,Hx,Wx (66),(v) 630*d046b725SJosh Poimboeuf0d: vpermilpd Vx,Hx,Wx (66),(v) 631*d046b725SJosh Poimboeuf0e: vtestps Vx,Wx (66),(v) 632*d046b725SJosh Poimboeuf0f: vtestpd Vx,Wx (66),(v) 633*d046b725SJosh Poimboeuf# 0x0f 0x38 0x10-0x1f 634*d046b725SJosh Poimboeuf10: pblendvb Vdq,Wdq (66) | vpsrlvw Vx,Hx,Wx (66),(evo) | vpmovuswb Wx,Vx (F3),(ev) 635*d046b725SJosh Poimboeuf11: vpmovusdb Wx,Vd (F3),(ev) | vpsravw Vx,Hx,Wx (66),(ev) 636*d046b725SJosh Poimboeuf12: vpmovusqb Wx,Vq (F3),(ev) | vpsllvw Vx,Hx,Wx (66),(ev) 637*d046b725SJosh Poimboeuf13: vcvtph2ps Vx,Wx (66),(v) | vpmovusdw Wx,Vd (F3),(ev) 638*d046b725SJosh Poimboeuf14: blendvps Vdq,Wdq (66) | vpmovusqw Wx,Vq (F3),(ev) | vprorvd/q Vx,Hx,Wx (66),(evo) 639*d046b725SJosh Poimboeuf15: blendvpd Vdq,Wdq (66) | vpmovusqd Wx,Vq (F3),(ev) | vprolvd/q Vx,Hx,Wx (66),(evo) 640*d046b725SJosh Poimboeuf16: vpermps Vqq,Hqq,Wqq (66),(v) | vpermps/d Vqq,Hqq,Wqq (66),(evo) 641*d046b725SJosh Poimboeuf17: vptest Vx,Wx (66) 642*d046b725SJosh Poimboeuf18: vbroadcastss Vx,Wd (66),(v) 643*d046b725SJosh Poimboeuf19: vbroadcastsd Vqq,Wq (66),(v) | vbroadcastf32x2 Vqq,Wq (66),(evo) 644*d046b725SJosh Poimboeuf1a: vbroadcastf128 Vqq,Mdq (66),(v) | vbroadcastf32x4/64x2 Vqq,Wq (66),(evo) 645*d046b725SJosh Poimboeuf1b: vbroadcastf32x8/64x4 Vqq,Mdq (66),(ev) 646*d046b725SJosh Poimboeuf1c: pabsb Pq,Qq | vpabsb Vx,Wx (66),(v1) 647*d046b725SJosh Poimboeuf1d: pabsw Pq,Qq | vpabsw Vx,Wx (66),(v1) 648*d046b725SJosh Poimboeuf1e: pabsd Pq,Qq | vpabsd Vx,Wx (66),(v1) 649*d046b725SJosh Poimboeuf1f: vpabsq Vx,Wx (66),(ev) 650*d046b725SJosh Poimboeuf# 0x0f 0x38 0x20-0x2f 651*d046b725SJosh Poimboeuf20: vpmovsxbw Vx,Ux/Mq (66),(v1) | vpmovswb Wx,Vx (F3),(ev) 652*d046b725SJosh Poimboeuf21: vpmovsxbd Vx,Ux/Md (66),(v1) | vpmovsdb Wx,Vd (F3),(ev) 653*d046b725SJosh Poimboeuf22: vpmovsxbq Vx,Ux/Mw (66),(v1) | vpmovsqb Wx,Vq (F3),(ev) 654*d046b725SJosh Poimboeuf23: vpmovsxwd Vx,Ux/Mq (66),(v1) | vpmovsdw Wx,Vd (F3),(ev) 655*d046b725SJosh Poimboeuf24: vpmovsxwq Vx,Ux/Md (66),(v1) | vpmovsqw Wx,Vq (F3),(ev) 656*d046b725SJosh Poimboeuf25: vpmovsxdq Vx,Ux/Mq (66),(v1) | vpmovsqd Wx,Vq (F3),(ev) 657*d046b725SJosh Poimboeuf26: vptestmb/w Vk,Hx,Wx (66),(ev) | vptestnmb/w Vk,Hx,Wx (F3),(ev) 658*d046b725SJosh Poimboeuf27: vptestmd/q Vk,Hx,Wx (66),(ev) | vptestnmd/q Vk,Hx,Wx (F3),(ev) 659*d046b725SJosh Poimboeuf28: vpmuldq Vx,Hx,Wx (66),(v1) | vpmovm2b/w Vx,Uk (F3),(ev) 660*d046b725SJosh Poimboeuf29: vpcmpeqq Vx,Hx,Wx (66),(v1) | vpmovb2m/w2m Vk,Ux (F3),(ev) 661*d046b725SJosh Poimboeuf2a: vmovntdqa Vx,Mx (66),(v1) | vpbroadcastmb2q Vx,Uk (F3),(ev) 662*d046b725SJosh Poimboeuf2b: vpackusdw Vx,Hx,Wx (66),(v1) 663*d046b725SJosh Poimboeuf2c: vmaskmovps Vx,Hx,Mx (66),(v) | vscalefps/d Vx,Hx,Wx (66),(evo) 664*d046b725SJosh Poimboeuf2d: vmaskmovpd Vx,Hx,Mx (66),(v) | vscalefss/d Vx,Hx,Wx (66),(evo) 665*d046b725SJosh Poimboeuf2e: vmaskmovps Mx,Hx,Vx (66),(v) 666*d046b725SJosh Poimboeuf2f: vmaskmovpd Mx,Hx,Vx (66),(v) 667*d046b725SJosh Poimboeuf# 0x0f 0x38 0x30-0x3f 668*d046b725SJosh Poimboeuf30: vpmovzxbw Vx,Ux/Mq (66),(v1) | vpmovwb Wx,Vx (F3),(ev) 669*d046b725SJosh Poimboeuf31: vpmovzxbd Vx,Ux/Md (66),(v1) | vpmovdb Wx,Vd (F3),(ev) 670*d046b725SJosh Poimboeuf32: vpmovzxbq Vx,Ux/Mw (66),(v1) | vpmovqb Wx,Vq (F3),(ev) 671*d046b725SJosh Poimboeuf33: vpmovzxwd Vx,Ux/Mq (66),(v1) | vpmovdw Wx,Vd (F3),(ev) 672*d046b725SJosh Poimboeuf34: vpmovzxwq Vx,Ux/Md (66),(v1) | vpmovqw Wx,Vq (F3),(ev) 673*d046b725SJosh Poimboeuf35: vpmovzxdq Vx,Ux/Mq (66),(v1) | vpmovqd Wx,Vq (F3),(ev) 674*d046b725SJosh Poimboeuf36: vpermd Vqq,Hqq,Wqq (66),(v) | vpermd/q Vqq,Hqq,Wqq (66),(evo) 675*d046b725SJosh Poimboeuf37: vpcmpgtq Vx,Hx,Wx (66),(v1) 676*d046b725SJosh Poimboeuf38: vpminsb Vx,Hx,Wx (66),(v1) | vpmovm2d/q Vx,Uk (F3),(ev) 677*d046b725SJosh Poimboeuf39: vpminsd Vx,Hx,Wx (66),(v1) | vpminsd/q Vx,Hx,Wx (66),(evo) | vpmovd2m/q2m Vk,Ux (F3),(ev) 678*d046b725SJosh Poimboeuf3a: vpminuw Vx,Hx,Wx (66),(v1) | vpbroadcastmw2d Vx,Uk (F3),(ev) 679*d046b725SJosh Poimboeuf3b: vpminud Vx,Hx,Wx (66),(v1) | vpminud/q Vx,Hx,Wx (66),(evo) 680*d046b725SJosh Poimboeuf3c: vpmaxsb Vx,Hx,Wx (66),(v1) 681*d046b725SJosh Poimboeuf3d: vpmaxsd Vx,Hx,Wx (66),(v1) | vpmaxsd/q Vx,Hx,Wx (66),(evo) 682*d046b725SJosh Poimboeuf3e: vpmaxuw Vx,Hx,Wx (66),(v1) 683*d046b725SJosh Poimboeuf3f: vpmaxud Vx,Hx,Wx (66),(v1) | vpmaxud/q Vx,Hx,Wx (66),(evo) 684*d046b725SJosh Poimboeuf# 0x0f 0x38 0x40-0x8f 685*d046b725SJosh Poimboeuf40: vpmulld Vx,Hx,Wx (66),(v1) | vpmulld/q Vx,Hx,Wx (66),(evo) 686*d046b725SJosh Poimboeuf41: vphminposuw Vdq,Wdq (66),(v1) 687*d046b725SJosh Poimboeuf42: vgetexpps/d Vx,Wx (66),(ev) 688*d046b725SJosh Poimboeuf43: vgetexpss/d Vx,Hx,Wx (66),(ev) 689*d046b725SJosh Poimboeuf44: vplzcntd/q Vx,Wx (66),(ev) 690*d046b725SJosh Poimboeuf45: vpsrlvd/q Vx,Hx,Wx (66),(v) 691*d046b725SJosh Poimboeuf46: vpsravd Vx,Hx,Wx (66),(v) | vpsravd/q Vx,Hx,Wx (66),(evo) 692*d046b725SJosh Poimboeuf47: vpsllvd/q Vx,Hx,Wx (66),(v) 693*d046b725SJosh Poimboeuf# Skip 0x48-0x4b 694*d046b725SJosh Poimboeuf4c: vrcp14ps/d Vpd,Wpd (66),(ev) 695*d046b725SJosh Poimboeuf4d: vrcp14ss/d Vsd,Hpd,Wsd (66),(ev) 696*d046b725SJosh Poimboeuf4e: vrsqrt14ps/d Vpd,Wpd (66),(ev) 697*d046b725SJosh Poimboeuf4f: vrsqrt14ss/d Vsd,Hsd,Wsd (66),(ev) 698*d046b725SJosh Poimboeuf# Skip 0x50-0x57 699*d046b725SJosh Poimboeuf58: vpbroadcastd Vx,Wx (66),(v) 700*d046b725SJosh Poimboeuf59: vpbroadcastq Vx,Wx (66),(v) | vbroadcasti32x2 Vx,Wx (66),(evo) 701*d046b725SJosh Poimboeuf5a: vbroadcasti128 Vqq,Mdq (66),(v) | vbroadcasti32x4/64x2 Vx,Wx (66),(evo) 702*d046b725SJosh Poimboeuf5b: vbroadcasti32x8/64x4 Vqq,Mdq (66),(ev) 703*d046b725SJosh Poimboeuf# Skip 0x5c-0x63 704*d046b725SJosh Poimboeuf64: vpblendmd/q Vx,Hx,Wx (66),(ev) 705*d046b725SJosh Poimboeuf65: vblendmps/d Vx,Hx,Wx (66),(ev) 706*d046b725SJosh Poimboeuf66: vpblendmb/w Vx,Hx,Wx (66),(ev) 707*d046b725SJosh Poimboeuf# Skip 0x67-0x74 708*d046b725SJosh Poimboeuf75: vpermi2b/w Vx,Hx,Wx (66),(ev) 709*d046b725SJosh Poimboeuf76: vpermi2d/q Vx,Hx,Wx (66),(ev) 710*d046b725SJosh Poimboeuf77: vpermi2ps/d Vx,Hx,Wx (66),(ev) 711*d046b725SJosh Poimboeuf78: vpbroadcastb Vx,Wx (66),(v) 712*d046b725SJosh Poimboeuf79: vpbroadcastw Vx,Wx (66),(v) 713*d046b725SJosh Poimboeuf7a: vpbroadcastb Vx,Rv (66),(ev) 714*d046b725SJosh Poimboeuf7b: vpbroadcastw Vx,Rv (66),(ev) 715*d046b725SJosh Poimboeuf7c: vpbroadcastd/q Vx,Rv (66),(ev) 716*d046b725SJosh Poimboeuf7d: vpermt2b/w Vx,Hx,Wx (66),(ev) 717*d046b725SJosh Poimboeuf7e: vpermt2d/q Vx,Hx,Wx (66),(ev) 718*d046b725SJosh Poimboeuf7f: vpermt2ps/d Vx,Hx,Wx (66),(ev) 719*d046b725SJosh Poimboeuf80: INVEPT Gy,Mdq (66) 720*d046b725SJosh Poimboeuf81: INVVPID Gy,Mdq (66) 721*d046b725SJosh Poimboeuf82: INVPCID Gy,Mdq (66) 722*d046b725SJosh Poimboeuf83: vpmultishiftqb Vx,Hx,Wx (66),(ev) 723*d046b725SJosh Poimboeuf88: vexpandps/d Vpd,Wpd (66),(ev) 724*d046b725SJosh Poimboeuf89: vpexpandd/q Vx,Wx (66),(ev) 725*d046b725SJosh Poimboeuf8a: vcompressps/d Wx,Vx (66),(ev) 726*d046b725SJosh Poimboeuf8b: vpcompressd/q Wx,Vx (66),(ev) 727*d046b725SJosh Poimboeuf8c: vpmaskmovd/q Vx,Hx,Mx (66),(v) 728*d046b725SJosh Poimboeuf8d: vpermb/w Vx,Hx,Wx (66),(ev) 729*d046b725SJosh Poimboeuf8e: vpmaskmovd/q Mx,Vx,Hx (66),(v) 730*d046b725SJosh Poimboeuf# 0x0f 0x38 0x90-0xbf (FMA) 731*d046b725SJosh Poimboeuf90: vgatherdd/q Vx,Hx,Wx (66),(v) | vpgatherdd/q Vx,Wx (66),(evo) 732*d046b725SJosh Poimboeuf91: vgatherqd/q Vx,Hx,Wx (66),(v) | vpgatherqd/q Vx,Wx (66),(evo) 733*d046b725SJosh Poimboeuf92: vgatherdps/d Vx,Hx,Wx (66),(v) 734*d046b725SJosh Poimboeuf93: vgatherqps/d Vx,Hx,Wx (66),(v) 735*d046b725SJosh Poimboeuf94: 736*d046b725SJosh Poimboeuf95: 737*d046b725SJosh Poimboeuf96: vfmaddsub132ps/d Vx,Hx,Wx (66),(v) 738*d046b725SJosh Poimboeuf97: vfmsubadd132ps/d Vx,Hx,Wx (66),(v) 739*d046b725SJosh Poimboeuf98: vfmadd132ps/d Vx,Hx,Wx (66),(v) 740*d046b725SJosh Poimboeuf99: vfmadd132ss/d Vx,Hx,Wx (66),(v),(v1) 741*d046b725SJosh Poimboeuf9a: vfmsub132ps/d Vx,Hx,Wx (66),(v) 742*d046b725SJosh Poimboeuf9b: vfmsub132ss/d Vx,Hx,Wx (66),(v),(v1) 743*d046b725SJosh Poimboeuf9c: vfnmadd132ps/d Vx,Hx,Wx (66),(v) 744*d046b725SJosh Poimboeuf9d: vfnmadd132ss/d Vx,Hx,Wx (66),(v),(v1) 745*d046b725SJosh Poimboeuf9e: vfnmsub132ps/d Vx,Hx,Wx (66),(v) 746*d046b725SJosh Poimboeuf9f: vfnmsub132ss/d Vx,Hx,Wx (66),(v),(v1) 747*d046b725SJosh Poimboeufa0: vpscatterdd/q Wx,Vx (66),(ev) 748*d046b725SJosh Poimboeufa1: vpscatterqd/q Wx,Vx (66),(ev) 749*d046b725SJosh Poimboeufa2: vscatterdps/d Wx,Vx (66),(ev) 750*d046b725SJosh Poimboeufa3: vscatterqps/d Wx,Vx (66),(ev) 751*d046b725SJosh Poimboeufa6: vfmaddsub213ps/d Vx,Hx,Wx (66),(v) 752*d046b725SJosh Poimboeufa7: vfmsubadd213ps/d Vx,Hx,Wx (66),(v) 753*d046b725SJosh Poimboeufa8: vfmadd213ps/d Vx,Hx,Wx (66),(v) 754*d046b725SJosh Poimboeufa9: vfmadd213ss/d Vx,Hx,Wx (66),(v),(v1) 755*d046b725SJosh Poimboeufaa: vfmsub213ps/d Vx,Hx,Wx (66),(v) 756*d046b725SJosh Poimboeufab: vfmsub213ss/d Vx,Hx,Wx (66),(v),(v1) 757*d046b725SJosh Poimboeufac: vfnmadd213ps/d Vx,Hx,Wx (66),(v) 758*d046b725SJosh Poimboeufad: vfnmadd213ss/d Vx,Hx,Wx (66),(v),(v1) 759*d046b725SJosh Poimboeufae: vfnmsub213ps/d Vx,Hx,Wx (66),(v) 760*d046b725SJosh Poimboeufaf: vfnmsub213ss/d Vx,Hx,Wx (66),(v),(v1) 761*d046b725SJosh Poimboeufb4: vpmadd52luq Vx,Hx,Wx (66),(ev) 762*d046b725SJosh Poimboeufb5: vpmadd52huq Vx,Hx,Wx (66),(ev) 763*d046b725SJosh Poimboeufb6: vfmaddsub231ps/d Vx,Hx,Wx (66),(v) 764*d046b725SJosh Poimboeufb7: vfmsubadd231ps/d Vx,Hx,Wx (66),(v) 765*d046b725SJosh Poimboeufb8: vfmadd231ps/d Vx,Hx,Wx (66),(v) 766*d046b725SJosh Poimboeufb9: vfmadd231ss/d Vx,Hx,Wx (66),(v),(v1) 767*d046b725SJosh Poimboeufba: vfmsub231ps/d Vx,Hx,Wx (66),(v) 768*d046b725SJosh Poimboeufbb: vfmsub231ss/d Vx,Hx,Wx (66),(v),(v1) 769*d046b725SJosh Poimboeufbc: vfnmadd231ps/d Vx,Hx,Wx (66),(v) 770*d046b725SJosh Poimboeufbd: vfnmadd231ss/d Vx,Hx,Wx (66),(v),(v1) 771*d046b725SJosh Poimboeufbe: vfnmsub231ps/d Vx,Hx,Wx (66),(v) 772*d046b725SJosh Poimboeufbf: vfnmsub231ss/d Vx,Hx,Wx (66),(v),(v1) 773*d046b725SJosh Poimboeuf# 0x0f 0x38 0xc0-0xff 774*d046b725SJosh Poimboeufc4: vpconflictd/q Vx,Wx (66),(ev) 775*d046b725SJosh Poimboeufc6: Grp18 (1A) 776*d046b725SJosh Poimboeufc7: Grp19 (1A) 777*d046b725SJosh Poimboeufc8: sha1nexte Vdq,Wdq | vexp2ps/d Vx,Wx (66),(ev) 778*d046b725SJosh Poimboeufc9: sha1msg1 Vdq,Wdq 779*d046b725SJosh Poimboeufca: sha1msg2 Vdq,Wdq | vrcp28ps/d Vx,Wx (66),(ev) 780*d046b725SJosh Poimboeufcb: sha256rnds2 Vdq,Wdq | vrcp28ss/d Vx,Hx,Wx (66),(ev) 781*d046b725SJosh Poimboeufcc: sha256msg1 Vdq,Wdq | vrsqrt28ps/d Vx,Wx (66),(ev) 782*d046b725SJosh Poimboeufcd: sha256msg2 Vdq,Wdq | vrsqrt28ss/d Vx,Hx,Wx (66),(ev) 783*d046b725SJosh Poimboeufdb: VAESIMC Vdq,Wdq (66),(v1) 784*d046b725SJosh Poimboeufdc: VAESENC Vdq,Hdq,Wdq (66),(v1) 785*d046b725SJosh Poimboeufdd: VAESENCLAST Vdq,Hdq,Wdq (66),(v1) 786*d046b725SJosh Poimboeufde: VAESDEC Vdq,Hdq,Wdq (66),(v1) 787*d046b725SJosh Poimboeufdf: VAESDECLAST Vdq,Hdq,Wdq (66),(v1) 788*d046b725SJosh Poimboeuff0: MOVBE Gy,My | MOVBE Gw,Mw (66) | CRC32 Gd,Eb (F2) | CRC32 Gd,Eb (66&F2) 789*d046b725SJosh Poimboeuff1: MOVBE My,Gy | MOVBE Mw,Gw (66) | CRC32 Gd,Ey (F2) | CRC32 Gd,Ew (66&F2) 790*d046b725SJosh Poimboeuff2: ANDN Gy,By,Ey (v) 791*d046b725SJosh Poimboeuff3: Grp17 (1A) 792*d046b725SJosh Poimboeuff5: BZHI Gy,Ey,By (v) | PEXT Gy,By,Ey (F3),(v) | PDEP Gy,By,Ey (F2),(v) 793*d046b725SJosh Poimboeuff6: ADCX Gy,Ey (66) | ADOX Gy,Ey (F3) | MULX By,Gy,rDX,Ey (F2),(v) 794*d046b725SJosh Poimboeuff7: BEXTR Gy,Ey,By (v) | SHLX Gy,Ey,By (66),(v) | SARX Gy,Ey,By (F3),(v) | SHRX Gy,Ey,By (F2),(v) 795*d046b725SJosh PoimboeufEndTable 796*d046b725SJosh Poimboeuf 797*d046b725SJosh PoimboeufTable: 3-byte opcode 2 (0x0f 0x3a) 798*d046b725SJosh PoimboeufReferrer: 3-byte escape 2 799*d046b725SJosh PoimboeufAVXcode: 3 800*d046b725SJosh Poimboeuf# 0x0f 0x3a 0x00-0xff 801*d046b725SJosh Poimboeuf00: vpermq Vqq,Wqq,Ib (66),(v) 802*d046b725SJosh Poimboeuf01: vpermpd Vqq,Wqq,Ib (66),(v) 803*d046b725SJosh Poimboeuf02: vpblendd Vx,Hx,Wx,Ib (66),(v) 804*d046b725SJosh Poimboeuf03: valignd/q Vx,Hx,Wx,Ib (66),(ev) 805*d046b725SJosh Poimboeuf04: vpermilps Vx,Wx,Ib (66),(v) 806*d046b725SJosh Poimboeuf05: vpermilpd Vx,Wx,Ib (66),(v) 807*d046b725SJosh Poimboeuf06: vperm2f128 Vqq,Hqq,Wqq,Ib (66),(v) 808*d046b725SJosh Poimboeuf07: 809*d046b725SJosh Poimboeuf08: vroundps Vx,Wx,Ib (66) | vrndscaleps Vx,Wx,Ib (66),(evo) 810*d046b725SJosh Poimboeuf09: vroundpd Vx,Wx,Ib (66) | vrndscalepd Vx,Wx,Ib (66),(evo) 811*d046b725SJosh Poimboeuf0a: vroundss Vss,Wss,Ib (66),(v1) | vrndscaless Vx,Hx,Wx,Ib (66),(evo) 812*d046b725SJosh Poimboeuf0b: vroundsd Vsd,Wsd,Ib (66),(v1) | vrndscalesd Vx,Hx,Wx,Ib (66),(evo) 813*d046b725SJosh Poimboeuf0c: vblendps Vx,Hx,Wx,Ib (66) 814*d046b725SJosh Poimboeuf0d: vblendpd Vx,Hx,Wx,Ib (66) 815*d046b725SJosh Poimboeuf0e: vpblendw Vx,Hx,Wx,Ib (66),(v1) 816*d046b725SJosh Poimboeuf0f: palignr Pq,Qq,Ib | vpalignr Vx,Hx,Wx,Ib (66),(v1) 817*d046b725SJosh Poimboeuf14: vpextrb Rd/Mb,Vdq,Ib (66),(v1) 818*d046b725SJosh Poimboeuf15: vpextrw Rd/Mw,Vdq,Ib (66),(v1) 819*d046b725SJosh Poimboeuf16: vpextrd/q Ey,Vdq,Ib (66),(v1) 820*d046b725SJosh Poimboeuf17: vextractps Ed,Vdq,Ib (66),(v1) 821*d046b725SJosh Poimboeuf18: vinsertf128 Vqq,Hqq,Wqq,Ib (66),(v) | vinsertf32x4/64x2 Vqq,Hqq,Wqq,Ib (66),(evo) 822*d046b725SJosh Poimboeuf19: vextractf128 Wdq,Vqq,Ib (66),(v) | vextractf32x4/64x2 Wdq,Vqq,Ib (66),(evo) 823*d046b725SJosh Poimboeuf1a: vinsertf32x8/64x4 Vqq,Hqq,Wqq,Ib (66),(ev) 824*d046b725SJosh Poimboeuf1b: vextractf32x8/64x4 Wdq,Vqq,Ib (66),(ev) 825*d046b725SJosh Poimboeuf1d: vcvtps2ph Wx,Vx,Ib (66),(v) 826*d046b725SJosh Poimboeuf1e: vpcmpud/q Vk,Hd,Wd,Ib (66),(ev) 827*d046b725SJosh Poimboeuf1f: vpcmpd/q Vk,Hd,Wd,Ib (66),(ev) 828*d046b725SJosh Poimboeuf20: vpinsrb Vdq,Hdq,Ry/Mb,Ib (66),(v1) 829*d046b725SJosh Poimboeuf21: vinsertps Vdq,Hdq,Udq/Md,Ib (66),(v1) 830*d046b725SJosh Poimboeuf22: vpinsrd/q Vdq,Hdq,Ey,Ib (66),(v1) 831*d046b725SJosh Poimboeuf23: vshuff32x4/64x2 Vx,Hx,Wx,Ib (66),(ev) 832*d046b725SJosh Poimboeuf25: vpternlogd/q Vx,Hx,Wx,Ib (66),(ev) 833*d046b725SJosh Poimboeuf26: vgetmantps/d Vx,Wx,Ib (66),(ev) 834*d046b725SJosh Poimboeuf27: vgetmantss/d Vx,Hx,Wx,Ib (66),(ev) 835*d046b725SJosh Poimboeuf30: kshiftrb/w Vk,Uk,Ib (66),(v) 836*d046b725SJosh Poimboeuf31: kshiftrd/q Vk,Uk,Ib (66),(v) 837*d046b725SJosh Poimboeuf32: kshiftlb/w Vk,Uk,Ib (66),(v) 838*d046b725SJosh Poimboeuf33: kshiftld/q Vk,Uk,Ib (66),(v) 839*d046b725SJosh Poimboeuf38: vinserti128 Vqq,Hqq,Wqq,Ib (66),(v) | vinserti32x4/64x2 Vqq,Hqq,Wqq,Ib (66),(evo) 840*d046b725SJosh Poimboeuf39: vextracti128 Wdq,Vqq,Ib (66),(v) | vextracti32x4/64x2 Wdq,Vqq,Ib (66),(evo) 841*d046b725SJosh Poimboeuf3a: vinserti32x8/64x4 Vqq,Hqq,Wqq,Ib (66),(ev) 842*d046b725SJosh Poimboeuf3b: vextracti32x8/64x4 Wdq,Vqq,Ib (66),(ev) 843*d046b725SJosh Poimboeuf3e: vpcmpub/w Vk,Hk,Wx,Ib (66),(ev) 844*d046b725SJosh Poimboeuf3f: vpcmpb/w Vk,Hk,Wx,Ib (66),(ev) 845*d046b725SJosh Poimboeuf40: vdpps Vx,Hx,Wx,Ib (66) 846*d046b725SJosh Poimboeuf41: vdppd Vdq,Hdq,Wdq,Ib (66),(v1) 847*d046b725SJosh Poimboeuf42: vmpsadbw Vx,Hx,Wx,Ib (66),(v1) | vdbpsadbw Vx,Hx,Wx,Ib (66),(evo) 848*d046b725SJosh Poimboeuf43: vshufi32x4/64x2 Vx,Hx,Wx,Ib (66),(ev) 849*d046b725SJosh Poimboeuf44: vpclmulqdq Vdq,Hdq,Wdq,Ib (66),(v1) 850*d046b725SJosh Poimboeuf46: vperm2i128 Vqq,Hqq,Wqq,Ib (66),(v) 851*d046b725SJosh Poimboeuf4a: vblendvps Vx,Hx,Wx,Lx (66),(v) 852*d046b725SJosh Poimboeuf4b: vblendvpd Vx,Hx,Wx,Lx (66),(v) 853*d046b725SJosh Poimboeuf4c: vpblendvb Vx,Hx,Wx,Lx (66),(v1) 854*d046b725SJosh Poimboeuf50: vrangeps/d Vx,Hx,Wx,Ib (66),(ev) 855*d046b725SJosh Poimboeuf51: vrangess/d Vx,Hx,Wx,Ib (66),(ev) 856*d046b725SJosh Poimboeuf54: vfixupimmps/d Vx,Hx,Wx,Ib (66),(ev) 857*d046b725SJosh Poimboeuf55: vfixupimmss/d Vx,Hx,Wx,Ib (66),(ev) 858*d046b725SJosh Poimboeuf56: vreduceps/d Vx,Wx,Ib (66),(ev) 859*d046b725SJosh Poimboeuf57: vreducess/d Vx,Hx,Wx,Ib (66),(ev) 860*d046b725SJosh Poimboeuf60: vpcmpestrm Vdq,Wdq,Ib (66),(v1) 861*d046b725SJosh Poimboeuf61: vpcmpestri Vdq,Wdq,Ib (66),(v1) 862*d046b725SJosh Poimboeuf62: vpcmpistrm Vdq,Wdq,Ib (66),(v1) 863*d046b725SJosh Poimboeuf63: vpcmpistri Vdq,Wdq,Ib (66),(v1) 864*d046b725SJosh Poimboeuf66: vfpclassps/d Vk,Wx,Ib (66),(ev) 865*d046b725SJosh Poimboeuf67: vfpclassss/d Vk,Wx,Ib (66),(ev) 866*d046b725SJosh Poimboeufcc: sha1rnds4 Vdq,Wdq,Ib 867*d046b725SJosh Poimboeufdf: VAESKEYGEN Vdq,Wdq,Ib (66),(v1) 868*d046b725SJosh Poimboeuff0: RORX Gy,Ey,Ib (F2),(v) 869*d046b725SJosh PoimboeufEndTable 870*d046b725SJosh Poimboeuf 871*d046b725SJosh PoimboeufGrpTable: Grp1 872*d046b725SJosh Poimboeuf0: ADD 873*d046b725SJosh Poimboeuf1: OR 874*d046b725SJosh Poimboeuf2: ADC 875*d046b725SJosh Poimboeuf3: SBB 876*d046b725SJosh Poimboeuf4: AND 877*d046b725SJosh Poimboeuf5: SUB 878*d046b725SJosh Poimboeuf6: XOR 879*d046b725SJosh Poimboeuf7: CMP 880*d046b725SJosh PoimboeufEndTable 881*d046b725SJosh Poimboeuf 882*d046b725SJosh PoimboeufGrpTable: Grp1A 883*d046b725SJosh Poimboeuf0: POP 884*d046b725SJosh PoimboeufEndTable 885*d046b725SJosh Poimboeuf 886*d046b725SJosh PoimboeufGrpTable: Grp2 887*d046b725SJosh Poimboeuf0: ROL 888*d046b725SJosh Poimboeuf1: ROR 889*d046b725SJosh Poimboeuf2: RCL 890*d046b725SJosh Poimboeuf3: RCR 891*d046b725SJosh Poimboeuf4: SHL/SAL 892*d046b725SJosh Poimboeuf5: SHR 893*d046b725SJosh Poimboeuf6: 894*d046b725SJosh Poimboeuf7: SAR 895*d046b725SJosh PoimboeufEndTable 896*d046b725SJosh Poimboeuf 897*d046b725SJosh PoimboeufGrpTable: Grp3_1 898*d046b725SJosh Poimboeuf0: TEST Eb,Ib 899*d046b725SJosh Poimboeuf1: TEST Eb,Ib 900*d046b725SJosh Poimboeuf2: NOT Eb 901*d046b725SJosh Poimboeuf3: NEG Eb 902*d046b725SJosh Poimboeuf4: MUL AL,Eb 903*d046b725SJosh Poimboeuf5: IMUL AL,Eb 904*d046b725SJosh Poimboeuf6: DIV AL,Eb 905*d046b725SJosh Poimboeuf7: IDIV AL,Eb 906*d046b725SJosh PoimboeufEndTable 907*d046b725SJosh Poimboeuf 908*d046b725SJosh PoimboeufGrpTable: Grp3_2 909*d046b725SJosh Poimboeuf0: TEST Ev,Iz 910*d046b725SJosh Poimboeuf1: 911*d046b725SJosh Poimboeuf2: NOT Ev 912*d046b725SJosh Poimboeuf3: NEG Ev 913*d046b725SJosh Poimboeuf4: MUL rAX,Ev 914*d046b725SJosh Poimboeuf5: IMUL rAX,Ev 915*d046b725SJosh Poimboeuf6: DIV rAX,Ev 916*d046b725SJosh Poimboeuf7: IDIV rAX,Ev 917*d046b725SJosh PoimboeufEndTable 918*d046b725SJosh Poimboeuf 919*d046b725SJosh PoimboeufGrpTable: Grp4 920*d046b725SJosh Poimboeuf0: INC Eb 921*d046b725SJosh Poimboeuf1: DEC Eb 922*d046b725SJosh PoimboeufEndTable 923*d046b725SJosh Poimboeuf 924*d046b725SJosh PoimboeufGrpTable: Grp5 925*d046b725SJosh Poimboeuf0: INC Ev 926*d046b725SJosh Poimboeuf1: DEC Ev 927*d046b725SJosh Poimboeuf# Note: "forced64" is Intel CPU behavior (see comment about CALL insn). 928*d046b725SJosh Poimboeuf2: CALLN Ev (f64) 929*d046b725SJosh Poimboeuf3: CALLF Ep 930*d046b725SJosh Poimboeuf4: JMPN Ev (f64) 931*d046b725SJosh Poimboeuf5: JMPF Mp 932*d046b725SJosh Poimboeuf6: PUSH Ev (d64) 933*d046b725SJosh Poimboeuf7: 934*d046b725SJosh PoimboeufEndTable 935*d046b725SJosh Poimboeuf 936*d046b725SJosh PoimboeufGrpTable: Grp6 937*d046b725SJosh Poimboeuf0: SLDT Rv/Mw 938*d046b725SJosh Poimboeuf1: STR Rv/Mw 939*d046b725SJosh Poimboeuf2: LLDT Ew 940*d046b725SJosh Poimboeuf3: LTR Ew 941*d046b725SJosh Poimboeuf4: VERR Ew 942*d046b725SJosh Poimboeuf5: VERW Ew 943*d046b725SJosh PoimboeufEndTable 944*d046b725SJosh Poimboeuf 945*d046b725SJosh PoimboeufGrpTable: Grp7 946*d046b725SJosh Poimboeuf0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) 947*d046b725SJosh Poimboeuf1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001),(11B) | CLAC (010),(11B) | STAC (011),(11B) 948*d046b725SJosh Poimboeuf2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) | VMFUNC (100),(11B) | XEND (101)(11B) | XTEST (110)(11B) 949*d046b725SJosh Poimboeuf3: LIDT Ms 950*d046b725SJosh Poimboeuf4: SMSW Mw/Rv 951*d046b725SJosh Poimboeuf5: rdpkru (110),(11B) | wrpkru (111),(11B) 952*d046b725SJosh Poimboeuf6: LMSW Ew 953*d046b725SJosh Poimboeuf7: INVLPG Mb | SWAPGS (o64),(000),(11B) | RDTSCP (001),(11B) 954*d046b725SJosh PoimboeufEndTable 955*d046b725SJosh Poimboeuf 956*d046b725SJosh PoimboeufGrpTable: Grp8 957*d046b725SJosh Poimboeuf4: BT 958*d046b725SJosh Poimboeuf5: BTS 959*d046b725SJosh Poimboeuf6: BTR 960*d046b725SJosh Poimboeuf7: BTC 961*d046b725SJosh PoimboeufEndTable 962*d046b725SJosh Poimboeuf 963*d046b725SJosh PoimboeufGrpTable: Grp9 964*d046b725SJosh Poimboeuf1: CMPXCHG8B/16B Mq/Mdq 965*d046b725SJosh Poimboeuf3: xrstors 966*d046b725SJosh Poimboeuf4: xsavec 967*d046b725SJosh Poimboeuf5: xsaves 968*d046b725SJosh Poimboeuf6: VMPTRLD Mq | VMCLEAR Mq (66) | VMXON Mq (F3) | RDRAND Rv (11B) 969*d046b725SJosh Poimboeuf7: VMPTRST Mq | VMPTRST Mq (F3) | RDSEED Rv (11B) 970*d046b725SJosh PoimboeufEndTable 971*d046b725SJosh Poimboeuf 972*d046b725SJosh PoimboeufGrpTable: Grp10 973*d046b725SJosh Poimboeuf# all are UD1 974*d046b725SJosh Poimboeuf0: UD1 975*d046b725SJosh Poimboeuf1: UD1 976*d046b725SJosh Poimboeuf2: UD1 977*d046b725SJosh Poimboeuf3: UD1 978*d046b725SJosh Poimboeuf4: UD1 979*d046b725SJosh Poimboeuf5: UD1 980*d046b725SJosh Poimboeuf6: UD1 981*d046b725SJosh Poimboeuf7: UD1 982*d046b725SJosh PoimboeufEndTable 983*d046b725SJosh Poimboeuf 984*d046b725SJosh Poimboeuf# Grp11A and Grp11B are expressed as Grp11 in Intel SDM 985*d046b725SJosh PoimboeufGrpTable: Grp11A 986*d046b725SJosh Poimboeuf0: MOV Eb,Ib 987*d046b725SJosh Poimboeuf7: XABORT Ib (000),(11B) 988*d046b725SJosh PoimboeufEndTable 989*d046b725SJosh Poimboeuf 990*d046b725SJosh PoimboeufGrpTable: Grp11B 991*d046b725SJosh Poimboeuf0: MOV Eb,Iz 992*d046b725SJosh Poimboeuf7: XBEGIN Jz (000),(11B) 993*d046b725SJosh PoimboeufEndTable 994*d046b725SJosh Poimboeuf 995*d046b725SJosh PoimboeufGrpTable: Grp12 996*d046b725SJosh Poimboeuf2: psrlw Nq,Ib (11B) | vpsrlw Hx,Ux,Ib (66),(11B),(v1) 997*d046b725SJosh Poimboeuf4: psraw Nq,Ib (11B) | vpsraw Hx,Ux,Ib (66),(11B),(v1) 998*d046b725SJosh Poimboeuf6: psllw Nq,Ib (11B) | vpsllw Hx,Ux,Ib (66),(11B),(v1) 999*d046b725SJosh PoimboeufEndTable 1000*d046b725SJosh Poimboeuf 1001*d046b725SJosh PoimboeufGrpTable: Grp13 1002*d046b725SJosh Poimboeuf0: vprord/q Hx,Wx,Ib (66),(ev) 1003*d046b725SJosh Poimboeuf1: vprold/q Hx,Wx,Ib (66),(ev) 1004*d046b725SJosh Poimboeuf2: psrld Nq,Ib (11B) | vpsrld Hx,Ux,Ib (66),(11B),(v1) 1005*d046b725SJosh Poimboeuf4: psrad Nq,Ib (11B) | vpsrad Hx,Ux,Ib (66),(11B),(v1) | vpsrad/q Hx,Ux,Ib (66),(evo) 1006*d046b725SJosh Poimboeuf6: pslld Nq,Ib (11B) | vpslld Hx,Ux,Ib (66),(11B),(v1) 1007*d046b725SJosh PoimboeufEndTable 1008*d046b725SJosh Poimboeuf 1009*d046b725SJosh PoimboeufGrpTable: Grp14 1010*d046b725SJosh Poimboeuf2: psrlq Nq,Ib (11B) | vpsrlq Hx,Ux,Ib (66),(11B),(v1) 1011*d046b725SJosh Poimboeuf3: vpsrldq Hx,Ux,Ib (66),(11B),(v1) 1012*d046b725SJosh Poimboeuf6: psllq Nq,Ib (11B) | vpsllq Hx,Ux,Ib (66),(11B),(v1) 1013*d046b725SJosh Poimboeuf7: vpslldq Hx,Ux,Ib (66),(11B),(v1) 1014*d046b725SJosh PoimboeufEndTable 1015*d046b725SJosh Poimboeuf 1016*d046b725SJosh PoimboeufGrpTable: Grp15 1017*d046b725SJosh Poimboeuf0: fxsave | RDFSBASE Ry (F3),(11B) 1018*d046b725SJosh Poimboeuf1: fxstor | RDGSBASE Ry (F3),(11B) 1019*d046b725SJosh Poimboeuf2: vldmxcsr Md (v1) | WRFSBASE Ry (F3),(11B) 1020*d046b725SJosh Poimboeuf3: vstmxcsr Md (v1) | WRGSBASE Ry (F3),(11B) 1021*d046b725SJosh Poimboeuf4: XSAVE | ptwrite Ey (F3),(11B) 1022*d046b725SJosh Poimboeuf5: XRSTOR | lfence (11B) 1023*d046b725SJosh Poimboeuf6: XSAVEOPT | clwb (66) | mfence (11B) 1024*d046b725SJosh Poimboeuf7: clflush | clflushopt (66) | sfence (11B) 1025*d046b725SJosh PoimboeufEndTable 1026*d046b725SJosh Poimboeuf 1027*d046b725SJosh PoimboeufGrpTable: Grp16 1028*d046b725SJosh Poimboeuf0: prefetch NTA 1029*d046b725SJosh Poimboeuf1: prefetch T0 1030*d046b725SJosh Poimboeuf2: prefetch T1 1031*d046b725SJosh Poimboeuf3: prefetch T2 1032*d046b725SJosh PoimboeufEndTable 1033*d046b725SJosh Poimboeuf 1034*d046b725SJosh PoimboeufGrpTable: Grp17 1035*d046b725SJosh Poimboeuf1: BLSR By,Ey (v) 1036*d046b725SJosh Poimboeuf2: BLSMSK By,Ey (v) 1037*d046b725SJosh Poimboeuf3: BLSI By,Ey (v) 1038*d046b725SJosh PoimboeufEndTable 1039*d046b725SJosh Poimboeuf 1040*d046b725SJosh PoimboeufGrpTable: Grp18 1041*d046b725SJosh Poimboeuf1: vgatherpf0dps/d Wx (66),(ev) 1042*d046b725SJosh Poimboeuf2: vgatherpf1dps/d Wx (66),(ev) 1043*d046b725SJosh Poimboeuf5: vscatterpf0dps/d Wx (66),(ev) 1044*d046b725SJosh Poimboeuf6: vscatterpf1dps/d Wx (66),(ev) 1045*d046b725SJosh PoimboeufEndTable 1046*d046b725SJosh Poimboeuf 1047*d046b725SJosh PoimboeufGrpTable: Grp19 1048*d046b725SJosh Poimboeuf1: vgatherpf0qps/d Wx (66),(ev) 1049*d046b725SJosh Poimboeuf2: vgatherpf1qps/d Wx (66),(ev) 1050*d046b725SJosh Poimboeuf5: vscatterpf0qps/d Wx (66),(ev) 1051*d046b725SJosh Poimboeuf6: vscatterpf1qps/d Wx (66),(ev) 1052*d046b725SJosh PoimboeufEndTable 1053*d046b725SJosh Poimboeuf 1054*d046b725SJosh Poimboeuf# AMD's Prefetch Group 1055*d046b725SJosh PoimboeufGrpTable: GrpP 1056*d046b725SJosh Poimboeuf0: PREFETCH 1057*d046b725SJosh Poimboeuf1: PREFETCHW 1058*d046b725SJosh PoimboeufEndTable 1059*d046b725SJosh Poimboeuf 1060*d046b725SJosh PoimboeufGrpTable: GrpPDLK 1061*d046b725SJosh Poimboeuf0: MONTMUL 1062*d046b725SJosh Poimboeuf1: XSHA1 1063*d046b725SJosh Poimboeuf2: XSHA2 1064*d046b725SJosh PoimboeufEndTable 1065*d046b725SJosh Poimboeuf 1066*d046b725SJosh PoimboeufGrpTable: GrpRNG 1067*d046b725SJosh Poimboeuf0: xstore-rng 1068*d046b725SJosh Poimboeuf1: xcrypt-ecb 1069*d046b725SJosh Poimboeuf2: xcrypt-cbc 1070*d046b725SJosh Poimboeuf4: xcrypt-cfb 1071*d046b725SJosh Poimboeuf5: xcrypt-ofb 1072*d046b725SJosh PoimboeufEndTable 1073