UQADD
Add unsigned elements with saturation
Add corresponding unsigned elements and clamp at the selected element width.
Similar operations on x86-64:PADDUSB_mm_adds_epu8
| Form | Bits | Requires | Encoding |
|---|---|---|---|
UQADD Vd.16B,Vn.16B,Vm.16B | 128 | AdvSIMD | — |
UQADD Vd.8H,Vn.8H,Vm.8H | 128 | AdvSIMD | — |
UQADD Vd.4S,Vn.4S,Vm.4S | 128 | AdvSIMD | — |
Explore the operation
The interactive explorer is loading. The operation and reference details are available below.
Operation#
dst[i] = min(a[i] + b[i], 255)
if any sum > 255: FPSR.QC = 1What to watch for
- Saturation sets the cumulative FPSR.QC bit. It stays set until explicitly cleared.
Corresponding intrinsics#
uint8x16_t vqaddq_u8( uint8x16_t a, uint8x16_t b)Documented mapping
UQADD Vd.16B,Vn.16B,Vm.16B
Architectural details#
- Flags
- NZCV unchanged. Saturation sets the sticky FPSR.QC bit.
- Destination
- Writes all 128 bits of the selected V destination register.
- Encoding
- Encoding details have not been imported for this form.
- Operands
a -> Vn.16B b -> Vm.16BVdwrite · 128 bits (16 × 8) · unsignedaread · 128 bits (16 × 8) · unsignedbread · 128 bits (16 × 8) · unsigned
- Coverage
- Selected 128-bit AdvSIMD byte, halfword and word arrangements. Scalar forms, if present, have a separate variant. Other vector arrangements and SVE/SME are outside this variant.
Exception information & execution requirements
Complete exception conditions have not been imported.
Availability depends on execution-level controls for AdvSIMD. This ACLE import does not contain an exhaustive architectural exception list.
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.
Arm · advsimd.md
- Revision
3a8fb2b1145b27ba0a9110ed32f3a6cfdad6c002- SHA-256
722dcf758d7a6dbbab54210d55bbce73a6db7691bb4092112375bf096563fd73- Terms
- CC-BY-SA-4.0 AND Apache-Patent-License