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/] [tree-ssa/] [ssa-fre-24.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fno-tree-sra -fdump-tree-fre" } */
3
 
4
int foo(void)
5
{
6
  int a[16] = {};
7
  return a[3];
8
}
9
 
10
int bar(void)
11
{
12
  int a[16];
13
  __builtin_memset (a, 0, sizeof(a));
14
  return a[3];
15
}
16
 
17
struct X { int i; };
18
int baz(void)
19
{
20
  struct X a,b;
21
  a.i = 0;
22
  b = a;
23
  return b.i;
24
}
25
 
26
int bazzoo (void)
27
{
28
  struct X b, a = {};
29
  b = a;
30
  return b.i;
31
}
32
 
33
/* { dg-final { scan-tree-dump-times "= 0;" 5 "fre" } } */
34
/* { dg-final { cleanup-tree-dump "fre" } } */

powered by: WebSVN 2.1.0

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