xvxexpdp

VSX Vector Extract Exponent Double-Precision

xvxexpdp XT,XB

Extracts the exponent from each double-precision floating-point value in a vector and places it into another vector.

Details

For xvxexpdp, the exponent field of each double-precision floating-point value in VSR[XB] is extracted and placed into VSR[XT].

Pseudocode Operation

if MSR.VSX=0 then VSX_Unavailable()
do i = 0 to 1
    src ←VSR[32×BX+B].dword[i]
    VSR[32×TX+T].dword[i] ←EXTZ64(src.bit[1:11])
end

Programming Note

This instruction extracts the exponent from each double-precision floating-point value in the source vector and stores it in the destination vector. Ensure that VSX is enabled; otherwise, a VSX_Unavailable exception will be raised. The operation processes two elements per vector register (64 bits each), extracting the 11-bit exponent field and zero-extending it to 64 bits.

Example

xvxexpdp vs1, vs3

Encoding

Binary Layout
T
0
0
6
B
11
475
16
BX
21
TX
30 31
 
Format XX2-form
Opcode 0xF000076C
Extension VSX

Operands

  • XT
    Target Vector Register
  • XB
    Source Vector Register