URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 318 |
Rev 384 |
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O2 -ffast-math -msse -mfpmath=sse -mrecip" } */
|
/* { dg-options "-O2 -ffast-math -msse -mfpmath=sse -mrecip" } */
|
/* { dg-require-effective-target sse } */
|
/* { dg-require-effective-target sse } */
|
|
|
extern float sqrtf (float);
|
extern float sqrtf (float);
|
|
|
float t1(float a, float b)
|
float t1(float a, float b)
|
{
|
{
|
return a/sqrtf(b);
|
return a/sqrtf(b);
|
}
|
}
|
|
|
float t2(float a, float b)
|
float t2(float a, float b)
|
{
|
{
|
return sqrtf(a/b);
|
return sqrtf(a/b);
|
}
|
}
|
|
|
float t3(float a)
|
float t3(float a)
|
{
|
{
|
return sqrtf(a);
|
return sqrtf(a);
|
}
|
}
|
|
|
/* { dg-final { scan-assembler-times "rsqrtss" 3 } } */
|
/* { dg-final { scan-assembler-times "rsqrtss" 3 } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.