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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-ccp-19.c] - Blame information for rev 816

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-ccp1" } */
3
 
4
struct f { int i; };
5
int g()
6
{
7
  struct f a, *a1;
8
  int *i;
9
  a.i = 1;
10
  a1 = &a;
11
  i = &a1->i;
12
  return *i;  /* This should be turned into a.i */
13
}
14
 
15
/* { dg-final { scan-tree-dump "= a.i;" "ccp1" } } */
16
/* { dg-final { cleanup-tree-dump "ccp1" } } */

powered by: WebSVN 2.1.0

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