NORM
Normalize Integer
Syntax
Opcode
31
29 28 27
creg
z
dst
3
5
Description
src2
src2
src2
src2
Execution
3-96
NORM (.unit) src2 , dst
.unit = .L1 or .L2
Opcode map field used...
src2
dst
src2
dst
23 22
18 17
src2
5
The number of redundant sign bits of src2 is placed in dst . Several examples
are shown in the following diagram.
In this case, NORM returns 0:
0 1 x x x x x x
x
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
In this case, NORM returns 3:
0 0 0 0 1 x x x
x
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
In this case, NORM returns 30:
1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
In this case, NORM returns 31:
1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9
norm( src )
if (cond)
else
nop
For operand type...
xsint
uint
slong
uint
13 12 11
0 0 0 0 0
x
5
x
x
x
x
x x
x
x
x x x x x x x x x x x x x x x
x
x
x
x
x x
x
x
x x x x x x x x x x x x x x x
dst
Unit
Opfield
.L1, .L2
1100011
.L1, .L2
1100000
5
4
3
2
op
1
1
0
7
8
7
6
5 4
3
2
8
7
6
5 4
3
2
1 1 1 1 1 1 1 1 0
8
7
6
5 4
3
2
1 1 1 1 1 1 1 1 1
8
7
6
5 4
3
2
1
0
s
p
1
0
1
0
1
0
1
0
Need help?
Do you have a question about the TMS320C6000 Series and is the answer not in the manual?