Encoding:

MSA

011110

110

df

s10

wd

I10

000111

6

3

2

10

5

6

Format:

LDI.df 

Immediate Load

LDI.B wd,s10

MSA

Immediate Load

LDI.H wd,s10

MSA

Immediate Load

LDI.W wd,s10

MSA

Immediate Load

LDI.D wd,s10

MSA

Immediate Load

Purpose:

Immediate Load

Immediate value replicated across all destination elements.

Description:

wd[i] = s10

The signed immediate s10 is replicated in all wd elements. For byte elements, only the least significant 8 bits of s10 will be used.

Restrictions:

No data-dependent exceptions are possible.

Operation:

LDI.B
   t = s107..0
   for i in 0 .. WRLEN/8-1
      WR[wd]8i+7..8i = t
   endfor
LDI.H
   t = (s109)6 || s109..0
   for i in 0 .. WRLEN/16-1
      WR[wd]16i+15..16i = t
   endfor
LDI.W
   t = (s109)22 || s109..0
   for i in 0 .. WRLEN/32-1
      WR[wd]32i+31..32i = t
   endfor
LDI.D
   t = (s109)54 || s109..0
   for i in 0 .. WRLEN/64-1
      WR[wd]64i+63..64i = t
   endfor

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.