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] |
Adam, could you please elaborate?
Thanks, Daniel.
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
-- Daniel Gutson CodeSourcery www.codesourcery.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |