annotate gcc/testsuite/gcc.dg/pr37360.c @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 /* PR rtl-optimization/37360 */
kono
parents:
diff changeset
2 /* { dg-do compile { target fpic } } */
kono
parents:
diff changeset
3 /* { dg-options "-O3 -fPIC" } */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 typedef unsigned int UQItype __attribute__ ((mode (QI)));
kono
parents:
diff changeset
6 typedef unsigned int USItype __attribute__ ((mode (SI)));
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 extern const UQItype __popcount_tab[256];
kono
parents:
diff changeset
9 extern int __popcountsi2 (USItype);
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 int
kono
parents:
diff changeset
12 __popcountsi2 (USItype x)
kono
parents:
diff changeset
13 {
kono
parents:
diff changeset
14 int i, ret = 0;
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 for (i = 0; i < (4 * 8); i += 8)
kono
parents:
diff changeset
17 ret += __popcount_tab[(x >> i) & 0xff];
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 return ret;
kono
parents:
diff changeset
20 }
kono
parents:
diff changeset
21