Boxis R700 User Manual Page 225

  • Download
  • Add to my manuals
  • Print
  • Page
    / 392
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 224
ATI R700 Technology
ALU Instructions 9-127
Copyright © 2009 Advanced Micro Devices, Inc. All rights reserved.
Floating-Point Predicate Set If Equal, 64-Bit
Instructions
PRED_SETE_64
Description Floating-point 64-bit predicate set if equal. 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 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)
{
dst = 0x0;
predicate_result = execute;
}
else
{
dst = 0xFFFFFFFF;
predicate_result = skip;
}
Coissue PRED_SETE_64 is a two-slot instruction. The following coissues are possible:
A single PRED_SETE_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_SETE_64 instruction in slots 2 and 3, and any valid instructions in slots 0,
1, and 4, except other predicate-set instructions.
Two PRED_SETE_64 instructions in slots 0, 1, 2, and 3,and any valid instruction in slot 4,
except other predicate-set instructions.
Table 9.10 Result of PRED_SETE_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 TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
-F
1
FALSE TRUE or
FALSE
FALSE FALSE FALSE FALSE FALSE FALSE FALSE
-denorm
2
FALSE FALSE TRUE TRUE TRUE TRUE FALSE FALSE FALSE
-0 FALSE FALSE TRUE TRUE TRUE TRUE FALSE FALSE FALSE
+0 FALSE FALSE TRUE TRUE TRUE TRUE FALSE FALSE FALSE
+denorm
2
FALSE FALSE TRUE TRUE TRUE TRUE FALSE FALSE FALSE
+F
1
FALSE FALSE FALSE FALSE FALSE FALSE TRUE or
FALSE
FALSE FALSE
+inf FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE
NaN FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
Page view 224
1 2 ... 220 221 222 223 224 225 226 227 228 229 230 ... 391 392

Comments to this Manuals

No comments