URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
/* This testcase caused ICE on powerpc at -O3, because regrename did
|
/* This testcase caused ICE on powerpc at -O3, because regrename did
|
not handle match_dup of match_operator if the RTLs were not shared. */
|
not handle match_dup of match_operator if the RTLs were not shared. */
|
|
|
struct A
|
struct A
|
{
|
{
|
unsigned char *a0, *a1;
|
unsigned char *a0, *a1;
|
int a2;
|
int a2;
|
};
|
};
|
|
|
void bar (struct A *);
|
void bar (struct A *);
|
|
|
unsigned int
|
unsigned int
|
foo (int x)
|
foo (int x)
|
{
|
{
|
struct A a;
|
struct A a;
|
unsigned int b;
|
unsigned int b;
|
|
|
if (x < -128 || x > 255 || x == -1)
|
if (x < -128 || x > 255 || x == -1)
|
return 26;
|
return 26;
|
|
|
a.a0 = (unsigned char *) &b;
|
a.a0 = (unsigned char *) &b;
|
a.a1 = a.a0 + sizeof (unsigned int);
|
a.a1 = a.a0 + sizeof (unsigned int);
|
a.a2 = 0;
|
a.a2 = 0;
|
bar (&a);
|
bar (&a);
|
return b;
|
return b;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.