| 1 |
/* PR tree-optimization/112719 */ |
| 2 |
/* { dg-do compile { target bitint } } */ |
| 3 |
/* { dg-options "-O2" } */ |
| 4 |
|
| 5 |
#if __BITINT_MAXWIDTH__ >= 252 |
| 6 |
int |
| 7 |
foo (unsigned _BitInt(239) x, unsigned _BitInt(252) y) |
| 8 |
{ |
| 9 |
x &= 0x2aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaauwb; |
| 10 |
y &= 0x555555555555555555555555555555555555555555555555555555555555555uwb; |
| 11 |
return __builtin_popcountg (x) + __builtin_popcountg (y); |
| 12 |
} |
| 13 |
|
| 14 |
int |
| 15 |
bar (unsigned _BitInt(239) x, unsigned _BitInt(252) y) |
| 16 |
{ |
| 17 |
return __builtin_parityg (x) ^ __builtin_parityg (y); |
| 18 |
} |
| 19 |
#endif |