OSDN Git Service

* optabs.h (enum optab_index): Add new OTI_scalb.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2007 13:33:51 +0000 (13:33 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 20 Feb 2007 13:33:51 +0000 (13:33 +0000)
commit73a954a137a4ad3aff3c816a4a401887669ab5f7
tree95fa0014104dcb6887115c27e24a726801ecd2a0
parent19636773804cc810ffb5dec03069184ff71404bc
* 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
gcc/ChangeLog
gcc/builtins.c
gcc/config/i386/i386.md
gcc/genopinit.c
gcc/optabs.c
gcc/optabs.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/builtins-34.c