This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]