[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Assembler Language Reference

rldicl (Rotate Left Double Word Immediate then Clear Left) Instruction

Purpose

Rotate the contents of a general purpose register left by a specified number of bits, clearing a specified number of high-order bits. The result is placed in another general purpose register.

Syntax

Bits Value
0-5 30
6-10 S
11-15 A
16-20 sh
21-26 mb
27-29 0
30 sh
31 Rc
POWER family
rldicl RA, RS, SH, MB (Rc=0)
rldicl. RA, RS, SH, MB (Rc=1)

Description

The contents of general purpose register RS are rotated left the number of bits specified by operand SH. A mask is generated containing 1 bits from bit MB through bit 63 and 0 bits elsewhere. The rotated data is ANDed with the generated mask and the result is placed into GPR RA.

Note that rldicl can be used to extract, rotate, shift, and clear bit fields using the methods shown below:

Other registers altered:

Parameters

RA Specifies the target general purpose register for the result of the instruction.
RS Specifies the source general purpose register containing the operand.
SH Specifies the (immediate) shift value for the operation.
MB Specifies the begin value (bit number) of the mask for the operation.

Implementation

This instruction is defined only for 64-bit implementations. Using it on a 32-bit implementation will cause the system illegal instruction error handler to be invoked.

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]