Opcode/Instruction | Op/En | 64/32 bit Mode Support | CPUID Feature Flag | Description |
---|---|---|---|---|
F3 0F 1B /r BNDMK bnd, m32 | RM | NE/V | MPX | Make lower and upper bounds from m32 and store them in bnd. |
F3 0F 1B /r BNDMK bnd, m64 | RM | V/NE | MPX | Make lower and upper bounds from m64 and store them in bnd. |
Op/En | Operand 1 | Operand 2 | Operand 3 |
RM | ModRM:reg (w) | ModRM:r/m (r) | NA |
Makes bounds from the second operand and stores the lower and upper bounds in the bound register bnd. The second operand must be a memory operand. The content of the base register from the memory operand is stored in the lower bound bnd.LB. The 1's complement of the effective address of m32/m64 is stored in the upper bound b.UB. Computation of m32/m64 has identical behavior to LEA.
This instruction does not cause any memory access, and does not read or write any flags.
If the instruction did not specify base register, the lower bound will be zero. The reg-reg form of this instruction retains legacy behavior (NOP).
RIP relative instruction in 64-bit will #UD.
BND.LB (cid:197) SRCMEM.base; IF 64-bit mode Then BND.UB (cid:197) NOT(LEA.64_bits(SRCMEM)); ELSE BND.UB (cid:197) Zero_Extend.64_bits(NOT(LEA.32_bits(SRCMEM))); FI;
BNDMKvoid * _bnd_set_ptr_bounds(const void * q, size_t size);
None
#UD |
If ModRM is RIP relative. If the LOCK prefix is used. If ModRM.r/m encodes BND4-BND7 when Intel MPX is enabled. If 67H prefix is not used and CS.D=0. If 67H prefix is used and CS.D=1. |
#UD |
If ModRM is RIP relative. If the LOCK prefix is used. If ModRM.r/m encodes BND4-BND7 when Intel MPX is enabled. If 16-bit addressing is used. |
#UD |
If ModRM is RIP relative. If the LOCK prefix is used. If ModRM.r/m encodes BND4-BND7 when Intel MPX is enabled. If 16-bit addressing is used. |
Same exceptions as in protected mode.
#UD | If ModRM.r/m and REX encodes BND4-BND15 when Intel MPX is enabled. |
#SS(0) | If the memory address referencing the SS segment is in a non-canonical form. |
#GP(0) | If the memory address is in a non-canonical form. |
Same exceptions as in protected mode.