Debian Codegraph @

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

raw
1 /* { dg-do run { target aarch64_sve256_hw } } */
2 /* { dg-options "-O2 -msve-vector-bits=256" } */
3
4 #include "init_7.c"
5
6 int main()
7 {
8 int a = 10;
9 int b = 11;
10 int c = 12;
11 int d = 13;
12 int e = 14;
13 int f = 15;
14 int g = 16;
15 int h = 17;
16
17 vnx4si v = foo (a, b, c, d, e, f, g, h);
18 int expected[] = { a, b, c, d, e, f, g, h };
19
20 for (int i = 0; i < 8; i++)
21 if (v[i] != expected[i])
22 __builtin_abort ();
23
24 return 0;
25 }