Cmpltdp – Texas Instruments TMS320C67X/C67X+ DSP User Manual

Page 158

Advertising
background image

CMPLTDP

Compare for Less Than, Double-Precision Floating-Point Values

3-98

Instruction Set

SPRU733

Compare for Less Than, Double-Precision Floating-Point Values

CMPLTDP

Syntax

CMPLTDP (.unit) src1, src2, dst

.unit = .S1 or .S2

Compatibility

C67x and C67x+ CPU

Opcode

31

29

28

27

23

22

18

17

13

12

11

6

5

4

3

2

1

0

creg

z

dst

src2

src1

x 1 0 1 0 1 0 1 0 0 0 s p

3

1

5

5

5

1

1

1

Opcode map field used...

For operand type...

Unit

src1
src2
dst

dp
xdp
sint

.S1, .S2

Description

Compares src1 to src2. If src1 is less than src2, then 1 is written to dst; other-
wise, 0 is written to dst.

Execution

if (cond)

{
if (src1 t src2) 1 → dst

else 0 → dst

}

else

nop

Special cases of inputs:

Input

FAUCR Bits

src1

src2

Output

UNORD

INVAL

NaN

don’t care

0

1

1

don’t care

NaN

0

1

1

NaN

NaN

0

1

1

+/−denormalized

+/−0

0

0

0

+/−0

+/−denormalized

0

0

0

+/−0

+/−0

0

0

0

+/−denormalized +/−denormalized

0

0

0

+infinity

+infinity

0

0

0

+infinity

other

0

0

0

−infinity

−infinity

0

0

0

−infinity

other

1

0

0

Advertising