r121716 - in /trunk/gcc: ChangeLog simplify-rtx...

sayle@gcc.gnu.org sayle@gcc.gnu.org
Thu Feb 8 17:10:00 GMT 2007


Author: sayle
Date: Thu Feb  8 17:10:56 2007
New Revision: 121716

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=121716
Log:

	* simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
	strip zero_extend, bswap and rotates from POCOUNT's argument.
	<PARITY>: Likewise, we can strip not, bswap, sign_extend,
	zero_extend and rotates from PARITY's argument.
	<BSWAP>: A byte-swap followed by a byte-swap is an identity.
	(simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
	of an integer constant at compile-time.

	* gcc.target/i386/builtin-bswap-2.c: New test case.


Added:
    trunk/gcc/testsuite/gcc.target/i386/builtin-bswap-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/simplify-rtx.c
    trunk/gcc/testsuite/ChangeLog



More information about the Gcc-cvs mailing list