arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-2-big-array.c
bloba190ac54b84b6ed153624597e0ddb1c724fc9453
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 char cb[N];
11 char ca[N];
13 __attribute__ ((noinline))
14 int main1 ()
16 int i;
18 for (i = 0; i < N; i++)
20 cb[i] = i*3;
21 asm volatile ("" ::: "memory");
24 for (i = 0; i < N; i++)
26 ca[i] = cb[i];
29 /* check results: */
30 #pragma GCC novector
31 for (i = 0; i < N; i++)
33 if (ca[i] != cb[i])
34 abort ();
37 return 0;
40 int main (void)
42 check_vect ();
44 return main1 ();
47 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
48 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" } } */
49 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */