Aarch64: Define WIDEST_HARDWARE_FP_SIZE
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-35.c
blob58835dfc3d2b589e5ad716e68c7f2898cdbe0342
1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
4 #include <stdarg.h>
5 #include "tree-vect.h"
7 #define N 16
9 __attribute__ ((noinline))
10 int main1 ()
12 union {
13 unsigned char a[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
14 unsigned char b[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
15 } s;
16 int i;
18 /* Initialization. */
19 for (i = 0; i < N; i++)
21 s.b[i] = i;
24 for (i = 0; i < N; i++)
26 s.a[i] = s.b[i] + 1;
29 /* check results: */
30 #pragma GCC novector
31 for (i = 0; i < N; i++)
33 if (s.a[i] != i + 1)
34 abort ();
37 return 0;
40 int main (void)
42 check_vect ();
44 return main1 ();
48 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { xfail { ia64-*-* sparc*-*-* } } } } */
49 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */