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] - Rev 478

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

// { PR tree-optimization/34063 }
// { dg-do compile }
// { dg-options "-O2" }

struct S
{
  double e[9];

  double const &
  operator() (int r, int c) const
  {
    return e[r * 3 + c];
  }
};

void
foo()
{
  S r;
  double *p;
  for (int j = 0; j < 3; j++)
    for (int k = 0; k < 3; k++)
      for (int l = k + 1; l < 3; l++)
        *p++ = r (k, 0) * r (l, j) + r (k, j) * r (l, 0);
}

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

powered by: WebSVN 2.1.0

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