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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [autopar/] [pr47060.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR tree-optimization/47060 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -ffast-math -ftree-parallelize-loops=2 -fno-tree-dce" } */
4
 
5
struct S
6
{
7
  int n;
8
  float *a;
9
};
10
 
11
float
12
foo (struct S *b)
13
{
14
  float c, d;
15
  int j;
16
  for (j = 0; j < b->n; j++)
17
    d += b->a[j];
18
  for (j = 0; j < b->n; j++)
19
    c += b->a[j];
20
  return d;
21
}

powered by: WebSVN 2.1.0

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