OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / sparc-loop-1.c
1 /* 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 }