]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/builtin-bswap-1.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / builtin-bswap-1.c
CommitLineData
0e7e09dc 1/* { dg-do compile } */
8f3fc4aa 2/* { dg-require-effective-target stdint_types } */
0e7e09dc
EC
3/* { dg-options "" } */
4/* { dg-final { scan-assembler-not "__builtin_" } } */
5
6#include <stdint.h>
7
ac868f29 8uint16_t foo16 (uint16_t a)
0e7e09dc 9{
ac868f29
EB
10 uint16_t b;
11
12 b = __builtin_bswap16 (a);
13
14 return b;
15}
16
17uint32_t foo32 (uint32_t a)
18{
19 uint32_t b;
0e7e09dc
EC
20
21 b = __builtin_bswap32 (a);
22
23 return b;
24}
ac868f29
EB
25
26uint64_t foo64 (uint64_t a)
27{
28 uint64_t b;
29
30 b = __builtin_bswap64 (a);
31
32 return b;
33}