Debian Codegraph @

gcc/testsuite/gcc.target/i386/parity-7.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -march=core-avx2 -mno-popcnt" } */
3 /* { dg-additional-options "-mregparm=1" { target ia32 } } */
4 /* { dg-final { scan-assembler-times "test" 2 } } */
5 /* { dg-final { scan-assembler-not "shr" } } */
6
7 int foo(unsigned char x)
8 {
9 return __builtin_parity(x);
10 }
11
12 int bar(unsigned char x)
13 {
14 return __builtin_parityll(x);
15 }