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/] [sra-9.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 "-O1 -fdump-tree-optimized" } */
3
 
4
struct S
5
{
6
  int a, b, c;
7
  int z[20];
8
};
9
 
10
int foo (int d)
11
{
12
  struct S s;
13
 
14
  s.a = d;
15
  return s.a + s.b;
16
}
17
 
18
/* There should be no reference to s.b.  */
19
/* { dg-final { scan-tree-dump-times "= s\.b" 0 "optimized"} } */
20
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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