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.

Details

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.

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

Example

xvcvspsxds vs1, vs3

Encoding

Binary Layout
110000
0
T
6
B
11
000000
16
000000
21
000000
26
BX
31
TX
 
Format XX2-form
Opcode 0xF0000660
Extension VSX
Registers Altered FPSCR, VXSNAN, VXCVI, XX

Operands

  • XT
    Target
  • XB
    Source