Debian Codegraph @

gcc/testsuite/gcc.dg/pr112719.c

raw
1 /* PR tree-optimization/112719 */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
4 /* { dg-additional-options "-msse4" { target i?86-*-* x86_64-*-* } } */
5
6 int
7 foo (unsigned int a, unsigned short b)
8 {
9 return __builtin_popcountl (a) + __builtin_popcountl (b);
10 }
11
12 int
13 bar (unsigned int a, unsigned short b)
14 {
15 a &= 0xaaaaaaaaUL;
16 b &= 0x5555;
17 return __builtin_popcountll (a) + __builtin_popcountll (b);
18 }