Encoding:

MSA

011110

00110

wt

ws

wd

VEC

011110

6

5

5

5

5

6

Format:

BSEL.V 

Vector Bit Select

BSEL.V wd,ws,wt

MSA

Vector Bit Select

Purpose:

Vector Bit Select

Vector mask-based copy bits from two source vectors selected by the bit mask value

Description:

wd = (ws AND NOT wd) OR (wt AND wd)

Selectively copy bits from the source v ectors ws and wt into destination vector wd based on the corresponding bit in wd: if 0 copies the bit from ws, if 1 copies the bit from wt.

Restrictions:

The operands and results are bit vector values.

Operation:

 WR[wd] = (WR[ws] and not WR[wd]) or (WR[wt] and WR[wd])

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.