URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 298 |
Rev 384 |
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-options "-O2 -ffinite-math-only" } */
|
/* { dg-options "-O2 -ffinite-math-only" } */
|
/* { dg-require-effective-target double64plus } */
|
/* { dg-require-effective-target double64plus } */
|
|
|
extern void abort (void);
|
extern void abort (void);
|
|
|
volatile double a = 2.002083e-146;
|
volatile double a = 2.002083e-146;
|
volatile double b;
|
volatile double b;
|
|
|
int
|
int
|
main()
|
main()
|
{
|
{
|
b = 1. / a;
|
b = 1. / a;
|
|
|
if (b != (1. / 2.002083e-146))
|
if (b != (1. / 2.002083e-146))
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.