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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr31146.C] - Blame information for rev 399

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

Line No. Rev Author Line
1 301 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-forwprop" } */
3
 
4
/* We should be able to optimize this to i[j] = 1 during
5
   early optimizations.  */
6
 
7
int i[5];
8
void foo (int j)
9
{
10
  void *p = &i[j];
11
  int *q = (int *)p;
12
  *q = 1;
13
}
14
 
15
/* { dg-final { scan-tree-dump "i\\\[j.*\\\] =.* 1;" "forwprop1" } } */
16
/* { dg-final { cleanup-tree-dump "forwprop?" } } */

powered by: WebSVN 2.1.0

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