Texas Instruments TMS320C6000 Series Reference Manual page 75

Table of Contents

Advertisement

ABS
Integer Absolute Value With Saturation
Syntax
Opcode
31
29 28 27
creg
z
dst
3
5
Description
Execution
Pipeline
Instruction Type
Delay Slots
3-28
ABS (.unit) src2 , dst
.unit = .L1, .L2
Opcode map field used...
src2
dst
src2
dst
23 22
18 17
src2
5
The absolute value of src2 is placed in dst .
if (cond)
abs( src2 )
else
nop
The absolute value of src2 when src2 is an sint is determined as follows:
1) If src2 w 0, then src2
2) If src2
0 and src2
31
3) If src2 = –2
, then 2
The absolute value of src2 when src2 is an slong is determined as follows:
1) If src2 w 0, then src2
2) If src2
0 and src2
39
3) If src2 = –2
, then 2
Pipeline
E1
Stage
src2
Read
Written
dst
Unit in use
.L
Single-cycle
0
For operand type...
xsint
sint
slong
slong
13 12 11
0 0 0 0 0
x
5
dst
dst
31
–2
, then – src2
31
dst
– 1
dst
39
–2
, then – src2
39
dst
– 1
Unit
Opfield
.L1, .L2
0011010
.L1, L2
0111000
5
4
3
2
op
1
1
0
7
dst
dst
1
0
s
p

Advertisement

Table of Contents
loading
Need help?

Need help?

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

This manual is also suitable for:

Tms320c67 seriesTms320c62 series

Table of Contents