diff options
author | Uros Bizjak <uros@kss-loka.si> | 2006-10-25 08:36:49 +0200 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2006-10-25 08:36:49 +0200 |
commit | 17b982699f817a6dc5b1b8f13a0f43eaf8718ead (patch) | |
tree | 649288ab8cb4c7a07e2984f5f7ec06cb008a3a4d /gcc/doc/md.texi | |
parent | 942d7821790f4341cfacc5b704f9344cc9c2efc9 (diff) | |
download | gcc-17b982699f817a6dc5b1b8f13a0f43eaf8718ead.zip gcc-17b982699f817a6dc5b1b8f13a0f43eaf8718ead.tar.gz gcc-17b982699f817a6dc5b1b8f13a0f43eaf8718ead.tar.bz2 |
optabs.h (enum optab_index): Rename OTI_drem to OTI_remainder.
* optabs.h (enum optab_index): Rename OTI_drem to OTI_remainder.
(remainder_optab): Define corresponding macro.
(drem_optab): Remove.
* optabs.c (init_optabs): Initialize remainder_optab. Remove
drem_optab initialization.
* genopinit.c (optabs): Implement remainder_optab using
remainder?f3 patterns. Remove drem_optab.
* builtins.c (expand_builtin_mathfn_2): Handle
BUILT_IN_REMAINDER{,F,L} using remainder_optab.
(expand_builtin): Expand BUILT_IN_REMAINDER{,F,L} using
expand_builtin_mathfn_2.
(expand_builtin) [BUILT_IN_FMOD, BUILT_IN_DREM]: Do not
depend on flag_unsafe_math_optimizations.
* config/i386/i386.md ("remaindersf3", "remainderdf3")
("remainderxf3"): Renamed from "drem{s,d,x}f3" expanders.
Do not depend on flag_unsafe_math_optimizations. Use
truncxf?f expander instead of truncxf?f_i387_noop.
("fpremxf4", "fprem1xf4"): Do not depend on
flag_unsafe_math_optimizations.
("fmodsf3", "fmoddf3", "fmodxf3"): Do not depend on
flag_unsafe_math_optimizations. Use truncxf?f expander
instead of truncxf?f_i387_noop.
* doc/md.texi (fmod, remainder): Document standard named pattern.
testsuite/ChangeLog:
* gcc.dg/builtins-40.c: Also check remainder(), remainderf()
and remainderl() built-in functions. Remove -ffast-math from
dg-options.
From-SVN: r118024
Diffstat (limited to 'gcc/doc/md.texi')
-rw-r--r-- | gcc/doc/md.texi | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/doc/md.texi b/gcc/doc/md.texi index 3b30e36..a05f9d0 100644 --- a/gcc/doc/md.texi +++ b/gcc/doc/md.texi @@ -3569,6 +3569,26 @@ corresponds to the C data type @code{double} and the @code{sqrtf} built-in function uses the mode which corresponds to the C data type @code{float}. +@cindex @code{fmod@var{m}3} instruction pattern +@item @samp{fmod@var{m}3} +Store the remainder of dividing operand 1 by operand 2 into +operand 0, rounded towards zero to an integer. + +The @code{fmod} built-in function of C always uses the mode which +corresponds to the C data type @code{double} and the @code{fmodf} +built-in function uses the mode which corresponds to the C data +type @code{float}. + +@cindex @code{remainder@var{m}3} instruction pattern +@item @samp{remainder@var{m}3} +Store the remainder of dividing operand 1 by operand 2 into +operand 0, rounded to the nearest integer. + +The @code{remainder} built-in function of C always uses the mode +which corresponds to the C data type @code{double} and the +@code{remainderf} built-in function uses the mode which corresponds +to the C data type @code{float}. + @cindex @code{cos@var{m}2} instruction pattern @item @samp{cos@var{m}2} Store the cosine of operand 1 into operand 0. |