1 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-require-effective-target vect_long_long } */
8 extern void abort(void);
20 void __attribute__ ((noipa
))
21 f(struct s
*ptr
, unsigned n
) {
22 for (int i
= 0; i
< n
; ++i
)
26 void __attribute__ ((noipa
))
27 check_f(struct s
*ptr
) {
29 for (unsigned i
= 0; i
< N
; ++i
)
37 __builtin_memset (&A
[0], 0, sizeof(struct s
) * N
);
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
47 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */