]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/fold-parity-3.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / fold-parity-3.c
CommitLineData
33bf56dd
RS
1/* { dg-do compile } */
2/* { dg-options "-O2 -fdump-tree-optimized" } */
3
4int foo(unsigned int x)
5{
6 return __builtin_parity(x&1);
7}
8
9int fool(unsigned long x)
10{
11 return __builtin_parityl(x&1);
12}
13
14int fooll(unsigned long long x)
15{
16 return __builtin_parityll(x&1);
17}
18
19/* { dg-final { scan-tree-dump-times "__builtin_parity" 0 "optimized" } } */
20