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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [ssa-fre-24.c] - Blame information for rev 749

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fno-tree-sra -fdump-tree-fre1" } */
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 "fre1" } } */
34
/* { dg-final { cleanup-tree-dump "fre1" } } */

powered by: WebSVN 2.1.0

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