Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/pr119351_run.c

raw
1 /* Fix for PR119351 alignment peeling with vectors and VLS. */
2 /* { dg-do run { target aarch64_sve_hw } } */
3 /* { dg-options "-Ofast --param aarch64-autovec-preference=sve-only" } */
4 /* { dg-additional-options "-msve-vector-bits=256" { target aarch64_sve256_hw } } */
5 /* { dg-additional-options "-msve-vector-bits=128" { target aarch64_sve128_hw } } */
6
7 #include "pr119351.c"
8
9 int __attribute__ ((optimize (1)))
10 main (void)
11 {
12 x[0] = 1;
13 x[1] = 21;
14 x[2] = 39;
15 x[3] = 59;
16 int res = foo ();
17 if (res != 4)
18 __builtin_abort ();
19 return 0;
20 }