re PR target/88837 ([SVE] Poor vector construction code in VL-specific mode)
[gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / init_11_run.c
1 /* { dg-do run { target aarch64_sve256_hw } } */
2 /* { dg-options "-O2 -msve-vector-bits=256" } */
3
4 #include "init_11.c"
5
6 int main()
7 {
8 int a = 10;
9 int b = 11;
10 int f = 12;
11
12 vnx4si v = foo (a, b, f);
13 int expected[] = { a, f, b, f, b, f, b, f };
14
15 for (int i = 0; i < 8; i++)
16 if (v[i] != expected[i])
17 __builtin_abort ();
18
19 return 0;
20 }