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/] [foldaddr-1.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-original" } */
3
 
4
 
5
char *a;
6
int foo(char *b)
7
{
8
        return a+5+(long)b == (long)b+a;
9
}
10
 
11
/* Folding should have determined that the two addresses were
12
   not identical and thus collapsed the function into a trivial
13
   "return 0".  */
14
/* { dg-final { scan-tree-dump-times "return 0" 1 "original"} } */
15
/* { dg-final { cleanup-tree-dump "original" } } */
16
 

powered by: WebSVN 2.1.0

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