summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/builtin-bswap-2.c
blob: 818aa76b95dbf99e98b40f8ae35a9533e7c6983b (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do compile } */
/* { dg-options "-O2 -march=nocona" } */
/* { dg-final { scan-assembler-not "bswap\[ \t\]" } } */

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