Encoding:

MSA

011110

100

df

wt

ws

wd

3R

010010

6

3

2

5

5

5

6

Format:

DIV_S.df 

Vector Signed Divide

DIV_S.B wd,ws,wt

MSA

Vector Signed Divide

DIV_S.H wd,ws,wt

MSA

Vector Signed Divide

DIV_S.W wd,ws,wt

MSA

Vector Signed Divide

DIV_S.D wd,ws,wt

MSA

Vector Signed Divide

Purpose:

Vector Signed Divide

Vector signed divide.

Description:

wd[i] = ws[i] div wt[i]

The signed integer elements in vector ws are divided by signed integer elements in vector wt. The result is written to vector wd. If a divisor element vector wt is zero, the result value is UNPREDICTABLE.

The operands and results are values in integer data format df.

Restrictions:

No data-dependent exceptions are possible.

Operation:

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

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.