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

NOMIPS16 unsigned short
foo (unsigned short x)
{
  return __builtin_bswap16 (x);
}

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