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 |
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-require-effective-target ilp32 } */
|
/* { dg-require-effective-target ilp32 } */
|
/* { dg-options "-O -ffast-math -mtune=i486" } */
|
/* { dg-options "-O -ffast-math -mtune=i486" } */
|
|
|
/* Test that floating point greater-than tests are compiled correctly with
|
/* Test that floating point greater-than tests are compiled correctly with
|
-ffast-math. */
|
-ffast-math. */
|
|
|
extern void abort (void);
|
extern void abort (void);
|
|
|
static int gt (double a, double b)
|
static int gt (double a, double b)
|
{
|
{
|
if (a > b)
|
if (a > b)
|
return 4;
|
return 4;
|
return 0;
|
return 0;
|
}
|
}
|
|
|
static double zero = 0.0;
|
static double zero = 0.0;
|
|
|
int main ()
|
int main ()
|
{
|
{
|
if (gt (zero, zero))
|
if (gt (zero, zero))
|
abort ();
|
abort ();
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.