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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-pre-24.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre" } */
3
 
4
void foo(int *p, double *x, int n)
5
{
6
  int i;
7
  for (i = 0; i < n; ++i)
8
    *(x + *p * i) = 0.0;
9
}
10
 
11
/* We should remove the unnecessary insertion of a phi-node and
12
   _not_ end up using the phi result for replacement *p.  */
13
 
14
/* { dg-final { scan-tree-dump-not "= prephitmp" "pre" } } */
15
/* { dg-final { cleanup-tree-dump "pre" } } */

powered by: WebSVN 2.1.0

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