URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 149 |
Rev 154 |
/* PR optimization/10312 */
|
/* PR optimization/10312 */
|
/* Originator: Peter van Hoof <p dot van-hoof at qub dot ac dot uk> */
|
/* Originator: Peter van Hoof <p dot van-hoof at qub dot ac dot uk> */
|
|
|
/* Verify that the strength reduction pass doesn't find
|
/* Verify that the strength reduction pass doesn't find
|
illegitimate givs. */
|
illegitimate givs. */
|
|
|
struct
|
struct
|
{
|
{
|
double a;
|
double a;
|
int n[2];
|
int n[2];
|
} g = { 0., { 1, 2}};
|
} g = { 0., { 1, 2}};
|
|
|
int k = 0;
|
int k = 0;
|
|
|
void
|
void
|
b (int *j)
|
b (int *j)
|
{
|
{
|
}
|
}
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
int j;
|
int j;
|
|
|
for (j = 0; j < 2; j++)
|
for (j = 0; j < 2; j++)
|
k = (k > g.n[j]) ? k : g.n[j];
|
k = (k > g.n[j]) ? k : g.n[j];
|
|
|
k++;
|
k++;
|
b (&j);
|
b (&j);
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.