summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/builtin-bswap-1.c
blob: 6b4a805536cef4bd43c66429ebdc66685c7c95db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
/* { dg-final { scan-assembler-not "__builtin_" } } */

#include <stdint.h>

uint32_t foo (uint32_t a)
{
  int b;

  b = __builtin_bswap32 (a);

  return b;
}