This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, middle-end]: Implement lrint and llrint functions asbuilt-ins
- 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: Mon, 21 Mar 2005 07:20:41 -0700 (MST)
- Subject: 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
--