xsabsqp

VSX Scalar Absolute Quad-Precision

xsabsqp vD, vB

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

Encoding

Binary Layout
111111
0:5
vD
6:8
00000
9:10
vB
11:15
11001
16:20
00100
21:30
Rc
31
 
Format X-form
Opcode 0xFC000648
Extension VSX

Operands

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

Example

xsabsqp vd, vb

Related

More in VSX

Reference

Description

Computes the absolute value of a 128-bit quad-precision floating-point number in VSR vB by clearing the sign bit and stores the result in VSR vD. This VSX instruction does not modify FPSCR exception flags or condition registers.

Operation

vD ← vB with sign bit cleared

Programming Note

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