sll

Assembly Syntax

sll regrs1, reg_or_imm, regrd

op3

100101

Operation

Shift left logical the contents of register regrs1 reg_or_imm number of times and places the result in register regrd

Comments

Replaces vacated positions with zeros. sll can be used for fast multiplication.

Example

sll %r1,%r2,%r3

Example

sll %r1,4,%r3 ! equivalent to multiplying by 16

Instruction format

Instruction format

Home Page Index Page All Shift Instructions