TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-180
LT.B
Less Than Packed Byte
LT.BU
Less Than Packed Byte Unsigned
Description
Compare each byte of data register D[a] with the corresponding byte of D[b]. In each case, if the value of the byte
in D[a] is less than the value of the byte in D[b], set all bits in the corresponding byte of D[c] to one; otherwise clear
all the bits. The operands are treated as signed (LT.B) or unsigned (LT.BU) 8-bit integers.
LT.BD[c], D[a], D[b] (RR)
D[c][31:24] = (D[a][31:24] < D[b][31:24]) ? 8’hFF : 8’h00;
D[c][23:16] = (D[a][23:16] < D[b][23:16]) ? 8’hFF : 8’h00;
D[c][15:8] = (D[a][15:8] < D[b][15:8]) ? 8’hFF : 8’h00;
D[c][7:0] = (D[a][7:0] < D[b][7:0]) ? 8’hFF : 8’h00;
LT.BUD[c], D[a], D[b] (RR)
D[c][31:24] = (D[a][31:24] < D[b][31:24]) ? 8’hFF : 8’h00; // unsigned
D[c][23:16] = (D[a][23:16] < D[b][23:16]) ? 8’hFF : 8’h00; // unsigned
D[c][15:8] = (D[a][15:8] < D[b][15:8]) ? 8’hFF : 8’h00; // unsigned
D[c][7:0] = (D[a][7:0] < D[b][7:0]) ? 8’hFF : 8’h00; // unsigned
Status Flags
Examples
lt.b d3, d1, d2
lt.bu d3, d1, d2
See Also
EQ.B, EQ.H, EQ.W, LT.H, LT.HU, LT.W, LT.WU
C Not set by these instructions.
V Not set by these instructions.
SV Not set by these instructions.
AV Not set by these instructions.
SAV Not set by these instructions.
31
c
28 27
52
H
20 19
-
18 17
-
16 15
b
12 11
a
8 7
0B
H
0
31
c
28 27
53
H
20 19
-
18 17
-
16 15
b
12 11
a
8 7
0B
H
0