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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr23821.c] - Blame information for rev 298

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */
3
/* At -O1 DOM threads a jump in a non-optimal way which leads to
4
   the bogus propagation.  */
5
/* { dg-skip-if "" { *-*-* } { "-O1" } { "" } } */
6
/* { dg-options "-fdump-tree-ivcanon-details" } */
7
 
8
static int a[199];
9
 
10
extern void abort (void);
11
 
12
int
13
main ()
14
{
15
  int i, x;
16
  for (i = 0; i < 199; i++)
17
    {
18
      x = a[i];
19
      if (x != i)
20
        abort ();
21
    }
22
  return 0;
23
}
24
 
25
/* Verify that we do not propagate the equivalence x == i into the
26
   induction variable increment.  */
27
 
28
/* { dg-final { scan-tree-dump "Added canonical iv" "ivcanon" } } */
29
/* { dg-final { cleanup-tree-dump "ivcanon" } } */

powered by: WebSVN 2.1.0

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