NORM

 

Normalize Integer

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Normalize Integer

 

 

 

 

 

 

 

 

 

 

 

 

NORM

 

 

 

 

 

 

 

 

 

 

 

 

 

Syntax

 

 

 

 

NORM (.unit) src2, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.unit = .L1 or .L2

 

 

 

 

 

 

 

 

 

 

 

Compatibility

 

 

C62x, C64x, C67x, and C67x+ CPU

 

 

 

 

 

 

 

 

 

Opcode

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

31

29

28

27

23

22

18

17

13

12

11

5

4

3

2

1

0

creg

z

dst

src2

0 0 0 0 0 x

op

1 1 0 s

p

3 155171 1

Opcode map field used...

For operand type...

Unit

Opfield

 

 

 

 

src2

xsint

.L1, .L2

110 0011

dst

uint

 

 

src2

slong

.L1, .L2

110 0000

dst

uint

 

 

 

 

 

 

Description

src2

src2

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

x

x

x

x

x

x

x

x

x

x

x

x

x

x

x

x

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

8

7

6

5

4

3

2

1

0

In this case, NORM returns 3:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

0

0

0

1

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

31

30

29

28

27 26 25 24 23 22 21 20 19

18 17 16 15 14 13 12

11 10

9

8

7

6

5

4

3

2

1

0

src2

src2

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

1

1

1

1

1

1

1

1

0

31

30

29

28

27 26

25

24 23

22

21

20 19

18

17

16

15

14

13

12

11 10

9

8

7

6

5

4

3

2

1

0

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

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

8

7

6

5

4

3

2

1

0

3-192

Instruction Set

SPRU733

Page 252
Image 252
Texas Instruments TMS320C67X/C67X+ DSP manual Normalize Integer