Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / gcc / testsuite / gcc.target / aarch64 / vect-faddv.x
1
2 typedef float *__restrict__ pRF32;
3 typedef double *__restrict__ pRF64;
4
5 float addv_f32 (pRF32 a)
6 {
7   int i;
8   float s = 0.0;
9   for (i=0; i<16; i++)
10     s += a[i];
11
12   return s;
13 }
14
15 double addv_f64 (pRF64 a)
16 {
17   int i;
18   double  s = 0.0;
19   for (i=0; i<16; i++)
20     s += a[i];
21
22   return s;
23 }