[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / peel_ind_3_run.c
blob384a38eb8ec55f19f06268aaf2f70aaf76d807dc
1 /* { dg-do run { target aarch64_sve_hw } } */
2 /* { dg-options "-O3 -mtune=thunderx" } */
3 /* { dg-options "-O3 -mtune=thunderx -msve-vector-bits=256" { target aarch64_sve256_hw } } */
5 #include "peel_ind_3.c"
7 int __attribute__ ((optimize (1)))
8 main (void)
10 for (int start = 0; start < MAX_START; ++start)
12 foo (start);
13 for (int i = 0; i < N; ++i)
15 if (x[start][i] != (i < start || i >= start + COUNT ? 0 : i))
16 __builtin_abort ();
17 asm volatile ("" ::: "memory");
20 return 0;