optabs.h (enum optab_index): Add new OTI_expm1.
authorUros Bizjak <uros@kss-loka.si>
Mon, 3 May 2004 05:31:45 +0000 (07:31 +0200)
committerUros Bizjak <uros@gcc.gnu.org>
Mon, 3 May 2004 05:31:45 +0000 (07:31 +0200)
commit7a8e07c7d1bc8526e0d67cb7ae0dc51ba5b90f68
treec1a89b48d29d70f789473f5c7def695357e909f9
parent5f2b959917e0d13044851e6165e9c17d4f4b3a0f
optabs.h (enum optab_index): Add new OTI_expm1.

2004-05-03  Uros Bizjak  <uros@kss-loka.si>

* optabs.h (enum optab_index): Add new OTI_expm1.
(expm1_optab): Define corresponding macro.
* optabs.c (init_optabs): Initialize expm1_optab.
* genopinit.c (optabs): Implement expm1_optab using expm1?f2
patterns.
* builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXPM1{,F,L}
using expm1_optab.
(expand_builtin): Expand BUILT_IN_EXPM1{,F,L} using
expand_builtin_mathfn if flag_unsafe_math_optimizations is set.

* config/i386/i386.md (expm1df2, expm1sf2, expm1xf2): New expanders
to implement expm1, expm1f and expm1l built-ins as inline x87
intrinsics.

testsuite:

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

From-SVN: r81425
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