Boxis R700 Manuel d'utilisateur Page 77

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 392
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 76
ATI R700 Technology
ALU Instructions 4-19
Copyright © 2009 Advanced Micro Devices, Inc. All rights reserved.
// Any constant, including literal and inline constants
if $const_count >= 2
assert “More than two references to a constant in
transcendental operation.”;
$const_count++;
if iscfile($sel)
reserve_cfile($sel, $elem);
for $src in {0, ..., number_of_operands(ALU_INST)}
$sel := SRC$src_SEL;
$elem := SRC$src_ELEM;
if isgpr($sel)
$cycle := cycle_for_bank_swizzle(BANK_SWIZZLE, $src);
if $cycle < $const_count
assert “Cycle $cycle for GPR load conflicts with
constant
load in transcendental operation.”;
reserve_gpr($sel, $elem, $cycle);
elsif isconst($sel)
// Constants already processed
else
// No restrictions on PV, PS
end
4.8 ALU Instructions
This section gives a brief summary of ALU instructions. See Section 9.2, “ALU
Instructions,” page 9-42, for details about the instructions.
4.8.1 Instructions for All ALU Units
The instructions shown in Table 4.4 are valid for all ALU units: ALU.[X,Y,Z,W]
units and ALU.Trans units. All of the instruction mnemonics in this table have an
OP2_INST_ or OP3_INST_ prefix that is not shown here.
Table 4.4 ALU Instructions (ALU.[X,Y,Z,W] and ALU.Trans Units)
Mnemonic Description
Integer Operations
AND_INT Logical bit-wise AND.
ASHR_INT Scalar arithmetic shift right. The sign bit is shifted into the vacated locations. src1
is interpreted as an unsigned integer. The component-wise shift right of each 32-bit
value in src0 by an unsigned integer bit count is provided by the LSB 5 bits (0-31
range) in src1.selected_component, inserting 0.
CNDE_INT Integer conditional move equal based on integer (either signed or unsigned).
CNDE Conditional move equal based on floating point compare of first argument being
equal to 0.0.
CNDGE_INT Integer conditional move greater than or equal based on signed integer values.
CNDGE Conditional move equal based on floating point compare of first argument being
greater than, or equal to, 0.0.
CNDGT_INT Integer conditional move greater than based on signed integer values.
Vue de la page 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 391 392

Commentaires sur ces manuels

Pas de commentaire