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: [PING][PATCH] Expand lround inline for x86_64/i?86 SSE math


On Thu, 26 Oct 2006, Richard Guenther wrote:
> > 2006-08-22  Richard Guenther  <rguenther@suse.de>
> >
> > 	* builtins.c (expand_builtin_int_roundingfn_2): Expand
> > 	BUILT_IN_LROUND and BUILT_IN_LLROUND from here.
> > 	(expand_builtin): Adjust likewise.
> > 	* genopinit.c (optabs[]): Add lround optab.
> > 	* optabs.c (init_optabs): Initialize lround_optab.
> > 	* optabs.h (enum convert_optab_index): Add COI_lround.
> > 	(lround_optab): Define.
> > 	* config/i386/i386-protos.h (ix86_expand_lround): Declare.
> > 	* config/i386/i386.c (ix86_sse_copysign_to_positive): New
> > 	static function.
> > 	(ix86_expand_lround): New function.
> > 	* config/i386/i386.md (lround<mode>di2, lround<mode>si2):
> > 	New expanders.
> > 	* doc/md.texi (lroundMN2): Document.
> >
> > 	* gcc.target/i386/math-torture/lround.c: New testcase.

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]