1 /* { dg-do compile } */ 2 /* { dg-options "-O2" } */ 3 /* { dg-final { scan-assembler "and" { target powerpc*-*-* } } } */ 4 /* There should be no nand for this testcase (for PPC). */ 5 /* { dg-final { scan-assembler-not "nand" { target powerpc*-*-* } } } */ 6 f(int y)7int f(int y) 8 { 9 return y & ~(y & -y); 10 } 11