1 /* PR tree-optimization/82374 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fno-tree-vectorize -fdump-tree-vect-details" } */
4 /* { dg-additional-options "-mavx -mno-avx2" { target i?86-*-* x86_64-*-* } } */
5 /* { dg-additional-options "-mvsx" { target powerpc_vsx_ok } } */
7 #define SIZE (1024 * 1024)
14 __attribute__((optimize ("O2", "tree-vectorize"))) void
18 #pragma omp parallel for
19 for (i
= 0; i
< SIZE
; i
++)
23 __attribute__((optimize ("O2", "tree-vectorize"))) void
27 for (i
= 0; i
< SIZE
; i
++)
31 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 2 "vect" { target { { i?86-*-* x86_64-*-* } || { powerpc_vsx_ok } } } } } */