1 /* { dg-require-effective-target vect_int } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
9 __attribute__ ((noinline
))
14 int ic
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
15 int ib
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
17 short sc
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
18 short sb
[N
] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
20 /* Multiple types with different nunits in vector. */
21 for (i
= 0; i
< N
; i
++)
23 ia
[i
] = ib
[i
] + ic
[i
];
24 sa
[i
] = sb
[i
] + sc
[i
];
29 for (i
= 0; i
< N
; i
++)
31 if (ia
[i
] != ib
[i
] + ic
[i
] || sa
[i
] != sb
[i
] + sc
[i
])
45 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
46 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */