List of discontinued x86 instructions

From Wikipedia, the free encyclopedia

Instructions that have at some point been present as documented instructions in one or more x86 processors, but where the processor series containing the instructions are discontinued or superseded, with no known plans to reintroduce the instructions.

Intel instructions

Summarize
Perspective

i386 instructions

The following instructions were introduced in the Intel 80386, but later discontinued:

More information Instruction, Opcode ...
InstructionOpcodeDescriptionEventual fate
XBTS r, r/m0F A6 /rExtract Bit StringDiscontinued from revision B1 of the 80386 onwards.

Opcodes briefly reused for CMPXCHG in Intel 486 stepping A only − CMPXCHG was moved to different opcode from 486 stepping B onwards.

Opcodes later reused for VIA PadLock.

IBTS r/m, r0F A7 /rInsert Bit String
MOV r32,TRx0F 24 /rMove from test registerPresent in Intel 386 and 486 − not present in Intel Pentium or any later Intel CPUs (except they're present in the i486-derived Quark X1000).

Present in all Cyrix CPUs.

MOV TRx,r320F 26 /rMove to test register
Close

Itanium instructions

These instructions are only present in the x86 operation mode of early Intel Itanium processors with hardware support for x86. This support was added in "Merced" and removed in "Montecito", replaced with software emulation.

More information Instruction, Opcode ...
Instruction Opcode Description
JMPE r/m16
JMPE r/m32
0F 00 /6 Jump To Intel Itanium Instruction Set.[1]
JMPE disp16/32 0F B8 rel16/32
Close

MPX instructions

These instructions were introduced in 6th generation Intel Core "Skylake" CPUs. The last CPU generation to support them was the 9th generation Core "Coffee Lake" CPUs.

Intel MPX adds 4 new registers, BND0 to BND3, that each contains a pair of addresses. MPX also defines a bounds-table as a 2-level directory/table data structure in memory that contains sets of upper/lower bounds.

More information Instruction, Opcode ...
InstructionOpcode[a]Description
BNDMK b, m F3 0F 1B /r[b] Make lower and upper bound from memory address expression.

The lower bound is given by base component of address, the upper bound by 1-s complement of the address as a whole.

BNDCL b, r/m F3 0F 1A /r Check address against lower bound.

BNDCL, BNDCU and BNDCL all produce a #BR exception if the bounds check fails.

BNDCU b, r/m F2 0F 1A /r Check address against upper bound in 1's-complement form
BNDCN b, r/m F2 0F 1B /r Check address against upper bound.
BMDMOV b, b/m 66 0F 1A /r Move a pair of memory bounds to/from memory or between bounds-registers.
BNDMOV b/m, b 66 0F 1B /r
BNDLDX b,mib NP 0F 1A /r[c] Load bounds from the bounds-table, using address translation using an sib-addressing expression mib.[d]
BNDSTX mib,b NP 0F 1B /r[c] Store bounds into the bounds-table, using address translation using an sib-addressing expression mib.[d]
BND F2 Instruction prefix used with certain branch instructions[e] to indicate that they should not clear the bounds registers.
Close
  1. For all of the MPX instructions, 16-bit addressing is disallowed − this effectively makes the address-size override prefix 67h mandatory in 16-bit mode and prohibited in 32-bit mode. In 64-bit mode, the 67h prefix is ignored for the MPX instructions − address size is always 64-bit. These behaviors are unique to the MPX instructions.
  2. For BNDMK in 64-bit mode, RIP-relative addressing is not permitted and will cause #UD.
  3. The BNDLDX and BNDSTX instructions requires memory addressing modes that use the SIB byte − non-SIB addressing modes cause #UD.
  4. The BNDLDX and BNDSTX instructions produce a #BR exception if bounds directory entry is not valid (which prevents address translation).
  5. The branch instructions that can accept a BND prefix are the near forms of JMP (opcodes E9 and FF /4), CALL (opcodes E8 and FF /2), RET (opcodes C2 and C3), and the short/near forms of the Jcc instructions (opcodes 70..7F and 0F 80..8F). If the BNDPRESERVE config bit is not set, then executing any of these branch instructions without the BND prefix will clear all four bounds registers. (Other branch instructions − such as e.g. far jumps, short jumps (EB), LOOP, IRET etc − do not clear the bounds registers regardless of whether an F2h prefix is present or not.)

Hardware Lock Elision

The Hardware Lock Elision feature of Intel TSX is marked in the Intel SDM as removed from 2019 onwards.[2] This feature took the form of two instruction prefixes, XACQUIRE and XRELEASE, that could be attached to memory atomics/stores to elide the memory locking that they represent.

More information Instruction prefix, Opcode ...
Instruction prefixOpcodeDescription
XACQUIRE F2 Instruction prefix to indicate start of hardware lock elision, used with memory atomic instructions only (for other instructions, the F2 prefix may have other meanings). When used with such instructions, may start a transaction instead of performing the memory atomic operation.
XRELEASE F3 Instruction prefix to indicate end of hardware lock elision, used with memory atomic/store instructions only (for other instructions, the F3 prefix may have other meanings). When used with such instructions during hardware lock elision, will end the associated transaction instead of performing the store/atomic.
Close

VP2Intersect instructions

The VP2INTERSECT instructions (an AVX-512 subset) were introduced in Tiger Lake (11th generation mobile Core processors), but were never officially supported on any other Intel processors - they are now considered deprecated[3] and are listed in the Intel SDM as removed from 2023 onwards.[2]

As of July 2024, the VP2INTERSECT instructions have been re-introduced on AMD Zen 5 processors.[4]

More information Instruction, Opcode ...
Instruction Opcode Description
VP2INTERSECTD k1+1, xmm2, xmm3/m128/m32bcst
VP2INTERSECTD k1+1, ymm2, ymm3/m256/m32bcst
VP2INTERSECTD k1+1, zmm2, zmm3/m512/m32bcst
EVEX.NDS.F2.0F38.W0 68 /r Store, in an even/odd pair of mask registers, the indicators of the locations of value matches between 32-bit lanes in the two vector source arguments.
VP2INTERSECTQ k1+1, xmm2, xmm3/m128/m64bcst
VP2INTERSECTQ k1+1, ymm2, ymm3/m256/m64bcst
VP2INTERSECTQ k1+1, zmm2, zmm3/m512/m64bcst
EVEX.NDS.F2.0F38.W1 68 /r Store, in an even/odd pair of mask registers, the indicators of the locations of value matches between 64-bit lanes in the two vector source arguments.
Close

Instructions specific to Xeon Phi processors

"Knights Corner" instructions

The first generation Xeon Phi processors, codenamed "Knights Corner" (KNC), supported a large number of instructions that are not seen in any later x86 processor. An instruction reference is available[5] − the instructions/opcodes unique to KNC are the ones with VEX and MVEX prefixes (except for the KMOV, KNOT and KORTEST instructions − these are kept with the same opcodes and function in AVX-512, but with an added "W" appended to their instruction names).

Most of these KNC-unique instructions are similar but not identical to instructions in AVX-512 − later Xeon Phi processors replaced these instructions with AVX-512.

Early versions of AVX-512 avoided the instruction encodings used by KNC's MVEX prefix, however with the introduction of Intel APX (Advanced Performance Extensions) in 2023, some of the old KNC MVEX instruction encodings have been reused for new APX encodings. For example, both KNC and APX accept the instruction encoding 62 F1 79 48 6F 04 C1 as valid, but assign different meanings to it:

  • KNC: VMOVDQA32 zmm0, k0, xmmword ptr [rcx+rax*8]{uint8} - vector load with data conversion
  • APX: VMOVDQA32 zmm0, [rcx+r16*8] - vector load with one of the new APX extended-GPRs used as scaled index

"Knights Landing" and "Knights Mill" instructions

Some of the AVX-512 instructions in the Xeon Phi "Knights Landing" and later models belong to the AVX-512 subsets "AVX512ER", "AVX512_4FMAPS", "AVX512PF" and "AVX512_4VNNIW", all of which are unique to the Xeon Phi series of processors. The ER and PF subsets were introduced in "Knights Landing" − the 4FMAPS and 4VNNIW instructions were later added in "Knights Mill".

The ER and 4FMAPS instructions are floating-point arithmetic instructions that all follow a given pattern where:

  • EVEX.W is used to specify floating-point format (0=FP32, 1=FP64)
  • The bottom opcode bit is used to select between packed and scalar operation (0: packed, 1:scalar)
  • For a given operation, all the scalar/packed variants belong to the same AVX-512 subset.
  • The instructions all support result masking by opmask registers. The AVX512ER instructions also all support broadcast of memory operands.
  • The only supported vector width is 512 bits.
More information Reciprocal approximation with an accuracy of ...
Operation AVX-512
subset
Basic opcode FP32 instructions (W=0) FP64 instructions (W=1) RC/SAE
Packed Scalar Packed Scalar
Xeon Phi specific instructions (ER, 4FMAPS)
Reciprocal approximation with an accuracy of [a] EREVEX.66.0F38 (CA/CB) /rVRCP28PS z,z,z/m512VRCP28SS x,x,x/m32VRCP28PD z,z,z/m512VRCP28SD x,x,x/m64SAE
Reciprocal square root approximation with an accuracy of [a]EREVEX.66.0F38 (CC/CD) /rVRSQRT28PS z,z,z/m512VRSQRT28SS x,x,x/m32VRSQRT28PD z,z,z/m512VRSQRT28SD x,x,x/m64SAE
Exponential approximation with relative error[a]EREVEX.66.0F38 C8 /rVEXP2PS z,z/m512NoVEXP2PD z,z/m512NoSAE
Fused-multiply-add, 4 iterations4FMAPSEVEX.F2.0F38 (9A/9B) /rV4FMADDPS z,z+3,m128V4FMADDSS x,x+3,m128NoNo
Fused negate-multiply-add, 4 iterations4FMAPSEVEX.F2.0F38 (AA/AB) /rV4FNMADDPS z,z+3,m128V4FNMADDSS x,x+3,m128NoNo
Close
  1. For the AVX512ER instructions, a numerically exact reference is available as C code.[6]

The AVX512PF instructions are a set of 16 prefetch instructions. These instructions all use VSIB encoding, where a memory addressing mode using the SIB byte is required, and where the index part of the SIB byte is taken to index into the AVX512 vector register file rather than the GPR register file. The selected AVX512 vector register is then interpreted as a vector of indexes, causing the standard x86 base+index+displacement address calculation to be performed for each vector lane, causing one associated memory operation (prefetches in case of the AVX512PF instructions) to be performed for each active lane. The instruction encodings all follow a pattern where:

  • EVEX.W is used to specify format of the prefetchable data (0:FP32, 1:FP64)
  • The bottom bit of the opcode is used to indicate whether the AVX512 index register is considered a vector of sixteen signed 32-bit indexes (bit 0 not set) or eight signed 64-bit indexes (bit 0 set)
  • The instructions all support operation masking by opmask registers.
  • The only supported vector width is 512 bits.
More information Operation, Basic opcode ...
Operation Basic opcode 32-bit indexes (opcode C6) 64-bit indexes (opcode C7)
FP32 prefetch (W=0) FP64 prefetch (W=1) FP32 prefetch (W=0) FP64 prefetch (W=1)
Prefetch into L1 cache (T0 hint) EVEX.66.0F38 (C6/C7) /1 /vsibVGATHERPF0DPS vm32z {k1}VGATHERPF0DPD vm32y {k1}VGATHERPF0QPS vm64z {k1}VGATHERPF0QPD vm64y {k1}
Prefetch into L2 cache (T1 hint) EVEX.66.0F38 (C6/C7) /2 /vsibVGATHERPF1DPS vm32z {k1}VGATHERPF1DPD vm32y {k1}VGATHERPF1QPS vm64z {k1}VGATHERPF1QPD vm64y {k1}
Prefetch into L1 cache (T0 hint) with intent to write EVEX.66.0F38 (C6/C7) /5 /vsibVSCATTERPF0DPS vm32z {k1}VSCATTERPF0DPD vm32y {k1}VSCATTERPF0QPS vm64z {k1}VSCATTERPF0QPD vm64y {k1}
Prefetch into L2 cache (T1 hint) with intent to write EVEX.66.0F38 (C6/C7) /6 /vsibVSCATTERPF1DPS vm32z {k1}VSCATTERPF1DPD vm32y {k1}VSCATTERPF1QPS vm64z {k1}VSCATTERPF1QPD vm64y {k1}
Close

The AVX512_4VNNIW instructions read a 128-bit data item from memory, containing 4 two-component vectors (each component being signed 16-bit). Then, for each of 4 consecutive AVX-512 registers, they will, for each 32-bit lane, interpret the lane as a two-component vector (signed 16-bit) and perform a dot-product with the corresponding two-component vector that was read from memory (the first two-component vector from memory is used for the first AVX-512 source register, and so on). These results are then accumulated into a destination vector register.

More information Instruction, Opcode ...
Instruction Opcode Description
VP4DPWSSD zmm1{k1}{z}, zmm2+3, m128 EVEX.512.F2.0F38.W0 52 /r Dot-product of signed words with dword accumulation, 4 iterations
VP4DPWSSDS zmm1{k1}{z}, zmm2+3, m128 EVEX.512.F2.0F38.W0 53 /r Dot-product of signed words with dword accumulation and saturation, 4 iterations
Close

Xeon Phi processors (from Knights Landing onwards) also featured the PREFETCHWT1 m8 instruction (opcode 0F 0D /2, prefetch into L2 cache with intent to write) − these were the only Intel CPUs to officially support this instruction, but it continues to be supported on some non-Intel processors (e.g. Zhaoxin YongFeng).

AMD instructions

Summarize
Perspective

Am386 SMM instructions

A handful of instructions to support System Management Mode were introduced in the Am386SXLV and Am386DXLV processors.[7][8] They were also present in the later Am486SXLV/DXLV and Elan SC300/310 processors.[9]

The SMM functionality of these processors was implemented using Intel ICE microcode without a valid license, resulting in a lawsuit that AMD lost in late 1994.[10] As a result of this loss, the ICE microcode was removed from all later AMD CPUs, and the SMM instructions removed with it.

More information Instruction, Opcode ...
InstructionOpcodeDescription
SMIF1Call SMM interrupt handler (only if DR7 bit 12 is set; not available on Am486SXLV/DXLV[11])
UMOV r/m8, r80F 10 /rMove data between registers and main system memory
UMOV r/m, r16/320F 11 /r
UMOV r8, r/m80F 12 /r
UMOV r16/32, r/m0F 13 /r
RES30F 07Return from SMM interrupt handler (Am386SXLV/DXLV only)
Takes a pointer in ES:EDI to a processor save state to resume from − this save state has format nearly identical to that of the undocumented Intel 386 LOADALL instruction.[12]
RES40F 07Return from SMM interrupt handler (Am486SXLV/DXLV only).
Similar to RES3, but with a different save state format.[13]
Close

These SMM instructions were also present on the IBM 386SLC and its derivatives (albeit with the LOADALL-like SMM return opcode 0F 07 named ICERET),[12][14][11] as well as on the UMC U5S processor.[15]

3DNow! instructions

The 3DNow! instruction set extension was introduced in the AMD K6-2, mainly adding support for floating-point SIMD instructions using the MMX registers (two FP32 components in a 64-bit vector register). The instructions were mainly promoted by AMD, but were supported on some non-AMD CPUs as well. The processors supporting 3DNow! were:

  • AMD K6-2, K6-III, and all processors based on the K7, K8 and K10 microarchitectures. (Later AMD microarchitectures such as Bulldozer, Bobcat and Zen do not support 3DNow!)
  • IDT WinChip 2 and 3
  • VIA Cyrix III (both "Joshua" and "Samuel" variants), and the "Samuel" and "Ezra" revisions of VIA C3. (Later VIA CPUs, from C3 "Nehemiah" onwards, dropped 3DNow! in favor of SSE.)
  • National Semiconductor Geode GX2; AMD Geode GX and LX.
More information with ...
Close
  1. The 3DNow! precision requirements can be fulfilled in several different ways, for example:
    • On AMD K6-2, the PFRCPIT1, PFRSQIT1 and PFRCPIT2 instructions would perform various parts of a Newton-Raphson iteration to improve the precision of a low-precision initial result from PFRCP/PFRSQRT.[17]
    • On AMD Geode LX, the PFRCP and PFRSQRT instructions would instead compute their results with full 24-bit precision − this made it possible to turn the PFRCPIT1, PFRSQIT1 and PFRCPIT2 instructions into pure data movement instructions, performing the same operation as MOVQ.[18]
  2. The 3DNow! PMULHRW instruction has the same mnemonic as the Cyrix EMMI PMULHRW instruction, however its opcode and function differ (the EMMI instruction right-shifts its multiply-result by 15 bits, while the 3DNow! instruction right-shifts by 16 bits).

    Some assemblers/disassemblers, such as NASM, resolve this ambiguity by using the mnemonic PMULHRWA for the 3DNow! instruction and PMULHRWC for the EMMI instruction.

  3. The FEMMS instruction differs from the standard MMX EMMS instruction in that FEMMS makes the FP/MMX register contents undefined after the instruction is executed.

3DNow! also introduced a couple of prefetch instructions: PREFETCH m8 (opcode 0F 0D /0) and PREFETCHW m8 (opcode 0F 0D /1). These instructions, unlike the rest of 3DNow!, are not discontinued but continue to be supported on modern AMD CPUs. The PREFETCHW instruction is also supported on Intel CPUs starting with 65 nm Pentium 4,[19] albeit executed as NOP until Broadwell.

3DNow+ instructions added with Athlon and K6-2+

More information Instruction, Opcode ...
InstructionOpcodeInstruction description
PF2IW mm1,mm2/m64 0F 0F /r 1C Packed 32-bit floating-point to 16-bit signed integer conversion, with round-to-zero[a]
PI2FW mm1,mm2/m64 0F 0F /r 0C Packed 16-bit signed integer to 32-bit floating-point conversion[a]
PSWAPD mm1,mm2/m64 0F 0F /r BB[b] Packed Swap Doubleword:
dst[31:0] <- src[63:32]
dst[63:32] <- src[31:0]
PFNACC mm1,mm2/m64 0F 0F /r 8A Packed Floating-Point Negative Accumulate:
dst[31:0] <- dst[31:0] − dst[63:32]
dst[63:32] <- src[31:0] − src[63:32]
PFPNACC mm1,mm2/m64 0F 0F /r 8E Packed Floating-Point Positive-Negative Accumulate:
dst[31:0] <- dst[31:0] − dst[63:32]
dst[63:32] <- src[31:0] + src[63:32]
Close
  1. The PF2IW and PI2FW instructions also existed as undocumented instructions on the original K6-2.

    The undocumented variant of PF2IW in K6-2 would set the top 16 bits of each 32-bit result lane to all-0s, while the documented variant in later processors would sign-extend the 16-bit result to 32 bits.[20][21]

  2. The PSWAPD instruction uses same opcode as the older undocumented K6-2 PSWAPW instruction.[21]

3DNow! instructions specific to Geode GX and LX

More information Instruction, Opcode ...
InstructionOpcodeInstruction description
PFRCPV mm1,mm2/m640F 0F /r 86Packed Floating-point Reciprocal Approximation
PFRSQRTV mm1,mm2/m640F 0F /r 87Packed Floating-point Reciprocal Square Root Approximation
Close

SSE5 derived instructions

SSE5 was a proposed SSE extension by AMD, using a new "DREX" instruction encoding to add support for new 3-operand and 4-operand instructions to SSE.[22] The bundle did not include the full set of Intel's SSE4 instructions, making it a competitor to SSE4 rather than a successor.

AMD chose not to implement SSE5 as originally proposed − it was instead reworked into FMA4 and XOP,[23] which provided similar functionality but with a quite different instruction encoding − using the VEX prefix for the FMA4 instructions and the new VEX-like XOP prefix for most of the remaining instructions.

XOP instructions

Introduced with the Bulldozer processor core, removed again from Zen (microarchitecture) onward.

A revision of most of the SSE5 instruction set.

The XOP instructions mostly make use of the XOP prefix, which is a 3-byte prefix with the following layout:

More information Byte 0, Byte 1 ...
Byte 0 Byte 1 Byte 2
Bits 7:0 76543210 76543210
Usage 8Fh mmmmm Wv̅v̅v̅v̅Lpp
Close

where:

  • Overlines indicate inverted bits.
  • The R/X/B bits are argument extension bits similar to the RXB bits of the REX prefix.
  • mmmmm is an opcode-map specifier. While capable of encoding values from 8 to 31 (values 0 to 7 map to ModR/M-encoded variants of the older POP instruction, making them unusable for XOP), only maps 8, 9 and 0Ah were ever used: map 8 for instructions that take an 8-bit immediate, map 9 for instructions that don't take an immediate, and map 0Ah for instructions that take a 32-bit immediate.
  • W is used in a couple of different ways:
    • For XOP vector instructions, W is used to swap the last two vector source arguments to the instruction. For instructions that allow W=1, encodings with W=0 allow the second-to-last vector argument to be a memory argument, while encodings with W=1 allow the last vector argument to be a memory argument. For instructions that don't allow their last two vector arguments to be swapped, W is required to be 0.
    • For XOP-encoded integer-register instructions (the TBM and LWP instruction set extensions, see below), W is used for operand size. (0=32-bit, 1=64-bit)
  • vvvv is an extra source register argument, normally the first non-r/m source argument for instructions with ≥3 register arguments.
  • L is a vector length specifier. L=1 indicates 256-bit operation, L=0 indicates scalar or 128-bit operation.
  • pp is an embedded prefix − nominally 0/1/2/3=none/66h/F2h/F3h, but only 0 was ever used with any of the instructions defined for the XOP prefix.

The XOP instructions encoded with the XOP prefix are as follows:

More information Instruction description, Instruction mnemonics ...
Close
  1. For each VPCOM* instruction, a series of alias mnemonics are available for the instruction, one for each of the eight comparison functions encodable in the imm8 argument. These alias mnemonics specify the comparison to perform after the "VPCOM" part of the mnemonic. For example:
    • VPCOMEQB xmm1,xmm2,xmm3 is an alias for VPCOMB xmm1,xmm2,xmm3,4
    • VPCOMFALSEUQ xmm1,xmm2,[ebx] is an alias for VPCOMUQ xmm1,xmm2,[ebx],6

XOP also included two vector instructions that used the VEX prefix instead of the XOP prefix:

More information Instruction description, Instruction mnemonics ...
Instruction description Instruction mnemonics Opcode W=1
swap
allowed
L=1
(256b)
allowed
Permute two-source double-precision floating-point values. VPERMIL2PD ymm1,ymm2,ymm3/m256,ymm4,imm4 VEX.NP.0F3A 49 /r /is4 YesYes
Permute two-source single-precision floating-point values. VPERMIL2PS ymm1,ymm2,ymm3/m256,ymm4,imm4 VEX.NP.0F3A 48 /r /is4 YesYes
Close

The instructions VPERMIL2PD and VPERMIL2PS were originally defined by Intel in early drafts of the AVX specification[24] − they were removed in later drafts[25][26] and were never implemented in any Intel processor. They were, however, implemented by AMD, who designated them as being a part of the XOP instruction set extension. (Like the other parts of XOP, they've been removed in AMD Zen.)

FMA4 instructions

Supported in AMD processors starting with the Bulldozer architecture, removed in Zen. Not supported by any Intel chip as of 2023.

Fused multiply-add with four operands. FMA4 was realized in hardware before FMA3.

More information Instruction, Opcode ...
InstructionOpcodeMeaningNotes
VFMADDPD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 69 /r /is4Fused Multiply-Add of Packed Double-Precision Floating-Point Values
VFMADDPS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 68 /r /is4Fused Multiply-Add of Packed Single-Precision Floating-Point Values
VFMADDSD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 6B /r /is4Fused Multiply-Add of Scalar Double-Precision Floating-Point Values
VFMADDSS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 6A /r /is4Fused Multiply-Add of Scalar Single-Precision Floating-Point Values
VFMADDSUBPD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 5D /r /is4Fused Multiply-Alternating Add/Subtract of Packed Double-Precision Floating-Point Values
VFMADDSUBPS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 5C /r /is4Fused Multiply-Alternating Add/Subtract of Packed Single-Precision Floating-Point Values
VFMSUBADDPD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 5F /r /is4Fused Multiply-Alternating Subtract/Add of Packed Double-Precision Floating-Point Values
VFMSUBADDPS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 5E /r /is4Fused Multiply-Alternating Subtract/Add of Packed Single-Precision Floating-Point Values
VFMSUBPD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 6D /r /is4Fused Multiply-Subtract of Packed Double-Precision Floating-Point Values
VFMSUBPS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 6C /r /is4Fused Multiply-Subtract of Packed Single-Precision Floating-Point Values
VFMSUBSD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 6F /r /is4Fused Multiply-Subtract of Scalar Double-Precision Floating-Point Values
VFMSUBSS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 6E /r /is4Fused Multiply-Subtract of Scalar Single-Precision Floating-Point Values
VFNMADDPD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 79 /r /is4Fused Negative Multiply-Add of Packed Double-Precision Floating-Point Values
VFNMADDPS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 78 /r /is4Fused Negative Multiply-Add of Packed Single-Precision Floating-Point Values
VFNMADDSD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 7B /r /is4Fused Negative Multiply-Add of Scalar Double-Precision Floating-Point Values
VFNMADDSS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 7A /r /is4Fused Negative Multiply-Add of Scalar Single-Precision Floating-Point Values
VFNMSUBPD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 7D /r /is4Fused Negative Multiply-Subtract of Packed Double-Precision Floating-Point Values
VFNMSUBPS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 7C /r /is4Fused Negative Multiply-Subtract of Packed Single-Precision Floating-Point Values
VFNMSUBSD xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 7F /r /is4Fused Negative Multiply-Subtract of Scalar Double-Precision Floating-Point Values
VFNMSUBSS xmm0, xmm1, xmm2, xmm3C4E3 WvvvvL01 7E /r /is4Fused Negative Multiply-Subtract of Scalar Single-Precision Floating-Point Values
Close

Trailing Bit Manipulation Instructions

AMD introduced TBM together with BMI1 in its Piledriver[27] line of processors; later AMD Jaguar and Zen-based processors do not support TBM.[28] No Intel processors (as of 2023) support TBM.

The TBM instructions are all encoded using the XOP prefix. They are all available in 32-bit and 64-bit forms, selected with the XOP.W bit (0=32bit, 1=64bit). (XOP.W is ignored outside 64-bit mode.) Like all instructions encoded with VEX/XOP prefixes, they are unavailable in Real Mode and Virtual-8086 mode.

More information Instruction, Opcode ...
Instruction Opcode Description[29] Equivalent C expression[30]
BEXTR reg,r/m,imm32 XOP.A 10 /r imm32 Bit field extract (immediate form)[a]

The imm32 is interpreted as follows:

  • Bit 7:0 : start position
  • Bit 15:8 : length
  • Bit 31:16 : ignored
(src >> start) & ((1 << len) − 1)
BLCFILL reg,r/m XOP.9 01 /1 Fill from lowest clear bit x & (x + 1)
BLCI reg,r/m XOP.9 02 /6 Isolate lowest clear bit x | ~(x + 1)
BLCIC reg,r/m XOP.9 01 /5 Isolate lowest clear bit and complement ~x & (x + 1)
BLCMSK reg,r/m XOP.9 02 /1 Mask from lowest clear bit x ^ (x + 1)
BLCS reg,r/m XOP.9 01 /3 Set lowest clear bit x | (x + 1)
BLSFILL reg,r/m XOP.9 01 /2 Fill from lowest set bit x | (x − 1)
BLSIC reg,r/m XOP.9 01 /6 Isolate lowest set bit and complement ~x | (x − 1)
T1MSKC reg,r/m XOP.9 01 /7 Inverse mask from trailing ones ~x | (x + 1)
TZMSK reg,r/m XOP.9 01 /4 Mask from trailing zeros ~x & (x − 1)
Close
  1. For BEXTR, a register form is available as part of BMI1.

Lightweight Profiling instructions

The AMD Lightweight Profiling (LWP) feature was introduced in AMD Bulldozer and removed in AMD Zen. On all supported CPUs, the latest available microcode updates have disabled LWP due to Spectre mitigations.[31]

These instructions are available in Ring 3, but not available in Real Mode and Virtual-8086 mode. All of them use the XOP prefix.

More information Instruction, Opcode ...
Instruction Opcode Description
LLWPCB r32/64 XOP.9 12 /0 Load LWPCB (Lightweight Profiling Control Block) address.[a]

Loading an address of 0 disables LWP. Loading a nonzero address will cause the CPU to perform validation of the specified LWPCB, then enable LWP if the validation passed. If LWP was already enabled, state for the previous LWPCB is flushed to memory.

SLWPCB r32/64 XOP.9 12 /1 Store LWPCB address[a] to register, and flush LWP state to memory.

If LWP is not enabled, the stored address is 0.

LWPINS r32/64, r/m32, imm32 XOP.A 12 /0 imm32 Insert user event record with EventID=255 in LWP ring buffer. The arguments are inserted into the event record as follows:
  • The first argument is stored in bytes 23:16 (zero-extended if 32-bit)
  • The second argument is stored in bytes 7:4
  • The low 16 bits of the imm32 are stored in bytes 3:2 (the high 16 bits are ignored)

The LWPINS instruction sets CF=1 if LWP is enabled and the ring buffer is full, CF=0 otherwise.

LWPVAL r32/64, r/m32, imm32 XOP.A 12 /1 imm32 Decrement the event counter associated with the programmed value sample event. If the resulting counter value ends up negative, insert an event record with EventID=1 in LWP ring buffer. (The instruction arguments are inserted in this record in the same way as for LWPINS.)

Executes as NOP if LWP is not enabled or if the event counter is not enabled. If no event record is inserted, then the second argument (which may be a memory argument) is not accessed.

Close
  1. The address used by LLWPCB and SLWPCB is an effective-address, specified relative to the DS: segment base address. LLWPCB converts this effective-address to a linear-address by adding the DS base address to it, and SLWPCB converts it back by subtracting the DS base address. Changing the DS base address while LWP is enabled will thereby cause SLWPCB to return a different address than what was specified to LLWPCB, and may also cause XSAVE to fail to save LWP state properly.

Instructions from other vendors

Summarize
Perspective

Instructions specific to NEC V-series processors

These instructions are specific to the NEC V20/V30 CPUs and their successors, and do not appear in any non-NEC CPUs. Many of their opcodes have been reassigned to other instructions in later non-NEC CPUs.

More information Instruction, Opcode ...
Close
  1. The Intel 8080 emulation mode of NEC V20/V30/V40/V50 supports the following NEC-specific instructions in addition to the basic 8080 instruction set:
    More information Instruction, Opcode ...
    InstructionOpcodeDescription
    CALLN imm8ED ED ibCall to native mode
    RETEMED FDReturn from 8080 emulation mode
    Close

Instructions specific to Cyrix and Geode CPUs

These instructions are present in Cyrix CPUs as well as NatSemi/AMD Geode CPUs derived from Cyrix microarchitectures (Geode GX and LX, but not NX). They are also present in Cyrix manufacturing partner CPUs from IBM, ST and TI, as well as the VIA Cyrix III ("Joshua" core only, not "Samuel") and a few SoCs such as STPC ATLAS and ZFMicro ZFx86.[43] Many of these opcodes have been reassigned to other instructions in later non-Cyrix CPUs.

More information Instruction, Opcode ...
Instruction Opcode Description Available on
SVDC m80,sreg 0F 78 /r Save segment register and descriptor to memory as a 10-byte data structure.

The first 8 bytes are the descriptor, the last two bytes are the selector.[44]

System Management Mode instructions.[a]

Not present on stepping A of Cx486SLC and Cx486DLC.[45]

Present on Cx486SLC/e[46] and all later Cyrix CPUs.

Present on all Cyrix-derived Geode CPUs.

RSDC sreg,m80[b] 0F 79 /r Restore segment register and descriptor from memory
SVLDT m80 0F 7A /0 Save LDTR and descriptor
RSLDT m80 0F 7B /0 Restore LDTR and descriptor
SVTS m80 0F 7C /0 Save TSR and descriptor
RSTS m80 0F 7D /0 Restore TSR and descriptor
SMINT[c] 0F 7E System management software interrupt.

Uses 0F 7E encoding on Cyrix 486, 5x86, 6x86 and ZFx86.

Uses 0F 38 encoding on Cyrix 6x86MX, MII, MediaGX and Geode.

Cyrix 486S[11] and later processors - not available on older Cyrix 486SLC/DLC/SRx2/DRx2 processors.

Not available on any Ti486 processors.

0F 38
RDSHR r/m32 0F 36 /0[d] Read SMM Header Pointer Register Cyrix 6x86MX[48] and MII

VIA Cyrix III[51]

WRSHR r/m32 0F 37 /0[d] Write SMM Header Pointer Register
BB0_RESET 0F 3A Reset BLT Buffer Pointer 0 to base Cyrix MediaGX and MediaGXm[52]

NatSemi Geode GXm, GXLV, GX1

BB1_RESET 0F 3B Reset BLT Buffer Pointer 1 to base
CPU_WRITE 0F 3C Write to CPU internal special register (EBX=register-index, EAX=data)
CPU_READ 0F 3D Read from CPU internal special register (EBX=register-index, EAX=data)
DMINT 0F 39 Debug Management Mode Interrupt NatSemi Geode GX2

AMD Geode GX, LX[47]

RDM 0F 3A Return from Debug Management Mode
Close
  1. The Cyrix SMM instructions also include RSM (0F AA; Return from System Management mode), however, RSM is not a Cyrix-specific instruction, and it continues to exist in modern non-Cyrix x86 processors.
  2. RSDC with CS as a destination register is only supported on NatSemi Geode GX2 and AMD Geode GX/LX[47] - on other processors, it causes #UD.
  3. Some assemblers/disassemblers, such as NASM, use the instruction mnemonic SMINTOLD for the 0F 7E encoding.
  4. For the RDSHR and WRSHR instructions, Cyrix's documentation[48] specifies that the instruction accepts a ModR/M byte but does not specify the encoding of the ModR/M byte's reg field. NASM v0.98.31 and later uses /0 for these instructions,[49] while sandpile.org's opcode tables[50] indicate that the reg field is ignored for these instructions.

Cyrix EMMI instructions

These instructions were introduced in the Cyrix 6x86MX and MII processors, and were also present in the MediaGXm and Geode GX1[53] processors. (In later non-Cyrix processors, all of their opcodes have been used for SSE or SSE2 instructions.)

These instructions are integer SIMD instructions acting on 64-bit vectors in MMX registers or memory. Each instruction takes two explicit operands, where the first one is an MMX register operand and the second one is either a memory operand or a second MMX register. In addition, several of the instructions take an implied operand, which is an MMX register implied from the first operand as follows:

More information First explicit operand, Implied operand ...
First explicit operand mm0mm1mm2mm3mm4mm5mm6mm7
Implied operand mm1mm0mm3mm2mm5mm4mm7mm6
Close

In the instruction descriptions in the below table, arg1 and arg2 refer to the two explicit operands of the instruction, and imp to the implied operand.

More information Instruction, Opcode ...
InstructionOpcodeDescription
PAVEB mm,mm/m640F 50 /rPacked average bytes:[a]
arg1 <- (arg1+arg2) >> 1
PADDSIW mm,mm/m640F 51 /rPacked add signed words with saturation, using implied destination:
imp <- saturate_s16(arg1+arg2)
PMAGW mm,mm/m640F 52 /rPacked signed word magnitude maximum value:
if (abs(arg2) > abs(arg1)) then arg1 <- arg2
PDISTIB mm,m64[b]0F 54 /rPacked unsigned byte distance and accumulate to implied destination, with saturation:
imp <- saturate_u8(imp + (abs(arg1-arg2)))
PSUBSIW mm,mm/m640F 55 /rPacked subtract signed words with saturation, using implied destination:
imp <- saturate_s16(arg1-arg2)
PMULHRW mm,mm/m64,[c]
PMULHRWC mm,mm/m64
0F 59 /rPacked signed word multiply high with rounding:
arg1 <- (arg1*arg2+0x4000)>>15
PMULHRIW mm,mm/m640F 5D /rPacked signed word multiply high with rounding and implied destination:
imp <- (arg1*arg2+0x4000)>>15
PMACHRIW mm,m64[b]0F 5E /rPacked signed word multiply high with rounding and accumulation to implied destination:
imp <- imp + ((arg1*arg2+0x4000)>>15)
PMVZB mm,m64[b]0F 58 /rif (imp == 0) then arg1 <- arg2 Packed conditional load from memory to MMX register.

Condition is evaluated on a per-byte-lane basis, by comparing byte lanes in the implied source to zero (with signed compare) − if the comparison passes, then the corresponding destination lane is loaded from memory, otherwise it keeps its original value.

PMVNZB mm,m64[b]0F 5A /rif (imp != 0) then arg1 <- arg2
PMVLZB mm,m64[b]0F 5B /rif (imp <  0) then arg1 <- arg2
PMVGEZB mm,m64[b]0F 5C /rif (imp >= 0) then arg1 <- arg2
Close
  1. Implementations differ on whether the PAVEB instruction treats the bytes as signed or unsigned.[54]
  2. For PDISTIB, PMACHRIW and the PMV* instructions, the second explicit operand is required to be a memory operand − register operands are not supported.
  3. The Cyrix EMMI PMULHRW instruction has the same mnemonic as the 3DNow! PMULHRW instruction, however its opcode and function differ (the EMMI instruction right-shifts its multiply-result by 15 bits, while the 3DNow! instruction right-shifts by 16 bits).

    Some assemblers/disassemblers, such as NASM, resolve this ambiguity by using the mnemonic PMULHRWA for the 3DNow! instruction and PMULHRWC for the EMMI instruction.

Instructions specific to VIA Technologies CPUs

All VIA C3 processors support the VIA AIS (Alternate Instruction Set). The x86 instructions present in these processors to support AIS are:

More information Instruction, Opcode ...
InstructionOpcodeDescription
JMPAI EAX0F 3F[55]Near Jump to address in EAX, and enter Alternate Instruction mode.
AI uop32 8D 84 00 imm32[55]Alternate instruction wrapper opcode ("Samuel"/"Ezra" variants of C3 - repurposes the instruction encoding for LEA EAX,[EAX+EAX+disp32])

32-bit immediate is treated as a 32-bit instruction of the RISC-like Alternate Instruction Set. An instruction set reference is available.[56]

62 80 imm32[57]Alternate instruction wrapper opcode ("Nehemiah" variants of C3 - repurposes the instruction encoding for BOUND EAX,[EAX+disp32])
Close

These instructions are not present in VIA C7 or any later VIA processor.

Instructions specific to Chips and Technologies CPUs

The C&T F8680 PC/Chip is a system-on-a-chip featuring an 80186-compatible CPU core, with a few additional instructions to support the F8680-specific "SuperState R"[58] supervisor/system-management feature. Some of the added instructions for "SuperState R" are:[59]

More information Instruction, Opcode ...
InstructionOpcodeDescription
LFEAT AXFE F8Load datum into F8680 "CREG" configuration register (AH=register-index, AL=datum)[60]
STFEAT AL,imm8FE F0 ibRead F8680 status register into AL (imm8=register-index)
Close

C&T also developed a 386-compatible processor known as the Super386. This processor supports, in addition to the basic Intel 386 instruction set, a number of instructions to support the Super386-specific "SuperState V" system-management feature. The added instructions for "SuperState V" are:[7]

More information Instruction, Opcode ...
InstructionOpcodeDescription
SCALL r/m0F 18 /0Call SMM interrupt handler[61][62]
SRET0F 19Return from SMM interrupt handler
SRESUME0F 1AReturn from SMM with interrupts disabled for one instruction
SVECTOR0F 1BExit from SMM and issue a shutdown cycle
EPIC0F 1ELoad one of the six interrupt or I/O traps
RARF10F 3CRead from bank 1 of the register file (includes visible and invisible CPU registers)
RARF20F 3DRead from bank 2 of the register file
RARF30F 3ERead from bank 3 of the register file
LTLB0F F0Load TLB with page table entry
RCT0F F1Read cache tag
WCT0F F2Write cache tag
RCD0F F3Read cache data
WCD0F F4Write cache data
RTLBPA0F F5Read TLB data (physical address)
RTLBLA0F F6Read TLB tag (linear address)
LCFG0F F7Load configuration register
SCFG0F F8Store configuration register
RGPR0F F9Read general-purpose register or any bank of register file
RARF00F FARead from bank 0 of the register file
RARFE0F FBRead from extra bank of the register file
WGPR0F FDWrite general-purpose register or any bank of register file
WARFE0F FEWrite extra bank of the register file
Close

Instructions specific to ALi/Nvidia/DM&P M6117 MCUs

The M6117 series of embedded microcontrollers feature an Intel 386SX compatible CPU core derived from V.M. Technology (VMT) VM386SX+ processor. VMT VM386SX+ adds a few processor specific additions to the Intel 386 instruction set. The ones documented for DM&P M6117D are:[63]

More information Instruction, Opcode ...
InstructionOpcodeDescription
BRKPMF1System management interrupt − enters "hyper state mode"
RETPMD6 E6Return from "hyper state mode"
LDUSR UGRS,EAXD6 CA 03 A0Set page address of SMI entry point
(mnemonic not listed)D6 C8 03 A0Read page address of SMI entry point
MOV PWRCR,EAXD6 FA 03 02Write to power control register
Close

Instructions present in specific 80387 clones

Summarize
Perspective

Several 80387-class floating-point coprocessors provided extra instructions in addition to the standard 80387 ones − none of these are supported in later processors:

More information Instruction, Opcode ...
Instruction Opcode Description Available on
FRSTPM DB F4[64]

or

DB E5[12]

FPU Reset Protected Mode.

Instruction to signal to the FPU that the main CPU is exiting protected mode, similar to how the FSETPM instruction is used to signal to the FPU that the CPU is entering protected mode.

Different sources provide different encodings for this instruction.

Intel 287XL
FNSTDW AX DF E1 Store FPU Device Word to AX Intel 387SL[12][65]
FNSTSG AX DF E2 Store FPU Signature Register to AX[a]
FSBP0 DB E8 Select Coprocessor Register Bank 0 IIT 2c87, 3c87[12][67]
FSBP1 DB EB Select Coprocessor Register Bank 1
FSBP2 DB EA Select Coprocessor Register Bank 2
FSBP3 DB E9[68] Select Coprocessor Register Bank 3 (undocumented)
F4X4,

FMUL4X4

DB F1 Multiply 4-component vector with 4x4 matrix. For proper operation, the matrix must be preloaded into Coprocessor Register banks 1 and 2 (unique to IIT FPUs), and the vector must be loaded into Coprocessor Register Bank 0. Example code is available.[67][69]
FTSTP D9 E6 Equivalent to FTST followed by a stack pop. Cyrix EMC87, 83s87, 83d87, 387+[69][12][70]
FRINT2 DB FC Round st(0) to integer, with round-to-nearest ties-away-from-zero rounding.[70]
FRICHOP DD FC Round st(0) to integer, with round-to-zero rounding.
FRINEAR DF FC Round st(0) to integer, with round-to-nearest-even rounding.[70]
Close
  1. The FNSTSG AX instruction can be executed not just on the Intel 387SL FPU but on the Intel 387SX as well - executing the instruction immediately after an FNINIT will cause the instruction to return 0000h on 387SX, but a nonzero signature value on the 387SL.[66]

See also

References

Loading related searches...

Wikiwand - on

Seamless Wikipedia browsing. On steroids.