aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr81815.c
blob: 79f345a641a18d257843a20410793f421187bc15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
int __attribute__ ((noinline, noclone))
f (int *x, int n)
{
  int b = 13;
  for (int i = 0; i < n; ++i)
    {
      int next = x[i];
      b = b < 100 ? next : 200;
    }
  return b;
}

static int res[32];

int
main (void)
{
  for (int i = 0; i < 32; ++i)
    res[i] = i;
  res[15] = 100;
  if (f (res, 32) != 200)
    __builtin_abort ();
  return 0;
}