Commit 60ffd2fe by Zack Weinberg Committed by Zack Weinberg

rtl.texi (Arithmetic): Rewrite entries for PLUS, SS_PLUS, US_PLUS, LO_SUM,…

rtl.texi (Arithmetic): Rewrite entries for PLUS, SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.

	* doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
	SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.

From-SVN: r76735
parent 52ad4d7b
2004-01-27 Zack Weinberg <zack@codesourcery.com> 2004-01-27 Zack Weinberg <zack@codesourcery.com>
* doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
2004-01-27 Zack Weinberg <zack@codesourcery.com>
PR 7198 PR 7198
* config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts) * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
(*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf) (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
......
...@@ -1749,51 +1749,53 @@ second operand. ...@@ -1749,51 +1749,53 @@ second operand.
@table @code @table @code
@findex plus @findex plus
@cindex RTL addition @findex ss_plus
@findex us_plus
@cindex RTL sum @cindex RTL sum
@cindex RTL addition
@cindex RTL addition with signed saturation
@cindex RTL addition with unsigned saturation
@item (plus:@var{m} @var{x} @var{y}) @item (plus:@var{m} @var{x} @var{y})
Represents the sum of the values represented by @var{x} and @var{y} @itemx (ss_plus:@var{m} @var{x} @var{y})
carried out in machine mode @var{m}. @itemx (us_plus:@var{m} @var{x} @var{y})
@findex lo_sum These three expressions all represent the sum of the values
@item (lo_sum:@var{m} @var{x} @var{y}) represented by @var{x} and @var{y} carried out in machine mode
Like @code{plus}, except that it represents that sum of @var{x} and the @var{m}. They differ in their behavior on overflow of integer modes.
low-order bits of @var{y}. The number of low order bits is @code{plus} wraps round modulo the width of @var{m}; @code{ss_plus}
machine-dependent but is normally the number of bits in a @code{Pmode} saturates at the maximum signed value representable in @var{m};
item minus the number of bits set by the @code{high} code @code{us_plus} saturates at the maximum unsigned value.
(@pxref{Constants}).
@var{m} should be @code{Pmode}. @c ??? What happens on overflow of floating point modes?
@findex minus @findex lo_sum
@cindex RTL subtraction @item (lo_sum:@var{m} @var{x} @var{y})
@cindex RTL difference
@item (minus:@var{m} @var{x} @var{y})
Like @code{plus} but represents subtraction.
@findex ss_plus
@cindex RTL addition with signed saturation
@item (ss_plus:@var{m} @var{x} @var{y})
Like @code{plus}, but using signed saturation in case of an overflow. This expression represents the sum of @var{x} and the low-order bits
of @var{y}. It is used with @code{high} (@pxref{Constants}) to
represent the typical two-instruction sequence used in RISC machines
to reference a global memory location.
@findex us_plus The number of low order bits is machine-dependent but is
@cindex RTL addition with unsigned saturation normally the number of bits in a @code{Pmode} item minus the number of
@item (us_plus:@var{m} @var{x} @var{y}) bits set by @code{high}.
Like @code{plus}, but using unsigned saturation in case of an overflow. @var{m} should be @code{Pmode}.
@findex minus
@findex ss_minus @findex ss_minus
@cindex RTL addition with signed saturation
@item (ss_minus:@var{m} @var{x} @var{y})
Like @code{minus}, but using signed saturation in case of an overflow.
@findex us_minus @findex us_minus
@cindex RTL addition with unsigned saturation @cindex RTL difference
@item (us_minus:@var{m} @var{x} @var{y}) @cindex RTL subtraction
@cindex RTL subtraction with signed saturation
@cindex RTL subtraction with unsigned saturation
@item (minus:@var{m} @var{x} @var{y})
@itemx (ss_minus:@var{m} @var{x} @var{y})
@itemx (us_minus:@var{m} @var{x} @var{y})
Like @code{minus}, but using unsigned saturation in case of an overflow. These three expressions represent the result of subtracting @var{y}
from @var{x}, carried out in mode @var{M}. Behavior on overflow is
the same as for the three variants of @code{plus} (see above).
@findex compare @findex compare
@cindex RTL comparison @cindex RTL comparison
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment