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-dse-6.c] - Rev 816

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-dse1" } */
 
int foo11 (int c)
{
  static int local1, local2;
  local1 = 0;
  local2 += c;
  local1 = 2;
  local2++;
  return local1 + local2;
}
 
/* There should only be one assignment to local1 and local2.  */
/* { dg-final { scan-tree-dump-times "local1 = " 1 "dse1"} } */
/* { dg-final { scan-tree-dump-times "local2 = " 1 "dse1"} } */
 
/* { dg-final { cleanup-tree-dump "dse1" } } */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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