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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [alias-19.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 run } */
2
/* { dg-options "-O2 -fdump-tree-alias-vops" } */
3
 
4
const static int a;
5
 
6
int __attribute__((noinline))
7
foo(int i)
8
{
9
  const int *q;
10
  int b;
11
  if (i)
12
    q = &a;
13
  else
14
    q = &b;
15
  b = 1;
16
  /* We should not prune a from the points-to set of q.  */
17
  return *q;
18
}
19
 
20
extern void abort (void);
21
int main()
22
{
23
  if (foo(1) != 0)
24
    abort ();
25
  return 0;
26
}
27
 
28
/* { dg-final { scan-tree-dump "q_. = { a b }" "alias" } } */
29
/* { dg-final { scan-tree-dump "q_., points-to vars: { a b }" "alias" } } */
30
/* { dg-final { cleanup-tree-dump "alias" } } */

powered by: WebSVN 2.1.0

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