Debian Codegraph @

gcc/testsuite/gcc.dg/pr112566-1.c

raw
1 /* PR tree-optimization/112566 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fdump-tree-optimized" } */
4 /* { dg-additional-options "-mbmi2 -mlzcnt -mpopcnt" { target i?86-*-* x86_64-*-* } } */
5 /* { dg-final { scan-tree-dump-not "ll \\\(" "optimized" { target ia32 } } } */
6 /* { dg-final { scan-tree-dump-not "\\\(long long (unsigned )?int\\\)" "optimized" { target ia32 } } } */
7
8 int foo (unsigned int x) { return __builtin_ctzll (x); }
9 int bar (unsigned int x) { return __builtin_popcountll (x); }
10 int baz (unsigned int x) { return __builtin_parityll (x); }
11 int qux (int x) { return __builtin_ffsll (x); }
12 int corge (int x) { return __builtin_ctzll (x); }
13 int garply (int x) { return __builtin_parityll (x); }
14 int fred (unsigned int x) { return __builtin_ffsll (x); }