* gcc.dg/ucnid-[23456].c: XFAIL on AIX.
[official-gcc.git] / gcc / testsuite / gcc.dg / sparc-loop-1.c
blob8d5f7519b03fe3009cb9e5b0cb47d6b24078b291
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" } */
6 /* Verify that the loop optimizer doesn't
7 emit invalid reg-to-reg copy insns. */
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.;