Texas Instruments TMS320C6000 Programmer's Manual page 82

Hide thumbs Also See for TMS320C6000:
Table of Contents

Advertisement

Table 3–6. TMS320C6000 C/C++ Compiler Intrinsics (Continued)
C Compiler Intrinsic
int _cmpeq4 (int src1 , int src2 );
int _cmpgt2 (int src1 , int src2 );
unsigned _cmpgtu4 (uint src1 , uint
src2 );
unsigned _deal (uint src2);
int _dotp2 (int src1 , int src2 );
double _ldotp2 (int src1 , int src2 );
int _dotpn2 (int src1 , int src2 );
int _dotpnrsu2 (int src1 , uint src2 );
int _dotprsu2 (int src1 , uint src2 );
unsigned _dotpu4 (uint src1 , uint src2 );
int _dotpsu4 (int src1 , uint src2 );
Note:
Instructions not specified with a device apply to all 'C6000 devices.
Assembly
Description
Instruction
CMPEQ4
Performs equality comparisons on each
pair of 8–bit values. Equality results are
packed into the four least–significant bits
of the return value.
CMPGT2
Compares each pair of signed 16–bit val-
ues. Results are packed into the two least–
significant bits of the return value.
CMPGTU4
Compares each pair of unsigned 8–bit val-
ues. Results are packed into the four
least–significant bits of the return value.
DEAL
The odd and even bits of src are extracted
into two separate 16–bit values.
DOTP2
The product of signed lower 16–bit values
LDOTP2
of src1 and src2 is added to the product of
signed upper 16–bit values of src1 and
src2.
DOTPN2
The product of signed lower 16–bit values
of src1 and src2 is subtracted from the
product of signed upper 16–bit values of
src1 and src2.
DOTPNR-
The product of unsigned lower 16–bit val-
SU2
ues in src1 and src2 is subtracted from the
product of signed upper 16–bit values in
src1 and src2. 2
is sign shifted right by 16.
DOTPR-
The product of the first signed pair of
SU2
16–bit values is added to the product of
the unsigned second pair of 16–bit values
in src1 and src2. 2
sult is sign shifted right by 16.
DOTPU4
For each pair of 8–bit values in src1 and
DOTPSU4
src2, the 8–bit value from src1 is multiplied
with the 8–bit value from src2. The four
products are summed together.
Refining C/C++ Code
15
is added and the result
15
is added and the re-
Optimizing C/C++ Code
Device
'C64x
'C64x
'C64x
'C64x
'C64x
'C64x
'C64x
'C64x
'C64x
3-17

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents