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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [20050111-2.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR rtl-optimization/15139 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -funroll-loops" } */
4
 
5
void
6
foo (double **a, double **z)
7
{
8
  long int i, j;
9
  double d = -1.0;
10
 
11
  for (i = 0; i < 6; i++)
12
    for (j = 0; j < 5; j++)
13
      d = z[i][j] > d ? z[i][j] : d;
14
 
15
  for (i = 0; i < 6; i++)
16
    for (j = 0; j < 5; j++)
17
      z[i][j] /= d;
18
 
19
  for (i = 0; i < 5; i++)
20
    a[i][j] = z[i][j];
21
}

powered by: WebSVN 2.1.0

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