diff options
author | Roger Sayle <roger@eyesopen.com> | 2002-08-03 23:21:31 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2002-08-03 23:21:31 +0000 |
commit | e7b489c8c091c2210c01bcd35b9c7cdd2d6b559a (patch) | |
tree | 43f230abfa5b65f3cb384df85d588543c32be03e /gcc/optabs.c | |
parent | de8920be70e85d22a890bc99e0c3a20df4089af0 (diff) | |
download | gcc-e7b489c8c091c2210c01bcd35b9c7cdd2d6b559a.tar.gz |
builtins.def: Define new builtin functions exp...
* builtins.def: Define new builtin functions exp, expf, expl,
log, logf and logl (and their __builtin_* variants).
* optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
Define exp_optab and log_optab.
* optabs.c (init_optans): Initialize exp_optab and log_optab.
* genopinit.c (optabs): Implement exp_optab and log_optab
using exp?f2 and log?f2 patterns.
* builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
and BUILT_IN_LOG* using exp_optab and log_optab respectively.
(expand_builtin): Ignore the new builtins (and all cos and
sin variants) when not optimizing. Expand new builtins via
expand_builtin_mathfn when flag_unsafe_math_optimizations.
* doc/extend.texi: Document new exp and log builtins.
* doc/md.texi: Document new exp?f2 and log?f2 patterns
(and previously undocumented cos?f2 and sin?f2 patterns).
From-SVN: r56010
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 1e4af105f4f..3f17034f0d5 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -5193,6 +5193,8 @@ init_optabs () sqrt_optab = init_optab (SQRT); sin_optab = init_optab (UNKNOWN); cos_optab = init_optab (UNKNOWN); + exp_optab = init_optab (UNKNOWN); + log_optab = init_optab (UNKNOWN); strlen_optab = init_optab (UNKNOWN); cbranch_optab = init_optab (UNKNOWN); cmov_optab = init_optab (UNKNOWN); |