URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-options "-O1 -funsafe-math-optimizations -fno-trapping-math -fdump-tree-recip" } */
|
/* { dg-options "-O1 -funsafe-math-optimizations -fno-trapping-math -fdump-tree-recip" } */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
|
|
/* Test inserting in a block that does not contain a division. */
|
/* Test inserting in a block that does not contain a division. */
|
|
|
extern double h();
|
extern double h();
|
|
|
double m, n, o;
|
double m, n, o;
|
|
|
void f(int x, double z, double w)
|
void f(int x, double z, double w)
|
{
|
{
|
double b, c, d, e, f;
|
double b, c, d, e, f;
|
double y = h ();
|
double y = h ();
|
|
|
if (x)
|
if (x)
|
b = 1 / y, c = z / y;
|
b = 1 / y, c = z / y;
|
else
|
else
|
b = 3 / y, c = w / y;
|
b = 3 / y, c = w / y;
|
|
|
d = b / y;
|
d = b / y;
|
e = c / y;
|
e = c / y;
|
f = 1 / y;
|
f = 1 / y;
|
|
|
m = d;
|
m = d;
|
n = e;
|
n = e;
|
o = f;
|
o = f;
|
}
|
}
|
|
|
/* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
|
/* { dg-final { scan-tree-dump-times " / " 1 "recip" } } */
|
/* { dg-final { cleanup-tree-dump "recip" } } */
|
/* { dg-final { cleanup-tree-dump "recip" } } */
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.