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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr44485.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* PR tree-optimization/44485 */
2
/* { dg-do compile } */
3
/* { dg-options "-O1 -funsafe-math-optimizations" } */
4
 
5
unsigned short b;
6
int bar (unsigned);
7
 
8
void
9
baz (void)
10
{
11
  if (bar (0))
12
    for (b = 0; b < 30; b++)
13
      ;
14
}
15
 
16
int
17
bar (unsigned z)
18
{
19
  unsigned short c;
20
  for (; ; z += 1)
21
l1:
22
    if (z)
23
      goto l2;
24
l2:
25
  for (z = 0; z < 9; z++)
26
    if (z)
27
      goto l1;
28
  for (c = 0; c; c = (__UINTPTR_TYPE__) baz)
29
    ;
30
  return 0;
31
}

powered by: WebSVN 2.1.0

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