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/] [g++.dg/] [tree-ssa/] [pr34063.C] - Blame information for rev 378

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

Line No. Rev Author Line
1 301 jeremybenn
// { PR tree-optimization/34063 }
2
// { dg-do compile }
3
// { dg-options "-O2" }
4
 
5
struct S
6
{
7
  double e[9];
8
 
9
  double const &
10
  operator() (int r, int c) const
11
  {
12
    return e[r * 3 + c];
13
  }
14
};
15
 
16
void
17
foo()
18
{
19
  S r;
20
  double *p;
21
  for (int j = 0; j < 3; j++)
22
    for (int k = 0; k < 3; k++)
23
      for (int l = k + 1; l < 3; l++)
24
        *p++ = r (k, 0) * r (l, j) + r (k, j) * r (l, 0);
25
}

powered by: WebSVN 2.1.0

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