1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-rtl-loop2_invariant" } */
3 /* { dg-additional-options "-fno-pie" { target pie } } */
9 for (i
= 0; i
< 100; i
++)
13 /* Load of x is moved out of the loop. */
14 /* { dg-final { scan-rtl-dump "Decided" "loop2_invariant" } } */
15 /* { dg-final { scan-rtl-dump "without introducing a new temporary register" "loop2_invariant" } } */