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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [graphite/] [pr46924.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
/* { dg-options "-O -fgraphite-identity -ffast-math -fno-tree-loop-im" } */
2
 
3
struct S
4
{
5
  int n;
6
  float *a;
7
};
8
 
9
float foo (struct S *s)
10
{
11
  float f = 0, g=0;
12
  int i;
13
  for (i = 0; i < s->n; i++)
14
    f += s->a[i];
15
  for (i = 0; i < s->n; i++)
16
    ;
17
  return f;
18
}

powered by: WebSVN 2.1.0

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