Instruction
BNDCU
Raises #BR if an address is above the upper bound of an MPX bound register, which keeps it in one's complement; MPX has been removed.
- Extensions
- Forms
- 3 (3 Legacy)
- Data
- Intel XED v2026.08.23
Forms
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
BNDCU bnd, mon = 0 # CPUID: no MPX: a hint NOP
if cpuid_leaf(7, 0)[1] >> 14 & 1:
cfg = bndcfgu if CPL == 3 else bndcfgs
on = cr4 >> 18 & 1 and cfg & 1 # CR4.OSXSAVE, BNDCFGx.EN
if on and xcr0 >> 3 & 3 == 3: # XCR0's BNDREGS, BNDCSR
if bnd.number > 3: # BND4 to BND15
fault(UD)
b = bnd.read()
ub = low(~(b >> 64), 64) # the bound: UB complemented
if src.address > ub: # above the upper bound
bound_fault(1)
# src's address is computed as LEA does, and nothing is read
# from it. A check of an access of n bytes at p takes p + n - 1Run on AMD Zen 5 (EPYC 9645): 1 case. It ran where CPUID reported no MPX.
on = 0 # CPUID: no MPX: a hint NOP
if cpuid_leaf(7, 0)[1] >> 14 & 1:
cfg = bndcfgu if CPL == 3 else bndcfgs
on = cr4 >> 18 & 1 and cfg & 1 # CR4.OSXSAVE, BNDCFGx.EN
if on and xcr0 >> 3 & 3 == 3: # XCR0's BNDREGS, BNDCSR
if bnd.number > 3: # BND4 to BND15
fault(UD)
b = bnd.read()
ub = low(~(b >> 64), 64) # the bound: UB complemented
if src.read() > ub: # above the upper bound
bound_fault(1)Run on AMD Zen 5 (EPYC 9645): 1 case. It ran where CPUID reported no MPX.
on = 0 # CPUID: no MPX: a hint NOP
if cpuid_leaf(7, 0)[1] >> 14 & 1:
cfg = bndcfgu if CPL == 3 else bndcfgs
on = cr4 >> 18 & 1 and cfg & 1 # CR4.OSXSAVE, BNDCFGx.EN
if on and xcr0 >> 3 & 3 == 3: # XCR0's BNDREGS, BNDCSR
if bnd.number > 3: # BND0 to BND3 only
fault(UD)
b = bnd.read()
ub = low(~(b >> 64), 32) # 32 bits, complemented
if src.read() > ub: # above the upper bound
bound_fault(1)Not run on a processor: the form does not exist in 64-bit mode, where the probe runs.
Operands
| Operand | Kind | Action |
|---|---|---|
BNDCU bnd, m | ||
bnd | explicit | read |
m | explicit | address only |
BNDCU bnd, r32 not in 64-bit mode BNDCU bnd, r64 64-bit mode only | ||
bnd | explicit | read |
r32/64 | explicit | read |
Flags
None: XED records no flag that the forms test or change.
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 |
|---|---|---|
MPX | MPX | Skylake, Comet Lake, Cannon Lake, Skylake-SP, Cascade Lake, Cooper Lake, Goldmont, Goldmont Plus, Tremont, Snow Ridge |
More MPX instructions
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2A, page 3-92 (BNDCU/
BNDCN) - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 1 (253665-093, September 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 text is our own.