vexptefp

Vector Exponentiate Estimate Floating Point

vexptefp VRT, VRB

Estimates the result of raising 2 to the power of each element in a vector.

Details

For vexptefp, the single-precision floating-point estimate of 2 raised to the power of each element in VSR[VRB+32] is placed into corresponding elements in VSR[VRT+32].

Pseudocode Operation

if MSR.VEC=0 then
    Vector_Unavailable()
do i = 0 to 3
    src ← VSR[VRB+32].word[i]
    VSR[VRT+32].word[i] ← bfp32_POWER2_ESTIMATE(src)
end

Programming Note

The result for various special cases of the source value is given below. Value Result −Infinity +0 −0 +1 +0 +1 +Infinity +Infinity NaN QNaN

Example

vexptefp v1, v3

Encoding

Binary Layout
0
0
VRT
6
VRB
11
0
31
 
Format VX-form
Opcode 0x100001A5
Extension VMX (AltiVec)
Registers Altered MSR

Operands

  • VRT
    Target Vector Register
  • VRB
    Source Vector Register