| 1 |
#include <arm_neon.h> |
| 2 |
|
| 3 |
/* { dg-do compile } */ |
| 4 |
/* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */ |
| 5 |
/* { dg-require-effective-target arm_neon_fp16_ok { target { arm*-*-* } } } */ |
| 6 |
|
| 7 |
float16x4x2_t |
| 8 |
f_vld2_lane_f16 (float16_t * p, float16x4x2_t v) |
| 9 |
{ |
| 10 |
float16x4x2_t res; |
| 11 |
/* { dg-error "lane 4 out of range 0 - 3" "" { target *-*-* } 0 } */ |
| 12 |
res = vld2_lane_f16 (p, v, 4); |
| 13 |
/* { dg-error "lane -1 out of range 0 - 3" "" { target *-*-* } 0 } */ |
| 14 |
res = vld2_lane_f16 (p, v, -1); |
| 15 |
return res; |
| 16 |
} |