home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / prgramer / unix / info / gcc.i09 (.txt) < prev    next >
GNU Info File  |  1993-06-12  |  52KB  |  943 lines

  1. This is Info file gcc.info, produced by Makeinfo-1.47 from the input
  2. file gcc.tex.
  3.    This file documents the use and the internals of the GNU compiler.
  4.    Copyright (C) 1988, 1989, 1992 Free Software Foundation, Inc.
  5.    Permission is granted to make and distribute verbatim copies of this
  6. manual provided the copyright notice and this permission notice are
  7. preserved on all copies.
  8.    Permission is granted to copy and distribute modified versions of
  9. this manual under the conditions for verbatim copying, provided also
  10. that the sections entitled "GNU General Public License" and "Protect
  11. Your Freedom--Fight `Look And Feel'" are included exactly as in the
  12. original, and provided that the entire resulting derived work is
  13. distributed under the terms of a permission notice identical to this
  14.    Permission is granted to copy and distribute translations of this
  15. manual into another language, under the above conditions for modified
  16. versions, except that the sections entitled "GNU General Public
  17. License" and "Protect Your Freedom--Fight `Look And Feel'", and this
  18. permission notice, may be included in translations approved by the Free
  19. Software Foundation instead of in the original English.
  20. File: gcc.info,  Node: Accessors,  Next: Flags,  Prev: RTL Objects,  Up: RTL
  21. Access to Operands
  22. ==================
  23.    For each expression type `rtl.def' specifies the number of contained
  24. objects and their kinds, with four possibilities: `e' for expression
  25. (actually a pointer to an expression), `i' for integer, `w' for wide
  26. integer, `s' for string, and `E' for vector of expressions.  The
  27. sequence of letters for an expression code is called its "format". 
  28. Thus, the format of `subreg' is `ei'.
  29.    A few other format characters are used occasionally:
  30.      `u' is equivalent to `e' except that it is printed differently in
  31.      debugging dumps.  It is used for pointers to insns.
  32.      `n' is equivalent to `i' except that it is printed differently in
  33.      debugging dumps.  It is used for the line number or code number of
  34.      a `note' insn.
  35.      `S' indicates a string which is optional.  In the RTL objects in
  36.      core, `S' is equivalent to `s', but when the object is read, from
  37.      an `md' file, the string value of this operand may be omitted. An
  38.      omitted string is taken to be the null string.
  39.      `V' indicates a vector which is optional.  In the RTL objects in
  40.      core, `V' is equivalent to `E', but when the object is read from
  41.      an `md' file, the vector value of this operand may be omitted. An
  42.      omitted vector is effectively the same as a vector of no elements.
  43.      `0' means a slot whose contents do not fit any normal category.
  44.      `0' slots are not printed at all in dumps, and are often used in
  45.      special ways by small parts of the compiler.
  46.    There are macros to get the number of operands, the format, and the
  47. class of an expression code:
  48. `GET_RTX_LENGTH (CODE)'
  49.      Number of operands of an RTX of code CODE.
  50. `GET_RTX_FORMAT (CODE)'
  51.      The format of an RTX of code CODE, as a C string.
  52. `GET_RTX_CLASS (CODE)'
  53.      A single character representing the type of RTX operation that code
  54.      CODE performs.
  55.      The following classes are defined:
  56.     `o'
  57.           An RTX code that represents an actual object, such as `reg' or
  58.           `mem'.  `subreg' is not in this class.
  59.     `<'
  60.           An RTX code for a comparison.  The codes in this class are
  61.           `NE', `EQ', `LE', `LT', `GE', `GT', `LEU', `LTU', `GEU',
  62.           `GTU'.
  63.     `1'
  64.           An RTX code for a unary arithmetic operation, such as `neg'.
  65.     `c'
  66.           An RTX code for a commutative binary operation, other than
  67.           `NE' and `EQ' (which have class `<').
  68.     `2'
  69.           An RTX code for a noncommutative binary operation, such as
  70.           `MINUS'.
  71.     `b'
  72.           An RTX code for a bitfield operation (`ZERO_EXTRACT' and
  73.           `SIGN_EXTRACT').
  74.     `3'
  75.           An RTX code for other three input operations, such as
  76.           `IF_THEN_ELSE'.
  77.     `i'
  78.           An RTX code for a machine insn (`INSN', `JUMP_INSN', and
  79.           `CALL_INSN').
  80.     `m'
  81.           An RTX code for something that matches in insns, such as
  82.           `MATCH_DUP'.
  83.     `x'
  84.           All other RTX codes.
  85.    Operands of expressions are accessed using the macros `XEXP',
  86. `XINT', `XWINT' and `XSTR'.  Each of these macros takes two arguments:
  87. an expression-pointer (RTX) and an operand number (counting from zero).
  88.  Thus,
  89.      XEXP (X, 2)
  90. accesses operand 2 of expression X, as an expression.
  91.      XINT (X, 2)
  92. accesses the same operand as an integer.  `XSTR', used in the same
  93. fashion, would access it as a string.
  94.    Any operand can be accessed as an integer, as an expression or as a
  95. string. You must choose the correct method of access for the kind of
  96. value actually stored in the operand.  You would do this based on the
  97. expression code of the containing expression.  That is also how you
  98. would know how many operands there are.
  99.    For example, if X is a `subreg' expression, you know that it has two
  100. operands which can be correctly accessed as `XEXP (X, 0)' and `XINT (X,
  101. 1)'.  If you did `XINT (X, 0)', you would get the address of the
  102. expression operand but cast as an integer; that might occasionally be
  103. useful, but it would be cleaner to write `(int) XEXP (X, 0)'.  `XEXP
  104. (X, 1)' would also compile without error, and would return the second,
  105. integer operand cast as an expression pointer, which would probably
  106. result in a crash when accessed.  Nothing stops you from writing `XEXP
  107. (X, 28)' either, but this will access memory past the end of the
  108. expression with unpredictable results.
  109.    Access to operands which are vectors is more complicated.  You can
  110. use the macro `XVEC' to get the vector-pointer itself, or the macros
  111. `XVECEXP' and `XVECLEN' to access the elements and length of a vector.
  112. `XVEC (EXP, IDX)'
  113.      Access the vector-pointer which is operand number IDX in EXP.
  114. `XVECLEN (EXP, IDX)'
  115.      Access the length (number of elements) in the vector which is in
  116.      operand number IDX in EXP.  This value is an `int'.
  117. `XVECEXP (EXP, IDX, ELTNUM)'
  118.      Access element number ELTNUM in the vector which is in operand
  119.      number IDX in EXP.  This value is an RTX.
  120.      It is up to you to make sure that ELTNUM is not negative and is
  121.      less than `XVECLEN (EXP, IDX)'.
  122.    All the macros defined in this section expand into lvalues and
  123. therefore can be used to assign the operands, lengths and vector
  124. elements as well as to access them.
  125. File: gcc.info,  Node: Flags,  Next: Machine Modes,  Prev: Accessors,  Up: RTL
  126. Flags in an RTL Expression
  127. ==========================
  128.    RTL expressions contain several flags (one-bit bit-fields) that are
  129. used in certain types of expression.  Most often they are accessed with
  130. the following macros:
  131. `MEM_VOLATILE_P (X)'
  132.      In `mem' expressions, nonzero for volatile memory references.
  133.      Stored in the `volatil' field and printed as `/v'.
  134. `MEM_IN_STRUCT_P (X)'
  135.      In `mem' expressions, nonzero for reference to an entire
  136.      structure, union or array, or to a component of one.  Zero for
  137.      references to a scalar variable or through a pointer to a scalar.
  138.      Stored in the `in_struct' field and printed as `/s'.
  139. `REG_LOOP_TEST_P'
  140.      In `reg' expressions, nonzero if this register's entire life is
  141.      contained in the exit test code for some loop.  Stored in the
  142.      `in_struct' field and printed as `/s'.
  143. `REG_USERVAR_P (X)'
  144.      In a `reg', nonzero if it corresponds to a variable present in the
  145.      user's source code.  Zero for temporaries generated internally by
  146.      the compiler.  Stored in the `volatil' field and printed as `/v'.
  147. `REG_FUNCTION_VALUE_P (X)'
  148.      Nonzero in a `reg' if it is the place in which this function's
  149.      value is going to be returned.  (This happens only in a hard
  150.      register.)  Stored in the `integrated' field and printed as `/i'.
  151.      The same hard register may be used also for collecting the values
  152.      of functions called by this one, but `REG_FUNCTION_VALUE_P' is zero
  153.      in this kind of use.
  154. `SUBREG_PROMOTED_VAR_P'
  155.      Nonzero in a `subreg' if it was made when accessing an object that
  156.      was promoted to a wider mode in accord with the `PROMOTED_MODE'
  157.      machine description macro (*note Storage Layout::.).  In this
  158.      case, the mode of the `subreg' is the declared mode of the object
  159.      and the mode of `SUBREG_REG' is the mode of the register that
  160.      holds the object. Promoted variables are always either sign- or
  161.      zero-extended to the wider mode on every assignment.  Stored in
  162.      the `in_struct' field and printed as `/s'.
  163. `SUBREG_PROMOTED_UNSIGNED_P'
  164.      Nonzero in a `subreg' that has `SUBREG_PROMOTED_VAR_P' nonzero if
  165.      the object being referenced is kept zero-extended and zero if it
  166.      is kept sign-extended.  Stored in the `unchanging' field and
  167.      printed as `/u'.
  168. `RTX_UNCHANGING_P (X)'
  169.      Nonzero in a `reg' or `mem' if the value is not changed. (This
  170.      flag is not set for memory references via pointers to constants.
  171.      Such pointers only guarantee that the object will not be changed
  172.      explicitly by the current function.  The object might be changed by
  173.      other functions or by aliasing.)  Stored in the `unchanging' field
  174.      and printed as `/u'.
  175. `RTX_INTEGRATED_P (INSN)'
  176.      Nonzero in an insn if it resulted from an in-line function call.
  177.      Stored in the `integrated' field and printed as `/i'.  This may be
  178.      deleted; nothing currently depends on it.
  179. `SYMBOL_REF_USED (X)'
  180.      In a `symbol_ref', indicates that X has been used.  This is
  181.      normally only used to ensure that X is only declared external
  182.      once.  Stored in the `used' field.
  183. `SYMBOL_REF_FLAG (X)'
  184.      In a `symbol_ref', this is used as a flag for machine-specific
  185.      purposes. Stored in the `volatil' field and printed as `/v'.
  186. `LABEL_OUTSIDE_LOOP_P'
  187.      In `label_ref' expressions, nonzero if this is a reference to a
  188.      label that is outside the innermost loop containing the reference
  189.      to the label.  Stored in the `in_struct' field and printed as `/s'.
  190. `INSN_DELETED_P (INSN)'
  191.      In an insn, nonzero if the insn has been deleted.  Stored in the
  192.      `volatil' field and printed as `/v'.
  193. `INSN_ANNULLED_BRANCH_P (INSN)'
  194.      In an `insn' in the delay slot of a branch insn, indicates that an
  195.      annulling branch should be used.  See the discussion under
  196.      `sequence' below.  Stored in the `unchanging' field and printed as
  197.      `/u'.
  198. `INSN_FROM_TARGET_P (INSN)'
  199.      In an `insn' in a delay slot of a branch, indicates that the insn
  200.      is from the target of the branch.  If the branch insn has
  201.      `INSN_ANNULLED_BRANCH_P' set, this insn should only be executed if
  202.      the branch is taken.  For annulled branches with this bit clear,
  203.      the insn should be executed only if the branch is not taken. 
  204.      Stored in the `in_struct' field and printed as `/s'.
  205. `CONSTANT_POOL_ADDRESS_P (X)'
  206.      Nonzero in a `symbol_ref' if it refers to part of the current
  207.      function's "constants pool".  These are addresses close to the
  208.      beginning of the function, and GNU CC assumes they can be addressed
  209.      directly (perhaps with the help of base registers).  Stored in the
  210.      `unchanging' field and printed as `/u'.
  211. `CONST_CALL_P (X)'
  212.      In a `call_insn', indicates that the insn represents a call to a
  213.      const function.  Stored in the `unchanging' field and printed as
  214.      `/u'.
  215. `LABEL_PRESERVE_P (X)'
  216.      In a `code_label', indicates that the label can never be deleted.
  217.      Labels referenced by a non-local goto will have this bit set. 
  218.      Stored in the `in_struct' field and printed as `/s'.
  219. `SCHED_GROUP_P (INSN)'
  220.      During instruction scheduling, in an insn, indicates that the
  221.      previous insn must be scheduled together with this insn.  This is
  222.      used to ensure that certain groups of instructions will not be
  223.      split up by the instruction scheduling pass, for example, `use'
  224.      insns before a `call_insn' may not be separated from the
  225.      `call_insn'.  Stored in the `in_struct' field and printed as `/s'.
  226.    These are the fields which the above macros refer to:
  227. `used'
  228.      Normally, this flag is used only momentarily, at the end of RTL
  229.      generation for a function, to count the number of times an
  230.      expression appears in insns.  Expressions that appear more than
  231.      once are copied, according to the rules for shared structure
  232.      (*note Sharing::.).
  233.      In a `symbol_ref', it indicates that an external declaration for
  234.      the symbol has already been written.
  235.      In a `reg', it is used by the leaf register renumbering code to
  236.      ensure that each register is only renumbered once.
  237. `volatil'
  238.      This flag is used in `mem', `symbol_ref' and `reg' expressions and
  239.      in insns.  In RTL dump files, it is printed as `/v'.
  240.      In a `mem' expression, it is 1 if the memory reference is volatile.
  241.      Volatile memory references may not be deleted, reordered or
  242.      combined.
  243.      In a `symbol_ref' expression, it is used for machine-specific
  244.      purposes.
  245.      In a `reg' expression, it is 1 if the value is a user-level
  246.      variable. 0 indicates an internal compiler temporary.
  247.      In an insn, 1 means the insn has been deleted.
  248. `in_struct'
  249.      In `mem' expressions, it is 1 if the memory datum referred to is
  250.      all or part of a structure or array; 0 if it is (or might be) a
  251.      scalar variable.  A reference through a C pointer has 0 because
  252.      the pointer might point to a scalar variable.  This information
  253.      allows the compiler to determine something about possible cases of
  254.      aliasing.
  255.      In an insn in the delay slot of a branch, 1 means that this insn
  256.      is from the target of the branch.
  257.      During instruction scheduling, in an insn, 1 means that this insn
  258.      must be scheduled as part of a group together with the previous
  259.      insn.
  260.      In `reg' expressions, it is 1 if the register has its entire life
  261.      contained within the test expression of some loopl.
  262.      In `subreg' expressions, 1 means that the `subreg' is accessing an
  263.      object that has had its mode promoted from a wider mode.
  264.      In `label_ref' expressions, 1 means that the referenced label is
  265.      outside the innermost loop containing the insn in which the
  266.      `label_ref' was found.
  267.      In `code_label' expressions, it is 1 if the label may never be
  268.      deleted. This is used for labels which are the target of non-local
  269.      gotos.
  270.      In an RTL dump, this flag is represented as `/s'.
  271. `unchanging'
  272.      In `reg' and `mem' expressions, 1 means that the value of the
  273.      expression never changes.
  274.      In `subreg' expressions, it is 1 if the `subreg' references an
  275.      unsigned object whose mode has been promoted to a wider mode.
  276.      In an insn, 1 means that this is an annulling branch.
  277.      In a `symbol_ref' expression, 1 means that this symbol addresses
  278.      something in the per-function constants pool.
  279.      In a `call_insn', 1 means that this instruction is a call to a
  280.      const function.
  281.      In an RTL dump, this flag is represented as `/u'.
  282. `integrated'
  283.      In some kinds of expressions, including insns, this flag means the
  284.      rtl was produced by procedure integration.
  285.      In a `reg' expression, this flag indicates the register containing
  286.      the value to be returned by the current function.  On machines
  287.      that pass parameters in registers, the same register number may be
  288.      used for parameters as well, but this flag is not set on such uses.
  289. File: gcc.info,  Node: Machine Modes,  Next: Constants,  Prev: Flags,  Up: RTL
  290. Machine Modes
  291. =============
  292.    A machine mode describes a size of data object and the
  293. representation used for it.  In the C code, machine modes are
  294. represented by an enumeration type, `enum machine_mode', defined in
  295. `machmode.def'.  Each RTL expression has room for a machine mode and so
  296. do certain kinds of tree expressions (declarations and types, to be
  297. precise).
  298.    In debugging dumps and machine descriptions, the machine mode of an
  299. RTL expression is written after the expression code with a colon to
  300. separate them.  The letters `mode' which appear at the end of each
  301. machine mode name are omitted.  For example, `(reg:SI 38)' is a `reg'
  302. expression with machine mode `SImode'.  If the mode is `VOIDmode', it
  303. is not written at all.
  304.    Here is a table of machine modes.  The term "byte" below refers to an
  305. object of `BITS_PER_UNIT' bits (*note Storage Layout::.).
  306. `QImode'
  307.      "Quarter-Integer" mode represents a single byte treated as an
  308.      integer.
  309. `HImode'
  310.      "Half-Integer" mode represents a two-byte integer.
  311. `PSImode'
  312.      "Partial Single Integer" mode represents an integer which occupies
  313.      four bytes but which doesn't really use all four.  On some
  314.      machines, this is the right mode to use for pointers.
  315. `SImode'
  316.      "Single Integer" mode represents a four-byte integer.
  317. `PDImode'
  318.      "Partial Double Integer" mode represents an integer which occupies
  319.      eight bytes but which doesn't really use all eight.  On some
  320.      machines, this is the right mode to use for certain pointers.
  321. `DImode'
  322.      "Double Integer" mode represents an eight-byte integer.
  323. `TImode'
  324.      "Tetra Integer" (?) mode represents a sixteen-byte integer.
  325. `SFmode'
  326.      "Single Floating" mode represents a single-precision (four byte)
  327.      floating point number.
  328. `DFmode'
  329.      "Double Floating" mode represents a double-precision (eight byte)
  330.      floating point number.
  331. `XFmode'
  332.      "Extended Floating" mode represents a triple-precision (twelve
  333.      byte) floating point number.  This mode is used for IEEE extended
  334.      floating point.
  335. `TFmode'
  336.      "Tetra Floating" mode represents a quadruple-precision (sixteen
  337.      byte) floating point number.
  338. `CCmode'
  339.      "Condition Code" mode represents the value of a condition code,
  340.      which is a machine-specific set of bits used to represent the
  341.      result of a comparison operation.  Other machine-specific modes
  342.      may also be used for the condition code.  These modes are not used
  343.      on machines that use `cc0' (see *note Condition Code::.).
  344. `BLKmode'
  345.      "Block" mode represents values that are aggregates to which none of
  346.      the other modes apply.  In RTL, only memory references can have
  347.      this mode, and only if they appear in string-move or vector
  348.      instructions.  On machines which have no such instructions,
  349.      `BLKmode' will not appear in RTL.
  350. `VOIDmode'
  351.      Void mode means the absence of a mode or an unspecified mode. For
  352.      example, RTL expressions of code `const_int' have mode `VOIDmode'
  353.      because they can be taken to have whatever mode the context
  354.      requires.  In debugging dumps of RTL, `VOIDmode' is expressed by
  355.      the absence of any mode.
  356. `SCmode, DCmode, XCmode, TCmode'
  357.      These modes stand for a complex number represented as a pair of
  358.      floating point values.  The values are in `SFmode', `DFmode',
  359.      `XFmode', and `TFmode', respectively.  Since C does not support
  360.      complex numbers, these machine modes are only partially
  361.      implemented.
  362.    The machine description defines `Pmode' as a C macro which expands
  363. into the machine mode used for addresses.  Normally this is the mode
  364. whose size is `BITS_PER_WORD', `SImode' on 32-bit machines.
  365.    The only modes which a machine description must support are
  366. `QImode', and the modes corresponding to `BITS_PER_WORD',
  367. `FLOAT_TYPE_SIZE' and `DOUBLE_TYPE_SIZE'. The compiler will attempt to
  368. use `DImode' for 8-byte structures and unions, but this can be
  369. prevented by overriding the definition of `MAX_FIXED_MODE_SIZE'. 
  370. Alternatively, you can have the compiler use `TImode' for 16-byte
  371. structures and unions.  Likewise, you can arrange for the C type `short
  372. int' to avoid using `HImode'.
  373.    Very few explicit references to machine modes remain in the compiler
  374. and these few references will soon be removed.  Instead, the machine
  375. modes are divided into mode classes.  These are represented by the
  376. enumeration type `enum mode_class' defined in `machmode.h'.  The
  377. possible mode classes are:
  378. `MODE_INT'
  379.      Integer modes.  By default these are `QImode', `HImode', `SImode',
  380.      `DImode', and `TImode'.
  381. `MODE_PARTIAL_INT'
  382.      The "partial integer" modes, `PSImode' and `PDImode'.
  383. `MODE_FLOAT'
  384.      floating point modes.  By default these are `SFmode', `DFmode',
  385.      `XFmode' and `TFmode'.
  386. `MODE_COMPLEX_INT'
  387.      Complex integer modes.  (These are not currently implemented).
  388. `MODE_COMPLEX_FLOAT'
  389.      Complex floating point modes.  By default these are `SCmode',
  390.      `DCmode', `XCmode', and `TCmode'.
  391. `MODE_FUNCTION'
  392.      Algol or Pascal function variables including a static chain.
  393.      (These are not currently implemented).
  394. `MODE_CC'
  395.      Modes representing condition code values.  These are `CCmode' plus
  396.      any modes listed in the `EXTRA_CC_MODES' macro.  *Note Jump
  397.      Patterns::, also see *Note Condition Code::.
  398. `MODE_RANDOM'
  399.      This is a catchall mode class for modes which don't fit into the
  400.      above classes.  Currently `VOIDmode' and `BLKmode' are in
  401.      `MODE_RANDOM'.
  402.    Here are some C macros that relate to machine modes:
  403. `GET_MODE (X)'
  404.      Returns the machine mode of the RTX X.
  405. `PUT_MODE (X, NEWMODE)'
  406.      Alters the machine mode of the RTX X to be NEWMODE.
  407. `NUM_MACHINE_MODES'
  408.      Stands for the number of machine modes available on the target
  409.      machine.  This is one greater than the largest numeric value of any
  410.      machine mode.
  411. `GET_MODE_NAME (M)'
  412.      Returns the name of mode M as a string.
  413. `GET_MODE_CLASS (M)'
  414.      Returns the mode class of mode M.
  415. `GET_MODE_WIDER_MODE (M)'
  416.      Returns the next wider natural mode.  E.g.,
  417.      `GET_WIDER_MODE(QImode)' returns `HImode'.
  418. `GET_MODE_SIZE (M)'
  419.      Returns the size in bytes of a datum of mode M.
  420. `GET_MODE_BITSIZE (M)'
  421.      Returns the size in bits of a datum of mode M.
  422. `GET_MODE_MASK (M)'
  423.      Returns a bitmask containing 1 for all bits in a word that fit
  424.      within mode M.  This macro can only be used for modes whose
  425.      bitsize is less than or equal to `HOST_BITS_PER_INT'.
  426. `GET_MODE_ALIGNMENT (M))'
  427.      Return the required alignment, in bits, for an object of mode M.
  428. `GET_MODE_UNIT_SIZE (M)'
  429.      Returns the size in bytes of the subunits of a datum of mode M.
  430.      This is the same as `GET_MODE_SIZE' except in the case of complex
  431.      modes.  For them, the unit size is the size of the real or
  432.      imaginary part.
  433. `GET_MODE_NUNITS (M)'
  434.      Returns the number of units contained in a mode, i.e.,
  435.      `GET_MODE_SIZE' divided by `GET_MODE_UNIT_SIZE'.
  436. `GET_CLASS_NARROWEST_MODE (C)'
  437.      Returns the narrowest mode in mode class C.
  438.    The global variables `byte_mode' and `word_mode' contain modes whose
  439. classes are `MODE_INT' and whose bitsizes are `BITS_PER_UNIT' or
  440. `BITS_PER_WORD', respectively.  On 32-bit machines, these are `QImode'
  441. and `SImode', respectively.
  442. File: gcc.info,  Node: Constants,  Next: Regs and Memory,  Prev: Machine Modes,  Up: RTL
  443. Constant Expression Types
  444. =========================
  445.    The simplest RTL expressions are those that represent constant
  446. values.
  447. `(const_int I)'
  448.      This type of expression represents the integer value I.  I is
  449.      customarily accessed with the macro `INTVAL' as in `INTVAL (EXP)',
  450.      which is equivalent to `XWINT (EXP, 0)'.
  451.      There is only one expression object for the integer value zero; it
  452.      is the value of the variable `const0_rtx'.  Likewise, the only
  453.      expression for integer value one is found in `const1_rtx', the only
  454.      expression for integer value two is found in `const2_rtx', and the
  455.      only expression for integer value negative one is found in
  456.      `constm1_rtx'.  Any attempt to create an expression of code
  457.      `const_int' and value zero, one, two or negative one will return
  458.      `const0_rtx', `const1_rtx', `const2_rtx' or `constm1_rtx' as
  459.      appropriate.
  460.      Similarly, there is only one object for the integer whose value is
  461.      `STORE_FLAG_VALUE'.  It is found in `const_true_rtx'.  If
  462.      `STORE_FLAG_VALUE' is one, `const_true_rtx' and `const1_rtx' will
  463.      point to the same object.  If `STORE_FLAG_VALUE' is -1,
  464.      `const_true_rtx' and `constm1_rtx' will point to the same object.
  465. `(const_double:M ADDR I0 I1 ...)'
  466.      Represents either a floating-point constant of mode M or an
  467.      integer constant that is too large to fit into
  468.      `HOST_BITS_PER_WIDE_INT' bits but small enough to fit within twice
  469.      that number of bits (GNU CC does not provide a mechanism to
  470.      represent even larger constants).  In the latter case, M will be
  471.      `VOIDmode'.
  472.      ADDR is used to contain the `mem' expression that corresponds to
  473.      the location in memory that at which the constant can be found.  If
  474.      it has not been allocated a memory location, but is on the chain
  475.      of all `const_double' expressions in this compilation (maintained
  476.      using an undisplayed field), ADDR contains `const0_rtx'.  If it is
  477.      not on the chain, ADDR contains `cc0_rtx'.  ADDR is customarily
  478.      accessed with the macro `CONST_DOUBLE_MEM' and the chain field via
  479.      `CONST_DOUBLE_CHAIN'.
  480.      If M is `VOIDmode', the bits of the value are stored in I0 and I1.
  481.       I0 is customarily accessed with the macro `CONST_DOUBLE_LOW' and
  482.      I1 with `CONST_DOUBLE_HIGH'.
  483.      If the constant is floating point (either single or double
  484.      precision), then the number of integers used to store the value
  485.      depends on the size of `REAL_VALUE_TYPE' (*note
  486.      Cross-compilation::.).  The integers represent a `double'.  To
  487.      convert them to a `double', do
  488.           union real_extract u;
  489.           bcopy (&CONST_DOUBLE_LOW (x), &u, sizeof u);
  490.      and then refer to `u.d'.
  491.      The macro `CONST0_RTX (MODE)' refers to an expression with value 0
  492.      in mode MODE. If mode MODE is of mode class `MODE_INT', it returns
  493.      `const0_rtx'.  Otherwise, it returns a `CONST_DOUBLE' expression
  494.      in mode MODE.  Similarly, the macro `CONST1_RTX (MODE)' refers to
  495.      an expression with value 1 in mode MODE and similarly for
  496.      `CONST2_RTX'.
  497. `(const_string STR)'
  498.      Represents a constant string with value STR.  Currently this is
  499.      used only for insn attributes (*note Insn Attributes::.) since
  500.      constant strings in C are placed in memory.
  501. `(symbol_ref:MODE SYMBOL)'
  502.      Represents the value of an assembler label for data.  SYMBOL is a
  503.      string that describes the name of the assembler label.  If it
  504.      starts with a `*', the label is the rest of SYMBOL not including
  505.      the `*'.  Otherwise, the label is SYMBOL, usually prefixed with
  506.      `_'.
  507.      The `symbol_ref' contains a mode, which is usually `Pmode'.
  508.      Usually that is the only mode for which a symbol is directly valid.
  509. `(label_ref LABEL)'
  510.      Represents the value of an assembler label for code.  It contains
  511.      one operand, an expression, which must be a `code_label' that
  512.      appears in the instruction sequence to identify the place where
  513.      the label should go.
  514.      The reason for using a distinct expression type for code label
  515.      references is so that jump optimization can distinguish them.
  516. `(const:M EXP)'
  517.      Represents a constant that is the result of an assembly-time
  518.      arithmetic computation.  The operand, EXP, is an expression that
  519.      contains only constants (`const_int', `symbol_ref' and `label_ref'
  520.      expressions) combined with `plus' and `minus'.  However, not all
  521.      combinations are valid, since the assembler cannot do arbitrary
  522.      arithmetic on relocatable symbols.
  523.      M should be `Pmode'.
  524. `(high:M EXP)'
  525.      Represents the high-order bits of EXP, usually a `symbol_ref'. 
  526.      The number of bits is machine-dependent and is normally the number
  527.      of bits specified in an instruction that initializes the high
  528.      order bits of a register.  It is used with `lo_sum' to represent
  529.      the typical two-instruction sequence used in RISC machines to
  530.      reference a global memory location.
  531.      M should be `Pmode'.
  532. File: gcc.info,  Node: Regs and Memory,  Next: Arithmetic,  Prev: Constants,  Up: RTL
  533. Registers and Memory
  534. ====================
  535.    Here are the RTL expression types for describing access to machine
  536. registers and to main memory.
  537. `(reg:M N)'
  538.      For small values of the integer N (less than
  539.      `FIRST_PSEUDO_REGISTER'), this stands for a reference to machine
  540.      register number N: a "hard register".  For larger values of N, it
  541.      stands for a temporary value or "pseudo register". The compiler's
  542.      strategy is to generate code assuming an unlimited number of such
  543.      pseudo registers, and later convert them into hard registers or
  544.      into memory references.
  545.      M is the machine mode of the reference.  It is necessary because
  546.      machines can generally refer to each register in more than one
  547.      mode. For example, a register may contain a full word but there
  548.      may be instructions to refer to it as a half word or as a single
  549.      byte, as well as instructions to refer to it as a floating point
  550.      number of various precisions.
  551.      Even for a register that the machine can access in only one mode,
  552.      the mode must always be specified.
  553.      The symbol `FIRST_PSEUDO_REGISTER' is defined by the machine
  554.      description, since the number of hard registers on the machine is
  555.      an invariant characteristic of the machine.  Note, however, that
  556.      not all of the machine registers must be general registers.  All
  557.      the machine registers that can be used for storage of data are
  558.      given hard register numbers, even those that can be used only in
  559.      certain instructions or can hold only certain types of data.
  560.      A hard register may be accessed in various modes throughout one
  561.      function, but each pseudo register is given a natural mode and is
  562.      accessed only in that mode.  When it is necessary to describe an
  563.      access to a pseudo register using a nonnatural mode, a `subreg'
  564.      expression is used.
  565.      A `reg' expression with a machine mode that specifies more than
  566.      one word of data may actually stand for several consecutive
  567.      registers. If in addition the register number specifies a hardware
  568.      register, then it actually represents several consecutive hardware
  569.      registers starting with the specified one.
  570.      Each pseudo register number used in a function's RTL code is
  571.      represented by a unique `reg' expression.
  572.      Some pseudo register numbers, those within the range of
  573.      `FIRST_VIRTUAL_REGISTER' to `LAST_VIRTUAL_REGISTER' only appear
  574.      during the RTL generation phase and are eliminated before the
  575.      optimization phases.  These represent locations in the stack frame
  576.      that cannot be determined until RTL generation for the function
  577.      has been completed.  The following virtual register numbers are
  578.      defined:
  579.     `VIRTUAL_INCOMING_ARGS_REGNUM'
  580.           This points to the first word of the incoming arguments
  581.           passed on the stack.  Normally these arguments are placed
  582.           there by the caller, but the callee may have pushed some
  583.           arguments that were previously passed in registers.
  584.           When RTL generation is complete, this virtual register is
  585.           replaced by the sum of the register given by
  586.           `ARG_POINTER_REGNUM' and the value of `FIRST_PARM_OFFSET'.
  587.     `VIRTUAL_STACK_VARS_REGNUM'
  588.           If `FRAME_GROWS_DOWNWARDS' is defined, this points to
  589.           immediately above the first variable on the stack. 
  590.           Otherwise, it points to the first variable on the stack.
  591.           It is replaced with the sum of the register given by
  592.           `FRAME_POINTER_REGNUM' and the value `STARTING_FRAME_OFFSET'.
  593.     `VIRTUAL_STACK_DYNAMIC_REGNUM'
  594.           This points to the location of dynamically allocated memory
  595.           on the stack immediately after the stack pointer has been
  596.           adjusted by the amount of memory desired.
  597.           It is replaced by the sum of the register given by
  598.           `STACK_POINTER_REGNUM' and the value `STACK_DYNAMIC_OFFSET'.
  599.     `VIRTUAL_OUTGOING_ARGS_REGNUM'
  600.           This points to the location in the stack at which outgoing
  601.           arguments should be written when the stack is pre-pushed
  602.           (arguments pushed using push insns should always use
  603.           `STACK_POINTER_REGNUM').
  604.           It is replaced by the sum of the register given by
  605.           `STACK_POINTER_REGNUM' and the value `STACK_POINTER_OFFSET'.
  606. `(subreg:M REG WORDNUM)'
  607.      `subreg' expressions are used to refer to a register in a machine
  608.      mode other than its natural one, or to refer to one register of a
  609.      multi-word `reg' that actually refers to several registers.
  610.      Each pseudo-register has a natural mode.  If it is necessary to
  611.      operate on it in a different mode--for example, to perform a
  612.      fullword move instruction on a pseudo-register that contains a
  613.      single byte--the pseudo-register must be enclosed in a `subreg'. 
  614.      In such a case, WORDNUM is zero.
  615.      Usually M is at least as narrow as the mode of REG, in which case
  616.      it is restricting consideration to only the bits of REG that are
  617.      in M.  However, sometimes M is wider than the mode of REG.  These
  618.      `subreg' expressions are often called "paradoxical".  They are
  619.      used in cases where we want to refer to an object in a wider mode
  620.      but do not care what value the additional bits have.  The reload
  621.      pass ensures that paradoxical references are only made to hard
  622.      registers.
  623.      The other use of `subreg' is to extract the individual registers of
  624.      a multi-register value.  Machine modes such as `DImode' and
  625.      `TImode' can indicate values longer than a word, values which
  626.      usually require two or more consecutive registers.  To access one
  627.      of the registers, use a `subreg' with mode `SImode' and a WORDNUM
  628.      that says which register.
  629.      The compilation parameter `WORDS_BIG_ENDIAN', if set to 1, says
  630.      that word number zero is the most significant part; otherwise, it
  631.      is the least significant part.
  632.      Between the combiner pass and the reload pass, it is possible to
  633.      have a paradoxical `subreg' which contains a `mem' instead of a
  634.      `reg' as its first operand.  After the reload pass, it is also
  635.      possible to have a non-paradoxical `subreg' which contains a
  636.      `mem'; this usually occurs when the `mem' is a stack slot which
  637.      replaced a pseudo register.
  638.      Note that it is not valid to access a `DFmode' value in `SFmode'
  639.      using a `subreg'.  On some machines the most significant part of a
  640.      `DFmode' value does not have the same format as a single-precision
  641.      floating value.
  642.      It is also not valid to access a single word of a multi-word value
  643.      in a hard register when less registers can hold the value than
  644.      would be expected from its size.  For example, some 32-bit
  645.      machines have floating-point registers that can hold an entire
  646.      `DFmode' value. If register 10 were such a register `(subreg:SI
  647.      (reg:DF 10) 1)' would be invalid because there is no way to
  648.      convert that reference to a single machine register.  The reload
  649.      pass prevents `subreg' expressions such as these from being formed.
  650.      The first operand of a `subreg' expression is customarily accessed
  651.      with the `SUBREG_REG' macro and the second operand is customarily
  652.      accessed with the `SUBREG_WORD' macro.
  653. `(scratch:M)'
  654.      This represents a scratch register that will be required for the
  655.      execution of a single instruction and not used subsequently.  It is
  656.      converted into a `reg' by either the local register allocator or
  657.      the reload pass.
  658.      `scratch' is usually present inside a `clobber' operation (*note
  659.      Side Effects::.).
  660. `(cc0)'
  661.      This refers to the machine's condition code register.  It has no
  662.      operands and may not have a machine mode.  There are two ways to
  663.      use it:
  664.         * To stand for a complete set of condition code flags.  This is
  665.           best on most machines, where each comparison sets the entire
  666.           series of flags.
  667.           With this technique, `(cc0)' may be validly used in only two
  668.           contexts: as the destination of an assignment (in test and
  669.           compare instructions) and in comparison operators comparing
  670.           against zero (`const_int' with value zero; that is to say,
  671.           `const0_rtx').
  672.         * To stand for a single flag that is the result of a single
  673.           condition. This is useful on machines that have only a single
  674.           flag bit, and in which comparison instructions must specify
  675.           the condition to test.
  676.           With this technique, `(cc0)' may be validly used in only two
  677.           contexts: as the destination of an assignment (in test and
  678.           compare instructions) where the source is a comparison
  679.           operator, and as the first operand of `if_then_else' (in a
  680.           conditional branch).
  681.      There is only one expression object of code `cc0'; it is the value
  682.      of the variable `cc0_rtx'.  Any attempt to create an expression of
  683.      code `cc0' will return `cc0_rtx'.
  684.      Instructions can set the condition code implicitly.  On many
  685.      machines, nearly all instructions set the condition code based on
  686.      the value that they compute or store.  It is not necessary to
  687.      record these actions explicitly in the RTL because the machine
  688.      description includes a prescription for recognizing the
  689.      instructions that do so (by means of the macro
  690.      `NOTICE_UPDATE_CC').  *Note Condition Code::.  Only instructions
  691.      whose sole purpose is to set the condition code, and instructions
  692.      that use the condition code, need mention `(cc0)'.
  693.      On some machines, the condition code register is given a register
  694.      number and a `reg' is used instead of `(cc0)'.  This is usually the
  695.      preferable approach if only a small subset of instructions modify
  696.      the condition code.  Other machines store condition codes in
  697.      general registers; in such cases a pseudo register should be used.
  698.      Some machines, such as the Sparc and RS/6000, have two sets of
  699.      arithmetic instructions, one that sets and one that does not set
  700.      the condition code.  This is best handled by normally generating
  701.      the instruction that does not set the condition code, and making a
  702.      pattern that both performs the arithmetic and sets the condition
  703.      code register (which would not be `(cc0)' in this case).  For
  704.      examples, search for `addcc' and `andcc' in `sparc.md'.
  705. `(pc)'
  706.      This represents the machine's program counter.  It has no operands
  707.      and may not have a machine mode.  `(pc)' may be validly used only
  708.      in certain specific contexts in jump instructions.
  709.      There is only one expression object of code `pc'; it is the value
  710.      of the variable `pc_rtx'.  Any attempt to create an expression of
  711.      code `pc' will return `pc_rtx'.
  712.      All instructions that do not jump alter the program counter
  713.      implicitly by incrementing it, but there is no need to mention
  714.      this in the RTL.
  715. `(mem:M ADDR)'
  716.      This RTX represents a reference to main memory at an address
  717.      represented by the expression ADDR.  M specifies how large a unit
  718.      of memory is accessed.
  719. File: gcc.info,  Node: Arithmetic,  Next: Comparisons,  Prev: Regs and Memory,  Up: RTL
  720. RTL Expressions for Arithmetic
  721. ==============================
  722.    Unless otherwise specified, all the operands of arithmetic
  723. expressions must be valid for mode M.  An operand is valid for mode M
  724. if it has mode M, or if it is a `const_int' or `const_double' and M is
  725. a mode of class `MODE_INT'.
  726.    For commutative binary operations, constants should be placed in the
  727. second operand.
  728. `(plus:M X Y)'
  729.      Represents the sum of the values represented by X and Y carried
  730.      out in machine mode M.
  731. `(lo_sum:M X Y)'
  732.      Like `plus', except that it represents that sum of X and the
  733.      low-order bits of Y.  The number of low order bits is
  734.      machine-dependent but is normally the number of bits in a `Pmode'
  735.      item minus the number of bits set by the `high' code (*note
  736.      Constants::.).
  737.      M should be `Pmode'.
  738. `(minus:M X Y)'
  739.      Like `plus' but represents subtraction.
  740. `(compare:M X Y)'
  741.      Represents the result of subtracting Y from X for purposes of
  742.      comparison.  The result is computed without overflow, as if with
  743.      infinite precision.
  744.      Of course, machines can't really subtract with infinite precision.
  745.      However, they can pretend to do so when only the sign of the
  746.      result will be used, which is the case when the result is stored
  747.      in the condition code.   And that is the only way this kind of
  748.      expression may validly be used: as a value to be stored in the
  749.      condition codes.
  750.      The mode M is not related to the modes of X and Y, but instead is
  751.      the mode of the condition code value.  If `(cc0)' is used, it is
  752.      `VOIDmode'.  Otherwise it is some mode in class `MODE_CC', often
  753.      `CCmode'.  *Note Condition Code::.
  754.      Normally, X and Y must have the same mode.  Otherwise, `compare'
  755.      is valid only if the mode of X is in class `MODE_INT' and Y is a
  756.      `const_int' or `const_double' with mode `VOIDmode'.  The mode of X
  757.      determines what mode the comparison is to be done in; thus it must
  758.      not be `VOIDmode'.
  759.      If one of the operands is a constant, it should be placed in the
  760.      second operand and the comparison code adjusted as appropriate.
  761.      A `compare' specifying two `VOIDmode' constants is not valid since
  762.      there is no way to know in what mode the comparison is to be
  763.      performed; the comparison must either be folded during the
  764.      compilation or the first operand must be loaded into a register
  765.      while its mode is still known.
  766. `(neg:M X)'
  767.      Represents the negation (subtraction from zero) of the value
  768.      represented by X, carried out in mode M.
  769. `(mult:M X Y)'
  770.      Represents the signed product of the values represented by X and Y
  771.      carried out in machine mode M.
  772.      Some machines support a multiplication that generates a product
  773.      wider than the operands.  Write the pattern for this as
  774.           (mult:M (sign_extend:M X) (sign_extend:M Y))
  775.      where M is wider than the modes of X and Y, which need not be the
  776.      same.
  777.      Write patterns for unsigned widening multiplication similarly using
  778.      `zero_extend'.
  779. `(div:M X Y)'
  780.      Represents the quotient in signed division of X by Y, carried out
  781.      in machine mode M.  If M is a floating point mode, it represents
  782.      the exact quotient; otherwise, the integerized quotient.
  783.      Some machines have division instructions in which the operands and
  784.      quotient widths are not all the same; you should represent such
  785.      instructions using `truncate' and `sign_extend' as in,
  786.           (truncate:M1 (div:M2 X (sign_extend:M2 Y)))
  787. `(udiv:M X Y)'
  788.      Like `div' but represents unsigned division.
  789. `(mod:M X Y)'
  790. `(umod:M X Y)'
  791.      Like `div' and `udiv' but represent the remainder instead of the
  792.      quotient.
  793. `(smin:M X Y)'
  794. `(smax:M X Y)'
  795.      Represents the smaller (for `smin') or larger (for `smax') of X
  796.      and Y, interpreted as signed integers in mode M.
  797. `(umin:M X Y)'
  798. `(umax:M X Y)'
  799.      Like `smin' and `smax', but the values are interpreted as unsigned
  800.      integers.
  801. `(not:M X)'
  802.      Represents the bitwise complement of the value represented by X,
  803.      carried out in mode M, which must be a fixed-point machine mode.
  804. `(and:M X Y)'
  805.      Represents the bitwise logical-and of the values represented by X
  806.      and Y, carried out in machine mode M, which must be a fixed-point
  807.      machine mode.
  808. `(ior:M X Y)'
  809.      Represents the bitwise inclusive-or of the values represented by X
  810.      and Y, carried out in machine mode M, which must be a fixed-point
  811.      mode.
  812. `(xor:M X Y)'
  813.      Represents the bitwise exclusive-or of the values represented by X
  814.      and Y, carried out in machine mode M, which must be a fixed-point
  815.      mode.
  816. `(ashift:M X C)'
  817.      Represents the result of arithmetically shifting X left by C
  818.      places.  X have mode M, a fixed-point machine mode.  C be a
  819.      fixed-point mode or be a constant with mode `VOIDmode'; which mode
  820.      is determined by the mode called for in the machine description
  821.      entry for the left-shift instruction.  For example, on the Vax,
  822.      the mode of C is `QImode' regardless of M.
  823. `(lshift:M X C)'
  824.      Like `ashift' but for logical left shift.  `ashift' and `lshift'
  825.      are identical operations; we customarily use `ashift' for both.
  826. `(lshiftrt:M X C)'
  827. `(ashiftrt:M X C)'
  828.      Like `lshift' and `ashift' but for right shift.  Unlike the case
  829.      for left shift, these two operations are distinct.
  830. `(rotate:M X C)'
  831. `(rotatert:M X C)'
  832.      Similar but represent left and right rotate.  If C is a constant,
  833.      use `rotate'.
  834. `(abs:M X)'
  835.      Represents the absolute value of X, computed in mode M.
  836. `(sqrt:M X)'
  837.      Represents the square root of X, computed in mode M. Most often M
  838.      will be a floating point mode.
  839. `(ffs:M X)'
  840.      Represents one plus the index of the least significant 1-bit in X,
  841.      represented as an integer of mode M.  (The value is zero if X is
  842.      zero.)  The mode of X need not be M; depending on the target
  843.      machine, various mode combinations may be valid.
  844. File: gcc.info,  Node: Comparisons,  Next: Bit Fields,  Prev: Arithmetic,  Up: RTL
  845. Comparison Operations
  846. =====================
  847.    Comparison operators test a relation on two operands and are
  848. considered to represent a machine-dependent nonzero value described by,
  849. but not necessarily equal to, `STORE_FLAG_VALUE' (*note Misc::.) if the
  850. relation holds, or zero if it does not.  The mode of the comparison
  851. operation is independent of the mode of the data being compared.  If
  852. the comparison operation is being tested (e.g., the first operand of an
  853. `if_then_else'), the mode must be `VOIDmode'. If the comparison
  854. operation is producing data to be stored in some variable, the mode
  855. must be in class `MODE_INT'.  All comparison operations producing data
  856. must use the same mode, which is machine-specific.
  857.    There are two ways that comparison operations may be used.  The
  858. comparison operators may be used to compare the condition codes `(cc0)'
  859. against zero, as in `(eq (cc0) (const_int 0))'.  Such a construct
  860. actually refers to the result of the preceding instruction in which the
  861. condition codes were set.  The instructing setting the condition code
  862. must be adjacent to the instruction using the condition code; only
  863. `note' insns may separate them.
  864.    Alternatively, a comparison operation may directly compare two data
  865. objects.  The mode of the comparison is determined by the operands; they
  866. must both be valid for a common machine mode.  A comparison with both
  867. operands constant would be invalid as the machine mode could not be
  868. deduced from it, but such a comparison should never exist in RTL due to
  869. constant folding.
  870.    In the example above, if `(cc0)' were last set to `(compare X Y)',
  871. the comparison operation is identical to `(eq X Y)'.  Usually only one
  872. style of comparisons is supported on a particular machine, but the
  873. combine pass will try to merge the operations to produce the `eq' shown
  874. in case it exists in the context of the particular insn involved.
  875.    Inequality comparisons come in two flavors, signed and unsigned. 
  876. Thus, there are distinct expression codes `gt' and `gtu' for signed and
  877. unsigned greater-than.  These can produce different results for the same
  878. pair of integer values: for example, 1 is signed greater-than -1 but not
  879. unsigned greater-than, because -1 when regarded as unsigned is actually
  880. `0xffffffff' which is greater than 1.
  881.    The signed comparisons are also used for floating point values. 
  882. Floating point comparisons are distinguished by the machine modes of
  883. the operands.
  884. `(eq:M X Y)'
  885.      1 if the values represented by X and Y are equal, otherwise 0.
  886. `(ne:M X Y)'
  887.      1 if the values represented by X and Y are not equal, otherwise 0.
  888. `(gt:M X Y)'
  889.      1 if the X is greater than Y.  If they are fixed-point, the
  890.      comparison is done in a signed sense.
  891. `(gtu:M X Y)'
  892.      Like `gt' but does unsigned comparison, on fixed-point numbers
  893.      only.
  894. `(lt:M X Y)'
  895. `(ltu:M X Y)'
  896.      Like `gt' and `gtu' but test for "less than".
  897. `(ge:M X Y)'
  898. `(geu:M X Y)'
  899.      Like `gt' and `gtu' but test for "greater than or equal".
  900. `(le:M X Y)'
  901. `(leu:M X Y)'
  902.      Like `gt' and `gtu' but test for "less than or equal".
  903. `(if_then_else COND THEN ELSE)'
  904.      This is not a comparison operation but is listed here because it is
  905.      always used in conjunction with a comparison operation.  To be
  906.      precise, COND is a comparison expression.  This expression
  907.      represents a choice, according to COND, between the value
  908.      represented by THEN and the one represented by ELSE.
  909.      On most machines, `if_then_else' expressions are valid only to
  910.      express conditional jumps.
  911. `(cond [TEST1 VALUE1 TEST2 VALUE2 ...] DEFAULT)'
  912.      Similar to `if_then_else', but more general.  Each of TEST1,
  913.      TEST2, ... is performed in turn.  The result of this expression is
  914.      the VALUE corresponding to the first non-zero test, or DEFAULT if
  915.      none of the tests are non-zero expressions.
  916.      This is currently not valid for instruction patterns and is
  917.      supported only for insn attributes.  *Note Insn Attributes::.
  918. File: gcc.info,  Node: Bit Fields,  Next: Conversions,  Prev: Comparisons,  Up: RTL
  919. Bit Fields
  920. ==========
  921.    Special expression codes exist to represent bit-field instructions.
  922. These types of expressions are lvalues in RTL; they may appear on the
  923. left side of an assignment, indicating insertion of a value into the
  924. specified bit field.
  925. `(sign_extract:M LOC SIZE POS)'
  926.      This represents a reference to a sign-extended bit field contained
  927.      or starting in LOC (a memory or register reference).  The bit field
  928.      is SIZE bits wide and starts at bit POS.  The compilation option
  929.      `BITS_BIG_ENDIAN' says which end of the memory unit POS counts
  930.      from.
  931.      If LOC is in memory, its mode must be a single-byte integer mode.
  932.      If LOC is in a register, the mode to use is specified by the
  933.      operand of the `insv' or `extv' pattern (*note Standard Names::.)
  934.      and is usually a full-word integer mode.
  935.      The mode of POS is machine-specific and is also specified in the
  936.      `insv' or `extv' pattern.
  937.      The mode M is the same as the mode that would be used for LOC if
  938.      it were a register.
  939. `(zero_extract:M LOC SIZE POS)'
  940.      Like `sign_extract' but refers to an unsigned or zero-extended bit
  941.      field.  The same sequence of bits are extracted, but they are
  942.      filled to an entire word with zeros instead of by sign-extension.
  943.