vctsxs
Vector Convert to Signed Fixed-Point Word Saturate
Converts a vector of floating-point values to signed fixed-point integers with rounding towards zero and saturation.
Details
For vctsxs, each element in the source vector VRB is converted to a signed fixed-point integer using the specified scale factor UIM. The result is saturated if it exceeds the range of a 32-bit signed integer.
Pseudocode Operation
Programming Note
The vctsxs instruction converts each element of the source vector to a signed fixed-point integer using the specified scale factor. Ensure that the scale factor is appropriate for your data range to avoid saturation. This instruction operates at user privilege level and will raise an exception if the VEC bit in the MSR register is not set.
Extended Mnemonics
| Extended Mnemonic | Equivalent Instruction |
|---|---|
Example
Encoding
Operands
-
vD
Target -
vB
Source -
UIM
Fraction bits -
VRT
Target Vector Register -
VRB
Source Vector Register