This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] implement expm1() as built-in x87 intrinsics
- From: Roger Sayle <roger at eyesopen dot com>
- To: Uros Bizjak <uros at kss-loka dot si>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Apr 2004 05:13:28 -0600 (MDT)
- Subject: Re: [PATCH] implement expm1() as built-in x87 intrinsics
On Fri, 30 Apr 2004, Uros Bizjak wrote:
> 2004-04-30 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*.
>
This is OK for mainline.
Could you also update wwwdocs/htdocs/gcc-3.5/changes.html to list "expm1"
in the relevant section?
Thanks,
Roger
--