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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr19340.c] - Blame information for rev 689

Details | Compare with Previous | View Log

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