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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [restrict1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-lim1-details" } */
3
 
4
struct Foo
5
{
6
  Foo();
7
  Foo(const Foo&);
8
  int n;
9
  int * __restrict__ p;
10
};
11
void bar(Foo f, int * __restrict__ q)
12
{
13
  for (int i = 0; i < f.n; ++i)
14
    {
15
      *q += f.p[i];
16
    }
17
}
18
 
19
/* { dg-final { scan-tree-dump "Executing store motion" "lim1" } } */
20
/* { dg-final { cleanup-tree-dump "lim1" } } */

powered by: WebSVN 2.1.0

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