URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* Testcase extracted from test 183.equake in SPEC CPU2000. */
|
/* Testcase extracted from test 183.equake in SPEC CPU2000. */
|
double Ke[2], ds[2];
|
double Ke[2], ds[2];
|
|
|
void foo(double Ke[2], int i, double ds[], int column)
|
void foo(double Ke[2], int i, double ds[], int column)
|
{
|
{
|
double tt, ts;
|
double tt, ts;
|
int j;
|
int j;
|
|
|
for (j = 0; j < 2; j++)
|
for (j = 0; j < 2; j++)
|
{
|
{
|
++column;
|
++column;
|
ts = ds[i];
|
ts = ds[i];
|
if (i == j)
|
if (i == j)
|
tt = 123;
|
tt = 123;
|
else
|
else
|
tt = 0;
|
tt = 0;
|
Ke[column] = Ke[column] + ts + tt;
|
Ke[column] = Ke[column] + ts + tt;
|
}
|
}
|
}
|
}
|
|
|
int
|
int
|
main ()
|
main ()
|
{
|
{
|
int i, j;
|
int i, j;
|
|
|
ds[0] = 1.0;
|
ds[0] = 1.0;
|
ds[1] = 1.0;
|
ds[1] = 1.0;
|
|
|
foo(Ke, 0, ds, -1);
|
foo(Ke, 0, ds, -1);
|
|
|
return (int) Ke[0] != 124;
|
return (int) Ke[0] != 124;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.