aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/mips/bswap-6.c
blob: 1145357fef1da80a471e97b8de74410c1e56d7cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-options "isa_rev>=2 -mgp64" } */

typedef unsigned long long uint64_t;

NOMIPS16 uint64_t
foo (uint64_t x)
{
  return __builtin_bswap64 (x);
}

/* { dg-final { scan-assembler "\tdsbh\t" } } */
/* { dg-final { scan-assembler "\tdshd\t" } } */