Vector Search - Analog Devices ADSP-BF53x Blackfin Reference

Table of Contents

Advertisement

Instruction Overview

Vector SEARCH

General Form
(dest_pointer_hi, dest_pointer_lo ) = SEARCH src_reg (searchmode)
Syntax
(Dreg, Dreg) = SEARCH Dreg (searchmode) ;
Syntax Terminology
:
Dreg
R7–0
:
searchmode
(GT)
Instruction Length
In the syntax, comment (b) identifies 32-bit instruction length.
Functional Description
This instruction is used in a loop to locate a maximum or minimum ele-
ment in an array of 16-bit packed data. Two values are tested at a time.
The Vector Search instruction compares two 16-bit, signed half-words to
values stored in the Accumulators. Then, it conditionally updates each
Accumulator and destination pointer based on the comparison.
Pointer register
being searched.
More specifically, the signed high half-word of
magnitude with the 16 low-order bits in
parison criterion, then
pointer register
performed for
19-50
ADSP-BF53x/BF56x Blackfin Processor Programming Reference
,
,
, or
(GE)
(LE)
is always the implied array pointer for the elements
P0
is updated with
A1
is stored in
P0
dest_pointer_hi
and
src_reg_low
A0
/* (b) */
(LT)
src_reg
. If
A1
src_reg_hi
src_reg_hi
. The same operation is
.
is compared in
meets the com-
, and the value in

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adsp-bf56x blackfin

Table of Contents