1 /* { dg-do compile } */ 2 /* { dg-options "-fopenmp -O3 -fdump-tree-vect-details" } */ 3 /* { dg-final { scan-tree-dump-times "vectorized 0 loops in function" 4 "vect" } } */ 4 5 int a[1024]; 6 7 void foo(void)8foo (void) 9 { 10 #pragma omp simd if (0) 11 for (int i = 0; i < 1024; ++i) 12 a[i] = a[i] + 1; 13 } 14 15 void bar(void)16bar (void) 17 { 18 #pragma omp simd if (0) safelen (256) simdlen (8) 19 for (int i = 0; i < 512; ++i) 20 a[i] = a[i] + 1; 21 } 22 23 void baz(void)24baz (void) 25 { 26 #pragma omp simd safelen (256) simdlen (1) 27 for (int i = 0; i < 512; ++i) 28 a[i] = a[i] + 1; 29 } 30 31 void qux(void)32qux (void) 33 { 34 #pragma omp simd simdlen (1) if (1) 35 for (int i = 0; i < 512; ++i) 36 a[i] = a[i] + 1; 37 } 38