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/] [20040513-2.c] - Diff between revs 816 and 826

Only display areas with differences | Details | Blame | View Log

Rev 816 Rev 826
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-dom2" } */
/* { dg-options "-O1 -fdump-tree-dom2" } */
int link_error(void);
int link_error(void);
int s(void);
int s(void);
 
 
int t(int i)
int t(int i)
{
{
  _Bool g = i == 4;
  _Bool g = i == 4;
 int h = g;
 int h = g;
 _Bool j = h;
 _Bool j = h;
 int k = j;
 int k = j;
 _Bool l = k == 0;
 _Bool l = k == 0;
 _Bool o = !l;
 _Bool o = !l;
 int m = o;
 int m = o;
 
 
 if (m)
 if (m)
  if (i != 4)
  if (i != 4)
   return link_error();
   return link_error();
 return 0;
 return 0;
}
}
 
 
/* There should be no link_error calls, if there is any, the
/* There should be no link_error calls, if there is any, the
   optimization has failed */
   optimization has failed */
/* { dg-final { scan-tree-dump-times "link_error" 0 "dom2"} } */
/* { dg-final { scan-tree-dump-times "link_error" 0 "dom2"} } */
/* { dg-final { cleanup-tree-dump "dom2" } } */
/* { dg-final { cleanup-tree-dump "dom2" } } */
 
 

powered by: WebSVN 2.1.0

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