Shift right arithmetic variable : Sets $t1 = $t2 >> ($t3 & 31). Like 'sra' but the shift amount is taken from the lowest 5 bits of register $t3. Vacated bits are sign-filled.
srav
Operands
$reg, $reg, $regVariants
- Shift right arithmetic variable : Sets $t1 = $t2 >> ($t3 & 31). Like 'sra' but the shift amount is taken from the lowest 5 bits of register $t3. Vacated bits are sign-filled. srav $t1,$t2,$t3
# Initialize both inputs, then execute srav with initialized inputs. Inspect $t2: 0.
li $t0, 7
li $t1, 3
srav $t2, $t0, $t1