OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr37360.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.