1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 unsigned short test_bswap16(unsigned short x
)
7 return __builtin_bswap16(x
);
11 unsigned int test_bswap32(unsigned int x
)
14 return __builtin_bswap32(x
);
18 unsigned long long test_bswap64(unsigned long long x
)
21 return __builtin_bswap64(x
);
28 return __builtin_clrsb(x
);
29 return (__SIZEOF_INT__
*8-1);
32 int test_clrsbl(long x
)
35 return __builtin_clrsbl(x
);
36 return (__SIZEOF_LONG__
*8-1);
39 int test_clrsbll(long long x
)
42 return __builtin_clrsbll(x
);
43 return (__SIZEOF_LONG_LONG__
*8-1);
46 int test_parity(int x
)
49 return __builtin_parity(x
);
53 int test_parityl(long x
)
56 return __builtin_parityl(x
);
60 int test_parityll(long long x
)
63 return __builtin_parityll(x
);
67 int test_popcount(int x
)
70 return __builtin_popcount(x
);
74 int test_popcountl(long x
)
77 return __builtin_popcountl(x
);
81 int test_popcountll(long long x
)
84 return __builtin_popcountll(x
);
88 /* { dg-final { scan-tree-dump-not "goto" "optimized" } } */