Encoding:

MSA

011110

110011110

df

ws

wd

2RF

011110

6

9

1

5

5

6

Format:

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

Purpose:

Vector Floating-Point Round and Convert from Signed Integer

Vector floating-point round and convert from signed integer.

Description:

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.

Restrictions:

Data-dependent exceptions are poss ible as s pecified by the I EEE Standard for Floating-Point Arithmetic 754TM2008.

Operation:

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

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception, MSA Floating Point Exception.