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/] [torture/] [ipa-pta-1.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile { target { nonpic } } } */
2
/* { dg-options "-fipa-pta -fdump-ipa-pta" } */
3
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
4
 
5
struct X { char x; char y; };
6
 
7
char *q;
8
 
9
static void __attribute__((noinline))
10
bar (char *p)
11
{
12
  q = p;
13
}
14
 
15
void test1 (char a1, char b, char c, char d, char e, char f, char g, char h)
16
{
17
  char *p = &a1;
18
  p++;
19
  bar (p);
20
}
21
 
22
void test2 (struct X a2, char b, char c, char d, char e, char f, char g, char h)
23
{
24
  char *p = &a2.x;
25
  p++;
26
  bar (p);
27
}
28
 
29
void test3 (struct X a3, char b, char c, char d, char e, char f, char g, char h)
30
{
31
  char *p = &a3.y;
32
  bar (p);
33
}
34
 
35
void test4 (int a4, char b, char c, char d, char e, char f, char g, char h)
36
{
37
  char *p = (char *)&a4;
38
  p++;
39
  p++;
40
  p++;
41
  p++;
42
  bar (p);
43
}
44
 
45
/* { dg-final { scan-ipa-dump "bar.arg0 = { a4 a3\[^ \]* a2\[^ \]* a1 }" "pta" } } */
46
/* { 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.