Encoding:

MSA

011110

0011

df/n

ws

rd

ELM

011001

6

4

6

5

5

6

Format:

COPY_U.df 

Element Copy to GPR Unsigned

COPY_U.B rd,ws[n]

MSA

Element Copy to GPR Unsigned

COPY_U.H rd,ws[n]

MSA

Element Copy to GPR Unsigned

COPY_U.W rd,ws[n]

MIPS64, MSA

Element Copy to GPR Unsigned

Purpose:

Element Copy to GPR Unsigned

Element value zero extended and copied to GPR.

Description:

rd = unsigned(ws[n])

Zero-extend element n of vector ws and copy the result to GPR rd.

Restrictions:

No data-dependent exceptions are possible.

Operation:

COPY_U.B
   GPR[rd] = zero_extend(WR[ws]8n+7..8n, 64))
COPY_U.H
   GPR[rd] = zero_extend(WR[ws]16n+15..16n, 64))
COPY_U.W
   GPR[rd] = zero_extend(WR[ws]32n+31..32n, 64)
function zero_extend(tt, n)
   return 0GPRLEN-n || ttn-1..0
endfunction zero_extend

Exceptions:

Reserved Instruction Exception, MSA Disabled Exception.