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
Operands
-
VRB
Source Vector Register
Reference
View in PowerISA v3.1C Specification ↗
OPF Power ISA v3.1C
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.