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
Operands
-
VRT
Target Vector Register -
VRB
Source Vector Register
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
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