vnegd
Vector Negate Doubleword
vnegd vD, vB
Negates each doubleword integer.
Details
The vnegd instruction negates each doubleword element in the source vector and places the result into the destination vector. It performs a one's complement operation on each doubleword element followed by adding 1.
Pseudocode Operation
Programming Note
The vnegd instruction is used to negate each doubleword element in a vector. Ensure that the Vector Facility (MSR.VEC) is enabled before using this instruction; otherwise, a Vector_Unavailable exception will be raised. This operation is performed on 64-bit elements, so ensure proper alignment and size of the vectors involved.
Example
vnegd vd, vb
Encoding
Binary Layout
4
0
vD
6
0
11
vB
16
1604
21
Operands
-
vD
Target -
vB
Source