xvcvuxdsp
VSX Vector Convert with round Unsigned Doubleword to Single-Precision format
Converts an unsigned doubleword to a single-precision floating-point value with rounding.
Details
Each element of the source vector register VS64 is treated as an unsigned doubleword integer and converted to single-precision floating-point format using the current rounding mode. The two resulting single-precision values are placed in the upper word of each doubleword element of the target vector register VS32, with the lower words set to zero.
Programming Note
This instruction is useful for converting unsigned 64-bit integers to single-precision floating-point numbers. Ensure that the source vector elements are properly aligned and consider the current rounding mode's effect on conversion results. The target vector register will have its lower words zeroed out, so handle this if you need to preserve data in those positions.
Example
Encoding
Operands
-
VS32
Target Vector Register -
VS64
Source Vector Register