Download Print this page

Abssp (Absolute Value, Single-Precision Floating-Point) - Texas Instruments TMS320C67X Reference Manual

Dsp and cpu instruction set

Advertisement

ABSSP
Absolute Value, Single-Precision Floating-Point
ABSSP
Syntax
Compatibility
Opcode
31
29
28
27
creg
z
dst
3
1
5
Description
Execution
3-42
Instruction Set
Absolute Value, Single-Precision Floating-Point
ABSSP (.unit) src2, dst
.unit = . S1 or .S2
C67x and C67x+ CPU
23
22
18
src2
5
Opcode map field used...
src2
dst
The absolute value in src2 is placed in dst.
if (cond)
abs(src2) → dst
else
nop
The absolute value of src2 is determined as follows:
1) If src2 w 0, then src2 → dst
2) If src2 t 0, then −src2 → dst
Notes:
1) If scr2 is SNaN, NaN_out is placed in dst and the INVAL and NAN2 bits
are set.
2) If src2 is QNaN, NaN_out is placed in dst and the NAN2 bit is set.
3) If src2 is denormalized, +0 is placed in dst and the INEX and DEN2 bits
are set.
4) If src2 is +infinity or −infinity, +infinity is placed in dst and the INFO bit is
set.
17
13
12
11
0
0
0
0
0
x
1
1
For operand type...
xsp
sp
6
5
4
3
1 1 1 0 0 1 0 0 0 s p
Unit
.S1, .S2
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?

Save PDF