summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/no-tree-dom-vect-bug.c
blob: d94aa3a643913e8138202579b5086f6b62f444f0 (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
27
28
29
30
/* { dg-require-effective-target vect_int } */

#include <stdarg.h>
#include "tree-vect.h"

long stack_vars_sorted[32];

__attribute__ ((noinline)) int
main1 (long n)
{
  long si;

  for (si = 0; si < n; ++si)
    stack_vars_sorted[si] = si;
}

int main ()
{
  long si;

  check_vect ();
  main1 (32);

  for (si = 0; si < 32; ++si)
    if (stack_vars_sorted[si] != si)
      abort ();

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