1 /* { dg-do run { target vect_cmdline_needed } } */
2 /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details" } */
3 /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details -mno-sse" { target { i?86-*-* x86_64-*-* } } } */
9 #if __LONG_MAX__ == 2147483647
10 typedef short half_word;
12 typedef int half_word;
15 int main_1 (int n, int *p)
22 for (i = 0; i < N; i++)
28 for (i = 0; i < N; i++)
35 for (i = 0; i < N; i++)
41 for (i = 0; i < N; i++)
50 static volatile int n = 1;
54 return main_1 (n + 2, (int *) &n);
57 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" { target { ! avr-*-* } } } } */
58 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" { target { ! avr-*-* } } } } */
59 /* { dg-final { cleanup-tree-dump "vect" } } */