blob: 724ba1e9847e9bac2e241f17977be1cfa1666fa1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* { dg-do compile } */
/* { dg-require-effective-target stdint_types } */
/* { dg-options "" } */
/* { dg-final { scan-assembler-not "__builtin_" } } */
#include <stdint.h>
uint16_t foo16 (uint16_t a)
{
uint16_t b;
b = __builtin_bswap16 (a);
return b;
}
uint32_t foo32 (uint32_t a)
{
uint32_t b;
b = __builtin_bswap32 (a);
return b;
}
uint64_t foo64 (uint64_t a)
{
uint64_t b;
b = __builtin_bswap64 (a);
return b;
}
|