Encoding:

MSA

011110

101

df

u5

ws

wd

I5

000111

6

3

2

5

5

5

6

Format:

CLEI_U.df 

Immediate Compare Unsigned Less Than or Equal

CLEI_U.B wd,ws,u5

MSA

Immediate Compare Unsigned Less Than or Equal

CLEI_U.H wd,ws,u5

MSA

Immediate Compare Unsigned Less Than or Equal

CLEI_U.W wd,ws,u5

MSA

Immediate Compare Unsigned Less Than or Equal

CLEI_U.D wd,ws,u5

MSA

Immediate Compare Unsigned Less Than or Equal

Purpose:

Immediate Compare Unsigned Less Than or Equal

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

Description:

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

Set all bits to 1 in wd elements if the corresponding ws element is unsigned less than or equal to the 5-bit unsigned immediate u5, 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:

CLEI_U.B
   t = 03 || u54..0
   for i in 0 .. WRLEN/8-1
      c = (0 || WR[ws]8i+7..8i) <= (0 || t)
      WR[wd]8i+7..8i = c8
   endfor
CLEI_U.H
   t = 011 || u54..0
   for i in 0 .. WRLEN/16-1
      c = (0 || WR[ws]16i+15..16i) <= (0 || t)
      WR[wd]16i+15..16i = c16
   endfor
CLEI_U.W
   t = 027 || u54..0
   for i in 0 .. WRLEN/32-1
      c = WR[ws]32i+31..32i <= (0 || t)
      WR[wd]32i+31..32i = c32
   endfor
CLEI_U.D
   t = 059 || u54..0
   for i in 0 .. WRLEN/64-1
      c = WR[ws]64i+63..64i <= (0 || t)
      WR[wd]64i+63..64i = c64
   endfor

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.