Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 1 | # x86 Opcode Maps |
| 2 | # |
| 3 | #<Opcode maps> |
| 4 | # Table: table-name |
| 5 | # Referrer: escaped-name |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 6 | # AVXcode: avx-code |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 7 | # opcode: mnemonic|GrpXXX [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...] |
| 8 | # (or) |
| 9 | # opcode: escape # escaped-name |
| 10 | # EndTable |
| 11 | # |
| 12 | #<group maps> |
| 13 | # GrpTable: GrpXXX |
| 14 | # reg: mnemonic [operand1[,operand2...]] [(extra1)[,(extra2)...] [| 2nd-mnemonic ...] |
| 15 | # EndTable |
| 16 | # |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 17 | # AVX Superscripts |
| 18 | # (VEX): this opcode can accept VEX prefix. |
| 19 | # (oVEX): this opcode requires VEX prefix. |
| 20 | # (o128): this opcode only supports 128bit VEX. |
| 21 | # (o256): this opcode only supports 256bit VEX. |
| 22 | # |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 23 | |
| 24 | Table: one byte opcode |
| 25 | Referrer: |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 26 | AVXcode: |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 27 | # 0x00 - 0x0f |
| 28 | 00: ADD Eb,Gb |
| 29 | 01: ADD Ev,Gv |
| 30 | 02: ADD Gb,Eb |
| 31 | 03: ADD Gv,Ev |
| 32 | 04: ADD AL,Ib |
| 33 | 05: ADD rAX,Iz |
| 34 | 06: PUSH ES (i64) |
| 35 | 07: POP ES (i64) |
| 36 | 08: OR Eb,Gb |
| 37 | 09: OR Ev,Gv |
| 38 | 0a: OR Gb,Eb |
| 39 | 0b: OR Gv,Ev |
| 40 | 0c: OR AL,Ib |
| 41 | 0d: OR rAX,Iz |
| 42 | 0e: PUSH CS (i64) |
| 43 | 0f: escape # 2-byte escape |
| 44 | # 0x10 - 0x1f |
| 45 | 10: ADC Eb,Gb |
| 46 | 11: ADC Ev,Gv |
| 47 | 12: ADC Gb,Eb |
| 48 | 13: ADC Gv,Ev |
| 49 | 14: ADC AL,Ib |
| 50 | 15: ADC rAX,Iz |
| 51 | 16: PUSH SS (i64) |
| 52 | 17: POP SS (i64) |
| 53 | 18: SBB Eb,Gb |
| 54 | 19: SBB Ev,Gv |
| 55 | 1a: SBB Gb,Eb |
| 56 | 1b: SBB Gv,Ev |
| 57 | 1c: SBB AL,Ib |
| 58 | 1d: SBB rAX,Iz |
| 59 | 1e: PUSH DS (i64) |
| 60 | 1f: POP DS (i64) |
| 61 | # 0x20 - 0x2f |
| 62 | 20: AND Eb,Gb |
| 63 | 21: AND Ev,Gv |
| 64 | 22: AND Gb,Eb |
| 65 | 23: AND Gv,Ev |
| 66 | 24: AND AL,Ib |
| 67 | 25: AND rAx,Iz |
| 68 | 26: SEG=ES (Prefix) |
| 69 | 27: DAA (i64) |
| 70 | 28: SUB Eb,Gb |
| 71 | 29: SUB Ev,Gv |
| 72 | 2a: SUB Gb,Eb |
| 73 | 2b: SUB Gv,Ev |
| 74 | 2c: SUB AL,Ib |
| 75 | 2d: SUB rAX,Iz |
| 76 | 2e: SEG=CS (Prefix) |
| 77 | 2f: DAS (i64) |
| 78 | # 0x30 - 0x3f |
| 79 | 30: XOR Eb,Gb |
| 80 | 31: XOR Ev,Gv |
| 81 | 32: XOR Gb,Eb |
| 82 | 33: XOR Gv,Ev |
| 83 | 34: XOR AL,Ib |
| 84 | 35: XOR rAX,Iz |
| 85 | 36: SEG=SS (Prefix) |
| 86 | 37: AAA (i64) |
| 87 | 38: CMP Eb,Gb |
| 88 | 39: CMP Ev,Gv |
| 89 | 3a: CMP Gb,Eb |
| 90 | 3b: CMP Gv,Ev |
| 91 | 3c: CMP AL,Ib |
| 92 | 3d: CMP rAX,Iz |
| 93 | 3e: SEG=DS (Prefix) |
| 94 | 3f: AAS (i64) |
| 95 | # 0x40 - 0x4f |
| 96 | 40: INC eAX (i64) | REX (o64) |
| 97 | 41: INC eCX (i64) | REX.B (o64) |
| 98 | 42: INC eDX (i64) | REX.X (o64) |
| 99 | 43: INC eBX (i64) | REX.XB (o64) |
| 100 | 44: INC eSP (i64) | REX.R (o64) |
| 101 | 45: INC eBP (i64) | REX.RB (o64) |
| 102 | 46: INC eSI (i64) | REX.RX (o64) |
| 103 | 47: INC eDI (i64) | REX.RXB (o64) |
| 104 | 48: DEC eAX (i64) | REX.W (o64) |
| 105 | 49: DEC eCX (i64) | REX.WB (o64) |
| 106 | 4a: DEC eDX (i64) | REX.WX (o64) |
| 107 | 4b: DEC eBX (i64) | REX.WXB (o64) |
| 108 | 4c: DEC eSP (i64) | REX.WR (o64) |
| 109 | 4d: DEC eBP (i64) | REX.WRB (o64) |
| 110 | 4e: DEC eSI (i64) | REX.WRX (o64) |
| 111 | 4f: DEC eDI (i64) | REX.WRXB (o64) |
| 112 | # 0x50 - 0x5f |
| 113 | 50: PUSH rAX/r8 (d64) |
| 114 | 51: PUSH rCX/r9 (d64) |
| 115 | 52: PUSH rDX/r10 (d64) |
| 116 | 53: PUSH rBX/r11 (d64) |
| 117 | 54: PUSH rSP/r12 (d64) |
| 118 | 55: PUSH rBP/r13 (d64) |
| 119 | 56: PUSH rSI/r14 (d64) |
| 120 | 57: PUSH rDI/r15 (d64) |
| 121 | 58: POP rAX/r8 (d64) |
| 122 | 59: POP rCX/r9 (d64) |
| 123 | 5a: POP rDX/r10 (d64) |
| 124 | 5b: POP rBX/r11 (d64) |
| 125 | 5c: POP rSP/r12 (d64) |
| 126 | 5d: POP rBP/r13 (d64) |
| 127 | 5e: POP rSI/r14 (d64) |
| 128 | 5f: POP rDI/r15 (d64) |
| 129 | # 0x60 - 0x6f |
| 130 | 60: PUSHA/PUSHAD (i64) |
| 131 | 61: POPA/POPAD (i64) |
| 132 | 62: BOUND Gv,Ma (i64) |
| 133 | 63: ARPL Ew,Gw (i64) | MOVSXD Gv,Ev (o64) |
| 134 | 64: SEG=FS (Prefix) |
| 135 | 65: SEG=GS (Prefix) |
| 136 | 66: Operand-Size (Prefix) |
| 137 | 67: Address-Size (Prefix) |
| 138 | 68: PUSH Iz (d64) |
| 139 | 69: IMUL Gv,Ev,Iz |
| 140 | 6a: PUSH Ib (d64) |
| 141 | 6b: IMUL Gv,Ev,Ib |
| 142 | 6c: INS/INSB Yb,DX |
| 143 | 6d: INS/INSW/INSD Yz,DX |
| 144 | 6e: OUTS/OUTSB DX,Xb |
| 145 | 6f: OUTS/OUTSW/OUTSD DX,Xz |
| 146 | # 0x70 - 0x7f |
| 147 | 70: JO Jb |
| 148 | 71: JNO Jb |
| 149 | 72: JB/JNAE/JC Jb |
| 150 | 73: JNB/JAE/JNC Jb |
| 151 | 74: JZ/JE Jb |
| 152 | 75: JNZ/JNE Jb |
| 153 | 76: JBE/JNA Jb |
| 154 | 77: JNBE/JA Jb |
| 155 | 78: JS Jb |
| 156 | 79: JNS Jb |
| 157 | 7a: JP/JPE Jb |
| 158 | 7b: JNP/JPO Jb |
| 159 | 7c: JL/JNGE Jb |
| 160 | 7d: JNL/JGE Jb |
| 161 | 7e: JLE/JNG Jb |
| 162 | 7f: JNLE/JG Jb |
| 163 | # 0x80 - 0x8f |
| 164 | 80: Grp1 Eb,Ib (1A) |
| 165 | 81: Grp1 Ev,Iz (1A) |
| 166 | 82: Grp1 Eb,Ib (1A),(i64) |
| 167 | 83: Grp1 Ev,Ib (1A) |
| 168 | 84: TEST Eb,Gb |
| 169 | 85: TEST Ev,Gv |
| 170 | 86: XCHG Eb,Gb |
| 171 | 87: XCHG Ev,Gv |
| 172 | 88: MOV Eb,Gb |
| 173 | 89: MOV Ev,Gv |
| 174 | 8a: MOV Gb,Eb |
| 175 | 8b: MOV Gv,Ev |
| 176 | 8c: MOV Ev,Sw |
| 177 | 8d: LEA Gv,M |
| 178 | 8e: MOV Sw,Ew |
| 179 | 8f: Grp1A (1A) | POP Ev (d64) |
| 180 | # 0x90 - 0x9f |
| 181 | 90: NOP | PAUSE (F3) | XCHG r8,rAX |
| 182 | 91: XCHG rCX/r9,rAX |
| 183 | 92: XCHG rDX/r10,rAX |
| 184 | 93: XCHG rBX/r11,rAX |
| 185 | 94: XCHG rSP/r12,rAX |
| 186 | 95: XCHG rBP/r13,rAX |
| 187 | 96: XCHG rSI/r14,rAX |
| 188 | 97: XCHG rDI/r15,rAX |
| 189 | 98: CBW/CWDE/CDQE |
| 190 | 99: CWD/CDQ/CQO |
| 191 | 9a: CALLF Ap (i64) |
| 192 | 9b: FWAIT/WAIT |
| 193 | 9c: PUSHF/D/Q Fv (d64) |
| 194 | 9d: POPF/D/Q Fv (d64) |
| 195 | 9e: SAHF |
| 196 | 9f: LAHF |
| 197 | # 0xa0 - 0xaf |
| 198 | a0: MOV AL,Ob |
| 199 | a1: MOV rAX,Ov |
| 200 | a2: MOV Ob,AL |
| 201 | a3: MOV Ov,rAX |
| 202 | a4: MOVS/B Xb,Yb |
| 203 | a5: MOVS/W/D/Q Xv,Yv |
| 204 | a6: CMPS/B Xb,Yb |
| 205 | a7: CMPS/W/D Xv,Yv |
| 206 | a8: TEST AL,Ib |
| 207 | a9: TEST rAX,Iz |
| 208 | aa: STOS/B Yb,AL |
| 209 | ab: STOS/W/D/Q Yv,rAX |
| 210 | ac: LODS/B AL,Xb |
| 211 | ad: LODS/W/D/Q rAX,Xv |
| 212 | ae: SCAS/B AL,Yb |
| 213 | af: SCAS/W/D/Q rAX,Xv |
| 214 | # 0xb0 - 0xbf |
| 215 | b0: MOV AL/R8L,Ib |
| 216 | b1: MOV CL/R9L,Ib |
| 217 | b2: MOV DL/R10L,Ib |
| 218 | b3: MOV BL/R11L,Ib |
| 219 | b4: MOV AH/R12L,Ib |
| 220 | b5: MOV CH/R13L,Ib |
| 221 | b6: MOV DH/R14L,Ib |
| 222 | b7: MOV BH/R15L,Ib |
| 223 | b8: MOV rAX/r8,Iv |
| 224 | b9: MOV rCX/r9,Iv |
| 225 | ba: MOV rDX/r10,Iv |
| 226 | bb: MOV rBX/r11,Iv |
| 227 | bc: MOV rSP/r12,Iv |
| 228 | bd: MOV rBP/r13,Iv |
| 229 | be: MOV rSI/r14,Iv |
| 230 | bf: MOV rDI/r15,Iv |
| 231 | # 0xc0 - 0xcf |
| 232 | c0: Grp2 Eb,Ib (1A) |
| 233 | c1: Grp2 Ev,Ib (1A) |
| 234 | c2: RETN Iw (f64) |
| 235 | c3: RETN |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 236 | c4: LES Gz,Mp (i64) | 3bytes-VEX (Prefix) |
| 237 | c5: LDS Gz,Mp (i64) | 2bytes-VEX (Prefix) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 238 | c6: Grp11 Eb,Ib (1A) |
| 239 | c7: Grp11 Ev,Iz (1A) |
| 240 | c8: ENTER Iw,Ib |
| 241 | c9: LEAVE (d64) |
| 242 | ca: RETF Iw |
| 243 | cb: RETF |
| 244 | cc: INT3 |
| 245 | cd: INT Ib |
| 246 | ce: INTO (i64) |
| 247 | cf: IRET/D/Q |
| 248 | # 0xd0 - 0xdf |
| 249 | d0: Grp2 Eb,1 (1A) |
| 250 | d1: Grp2 Ev,1 (1A) |
| 251 | d2: Grp2 Eb,CL (1A) |
| 252 | d3: Grp2 Ev,CL (1A) |
| 253 | d4: AAM Ib (i64) |
| 254 | d5: AAD Ib (i64) |
| 255 | d6: |
| 256 | d7: XLAT/XLATB |
| 257 | d8: ESC |
| 258 | d9: ESC |
| 259 | da: ESC |
| 260 | db: ESC |
| 261 | dc: ESC |
| 262 | dd: ESC |
| 263 | de: ESC |
| 264 | df: ESC |
| 265 | # 0xe0 - 0xef |
| 266 | e0: LOOPNE/LOOPNZ Jb (f64) |
| 267 | e1: LOOPE/LOOPZ Jb (f64) |
| 268 | e2: LOOP Jb (f64) |
| 269 | e3: JrCXZ Jb (f64) |
| 270 | e4: IN AL,Ib |
| 271 | e5: IN eAX,Ib |
| 272 | e6: OUT Ib,AL |
| 273 | e7: OUT Ib,eAX |
| 274 | e8: CALL Jz (f64) |
| 275 | e9: JMP-near Jz (f64) |
| 276 | ea: JMP-far Ap (i64) |
| 277 | eb: JMP-short Jb (f64) |
| 278 | ec: IN AL,DX |
| 279 | ed: IN eAX,DX |
| 280 | ee: OUT DX,AL |
| 281 | ef: OUT DX,eAX |
| 282 | # 0xf0 - 0xff |
| 283 | f0: LOCK (Prefix) |
| 284 | f1: |
| 285 | f2: REPNE (Prefix) |
| 286 | f3: REP/REPE (Prefix) |
| 287 | f4: HLT |
| 288 | f5: CMC |
| 289 | f6: Grp3_1 Eb (1A) |
| 290 | f7: Grp3_2 Ev (1A) |
| 291 | f8: CLC |
| 292 | f9: STC |
| 293 | fa: CLI |
| 294 | fb: STI |
| 295 | fc: CLD |
| 296 | fd: STD |
| 297 | fe: Grp4 (1A) |
| 298 | ff: Grp5 (1A) |
| 299 | EndTable |
| 300 | |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 301 | Table: 2-byte opcode (0x0f) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 302 | Referrer: 2-byte escape |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 303 | AVXcode: 1 |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 304 | # 0x0f 0x00-0x0f |
| 305 | 00: Grp6 (1A) |
| 306 | 01: Grp7 (1A) |
| 307 | 02: LAR Gv,Ew |
| 308 | 03: LSL Gv,Ew |
| 309 | 04: |
| 310 | 05: SYSCALL (o64) |
| 311 | 06: CLTS |
| 312 | 07: SYSRET (o64) |
| 313 | 08: INVD |
| 314 | 09: WBINVD |
| 315 | 0a: |
| 316 | 0b: UD2 (1B) |
| 317 | 0c: |
Masami Hiramatsu | d1baf5a | 2009-10-16 20:07:44 -0400 | [diff] [blame] | 318 | 0d: NOP Ev | GrpP |
| 319 | 0e: FEMMS |
| 320 | # 3DNow! uses the last imm byte as opcode extension. |
| 321 | 0f: 3DNow! Pq,Qq,Ib |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 322 | # 0x0f 0x10-0x1f |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 323 | 10: movups Vps,Wps (VEX) | movss Vss,Wss (F3),(VEX),(o128) | movupd Vpd,Wpd (66),(VEX) | movsd Vsd,Wsd (F2),(VEX),(o128) |
| 324 | 11: movups Wps,Vps (VEX) | movss Wss,Vss (F3),(VEX),(o128) | movupd Wpd,Vpd (66),(VEX) | movsd Wsd,Vsd (F2),(VEX),(o128) |
| 325 | 12: movlps Vq,Mq (VEX),(o128) | movlpd Vq,Mq (66),(VEX),(o128) | movhlps Vq,Uq (VEX),(o128) | movddup Vq,Wq (F2),(VEX) | movsldup Vq,Wq (F3),(VEX) |
| 326 | 13: mpvlps Mq,Vq (VEX),(o128) | movlpd Mq,Vq (66),(VEX),(o128) |
| 327 | 14: unpcklps Vps,Wq (VEX) | unpcklpd Vpd,Wq (66),(VEX) |
| 328 | 15: unpckhps Vps,Wq (VEX) | unpckhpd Vpd,Wq (66),(VEX) |
| 329 | 16: movhps Vq,Mq (VEX),(o128) | movhpd Vq,Mq (66),(VEX),(o128) | movlsps Vq,Uq (VEX),(o128) | movshdup Vq,Wq (F3),(VEX) |
| 330 | 17: movhps Mq,Vq (VEX),(o128) | movhpd Mq,Vq (66),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 331 | 18: Grp16 (1A) |
| 332 | 19: |
| 333 | 1a: |
| 334 | 1b: |
| 335 | 1c: |
| 336 | 1d: |
| 337 | 1e: |
| 338 | 1f: NOP Ev |
| 339 | # 0x0f 0x20-0x2f |
| 340 | 20: MOV Rd,Cd |
| 341 | 21: MOV Rd,Dd |
| 342 | 22: MOV Cd,Rd |
| 343 | 23: MOV Dd,Rd |
| 344 | 24: |
| 345 | 25: |
| 346 | 26: |
| 347 | 27: |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 348 | 28: movaps Vps,Wps (VEX) | movapd Vpd,Wpd (66),(VEX) |
| 349 | 29: movaps Wps,Vps (VEX) | movapd Wpd,Vpd (66),(VEX) |
| 350 | 2a: cvtpi2ps Vps,Qpi | cvtsi2ss Vss,Ed/q (F3),(VEX),(o128) | cvtpi2pd Vpd,Qpi (66) | cvtsi2sd Vsd,Ed/q (F2),(VEX),(o128) |
| 351 | 2b: movntps Mps,Vps (VEX) | movntpd Mpd,Vpd (66),(VEX) |
| 352 | 2c: cvttps2pi Ppi,Wps | cvttss2si Gd/q,Wss (F3),(VEX),(o128) | cvttpd2pi Ppi,Wpd (66) | cvttsd2si Gd/q,Wsd (F2),(VEX),(o128) |
| 353 | 2d: cvtps2pi Ppi,Wps | cvtss2si Gd/q,Wss (F3),(VEX),(o128) | cvtpd2pi Qpi,Wpd (66) | cvtsd2si Gd/q,Wsd (F2),(VEX),(o128) |
| 354 | 2e: ucomiss Vss,Wss (VEX),(o128) | ucomisd Vsd,Wsd (66),(VEX),(o128) |
| 355 | 2f: comiss Vss,Wss (VEX),(o128) | comisd Vsd,Wsd (66),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 356 | # 0x0f 0x30-0x3f |
| 357 | 30: WRMSR |
| 358 | 31: RDTSC |
| 359 | 32: RDMSR |
| 360 | 33: RDPMC |
| 361 | 34: SYSENTER |
| 362 | 35: SYSEXIT |
| 363 | 36: |
| 364 | 37: GETSEC |
| 365 | 38: escape # 3-byte escape 1 |
| 366 | 39: |
| 367 | 3a: escape # 3-byte escape 2 |
| 368 | 3b: |
| 369 | 3c: |
| 370 | 3d: |
| 371 | 3e: |
| 372 | 3f: |
| 373 | # 0x0f 0x40-0x4f |
| 374 | 40: CMOVO Gv,Ev |
| 375 | 41: CMOVNO Gv,Ev |
| 376 | 42: CMOVB/C/NAE Gv,Ev |
| 377 | 43: CMOVAE/NB/NC Gv,Ev |
| 378 | 44: CMOVE/Z Gv,Ev |
| 379 | 45: CMOVNE/NZ Gv,Ev |
| 380 | 46: CMOVBE/NA Gv,Ev |
| 381 | 47: CMOVA/NBE Gv,Ev |
| 382 | 48: CMOVS Gv,Ev |
| 383 | 49: CMOVNS Gv,Ev |
| 384 | 4a: CMOVP/PE Gv,Ev |
| 385 | 4b: CMOVNP/PO Gv,Ev |
| 386 | 4c: CMOVL/NGE Gv,Ev |
| 387 | 4d: CMOVNL/GE Gv,Ev |
| 388 | 4e: CMOVLE/NG Gv,Ev |
| 389 | 4f: CMOVNLE/G Gv,Ev |
| 390 | # 0x0f 0x50-0x5f |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 391 | 50: movmskps Gd/q,Ups (VEX) | movmskpd Gd/q,Upd (66),(VEX) |
| 392 | 51: sqrtps Vps,Wps (VEX) | sqrtss Vss,Wss (F3),(VEX),(o128) | sqrtpd Vpd,Wpd (66),(VEX) | sqrtsd Vsd,Wsd (F2),(VEX),(o128) |
| 393 | 52: rsqrtps Vps,Wps (VEX) | rsqrtss Vss,Wss (F3),(VEX),(o128) |
| 394 | 53: rcpps Vps,Wps (VEX) | rcpss Vss,Wss (F3),(VEX),(o128) |
| 395 | 54: andps Vps,Wps (VEX) | andpd Vpd,Wpd (66),(VEX) |
| 396 | 55: andnps Vps,Wps (VEX) | andnpd Vpd,Wpd (66),(VEX) |
| 397 | 56: orps Vps,Wps (VEX) | orpd Vpd,Wpd (66),(VEX) |
| 398 | 57: xorps Vps,Wps (VEX) | xorpd Vpd,Wpd (66),(VEX) |
| 399 | 58: addps Vps,Wps (VEX) | addss Vss,Wss (F3),(VEX),(o128) | addpd Vpd,Wpd (66),(VEX) | addsd Vsd,Wsd (F2),(VEX),(o128) |
| 400 | 59: mulps Vps,Wps (VEX) | mulss Vss,Wss (F3),(VEX),(o128) | mulpd Vpd,Wpd (66),(VEX) | mulsd Vsd,Wsd (F2),(VEX),(o128) |
| 401 | 5a: cvtps2pd Vpd,Wps (VEX) | cvtss2sd Vsd,Wss (F3),(VEX),(o128) | cvtpd2ps Vps,Wpd (66),(VEX) | cvtsd2ss Vsd,Wsd (F2),(VEX),(o128) |
| 402 | 5b: cvtdq2ps Vps,Wdq (VEX) | cvtps2dq Vdq,Wps (66),(VEX) | cvttps2dq Vdq,Wps (F3),(VEX) |
| 403 | 5c: subps Vps,Wps (VEX) | subss Vss,Wss (F3),(VEX),(o128) | subpd Vpd,Wpd (66),(VEX) | subsd Vsd,Wsd (F2),(VEX),(o128) |
| 404 | 5d: minps Vps,Wps (VEX) | minss Vss,Wss (F3),(VEX),(o128) | minpd Vpd,Wpd (66),(VEX) | minsd Vsd,Wsd (F2),(VEX),(o128) |
| 405 | 5e: divps Vps,Wps (VEX) | divss Vss,Wss (F3),(VEX),(o128) | divpd Vpd,Wpd (66),(VEX) | divsd Vsd,Wsd (F2),(VEX),(o128) |
| 406 | 5f: maxps Vps,Wps (VEX) | maxss Vss,Wss (F3),(VEX),(o128) | maxpd Vpd,Wpd (66),(VEX) | maxsd Vsd,Wsd (F2),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 407 | # 0x0f 0x60-0x6f |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 408 | 60: punpcklbw Pq,Qd | punpcklbw Vdq,Wdq (66),(VEX),(o128) |
| 409 | 61: punpcklwd Pq,Qd | punpcklwd Vdq,Wdq (66),(VEX),(o128) |
| 410 | 62: punpckldq Pq,Qd | punpckldq Vdq,Wdq (66),(VEX),(o128) |
| 411 | 63: packsswb Pq,Qq | packsswb Vdq,Wdq (66),(VEX),(o128) |
| 412 | 64: pcmpgtb Pq,Qq | pcmpgtb Vdq,Wdq (66),(VEX),(o128) |
| 413 | 65: pcmpgtw Pq,Qq | pcmpgtw Vdq,Wdq (66),(VEX),(o128) |
| 414 | 66: pcmpgtd Pq,Qq | pcmpgtd Vdq,Wdq (66),(VEX),(o128) |
| 415 | 67: packuswb Pq,Qq | packuswb Vdq,Wdq (66),(VEX),(o128) |
| 416 | 68: punpckhbw Pq,Qd | punpckhbw Vdq,Wdq (66),(VEX),(o128) |
| 417 | 69: punpckhwd Pq,Qd | punpckhwd Vdq,Wdq (66),(VEX),(o128) |
| 418 | 6a: punpckhdq Pq,Qd | punpckhdq Vdq,Wdq (66),(VEX),(o128) |
| 419 | 6b: packssdw Pq,Qd | packssdw Vdq,Wdq (66),(VEX),(o128) |
| 420 | 6c: punpcklqdq Vdq,Wdq (66),(VEX),(o128) |
| 421 | 6d: punpckhqdq Vdq,Wdq (66),(VEX),(o128) |
| 422 | 6e: movd/q/ Pd,Ed/q | movd/q Vdq,Ed/q (66),(VEX),(o128) |
| 423 | 6f: movq Pq,Qq | movdqa Vdq,Wdq (66),(VEX) | movdqu Vdq,Wdq (F3),(VEX) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 424 | # 0x0f 0x70-0x7f |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 425 | 70: pshufw Pq,Qq,Ib | pshufd Vdq,Wdq,Ib (66),(VEX),(o128) | pshufhw Vdq,Wdq,Ib (F3),(VEX),(o128) | pshuflw VdqWdq,Ib (F2),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 426 | 71: Grp12 (1A) |
| 427 | 72: Grp13 (1A) |
| 428 | 73: Grp14 (1A) |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 429 | 74: pcmpeqb Pq,Qq | pcmpeqb Vdq,Wdq (66),(VEX),(o128) |
| 430 | 75: pcmpeqw Pq,Qq | pcmpeqw Vdq,Wdq (66),(VEX),(o128) |
| 431 | 76: pcmpeqd Pq,Qq | pcmpeqd Vdq,Wdq (66),(VEX),(o128) |
| 432 | 77: emms/vzeroupper/vzeroall (VEX) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 433 | 78: VMREAD Ed/q,Gd/q |
| 434 | 79: VMWRITE Gd/q,Ed/q |
| 435 | 7a: |
| 436 | 7b: |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 437 | 7c: haddps Vps,Wps (F2),(VEX) | haddpd Vpd,Wpd (66),(VEX) |
| 438 | 7d: hsubps Vps,Wps (F2),(VEX) | hsubpd Vpd,Wpd (66),(VEX) |
| 439 | 7e: movd/q Ed/q,Pd | movd/q Ed/q,Vdq (66),(VEX),(o128) | movq Vq,Wq (F3),(VEX),(o128) |
| 440 | 7f: movq Qq,Pq | movdqa Wdq,Vdq (66),(VEX) | movdqu Wdq,Vdq (F3),(VEX) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 441 | # 0x0f 0x80-0x8f |
| 442 | 80: JO Jz (f64) |
| 443 | 81: JNO Jz (f64) |
| 444 | 82: JB/JNAE/JC Jz (f64) |
| 445 | 83: JNB/JAE/JNC Jz (f64) |
| 446 | 84: JZ/JE Jz (f64) |
| 447 | 85: JNZ/JNE Jz (f64) |
| 448 | 86: JBE/JNA Jz (f64) |
| 449 | 87: JNBE/JA Jz (f64) |
| 450 | 88: JS Jz (f64) |
| 451 | 89: JNS Jz (f64) |
| 452 | 8a: JP/JPE Jz (f64) |
| 453 | 8b: JNP/JPO Jz (f64) |
| 454 | 8c: JL/JNGE Jz (f64) |
| 455 | 8d: JNL/JGE Jz (f64) |
| 456 | 8e: JLE/JNG Jz (f64) |
| 457 | 8f: JNLE/JG Jz (f64) |
| 458 | # 0x0f 0x90-0x9f |
| 459 | 90: SETO Eb |
| 460 | 91: SETNO Eb |
| 461 | 92: SETB/C/NAE Eb |
| 462 | 93: SETAE/NB/NC Eb |
| 463 | 94: SETE/Z Eb |
| 464 | 95: SETNE/NZ Eb |
| 465 | 96: SETBE/NA Eb |
| 466 | 97: SETA/NBE Eb |
| 467 | 98: SETS Eb |
| 468 | 99: SETNS Eb |
| 469 | 9a: SETP/PE Eb |
| 470 | 9b: SETNP/PO Eb |
| 471 | 9c: SETL/NGE Eb |
| 472 | 9d: SETNL/GE Eb |
| 473 | 9e: SETLE/NG Eb |
| 474 | 9f: SETNLE/G Eb |
| 475 | # 0x0f 0xa0-0xaf |
| 476 | a0: PUSH FS (d64) |
| 477 | a1: POP FS (d64) |
| 478 | a2: CPUID |
| 479 | a3: BT Ev,Gv |
| 480 | a4: SHLD Ev,Gv,Ib |
| 481 | a5: SHLD Ev,Gv,CL |
Masami Hiramatsu | c0b11d3 | 2009-09-25 11:20:38 -0700 | [diff] [blame] | 482 | a6: GrpPDLK |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 483 | a7: GrpRNG |
| 484 | a8: PUSH GS (d64) |
| 485 | a9: POP GS (d64) |
| 486 | aa: RSM |
| 487 | ab: BTS Ev,Gv |
| 488 | ac: SHRD Ev,Gv,Ib |
| 489 | ad: SHRD Ev,Gv,CL |
| 490 | ae: Grp15 (1A),(1C) |
| 491 | af: IMUL Gv,Ev |
| 492 | # 0x0f 0xb0-0xbf |
| 493 | b0: CMPXCHG Eb,Gb |
| 494 | b1: CMPXCHG Ev,Gv |
| 495 | b2: LSS Gv,Mp |
| 496 | b3: BTR Ev,Gv |
| 497 | b4: LFS Gv,Mp |
| 498 | b5: LGS Gv,Mp |
| 499 | b6: MOVZX Gv,Eb |
| 500 | b7: MOVZX Gv,Ew |
| 501 | b8: JMPE | POPCNT Gv,Ev (F3) |
| 502 | b9: Grp10 (1A) |
| 503 | ba: Grp8 Ev,Ib (1A) |
| 504 | bb: BTC Ev,Gv |
| 505 | bc: BSF Gv,Ev |
| 506 | bd: BSR Gv,Ev |
| 507 | be: MOVSX Gv,Eb |
| 508 | bf: MOVSX Gv,Ew |
| 509 | # 0x0f 0xc0-0xcf |
| 510 | c0: XADD Eb,Gb |
| 511 | c1: XADD Ev,Gv |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 512 | c2: cmpps Vps,Wps,Ib (VEX) | cmpss Vss,Wss,Ib (F3),(VEX),(o128) | cmppd Vpd,Wpd,Ib (66),(VEX) | cmpsd Vsd,Wsd,Ib (F2),(VEX) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 513 | c3: movnti Md/q,Gd/q |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 514 | c4: pinsrw Pq,Rd/q/Mw,Ib | pinsrw Vdq,Rd/q/Mw,Ib (66),(VEX),(o128) |
| 515 | c5: pextrw Gd,Nq,Ib | pextrw Gd,Udq,Ib (66),(VEX),(o128) |
| 516 | c6: shufps Vps,Wps,Ib (VEX) | shufpd Vpd,Wpd,Ib (66),(VEX) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 517 | c7: Grp9 (1A) |
| 518 | c8: BSWAP RAX/EAX/R8/R8D |
| 519 | c9: BSWAP RCX/ECX/R9/R9D |
| 520 | ca: BSWAP RDX/EDX/R10/R10D |
| 521 | cb: BSWAP RBX/EBX/R11/R11D |
| 522 | cc: BSWAP RSP/ESP/R12/R12D |
| 523 | cd: BSWAP RBP/EBP/R13/R13D |
| 524 | ce: BSWAP RSI/ESI/R14/R14D |
| 525 | cf: BSWAP RDI/EDI/R15/R15D |
| 526 | # 0x0f 0xd0-0xdf |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 527 | d0: addsubps Vps,Wps (F2),(VEX) | addsubpd Vpd,Wpd (66),(VEX) |
| 528 | d1: psrlw Pq,Qq | psrlw Vdq,Wdq (66),(VEX),(o128) |
| 529 | d2: psrld Pq,Qq | psrld Vdq,Wdq (66),(VEX),(o128) |
| 530 | d3: psrlq Pq,Qq | psrlq Vdq,Wdq (66),(VEX),(o128) |
| 531 | d4: paddq Pq,Qq | paddq Vdq,Wdq (66),(VEX),(o128) |
| 532 | d5: pmullw Pq,Qq | pmullw Vdq,Wdq (66),(VEX),(o128) |
| 533 | d6: movq Wq,Vq (66),(VEX),(o128) | movq2dq Vdq,Nq (F3) | movdq2q Pq,Uq (F2) |
| 534 | d7: pmovmskb Gd,Nq | pmovmskb Gd,Udq (66),(VEX),(o128) |
| 535 | d8: psubusb Pq,Qq | psubusb Vdq,Wdq (66),(VEX),(o128) |
| 536 | d9: psubusw Pq,Qq | psubusw Vdq,Wdq (66),(VEX),(o128) |
| 537 | da: pminub Pq,Qq | pminub Vdq,Wdq (66),(VEX),(o128) |
| 538 | db: pand Pq,Qq | pand Vdq,Wdq (66),(VEX),(o128) |
| 539 | dc: paddusb Pq,Qq | paddusb Vdq,Wdq (66),(VEX),(o128) |
| 540 | dd: paddusw Pq,Qq | paddusw Vdq,Wdq (66),(VEX),(o128) |
| 541 | de: pmaxub Pq,Qq | pmaxub Vdq,Wdq (66),(VEX),(o128) |
| 542 | df: pandn Pq,Qq | pandn Vdq,Wdq (66),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 543 | # 0x0f 0xe0-0xef |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 544 | e0: pavgb Pq,Qq | pavgb Vdq,Wdq (66),(VEX),(o128) |
| 545 | e1: psraw Pq,Qq | psraw Vdq,Wdq (66),(VEX),(o128) |
| 546 | e2: psrad Pq,Qq | psrad Vdq,Wdq (66),(VEX),(o128) |
| 547 | e3: pavgw Pq,Qq | pavgw Vdq,Wdq (66),(VEX),(o128) |
| 548 | e4: pmulhuw Pq,Qq | pmulhuw Vdq,Wdq (66),(VEX),(o128) |
| 549 | e5: pmulhw Pq,Qq | pmulhw Vdq,Wdq (66),(VEX),(o128) |
| 550 | e6: cvtpd2dq Vdq,Wpd (F2),(VEX) | cvttpd2dq Vdq,Wpd (66),(VEX) | cvtdq2pd Vpd,Wdq (F3),(VEX) |
| 551 | e7: movntq Mq,Pq | movntdq Mdq,Vdq (66),(VEX) |
| 552 | e8: psubsb Pq,Qq | psubsb Vdq,Wdq (66),(VEX),(o128) |
| 553 | e9: psubsw Pq,Qq | psubsw Vdq,Wdq (66),(VEX),(o128) |
| 554 | ea: pminsw Pq,Qq | pminsw Vdq,Wdq (66),(VEX),(o128) |
| 555 | eb: por Pq,Qq | por Vdq,Wdq (66),(VEX),(o128) |
| 556 | ec: paddsb Pq,Qq | paddsb Vdq,Wdq (66),(VEX),(o128) |
| 557 | ed: paddsw Pq,Qq | paddsw Vdq,Wdq (66),(VEX),(o128) |
| 558 | ee: pmaxsw Pq,Qq | pmaxsw Vdq,Wdq (66),(VEX),(o128) |
| 559 | ef: pxor Pq,Qq | pxor Vdq,Wdq (66),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 560 | # 0x0f 0xf0-0xff |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 561 | f0: lddqu Vdq,Mdq (F2),(VEX) |
| 562 | f1: psllw Pq,Qq | psllw Vdq,Wdq (66),(VEX),(o128) |
| 563 | f2: pslld Pq,Qq | pslld Vdq,Wdq (66),(VEX),(o128) |
| 564 | f3: psllq Pq,Qq | psllq Vdq,Wdq (66),(VEX),(o128) |
| 565 | f4: pmuludq Pq,Qq | pmuludq Vdq,Wdq (66),(VEX),(o128) |
| 566 | f5: pmaddwd Pq,Qq | pmaddwd Vdq,Wdq (66),(VEX),(o128) |
| 567 | f6: psadbw Pq,Qq | psadbw Vdq,Wdq (66),(VEX),(o128) |
| 568 | f7: maskmovq Pq,Nq | maskmovdqu Vdq,Udq (66),(VEX),(o128) |
| 569 | f8: psubb Pq,Qq | psubb Vdq,Wdq (66),(VEX),(o128) |
| 570 | f9: psubw Pq,Qq | psubw Vdq,Wdq (66),(VEX),(o128) |
| 571 | fa: psubd Pq,Qq | psubd Vdq,Wdq (66),(VEX),(o128) |
| 572 | fb: psubq Pq,Qq | psubq Vdq,Wdq (66),(VEX),(o128) |
| 573 | fc: paddb Pq,Qq | paddb Vdq,Wdq (66),(VEX),(o128) |
| 574 | fd: paddw Pq,Qq | paddw Vdq,Wdq (66),(VEX),(o128) |
| 575 | fe: paddd Pq,Qq | paddd Vdq,Wdq (66),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 576 | ff: |
| 577 | EndTable |
| 578 | |
Masami Hiramatsu | 9983d60 | 2009-10-20 12:55:31 -0400 | [diff] [blame] | 579 | Table: 3-byte opcode 1 (0x0f 0x38) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 580 | Referrer: 3-byte escape 1 |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 581 | AVXcode: 2 |
Masami Hiramatsu | f12b4f5 | 2009-09-08 12:32:46 -0400 | [diff] [blame] | 582 | # 0x0f 0x38 0x00-0x0f |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 583 | 00: pshufb Pq,Qq | pshufb Vdq,Wdq (66),(VEX),(o128) |
| 584 | 01: phaddw Pq,Qq | phaddw Vdq,Wdq (66),(VEX),(o128) |
| 585 | 02: phaddd Pq,Qq | phaddd Vdq,Wdq (66),(VEX),(o128) |
| 586 | 03: phaddsw Pq,Qq | phaddsw Vdq,Wdq (66),(VEX),(o128) |
| 587 | 04: pmaddubsw Pq,Qq | pmaddubsw Vdq,Wdq (66),(VEX),(o128) |
| 588 | 05: phsubw Pq,Qq | phsubw Vdq,Wdq (66),(VEX),(o128) |
| 589 | 06: phsubd Pq,Qq | phsubd Vdq,Wdq (66),(VEX),(o128) |
| 590 | 07: phsubsw Pq,Qq | phsubsw Vdq,Wdq (66),(VEX),(o128) |
| 591 | 08: psignb Pq,Qq | psignb Vdq,Wdq (66),(VEX),(o128) |
| 592 | 09: psignw Pq,Qq | psignw Vdq,Wdq (66),(VEX),(o128) |
| 593 | 0a: psignd Pq,Qq | psignd Vdq,Wdq (66),(VEX),(o128) |
| 594 | 0b: pmulhrsw Pq,Qq | pmulhrsw Vdq,Wdq (66),(VEX),(o128) |
| 595 | 0c: Vpermilps /r (66),(oVEX) |
| 596 | 0d: Vpermilpd /r (66),(oVEX) |
| 597 | 0e: vtestps /r (66),(oVEX) |
| 598 | 0f: vtestpd /r (66),(oVEX) |
Masami Hiramatsu | f12b4f5 | 2009-09-08 12:32:46 -0400 | [diff] [blame] | 599 | # 0x0f 0x38 0x10-0x1f |
| 600 | 10: pblendvb Vdq,Wdq (66) |
| 601 | 11: |
| 602 | 12: |
| 603 | 13: |
| 604 | 14: blendvps Vdq,Wdq (66) |
| 605 | 15: blendvpd Vdq,Wdq (66) |
| 606 | 16: |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 607 | 17: ptest Vdq,Wdq (66),(VEX) |
| 608 | 18: vbroadcastss /r (66),(oVEX) |
| 609 | 19: vbroadcastsd /r (66),(oVEX),(o256) |
| 610 | 1a: vbroadcastf128 /r (66),(oVEX),(o256) |
Masami Hiramatsu | f12b4f5 | 2009-09-08 12:32:46 -0400 | [diff] [blame] | 611 | 1b: |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 612 | 1c: pabsb Pq,Qq | pabsb Vdq,Wdq (66),(VEX),(o128) |
| 613 | 1d: pabsw Pq,Qq | pabsw Vdq,Wdq (66),(VEX),(o128) |
| 614 | 1e: pabsd Pq,Qq | pabsd Vdq,Wdq (66),(VEX),(o128) |
Masami Hiramatsu | f12b4f5 | 2009-09-08 12:32:46 -0400 | [diff] [blame] | 615 | 1f: |
| 616 | # 0x0f 0x38 0x20-0x2f |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 617 | 20: pmovsxbw Vdq,Udq/Mq (66),(VEX),(o128) |
| 618 | 21: pmovsxbd Vdq,Udq/Md (66),(VEX),(o128) |
| 619 | 22: pmovsxbq Vdq,Udq/Mw (66),(VEX),(o128) |
| 620 | 23: pmovsxwd Vdq,Udq/Mq (66),(VEX),(o128) |
| 621 | 24: pmovsxwq Vdq,Udq/Md (66),(VEX),(o128) |
| 622 | 25: pmovsxdq Vdq,Udq/Mq (66),(VEX),(o128) |
Masami Hiramatsu | f12b4f5 | 2009-09-08 12:32:46 -0400 | [diff] [blame] | 623 | 26: |
| 624 | 27: |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 625 | 28: pmuldq Vdq,Wdq (66),(VEX),(o128) |
| 626 | 29: pcmpeqq Vdq,Wdq (66),(VEX),(o128) |
| 627 | 2a: movntdqa Vdq,Mdq (66),(VEX),(o128) |
| 628 | 2b: packusdw Vdq,Wdq (66),(VEX),(o128) |
| 629 | 2c: vmaskmovps(ld) /r (66),(oVEX) |
| 630 | 2d: vmaskmovpd(ld) /r (66),(oVEX) |
| 631 | 2e: vmaskmovps(st) /r (66),(oVEX) |
| 632 | 2f: vmaskmovpd(st) /r (66),(oVEX) |
Masami Hiramatsu | f12b4f5 | 2009-09-08 12:32:46 -0400 | [diff] [blame] | 633 | # 0x0f 0x38 0x30-0x3f |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 634 | 30: pmovzxbw Vdq,Udq/Mq (66),(VEX),(o128) |
| 635 | 31: pmovzxbd Vdq,Udq/Md (66),(VEX),(o128) |
| 636 | 32: pmovzxbq Vdq,Udq/Mw (66),(VEX),(o128) |
| 637 | 33: pmovzxwd Vdq,Udq/Mq (66),(VEX),(o128) |
| 638 | 34: pmovzxwq Vdq,Udq/Md (66),(VEX),(o128) |
| 639 | 35: pmovzxdq Vdq,Udq/Mq (66),(VEX),(o128) |
Masami Hiramatsu | f12b4f5 | 2009-09-08 12:32:46 -0400 | [diff] [blame] | 640 | 36: |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 641 | 37: pcmpgtq Vdq,Wdq (66),(VEX),(o128) |
| 642 | 38: pminsb Vdq,Wdq (66),(VEX),(o128) |
| 643 | 39: pminsd Vdq,Wdq (66),(VEX),(o128) |
| 644 | 3a: pminuw Vdq,Wdq (66),(VEX),(o128) |
| 645 | 3b: pminud Vdq,Wdq (66),(VEX),(o128) |
| 646 | 3c: pmaxsb Vdq,Wdq (66),(VEX),(o128) |
| 647 | 3d: pmaxsd Vdq,Wdq (66),(VEX),(o128) |
| 648 | 3e: pmaxuw Vdq,Wdq (66),(VEX),(o128) |
| 649 | 3f: pmaxud Vdq,Wdq (66),(VEX),(o128) |
Masami Hiramatsu | 3f7e454 | 2009-10-27 16:42:35 -0400 | [diff] [blame] | 650 | # 0x0f 0x38 0x40-0x8f |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 651 | 40: pmulld Vdq,Wdq (66),(VEX),(o128) |
| 652 | 41: phminposuw Vdq,Wdq (66),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 653 | 80: INVEPT Gd/q,Mdq (66) |
| 654 | 81: INVPID Gd/q,Mdq (66) |
Masami Hiramatsu | 3f7e454 | 2009-10-27 16:42:35 -0400 | [diff] [blame] | 655 | # 0x0f 0x38 0x90-0xbf (FMA) |
| 656 | 96: vfmaddsub132pd/ps /r (66),(VEX) |
| 657 | 97: vfmsubadd132pd/ps /r (66),(VEX) |
| 658 | 98: vfmadd132pd/ps /r (66),(VEX) |
| 659 | 99: vfmadd132sd/ss /r (66),(VEX),(o128) |
| 660 | 9a: vfmsub132pd/ps /r (66),(VEX) |
| 661 | 9b: vfmsub132sd/ss /r (66),(VEX),(o128) |
| 662 | 9c: vfnmadd132pd/ps /r (66),(VEX) |
| 663 | 9d: vfnmadd132sd/ss /r (66),(VEX),(o128) |
| 664 | 9e: vfnmsub132pd/ps /r (66),(VEX) |
| 665 | 9f: vfnmsub132sd/ss /r (66),(VEX),(o128) |
| 666 | a6: vfmaddsub213pd/ps /r (66),(VEX) |
| 667 | a7: vfmsubadd213pd/ps /r (66),(VEX) |
| 668 | a8: vfmadd213pd/ps /r (66),(VEX) |
| 669 | a9: vfmadd213sd/ss /r (66),(VEX),(o128) |
| 670 | aa: vfmsub213pd/ps /r (66),(VEX) |
| 671 | ab: vfmsub213sd/ss /r (66),(VEX),(o128) |
| 672 | ac: vfnmadd213pd/ps /r (66),(VEX) |
| 673 | ad: vfnmadd213sd/ss /r (66),(VEX),(o128) |
| 674 | ae: vfnmsub213pd/ps /r (66),(VEX) |
| 675 | af: vfnmsub213sd/ss /r (66),(VEX),(o128) |
| 676 | b6: vfmaddsub231pd/ps /r (66),(VEX) |
| 677 | b7: vfmsubadd231pd/ps /r (66),(VEX) |
| 678 | b8: vfmadd231pd/ps /r (66),(VEX) |
| 679 | b9: vfmadd231sd/ss /r (66),(VEX),(o128) |
| 680 | ba: vfmsub231pd/ps /r (66),(VEX) |
| 681 | bb: vfmsub231sd/ss /r (66),(VEX),(o128) |
| 682 | bc: vfnmadd231pd/ps /r (66),(VEX) |
| 683 | bd: vfnmadd231sd/ss /r (66),(VEX),(o128) |
| 684 | be: vfnmsub231pd/ps /r (66),(VEX) |
| 685 | bf: vfnmsub231sd/ss /r (66),(VEX),(o128) |
| 686 | # 0x0f 0x38 0xc0-0xff |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 687 | db: aesimc Vdq,Wdq (66),(VEX),(o128) |
| 688 | dc: aesenc Vdq,Wdq (66),(VEX),(o128) |
| 689 | dd: aesenclast Vdq,Wdq (66),(VEX),(o128) |
| 690 | de: aesdec Vdq,Wdq (66),(VEX),(o128) |
| 691 | df: aesdeclast Vdq,Wdq (66),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 692 | f0: MOVBE Gv,Mv | CRC32 Gd,Eb (F2) |
| 693 | f1: MOVBE Mv,Gv | CRC32 Gd,Ev (F2) |
| 694 | EndTable |
| 695 | |
Masami Hiramatsu | 9983d60 | 2009-10-20 12:55:31 -0400 | [diff] [blame] | 696 | Table: 3-byte opcode 2 (0x0f 0x3a) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 697 | Referrer: 3-byte escape 2 |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 698 | AVXcode: 3 |
Masami Hiramatsu | f12b4f5 | 2009-09-08 12:32:46 -0400 | [diff] [blame] | 699 | # 0x0f 0x3a 0x00-0xff |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 700 | 04: vpermilps /r,Ib (66),(oVEX) |
| 701 | 05: vpermilpd /r,Ib (66),(oVEX) |
| 702 | 06: vperm2f128 /r,Ib (66),(oVEX),(o256) |
| 703 | 08: roundps Vdq,Wdq,Ib (66),(VEX) |
| 704 | 09: roundpd Vdq,Wdq,Ib (66),(VEX) |
| 705 | 0a: roundss Vss,Wss,Ib (66),(VEX),(o128) |
| 706 | 0b: roundsd Vsd,Wsd,Ib (66),(VEX),(o128) |
| 707 | 0c: blendps Vdq,Wdq,Ib (66),(VEX) |
| 708 | 0d: blendpd Vdq,Wdq,Ib (66),(VEX) |
| 709 | 0e: pblendw Vdq,Wdq,Ib (66),(VEX),(o128) |
| 710 | 0f: palignr Pq,Qq,Ib | palignr Vdq,Wdq,Ib (66),(VEX),(o128) |
| 711 | 14: pextrb Rd/Mb,Vdq,Ib (66),(VEX),(o128) |
| 712 | 15: pextrw Rd/Mw,Vdq,Ib (66),(VEX),(o128) |
| 713 | 16: pextrd/pextrq Ed/q,Vdq,Ib (66),(VEX),(o128) |
| 714 | 17: extractps Ed,Vdq,Ib (66),(VEX),(o128) |
| 715 | 18: vinsertf128 /r,Ib (66),(oVEX),(o256) |
| 716 | 19: vextractf128 /r,Ib (66),(oVEX),(o256) |
| 717 | 20: pinsrb Vdq,Rd/q/Mb,Ib (66),(VEX),(o128) |
| 718 | 21: insertps Vdq,Udq/Md,Ib (66),(VEX),(o128) |
| 719 | 22: pinsrd/pinsrq Vdq,Ed/q,Ib (66),(VEX),(o128) |
| 720 | 40: dpps Vdq,Wdq,Ib (66),(VEX) |
| 721 | 41: dppd Vdq,Wdq,Ib (66),(VEX),(o128) |
| 722 | 42: mpsadbw Vdq,Wdq,Ib (66),(VEX),(o128) |
| 723 | 44: pclmulq Vdq,Wdq,Ib (66),(VEX),(o128) |
| 724 | 4a: vblendvps /r,Ib (66),(oVEX) |
| 725 | 4b: vblendvpd /r,Ib (66),(oVEX) |
| 726 | 4c: vpblendvb /r,Ib (66),(oVEX),(o128) |
| 727 | 60: pcmpestrm Vdq,Wdq,Ib (66),(VEX),(o128) |
| 728 | 61: pcmpestri Vdq,Wdq,Ib (66),(VEX),(o128) |
| 729 | 62: pcmpistrm Vdq,Wdq,Ib (66),(VEX),(o128) |
| 730 | 63: pcmpistri Vdq,Wdq,Ib (66),(VEX),(o128) |
| 731 | df: aeskeygenassist Vdq,Wdq,Ib (66),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 732 | EndTable |
| 733 | |
| 734 | GrpTable: Grp1 |
| 735 | 0: ADD |
| 736 | 1: OR |
| 737 | 2: ADC |
| 738 | 3: SBB |
| 739 | 4: AND |
| 740 | 5: SUB |
| 741 | 6: XOR |
| 742 | 7: CMP |
| 743 | EndTable |
| 744 | |
| 745 | GrpTable: Grp1A |
| 746 | 0: POP |
| 747 | EndTable |
| 748 | |
| 749 | GrpTable: Grp2 |
| 750 | 0: ROL |
| 751 | 1: ROR |
| 752 | 2: RCL |
| 753 | 3: RCR |
| 754 | 4: SHL/SAL |
| 755 | 5: SHR |
| 756 | 6: |
| 757 | 7: SAR |
| 758 | EndTable |
| 759 | |
| 760 | GrpTable: Grp3_1 |
| 761 | 0: TEST Eb,Ib |
| 762 | 1: |
| 763 | 2: NOT Eb |
| 764 | 3: NEG Eb |
| 765 | 4: MUL AL,Eb |
| 766 | 5: IMUL AL,Eb |
| 767 | 6: DIV AL,Eb |
| 768 | 7: IDIV AL,Eb |
| 769 | EndTable |
| 770 | |
| 771 | GrpTable: Grp3_2 |
| 772 | 0: TEST Ev,Iz |
| 773 | 1: |
| 774 | 2: NOT Ev |
| 775 | 3: NEG Ev |
| 776 | 4: MUL rAX,Ev |
| 777 | 5: IMUL rAX,Ev |
| 778 | 6: DIV rAX,Ev |
| 779 | 7: IDIV rAX,Ev |
| 780 | EndTable |
| 781 | |
| 782 | GrpTable: Grp4 |
| 783 | 0: INC Eb |
| 784 | 1: DEC Eb |
| 785 | EndTable |
| 786 | |
| 787 | GrpTable: Grp5 |
| 788 | 0: INC Ev |
| 789 | 1: DEC Ev |
| 790 | 2: CALLN Ev (f64) |
| 791 | 3: CALLF Ep |
| 792 | 4: JMPN Ev (f64) |
| 793 | 5: JMPF Ep |
| 794 | 6: PUSH Ev (d64) |
| 795 | 7: |
| 796 | EndTable |
| 797 | |
| 798 | GrpTable: Grp6 |
| 799 | 0: SLDT Rv/Mw |
| 800 | 1: STR Rv/Mw |
| 801 | 2: LLDT Ew |
| 802 | 3: LTR Ew |
| 803 | 4: VERR Ew |
| 804 | 5: VERW Ew |
| 805 | EndTable |
| 806 | |
| 807 | GrpTable: Grp7 |
| 808 | 0: SGDT Ms | VMCALL (001),(11B) | VMLAUNCH (010),(11B) | VMRESUME (011),(11B) | VMXOFF (100),(11B) |
| 809 | 1: SIDT Ms | MONITOR (000),(11B) | MWAIT (001) |
| 810 | 2: LGDT Ms | XGETBV (000),(11B) | XSETBV (001),(11B) |
| 811 | 3: LIDT Ms |
| 812 | 4: SMSW Mw/Rv |
| 813 | 5: |
| 814 | 6: LMSW Ew |
| 815 | 7: INVLPG Mb | SWAPGS (o64),(000),(11B) | RDTSCP (001),(11B) |
| 816 | EndTable |
| 817 | |
| 818 | GrpTable: Grp8 |
| 819 | 4: BT |
| 820 | 5: BTS |
| 821 | 6: BTR |
| 822 | 7: BTC |
| 823 | EndTable |
| 824 | |
| 825 | GrpTable: Grp9 |
| 826 | 1: CMPXCHG8B/16B Mq/Mdq |
| 827 | 6: VMPTRLD Mq | VMCLEAR Mq (66) | VMXON Mq (F3) |
| 828 | 7: VMPTRST Mq |
| 829 | EndTable |
| 830 | |
| 831 | GrpTable: Grp10 |
| 832 | EndTable |
| 833 | |
| 834 | GrpTable: Grp11 |
| 835 | 0: MOV |
| 836 | EndTable |
| 837 | |
| 838 | GrpTable: Grp12 |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 839 | 2: psrlw Nq,Ib (11B) | psrlw Udq,Ib (66),(11B),(VEX),(o128) |
| 840 | 4: psraw Nq,Ib (11B) | psraw Udq,Ib (66),(11B),(VEX),(o128) |
| 841 | 6: psllw Nq,Ib (11B) | psllw Udq,Ib (66),(11B),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 842 | EndTable |
| 843 | |
| 844 | GrpTable: Grp13 |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 845 | 2: psrld Nq,Ib (11B) | psrld Udq,Ib (66),(11B),(VEX),(o128) |
| 846 | 4: psrad Nq,Ib (11B) | psrad Udq,Ib (66),(11B),(VEX),(o128) |
| 847 | 6: pslld Nq,Ib (11B) | pslld Udq,Ib (66),(11B),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 848 | EndTable |
| 849 | |
| 850 | GrpTable: Grp14 |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 851 | 2: psrlq Nq,Ib (11B) | psrlq Udq,Ib (66),(11B),(VEX),(o128) |
| 852 | 3: psrldq Udq,Ib (66),(11B),(VEX),(o128) |
| 853 | 6: psllq Nq,Ib (11B) | psllq Udq,Ib (66),(11B),(VEX),(o128) |
| 854 | 7: pslldq Udq,Ib (66),(11B),(VEX),(o128) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 855 | EndTable |
| 856 | |
| 857 | GrpTable: Grp15 |
| 858 | 0: fxsave |
| 859 | 1: fxstor |
Masami Hiramatsu | e0e492e | 2009-10-27 16:42:27 -0400 | [diff] [blame] | 860 | 2: ldmxcsr (VEX) |
| 861 | 3: stmxcsr (VEX) |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 862 | 4: XSAVE |
| 863 | 5: XRSTOR | lfence (11B) |
| 864 | 6: mfence (11B) |
| 865 | 7: clflush | sfence (11B) |
| 866 | EndTable |
| 867 | |
| 868 | GrpTable: Grp16 |
| 869 | 0: prefetch NTA |
| 870 | 1: prefetch T0 |
| 871 | 2: prefetch T1 |
| 872 | 3: prefetch T2 |
| 873 | EndTable |
| 874 | |
Masami Hiramatsu | d1baf5a | 2009-10-16 20:07:44 -0400 | [diff] [blame] | 875 | # AMD's Prefetch Group |
| 876 | GrpTable: GrpP |
| 877 | 0: PREFETCH |
| 878 | 1: PREFETCHW |
| 879 | EndTable |
| 880 | |
Masami Hiramatsu | c0b11d3 | 2009-09-25 11:20:38 -0700 | [diff] [blame] | 881 | GrpTable: GrpPDLK |
| 882 | 0: MONTMUL |
| 883 | 1: XSHA1 |
| 884 | 2: XSHA2 |
| 885 | EndTable |
| 886 | |
Masami Hiramatsu | eb13296 | 2009-08-13 16:34:13 -0400 | [diff] [blame] | 887 | GrpTable: GrpRNG |
| 888 | 0: xstore-rng |
| 889 | 1: xcrypt-ecb |
| 890 | 2: xcrypt-cbc |
| 891 | 4: xcrypt-cfb |
| 892 | 5: xcrypt-ofb |
| 893 | EndTable |