SHR Arithmetic Shift Right

 

 

Pipeline

 

 

 

Pipeline

E1

 

 

Stage

 

 

 

 

 

Read

src1, src2

 

Written

dst

 

Unit in use

.S

 

 

 

 

Instruction Type

Single-cycle

 

Delay Slots

0

 

See Also

SHL, SHRU

 

Example 1

SHR .S1

A0,8,A1

 

Before instruction

 

A0

 

 

 

F123 63D1h

 

A0

 

 

 

 

 

 

 

A1

xxxx xxxxh

 

A1

 

 

 

 

1 cycle after instruction

F123 63D1h

FFF1 2363h

Example 2

SHR .S2

B0,B1,B2

Before instruction

1 cycle after instruction

B0

B1

B2

1492 5A41h

0000 0012h

xxxx xxxxh

B0

B1

B2

1492 5A41h

0000 0012h

0000 0524h

Example 3

SHR .S2

B1:B0,B2,B3:B2

 

 

Before instruction

 

B1:B0

 

 

 

 

0000

0012h

1492 5A41h

 

 

 

 

 

 

 

 

 

 

 

B2

0000

0019h

 

 

 

 

 

 

 

 

 

 

B3:B2

xxxx xxxxh

xxxx xxxxh

 

 

 

 

 

 

1 cycle after instruction

 

 

 

 

 

B1:B0

0000

0012h

1492

5A41h

 

 

 

 

 

 

 

 

 

 

B2

0000

090Ah

 

 

 

 

 

 

 

 

 

 

 

 

B3:B2

0000

0000h

0000

090Ah

 

 

 

 

 

3-216

Instruction Set

SPRU733

Page 276
Image 276
Texas Instruments TMS320C67X/C67X+ DSP manual SHL, Shru