[gcc]
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / vect-faddv.c
blobf30bde8e8dfb1da82ce1d2b7f05d60db45e80cc1
2 /* { dg-do run } */
3 /* { dg-options "-O3 -ffast-math" } */
5 extern void abort (void);
7 #include "vect-faddv.x"
9 int main (void)
11 float addv_f32_value = -120.0f;
12 double addv_f64_value = 120.0;
13 float af32[16];
14 double af64[16];
15 int i;
17 /* Set up input vectors. */
18 for (i=0; i<16; i++)
20 af32[i] = (float)-i;
21 af64[i] = (double)i;
24 if (addv_f32 (af32) != addv_f32_value)
25 abort ();
27 if (addv_f64 (af64) != addv_f64_value)
28 abort ();
30 return 0;