SHL
Arithmetic Shift Left
3-110
Execution
if (cond)
src2
<<
src1
→
dst
else
nop
Pipeline
Stage
E1
Read
src1, src2
Written
dst
Unit in use
.S
Instruction Type
Single-cycle
Delay Slots
0
Example 1
SHL .S1
A0,4,A1
Before instruction
1 cycle after instruction
A0
29E3 D31Ch
A0
29E3 D31Ch
A1
XXXX XXXXh
A1
9E3D 31C0h
Example 2
SHL .S2
B0,B1,B2
Before instruction
1 cycle after instruction
B0
4197 51A5h
B0
4197 51A5h
B1
0000 0009h
B1
0000 0009h
B2
XXXX XXXXh
B2
2EA3 4A00h
Example 3
SHL .S2
B1:B0,B2,B3:B2
Before instruction
1 cycle after instruction
B1:B0
0000 0009h
4197 51A5h
B1:B0
0000 0009h
4197 51A5h
B2
0000 0022h
B2
0000 0000h
B3:B2
XXXX XXXXh
XXXX XXXXh
B3:B2
0000 0094h
0000 0000h
Pipeline