EasyManua.ls Logo

Infineon TriCore TC1.6P - CLZ.H - Count Leading Zeros in Packed Half-Words

Infineon TriCore TC1.6P
484 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TriCore
®
TC1.6P & TC1.6E
32-bit Unified Processor Core
Instruction Set
V1.0 2013-07
User Manual (Volume 2) 3-73
CLZ.H
Count Leading Zeros in Packed Half-words
Description
Count the number of consecutive zeros in each half-word of D[a], starting with the most significant bit of each half-
word, and put each result in the corresponding half-word of D[c].
CLZ.HD[c], D[a] (RR)
result_halfword1 = zero_ext(leading_zeros(D[a][31:16]));
result_halfword0 = zero_ext(leading_zeros(D[a][15:0]));
D[c] = {result_halfword1[15:0],result_halfword0[15:0]};
Status Flags
Examples
clz.h d3, d1
See Also
CLO, CLO.H, CLS, CLS.H, CLZ
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
7C
H
20 19
-
18 17
-
16 15
-
12 11
a
8 7
0F
H
0

Table of Contents

Related product manuals