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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-fre-25.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fno-tree-sra -fdump-tree-fre" } */
3
 
4
struct X { int i; int j; };
5
void bar (struct X *);
6
int foo (struct X *p)
7
{
8
  struct X x;
9
  p->i = 1;
10
  x = *p;
11
  x.j = 2;
12
  return p->i - x.i;
13
}
14
 
15
/* We should optimize this to return 0.  */
16
 
17
/* { dg-final { scan-tree-dump "= 0;" "fre" } } */
18
/* { 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.