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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [sparc-loop-1.c] - Blame information for rev 455

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

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

powered by: WebSVN 2.1.0

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