ROTATELI(RS, IS, SHIFT, MASK)

Purpose

Rotate Left Immediate then MASK Insert

Rotates the value of RS left by the number of bits specified in SHIFT. The function then inserts RS into IS under bit mask, MASK.

Class

Function

Argument type and attributes

RS
must be of type integer.
IS
must be of type integer.
SHIFT
must be a literal value. For 4-byte RS values, the SHIFT value will be truncated to the last five bits. For 8-byte RS values, the SHIFT value will be truncated to the last six bits.
MASK
must be a literal value of type integer.

Result type and attributes

Same as RS.

Result value

Rotates RS left the number of bits specified by SHIFT, and inserts the result into IS under the bit mask, MASK.