TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set Overview
V1.0 2013-07
User Manual (Volume 2) 2-7
Figure 2-7 Packed Byte Data Format
The loading and storing of packed values into data registers is supported by the normal Load Word and Store
Word instructions (LD.W and ST.W). The packed objects can then be manipulated in parallel by a set of special
packed arithmetic instructions that perform such arithmetic operations as addition, subtraction, multiplication, and
so on.
Addition is performed on individual packed bytes or half-words using the ADD.B and ADD.H instructions. The
saturating variation (ADDS.H) only exists for half-words.
The ADD.H instruction ignores overflow or underflow within individual half-words. ADDS.H will saturate individual
half-words to the most positive 16-bit signed integer (215-1) on individual overflow, or to the most negative 16-bit
signed integer (-215) on individual underflow. Saturation for unsigned integers is also supported by the ADDS.HU
instruction. Similarly, all packed addition operations have an equivalent subtraction.
Besides addition and subtraction, arithmetic on packed data includes absolute value, absolute difference, shift,
and count leading operations.
Packed multiplication is described in the section Packed Multiply and Packed MAC, page 2-10.
Compare instructions are described in Compare Instructions, page 2-11.
TC1050B
Operand m
Operand n
Result
Operation
Byte 3
Byte 3
Destination 3 Destination 2
Byte 2
Destination 1
Byte 1
Destination 0
Byte 0
Byte 2 Byte 1 Byte 0