sll
Shift left logical
This instruction is defined by:
Synopsis
Shift the value in rs1
left by the value in the lower 6 bits of rs2
, and store the result in rd
.
Decode Variables
Bits<5> rs2 = $encoding[24:20];
Bits<5> rs1 = $encoding[19:15];
Bits<5> rd = $encoding[11:7];
Execution
-
Pruned, XLEN == 64
-
Original
X[rd] = X[rs1] << X[rs2][5:0];
if (xlen() == 64) {
X[rd] = X[rs1] << X[rs2][5:0];
} else {
X[rd] = X[rs1] << X[rs2][4:0];
}