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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [pr19340.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fschedule-insns2 -fsched2-use-traces" } */
3
/* { dg-skip-if "No scheduling" { mmix-*-* cris-*-* m68k-*-* m32c-*-* } { "*" } { "" } } */
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.