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

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

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