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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [strict-overflow-4.c] - Diff between revs 149 and 154

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 149 Rev 154
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-fstrict-overflow -O2 -fdump-tree-final_cleanup" } */
/* { dg-options "-fstrict-overflow -O2 -fdump-tree-final_cleanup" } */
 
 
/* Source: Ian Lance Taylor.  Dual of no-strict-overflow-4.c.  */
/* Source: Ian Lance Taylor.  Dual of no-strict-overflow-4.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 (int i)
foo (int i)
{
{
  return i + 1 > i;
  return i + 1 > i;
}
}
 
 
/* We expect to see "<bb N>"; confirm that, so that we know to count
/* We expect to see "<bb N>"; confirm that, so that we know to count
   it in the real test.  */
   it in the real test.  */
/* { dg-final { scan-tree-dump-times "<bb\[^>\]*>" 1 "final_cleanup" } } */
/* { dg-final { scan-tree-dump-times "<bb\[^>\]*>" 1 "final_cleanup" } } */
/* { dg-final { scan-tree-dump-times ">|<" 2 "final_cleanup" } } */
/* { dg-final { scan-tree-dump-times ">|<" 2 "final_cleanup" } } */
/* { dg-final { cleanup-tree-dump "final_cleanup" } } */
/* { dg-final { cleanup-tree-dump "final_cleanup" } } */
 
 

powered by: WebSVN 2.1.0

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