1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
12 __attribute__ ((noinline
)) int
18 for (i
= 0; i
< N
; i
++) {
21 check_diff
+= (cb
[i
] - cc
[i
]);
22 asm volatile ("" ::: "memory");
25 /* Cross-iteration cycle. */
27 for (i
= 0; i
< N
; i
++) {
28 diff
+= (cb
[i
] - cc
[i
]);
32 if (diff
!= check_diff
)
44 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_unpack } } } */
47 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */