URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 816 |
Rev 826 |
/* The compiler was failing to adjust pointer dereferences into array
|
/* The compiler was failing to adjust pointer dereferences into array
|
references after propagating &equot[0] into p. */
|
references after propagating &equot[0] into p. */
|
|
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O -ftree-dominator-opts" } */
|
/* { dg-options "-O -ftree-dominator-opts" } */
|
|
|
static unsigned short equot[(6 +3)];
|
static unsigned short equot[(6 +3)];
|
int
|
int
|
foo (num)
|
foo (num)
|
unsigned short num[];
|
unsigned short num[];
|
{
|
{
|
unsigned short *p = &equot[0];
|
unsigned short *p = &equot[0];
|
*p++ = num[0];
|
*p++ = num[0];
|
*p++ = num[1];
|
*p++ = num[1];
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.