* optabs.h (enum optab_index): Add new OTI_ldexp.
authoruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Feb 2005 11:34:24 +0000 (11:34 +0000)
committeruros <uros@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 12 Feb 2005 11:34:24 +0000 (11:34 +0000)
commit4737caf22cfca1f3d49eef7663b048393570e43e
treecb186a5041a6d892c57dd7ea7381d5eb638b0449
parent82f7261aab7d0d5fc4a606e256f7314ea3cbc024
* optabs.h (enum optab_index): Add new OTI_ldexp.
(ldexp_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize ldexp_optab.
* genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
patterns.
* builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
using ldexp_optab.
(expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.

* config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
to implement ldexpf, ldexp and ldexpl built-ins as inline x87
intrinsics.

testsuite:

* gcc.dg/builtins-34.c: Also check ldexp*.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@94931 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