Tighten condition in vect/pr85586.c (PR 85654)
[official-gcc.git] / gcc / testsuite / gcc.dg / pr68766.c
bloba0d549b946e6d7d6d10732eb1fb825ae4ce38407
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize -fdbg-cnt=vect_loop:1" } */
3 /* { dg-additional-options "-mavx2" { target { i?86-*-* x86_64-*-* } } } */
4 /* { dg-prune-output "dbg_cnt 'vect_loop' set to 1" } */
6 int a, b, g, h;
7 int c[58];
8 int d[58];
9 int fn1() {
10 for (; g; g++)
11 if (a)
12 c[g] = b;
15 int fn2() {
16 fn1();
17 for (; h; h++)
18 d[h] = 0;