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.
Encoding
Binary Layout
T
0
0
6
B
11
475
16
BX
21
TX
30 31
Operands
-
XT
Target Vector Register -
XB
Source Vector Register
Example
xvxexpdp vs1, vs3
Related
More in VSX
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
For xvxexpdp, the exponent field of each double-precision floating-point value in VSR[XB] is extracted and placed into VSR[XT].
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.