Two-Operand Shifts; Immediate Shifts - Analog Devices ADSP-BF53x Blackfin Reference

Table of Contents

Advertisement

The arithmetic shift and logical shift operations can be further broken
into subsections. Instructions that are intended to operate on 16-bit single
or paired numeric values (as would occur in many DSP algorithms) can
use the instructions
instructions.
Instructions that are intended to operate on a 32-bit register value and use
two operands, such as instructions frequently used by a compiler, can use
the
and
>>>
>>
Arithmetic shift, logical shift, and rotate instructions can obtain the shift
argument from a register or directly from an immediate value in the
instruction. For details about shifter related instructions, see
Instruction Summary" on page

Two-Operand Shifts

Two-operand shift instructions shift an input register and deposit the
result in the same register.

Immediate Shifts

An immediate shift instruction shifts the input bit pattern to the right
(downshift) or left (upshift) by a given number of bits. Immediate shift
instructions use the data value in the instruction itself to control the
amount and direction of the shifting operation.
The following example shows the input value downshifted.
R0 contains 0000 B6A3 ;
R0 >>= 0x04 ;
results in
R0 contains 0000 0B6A ;
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
and
ASHIFT
LSHIFT
instructions.
2-53.
Computational Units
. These are typically three-operand
"Shifter
2-49

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adsp-bf56x blackfin

Table of Contents