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/] [20031106-6.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 "-O1 -fno-tree-sra -fdump-tree-optimized" } */
3
 
4
extern void link_error (void);
5
 
6
/* Check for copyprop on structs.  */
7
 
8
struct s
9
{
10
  char d;
11
  int a, b;
12
  double m;
13
};
14
 
15
struct s foo (struct s r)
16
{
17
  struct s temp_struct1;
18
  struct s temp_struct2;
19
  struct s temp_struct3;
20
  temp_struct1 = r;
21
  temp_struct2 = temp_struct1;
22
  temp_struct3 = temp_struct2;
23
  return temp_struct3;
24
}
25
 
26
/* There should be no references to any of "temp_struct*"
27
   temporaries.  */
28
/* { dg-final { scan-tree-dump-times "temp_struct" 0 "optimized" { xfail *-*-* } } } */
29
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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