| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-skip-if "" { arm*-*-* } } */ |
| 3 |
|
| 4 |
#include <arm_neon.h> |
| 5 |
|
| 6 |
float32x2_t foo_f32 (float32x2_t a, float32x2_t b, float32x2_t c) |
| 7 |
{ |
| 8 |
return vmla_f32 (a, b, c); |
| 9 |
} |
| 10 |
|
| 11 |
float32x4_t fooq_f32 (float32x4_t a, float32x4_t b, float32x4_t c) |
| 12 |
{ |
| 13 |
return vmlaq_f32 (a, b, c); |
| 14 |
} |
| 15 |
|
| 16 |
float32x2_t foo_n_f32 (float32x2_t a, float32x2_t b, float32_t c) |
| 17 |
{ |
| 18 |
return vmla_n_f32 (a, b, c); |
| 19 |
} |
| 20 |
|
| 21 |
float32x4_t fooq_n_f32 (float32x4_t a, float32x4_t b, float32_t c) |
| 22 |
{ |
| 23 |
return vmlaq_n_f32 (a, b, c); |
| 24 |
} |
| 25 |
|
| 26 |
float32x2_t foo_lane_f32 (float32x2_t a, |
| 27 |
float32x2_t b, |
| 28 |
float32x2_t v) |
| 29 |
{ |
| 30 |
return vmla_lane_f32 (a, b, v, 0); |
| 31 |
} |
| 32 |
|
| 33 |
float32x4_t fooq_lane_f32 (float32x4_t a, |
| 34 |
float32x4_t b, |
| 35 |
float32x2_t v) |
| 36 |
{ |
| 37 |
return vmlaq_lane_f32 (a, b, v, 0); |
| 38 |
} |
| 39 |
|
| 40 |
float32x2_t foo_laneq_f32 (float32x2_t a, |
| 41 |
float32x2_t b, |
| 42 |
float32x4_t v) |
| 43 |
{ |
| 44 |
return vmla_laneq_f32 (a, b, v, 0); |
| 45 |
} |
| 46 |
|
| 47 |
float32x4_t fooq_laneq_f32 (float32x4_t a, |
| 48 |
float32x4_t b, |
| 49 |
float32x4_t v) |
| 50 |
{ |
| 51 |
return vmlaq_laneq_f32 (a, b, v, 0); |
| 52 |
} |
| 53 |
|
| 54 |
float64x1_t foo_f64 (float64x1_t a, float64x1_t b, float64x1_t c) |
| 55 |
{ |
| 56 |
return vmla_f64 (a, b, c); |
| 57 |
} |
| 58 |
|
| 59 |
float64x2_t fooq_f64 (float64x2_t a, float64x2_t b, float64x2_t c) |
| 60 |
{ |
| 61 |
return vmlaq_f64 (a, b, c); |
| 62 |
} |
| 63 |
|
| 64 |
/* { dg-final { scan-assembler-times {\tfmul\t} 10} } */ |
| 65 |
/* { dg-final { scan-assembler-times {\tfadd\t} 10} } */ |