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/genopinit.c | |
parent | 942d7821790f4341cfacc5b704f9344cc9c2efc9 (diff) | |
download | gcc-17b982699f817a6dc5b1b8f13a0f43eaf8718ead.tar.gz |
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/genopinit.c')
-rw-r--r-- | gcc/genopinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genopinit.c b/gcc/genopinit.c index c9cea085852..4f7bd46595c 100644 --- a/gcc/genopinit.c +++ b/gcc/genopinit.c @@ -93,7 +93,7 @@ static const char * const optabs[] = "smod_optab->handlers[$A].insn_code = CODE_FOR_$(mod$a3$)", "umod_optab->handlers[$A].insn_code = CODE_FOR_$(umod$a3$)", "fmod_optab->handlers[$A].insn_code = CODE_FOR_$(fmod$a3$)", - "drem_optab->handlers[$A].insn_code = CODE_FOR_$(drem$a3$)", + "remainder_optab->handlers[$A].insn_code = CODE_FOR_$(remainder$a3$)", "ftrunc_optab->handlers[$A].insn_code = CODE_FOR_$(ftrunc$F$a2$)", "and_optab->handlers[$A].insn_code = CODE_FOR_$(and$a3$)", "ior_optab->handlers[$A].insn_code = CODE_FOR_$(ior$a3$)", |