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 float16x8x2_t
f_vld2q_lane_f16(float16_t * p,float16x8x2_t v)8 f_vld2q_lane_f16 (float16_t * p, float16x8x2_t v)
9 {
10   float16x8x2_t res;
11   /* { dg-error "lane 8 out of range 0 - 7" "" { target *-*-* } 0 } */
12   res = vld2q_lane_f16 (p, v, 8);
13   /* { dg-error "lane -1 out of range 0 - 7" "" { target *-*-* } 0 } */
14   res = vld2q_lane_f16 (p, v, -1);
15   return res;
16 }
17