mtvscr

Move To Vector Status and Control Register

mtvscr VRB

Moves the contents of a vector register word into the VSCR.

Details

The contents of word element 3 of VSR[VRB+32] are placed into the VSCR.

Pseudocode Operation

if MSR.VEC=0 then
    Vector_Unavailable()
VSCR ← VSR[VRB+32].word[3]

Programming Note

The mtvscr instruction is used to transfer a value from a vector register to the VSCR. Ensure that the Vector Facility (MSR.VEC) is enabled before executing this instruction; otherwise, a Vector_Unavailable exception will be raised. This instruction requires proper alignment of the source vector register and operates at user privilege level.

Example

mtvscr v3

Encoding

Binary Layout
16
4
VRB
16
0
21
0
23
0
25
0
27
0
29
0
30
0
31
0
0
0
0
0
0
0
 
Format VX-form
Opcode 0x10000644
Extension VMX (AltiVec)
Registers Altered MSR, VSCR

Operands

  • VRB
    Source Vector Register