vinsw
Vector Insert Word from GPR using Immediate-specified Index
Inserts the contents of a word from a general-purpose register into a vector register at an immediate-specified index.
Details
The contents of bits 32:63 of GPR[RB] are placed into byte elements UIM:UIM+3 of VSR[VRT+32]. All other byte elements of VSR[VRT+32] are not modified. If UIM is greater than 12, the result is undefined.
Pseudocode Operation
Programming Note
The vinsw instruction is used to insert the upper 32 bits of a general-purpose register (GPR) into a specific byte range within a vector register. Ensure that the immediate index (UIM) does not exceed 12 to avoid undefined behavior. This instruction operates at user privilege level and will raise an exception if the Vector Facility is unavailable.
Example
Encoding
Operands
-
VRT
Target Vector Register -
RB
Source General Purpose Register -
UIM
Immediate-specified Index