1 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
2 /* { dg-require-effective-target vect_int } */
7 extern void abort(void);
18 void __attribute__ ((noipa
))
19 f(struct s
*ptr
, unsigned n
) {
20 for (int i
= 0; i
< n
; ++i
)
24 void __attribute__ ((noipa
))
25 check_f(struct s
*ptr
) {
27 for (unsigned i
= 0; i
< N
; ++i
)
35 __builtin_memset (&A
[0], 0, sizeof(struct s
) * N
);
43 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
45 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */