Boxis R700 User Manual Page 238

  • Download
  • Add to my manuals
  • Print
  • Page
    / 392
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 237
ATI R700 Technology
9-140 ALU Instructions
Copyright © 2009 Advanced Micro Devices, Inc. All rights reserved.
Floating-Point Predicate Set If Greater Than, 64-Bit
Instructions
PRED_SETGT_64
Description Floating-point 64-bit predicate set if greater than. Updates the predicate register. Compares
two double-precision floating-point numbers in src0.YX and src1.YX, or src0.WZ and
src1.WZ, and returns 0x0 if src0>src1 or 0xFFFFFFFF; otherwise, it returns the unsigned
integer result in dst.YX or dst.WZ.
The instruction can also optionally establish a predicate result (execute or skip) for
subsequent predicated instruction execution. This additional control allows a compiler to
support one-instruction issue for if/elseif operations, or an integer result for nested flow-
control, by using single-precision operations to manipulate a predicate counter.
if (src0>src1)
{
result = 0x0;
predicate_result = execute;
}
else
{
result = 0xFFFFFFFF;
predicate_result = skip;
}
Coissue PRED_SETGT_64 is a two-slot instruction. The following coissues are possible:
A single PRED_SETGT_64 instruction in slots 0 and 1, and any valid instructions in slots 2,
3, and 4, except other predicate-set instructions.
A single PRED_SETGT_64 instruction in slots 2 and 3, and any valid instructions in slots 0,
1, and 4, except other predicate-set instructions.
Two PRED_SETGT_64 instructions in slots 0, 1, 2, and 3,and any valid instruction in slot 4,
except other predicate-set instructions.
Table 9.12 Result of PRED_SETGT_64 Instruction
src0
src1
-inf -F
1
1. F is a finite floating-point value.
-denorm
2
2. Denorms are treated arithmetically and obey rules of appropriate zero.
-0 +0 +denorm
2
+F
1
+inf NaN
-inf FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
-F
1
TRUE TRUE or
FALSE
FALSE FALSE FALSE FALSE FALSE FALSE FALSE
-denorm
2
TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
-0 TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
+0 TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
+denorm
2
TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
+F
1
TRUE TRUE TRUE TRUE TRUE TRUE TRUE or
FALSE
FALSE FALSE
+inf TRUE TRUE TRUE TRUE TRUE TRUE TRUE FALSE FALSE
NaN FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
Page view 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 391 392

Comments to this Manuals

No comments