1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-rtl-loop2_invariant" } */
3 /* { dg-skip-if "unexpected IV" { "hppa*-*-* mips*-*-* visium-*-* powerpc*-*-* riscv*-*-*" } } */
10 for (i
= 0; i
< 100; i
++)
21 /* Load of 42 is moved out of the loop, introducing a new pseudo register. */
22 /* { dg-final { scan-rtl-dump-times "Decided" 1 "loop2_invariant" } } */
23 /* { dg-final { scan-rtl-dump-not "without introducing a new temporary register" "loop2_invariant" } } */