Encoding:

MSA

011110

00

i8

ws

wd

I8

000001

6

2

8

5

5

6

Format:

BMNZI.B 

Immediate Bit Move If Not Zero

BMNZI.B wd,ws,i8

MSA

Immediate Bit Move If Not Zero

Purpose:

Immediate Bit Move If Not Zero

Immediate mask-based copy bits on the condition mask being set.

Description:

wd[i] = (ws[i] AND i8) OR (wd[i] AND NOT i8)

Copy to destination vector wd all bits from source vector ws for which the corresponding bits from immediate i8 are 1 and leaves unchanged all destination bits for which the corresponding immediate bits are 0.

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

Restrictions:

No data-dependent exceptions are possible.

Operation:

 WR[wd] = (WR[ws]8i+7..8i and i87..0) or (WR[wd]8i+7..8i and not i87..0)

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.