1 /* PR target/85073 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mbmi" } */
4
5 int
foo(unsigned x)6 foo (unsigned x)
7 {
8 int c = 0;
9 while (x)
10 {
11 c += 1;
12 x = (x - 1) & x;
13 }
14
15 return c;
16 }
17
18 /* { dg-final { scan-assembler-times "test" 1 } } */
19