Boxis R700 User Manual Page 166

  • Download
  • Add to my manuals
  • Print
  • Page
    / 392
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 165
ATI R700 Technology
9-68 ALU Instructions
Copyright © 2009 Advanced Micro Devices, Inc. All rights reserved.
Floating-Point Fractional, 64-Bit
Instructions
FRACT_64
Description Gets the positive fractional part of a 64-bit floating-point value located in src0.YX or
src0.WZ, and places the result in dst.YX or dst.WZ, respectively.
dst = src0;
mant = mantissa(src0)
exp = exponent(src0)
sign = sign(src0)
if (exp==0x7FF) //src0 is an inf or a NaN
{
If (mant==0x0) //src0 is NaN
{
dst = src0;
}
else //src0 is inf
{
dst = NaN64;
}
}
else if (exp==0x0) //src0 is zero or a denorm
{
dst = 0x0;
}
else //src0 is a float
{
dst = src0 – floor(src0);
}
Coissue FRACT_64 is a two-slot instruction. The following coissues are possible:.
A single FRACT_64 instruction in slots 0 and 1, and any valid instructions in slots 2, 3, and
4.
A single FRACT_64 instruction in slots 2 and 3, and any valid instructions in slots 0, 1, and
4.
Two FRACT_64 instructions in slots 0, 1, 2, and 3,and any valid instruction in slot 4.
Microcode
Format ALU_DWORD0 (page 10-16) and ALU_DWORD1_OP2 (page 10-18).
Table 9.4 Result of FRACT_64 Instruction
src0
-inf -F
1
1. F is a finite floating-point value.
-1.0 -denorm -0 +0 +denorm +1.0 +F
1
+inf NaN
NaN64 [+0.0,+1.0) +0 +0 +0 +0 +0 +0 [+0.0,+1.0)* NaN64 NaN64
C DE
D
R
DST_GPR BS ALU_INST OMOD
W
M
U
P
U
E
M
S
1
A
S
0
A
+4
L PS IM
S
1
N
S1E
S
1
R
SRC1_SEL
S
0
N
S0E
S
0
R
SRC0_SEL
+0
Page view 165
1 2 ... 161 162 163 164 165 166 167 168 169 170 171 ... 391 392

Comments to this Manuals

No comments