TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-72
CLZ
Count Leading Zeros
Description
Count the number of consecutive zeros in D[a] starting with bit 31, and put result in D[c].
CLZD[c], D[a] (RR)
result = leading_zeros(D[a]);
D[c] = zero_ext(result);
Status Flags
Examples
clz d3, d1
See Also
CLO, CLO.H, CLS, CLS.H, CLZ.H
C Not set by this instruction.
V Not set by this instruction.
SV Not set by this instruction.
AV Not set by this instruction.
SAV Not set by this instruction.
31
c
28 27
1B
H
20 19
-
18 17
-
16 15
-
12 11
a
8 7
0F
H
0