MSA 011110 |
0111 |
df |
wt |
ws |
wd |
3RF 011011 |
6 |
4 |
1 |
5 |
5 |
5 |
6 |
FEXP2.df |
Vector Floating-Point Base 2 Exponentiation | |
FEXP2.W wd,ws,wt |
MSA |
Vector Floating-Point Base 2 Exponentiation |
FEXP2.D wd,ws,wt |
MSA |
Vector Floating-Point Base 2 Exponentiation |
Vector Floating-Point Base 2 Exponentiation
Vector floating-point base 2 exponentiation.
wd[i] = ws[i] * 2
wt[i]
The floating-point elements in vector ws are scaled, i.e. multiplied, by 2 to the power of integer elements in vector wt.
The result is written to vector wd.
The operation is the homogeneous scaleB() as defined by the IEEE Standard for Floating-Point Arithmetic 754TM2008.
The ws operands and wd results are values in floating-point data format df. The wt operands are values in integer data format df.
Data-dependent exceptions are poss ible as s pecified by the I EEE Standard for Floating-Point Arithmetic 754TM2008.
FEXP2.W for i in 0 .. WRLEN/32-1 WR[wd]32i+31..32i = Exp2FP(WR[ws]32i+31..32i, WR[wt]32i+31..32i) endfor FEXP2.D for i in 0 .. WRLEN/64-1 WR[wd]64i+63..64i = Exp2FP(WR[ws]64i+63..64i, WR[wt]64i+63..64i) endfor function Exp2FP(tt, ts, n) /* Implementation defined tt * 2ts operation. */ endfunction Exp2FP
Reserved Instruction Exception, MSA Disabled Exception, MSA Floating Point Exception.