vdivsw
Vector Divide Signed Word
vdivsw VRT,VRA,VRB
Divides the contents of two vector registers and updates the result in another vector register.
Details
For vdivsw, each word element of VSR[VRA+32] is divided by the corresponding word element of VSR[VRB+32]. The quotient is placed into the corresponding word element of VSR[VRT+32].
Pseudocode Operation
Programming Note
vdivsw performs element-wise signed word division. Ensure that the vector facility is enabled (MSR.VEC=1) to avoid a Vector_Unavailable exception. Handle potential division by zero and overflow conditions in your application logic.
Example
vdivsw v1, v2, v3
Encoding
Binary Layout
4
0
VRT
6
VRA
11
VRB
16
Operands
-
VRT
Target Vector Register -
VRA
Source Vector Register -
VRB
Source Vector Register