c++: wrong error due to std::initializer_list opt [PR116476]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-neg-store-1.c
blobaa6e403b51ce8e9a29ddd39da5d252c9238ca7eb
1 /* { dg-require-effective-target vect_int } */
3 #include "tree-vect.h"
5 extern void abort (void);
7 __attribute__((noinline, noclone))
8 void test1(short x[128])
10 int i;
11 for (i=127; i>=0; i--) {
12 x[i] = 1234;
16 int main (void)
18 short x[128 + 32];
19 int i;
21 check_vect ();
23 for (i = 0; i < 16; i ++)
25 asm ("");
26 x[i] = x[i + 144] = 5678;
29 test1 (x + 16);
31 #pragma GCC novector
32 for (i = 0; i < 128; i++)
33 if (x[i + 16] != 1234)
34 abort ();
36 #pragma GCC novector
37 for (i = 0; i < 16; i++)
38 if (x[i] != 5678
39 || x[i + 144] != 5678)
40 abort ();
42 return 0;
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */