libgomp: Document 'GOMP_teams4'
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / vect-fmaxv-fminv.x
blobd3ba31c425a90bef4518b934fde7fb19ace47019
2 typedef float *__restrict__ pRF32;
3 typedef double *__restrict__ pRF64;
5 float maxv_f32 (pRF32 a)
7   int i;
8   float s;
9   asm ("" : "=w" (s) : "0" (a[0]));
10   for (i=0;i<8;i++)
11     s = (s > a[i] ? s :  a[i]);
13   return s;
16 float minv_f32 (pRF32 a)
18   int i;
19   float s;
20   asm ("" : "=w" (s) : "0" (a[0]));
21   for (i=0;i<16;i++)
22     s = (s < a[i] ? s :  a[i]);
24   return s;
27 double maxv_f64 (pRF64 a)
29   int i;
30   double s;
31   asm ("" : "=w" (s) : "0" (a[0]));
32   for (i=0;i<8;i++)
33     s = (s > a[i] ? s :  a[i]);
35   return s;
38 double minv_f64 (pRF64 a)
40   int i;
41   double s;
42   asm ("" : "=w" (s) : "0" (a[0]));
43   for (i=0;i<16;i++)
44     s = (s < a[i] ? s :  a[i]);
46   return s;