Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/pr37360.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* 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; }