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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [forwprop-10.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 -fdump-tree-fre1-details" } */
3
 
4
int b;
5
unsigned a;
6
 
7
static inline int *g(void)
8
{
9
  a = 1;
10
  return (int*)&a;
11
}
12
void test2(void)
13
{
14
  b = *g();
15
}
16
 
17
/* The indirect load should be replaced by a load from a and a
18
   conversion to int.  FRE should then be able to replace
19
   the rhs of the store to b by 1.  */
20
 
21
/* { dg-final { scan-tree-dump "Replaced\[^\\n\]*with 1" "fre1" } } */
22
/* { 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.