aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/tic6x/ffsdi.c
blob: 6f61be5ae8ae157007ed4e32e7962b78d5fca04e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-require-effective-target ti_c64xp } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-not "call" } } */

long long foo (long long x)
{
  return __builtin_ffsll (x);
}

long long bar (long long x)
{
  return __builtin_clzll (x);
}

long long baz (long long x)
{
  return __builtin_ctzll (x);
}