Version 7 (modified by cameron, 8 years ago) (diff) |
---|
IDISA Field Movement Operations
The tables below list the various IDISA field movement operations on vectors of N-bit fields, together with their description and semantic specification.
An important characteristic of these operations is that fields may be moved or rearranged in various ways, but the contents of the fields remain unchanged.
Unary Movement Operations
These operations generally have the form r = mvmd<N>::op(a) for each operation op, where a is an operand vectors of N bit fields and r is the corresponding result vector.
splat<j>(a) | splat | r_{i} = a_{j} |
slli<j>(a) | shift left logical immediate | r_{i} = a_{i+j} if i + j <= N/n, 0 otherwise |
srli<j>(a) | shift right logical immediate | r_{i} = a_{i-j} if i > j, 0 otherwise |
shufflei<m>(a) | shuffle immediate | r_{i} = a_{t}, where t = index(m, i) |
Binary Movement Operations
These operations generally have the form r = mvmd<N>::op(a, b) for each operation op, where a and b are operand vectors of N bit fields and r is the corresponding result vector.
shuffle | shuffle | r_{i} = a_{t}, where t = b_{i} |
dslli<j>(a) | double shift left logical immediate | r_{i} = a_{i+j} if i + j <= N/n, b_{i + j - N/n} otherwise |
dsrli<j>(a) | double shift right logical immediate | r_{i} = a_{i + N/n -j} if i <= j, b_{i - j} otherwise |