Download Print this page

Cmpeqsp (Compare For Equality, Single-Precision Floating-Point Values) - Texas Instruments TMS320C67X Reference Manual

Dsp and cpu instruction set

Advertisement

CMPEQSP
Compare for Equality, Single-Precision Floating-Point Values
CMPEQSP
Syntax
Compatibility
Opcode
31
29
28
27
creg
z
dst
3
1
5
Description
Execution
3-84
Instruction Set
Compare for Equality, Single-Precision Floating-Point Values
CMPEQSP (.unit) src1, src2, dst
.unit = .S1 or .S2
C67x and C67x+ CPU
23
22
18
src2
5
Opcode map field used...
src1
src2
dst
Compares src1 to src2. If src1 equals src2, then 1 is written to dst; otherwise,
0 is written to dst.
if (cond)
{
if (src1 == src2) 1 → dst
else 0 → dst
}
else
nop
Special cases of inputs:
Input
src1
NaN
don't care
don't care
NaN
+/−denormalized
+/−0
+/−denormalized
+/−0
+/−denormalized +/−denormalized
+infinity
+infinity
−infinity
−infinity
17
13
12
11
src1
x
1
5
1
For operand type...
sp
xsp
sint
src2
Output
0
NaN
0
NaN
0
+/−0
1
1
+/−0
1
1
+infinity
1
other
0
−infinity
1
other
0
6
5
4
3
1 1 0 0 0 1 0 0 0 s p
Unit
.S1, .S2
FAUCR Bits
UNORD
INVAL
1
0
1
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
SPRU733
2
1
0
1
1

Hide quick links:

Advertisement

loading
Need help?

Need help?

Do you have a question about the TMS320C67X and is the answer not in the manual?

Subscribe to Our Youtube Channel

Save PDF