MSA 011110 |
110010011 |
df |
ws |
wd |
2RF 011110 |
6 |
9 |
1 |
5 |
5 |
6 |
FSQRT.df |
Vector Floating-Point Square Root | |
FSQRT.W wd,ws |
MSA |
Vector Floating-Point Square Root |
FSQRT.D wd,ws |
MSA |
Vector Floating-Point Square Root |
Vector Floating-Point Square Root
Vector floating-point square root.
wd[i] = sqrt(ws[i])
The square roots of floating-point elements in vector ws are written to vector wd.
The square root operation is defined by the IEEE Standard for Floating-Point Arithmetic 754TM-2008.
The operands and results are values in floating-point data format df.
Data-dependent exceptions are poss ible as s pecified by the I EEE Standard for Floating-Point Arithmetic 754TM2008.
FSQRT.W for i in 0 .. WRLEN/32-1 f = SquareRootFP(WR[ws]32i+31..32i, 32) WR[wd]32i+31..32i = f endfor FSQRT.D for i in 0 .. WRLEN/64-1 f = SquareRootFP(WR[ws]64i+63..64i, 64) WR[wd]64i+63..64i = f endfor function SquareRootFP(tt, ts, n) /* Implementation defined square root operation. */ endfunction SquareRootFP
Reserved Instruction Exception, MSA Disabled Exception, MSA Floating Point Exception.