[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / got_mem_hoist_1.c
blob9ee772f87f4e914cd9c1eaa32edb8f1d42337244
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fpic -fdump-rtl-loop2_invariant" } */
3 /* { dg-skip-if "Load/Store hoisted by RTL PRE already" { aarch64*-*-* } { "-mcmodel=tiny" "-mcmodel=large" } { "" } } */
5 int bar (int);
6 int cal (void *);
8 int
9 foo (int a, int bound)
11 int i = 0;
12 int sum = 0;
14 for (i; i < bound; i++)
15 sum = cal (bar);
17 return sum;
20 /* The insn which loads function address from GOT table should be moved out
21 of the loop. */
22 /* { dg-final { scan-rtl-dump "Decided" "loop2_invariant" } } */