URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
#define signed
|
#define signed
|
typedef unsigned __PTRDIFF_TYPE__ uintptr_t;
|
typedef unsigned __PTRDIFF_TYPE__ uintptr_t;
|
#undef signed
|
#undef signed
|
|
|
struct list_head
|
struct list_head
|
{
|
{
|
struct list_head *prev;
|
struct list_head *prev;
|
};
|
};
|
struct prio_array
|
struct prio_array
|
{
|
{
|
struct list_head queue[100];
|
struct list_head queue[100];
|
};
|
};
|
struct rq
|
struct rq
|
{
|
{
|
struct prio_array *active, arrays[2];
|
struct prio_array *active, arrays[2];
|
} per_cpu__runqueues;
|
} per_cpu__runqueues;
|
|
|
void sched_init (uintptr_t __ptr)
|
void sched_init (uintptr_t __ptr)
|
{
|
{
|
int j, k;
|
int j, k;
|
struct prio_array *array;
|
struct prio_array *array;
|
struct rq *rq;
|
struct rq *rq;
|
rq = (&(*( { (typeof (&per_cpu__runqueues)) (__ptr); } )));
|
rq = (&(*( { (typeof (&per_cpu__runqueues)) (__ptr); } )));
|
for (j = 0; j < 2; j++)
|
for (j = 0; j < 2; j++)
|
{
|
{
|
array = rq->arrays + j;
|
array = rq->arrays + j;
|
for (k = 0; k < 100; k++)
|
for (k = 0; k < 100; k++)
|
(array->queue + k)->prev = array->queue;
|
(array->queue + k)->prev = array->queue;
|
}
|
}
|
}
|
}
|
|
|
/* { dg-final { cleanup-tree-dump "vect" } } */
|
/* { dg-final { cleanup-tree-dump "vect" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.