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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20021212-1.c] - Blame information for rev 399

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

Line No. Rev Author Line
1 297 jeremybenn
/* PR optimization/8334 */
2
/* Verify that GCC produces valid operands
3
   after simplifying an addition. */
4
 
5
void foo(int m, int n, double *f)
6
{
7
  int i, j, k = 1;
8
 
9
  for (j = 0; j < n; j++) {
10
    for (i = k; i < m; i++) {
11
      f[i] = (double) (i * j);
12
      f[i + j] = (double) ((i + 1) * j);
13
    }
14
  }
15
}

powered by: WebSVN 2.1.0

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