SUBDP Subtract Two Double-Precision Floating-Point Values

 

 

 

Subtract Two Double-Precision Floating-Point Values

 

 

 

 

 

SUBDP

 

 

 

 

 

 

 

Syntax

 

 

 

 

SUBDP (.unit) src1, src2, dst

 

 

 

(C67x and C67x+ CPU)

 

 

 

 

 

 

.unit = .L1 or .L2

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

or

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SUBDP (.unit) src1, src2, dst

 

 

 

(C67x+ CPU only)

 

 

 

 

 

 

 

 

.unit = .S1 or .S2

 

 

 

 

 

 

 

 

 

 

 

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

src1

x

op

1 1

0s

p

3

1

5

 

5

5

1

7

1

1

 

 

 

 

 

 

 

 

 

 

 

 

 

Opcode map field used...

For operand type...

Unit

Opfield

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

src1

 

dp

 

.L1, .L2

001 1001

 

 

 

 

 

src2

 

xdp

 

 

 

 

 

 

 

 

dst

 

dp

 

 

 

 

 

 

 

 

src1

 

xdp

 

.L1, .L2

001 1101

 

 

 

 

 

src2

 

dp

 

 

 

 

 

 

 

 

dst

 

dp

 

 

 

 

 

 

 

 

src1

 

dp

 

.S1, .S2

111 0011

 

 

 

 

 

src2

 

xdp

 

 

 

 

 

 

 

 

dst

 

dp

 

 

 

 

 

 

 

 

src1

 

dp

 

.S1, .S2

111 0111

 

 

 

 

 

src2

 

xdp

 

 

src2 − src1

 

 

 

 

 

dst

 

dp

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Note:

 

 

 

 

 

 

 

 

 

 

The assembly syntax allows a cross-path operand to be used for either src1

 

 

 

or src2. The assembler selects between the two opcodes based on which

 

 

 

source operand in the assembly instruction requires the cross path. If src1

 

 

 

requires the cross path, the assembler chooses the second (reverse) form

 

 

 

of the instruction syntax and reverses the order of the operands in the

 

 

 

encoded instruction.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

src2 is subtracted from src1. The result is placed in dst.

 

 

 

Execution

 

 

if (cond)

src1 src2 dst

 

 

 

 

 

 

 

 

else

nop

 

 

 

 

 

 

3-260

Instruction Set

SPRU733

Page 320
Image 320
Texas Instruments TMS320C67X/C67X+ DSP manual Subtract Two Double-Precision Floating-Point Values, Subdp