PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / builtin-bswap-1.c
blob724ba1e9847e9bac2e241f17977be1cfa1666fa1
1 /* { dg-do compile } */
2 /* { dg-require-effective-target stdint_types } */
3 /* { dg-options "" } */
4 /* { dg-final { scan-assembler-not "__builtin_" } } */
6 #include <stdint.h>
8 uint16_t foo16 (uint16_t a)
10 uint16_t b;
12 b = __builtin_bswap16 (a);
14 return b;
17 uint32_t foo32 (uint32_t a)
19 uint32_t b;
21 b = __builtin_bswap32 (a);
23 return b;
26 uint64_t foo64 (uint64_t a)
28 uint64_t b;
30 b = __builtin_bswap64 (a);
32 return b;