1 /* PR rtl-optimization/31360 */ 2 3 /* { dg-do compile { target { powerpc*-*-* } } } */ 4 /* { dg-options "-O1 -fdump-rtl-loop2_invariant" } */ 5 f(int * a)6void f(int *a) 7 { 8 int i; 9 for (i = 0;i<100;i++) 10 a[i] = 0; 11 } 12 13 /* Load of 0 is moved out of the loop. */ 14 /* { dg-final { scan-rtl-dump-times "Decided" 1 "loop2_invariant" } } */ 15 16