URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* This caused an ICE on powerpc-linux-gnu due to not
|
/* This caused an ICE on powerpc-linux-gnu due to not
|
up-to-date life info (PR middle-end/20177). */
|
up-to-date life info (PR middle-end/20177). */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -fmodulo-sched" } */
|
/* { dg-options "-O2 -fmodulo-sched" } */
|
extern void * malloc (__SIZE_TYPE__);
|
extern void * malloc (__SIZE_TYPE__);
|
|
|
struct s {
|
struct s {
|
int k;
|
int k;
|
};
|
};
|
|
|
int n;
|
int n;
|
struct s *a1, *(*use)[];
|
struct s *a1, *(*use)[];
|
float (*vector)[];
|
float (*vector)[];
|
|
|
void
|
void
|
foo (float *V)
|
foo (float *V)
|
{
|
{
|
int i, used = 0;
|
int i, used = 0;
|
|
|
vector = malloc (i * sizeof (float));
|
vector = malloc (i * sizeof (float));
|
while ((*use)[used] != a1)
|
while ((*use)[used] != a1)
|
used += 1;
|
used += 1;
|
for (i = 0; i < n; i++)
|
for (i = 0; i < n; i++)
|
*V += (*vector)[i];
|
*V += (*vector)[i];
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.