SQXTN
Narrow with signed saturation
Narrow with signed saturation in the selected vector arrangement.
Similar operations on other architectures:PACKSSWB_mm_packs_epi16PACKSSDW_mm_packs_epi32
| Form | Bits | Requires | Encoding |
|---|---|---|---|
SQXTN Vd.8B,Vn.8H | 64 | AdvSIMD | — |
SQXTN Vd.4H,Vn.4S | 64 | AdvSIMD | — |
Operation#
Pseudo-C · selected form
value = a[i]
dst[i] = clamp(value, -128, 127)
if any value was clamped: FPSR.QC = 1What to watch for
- The “2” form that fills the upper half while preserving the lower half is not selected here.
- FPSR.QC is cumulative: saturation sets it, while a nonsaturating operation leaves its previous value unchanged.
Corresponding intrinsics#
Architectural details#
- Flags
- NZCV unchanged. Saturation sets the sticky FPSR.QC bit.
- Destination
- Writes the low 64 bits of Vd and clears Vd[127:64].
- Encoding
- Encoding details have not been imported for this form.
- Operands
a -> Vn.8HVdwrite · 64 bits (8 × 8) · signedVnread · 128 bits (8 × 16) · signed
- Coverage
- Selected SQXTN Vd.8B,Vn.8H arrangement.
Exception information & execution requirements
Complete exception conditions have not been imported.
AdvSIMD/FP access can be trapped by execution-level controls. The ACLE source does not provide an exhaustive exception model.
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.
Architectural references for this form
Arm · advsimd.md
- Revision
3a8fb2b1145b27ba0a9110ed32f3a6cfdad6c002- SHA-256
722dcf758d7a6dbbab54210d55bbce73a6db7691bb4092112375bf096563fd73- Terms
- CC-BY-SA-4.0 AND Apache-Patent-License