Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/popcnt6.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { check-function-bodies "**" "" } } */
4 /* PR target/113042 */
5
6 #pragma GCC target "+nocssc"
7
8 /*
9 ** h8:
10 ** ldr h[0-9]+, \[x0\]
11 ** cnt v[0-9]+.8b, v[0-9]+.8b
12 ** addv b[0-9]+, v[0-9]+.8b
13 ** fmov w0, s[0-9]+
14 ** ret
15 */
16
17 unsigned h8 (const unsigned short *a) {
18 return __builtin_popcountg (a[0]);
19 }