xvcvspuxds

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

xvcvspuxds XT,XB

Converts a single-precision floating-point value to an unsigned doubleword integer, rounding according to the current rounding mode.

Details

Converts single-precision floating-point elements in XB to unsigned 64-bit integer elements in XT, using the current rounding mode. This is a VSX instruction that processes elements independently. No condition registers or status fields are affected.

Pseudocode Operation

for i in 0 to 1 do
  XT[i*64:(i+1)*64-1] ← CVTSP_TO_UI64(XB[i*32:(i+1)*32-1])
end for

Programming Note

xvcvspuxds rounds using Round towards Zero rounding mode. For other rounding modes, software must use a Round to Single-Precision Integer instruction that corresponds to the desired rounding mode, including xvrspic which uses the rounding mode specified by RN.

Example

xvcvspuxds vs1, vs3

Encoding

Binary Layout
60
0
XT
6
/
11
XB
16
1568
21
 
Format XX2-form
Opcode 0xF0000620
Extension VSX
Registers Altered FPSCR, VXSNAN, VXCVI, XX

Operands

  • XT
    Target Vector Register
  • XB
    Source Vector Register
  • VRT
    Target Vector Register
  • VRA
    Source Vector Register
  • VRB
    Source Vector Register