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