POOL32A 000000 |
rt |
rs |
sa |
SHRL.QB 1100001 |
POOL32Axf 111100 |
6 |
5 |
5 |
3 |
7 |
6 |
SPECIAL3 011111 |
0 00 |
sa |
rt |
rd |
SHRL.QB 00001 |
SHLL.QB 010011 |
6 |
2 |
3 |
5 |
5 |
5 |
6 |
SHRL.QB rdt, rts, sa |
microMIPSDSP |
Shift Right Logical Vector Quad Bytes |
Shift Right Logical Vector Quad Bytes
Element-wise logical right shift of four independent bytes in a vector data type by a fixed number of bits.
rdt = sign_extend(rts31..24 >> sa) || (rts23..16 >> sa) || (rts15..8 >> sa) || (rts7..0 >> sa))
The four right-most byte values in register rts are each independently shifted right by sa bits and the sa most-significant bits of each value are set to zero. The four independ ent results are then written to the corresponding byte elements of destination register rdt.
The sign of the left-most result is extended into the 32 most-significant bits of the destination register.
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.
tempD7..0 = shift8Right( GPR[rts]31..24, sa ) tempC7..0 = shift8Right( GPR[rts]23..16, sa ) tempB7..0 = shift8Right( GPR[rts]15..8, sa ) tempA7..0 = shift8Right( GPR[rts]7..0, sa ) GPR[rdt]63..0 = (tempD7)32 || tempD7..0 || tempC7..0 || tempB7..0 || tempA7..0 function shift8Right( a7..0, s2..0 ) if ( s2..0 = 0 ) then temp7..0 = a7..0 else temp7..0 = ( 0s || a7..s ) endif return temp7..0 endfunction shift8Right
Reserved Instruction, DSP Disabled
To do a logical left shift of a word in a register without saturation, use the MIPS64 SLL instruction.