OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr22230.c] - Blame information for rev 329

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O1 -ftree-vrp" } */
3
 
4
/* PR tree-optimization/22230
5
 
6
   The meet of the ranges in "i*i" was not computed correctly, leading
7
   gcc to believe that a was equal to 0 after the loop.  */
8
 
9
extern void abort (void) __attribute__((noreturn));
10
 
11
int main (void)
12
{
13
  long a, i;
14
 
15
  for (i = 0; i < 5; i++)
16
    a = i * i;
17
  if (a != 16)
18
    abort ();
19
  return 0;
20
}
21
 

powered by: WebSVN 2.1.0

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