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/] [struct-aliasing-2.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 "-O2 -fdump-tree-fre" } */
3
 
4
struct S { unsigned f; };
5
 
6
int
7
foo ( struct S *p)
8
{
9
  int *q = (int *)&p->f;
10
  int i = *q;
11
  return i + p->f;
12
}
13
 
14
 
15
/*  There should only be one load of p->f because fwprop can change *(int *)&p->f into just (int)p->f.  */
16
/* { dg-final { scan-tree-dump-times "p_.\\\(D\\\)->f" 1 "fre" } } */
17
/* { dg-final { cleanup-tree-dump "fre" } } */
18
 

powered by: WebSVN 2.1.0

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