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
Operands
-
XT
Target -
XB
Source
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
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.