remove unused files
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.dg / builtin-bswap-1.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target stdint_types } */
3 /* { dg-options "" } */
4 /* { dg-final { scan-assembler-not "__builtin_" } } */
5
6 #include <stdint.h>
7
8 uint16_t foo16 (uint16_t a)
9 {
10   uint16_t b;
11
12   b = __builtin_bswap16 (a);
13
14   return b;
15 }
16
17 uint32_t foo32 (uint32_t a)
18 {
19   uint32_t b;
20
21   b = __builtin_bswap32 (a);
22
23   return b;
24 }
25
26 uint64_t foo64 (uint64_t a)
27 {
28   uint64_t b;
29
30   b = __builtin_bswap64 (a);
31
32   return b;
33 }