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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [pr19340.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
/* { dg-do compile } */
2
/* { dg-options "-O1 -fschedule-insns2 -fsched2-use-traces" } */
3
/* { dg-skip-if "No scheduling" { mmix-*-* cris-*-* m68k-*-* } { "*" } { "" } } */
4
 
5
extern double f (double x);
6
 
7
double g (int a)
8
{
9
  int b, c, d, e = 0;
10
  double h;
11
 
12
  for (d = 0; d < a; d++)
13
    for (c = 0; c < a; c++)
14
      b = 1;
15
 
16
  h = (double) e / (double) a;
17
 
18
  if (h)
19
    {
20
      h = 1.0 / h;
21
      h = f (h);
22
    }
23
  else
24
    h = 1.0;
25
 
26
  return h;
27
}

powered by: WebSVN 2.1.0

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