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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [ipa/] [ipa-pta-3.c] - Blame information for rev 753

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2 -fipa-pta -fdump-ipa-pta-details -fdump-tree-fre2-details" } */
3
 
4
static int __attribute__((noinline,noclone))
5
foo (int *p, int *q)
6
{
7
  *p = 1;
8
  *q = 0;
9
  return *p;
10
}
11
 
12
extern void abort (void);
13
 
14
int main()
15
{
16
  int a, b;
17
  if (foo (&a, &b) != 1)
18
    abort ();
19
  return 0;
20
}
21
 
22
/* Verify we can disambiguate *p and *q in foo.  */
23
 
24
/* { dg-final { scan-ipa-dump "foo.arg0 = &a" "pta" } } */
25
/* { dg-final { scan-ipa-dump "foo.arg1 = &b" "pta" } } */
26
/* { dg-final { scan-tree-dump "Replaced \\\*p_1\\\(D\\\) with 1" "fre2" } } */
27
/* { dg-final { cleanup-tree-dump "fre2" } } */
28
/* { dg-final { cleanup-ipa-dump "pta" } } */

powered by: WebSVN 2.1.0

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