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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [local-pure-const.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-local-pure-const1" } */
3
/* { dg-add-options bind_pic_locally } */
4
 
5
t(int a, int b, int c)
6
{
7
  int *p;
8
  if (a)
9
    p = &a;
10
  else
11
    p = &c;
12
  return *p;
13
}
14
/* { dg-final { scan-tree-dump-times "local memory is OK" 1 "local-pure-const1"} } */
15
/* { dg-final { scan-tree-dump-times "found to be const" 1 "local-pure-const1"} } */
16
/* { dg-final { cleanup-tree-dump "local-pure-const1" } } */

powered by: WebSVN 2.1.0

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