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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tree-ssa/] [pr31146.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 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 "MEM\\\[.*&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.