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/] [no-strict-overflow-7.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 "-fno-strict-overflow -O2 -fdump-tree-optimized" } */
/* { dg-options "-fno-strict-overflow -O2 -fdump-tree-optimized" } */
 
 
/* Source: Ian Lance Taylor.  Dual of strict-overflow-6.c.  */
/* Source: Ian Lance Taylor.  Dual of strict-overflow-6.c.  */
 
 
/* We can only simplify the conditional when using strict overflow
/* We can only simplify the conditional when using strict overflow
   semantics.  */
   semantics.  */
 
 
int
int
foo (char* p)
foo (char* p)
{
{
  return p + 1000 < p;
  return p + 1000 < p;
}
}
 
 
/* { dg-final { scan-tree-dump "\[+\]\[ \]*1000" "optimized" } } */
/* { dg-final { scan-tree-dump "\[+\]\[ \]*1000" "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
 
 

powered by: WebSVN 2.1.0

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