diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/and-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/and-1.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/and-1.c b/gcc/testsuite/gcc.dg/and-1.c new file mode 100644 index 000000000..c66e4e15f --- /dev/null +++ b/gcc/testsuite/gcc.dg/and-1.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ +/* { dg-final { scan-assembler "and" { target powerpc*-*-* spu-*-* } } } */ +/* There should be no nand for this testcase (for either PPC or SPU). */ +/* { dg-final { scan-assembler-not "nand" { target powerpc*-*-* spu-*-* } } } */ + +int f(int y) +{ + return y & ~(y & -y); +} |