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/] [restrict1.C] - Blame information for rev 478

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

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-lim-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.