Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/popcnt8.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 "+cssc"
7
8 /*
9 ** h8:
10 ** ldrh w[0-9]+, \[x0\]
11 ** cnt w[0-9]+, w[0-9]+
12 ** ret
13 */
14 /* We should not produce any extra zero extend for this code */
15
16 unsigned h8 (const unsigned short *a) {
17 return __builtin_popcountg (a[0]);
18 }