PR target/80969 - Fix ICE with -mabi=ms -mavx512f, reduce wasted space when realignin...
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / vect-double-2.c
blobf6a43749407eda56d25c8692043b0caa1305c9ed
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize -mfpmath=sse -msse2 -mtune=atom -fdump-tree-vect-stats" } */
4 extern void abort (void);
6 #ifndef STATIC
7 #define STATIC
8 #endif
10 #define N 16
12 double cb[N] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
13 double ca[N];
15 STATIC void
16 __attribute__ ((noinline))
17 sse2_test (void)
19 int i;
21 for (i = 0; i < N; i++)
23 ca[i] = cb[i];
26 /* check results: */
27 for (i = 0; i < N; i++)
29 if (ca[i] != cb[i])
30 abort ();
34 /* { dg-final { scan-tree-dump-times "Vectorized loops: 1" 1 "vect" } } */