aboutsummaryrefslogtreecommitdiff
path: root/gcc/optabs.h
diff options
context:
space:
mode:
authorUros Bizjak <uros@kss-loka.si>2006-10-25 08:36:49 +0200
committerUros Bizjak <uros@gcc.gnu.org>2006-10-25 08:36:49 +0200
commit17b982699f817a6dc5b1b8f13a0f43eaf8718ead (patch)
tree649288ab8cb4c7a07e2984f5f7ec06cb008a3a4d /gcc/optabs.h
parent942d7821790f4341cfacc5b704f9344cc9c2efc9 (diff)
downloadgcc-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/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 58fb690..69dcbe1 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])