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/] [20050128-1.c] - Diff between revs 298 and 338

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

Rev 298 Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-gimple" } */
/* { dg-options "-O2 -fdump-tree-gimple" } */
 
 
int
int
foo (int align)
foo (int align)
{
{
  int off = 0 % align;
  int off = 0 % align;
  return off ? align - off : 0;
  return off ? align - off : 0;
}
}
 
 
/* We should have optimized away the mod operator before we gimpleized
/* We should have optimized away the mod operator before we gimpleized
   the code.  */
   the code.  */
/* { dg-final { scan-tree-dump-times "%" 0 "gimple"} } */
/* { dg-final { scan-tree-dump-times "%" 0 "gimple"} } */
/* { dg-final { cleanup-tree-dump "gimple" } } */
/* { dg-final { cleanup-tree-dump "gimple" } } */
 
 

powered by: WebSVN 2.1.0

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