1 2 /* { dg-do run } */ 3 /* { dg-options "-O3 -ffast-math" } */ 4 5 extern void abort (void); 6 7 #include "vect-faddv.x" 8 main(void)9int main (void) 10 { 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; 16 17 /* Set up input vectors. */ 18 for (i=0; i<16; i++) 19 { 20 af32[i] = (float)-i; 21 af64[i] = (double)i; 22 } 23 24 if (addv_f32 (af32) != addv_f32_value) 25 abort (); 26 27 if (addv_f64 (af64) != addv_f64_value) 28 abort (); 29 30 return 0; 31 } 32