URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 338 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O1 -funsafe-math-optimizations -fdump-tree-recip" } */
|
/* { dg-options "-O1 -funsafe-math-optimizations -fdump-tree-recip" } */
|
|
|
float e(float *x, float *y, float *z)
|
float e(float *x, float *y, float *z)
|
{
|
{
|
float m = __builtin_sqrt (*x * *x + *y * *y + *z * *z);
|
float m = __builtin_sqrt (*x * *x + *y * *y + *z * *z);
|
*x /= m;
|
*x /= m;
|
*y /= m;
|
*y /= m;
|
*z /= m;
|
*z /= m;
|
}
|
}
|
|
|
/* Look for only one division. */
|
/* Look for only one division. */
|
/* { 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.