diff options
author | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-20 13:33:51 +0000 |
---|---|---|
committer | uros <uros@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-02-20 13:33:51 +0000 |
commit | 73a954a137a4ad3aff3c816a4a401887669ab5f7 (patch) | |
tree | 95fa0014104dcb6887115c27e24a726801ecd2a0 /gcc/optabs.c | |
parent | 19636773804cc810ffb5dec03069184ff71404bc (diff) | |
download | gcc-73a954a137a4ad3aff3c816a4a401887669ab5f7.tar.gz |
* optabs.h (enum optab_index): Add new OTI_scalb.
(scalb_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize scalb_optab.
* genopinit.c (optabs): Implement scalb_optab using scalb?f3
patterns.
* builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
(expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
flag_unsafe_math_optimizations is set.
* config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
to implement scalbf, scalb and scalbl built-ins as inline x87
intrinsics.
testsuite/ChangeLog
* gcc.dg/builtins-34.c: Add scalb/scalbn/scalbln cases.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122162 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/optabs.c')
-rw-r--r-- | gcc/optabs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/optabs.c b/gcc/optabs.c index 6a78b3785ac..51c84c82352 100644 --- a/gcc/optabs.c +++ b/gcc/optabs.c @@ -5449,6 +5449,7 @@ init_optabs (void) exp2_optab = init_optab (UNKNOWN); expm1_optab = init_optab (UNKNOWN); ldexp_optab = init_optab (UNKNOWN); + scalb_optab = init_optab (UNKNOWN); logb_optab = init_optab (UNKNOWN); ilogb_optab = init_optab (UNKNOWN); log_optab = init_optab (UNKNOWN); |