xsnegqp

VSX Scalar Negate Quad-Precision

xsnegqp vD, vB

Negates a 128-bit Quad float.

Details

The VSX Scalar Negate Quad-Precision instruction negates the quad-precision floating-point value in a source register and stores the result in a destination register. The operation is performed on the entire quad-precision value, which spans two doublewords.

Pseudocode Operation

if MSR.VSX=0 then VSX_Unavailable()
VSR[VRT+32] ←bfp128_NEGATE(VSR[VRB+32])

Programming Note

This instruction is used to negate a quad-precision floating-point value. Ensure that the VSX (Vector Scalar Extensions) are enabled by checking and setting the appropriate bit in the MSR register. The operation affects two consecutive doublewords, so ensure proper alignment of the source register.

Example

xsnegqp vd, vb

Encoding

Binary Layout
63
0
vD
6
0
11
vB
16
804
21
/
31
 
Format X-form
Opcode 0xFC000644
Extension VSX
Registers Altered MSR

Operands

  • vD
    Target
  • vB
    Source