summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr28839.c
blob: 6a215164c58c7493b2cc4c65c2166138e3b208ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2 -msse2 -ftree-vectorize -funswitch-loops" } */

static int ready[10];
void abort (void);
void test_once (int t,int t1)
{
  int i, repeat;
  for (i = 0; i < 10; i++)
    {
      ready[i] = 0;
      if (t1)
	if (b())
	  abort ();
    }
  if (t)
    abort ();
}