aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vect/pr63189.c
blob: da6fba4b1b3689870e86ebc669aff7d779eed314 (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
25
26
/* PR tree-optimization/63189 */
/* { dg-do run } */

#include "tree-vect.h"

short int d[16] = { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 };

__attribute__((noinline, noclone)) void
foo (void)
{
  int j, s = 0;
  for (j = 0; j < 8; j++)
    s += d[j] * j;
  if (s != 7)
    abort ();
}

int
main ()
{
  check_vect ();
  foo ();
  return 0;
}

/* { dg-final { cleanup-tree-dump "vect" } } */