PAND
/ VPANDBitwise AND
Keep a bit only when it is set in both inputs.
Similar operations on Arm64:ANDvandq_u8
| Form | Bits | Requires | Encoding |
|---|---|---|---|
PAND xmm1, xmm2 | 128 | SSE2 | 66 0F DB /r |
VPAND xmm1, xmm2, xmm3 | 128 | AVX | VEX.L0.66.0F.WIG DB /r |
VPAND ymm1, ymm2, ymm3 | 256 | AVX2 | VEX.L1.66.0F.WIG DB /r |
Explore the operation
The interactive explorer is loading. The operation and reference details are available below.
Operation#
Pseudo-C · selected form
dst = a AND bExact upstream semantics
Standard variant
let result := src1 and src2;What to watch for
- No element type or signedness is implied by the bitwise operation.
Corresponding intrinsics#
Architectural details#
- Flags
- Arithmetic flags unchanged.
- Destination
- Writes the low 128 bits; upper vector-register bits are preserved.
- Encoding
66 0F DB /r- Operands
xmm1read / write · 128 bits (16 × 8)xmm2read · 128 bits (16 × 8)
- Coverage
- Selected register-only 128/256-bit forms. Memory operands, MMX, and EVEX/AVX-512 forms are outside this sample.
Exception information & execution requirements
#NM#UD
Feature availability alone does not guarantee execution: OS state and execution-level controls also apply. Use the linked architecture documentation for the full exception conditions.
Sources & provenance#
Technical fields are imported from pinned upstream files. Explanations and explorer behavior are maintained separately.
Intel · PAND-Logical-AND.xml
- Revision
4ebe7f0ac1bd00f46244c49bb72c503ce368def7- SHA-256
30155687e234173d33ffb0f287e8361965ea2d97099428206d6dfdc99e88de7e- Terms
- Intel SDM terms; see License.md
Intel · intrinsics.xml
- Revision
4ebe7f0ac1bd00f46244c49bb72c503ce368def7- SHA-256
6762a50652a35ef663fd532ed83b789d19bbc2ac7e94b1771f19d666d96c2c30- Terms
- Intel SDM terms; see License.md