Saturating Advanced 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,
x is the result of the operation.
Table 9-3 Advanced SIMD saturation ranges
|Data type||Saturation range of
|Signed byte (
|Signed halfword (
|Signed word (
|Signed doubleword (
|Unsigned byte (
|Unsigned halfword (
|Unsigned word (
|Unsigned doubleword (
Saturating advanced SIMD arithmetic instructions set the QC bit in the floating-point status register (FPSCR in AArch32 or FPSR in AArch64) to indicate that saturation has occurred.
Saturating instructions are specified using a
In A32/T32 Advanced SIMD instructions, this is inserted between
V and the instruction mnemonic, or between
the S or U and the mnemonic in A64 Advanced SIMD instructions.