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/] [gcc.dg/] [tree-ssa/] [ssa-fre-17.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-fre-details -fno-tree-sra" } */
3
 
4
struct Bar {
5
  int dom;
6
};
7
struct Foo {
8
  struct Bar doms[3];
9
};
10
 
11
int foo(int i, int j, int k)
12
{
13
  struct Foo f;
14
 
15
  f.doms[0].dom = i;
16
  f.doms[1].dom = j;
17
  f.doms[2].dom = k;
18
  return f.doms[0LL].dom;
19
}
20
 
21
/* { dg-final { scan-tree-dump "Replaced f.doms\\\[0\\\].dom with i_" "fre" } } */
22
/* { dg-final { cleanup-tree-dump "fre" } } */
23
 

powered by: WebSVN 2.1.0

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