summaryrefslogtreecommitdiff
path: root/gcc/optabs.h
diff options
context:
space:
mode:
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-25 06:36:49 +0000
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-25 06:36:49 +0000
commitef722005f1f2cbd7f450b4a91643ddf80a737a3c (patch)
tree649288ab8cb4c7a07e2984f5f7ec06cb008a3a4d /gcc/optabs.h
parent49e98091ace68d06d10b62f60052a8c6ec028c5c (diff)
downloadgcc-ef722005f1f2cbd7f450b4a91643ddf80a737a3c.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118024 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.h')
-rw-r--r--gcc/optabs.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/optabs.h b/gcc/optabs.h
index 58fb6905175..69dcbe11b91 100644
--- a/gcc/optabs.h
+++ b/gcc/optabs.h
@@ -98,7 +98,7 @@ enum optab_index
OTI_umod,
/* Floating point remainder functions */
OTI_fmod,
- OTI_drem,
+ OTI_remainder,
/* Convert float to integer in float fmt */
OTI_ftrunc,
@@ -289,7 +289,7 @@ extern GTY(()) optab optab_table[OTI_MAX];
#define smod_optab (optab_table[OTI_smod])
#define umod_optab (optab_table[OTI_umod])
#define fmod_optab (optab_table[OTI_fmod])
-#define drem_optab (optab_table[OTI_drem])
+#define remainder_optab (optab_table[OTI_remainder])
#define ftrunc_optab (optab_table[OTI_ftrunc])
#define and_optab (optab_table[OTI_and])
#define ior_optab (optab_table[OTI_ior])