P32A 001000 |
x |
rs |
ac |
01 |
001 |
001 |
111 |
111 |
6 |
5 |
5 |
2 |
2 |
3 |
3 |
3 |
3 |
SHILOV ac, rs |
DSP |
Variable Shift of Accumulator Value Leaving the Result in the Same Accumulator |
Variable Shift of Accumulator Value Leaving the Result in the Same Accumulator
Shift the HI/LO paired value in an accumulator either left or right by the amount specified in a GPR, leaving the result in the same accumulator.
ac = ( GPR[rs]6..0 >= 0) ? (ac >> GPR[rs]6..0) : (ac << -GPR[rs]6..0)
The HI/LO register pair is treated as a single 64-bit accumulator that is shifted logically by shift bits, with the result of the shift written back to the source accumulator. The shift argument is provided by the six least-significant bits of register rs; the remaining bits of rs are ignored. The shift argument is interpreted as a six-bit signed integer: a positive argument results in a right shift of up to 31 bits, and a negative argument results in a left shift of up to 32 bits.
The value of ac can range from 0 to 3. When ac=0, this refers to the original HI/LO register pair of the MIPS32 architecture.
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() sign = GPR[rs]5 shift5..0 = ( sign = 0 ? GPR[rs]5..0 : -GPR[rs]5..0 ) if ( shift5..0 = 0 ) then temp63..0 = ( HI[ac]31..0 || LO[ac]31..0 ) else if ( sign = 0 ) then temp63..0 = 0shift || (( HI[ac]31..0 || LO[ac]31..0 ) >> shift ) else temp63..0 = (( HI[ac]31..0 || LO[ac]31..0 ) << shift ) || 0shift endif endif ( HI[ac]31..0 || LO[ac]31..0 ) = temp63..32 || temp31..0
Reserved Instruction, DSP Disabled