Instruction
SHL
Shifts an operand left, filling with zeros (SAL is the same instruction); APX adds three-operand forms and forms that leave the flags unchanged.
- Extensions
- Mnemonics
- SHL, SAL
- Forms
- 60 (24 Legacy, 36 EVEX)
- Data
- Intel XED v2026.08.23
SHL shifts its operand left and fills the vacated low bits with
zeros, multiplying by a power of two modulo the operand’s width. SAL is
the same instruction under a second name: a left shift is the same
for signed and unsigned numbers, unlike the right shifts
SHR and SAR. The count is an immediate,
the constant 1 or CL; SHLX from BMI2 takes it from any
register, writes a separate destination and leaves the flags alone,
and GCC 14 and Clang 23 at -O2 use it for x << n when allowed BMI2.
The count is masked
The processor uses only the low 5 bits of the count, or the low 6 for
a 64-bit operand. So shl eax, cl with CL = 32 leaves EAX and the
flags as they were (though, as a 32-bit write, it still clears bits
63:32 of RAX), and with CL = 33 it shifts by 1. C leaves
x << n undefined when n is at least the width of x, so compilers
emit a plain shift; and since the processor masks anyway, both compile
x << (n & 63) for a 64-bit x to a lone shl rax, cl, without the
AND (GCC prints it as sal).
For 8- and 16-bit operands the count is still masked to 5 bits, not to the operand’s width, so a byte shifted by 8 to 31 becomes 0. The vector shifts differ again: PSLLD and its kin do not mask their count at all, and turn every element to 0 once the count reaches the element’s width.
The flags after a shift
CF receives the last bit shifted out, which makes shl by 1 followed
by JC a test of the top bit. OF is defined for a count of 1 only, so
the flags cannot tell whether a longer shift lost significant bits;
the flags table and its note show where Intel’s manual and XED
disagree on the details.
The /6 encodings
Besides /4 in ModRM.reg, XED decodes /6 of the same opcodes (C0, C1, D0 to D3) as SHL and marks those forms undocumented. AMD’s opcode map lists them as SHL/SAL, with a note that tools generally lack them; Intel’s leaves /6 empty. Zen 5 ran every /6 form recorded here exactly as the /4 one. APX adds forms with a new destination and forms that leave the flags unchanged (NF).
In the optimization guide
What the optimization guide says about SHL, a line per claim. Each links to the claim in the guide, with its sources and where they differ.
Out of order
- Partial register and flag writes: A shift or rotate by CL leaves the flags alone when the count is zero, which is known only when it runs, so it depends on the old flags too.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
SHL m8, imm8
SHL_MEMb_IMMb_C0r4 | C0 /4 ib | Base instruction set |
SHL r8, imm8
SHL_GPR8_IMMb_C0r4 | C0 /4 ib | Base instruction set |
SHL m8, imm8 undocumented
SHL_MEMb_IMMb_C0r6 | C0 /6 ib | Base instruction set |
SHL r8, imm8 undocumented
SHL_GPR8_IMMb_C0r6 | C0 /6 ib | Base instruction set |
SHL m16/32/64, imm8
SHL_MEMv_IMMb_C1r4 | C1 /4 ib | Base instruction set |
SHL r16/32/64, imm8
SHL_GPRv_IMMb_C1r4 | C1 /4 ib | Base instruction set |
SHL m16/32/64, imm8 undocumented
SHL_MEMv_IMMb_C1r6 | C1 /6 ib | Base instruction set |
SHL r16/32/64, imm8 undocumented
SHL_GPRv_IMMb_C1r6 | C1 /6 ib | Base instruction set |
SHL m8, 1
SHL_MEMb_ONE_D0r4 | D0 /4 | Base instruction set |
SHL r8, 1
SHL_GPR8_ONE_D0r4 | D0 /4 | Base instruction set |
SHL m8, 1
SHL_MEMb_ONE_D0r6 | D0 /6 | Base instruction set |
SHL r8, 1 undocumented
SHL_GPR8_ONE_D0r6 | D0 /6 | Base instruction set |
SHL m16/32/64, 1
SHL_MEMv_ONE_D1r6 | D1 /6 | Base instruction set |
SHL m16/32/64, 1
SHL_MEMv_ONE_D1r4 | D1 /4 | Base instruction set |
SHL r16/32/64, 1
SHL_GPRv_ONE_D1r4 | D1 /4 | Base instruction set |
SHL r16/32/64, 1 undocumented
SHL_GPRv_ONE_D1r6 | D1 /6 | Base instruction set |
SHL m8, CL
SHL_MEMb_CL_D2r4 | D2 /4 | Base instruction set |
SHL r8, CL
SHL_GPR8_CL_D2r4 | D2 /4 | Base instruction set |
SHL m8, CL undocumented
SHL_MEMb_CL_D2r6 | D2 /6 | Base instruction set |
SHL r8, CL undocumented
SHL_GPR8_CL_D2r6 | D2 /6 | Base instruction set |
SHL m16/32/64, CL
SHL_MEMv_CL_D3r4 | D3 /4 | Base instruction set |
SHL r16/32/64, CL
SHL_GPRv_CL_D3r4 | D3 /4 | Base instruction set |
SHL m16/32/64, CL undocumented
SHL_MEMv_CL_D3r6 | D3 /6 | Base instruction set |
SHL r16/32/64, CL undocumented
SHL_GPRv_CL_D3r6 | D3 /6 | Base instruction set |
SHL r8, imm8
SHL_GPR8i8_IMM8_APX | EVEX.LLZ.NP.MAP4.WIG C0 /4 ibEVEX.LLZ.NP.MAP4.WIG C0 /6 ib | APX_F |
SHL m8, imm8
SHL_MEMi8_IMM8_APX | EVEX.LLZ.NP.MAP4.WIG C0 /4 ibEVEX.LLZ.NP.MAP4.WIG C0 /6 ib | APX_F |
SHL r8, imm8 NF
SHL_GPR8i8_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG C0 /4 ib NF=1EVEX.LLZ.NP.MAP4.WIG C0 /6 ib NF=1 | APX_F + APX_NCI_NDD_NF |
SHL m8, imm8 NF
SHL_MEMi8_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG C0 /4 ib NF=1EVEX.LLZ.NP.MAP4.WIG C0 /6 ib NF=1 | APX_F + APX_NCI_NDD_NF |
SHL r16/32/64, r16/32/64, 1 NDD NF optional
SHL_GPRv_GPRv_ONE_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE D1 /6 ND=1 NF=0/1EVEX.LLZ.NP.MAP4.SCALABLE D1 /4 ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r16/32/64, m16/32/64, 1 NDD NF optional
SHL_GPRv_MEMv_ONE_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE D1 /6 ND=1 NF=0/1EVEX.LLZ.NP.MAP4.SCALABLE D1 /4 ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r8, CL
SHL_GPR8i8_CL_APX | EVEX.LLZ.NP.MAP4.WIG D2 /4EVEX.LLZ.NP.MAP4.WIG D2 /6 | APX_F |
SHL m8, CL
SHL_MEMi8_CL_APX | EVEX.LLZ.NP.MAP4.WIG D2 /4EVEX.LLZ.NP.MAP4.WIG D2 /6 | APX_F |
SHL r8, CL NF
SHL_GPR8i8_CL_APX_N3 | EVEX.LLZ.NP.MAP4.WIG D2 /4 NF=1EVEX.LLZ.NP.MAP4.WIG D2 /6 NF=1 | APX_F + APX_NCI_NDD_NF |
SHL m8, CL NF
SHL_MEMi8_CL_APX_N3 | EVEX.LLZ.NP.MAP4.WIG D2 /4 NF=1EVEX.LLZ.NP.MAP4.WIG D2 /6 NF=1 | APX_F + APX_NCI_NDD_NF |
SHL r8, r8, CL NDD NF optional
SHL_GPR8i8_GPR8i8_CL_APX_N3 | EVEX.LLZ.NP.MAP4.WIG D2 /4 ND=1 NF=0/1EVEX.LLZ.NP.MAP4.WIG D2 /6 ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r8, m8, CL NDD NF optional
SHL_GPR8i8_MEMi8_CL_APX_N3 | EVEX.LLZ.NP.MAP4.WIG D2 /4 ND=1 NF=0/1EVEX.LLZ.NP.MAP4.WIG D2 /6 ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r16/32/64, CL
SHL_GPRv_CL_APX | EVEX.LLZ.NP.MAP4.SCALABLE D3 /4EVEX.LLZ.NP.MAP4.SCALABLE D3 /6 | APX_F |
SHL m16/32/64, CL
SHL_MEMv_CL_APX | EVEX.LLZ.NP.MAP4.SCALABLE D3 /4EVEX.LLZ.NP.MAP4.SCALABLE D3 /6 | APX_F |
SHL r16/32/64, CL NF
SHL_GPRv_CL_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE D3 /4 NF=1EVEX.LLZ.NP.MAP4.SCALABLE D3 /6 NF=1 | APX_F + APX_NCI_NDD_NF |
SHL m16/32/64, CL NF
SHL_MEMv_CL_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE D3 /4 NF=1EVEX.LLZ.NP.MAP4.SCALABLE D3 /6 NF=1 | APX_F + APX_NCI_NDD_NF |
SHL r8, 1
SHL_GPR8i8_ONE_APX | EVEX.LLZ.NP.MAP4.WIG D0 /6EVEX.LLZ.NP.MAP4.WIG D0 /4 | APX_F |
SHL m8, 1
SHL_MEMi8_ONE_APX | EVEX.LLZ.NP.MAP4.WIG D0 /6EVEX.LLZ.NP.MAP4.WIG D0 /4 | APX_F |
SHL r8, 1 NF
SHL_GPR8i8_ONE_APX_N3 | EVEX.LLZ.NP.MAP4.WIG D0 /6 NF=1EVEX.LLZ.NP.MAP4.WIG D0 /4 NF=1 | APX_F + APX_NCI_NDD_NF |
SHL m8, 1 NF
SHL_MEMi8_ONE_APX_N3 | EVEX.LLZ.NP.MAP4.WIG D0 /6 NF=1EVEX.LLZ.NP.MAP4.WIG D0 /4 NF=1 | APX_F + APX_NCI_NDD_NF |
SHL r16/32/64, r16/32/64, CL NDD NF optional
SHL_GPRv_GPRv_CL_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE D3 /4 ND=1 NF=0/1EVEX.LLZ.NP.MAP4.SCALABLE D3 /6 ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r16/32/64, m16/32/64, CL NDD NF optional
SHL_GPRv_MEMv_CL_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE D3 /4 ND=1 NF=0/1EVEX.LLZ.NP.MAP4.SCALABLE D3 /6 ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r8, r8, imm8 NDD NF optional
SHL_GPR8i8_GPR8i8_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG C0 /4 ib ND=1 NF=0/1EVEX.LLZ.NP.MAP4.WIG C0 /6 ib ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r8, m8, imm8 NDD NF optional
SHL_GPR8i8_MEMi8_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG C0 /4 ib ND=1 NF=0/1EVEX.LLZ.NP.MAP4.WIG C0 /6 ib ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r16/32/64, imm8
SHL_GPRv_IMM8_APX | EVEX.LLZ.NP.MAP4.SCALABLE C1 /4 ibEVEX.LLZ.NP.MAP4.SCALABLE C1 /6 ib | APX_F |
SHL m16/32/64, imm8
SHL_MEMv_IMM8_APX | EVEX.LLZ.NP.MAP4.SCALABLE C1 /4 ibEVEX.LLZ.NP.MAP4.SCALABLE C1 /6 ib | APX_F |
SHL r16/32/64, imm8 NF
SHL_GPRv_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE C1 /4 ib NF=1EVEX.LLZ.NP.MAP4.SCALABLE C1 /6 ib NF=1 | APX_F + APX_NCI_NDD_NF |
SHL m16/32/64, imm8 NF
SHL_MEMv_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE C1 /4 ib NF=1EVEX.LLZ.NP.MAP4.SCALABLE C1 /6 ib NF=1 | APX_F + APX_NCI_NDD_NF |
SHL r8, r8, 1 NDD NF optional
SHL_GPR8i8_GPR8i8_ONE_APX_N3 | EVEX.LLZ.NP.MAP4.WIG D0 /4 ND=1 NF=0/1EVEX.LLZ.NP.MAP4.WIG D0 /6 ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r8, m8, 1 NDD NF optional
SHL_GPR8i8_MEMi8_ONE_APX_N3 | EVEX.LLZ.NP.MAP4.WIG D0 /4 ND=1 NF=0/1EVEX.LLZ.NP.MAP4.WIG D0 /6 ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r16/32/64, r16/32/64, imm8 NDD NF optional
SHL_GPRv_GPRv_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE C1 /4 ib ND=1 NF=0/1EVEX.LLZ.NP.MAP4.SCALABLE C1 /6 ib ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r16/32/64, m16/32/64, imm8 NDD NF optional
SHL_GPRv_MEMv_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE C1 /4 ib ND=1 NF=0/1EVEX.LLZ.NP.MAP4.SCALABLE C1 /6 ib ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
SHL r16/32/64, 1
SHL_GPRv_ONE_APX | EVEX.LLZ.NP.MAP4.SCALABLE D1 /4EVEX.LLZ.NP.MAP4.SCALABLE D1 /6 | APX_F |
SHL m16/32/64, 1
SHL_MEMv_ONE_APX | EVEX.LLZ.NP.MAP4.SCALABLE D1 /4EVEX.LLZ.NP.MAP4.SCALABLE D1 /6 | APX_F |
SHL r16/32/64, 1 NF
SHL_GPRv_ONE_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE D1 /4 NF=1EVEX.LLZ.NP.MAP4.SCALABLE D1 /6 NF=1 | APX_F + APX_NCI_NDD_NF |
SHL m16/32/64, 1 NF
SHL_MEMv_ONE_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE D1 /4 NF=1EVEX.LLZ.NP.MAP4.SCALABLE D1 /6 NF=1 | APX_F + APX_NCI_NDD_NF |
Latency and throughput
| Model | m8, imm8m8, 1 | r8, imm8r16, imm8r32, imm8r64, imm8r8, 1r16, 1r32, 1r64, 1 | m16, imm8m32, imm8m64, imm8m16, 1m32, 1m64, 1 | m8, CL | r8, CLr16, CLr32, CLr64, CL | m16, CLm32, CLm64, CL |
|---|---|---|---|---|---|---|
| Sandy Bridge | 7 / 1p05 | 1 / 0.5p05 | 7 / 1p05 | 9 / 1.5p05 | 3 / 1.5p05 | 9 / 1.5p05 |
| Haswell | 7 / 1p06 | 1 / 0.5p06 | 7 / 1p06 | 9 / 1p0156 | 3 / 1.5p06 | 9 / 1p0156 |
| Broadwell | 6 / 1p06 | 1 / 0.5p06 | 6 / 1p06 | 8 / 1p0156 | 3 / 1.5p06 | 8 / 1p0156 |
| Skylake, Skylake-SP | 6 / 1p06 | 1 / 0.5p06 | 6 / 1p06 | 8 / 1.5p06 | 3 / 1.5p06 | 8 / 1.5p06 |
| Ice Lake | 6 / 0.5p06 | 1 / 0.5p06 | 6 / 0.5p06 | 8 / 1.5p06 | 3 / 1.5p06 | 8 / 1.5p06 |
| Alder Lake, Sapphire Rapids | 13 / 0.5p06 | 1 / 0.5p06 | 12 / 0.5p06 | 13 / 1p06 | 2 / 1p06 | 12 / 1p06 |
| Lunar Lake | 13 / 0.5p024 | 1 / 0.33p135 | 5 / 1.67p135 | 13 / 0.67p024 | 2 / 0.67p024 | 12 / 0.67p024 |
| Bonnell | 1 / 1p0 | 1 / 1p0 | 1 / 1p0 | 1 / 1p0 | 1 / 1p0 | 1 / 1p0 |
| Silvermont | 4 / 2IEC0 MEC | 1 / 1IEC0 | 4 / 2IEC0 MEC | 4 / 2IEC0 MEC | 1 / 1IEC0 | 4 / 2IEC0 MEC |
| Piledriver | 5 / 2EX0 EX1 | 1 / 1EX0 EX1 | 5 / 2EX0 EX1 | 5 / 2EX0 EX1 | 1 / 0.5EX0 EX1 | 5 / 2EX0 EX1 |
| Zen | 5 / 0.5ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 5 / 0.5ALU0 ALU1 ALU2 ALU3 | 5 / 1ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 5 / 1ALU0 ALU1 ALU2 ALU3 |
| Zen 2 | 5 / 0.33ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 5 / 0.33ALU0 ALU1 ALU2 ALU3 | 5 / 0.67ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 5 / 0.67ALU0 ALU1 ALU2 ALU3 |
| Zen 3, Zen 4 | 5 / 0.67ALU1 ALU2 | 1 / 0.5ALU1 ALU2 | 5 / 0.67ALU1 ALU2 | 5 / 0.67ALU1 ALU2 | 1 / 0.5ALU1 ALU2 | 5 / 0.67ALU1 ALU2 |
| Jaguar | 4 / 1ALU0 ALU1 | 1 / 0.5ALU0 ALU1 | 4 / 1ALU0 ALU1 | 4 / 1ALU0 ALU1 | 1 / 0.5ALU0 ALU1 | 4 / 1ALU0 ALU1 |
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
a = dest.read()
n = count & (0x3F if OSIZE == 64 else 0x1F) # the count is masked
r = low(a << n)
if n != 0 and not nf: # a count of 0 changes no flag; NF=1
# (APX) none at all
c = (a << n) >> OSIZE & 1 # the last bit shifted out: 0 once
# n > OSIZE
cf = c
of = msb(r) ^ c if n == 1 else UNDEFINED
sf = msb(r)
zf = r == 0
pf = parity(r)
af = UNDEFINED
dest.write(r) # even for a count of 0, a 32-bit register
# gets bits 63:32 cleared
Run on AMD Zen 5 (EPYC 9645) and an Intel processor under KVM (model hidden): 822 cases. The APX forms were not run: none of these processors has APX.
a = src.read()
n = count & (0x3F if OSIZE == 64 else 0x1F) # the count is masked
r = low(a << n)
if n != 0 and not nf: # a count of 0 changes no flag; NF=1
# none at all
c = (a << n) >> OSIZE & 1 # the last bit shifted out: 0 once
# n > OSIZE
cf = c
of = msb(r) ^ c if n == 1 else UNDEFINED
sf = msb(r)
zf = r == 0
pf = parity(r)
af = UNDEFINED
dest.write(r) # the new destination: bits 63:OSIZE
# cleared, even for 8 and 16 bits
Not run on a processor: none of these processors has APX.
Operands
| Operand | Kind | Action |
|---|---|---|
SHL r/m8, imm8 SHL r/m16/32/64, imm8 | ||
r/m8/16/32/64 | explicit | read, write |
imm8 | explicit | read |
RFLAGS | implicit | write |
SHL r/m8, 1 SHL r/m16/32/64, 1 | ||
r/m8/16/32/64 | explicit | read, write |
1 | explicit | read |
RFLAGS | implicit | write |
SHL r/m8, CL SHL r/m16/32/64, CL | ||
r/m8/16/32/64 | explicit | read, write |
CL | explicit | read |
RFLAGS | implicit | conditional write |
SHL r/m8, imm8 NF SHL r/m16/32/64, imm8 NF | ||
r/m8/16/32/64 | explicit | read, write |
imm8 | explicit | read |
SHL r8, r/m8, 1 NDD NF optional SHL r16/32/64, r/m16/32/64, 1 NDD NF optional | ||
r8/16/32/64 | explicit | write |
r/m8/16/32/64 | explicit | read |
1 | explicit | read |
RFLAGS | implicit | write (NF=0) |
SHL r/m8, CL NF SHL r/m16/32/64, CL NF | ||
r/m8/16/32/64 | explicit | read, write |
CL | explicit | read |
SHL r8, r/m8, CL NDD NF optional SHL r16/32/64, r/m16/32/64, CL NDD NF optional | ||
r8/16/32/64 | explicit | write |
r/m8/16/32/64 | explicit | read |
CL | explicit | read |
RFLAGS | implicit | conditional write (NF=0) |
SHL r/m8, 1 NF SHL r/m16/32/64, 1 NF | ||
r/m8/16/32/64 | explicit | read, write |
1 | explicit | read |
SHL r8, r/m8, imm8 NDD NF optional SHL r16/32/64, r/m16/32/64, imm8 NDD NF optional | ||
r8/16/32/64 | explicit | write |
r/m8/16/32/64 | explicit | read |
imm8 | explicit | read |
RFLAGS | implicit | write (NF=0) |
Flags
| When | OF | SF | ZF | AF | PF | CF |
|---|---|---|---|---|---|---|
SHL r/m8, imm8 SHL r/m16/32/64, imm8 | ||||||
| count 1 | M | M | M | U | M | M |
| count 2 or more | U | M | M | U | M | M |
SHL r/m8, 1 SHL r/m16/32/64, 1 | ||||||
| M | M | M | U | M | M | |
SHL r/m8, CL SHL r/m16/32/64, CL | ||||||
| in some cases | U | M | M | U | M | M |
| NF forms | ||||||
| Not affected | ||||||
SHL r8, r/m8, 1 NDD NF optional SHL r16/32/64, r/m16/32/64, 1 NDD NF optional | ||||||
| NF=0 | M | M | M | U | M | M |
SHL r8, r/m8, CL NDD NF optional SHL r16/32/64, r/m16/32/64, CL NDD NF optional | ||||||
| NF=0, in some cases | U | M | M | U | M | M |
SHL r8, r/m8, imm8 NDD NF optional SHL r16/32/64, r/m16/32/64, imm8 NDD NF optional | ||||||
| NF=0, count 1 | M | M | M | U | M | M |
| NF=0, count 2 or more | U | M | M | U | M | M |
Exceptions
The exception class is XED's name for the set of exception conditions that a form follows. How to read.
- Legacy forms
- none in XED
- EVEX forms
APX-EVEX-INT
CPUID and processors
Each form belongs to an XED ISA set. A form can be used when the processor reports every CPUID bit of one of its ISA set's alternatives.
| ISA set | CPUID | Processors |
|---|---|---|
I186 | No CPUID bit: part of the base instruction set. | Every x86-64 processor in XED’s model and Zen 3 to Zen 6 |
I86 | No CPUID bit: part of the base instruction set. | Every x86-64 processor in XED’s model and Zen 3 to Zen 6 |
APX_F | APX_F | Nova Lake, Diamond Rapids |
APX_F_N3 | APX_F + APX_NCI_NDD_NF | Same as APX_F |
More General-purpose instructions
- NEG
- NOP
- NOT
- OR
- OUT
- OUTS
- PAUSE
- POP
- POPA
- POPF
- PUSH
- PUSHA
- PUSHF
- RCL
- RCR
- RET
- ROL
- ROR
- SALC
- SAR
- SBB
- SCAS
- SETcc
- SHLD
- SHR
- SHRD
- STC
- STD
- STI
- STOS
- SUB
- TEST
- UD0
- UD1
- UD2
- UDB
- XADD
- XCHG
- XLAT
- XOR
All 109 General-purpose instructions
More APX instructions
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model. - The CPU data of x86-64.net: Zen 3 to Zen 6, from GCC’s
-marchfeature sets and AMD’s Processor Programming References, which the page of each processor cites. - LLVM 23.1.2's x86 scheduling models (commit
85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2B, page 4-603 (SAL/
SAR/ SHL/ SHR) - Intel Advanced Performance Extensions (Intel APX) Architecture Specification, revision 9.0 (355828-009, August 2026)
- AMD64 Architecture Programmer's Manual, Volume 3: General-Purpose and System Instructions (24594, rev. 3.39, October 2026)
The tables are derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted them. The timings come from LLVM's scheduling models, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.