xscvspdp

Vector Scalar Convert Single-Precision to Double-Precision format Non-signalling

xscvspdp XT, XB

Converts a single-precision floating-point value in VSR[XB] to double-precision format and places the result into VSR[XT].

Details

Converts a single-precision floating-point value in the lower 32 bits of VSR[XB] to double-precision format and places the result in VSR[XT]. This is a scalar VSX instruction that operates on element 0 of the VSR. The instruction does not signal on NaN or other exceptional floating-point conditions.

Pseudocode Operation

VSR[XT].element[0] ← ConvertSP_to_DP(VSR[XB].element[0])

Programming Note

xscvspdp can be used to convert a single-precision value in single-precision format to double-precision format for use by Floating-Point scalar single-precision operations. Previous versions of the architecture allowed the contents of doubleword 1 of the result register to be undefined. However, all processors that support this instruction write 0s into doubleword 1 of the result register, as is required by this version of the architecture.

Example

xscvspdp vs1, vs3

Encoding

Binary Layout
60
6
XT
11
0
16
XB
21
408
30 31
 
Format XX2-form
Opcode 0xF0000524
Extension VSX
Registers Altered FPSCR, VXSNAN

Operands

  • XT
    Target
  • XB
    Source