Convert Single-Precision Floating-Point Value to Integer With Truncation

SPTRUNC

 

Pipeline

 

 

 

 

 

 

 

 

Pipeline

E1

E2

E3

E4

 

 

 

 

 

 

Stage

 

 

 

 

 

 

 

 

 

 

 

Read

src2

 

 

 

 

 

 

Written

 

 

 

dst

 

 

 

Unit in use

.L

 

 

 

 

 

 

 

 

 

 

 

 

Instruction Type

4-cycle

 

 

Delay Slots

3

 

 

 

Functional Unit

1

 

 

 

Latency

 

 

 

 

See Also

DPTRUNC, SPDP, SPINT

 

Example

SPTRUNC .L1X B1,A2

 

 

 

Before instruction

 

 

B1

 

8.6

B1

 

4109 9999Ah

 

 

 

 

 

 

 

 

 

 

 

A2

xxxx xxxxh

 

A2

 

 

 

 

 

4 cycles after instruction

4109

999Ah

8.6

 

 

 

 

 

 

0000

0008h

8

 

 

 

SPRU733

Instruction Set

3-231

Page 291
Image 291
Texas Instruments TMS320C67X/C67X+ DSP manual Sptrunc, DPTRUNC, SPDP, Spint