1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 
functest(unsigned int x)4 unsigned int functest (unsigned int x)
5 {
6   return __builtin_ctz (x);
7 }
8 
9 /* { dg-final { scan-assembler "rbit\tw" } } */
10 /* { dg-final { scan-assembler "clz\tw" } } */
11 
12