MSA 011110 |
0010 |
df/n |
ws |
rd |
ELM 011001 |
6 |
4 |
6 |
5 |
5 |
6 |
COPY_S.df |
Element Copy to GPR Signed | |
COPY_S.B rd,ws[n] |
MSA |
Element Copy to GPR Signed |
COPY_S.H rd,ws[n] |
MSA |
Element Copy to GPR Signed |
COPY_S.W rd,ws[n] |
MSA |
Element Copy to GPR Signed |
COPY_S.D rd,ws[n] |
MIPS64, MSA |
Element Copy to GPR Signed |
Element Copy to GPR Signed
Element value sign extended and copied to GPR.
rd = signed(ws[n])
Sign-extend element n of vector ws and copy the result to GPR rd.
No data-dependent exceptions are possible.
COPY_S.B GPR[rd] = sign_extend(WR[ws]8n+7..8n, 64) COPY_S.H GPR[rd] = sign_extend(WR[ws]16n+15..16n, 64) COPY_S.W GPR[rd] = sign_extend(WR[ws]32n+31..32n, 64) COPY_S.D GPR[rd] = WR[ws]64n+63..64n function sign_extend(tt, n) return (ttn-1)GPRLEN-n || ttn-1..0 endfunction sign_extend
Reserved Instruction Exception, MSA Disabled Exception.