vctuxs
Vector Convert to Unsigned Fixed-Point Word Saturate
vctuxs vD, vB, UIM
Converts 4 floats to 4 unsigned 32-bit integers.
Details
The vctuxs instruction converts each element of the source vector VRB from a floating-point format to an unsigned fixed-point word format, using saturation if necessary. The conversion is based on the rounding mode specified by UIM.
Pseudocode Operation
Programming Note
The vctuxs instruction converts floating-point elements to unsigned fixed-point words with saturation. Ensure the vector facility is enabled by checking and setting MSR.VEC. Handle exceptions for invalid operations or overflow carefully. The conversion respects the rounding mode specified by UIM, so verify its configuration for accurate results.
Example
vctuxs vd, vb, uim
Encoding
Binary Layout
4
0
vD
6
UIM
11
vB
16
906
21
Operands
-
vD
Target -
vB
Source -
UIM
Fraction bits