Shift Left With Saturation SSHL
3-233 Instruction SetSPRU733
Pipeline
Stage
E1
Read src1, src2
Written dst
Unit in use
.S
Instruction Type Single-cycle
Delay Slots 0
See Also SHL, SHR
Example 1
SSHL .S1 A0,2,A1
Before instruction 1 cycle after instruction 2 cycles after instruction
A0
02E3 031Ch
A0
02E3 031Ch
A0
02E3 031Ch
A1
xxxx xxxxh
A1 0B8C 0C70h A1 0B8C 0C70h
CSR 0001 0100h CSR 0001 0100h CSR 0001 0100h Not saturated
Example 2 SSHL .S1 A0,A1,A2
Before instruction 1 cycle after instruction 2 cycles after instruction
A0
4719 1925h A0 4719 1925h A0 4719 1925h
A1 0000 0006h A1 0000 0006h A1 0000 0006h
A2 xxxx xxxxh A2 7FFF FFFFh A2 7FFF FFFFh
CSR 0001 0100h CSR 0001 0100h CSR 0001 0300h Saturated
Pipeline