TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set Overview
V1.0 2013-07
User Manual (Volume 2) 2-14
Figure 2-12 Boolean Operations
2.6.2 Accumulating Bit Operations
Evaluation of complex Boolean equations can use the 3-input Boolean operations, in which the output of a two-
input instruction, together with the least-significant bit of a third data register, forms the input to a further operation.
The result is written to bit 0 of the third data register, with the remaining bits unchanged (Figure 2-13).
Figure 2-13 Three-Input Boolean Operation
Of the many possible 3-input operations, eight have been singled out for the efficient evaluation of logical
expressions. The instructions provided are:
• AND.AND.T
• AND.ANDN.T
• AND.NOR.T
• AND.OR.T
• OR.AND.T
• OR.ANDN.T
• OR.NOR.T
•OR.OR.T
2.6.3 Shifting Bit Operations
As with the comparison instructions, the results of bit operations often need to be packed into a single register for
controller applications. For this reason the basic two-input instructions can be combined with a shift prefix (for
example, SH.AND.T).
These operations first perform a single-bit left shift on the destination register and then store the result of the two-
input logic function into its least-significant bit (Figure 2-14, Page 2-15).
D[a] D[b]
Boolean op
p1 p2
D[c]
31 0 31 0
031
TC1055B
op = AND, NAND, OR, NOR,
XOR, XNOR, ANDN or ORN
TC1056C
D[a]
Boolean op
p1
D[c]
Boolean op
D[c]
31
0
31 0
31
0
op = AND, NAND, NOR
or OR
op = AND or OR
D[b]
p231 0