mtvscr

Move To Vector Status and Control Register

mtvscr VRB

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

Encoding

Binary Layout
16
VRB
0
0
0
0
0
0
0
0
0
0
0
0
0
0
 
Format VX-form
Opcode 0x10000644
Extension VMX (AltiVec)

Operands

  • VRB
    Source Vector Register

Example

mtvscr v3

Registers Altered

MSR, VSCR

Related

More in VMX (AltiVec)

Reference

Description

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

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.