Shift the contents of a general purpose register right by the number of bits specified by the contents of another general purpose register.
Bits | Value |
---|---|
0-5 | 31 |
6-10 | S |
11-15 | A |
16-20 | B |
21-30 | 539 |
31 | Rc |
POWER family | |
---|---|
srd | RA, RS, RB (Rc=0) |
srd. | RA, RS, RB (Rc=1) |
The contents of general purpose register (GPR) RS are shifted right the number of bits specified by the low-order seven bits of GPR RB. Bits shifted out of position 63 are lost. Zeros are supplied to the vacated positions on the left. The result is placed into GRP RA. Shift amounts from 64 to 127 give a zero result.
Other registers altered:
Affected: LT, GT, EQ, SO (if Rc = 1)
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.