1 /* { dg-do compile { target { aarch64*-*-* } } } */
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 bfloat16x8_t
test_vcopyq_laneq_bf16(bfloat16x8_t a,bfloat16x8_t b)9 test_vcopyq_laneq_bf16 (bfloat16x8_t a, bfloat16x8_t b)
10 {
11   bfloat16x8_t res;
12   /* { dg-error "lane -1 out of range 0 - 7" "" { target *-*-* } 0 } */
13   res = vcopyq_laneq_bf16 (a, 2, b, -1);
14   /* { dg-error "lane 8 out of range 0 - 7" "" { target *-*-* } 0 } */
15   res = vcopyq_laneq_bf16 (a, 2, b, 8);
16   return res;
17 }
18