OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [forwprop-9.c] - Blame information for rev 300

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 -fdump-tree-optimized -fdump-tree-fre -W -Wall -fno-early-inlining" } */
3
 
4
int b;
5
unsigned a;
6
static inline int *g(void)
7
{
8
  a = 1;
9
  return (int*)&a;
10
}
11
void f(void)
12
{
13
   b = *g();
14
}
15
 
16
/* We should have converted the assignments to two = 1.  FRE does this.  */
17
 
18
/* { dg-final { scan-tree-dump-times " = 1" 2 "optimized"} } */
19
/* { dg-final { scan-tree-dump-not " = a;" "fre"} } */
20
/* { dg-final { cleanup-tree-dump "fre" } } */
21
/* { 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.