Encoding:

MSA

011110

101

df

wt

ws

wd

3R

010010

6

3

2

5

5

5

6

Format:

DIV_U.df 

Vector Unsigned Divide

DIV_U.B wd,ws,wt

MSA

Vector Unsigned Divide

DIV_U.H wd,ws,wt

MSA

Vector Unsigned Divide

DIV_U.W wd,ws,wt

MSA

Vector Unsigned Divide

DIV_U.D wd,ws,wt

MSA

Vector Unsigned Divide

Purpose:

Vector Unsigned Divide

Vector unsigned divide.

Description:

wd[i] = ws[i] udiv wt[i]

The unsigned integer elements in vector ws are divided by unsigned 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_U.B
   for i in 0 .. WRLEN/8-1
         WR[wd]8i+7..8i = WR[ws]8i+7..8i udiv WR[wt]8i+7..8i
   endfor
DIV_U.H
   for i in 0 .. WRLEN/16-1
      WR[wd]16i+15..16i = WR[ws]16i+15..16i udiv WR[wt]16i+15..16i
   endfor
DIV_U.W
   for i in 0 .. WRLEN/32-1
      WR[wd]32i+31..32i = WR[ws]32i+31..32i udiv WR[wt]32i+31..32i
   endfor
DIV_U.D
   for i in 0 .. WRLEN/64-1
      WR[wd]64i+63..64i = WR[ws]64i+63..64i udiv WR[wt]64i+63..64i
   endfor

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.