Encoding:

MSA

011110

00

i8

ws

wd

I8

000000

6

2

8

5

5

6

Format:

ANDI.B 

Immediate Logical And

ANDI.B wd,ws,i8

MSA

Immediate Logical And

Purpose:

Immediate Logical And

Immediate by vector logical and.

Description:

wd[i] = ws[i] AND i8

Each byte element of vector ws is combined with the 8-bit immediate i8 in a bitwise logical AND operation. The result is written to vector wd.

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

Restrictions:

No data-dependent exceptions are possible.

Operation:

 for i in 0 .. WRLEN/8-1
   WR[wd]8i+7..8i = WR[ws]8i+7..8i and i87..0
endfor

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.