Packed-Data Processing on the ’C64x
8-7
’C64x Programming Considerations
Table 8–2. Supported Operations on Packed Data Types
Operation
Support for 8-bit
Support for 16-bit
Notes
Signed
Unsigned
Signed
Unsigned
ADD/SUB
Yes
Yes
Yes
Yes
Saturated ADD
Yes
Yes
*
Booleans
Yes
Yes
Yes
Yes
Uses generic
boolean instruc-
tions
Shifts
Yes
Yes
Right-shift only
Multiply
*
Yes
Yes
*
Dot Product
*
Yes
Yes
*
Max/Min/
Compare
Yes
Yes
CMPEQ works
with signed or
unsigned
Pack
Yes
Yes
Yes
Yes
Unpack
Yes
Yes
Yes
See Table 8–4
for 16-bit un-
packs
* = Only ‘signed-by-unsigned’ support in these categories.
8.2.4
Packing and Unpacking Data
The ’C64x provides a family of packing and unpacking instructions which are
used for converting between various packed and non-packed data types, as
well as for manipulating elements within a packed type. Table 8–4 lists the
available packing instructions and uses.