| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -march=core-avx2 -mno-popcnt" } */ |
| 3 |
/* { dg-final { scan-assembler-not "shr" } } */ |
| 4 |
|
| 5 |
int foo(unsigned short x) |
| 6 |
{ |
| 7 |
return __builtin_parity(x); |
| 8 |
} |
| 9 |
|
| 10 |
int bar(unsigned short x) |
| 11 |
{ |
| 12 |
return __builtin_parityll(x); |
| 13 |
} |