OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [991230-1.c] - Diff between revs 318 and 338

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;
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.