xvcvuxdsp

VSX Vector Convert with round Unsigned Doubleword to Single-Precision format

xvcvuxdsp VS32,VS64

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.

Pseudocode Operation

Not available in specification

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

xvcvuxdsp vs1, vs1

Encoding

Binary Layout
111100
0
VS32
6
//
11
VS64
16
11010
21
1000
31
 
Format XX2-form
Opcode 0x7F800000
Extension VSX

Operands

  • VS32
    Target Vector Register
  • VS64
    Source Vector Register