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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-18.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre-details" } */
3
 
4
struct Bar { int a; int b; };
5
struct Foo { int x; struct Bar y; };
6
 
7
int __attribute__((const)) foo (struct Bar);
8
 
9
int bar (int b)
10
{
11
  struct Foo f;
12
  int c;
13
  while (b--)
14
    {
15
      c = foo(f.y);
16
    }
17
  return c;
18
}
19
 
20
/* { dg-final { scan-tree-dump "Replaced foo \\(f.y\\)" "pre" } } */
21
/* { dg-final { cleanup-tree-dump "pre" } } */

powered by: WebSVN 2.1.0

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