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] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do run { target i?86-*-* x86_64-*-* } } */
2
/* { dg-require-effective-target ilp32 } */
3
/* { dg-options "-O -ffast-math -mtune=i486" } */
4
 
5
/* Test that floating point greater-than tests are compiled correctly with
6
   -ffast-math.  */
7
 
8
extern void abort (void);
9
 
10
static int gt (double a, double b)
11
{
12
  if (a > b)
13
    return 4;
14
  return 0;
15
}
16
 
17
static double zero = 0.0;
18
 
19
int main ()
20
{
21
  if (gt (zero, zero))
22
    abort ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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