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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [sparc/] [sparc-loop-1.c] - Blame information for rev 753

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

Line No. Rev Author Line
1 691 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.