1 unsigned short bswap16(void);
2 unsigned short bswap16(void)
4 return __builtin_bswap16(0x1234);
7 unsigned int bswap32(void);
8 unsigned int bswap32(void)
10 return __builtin_bswap32(0x12345678);
13 unsigned long long bswap64(void);
14 unsigned long long bswap64(void)
16 return __builtin_bswap64(0x123456789abcdef0ULL
);
20 * check-name: builtin-eval
21 * check-command: test-linearize $file
24 * check-output-excludes: __builtin_bswap
25 * check-output-contains:ret.16 *.0x3412
26 * check-output-contains:ret.32 *.0x78563412
27 * check-output-contains:ret.64 *.0xf0debc9a78563412