Encoding:

COP1

010001

01011

wt

s16

6

5

5

16

Format:

BZ.V 

Immediate Branch If Zero (All Elements of Any Format Are Zero)

BZ.V wt,s16

MSA

Immediate Branch If Zero (All Elements of Any Format Are Zero)

Purpose:

Immediate Branch If Zero (All Elements of Any Format Are Zero)

Immediate PC offset branch if destination vector is zero.

Description:

if wt = 0 then branch PC-relative s16

PC-relative branch if all wt bits are zero, i.e. all elements are zero regardless of the data format. The branch instruction has a delay slot. s16 is a PC word offset, i.e. signed count of 32-bit instructions, from the PC of the delay slot.

Restrictions:

Processor operation is UNPREDICTABLE if a branch is placed in the delay slot of a branch or jump.

Operation:

   branch(WR[wt] = 0, s16)
function branch(cond, offset)
   if cond then
      I:   target_offset = (offset9)GPRLEN-12 || offset9..0 || 0^^2
      I+1: PC = PC + target_offset
   endif
endfunction branch

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.