1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
27 int a
[N
] = {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
29 __attribute__ ((noinline
))
38 /* DR bases comparison: record and array. */
39 for (i
= 0; i
< N
; i
++)
41 tmp1
.strc_t
.strc_s
.b
[i
] = a
[i
];
46 for (i
= 0; i
< N
; i
++)
48 if (tmp1
.strc_t
.strc_s
.b
[i
] != a
[i
])
52 /* DR bases comparison: record containing ptr and array. */
53 for (i
= 0; i
< N
; i
++)
55 tmp1
.ptr_t
->strc_s
.c
[i
] = a
[i
];
60 for (i
= 0; i
< N
; i
++)
62 if (tmp1
.ptr_t
->strc_s
.c
[i
] != a
[i
])
77 /* { dg-final { scan-tree-dump-times "vectorized 2 loops" 1 "vect" } } */
80 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */