i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-89-big-array.c
blobdb09a65845609530446e754717979e5c5622f1b9
1 /* Disabling epilogues until we find a better way to deal with scans. */
2 /* { dg-additional-options "--param vect-epilogues-nomask=0 -fdump-tree-optimized-details-blocks" } */
3 /* { dg-require-effective-target vect_int } */
5 #include <stdarg.h>
6 #include "tree-vect.h"
8 #define N 128
10 struct tmp_struct
12 int x;
13 int y[N];
16 __attribute__ ((noinline))
17 int main1 ()
19 int i, *q;
20 struct tmp_struct tmp, *p;
22 p = &tmp;
23 q = p->y;
25 for (i = 0; i < N; i++)
27 *q++ = 5;
30 /* check results: */
31 #pragma GCC novector
32 for (i = 0; i < N; i++)
34 if (p->y[i] != 5)
36 abort ();
40 return 0;
43 int main (void)
45 check_vect ();
47 return main1 ();
50 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
51 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" { xfail { ! vect_align_stack_vars } } } } */
52 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { xfail { vect_element_align_preferred || { ! vect_align_stack_vars } } } } } */
53 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */