ADSP-BF53x/BF56x Blackfin Processor Programming Reference
14-13
Shift/Rotate Operations
r3.l = r0.h >>> 7(s) ;
/* arithmetic right shift, half-word,
saturated */
r4 = r2 >>> 20 ;
/* arithmetic right shift, word */
A0 = A0 >>> 1 ;
/* arithmetic right shift, Accumulator */
r0 >>>= r2 ;
/* 16-bit instruction length arithmetic right
shift */
r3.l = r0.h << 12 (S) ;
/* arithmetic left shift */
r5 = r2 << 24(S) ;
/* arithmetic left shift */
r3.l = ashift r0.h by r7.l ;
/* shift, half-word */
r3.h = ashift r0.l by r7.l ;
r3.h = ashift r0.h by r7.l ;
r3.l = ashift r0.l by r7.l ;
r3.l = ashift r0.h by r7.l(s) ;
/* shift, half-word,
saturated */
r3.h = ashift r0.l by r7.l(s) ;
/* shift, half-word,
saturated */
r3.h = ashift r0.h by r7.l(s) ;
r3.l = ashift r0.l by r7.l (s) ;
r4 = ashift r2 by r7.l ;
/* shift, word */
r4 = ashift r2 by r7.l (s) ;
/* shift, word, saturated */
A0 = ashift A0 by r7.l ;
/* shift, Accumulator */
A1 = ashift A1 by r7.l ;
/* shift, Accumulator */
// If r0.h = -64, then performing . . .
r3.h = r0.h >>> 4 ;
/* . . . produces r3.h = -4, preserving the
sign */
Also See
Vector Arithmetic Shift
,
Vector Logical Shift
,
Logical Shift
,
Shift with
Add
,
ROT (Rotate)
Special Applications
Multiply, divide, and normalize signed numbers
Содержание ADSP-BF53x Blackfin
Страница 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 780: ...Product Identification Register 21 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 994: ...Instructions Listed By Operation Code C 194 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Страница 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...