OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr21658.c] - Blame information for rev 437

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR tree-optimization/21658
2
   CCP did not propagate an ADDR_EXPR far enough, preventing the "if"
3
   statement below from being folded.  */
4
 
5
/* { dg-do compile } */
6
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-ccp1-details" } */
7
 
8
void link_error (void);
9
 
10
void
11
f (void)
12
{
13
  int a[10];
14
  int *p = &a[5];
15
  int *q = p - 1;
16
  if (q != &a[4])
17
    link_error ();
18
}
19
 
20
/* { dg-final { scan-tree-dump-times "Folded into: if " 1 "ccp1"} } */
21
/* { dg-final { cleanup-tree-dump "ccp1" } } */

powered by: WebSVN 2.1.0

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