blob: d2ca7f38897ae8ee710f2471c828bdf52e005563 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* PR rtl-optimization/37360 */
/* { dg-do compile { target fpic } } */
/* { dg-options "-O3 -fPIC" } */
typedef unsigned int UQItype __attribute__ ((mode (QI)));
typedef unsigned int USItype __attribute__ ((mode (SI)));
extern const UQItype __popcount_tab[256];
extern int __popcountsi2 (USItype);
int
__popcountsi2 (USItype x)
{
int i, ret = 0;
for (i = 0; i < (4 * 8); i += 8)
ret += __popcount_tab[(x >> i) & 0xff];
return ret;
}
|