wiki:IDISA_Movement

Version 10 (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.

Constant Fill Operations

The operations r = mvmd<w>::fill<c>() and r = mvmd<w>::fill(c) fills each w-bit field with an integer value c. In the first case, the fill value is a compile-time constant.

Unary Movement Operations

These operations generally have the form r = mvmd<w>::op(a) for each operation op, where a is an operand vectors of w-bit fields and r is the corresponding result vector. Let N = W/w be the number of w-bit fields in a vector.

splat<j> splat ri = aj
slli<j> shift left logical immediate ri = ai+j if i + j <= N, 0 otherwise
srli<j> shift right logical immediate ri = ai-j if i > j, 0 otherwise
shufflei<m> shuffle immediate ri = at, where t = index(m, i)

Binary Movement Operations

These operations generally have the form r = mvmd<w>::op(a, b) for each operation op, where a and b are operand vectors of w-bit fields and r is the corresponding result vector.

dslli<j> double shift left logical immediate ri = ai+j if i + j <= N, bi + j - N otherwise
dsrli<j> double shift right logical immediate ri = ai + N -j if i <= j, bi - j otherwise
shuffle shuffle ri = at, where t = bi