P32A 001000 |
rt |
rs |
rd |
x |
1100010 |
101 |
6 |
5 |
5 |
5 |
1 |
7 |
3 |
SHRLV.PH rd, rt, rs |
DSP-R2 |
Shift Variable Right Logical Pair of Halfwords |
Shift Variable Right Logical Pair of Halfwords
To execute a right shift of two independent halfwords in a vector data type by a variable number of bits.
rd = (rt31..16 >> rs3..0) || (rt15..0 >> rs3..0)
The two halfwords in register rt are independently logically shifted right, inserting zeros into the bit positions emptied by the shift. The two halfword results are then written to the corresponding halfword elements in destination register
rd.
The shift amount is provided by the four least-significant bits of register rs, which is interpreted as a four bit unsigned integer taking values between 0 and 15. The remaining bits of rs are ignored.
No data-dependent exceptions are possible.
The operands must be a value in the specified format. If they are not, the results are UNPREDICTABLE and the values of the operand vectors become UNPREDICTABLE.
ValidateAccessToDSP2Resources() sa3..0 = GPR[rs]3..0 tempB15..0 = 0sa || GPR[rt]31..sa+16 tempA15..0 = 0sa || GPR[rt]15..sa GPR[rd]31..0 = tempB15..0 || tempA15..0
Reserved Instruction, DSP Disabled