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/] [pr17141-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-optimized" } */
3
 
4
 
5
 
6
void abort (void);
7
struct a
8
{
9
  int i;
10
} *a;
11
int f(void)
12
{
13
  int *ii = &a->i;
14
  void *l;
15
  a->i = 1;
16
  if (*ii)
17
   l = &&l1;
18
  else
19
   l = &&l2;
20
  goto *l;
21
l1:
22
  return 0;
23
l2:
24
  abort ();
25
}
26
 
27
 
28
/* { dg-final { scan-tree-dump-times "&" 0 "optimized" } } */
29
/* { dg-final { scan-tree-dump-times "abort" 0 "optimized" } } */
30
/* { 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.