1  /* { dg-do compile } */
       2  /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } } */
       3  /* { dg-require-effective-target arm_v8_2a_bf16_neon_ok } */
       4  /* { dg-add-options arm_v8_2a_bf16_neon }  */
       5  
       6  #include <arm_neon.h>
       7  
       8  bfloat16x8x2_t
       9  f_vld2q_lane_bf16 (bfloat16_t * p, bfloat16x8x2_t v)
      10  {
      11    bfloat16x8x2_t res;
      12    /* { dg-error "lane 8 out of range 0 - 7" "" { target *-*-* } 0 } */
      13    res = vld2q_lane_bf16 (p, v, 8);
      14    /* { dg-error "lane -1 out of range 0 - 7" "" { target *-*-* } 0 } */
      15    res = vld2q_lane_bf16 (p, v, -1);
      16    return res;
      17  }