xvcvspsxds

Vector Convert with round to zero Single-Precision to Signed Doubleword format XX2-form

xvcvspsxds XT, XB

Converts single-precision floating-point values in a vector to signed doublewords, rounding towards zero.

Encoding

Binary Layout
110000
T
B
000000
000000
000000
BX
TX
 
Format XX2-form
Opcode 0xF0000660
Extension VSX

Operands

  • XT
    Target
  • XB
    Source

Example

xvcvspsxds vs1, vs3

Registers Altered

FPSCR, VXSNAN, VXCVI, XX

Related

More in VSX

Reference

Description

Converts single-precision floating-point values in VSR[XB] to signed 64-bit integer format (doubleword) and places the results in VSR[XT], rounding towards zero (truncation). Only the first two single-precision elements are converted; results are placed in the two doubleword elements of the target.

Operation

VSR[XT].element[0] ← ConvertSP_to_SXD_Truncate(VSR[XB].element[0])
VSR[XT].element[1] ← ConvertSP_to_SXD_Truncate(VSR[XB].element[1])

Programming Note

xvcvspsxds 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.