Instruction
AND
Computes the bitwise AND of two operands; APX adds three-operand forms and forms that leave the flags unchanged.
- Extensions
- Forms
- 60 (24 Legacy, 36 EVEX)
- Data
- Intel XED v2026.08.23
AND clears the bits of its destination that are clear in the source, usually a mask, and keeps the others.
Masks and immediates
The immediate has at most 32 bits and is sign-extended to the operand
size, which suits masks that clear low bits. GCC 14 and Clang 23 at -O2
compile aligning down to 16, x & -16, to and rax, -16 (4 bytes), and
rounding up to lea rax, [rdi + 15] followed by the same AND. For an
unsigned x, x % 8 is and eax, 7; a signed x needs a correction for
negative values first.
A 64-bit mask with bits 63:32 clear cannot be a sign-extended immediate,
but it needs none: a 32-bit AND clears those bits by writing a 32-bit
register. Both compilers compile x & 0xfffffff0 on a uint64_t to a
MOV and and eax, -16 (GCC prints the immediate as 4294967280),
x & 0xffffffff to mov eax, edi and x & 0xff to
MOVZX. Other wide masks, such as 0xffffffffff, are first
loaded into a register with MOVABS.
Bit tricks
x & (x - 1)clears the lowest set bit: an LEA and an AND, or BLSR with BMI1 enabled (-mbmi).x & -xkeeps only the lowest set bit: NEG and AND, or BLSI.~a & bis NOT and AND, or ANDN, which also takes a separate destination.x & ~(1ul << n), clearing a bit whose number is in a register, becomes BTR in both compilers.
Testing bits
AND sets ZF, SF and PF from the result and clears CF and OF, so a conditional jump can follow it directly, and newer processors fuse the pair. In Intel’s Optimization Reference Manual, Table 3-1 (Sandy Bridge) and Table 3-2 (Haswell) let AND, like TEST, fuse with every condition; AMD’s guide for Zen 5 lists AND among the instructions that fuse with a following branch (Section 2.9.3). When the result itself is not needed, Intel’s manual recommends TEST, which does the same AND without writing the destination (Coding Rule 36).
Atomic AND
With LOCK and a memory destination, AND clears bits atomically:
atomic_fetch_and compiles to lock and when its result is unused and
to a CMPXCHG loop when it is used.
AAND, from RAO-INT, does an atomic AND that is only
weakly ordered with other memory accesses.
Forms
| Instruction | Encoding | Requires |
|---|---|---|
AND m8, imm8
AND_MEMb_IMMb_80r4 | 80 /4 ib | Base instruction set |
AND r8, imm8
AND_GPR8_IMMb_80r4 | 80 /4 ib | Base instruction set |
AND m16/32/64, imm16/32
AND_MEMv_IMMz | 81 /4 iw/id | Base instruction set |
AND r16/32/64, imm16/32
AND_GPRv_IMMz | 81 /4 iw/id | Base instruction set |
AND m8, imm8 not in 64-bit mode
AND_MEMb_IMMb_82r4 | 82 /4 ib | Base instruction set |
AND r8, imm8 not in 64-bit mode
AND_GPR8_IMMb_82r4 | 82 /4 ib | Base instruction set |
AND m16/32/64, imm8
AND_MEMv_IMMb | 83 /4 ib | Base instruction set |
AND r16/32/64, imm8
AND_GPRv_IMMb | 83 /4 ib | Base instruction set |
AND m8, r8
AND_MEMb_GPR8 | 20 /r | Base instruction set |
AND r8, r8
AND_GPR8_GPR8_20 | 20 /r | Base instruction set |
AND m16/32/64, r16/32/64
AND_MEMv_GPRv | 21 /r | Base instruction set |
AND r16/32/64, r16/32/64
AND_GPRv_GPRv_21 | 21 /r | Base instruction set |
AND r8, r8
AND_GPR8_GPR8_22 | 22 /r | Base instruction set |
AND r8, m8
AND_GPR8_MEMb | 22 /r | Base instruction set |
AND r16/32/64, r16/32/64
AND_GPRv_GPRv_23 | 23 /r | Base instruction set |
AND r16/32/64, m16/32/64
AND_GPRv_MEMv | 23 /r | Base instruction set |
AND AL, imm8
AND_AL_IMMb | 24 ib | Base instruction set |
AND rAX, imm16/32
AND_OrAX_IMMz | 25 iw/id | Base instruction set |
LOCK AND m8, imm8
AND_LOCK_MEMb_IMMb_80r4 | 80 /4 ib | Base instruction set |
LOCK AND m16/32/64, imm16/32
AND_LOCK_MEMv_IMMz | 81 /4 iw/id | Base instruction set |
LOCK AND m8, imm8 not in 64-bit mode
AND_LOCK_MEMb_IMMb_82r4 | 82 /4 ib | Base instruction set |
LOCK AND m16/32/64, imm8
AND_LOCK_MEMv_IMMb | 83 /4 ib | Base instruction set |
LOCK AND m8, r8
AND_LOCK_MEMb_GPR8 | 20 /r | Base instruction set |
LOCK AND m16/32/64, r16/32/64
AND_LOCK_MEMv_GPRv | 21 /r | Base instruction set |
AND r8, r8
AND_GPR8i8_GPR8i8_APX | EVEX.LLZ.NP.MAP4.WIG 20 /rEVEX.LLZ.NP.MAP4.WIG 22 /r | APX_F |
AND m8, r8
AND_MEMi8_GPR8i8_APX | EVEX.LLZ.NP.MAP4.WIG 20 /r | APX_F |
AND r8, r8 NF
AND_GPR8i8_GPR8i8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 20 /r NF=1EVEX.LLZ.NP.MAP4.WIG 22 /r NF=1 | APX_F + APX_NCI_NDD_NF |
AND m8, r8 NF
AND_MEMi8_GPR8i8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 20 /r NF=1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, r16/32/64, imm8 NDD NF optional
AND_GPRv_GPRv_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 83 /4 ib ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, m16/32/64, imm8 NDD NF optional
AND_GPRv_MEMv_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 83 /4 ib ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r8, r8, r8 NDD NF optional
AND_GPR8i8_GPR8i8_GPR8i8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 20 /r ND=1 NF=0/1EVEX.LLZ.NP.MAP4.WIG 22 /r ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r8, m8, r8 NDD NF optional
AND_GPR8i8_MEMi8_GPR8i8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 20 /r ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, r16/32/64
AND_GPRv_GPRv_APX | EVEX.LLZ.NP.MAP4.SCALABLE 21 /rEVEX.LLZ.NP.MAP4.SCALABLE 23 /r | APX_F |
AND m16/32/64, r16/32/64
AND_MEMv_GPRv_APX | EVEX.LLZ.NP.MAP4.SCALABLE 21 /r | APX_F |
AND r16/32/64, r16/32/64 NF
AND_GPRv_GPRv_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 21 /r NF=1EVEX.LLZ.NP.MAP4.SCALABLE 23 /r NF=1 | APX_F + APX_NCI_NDD_NF |
AND m16/32/64, r16/32/64 NF
AND_MEMv_GPRv_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 21 /r NF=1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, r16/32/64, r16/32/64 NDD NF optional
AND_GPRv_GPRv_GPRv_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 21 /r ND=1 NF=0/1EVEX.LLZ.NP.MAP4.SCALABLE 23 /r ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, m16/32/64, r16/32/64 NDD NF optional
AND_GPRv_MEMv_GPRv_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 21 /r ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r8, m8
AND_GPR8i8_MEMi8_APX | EVEX.LLZ.NP.MAP4.WIG 22 /r | APX_F |
AND r8, m8 NF
AND_GPR8i8_MEMi8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 22 /r NF=1 | APX_F + APX_NCI_NDD_NF |
AND r8, r8, m8 NDD NF optional
AND_GPR8i8_GPR8i8_MEMi8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 22 /r ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, m16/32/64
AND_GPRv_MEMv_APX | EVEX.LLZ.NP.MAP4.SCALABLE 23 /r | APX_F |
AND r16/32/64, m16/32/64 NF
AND_GPRv_MEMv_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 23 /r NF=1 | APX_F + APX_NCI_NDD_NF |
AND r8, r8, imm8 NDD NF optional
AND_GPR8i8_GPR8i8_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 80 /4 ib ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r8, m8, imm8 NDD NF optional
AND_GPR8i8_MEMi8_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 80 /4 ib ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, r16/32/64, m16/32/64 NDD NF optional
AND_GPRv_GPRv_MEMv_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 23 /r ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r8, imm8
AND_GPR8i8_IMM8_APX | EVEX.LLZ.NP.MAP4.WIG 80 /4 ib | APX_F |
AND m8, imm8
AND_MEMi8_IMM8_APX | EVEX.LLZ.NP.MAP4.WIG 80 /4 ib | APX_F |
AND r8, imm8 NF
AND_GPR8i8_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 80 /4 ib NF=1 | APX_F + APX_NCI_NDD_NF |
AND m8, imm8 NF
AND_MEMi8_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.WIG 80 /4 ib NF=1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, imm16/32
AND_GPRv_IMMz_APX | EVEX.LLZ.NP.MAP4.SCALABLE 81 /4 iw/id | APX_F |
AND m16/32/64, imm16/32
AND_MEMv_IMMz_APX | EVEX.LLZ.NP.MAP4.SCALABLE 81 /4 iw/id | APX_F |
AND r16/32/64, imm16/32 NF
AND_GPRv_IMMz_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 81 /4 iw/id NF=1 | APX_F + APX_NCI_NDD_NF |
AND m16/32/64, imm16/32 NF
AND_MEMv_IMMz_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 81 /4 iw/id NF=1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, r16/32/64, imm16/32 NDD NF optional
AND_GPRv_GPRv_IMMz_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 81 /4 iw/id ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, m16/32/64, imm16/32 NDD NF optional
AND_GPRv_MEMv_IMMz_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 81 /4 iw/id ND=1 NF=0/1 | APX_F + APX_NCI_NDD_NF |
AND r16/32/64, imm8
AND_GPRv_IMM8_APX | EVEX.LLZ.NP.MAP4.SCALABLE 83 /4 ib | APX_F |
AND m16/32/64, imm8
AND_MEMv_IMM8_APX | EVEX.LLZ.NP.MAP4.SCALABLE 83 /4 ib | APX_F |
AND r16/32/64, imm8 NF
AND_GPRv_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 83 /4 ib NF=1 | APX_F + APX_NCI_NDD_NF |
AND m16/32/64, imm8 NF
AND_MEMv_IMM8_APX_N3 | EVEX.LLZ.NP.MAP4.SCALABLE 83 /4 ib NF=1 | APX_F + APX_NCI_NDD_NF |
Latency and throughput
| Model | m8, imm8m8, r8AND m8, imm8AND m8, r8 | r8, imm8r32, imm32r64, imm32r16, imm8r32, imm8r64, imm8r8, r8r16, r16r32, r32r64, r64 | m16, imm16m32, imm32m64, imm32m16, imm8m32, imm8m64, imm8m16, r16m32, r32m64, r64AND m16, imm16AND m32, imm32AND m64, imm32AND m16, imm8AND m32, imm8AND m64, imm8AND m16, r16AND m32, r32AND m64, r64 | r16, imm16 | r8, m8r16, m16r32, m32 | r64, m64 | AL, imm8rAX, imm32 | rAX, imm16 |
|---|---|---|---|---|---|---|---|---|
| Sandy Bridge | 7 / 1p015 | 1 / 0.33p015 | 7 / 1p015 | 1 / 0.33p015 | 6 / 0.5p015 | 6 / 0.5p015 | 1 / 0.33p015 | 1 / 0.33p015 |
| Haswell, Broadwell, Skylake, Skylake-SP | 7 / 1p0156 | 1 / 0.25p0156 | 7 / 1p0156 | 1 / 0.25p0156 | 6 / 0.5p0156 | 6 / 0.5p0156 | 1 / 0.25p0156 | 1 / 0.25p0156 |
| Ice Lake | 7 / 0.5p0156 | 1 / 0.25p0156 | 7 / 0.5p0156 | 1 / 0.25p0156 | 6 / 0.5p0156 | 6 / 0.5p0156 | 1 / 0.25p0156 | 1 / 0.25p0156 |
| Alder Lake, Sapphire Rapids | 13 / 0.5p0 p1 p5 p6 p11 | 2 / 0.2p0 p1 p5 p6 p11 | 12 / 0.5p0 p1 p5 p6 p11 | 1 / 0.2p0 p1 p5 p6 p11 | 6 / 0.33p0 p1 p5 p6 p11 | 7 / 0.33p0 p1 p5 p6 p11 | 2 / 0.2p0 p1 p5 p6 p11 | 1 / 0.2p0 p1 p5 p6 p11 |
| Lunar Lake | 13 / 0.5p012345 | 2 / 0.17p012345 | 12 / 0.67p135 | 1 / 0.33p135 | 6 / 0.33p012345 | 7 / 0.33p012345 | 2 / 0.17p012345 | 1 / 0.33p135 |
| Bonnell | 1 / 1p0 | 1 / 0.5p01 | 1 / 1p0 | 1 / 0.5p01 | 1 / 1p0 | 1 / 1p0 | 1 / 0.5p01 | 1 / 0.5p01 |
| Silvermont | 5 / 2IEC0 IEC1 MEC | 1 / 0.5IEC0 IEC1 | 5 / 2IEC0 IEC1 MEC | 1 / 0.5IEC0 IEC1 | 4 / 1IEC0 IEC1 MEC | 4 / 1IEC0 IEC1 MEC | 1 / 0.5IEC0 IEC1 | 1 / 0.5IEC0 IEC1 |
| Piledriver | 6 / 2EX0 EX1 | 1 / 1EX0 EX1 | 6 / 2EX0 EX1 | 1 / 1EX0 EX1 | 5 / 1.5EX0 EX1 | 5 / 1.5EX0 EX1 | 1 / 1EX0 EX1 | 1 / 1EX0 EX1 |
| Zen | 5 / 0.5ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 5 / 0.5ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 5 / 0.5ALU0 ALU1 ALU2 ALU3 | 5 / 0.5ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 |
| Zen 2 | 5 / 0.33ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 5 / 0.33ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 5 / 0.33ALU0 ALU1 ALU2 ALU3 | 5 / 0.33ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 |
| Zen 3, Zen 4 | 6 / 0.67ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 6 / 0.67ALU0 ALU1 ALU2 ALU3 | 1 / 0.25ALU0 ALU1 ALU2 ALU3 | 5 / 0.33ALU0 ALU1 ALU2 ALU3 | 5 / 0.33ALU0 ALU1 ALU2 ALU3 | 1 / 1ALU0 ALU1 ALU2 ALU3 | 1 / 1ALU0 ALU1 ALU2 ALU3 |
| Jaguar | 6 / 1ALU0 ALU1 | 1 / 0.5ALU0 ALU1 | 6 / 1ALU0 ALU1 | 1 / 0.5ALU0 ALU1 | 4 / 1ALU0 ALU1 | 4 / 1ALU0 ALU1 | 1 / 0.5ALU0 ALU1 | 1 / 0.5ALU0 ALU1 |
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
r = dest & sext(src) # with LOCK: one atomic read-modify-write;
# an immediate is sign-extended to OSIZE
if not nf: # NF=1 (APX) leaves the flags as they were
of = cf = 0
sf = msb(r)
zf = r == 0
pf = parity(r)
af = UNDEFINED
dest.write(r) # a 32-bit register: bits 63:32 cleared
Run on AMD Zen 5 (EPYC 9645): 302 cases. The APX forms were not run: none of these processors has APX. The forms that 64-bit mode lacks were not run: the probe runs in 64-bit mode.
r = src1 & sext(src2) # an immediate is sign-extended to OSIZE
if not nf: # NF=1 leaves the flags as they were
of = cf = 0
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 |
|---|---|---|
AND r/m8, imm8 AND r/m16/32/64, imm16/32 AND r/m16/32/64, imm8 LOCK AND m8, imm8 LOCK AND m16/32/64, imm16/32 LOCK AND m16/32/64, imm8 | ||
r/m8/16/32/64 | explicit | read, write |
imm8/16/32 | explicit | read |
RFLAGS | implicit | write |
AND r/m8, r8 AND r/m16/32/64, r16/32/64 LOCK AND m8, r8 LOCK AND m16/32/64, r16/32/64 | ||
r/m8/16/32/64 | explicit | read, write |
r8/16/32/64 | explicit | read |
RFLAGS | implicit | write |
AND r8, r/m8 AND r16/32/64, r/m16/32/64 | ||
r8/16/32/64 | explicit | read, write |
r/m8/16/32/64 | explicit | read |
RFLAGS | implicit | write |
AND AL, imm8 AND rAX, imm16/32 | ||
AL, rAX | explicit | read, write |
imm8/16/32 | explicit | read |
RFLAGS | implicit | write |
AND r/m8, r8 NF AND r/m16/32/64, r16/32/64 NF | ||
r/m8/16/32/64 | explicit | read, write |
r8/16/32/64 | explicit | read |
AND r8, r/m8, imm8 NDD NF optional AND r16/32/64, r/m16/32/64, imm8 NDD NF optional AND r16/32/64, r/m16/32/64, imm16/32 NDD NF optional | ||
r8/16/32/64 | explicit | write |
r/m8/16/32/64 | explicit | read |
imm8/16/32 | explicit | read |
RFLAGS | implicit | write (NF=0) |
AND r8, r/m8, r8 NDD NF optional AND r16/32/64, r/m16/32/64, r16/32/64 NDD NF optional | ||
r8/16/32/64 | explicit | write |
r/m8/16/32/64 | explicit | read |
r8/16/32/64 | explicit | read |
RFLAGS | implicit | write (NF=0) |
AND r8, m8 NF AND r16/32/64, m16/32/64 NF | ||
r8/16/32/64 | explicit | read, write |
m8/16/32/64 | explicit | read |
AND r8, r8, m8 NDD NF optional AND r16/32/64, r16/32/64, m16/32/64 NDD NF optional | ||
r8/16/32/64 | explicit | write |
r8/16/32/64 | explicit | read |
m8/16/32/64 | explicit | read |
RFLAGS | implicit | write (NF=0) |
AND r/m8, imm8 NF AND r/m16/32/64, imm16/32 NF AND r/m16/32/64, imm8 NF | ||
r/m8/16/32/64 | explicit | read, write |
imm8/16/32 | explicit | read |
Flags
| When | OF | SF | ZF | AF | PF | CF |
|---|---|---|---|---|---|---|
| NF forms | ||||||
| Not affected | ||||||
| NDD forms | ||||||
| NF=0 | 0 | M | M | U | M | 0 |
| Other forms | ||||||
| 0 | M | M | U | M | 0 | |
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
Attributes
What else XED records about the forms. How to read.
AND m8, imm8AND m8, r8AND m16/32/64, imm16/32AND m16/32/64, imm8AND m16/32/64, r16/32/64- accepts a LOCK prefix
- LOCK forms
- locked: atomic read-modify-write; accepts XACQUIRE; accepts XRELEASE
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 |
|---|---|---|
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
- AAA
- AAD
- AAM
- AAS
- ADC
- ADD
- BOUND
- BSF
- BSR
- BSWAP
- BT
- BTC
- BTR
- BTS
- CALL
- CBW
- CDQ
- CDQE
- CLC
- CLD
- CLI
- CMC
- CMP
- CMPS
- CMPXCHG
- CMPXCHG8B
- CPUID
- CQO
- CWD
- CWDE
- DAA
- DAS
- DEC
- DIV
- ENTER
- IDIV
- IMUL
- IN
- INC
- INS
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 2A, page 3-60 (AND)
- Intel Advanced Performance Extensions (Intel APX) Architecture Specification, revision 9.0 (355828-009, August 2026)
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 2026)
- AMD64 Architecture Programmer's Manual, Volume 3: General-Purpose and System Instructions (24594, rev. 3.39, October 2026)
- Intel Architecture Instruction Set Extensions and Future Features Programming Reference (319433-062, June 2026)
- Intel 64 and IA-32 Architectures Optimization Reference Manual, Volume 1 (248966-051, October 2026)
- Software Optimization Guide for the AMD Zen5 Microarchitecture (58455, rev. 1.00, August 2024), Wayback Machine copy of AMD's ZIP
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.