libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / fold-parity-8.c
blob48e1f7f2b59901e543310e757399b08528fa7920
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 int foo(unsigned short x)
6 unsigned short t1 = __builtin_bswap16(x);
7 unsigned int t2 = t1;
8 return __builtin_parity (t2);
11 int fool(unsigned short x)
13 unsigned short t1 = __builtin_bswap16(x);
14 unsigned long t2 = t1;
15 return __builtin_parityl (t2);
18 int fooll(unsigned short x)
20 unsigned short t1 = __builtin_bswap16(x);
21 unsigned long long t2 = t1;
22 return __builtin_parityll (t2);
25 /* { dg-final { scan-tree-dump-not "bswap" "optimized" } } */