sllv

Operands

$reg, $reg, $reg

Shift left logical variable : Sets $t1 = $t2 << ($t3 & 31). Like 'sll' but the shift amount is taken from the lowest 5 bits of register $t3 rather than an immediate constant. The upper 27 bits of $t3 are ignored.

Variants

  • Shift left logical variable : Sets $t1 = $t2 << ($t3 & 31). Like 'sll' but the shift amount is taken from the lowest 5 bits of register $t3 rather than an immediate constant. The upper 27 bits of $t3 are ignored. sllv $t1,$t2,$t3
# Initialize both inputs, then execute sllv with initialized inputs. Inspect $t2: 56.
li $t0, 7
li $t1, 3
sllv $t2, $t0, $t1