| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -march=c64x+" } */ |
| 3 |
/* { dg-final { scan-assembler-not "call" } } */ |
| 4 |
|
| 5 |
int foo (int x) |
| 6 |
{ |
| 7 |
return __builtin_ffsl (x); |
| 8 |
} |
| 9 |
|
| 10 |
int bar (int x) |
| 11 |
{ |
| 12 |
return __builtin_clzl (x); |
| 13 |
} |
| 14 |
|
| 15 |
int baz (int x) |
| 16 |
{ |
| 17 |
return __builtin_ctzl (x); |
| 18 |
} |