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.target/] [sparc/] [sparc-loop-1.c] - Blame information for rev 326

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 326 jeremybenn
/* PR optimization/10157 */
2
/* Originator: Peter van Hoof <p.van-hoof@qub.ac.uk> */
3
 
4
/* { dg-do compile } */
5
/* { dg-options "-O2 -ffast-math" } */
6
 
7
/* Verify that the loop optimizer doesn't
8
   emit invalid reg-to-reg copy insns. */
9
 
10
void g() {
11
  while(1) {
12
    int i,n;
13
    double p,r;
14
    for( i=0; i < n; i++ )
15
      if( p > 1. )
16
        for( i=0; i < n; i++ )
17
          r += 2.;
18
  }
19
}

powered by: WebSVN 2.1.0

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