blob: 8d5f7519b03fe3009cb9e5b0cb47d6b24078b291 [file] [log] [blame]
/* PR optimization/10157 */
/* Originator: Peter van Hoof <p.van-hoof@qub.ac.uk> */
/* { dg-do compile { target sparc*-*-* } } */
/* { 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.;
}
}