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