1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fpic -fdump-rtl-loop2_invariant" } */
3 /* { dg-require-effective-target fpic } */
4 /* { dg-skip-if "Load/Store hoisted by RTL PRE already" { aarch64*-*-* } { "-mcmodel=tiny" "-mcmodel=large" } { "" } } */
10 foo (int a
, int bound
)
15 for (i
; i
< bound
; i
++)
21 /* The insn which loads function address from GOT table should be moved out
23 /* { dg-final { scan-rtl-dump "Decided" "loop2_invariant" } } */