| 1 |
|
| 2 |
/* { dg-do run } */ |
| 3 |
/* { dg-options "-O3" } */ |
| 4 |
|
| 5 |
#include "arm_neon.h" |
| 6 |
|
| 7 |
extern void abort (void); |
| 8 |
|
| 9 |
#include "vaddv-intrinsic.x" |
| 10 |
|
| 11 |
int |
| 12 |
main (void) |
| 13 |
{ |
| 14 |
const float32_t pool_v2sf[] = {4.0f, 9.0f}; |
| 15 |
const float32_t pool_v4sf[] = {4.0f, 9.0f, 16.0f, 25.0f}; |
| 16 |
const float64_t pool_v2df[] = {4.0, 9.0}; |
| 17 |
|
| 18 |
if (test_vaddv_v2sf (pool_v2sf) != 13.0f) |
| 19 |
abort (); |
| 20 |
|
| 21 |
if (test_vaddv_v4sf (pool_v4sf) != 54.0f) |
| 22 |
abort (); |
| 23 |
|
| 24 |
if (test_vaddv_v2df (pool_v2df) != 13.0) |
| 25 |
abort (); |
| 26 |
|
| 27 |
return 0; |
| 28 |
} |