SVE Intrinsics: Change return type of redirect_call to gcall.
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-73-big-array.c
blob2237fa544b8318dabee830e6d8949b4531d362b7
1 /* { dg-require-effective-target vect_int } */
2 /* { dg-add-options bind_pic_locally } */
3 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
5 #include <stdarg.h>
6 #include "tree-vect.h"
8 #define N 128
10 int ic[N*2];
11 int ib[N];
13 #define ia (ic+N)
15 __attribute__ ((noinline))
16 int main1 ()
18 int i, j;
20 for (i = 0; i < N; i++)
22 ib[i] = i*3;
23 asm volatile ("" ::: "memory");
26 for (i = 0; i < N; i++)
28 ia[i] = ib[i];
31 /* check results: */
32 #pragma GCC novector
33 for (i = 0; i < N; i++)
35 if (ia[i] != ib[i])
36 abort ();
39 return 0;
42 int main (void)
44 check_vect ();
46 return main1 ();
49 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
50 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
51 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */