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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.target/] [i386/] [991230-1.c] - Rev 12

Compare with Previous | Blame | View Log

/* { dg-do run { target i?86-*-* x86_64-*-* } } */
/* { dg-require-effective-target ilp32 } */
/* { dg-options "-O -ffast-math -mtune=i486" } */
 
/* Test that floating point greater-than tests are compiled correctly with
   -ffast-math.  */
 
extern void abort (void);
 
static int gt (double a, double b)
{
  if (a > b)
    return 4;
  return 0;
}
 
static double zero = 0.0;
 
int main ()
{
  if (gt (zero, zero))
    abort ();
  return 0;
}
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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