gcc/testsuite/gcc.target/tic6x/ffsdi.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target ti_c64xp } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | /* { dg-final { scan-assembler-not "call" } } */ |
| 5 | |
| 6 | long long foo (long long x) |
| 7 | { |
| 8 | return __builtin_ffsll (x); |
| 9 | } |
| 10 | |
| 11 | long long bar (long long x) |
| 12 | { |
| 13 | return __builtin_clzll (x); |
| 14 | } |
| 15 | |
| 16 | long long baz (long long x) |
| 17 | { |
| 18 | return __builtin_ctzll (x); |
| 19 | } |