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: [RFC, patch] implement __builtin_bswap


> 2006-07-10  Eric Christopher  <echristo@apple.com>
>
> 	* optabs.c (init_optabs): Add bswap_optab.
> 	(init_integral_libfuncs): Ditto.
> 	* optabs.h (optab_index): Add OTI_bswap.
> 	(bswap_optab): New.
> 	* genopinit.c (optabs): Add handler for bswap_optab.
> 	* builtins.c (expand_builtin): Add BUILT_IN_BSWAP.
> 	* builtins.def (BUILT_IN_BSWAP): New.
> 	(BUILT_IN_BSWAPL): Ditto.
> 	(BUILT_IN_BSWAPLL): Ditto.
> 	* rtl.def: Add bswap.
> 	* libgcc2.c (bswapSI2): New.
> 	(bswapDI2): Ditto.
> 	* libgcc2.h (bswapSI2): Declare.
> 	(bswapDI2): Ditto.
> 	* mklibgcc.in (lib2funcs): Add __bswapsi2 and __bswapdi2.
> 	* libgcc-std.ver (GCC_4.2.0): Add __bswapsi2 and __bswapdi2.
> 	* config/i386/i386.h (x86_bswap): New.
> 	(TARGET_BSWAP): Ditto.
> 	* config/i386/i386.c (x86_bswap): New.
> 	* config/i386/i386.md (bswapsi2): New.
> 	(bswapdi2): Ditto.

You need to add user documentation for the buintins to extend.texi, and 
internals documentation for for the new RTL operator and standard pattern 
names to rtl.texi and md.text.

Paul


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