aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr97760.c
blob: da5ac937a435f64f6e9f2b5bc8847c80f29825aa (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
#include "tree-vect.h"

int b=1;
static int *g = &b;

void __attribute__((noipa))
h (unsigned int n)
{
  int i = 3;
  int f = 3;
  for (; f <= 50; f += 4) {
    i += 4;
    *g = i;
    i += n;
  }
}

int main ()
{
  check_vect ();

  h (9);
  if (*g != 150 || b != 150)
    __builtin_abort ();
  return 0;
}