gcc/testsuite/gcc.target/i386/pr68647.c
raw| 1 | /* PR target/68647 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-O2 -mpopcnt" } */ |
| 4 | |
| 5 | int |
| 6 | f1 (unsigned long long a) |
| 7 | { |
| 8 | return __builtin_popcountll (a); |
| 9 | } |
| 10 | |
| 11 | int |
| 12 | f2 (unsigned long long a) |
| 13 | { |
| 14 | return __builtin_parityll (a); |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-assembler-not "__popcountdi2" } } */ |
| 18 | /* { dg-final { scan-assembler-not "__paritydi2" } } */ |