1 /* { dg-require-effective-target vect_float } */
2 /* { dg-add-options quad_vectors } */
11 extern void abort(void);
13 __attribute__ ((noinline
))
16 float A
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
17 float B
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
18 float C
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
19 float D
[N
] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__
)));
20 float E
[4] = {0,1,2,480};
25 for (i
= 0; i
< N
; i
++)
33 /* Outer-loop 1: Vectorizable with respect to dependence distance. */
34 for (i
= 0; i
< N
-20; i
++)
43 for (i
= 0; i
< N
-20; i
++)
48 if (A
[i
] != D
[i
+20] + s
)
52 /* Outer-loop 2: Not vectorizable because of dependence distance. */
53 for (i
= 0; i
< 4; i
++)
62 for (i
= 0; i
< 4; i
++)
77 /* NOTE: We temporarily xfail the following check until versioning for
78 aliasing is fixed to avoid versioning when the dependence distance
80 /* { dg-final { scan-tree-dump-times "not vectorized: possible dependence between data-refs" 1 "vect" { xfail *-*-* } } } */
81 /* { dg-final { scan-tree-dump-times "OUTER LOOP VECTORIZED" 1 "vect" } } */
82 /* { dg-final { scan-tree-dump-times "zero step in outer loop." 1 "vect" { xfail vect_no_align } } } */
83 /* { dg-final { cleanup-tree-dump "vect" } } */