INTSPU Convert Unsigned Integer to Single-Precision Floating-Point Value

 

 

 

Convert Unsigned Integer to Single-Precision Floating-Point Value

 

INTSPU

 

 

 

Syntax

 

 

 

 

INTSPU (.unit) src2, dst

 

 

 

 

 

 

 

 

 

 

 

 

 

 

.unit = .L1 or .L2

 

 

 

 

 

 

 

 

 

 

 

Compatibility

 

 

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 1 0 0 1 0 0 1

1 1 0 s

p

3

1

5

 

5

1

1

1

 

 

 

 

 

 

 

 

 

 

Opcode map field used...

For operand type...

Unit

 

 

 

 

 

 

 

 

 

 

 

 

src2

 

xuint

.L1, .L2

 

 

 

 

dst

 

sp

 

 

 

 

 

Description

The unsigned integer value in src2 is converted to single-precision value and

 

 

placed in dst.

 

 

 

Execution

 

if (cond)

sp(src2) dst

 

 

 

 

 

else

nop

 

 

 

Pipeline

Instruction Type

Delay Slots

Functional Unit

Latency

See Also

Example

The only configuration bit that can be set is the INEX bit and only if the mantissa is rounded.

Pipeline

E1

E2

E3

E4

Stage

 

 

 

 

 

Read

src2

 

 

 

Written

 

 

 

dst

Unit in use

.L

 

 

 

 

 

 

 

 

4-cycle

3

1

INTDP, INTDPU, INTSP

INTSPU .L1X B1,A2

 

Before instruction

 

4 cycles after instruction

B1

 

 

 

 

 

 

FFFF FFDEh

4294967262

B1

C020

0000h

4294967262

 

 

 

 

 

 

 

 

 

 

 

 

 

 

A2

xxxx xxxxh

 

A2

4F80

0000h

4.2949673 E09

 

 

 

 

 

 

 

3-122

Instruction Set

SPRU733

Page 182
Image 182
Texas Instruments TMS320C67X/C67X+ DSP manual Intspu, INTDP, INTDPU, Intsp