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] - Rev 753

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

/* PR optimization/10157 */
/* Originator: Peter van Hoof <p.van-hoof@qub.ac.uk> */
 
/* { dg-do compile } */
/* { dg-options "-O2 -ffast-math" } */
 
/* Verify that the loop optimizer doesn't
   emit invalid reg-to-reg copy insns. */
 
void g() {
  while(1) {
    int i,n;
    double p,r;
    for( i=0; i < n; i++ )
      if( p > 1. )
        for( i=0; i < n; i++ )
          r += 2.;
  }
}
 

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

powered by: WebSVN 2.1.0

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