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 type||Saturation range of |
|Signed byte (||–27 <= |
|Signed halfword (||–215 <= |
|Signed word (||–231 <= |
|Signed doubleword (||–263 <= |
|Unsigned byte (||0 <= |
|Unsigned halfword (||0 <= |
|Unsigned word (||0 <= |
|Unsigned doubleword (||0 <= |
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.