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, middle-end]: Implement lrint and llrint functions asbuilt-ins


On Mon, 21 Mar 2005, Uros Bizjak wrote:
> 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
>
>     * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
>     (lrint_optab, llrint_optab): Define corresponding macros.
>     * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
>     * genopinit.c (optabs): Implement lrint_optab using lrintsi2
>     pattern and llrint_optab using llrintdi2 patterns.
>     * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
>     using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
>     (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
>     BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
>     flag_unsafe_math_optimizations is set.
>
> testsuite:
>
>     * gcc.dg/builtins-46.c: Also check lrint* and llrint*.

This is OK for mainline.

Thanks,

Roger
--


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