Share with your friends
hdshahin01

Call

Permute instructions, part of bit manipulation as well as vector processing, copy unaltered contents from a source array to a destination array, where the indices are specified by a second source array. The size of the source elements is not restricted but remains the same as the destination size.

There exists two important permute variants, known as gather and scatter, respectively. The gather variant is as follows:

where the scatter variant is:

Note that unlike in memory-based gather-scatter all three of dest, src, and indices are registers , not memory locations.