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