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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [dse.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-dse-details" } */
3
 
4
#define N 256
5
 
6
struct
7
{
8
  int x;
9
  int y;
10
} S[100];
11
 
12
int z[100];
13
 
14
int
15
foo (void)
16
{
17
  int i;
18
  int x, y;
19
 
20
  S[5].x = 0;
21
  S[5].y = 0;
22
 
23
  x = 5 + z[0];
24
  y = z[0];
25
 
26
  S[5].x = x;
27
  S[5].y = y;
28
}
29
 
30
/* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1" } } */
31
/* { dg-final { cleanup-tree-dump "dse*" } } */
32
 

powered by: WebSVN 2.1.0

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