aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/tic6x/bswapl.c
blob: 18d6bce7f21c4d0296b656cb330c74a8fe19a5a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-O2 -march=c64x+" } */
/* { dg-final { scan-assembler-not "call" } } */

int foo (int x)
{
  return __builtin_bswap32 (x);
}

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