You copied the Doc URL to your clipboard.

SaturatingAdvanced SIMD instructions

Saturating instructions saturate the result to the value of the upper limit or lower limit if the result overflows or underflows.

The saturation limits depend on the datatype of the instruction. The following table shows the ranges that Advanced SIMD saturating instructions saturate to, where x is the result of the operation.

Table 9-3 Advanced SIMD saturation ranges

Data typeSaturation range of x
Signed byte (S8)–27 <= x <27
Signed halfword (S16)–215 <= x <215
Signed word (S32)–231 <= x <231
Signed doubleword (S64)–263 <= x <263
Unsigned byte (U8)0 <= x < 28
Unsigned halfword (U16)0 <= x < 216
Unsigned word (U32)0 <= x < 232
Unsigned doubleword (U64)0 <= x < 264

Saturating advanced SIMD arithmetic instructions set the QCbit in the floating-point status register (FPSCR in AArch32 or FPSRin AArch64) to indicate that saturation has occurred.

Saturating instructions are specified using a Q prefix.In A32/T32 Advanced SIMD instructions, this is inserted betweenthe V and the instruction mnemonic, or betweenthe S or U and the mnemonic in A64 Advanced SIMD instructions.

Related reference