diff options
author | Richard Henderson <rth@gcc.gnu.org> | 2005-01-22 14:49:06 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2005-01-22 14:49:06 -0800 |
commit | 7ae4d8d4214508d400e28845b773e775ddbb7ac3 (patch) | |
tree | 44a7d07f7a98f7ff87b2faa87658e1de80d69f42 /gcc/doc | |
parent | 190607885a2178612dcd3faefcb4a6e31d7c91cb (diff) | |
download | gcc-7ae4d8d4214508d400e28845b773e775ddbb7ac3.zip gcc-7ae4d8d4214508d400e28845b773e775ddbb7ac3.tar.gz gcc-7ae4d8d4214508d400e28845b773e775ddbb7ac3.tar.bz2 |
genopinit.c (optabs): Use smin/smax for floating point too.
* genopinit.c (optabs): Use smin/smax for floating point too.
* doc/md.texi: Update to match. Clarify that floating point
results are undefined for +0/-0 and NaN.
* doc/rtl.texi: Likewise.
* rtl.def (SMIN, SMAX): Likewise
* tree.def (MIN_EXPR, MAX_EXPR): Likewise.
* config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
leading 's' to the name.
* config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
smaxxf3, sminxf3): Likewise.
* config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
Likewise.
From-SVN: r94083
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/md.texi | 17 | ||||
-rw-r--r-- | gcc/doc/rtl.texi | 5 |
2 files changed, 12 insertions, 10 deletions
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 2c41bc4..1f321a3 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -2834,25 +2834,24 @@ means of constraints requiring operands 1 and 0 to be the same location. @cindex @code{udiv@var{m}3} instruction pattern @cindex @code{mod@var{m}3} instruction pattern @cindex @code{umod@var{m}3} instruction pattern -@cindex @code{smin@var{m}3} instruction pattern -@cindex @code{smax@var{m}3} instruction pattern @cindex @code{umin@var{m}3} instruction pattern @cindex @code{umax@var{m}3} instruction pattern @cindex @code{and@var{m}3} instruction pattern @cindex @code{ior@var{m}3} instruction pattern @cindex @code{xor@var{m}3} instruction pattern @item @samp{sub@var{m}3}, @samp{mul@var{m}3} -@itemx @samp{div@var{m}3}, @samp{udiv@var{m}3}, @samp{mod@var{m}3}, @samp{umod@var{m}3} -@itemx @samp{smin@var{m}3}, @samp{smax@var{m}3}, @samp{umin@var{m}3}, @samp{umax@var{m}3} +@itemx @samp{div@var{m}3}, @samp{udiv@var{m}3} +@itemx @samp{mod@var{m}3}, @samp{umod@var{m}3} +@itemx @samp{umin@var{m}3}, @samp{umax@var{m}3} @itemx @samp{and@var{m}3}, @samp{ior@var{m}3}, @samp{xor@var{m}3} Similar, for other arithmetic operations. + @cindex @code{min@var{m}3} instruction pattern @cindex @code{max@var{m}3} instruction pattern -@itemx @samp{min@var{m}3}, @samp{max@var{m}3} -Floating point min and max operations. If both operands are zeros, -or if either operand is NaN, then it is unspecified which of the two -operands is returned as the result. - +@item @samp{smin@var{m}3}, @samp{smax@var{m}3} +Signed minimum and maximum operations. When used with floating point, +if both operands are zeros, or if either operand is @code{NaN}, then +it is unspecified which of the two operands is returned as the result. @cindex @code{mulhisi3} instruction pattern @item @samp{mulhisi3} diff --git a/gcc/doc/rtl.texi b/gcc/doc/rtl.texi index 9d6b9c2..1244c74 100644 --- a/gcc/doc/rtl.texi +++ b/gcc/doc/rtl.texi @@ -1887,7 +1887,10 @@ the quotient. @item (smin:@var{m} @var{x} @var{y}) @itemx (smax:@var{m} @var{x} @var{y}) Represents the smaller (for @code{smin}) or larger (for @code{smax}) of -@var{x} and @var{y}, interpreted as signed integers in mode @var{m}. +@var{x} and @var{y}, interpreted as signed values in mode @var{m}. +When used with floating point, if both operands are zeros, or if either +operand is @code{NaN}, then it is unspecified which of the two operands +is returned as the result. @findex umin @findex umax |