Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr101445.c

raw
1 #include "tree-vect.h"
2
3 int a[35] = { 1, 1, 3 };
4
5 void __attribute__((noipa))
6 foo ()
7 {
8 for (int b = 4; b >= 0; b--)
9 {
10 int tem = a[b * 5 + 3 + 1];
11 a[b * 5 + 3] = tem;
12 a[b * 5 + 2] = tem;
13 a[b * 5 + 1] = tem;
14 a[b * 5 + 0] = tem;
15 }
16 }
17
18 int main()
19 {
20 check_vect ();
21 foo ();
22 #pragma GCC novector
23 for (int d = 0; d < 25; d++)
24 if (a[d] != 0)
25 __builtin_abort ();
26 return 0;
27 }