Encoding:

MSA

011110

100

df

wt

ws

wd

3R

001111

6

3

2

5

5

5

6

Format:

CLE_S.df 

Vector Compare Signed Less Than or Equal

CLE_S.B wd,ws,wt

MSA

Vector Compare Signed Less Than or Equal

CLE_S.H wd,ws,wt

MSA

Vector Compare Signed Less Than or Equal

CLE_S.W wd,ws,wt

MSA

Vector Compare Signed Less Than or Equal

CLE_S.D wd,ws,wt

MSA

Vector Compare Signed Less Than or Equal

Purpose:

Vector Compare Signed Less Than or Equal

Vector to vector compare for signed less or equal; if true all destination bits are set, otherwise clear.

Description:

wd[i] = (ws[i] <= wt[i])

Set all bits to 1 in wd elements if the corresponding ws elements are signed less than or equal to wt elements, otherwise set all bits to 0.

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

Restrictions:

No data-dependent exceptions are possible.

Operation:

CLE_S.B:
   for i in 0 .. WRLEN/8-1
      c = WR[ws]8i+7..8i <= WR[wt]8i+7..8i
      WR[wd]8i+7..8i = c8
   endfor
CLE_S.H:
   for i in 0 .. WRLEN/16-1
      c = WR[ws]16i+15..16i <= WR[wt]16i+15..16i
      WR[wd]16i+15..16i = c16
   endfor
CLE_S.W:
   for i in 0 .. WRLEN/32-1
      c = WR[ws]32i+31..32i <= WR[wt]32i+31..32i
      WR[wd]32i+31..32i = c32
   endfor
CLE_S.D:
   for i in 0 .. WRLEN/64-1
      c = WR[ws]64i+63..64i <= WR[wt]64i+63..64i
      WR[wd]64i+63..64i = c64
   endfor

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.