OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr23391.c] - Blame information for rev 300

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2" } */
3
 
4
void
5
foo (int N)
6
{
7
  int C;
8
  double R;
9
 
10
  R = 0.0;
11
  do
12
    {
13
      R += 0.001;
14
      C = (int) (R * N);
15
      if (-R * N <= R * N)
16
        {
17
          C++;
18
        }
19
    }
20
  while (C < 0);
21
 
22
  return;
23
}

powered by: WebSVN 2.1.0

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