xvcvdpsxds

VSX Vector Convert Double-Precision to Signed Doubleword for- mat XX2-form

xvcvdpsxds XT, XB

Converts a double-precision floating-point value to a signed doubleword integer, rounding according to the current rounding mode.

Details

Converts two double-precision floating-point values in VSR[XB] to signed 64-bit integer format (doubleword) and places the results in VSR[XT]. Rounding is performed according to the current rounding mode in FPSCR. On overflow or invalid operation, the result is saturated to the maximum or minimum signed 64-bit integer.

Pseudocode Operation

VSR[XT].element[0] ← ConvertDP_to_SXD_Round(VSR[XB].element[0], RoundMode)
VSR[XT].element[1] ← ConvertDP_to_SXD_Round(VSR[XB].element[1], RoundMode)

Programming Note

xvcvdpsxds rounds using Round towards Zero rounding mode. For other rounding modes, software must use a Round to Double-Precision Integer instruction that corresponds to the desired rounding mode.

Example

xvcvdpsxds vs1, vs3

Encoding

Binary Layout
60
0
XT
6
/
11
XB
16
472
21
 
Format XX2-form
Opcode 0xF0000760
Extension VSX
Registers Altered FPSCR, VSR[XT], VSR[XB]

Operands

  • XT
    Target
  • XB
    Source