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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [tree-loop-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* PR tree-optimization/20640 */
2
 
3
/* After unrolling the loop, we'd turn some conditional branches into
4
   unconditional ones, but branch redirection would fail to compute
5
   the PHI args for the PHI nodes in the replacement edge
6
   destination, so they'd remain NULL causing crashes later on.  */
7
 
8
/* { dg-do compile } */
9
 
10
static int a = 0;
11
extern int foo (void);
12
extern int *bar (void) __attribute__ ((__const__));
13
 
14
void
15
test (int x)
16
{
17
  int b = 10;
18
  while (foo () == -1 && *bar () == 4 && b > 0)
19
    --b;
20
  a = x;
21
}

powered by: WebSVN 2.1.0

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