xsabsqp

VSX Scalar Absolute Quad-Precision

xsabsqp vD, vB

Computes the absolute value of a quad-precision floating-point number.

Details

The xsabsqp instruction computes the absolute value of a quad-precision floating-point number stored in VSR[VRB+32] and places the result into VSR[VRT+32]. If the VSX facility is not available, it raises an exception.

Pseudocode Operation

RT <- abs(RA)

Programming Note

When Rc=1, CR1 is set from the FPSCR[FX, FEX, VX, OX] bits immediately after the operation completes.

Example

xsabsqp vd, vb

Encoding

Binary Layout
111111
0
vD
6
00000
30
vB
31
11001
00100
Rc
 
Format X-form
Opcode 0xFC000604
Extension VSX

Operands

  • vD
    Target
  • vB
    Source
  • RT
    Target Vector Register
  • RA
    Source Vector Register