summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/vect-recip.c
blob: 4f130b05c0ec0e96323c3a017e7e7c92de8f9c8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* { dg-do compile } */
/* { dg-require-effective-target vect_float } */

void f(float *__restrict__ qa, float *__restrict__ qb,
       float *__restrict__ qc, float *__restrict__ rtrms)
{
  int i;
  static float qam[600];
  static float qbm[600];
  static float qcm[600];
  for(i=0;i<600;i++)
  {
    float a = rtrms[i];
    qam[i] = qa[i]/a;
    qbm[i] = qb[i]/a;
    qcm[i] = qc[i]/a;
  }
}

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