Encoding:

MSA

011110

11000000

df

rs

wd

2R

011110

6

8

2

5

5

6

Format:

FILL.df 

Vector Fill from GPR

FILL.B wd,rs

MSA

Vector Fill from GPR

FILL.H wd,rs

MSA

Vector Fill from GPR

FILL.W wd,rs

MSA

Vector Fill from GPR

FILL.D wd,rs

MIPS64, MSA

Vector Fill from GPR

Purpose:

Vector Fill from GPR

Vector elements replicated from GPR.

Description:

wd[i] = rs

Replicate GPR rs value to all elements in vector wd. If the source GPR is wider than the destination data format, the destination's elements will be set to the least significant bits of the GPR.

Restrictions:

No data-dependent exceptions are possible.

Operation:

FILL.B
   for i in 0 .. WRLEN/8-1
      WR[wd]8i+7..8i = GPR[rs]7..0
   endfor
FILL.H
   for i in 0 .. WRLEN/16-1
      WR[wd]16i+15..16i = GPR[rs]15..0
   endfor
FILL.W
   for i in 0 .. WRLEN/32-1
      WR[wd]32i+31..32i = GPR[rs]31..0
   endfor
FILL.D
   for i in 0 .. WRLEN/64-1
      WR[wd]64i+63..64i = GPR[rs]63..0
   endfor

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.