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