aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/aarch64/vect-faddv.x
blob: d99ab215639a9fb75f5b8058885f0dce87bea0f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

typedef float *__restrict__ pRF32;
typedef double *__restrict__ pRF64;

float addv_f32 (pRF32 a)
{
  int i;
  float s = 0.0;
  for (i=0; i<16; i++)
    s += a[i];

  return s;
}

double addv_f64 (pRF64 a)
{
  int i;
  double  s = 0.0;
  for (i=0; i<16; i++)
    s += a[i];

  return s;
}