P32A 001000 |
rt |
rs |
rd |
x |
1101010 |
101 |
6 |
5 |
5 |
5 |
1 |
7 |
3 |
SHRLV.QB rd, rt, rs |
DSP |
Shift Right Logical Variable Vector Quad Bytes |
Shift Right Logical Variable Vector Quad Bytes
Element-wise logical right shift of four independent bytes in a vector data type by a variable number of bits.
rd = (rt31..24 >> rs2..0) || (rt23..16 >> rs2..0) || (rt15..8 >> rs2..0) || (rt7..0 >> rs2..0)
The four byte values in register rt are each independently shifte d right, inserting zeros into the most-significant bit positions emptied by the shift. The four independent results are then written to the corresponding byte elements of destination register rd.
The three least-significant bits of rs provide the shift value, interpreted as an unsigned integer; the remaining bits of rs are ignored.
No data-dependent exceptions are possible.
The operands must be values in the specified format. If they are not, the results are UNPREDICTABLE and the values of the operand vectors become UNPREDICTABLE.
ValidateAccessToDSPResources() tempD7..0 = shift8Right( GPR[rt]31..24, GPR[rs]2..0 ) tempC7..0 = shift8Right( GPR[rt]23..16, GPR[rs]2..0 ) tempB7..0 = shift8Right( GPR[rt]15..8, GPR[rs]2..0 ) tempA7..0 = shift8Right( GPR[rt]7..0, GPR[rs]2..0 ) GPR[rd]31..0 = tempD7..0 || tempC7..0 || tempB7..0 || tempA7..0
Reserved Instruction, DSP Disabled