CRIS: Add support for __builtin_bswap32

Hans-Peter Nilsson hans-peter.nilsson@axis.com
Mon Sep 3 13:50:00 GMT 2007


> Date: Mon, 3 Sep 2007 14:13:19 +0200
> From: Jesper Nilsson <jespern@axis.com>

> 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
> 
> 	* config/cris/cris.h (TARGET_HAS_SWAP):
> 	Defined to describe availability of swap instruction.
> 	* config/cris/cris.md (bswapsi2): Implement using swap instruction.

For future reference, the changelog describes very briefly
"what", not "why", and details are supposed to go in the code
(as comments) so this could just as well have been:

 	* config/cris/cris.h (TARGET_HAS_SWAP): Defined.
 	* config/cris/cris.md (bswapsi2): Implement.

Though, I just filled the first line and committed.

> testsuite/ChangeLog:
> 
> 2007-09-03  Jesper Nilsson  <jesper.nilsson@axis.com>
> 
> 	* gcc.target/cris/builtin_bswap_v3.c: New testcase.
> 	* gcc.target/cris/builtin_bswap_v8.c: New testcase.

Thanks!  Committed.

:REVIEWMAIL:

brgds, H-P



More information about the Gcc-patches mailing list