This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Improved trailing bit counting operation
- From: Adam Nemet <anemet at caviumnetworks dot com>
- To: Daniel Gutson <dgutson at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 08 Jul 2009 23:39:26 -0700
- Subject: Re: [PATCH] Improved trailing bit counting operation
- References: <4A557D1B.20502@codesourcery.com>
Daniel Gutson <dgutson@codesourcery.com> writes:
> Index: src/gcc-mainline/gcc/testsuite/gcc.target/arm/ctz.c
> ===================================================================
> --- src/gcc-mainline/gcc/testsuite/gcc.target/arm/ctz.c (revision 0)
> +++ src/gcc-mainline/gcc/testsuite/gcc.target/arm/ctz.c (revision 0)
> @@ -0,0 +1,12 @@
> +/* { dg-do compile } */
> +/* { dg-require-effective-target arm32 } */
> +/* { dg-options "-O2 -march=armv6t2" } */
> +
> +unsigned int functest(unsigned int x)
> +{
> + return __builtin_ctz(x);
> +}
> +
> +/* { dg-final { scan-assembler "rbit" } } */
> +/* { dg-final { scan-assembler "ctz" } } */
Watch out, this will match the .file directive.
Adam