MSA 011110 |
110011110 |
df |
ws |
wd |
2RF 011110 |
6 |
9 |
1 |
5 |
5 |
6 |
FFINT_S.df |
Vector Floating-Point Round and Convert from Signed Integer | |
FFINT_S.W wd,ws |
MSA |
Vector Floating-Point Round and Convert from Signed Integer |
FFINT_S.D wd,ws |
MSA |
Vector Floating-Point Round and Convert from Signed Integer |
Vector Floating-Point Round and Convert from Signed Integer
Vector floating-point round and convert from signed integer.
wd[i] = from_int_s(ws[i])
The signed integer elements in ws are converted to floating-point values. The result is written to vector wd.
The integer to floating-point conversion operation is defined by the IEEE Standard for Floating-Point Arithmetic
754TM-2008.
The operands are values in integer data format df. The 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.
FFINT_S.W for i in 0 .. WRLEN/32-1 f = FromIntSignedFP(WR[ws]32i+31..32i, 32) WR[wd]32i+31..32i = f endfor FFINT_S.D for i in 0 .. WRLEN/64-1 f = FromIntSignedFP(WR[ws]64i+63..64i, 64) WR[wd]64i+63..64i = f endfor function FromFixPointFP(tt, n) /* Implementation defined signed integer to floating-point conversion. */ endfunction FromFixPointFP
Reserved Instruction Exception, MSA Disabled Exception, MSA Floating Point Exception.