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 as built-ins
On Wed, Mar 23, 2005 at 12:22:41PM +0100, Uros Bizjak wrote:
> Regarding "rint<FPmode><INTmode>2" definition: I was trying to implement
> rint like fixtrunc is implemented, as a convert optab. Unfortunatelly,
> there is no expand_builtin_* function, that could handle convert optabs
> (with proper widening of its input argument), and I think that
> substantial work would be needed to implement these expanders.
Hum.
Other targets naturally want the other tradeoff though; different
fp modes converting to one integer mode.
> * optabs.h (enum optab_index): Remove OTI_llrint.
> (llrint_optab): Remove corresponding macro.
> * optabs.c (init_optabs): Remove llrint_optab initialization.
> * genopinit.c (optabs): Remove llrint_optab implementation.
> * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
> using lrint_optab.
Ok, I guess.
r~