libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / pr112719.c
blobc69a7c101d8bf840c08290332fa6759362c4b580
1 /* PR tree-optimization/112719 */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
4 /* { dg-additional-options "-msse4" { target i?86-*-* x86_64-*-* } } */
6 int
7 foo (unsigned int a, unsigned short b)
9 return __builtin_popcountl (a) + __builtin_popcountl (b);
12 int
13 bar (unsigned int a, unsigned short b)
15 a &= 0xaaaaaaaaUL;
16 b &= 0x5555;
17 return __builtin_popcountll (a) + __builtin_popcountll (b);