MSA 011110 |
110011111 |
df |
ws |
wd |
2RF 011110 |
6 |
9 |
1 |
5 |
5 |
6 |
FFINT_U.df |
Vector Floating-Point Convert from Unsigned Integer | |
FFINT_U.W wd,ws |
MSA |
Vector Floating-Point Convert from Unsigned Integer |
FFINT_U.D wd,ws |
MSA |
Vector Floating-Point Convert from Unsigned Integer |
Vector Floating-Point Convert from Unsigned Integer
Vector floating-point convert from unsigned integer.
wd[i] = from_int_u(ws[i])
The unsigned 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_U.W for i in 0 .. WRLEN/32-1 f = FromIntUnsignedFP(WR[ws]32i+31..32i, 32) WR[wd]32i+31..32i = f endfor FFINT_U.D for i in 0 .. WRLEN/64-1 f = FromIntUnsignedFP(WR[ws]64i+63..64i, 64) WR[wd]64i+63..64i = f endfor function FromIntUnsignedFP(tt, n) /* Implementation defined unsigned integer to floating-point conversion. */ endfunction FromIntUnsignedFP
Reserved Instruction Exception, MSA Disabled Exception, MSA Floating Point Exception.