URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 318 |
Rev 338 |
/* Excess precision tests. Make sure sqrt is not inlined for float or
|
/* Excess precision tests. Make sure sqrt is not inlined for float or
|
double. */
|
double. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-mfpmath=387 -O2 -fno-math-errno -fexcess-precision=standard" } */
|
/* { dg-options "-mfpmath=387 -O2 -fno-math-errno -fexcess-precision=standard" } */
|
|
|
float f;
|
float f;
|
double d;
|
double d;
|
|
|
float fr;
|
float fr;
|
double dr;
|
double dr;
|
|
|
void
|
void
|
test_builtins (void)
|
test_builtins (void)
|
{
|
{
|
fr = __builtin_sqrtf (f);
|
fr = __builtin_sqrtf (f);
|
dr = __builtin_sqrt (d);
|
dr = __builtin_sqrt (d);
|
}
|
}
|
|
|
/* { dg-final { scan-assembler-not "fsqrt" } } */
|
/* { dg-final { scan-assembler-not "fsqrt" } } */
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.