mtvsrwa
Move To VSR Word Algebraic
mtvsrwa XT, RA
Moves the two's-complement integer in bits 32:63 of GPR[RA] to doubleword element 0 of VSR[XT], sign-extended to 64 bits.
Encoding
Binary Layout
31
0:5
XT
6:10
RA
11:15
/
16:20
211
21:30
TX
31
Operands
-
XT
Target VSR -
RA
Source GPR -
VS
Target Vector Scalar Register
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
Description
The two’s-complement integer in bits 32:63 of GPR[RA] is sign-extended to 64 bits and placed into doubleword element 0 of VSR[XT]. The contents of doubleword element 1 of VSR[XT] are undefined.
Operation
if TX=0 & MSR.FP=0 then FP_Unavailable()
if TX=1 & MSR.VEC=0 then Vector_Unavailable()
VSR[32×TX+T].dword[0] ←EXTS64(GPR[RA].bit[32:63])
VSR[32×TX+T].dword[1] ←0xUUUU_UUUU_UUUU_UUUU
Extended Mnemonics
| Extended Mnemonic | Equivalent Instruction |
|---|---|
| mtfprwa | |
| mtvrwa |
Programming Note
For TX=0, mtvsrwa is treated as a Floating-Point instruction in terms of resource availability.
For TX=1, mtvsrwa is treated as a Vector instruction in terms of resource availability.