Instruction Overview
14-16
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
Four versions of the Logical Shift instruction support pointer shifting.
The instruction does not implicitly modify the input
src_pntr
value. For
the P-register versions of this instruction,
dest_pntr
can be the same
P-register as
src_pntr
. Doing so explicitly modifies the source register.
The rest of this description applies to the data shift versions of this
instruction relating to D-registers and Accumulators.
The Logical Shift instruction supports 16-bit and 32-bit instruction
length.
• The “
>>=
” and “
<<=
” syntax instruction is 16 bits in length, allow-
ing for smaller code at the expense of flexibility.
• The “
>>
”, “
<<
”, and “
LSHIFT
” syntax instruction is 32 bits in
length, providing a separate source and destination register, alter-
native data sizes, and parallel issue with Load/Store instructions.
Both syntaxes support constant and registered shift magnitudes.
For the
LSHIFT
version, the sign of the shift magnitude determines the
direction of the shift.
• Positive shift magnitudes produce Left shifts.
• Negative shift magnitudes produce Right shifts.
Table 14-2. Logical Shifts
Syntax
Description
“>>=”
and “<<=”
The value in dest_reg is shifted by the number of places specified by
shift_magnitude. The data size is always 32 bits long. The entire 32 bits
of the shift_magnitude determine the shift value. Shift magnitudes larger
than 0x1F produce a 0x00000000 result.
“>>”, “<<”,
and “LSHIFT”
The value in src_reg is shifted by the number of places specified in
shift_magnitude, and the result is stored into dest_reg.
The LSHIFT versions can shift 32-bit Dreg and 40-bit Accumulator reg-
isters by up to –32 t31 places.
Summary of Contents for ADSP-BF53x Blackfin
Page 38: ...Conventions xxxviii ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 134: ...System Reset and Powerup 3 18 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 324: ...Instruction Overview 7 20 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 486: ...Instruction Overview 13 28 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 512: ...Instruction Overview 14 26 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 604: ...Instruction Overview 15 92 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 688: ...Instruction Overview 18 48 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 742: ...Instruction Overview 19 54 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 752: ...Examples 20 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 790: ...ADSP BF535 Flags A 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 800: ...Performance Monitor Registers B 10 ADSP BF53x BF56x Blackfin Processor Programming Reference...
Page 1042: ...Index I 40 ADSP BF53x BF56x Blackfin Processor Programming Reference...