vexptefp

Vector Exponentiate Estimate Floating Point

vexptefp VRT, VRB

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

Encoding

Binary Layout
0
0:5
VRT
6:10
VRB
11:30
0
31
 
Format VX-form
Opcode 0x1000018A
Extension VMX (AltiVec)

Operands

  • VRT
    Target Vector Register
  • VRB
    Source Vector Register

Example

vexptefp v1, v3

Registers Altered

MSR

Related

More in VMX (AltiVec)

Reference

Description

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].

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