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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [strict-overflow-4.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fstrict-overflow -O2 -fdump-tree-final_cleanup" } */
3
 
4
/* Source: Ian Lance Taylor.  Dual of no-strict-overflow-4.c.  */
5
 
6
/* We can only simplify the conditional when using strict overflow
7
   semantics.  */
8
 
9
int
10
foo (int i)
11
{
12
  return i + 1 > i;
13
}
14
 
15
/* We expect to see "<bb N>"; confirm that, so that we know to count
16
   it in the real test.  */
17
/* { dg-final { scan-tree-dump-times "<bb\[^>\]*>" 1 "final_cleanup" } } */
18
/* { dg-final { scan-tree-dump-times ">|<" 2 "final_cleanup" } } */
19
/* { 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.