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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-8.c] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
3
struct s {
4
      int *n;
5
};
6
 
7
int
8
foo (__SIZE_TYPE__ i, struct s *array)
9
{
10
  int *p = array[i].n;
11
  if (p)
12
    {
13
      int *q = array[i].n;
14
      if (p != q)
15
        return 1;
16
    }
17
  return 0;
18
}
19
/* We should eliminate two address calculations, one cast, and one load.  */
20
/* { dg-final { scan-tree-dump-times "Eliminated: 4" 1 "fre"} } */
21
/* { dg-final { cleanup-tree-dump "fre" } } */

powered by: WebSVN 2.1.0

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