URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 384 |
// PR tree-optimization/38572
|
// PR tree-optimization/38572
|
// { dg-do compile }
|
// { dg-do compile }
|
// { dg-options "-O2" }
|
// { dg-options "-O2" }
|
|
|
// Crash caused by the out-of-bounds enum values (all the remaining cruft
|
// Crash caused by the out-of-bounds enum values (all the remaining cruft
|
// is needed only to trigger the appropriate code path in tree-vrp.c).
|
// is needed only to trigger the appropriate code path in tree-vrp.c).
|
enum JSOp
|
enum JSOp
|
{
|
{
|
JSOP_GETELEM = 5,
|
JSOP_GETELEM = 5,
|
JSOP_LIMIT
|
JSOP_LIMIT
|
};
|
};
|
extern void g ();
|
extern void g ();
|
void f (char *pc, char *endpc, int format, char ***fp, enum JSOp op)
|
void f (char *pc, char *endpc, int format, char ***fp, enum JSOp op)
|
{
|
{
|
while (pc <= endpc)
|
while (pc <= endpc)
|
{
|
{
|
if ((fp && *fp && pc == **fp) || pc == endpc)
|
if ((fp && *fp && pc == **fp) || pc == endpc)
|
{
|
{
|
if (format == 1)
|
if (format == 1)
|
op = (JSOp) 256;
|
op = (JSOp) 256;
|
else if (format == 2)
|
else if (format == 2)
|
op = (JSOp) 257;
|
op = (JSOp) 257;
|
else
|
else
|
op = JSOP_GETELEM;
|
op = JSOP_GETELEM;
|
}
|
}
|
if (op >= JSOP_LIMIT)
|
if (op >= JSOP_LIMIT)
|
{
|
{
|
if (format)
|
if (format)
|
g ();
|
g ();
|
}
|
}
|
}
|
}
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.