ABSDP
Double-Precision Floating-Point Absolute Value
4-16
Syntax
ABSDP (.unit)
src2, dst
.unit = .S1 or .S2
Opcode map field used...
For operand type...
Unit
src2
dst
dp
dp
.S1, .S2
Opcode
31
29 28 27
23 22
18 17
creg
z
dst
13 12
5
4
3
2
1
0
1 0 1 1 0 0
0
0
0
s
p
3
5
5
5
6
6
1
11
x
src2
rsv
Description
The absolute value of
src2 is placed in dst. The 64-bit double-precision oper-
and is read in one cycle by using the
src2 port for the 32 MSBs and the src1
port for the 32 LSBs.
Execution
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.
Pipeline
Stage
E1
E2
Read
src2_l
src2_h
Written
dst_l
dst_h
Unit in use
.S
Pipeline